/* ================================================
   BOYNER BASE CSS - Sayfa Stilleri
   ================================================ */

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Jost', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #FFFFFF;
  color: #2B2B38;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ---- Boyner Header ---- */
.hb-header {
  background: #FFFFFF;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #E5E5E5;
}

.hb-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 16px;
}

.hb-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2B2B38;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.hb-logo img.boyner-logo {
  height: 24px;
  width: auto;
}

.hb-logo svg {
  width: 40px;
  height: 40px;
}

.hb-search {
  flex: 1;
  max-width: 560px;
  margin: 0 24px;
  position: relative;
}

.hb-search input {
  width: 100%;
  padding: 12px 48px 12px 16px;
  border: 1px solid #E5E5E5;
  border-radius: 1px;
  font-size: 14px;
  font-family: 'Jost', sans-serif;
  background: #F8F6F7;
  outline: none;
  color: #2B2B38;
  transition: border-color 0.2s;
}

.hb-search input:focus {
  border-color: #2B2B38;
}

.hb-search input::placeholder {
  color: #999;
}

.hb-search-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: #2B2B38;
  border-radius: 1px;
  width: 34px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hb-search-btn:hover {
  background: rgba(43, 43, 56, 0.06);
}

.hb-header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #2B2B38;
  font-size: 13px;
}

.hb-header-actions .hb-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  cursor: pointer;
}

.hb-header-actions .hb-action-item svg {
  width: 22px;
  height: 22px;
}

/* ---- Boyner Nav Bar ---- */
.hb-nav {
  background: #fff;
  border-bottom: 1px solid #E5E5E5;
  overflow-x: auto;
}

.hb-nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.hb-nav-item {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #2B2B38;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.hb-nav-item.highlight {
  color: #E53935;
  font-weight: 600;
}

.hb-nav-item:hover {
  color: #2B2B38;
  border-bottom-color: #2B2B38;
}

/* ---- Breadcrumb ---- */
.hb-breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 16px;
  font-size: 12px;
  color: #999;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.hb-breadcrumb a {
  color: #666;
}

.hb-breadcrumb a:hover {
  color: #2B2B38;
}

.hb-breadcrumb span {
  color: #999;
}

/* ---- Product Page Layout ---- */
.hb-product-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px 40px;
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 32px;
  align-items: start;
}

/* ---- Product Gallery ---- */
.hb-gallery {
  position: sticky;
  top: 100px;
}

.hb-gallery-main {
  width: 100%;
  aspect-ratio: 1/1;
  background: #F8F6F7;
  border: 1px solid #E5E5E5;
  border-radius: 1px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.hb-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hb-gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.hb-gallery-thumb {
  width: 64px;
  height: 64px;
  border: 1px solid #E5E5E5;
  border-radius: 1px;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  background: #F8F6F7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hb-gallery-thumb.active {
  border-color: #2B2B38;
  border-width: 2px;
}

.hb-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---- Product Info ---- */
.hb-product-info {
  background: #fff;
  border: 1px solid #E5E5E5;
  border-radius: 1px;
  padding: 24px;
}

.hb-product-brand {
  font-size: 24px;
  color: #2B2B38;
  font-weight: 540;
  margin-bottom: 4px;
}

.hb-product-title {
  font-size: 20px;
  font-weight: 400;
  color: #515151;
  margin-bottom: 8px;
  line-height: 1.4;
}

.hb-product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.hb-stars {
  display: flex;
  gap: 2px;
  color: #FFC107;
}

.hb-rating-count {
  font-size: 13px;
  color: #999;
}

.hb-price-section {
  padding: 16px 0;
  border-top: 1px solid #F0F0F0;
  border-bottom: 1px solid #F0F0F0;
  margin-bottom: 16px;
}

.hb-price-old {
  font-size: 16px;
  color: #999;
  text-decoration: line-through;
  margin-bottom: 4px;
}

.hb-price-current {
  font-size: 32px;
  font-weight: 540;
  color: #2B2B38;
}

.hb-price-current .hb-currency {
  font-size: 20px;
}

.hb-discount-badge {
  display: inline-block;
  background: #DBFC00;
  color: #2B2B38;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 1px;
  margin-left: 8px;
}

/* ---- Size Selector ---- */
.hb-size-section {
  margin-bottom: 16px;
}

.hb-size-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.hb-size-label {
  font-size: 14px;
  font-weight: 540;
  color: #2B2B38;
}

.hb-size-guide {
  font-size: 13px;
  color: #2B2B38;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: underline;
}

.hb-size-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hb-size-btn {
  min-width: 48px;
  padding: 10px 16px;
  border: 1px solid #E5E5E5;
  border-radius: 1px;
  font-size: 14px;
  font-weight: 400;
  background: #fff;
  color: #2B2B38;
  transition: all 0.2s;
  font-family: 'Jost', sans-serif;
}

.hb-size-btn:hover {
  border-color: #2B2B38;
}

.hb-size-btn.active {
  border-color: #2B2B38;
  background: #2B2B38;
  color: #fff;
}

.hb-size-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---- Color Selector ---- */
.hb-color-section {
  margin-bottom: 16px;
}

.hb-color-label {
  font-size: 14px;
  font-weight: 540;
  color: #2B2B38;
  margin-bottom: 10px;
}

.hb-color-options {
  display: flex;
  gap: 8px;
}

.hb-color-swatch {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.hb-color-swatch.active {
  border-color: #2B2B38;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #2B2B38;
}

/* ---- Action Buttons ---- */
.hb-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.hb-btn-cart {
  width: 100%;
  padding: 16px 24px;
  background: #2B2B38;
  color: #fff;
  font-size: 16px;
  font-weight: 540;
  border-radius: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
  font-family: 'Jost', sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hb-btn-cart:hover {
  background: #1a1a24;
}

.hb-btn-favorite {
  width: 100%;
  padding: 14px 24px;
  border: 1px solid #E5E5E5;
  color: #2B2B38;
  font-size: 14px;
  font-weight: 500;
  border-radius: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  font-family: 'Jost', sans-serif;
}

.hb-btn-favorite:hover {
  border-color: #2B2B38;
}

/* ---- Seller Info ---- */
.hb-seller-info {
  margin-top: 20px;
  padding: 16px;
  background: #F8F6F7;
  border-radius: 1px;
  border: 1px solid #E5E5E5;
}

.hb-seller-name {
  font-size: 14px;
  font-weight: 540;
  color: #2B2B38;
  margin-bottom: 4px;
}

.hb-seller-rating {
  font-size: 12px;
  color: #999;
}

/* ---- Shipping Info ---- */
.hb-shipping {
  margin-top: 16px;
  padding: 12px 16px;
  background: #F0FFF0;
  border-radius: 1px;
  font-size: 13px;
  color: #2E7D32;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #C8E6C9;
}

/* ---- Product Details / Tabs ---- */
.hb-tabs {
  max-width: 1280px;
  margin: 24px auto;
  padding: 0 16px;
}

.hb-tab-header {
  display: flex;
  border-bottom: 1px solid #E5E5E5;
}

.hb-tab-btn {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 540;
  color: #999;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
  font-family: 'Jost', sans-serif;
}

.hb-tab-btn.active {
  color: #2B2B38;
  border-bottom-color: #2B2B38;
}

.hb-tab-content {
  background: #fff;
  border: 1px solid #E5E5E5;
  border-top: none;
  border-radius: 0 0 1px 1px;
  padding: 24px;
}

/* ---- Footer ---- */
.hb-footer {
  background: #2B2B38;
  color: #ccc;
  margin-top: 40px;
  padding: 40px 16px 20px;
  font-size: 13px;
}

.hb-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.hb-footer-col h4 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 12px;
}

.hb-footer-col a {
  display: block;
  color: #aaa;
  padding: 3px 0;
  font-size: 12px;
}

.hb-footer-col a:hover {
  color: #DBFC00;
}

.hb-footer-bottom {
  max-width: 1280px;
  margin: 24px auto 0;
  padding-top: 16px;
  border-top: 1px solid #444;
  text-align: center;
  font-size: 11px;
  color: #888;
}

/* ---- Apple-style Scrollbar ---- */
html {
  scroll-behavior: smooth;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

/* WebKit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb:active {
  background: rgba(0, 0, 0, 0.45);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hb-product-page {
    grid-template-columns: 1fr;
  }
  .hb-gallery {
    position: static;
  }
  .hb-footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hb-header-top {
    flex-wrap: wrap;
    gap: 10px;
  }
  .hb-search {
    order: 3;
    max-width: 100%;
    margin: 0;
  }
  .hb-footer-inner {
    grid-template-columns: 1fr;
  }
}
