/* ══════════════════════════
   PRODUCT PAGE — HEADER (sticky white)
══════════════════════════ */
header {
  height: 68px; padding: 0 56px; background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 50;
}
.header-solid .logo-white { display: none; }
.header-solid .logo-dark { display: block; }
.logo-lockup { --logo-height: 32px; }
.header-right { display: flex; align-items: center; gap: 28px; }
nav { display: flex; gap: 32px; }
nav a {
  font-family: var(--font-nav);
  font-size: 14px; font-weight: 600; letter-spacing: .32px;
  color: #111; transition: color .2s;
}
nav a:hover { color: var(--blue2); }
.icon-btn {
  background: none; border: none; cursor: pointer; color: #3f4858;
  display: flex; align-items: center; transition: color .2s; padding: 0;
}
.icon-btn svg {
  display: block;
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.85;
  vector-effect: non-scaling-stroke;
}
.icon-btn:hover { color: var(--blue2); }

/* search bar */
.search-bar {
  display: none; position: fixed; top: 68px; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 14px 56px; z-index: 49;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.search-bar.open { display: flex; align-items: center; gap: 12px; }
.search-bar input {
  flex: 1; border: none; outline: none;
  font-family: var(--font-sans); font-size: 15px; color: var(--text);
  background: transparent;
}
.search-bar input::placeholder { color: #bbb; }
.search-bar-close {
  background: none; border: none; cursor: pointer;
  color: #999; font-size: 20px; line-height: 1; padding: 0;
  transition: color .2s;
}
.search-bar-close:hover { color: var(--text); }

/* ══════════════════════════
   BREADCRUMB
══════════════════════════ */
.breadcrumb {
  padding: 16px 56px; font-size: 12px; color: var(--muted);
  display: flex; align-items: center; gap: 6px;
}
.breadcrumb a { color: var(--muted); transition: color .2s; }
.breadcrumb a:hover { color: var(--blue2); }
.breadcrumb span { opacity: .4; }

/* ══════════════════════════
   PRODUCT LAYOUT
══════════════════════════ */
.product-wrap {
  padding: 0 56px 64px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start;
}

.product-message {
  grid-column: 1 / -1;
  max-width: 620px;
  padding: 56px 0;
}

.product-message h1 {
  font-family: var(--font-display);
  font-size: 34px;
  margin: 0 0 14px;
}

.product-message p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 24px;
}

.product-message-link {
  display: inline-flex;
  width: auto;
  text-decoration: none;
}

/* ══════════════════════════
   GALLERY
══════════════════════════ */
.gallery-main {
  background: #fff; aspect-ratio: 1/1;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; margin-bottom: 12px; position: relative;
}
.gallery-main img {
  display: block;
  width: auto;
  height: auto;
  max-width: 82%;
  max-height: 82%;
  object-fit: contain;
  object-position: center;
  opacity: 1;
  transition: transform .4s ease, opacity .16s ease;
}
.gallery-main img.gallery-image-loading { opacity: 0; }
.gallery-main:hover img { transform: scale(1.05); }
.gallery-main-no-zoom:hover img { transform: none; }
.badge-new {
  position: absolute; top: 16px; left: 16px;
  background: var(--blue2); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .8px; padding: 4px 10px;
}
.gallery-thumbs { display: flex; gap: 10px; }
.thumb {
  width: 80px; height: 80px; background: #fff;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s; flex-shrink: 0;
}
.thumb.active, .thumb:hover { border-color: var(--blue2); box-shadow: 0 6px 18px rgba(21, 36, 76, .08); }
.thumb img { width: 70%; height: 70%; object-fit: contain; }

/* ══════════════════════════
   PRODUCT INFO
══════════════════════════ */
.product-brand {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  color: var(--muted); text-transform: uppercase; margin-bottom: 10px;
}
.product-name {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700; line-height: 1.25; margin-bottom: 6px;
}
.product-sku { font-size: 12px; color: var(--muted); margin-bottom: 20px; }

/* rating */
.rating { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.stars { display: flex; gap: 2px; }
.star { font-size: 15px; color: #f5b800; }
.star.empty { color: #ddd; }
.rating-count { font-size: 12px; color: var(--muted); }
.rating-link {
  padding: 6px 12px;
  border: 1px solid rgba(31, 65, 125, .28);
  background: #fff;
  color: var(--blue2);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.rating-link:hover {
  background: var(--blue2);
  border-color: var(--blue2);
  color: #fff;
}

/* price */
.price-row { display: flex; align-items: baseline; gap: 14px; margin-bottom: 24px; }
.price-main { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--text); }
.price-old { font-size: 18px; color: var(--muted); text-decoration: line-through; }
.price-discount {
  font-size: 12px; font-weight: 700; color: #fff;
  background: var(--red); padding: 3px 8px;
}

/* stock */
.stock { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; font-size: 13px; }
.stock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.stock-label { color: var(--green); font-weight: 600; }

/* options */
.opt-label {
  font-size: 11px; font-weight: 700; letter-spacing: .8px;
  color: var(--muted); text-transform: uppercase; margin-bottom: 10px;
}
.colors { display: flex; gap: 8px; margin-bottom: 24px; }
.color-swatch {
  width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; border: 2px solid transparent;
  transition: border-color .2s; position: relative;
}
.color-swatch.active, .color-swatch:hover {
  border-color: var(--blue2); outline: 2px solid #fff; outline-offset: -4px;
}
.sizes { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.size-btn {
  padding: 8px 18px; border: 1.5px solid var(--border);
  background: #fff; font-size: 13px; cursor: pointer;
  font-family: var(--font-sans); color: var(--text);
  transition: all .2s;
}
.size-btn.active, .size-btn:hover { border-color: var(--blue2); color: var(--blue2); }
.size-btn.unavail { opacity: .35; cursor: not-allowed; text-decoration: line-through; }

/* CTA */
.cta-row { display: flex; gap: 12px; margin-bottom: 20px; }
.btn-cart {
  flex: 1; padding: 15px 20px; background: var(--blue2); color: #fff;
  border: none; font-size: 14px; font-weight: 600; cursor: pointer;
  font-family: var(--font-sans); letter-spacing: .3px;
  transition: background .2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-cart:hover { background: #1a2f5a; }
.btn-oneclick {
  width: 100%; padding: 13px; border: 1.5px solid var(--border);
  background: #fff; font-size: 13px; cursor: pointer;
  font-family: var(--font-sans); color: var(--text);
  transition: all .2s; margin-bottom: 24px;
}
.btn-oneclick:hover { border-color: var(--blue2); color: var(--blue2); }

/* delivery */
.delivery-block { border: 1px solid var(--border); padding: 18px 20px; margin-bottom: 8px; }
.delivery-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.delivery-row:last-child { border-bottom: none; padding-bottom: 0; }
.delivery-row:first-child { padding-top: 0; }
.delivery-icon { flex-shrink: 0; margin-top: 1px; color: var(--blue2); }
.delivery-text { font-size: 12.5px; line-height: 1.5; }
.delivery-text strong { display: block; font-size: 13px; margin-bottom: 2px; }
.delivery-text span { color: var(--muted); }

/* ══════════════════════════
   PRODUCT TABS
══════════════════════════ */
.product-tabs { padding: 0 56px; margin-bottom: 60px; }
.tab-nav { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 32px; }
.tab-btn {
  padding: 12px 24px; font-size: 14px; cursor: pointer;
  border: none; background: none; font-family: var(--font-sans);
  color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all .2s;
}
.tab-btn.active { color: var(--text); border-bottom-color: var(--text); font-weight: 600; }
.tab-btn:hover:not(.active) { color: var(--text); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* description */
.desc-text { font-size: 14px; line-height: 1.85; color: #333; max-width: 760px; margin-bottom: 24px; }

/* specs table */
.specs-table { width: 100%; border-collapse: collapse; font-size: 13.5px; max-width: 700px; }
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table tr:last-child { border-bottom: none; }
.specs-table td { padding: 12px 0; }
.specs-table td:first-child { color: var(--muted); width: 45%; padding-right: 20px; }
.specs-table td:last-child { font-weight: 500; color: var(--text); }

/* reviews */
.reviews-summary {
  display: grid; grid-template-columns: 200px 1fr; gap: 40px;
  align-items: center; margin-bottom: 36px; padding: 28px; background: #fff;
  border: 1px solid var(--border);
}
.rev-score-big { text-align: center; }
.rev-num { font-family: var(--font-display); font-size: 56px; font-weight: 700; line-height: 1; color: var(--text); }
.rev-num-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.rev-stars-big { display: flex; justify-content: center; gap: 3px; margin: 8px 0; }
.rev-bars { display: flex; flex-direction: column; gap: 7px; }
.rev-bar-row { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.rev-bar-track { flex: 1; height: 6px; background: #e0e0e0; border-radius: 3px; overflow: hidden; }
.rev-bar-fill { height: 100%; background: #f5b800; border-radius: 3px; }
.review-list { display: flex; flex-direction: column; gap: 24px; margin-bottom: 32px; }
.review-item { padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.review-item:last-child { border-bottom: none; }
.rev-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.rev-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--blue2); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; flex-shrink: 0;
}
.rev-meta strong { font-size: 14px; display: block; }
.rev-meta span { font-size: 11.5px; color: var(--muted); }
.rev-body { font-size: 13.5px; line-height: 1.7; color: #444; }
.btn-review {
  padding: 12px 28px; border: 1.5px solid var(--blue2); background: #fff;
  color: var(--blue2); font-size: 13px; cursor: pointer;
  font-family: var(--font-sans); transition: all .2s;
}
.btn-review:hover { background: var(--blue2); color: #fff; }

/* ══════════════════════════
   RELATED
══════════════════════════ */
.related { padding: 0 56px 72px; }
.related h2 { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.rel-card { background: #fff; border: 1px solid var(--border); cursor: pointer; transition: box-shadow .25s, border-color .25s; position: relative; }
.rel-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); border-color: rgba(36, 57, 105, .18); }
.rel-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--blue2); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .5px; padding: 3px 8px; z-index: 2;
}
.rel-img { aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center; padding: 20px; }
.rel-img img { width: 100%; height: 100%; object-fit: contain; }
.rel-info { padding: 12px 14px 16px; border-top: 1px solid rgba(0,0,0,.05); }
.rel-brand { font-size: 10px; font-weight: 700; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; margin-bottom: 4px; }
.rel-name { font-size: 13px; color: var(--text); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rel-price { font-size: 14px; font-weight: 700; }

/* zoom overlay */
.zoom-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.85);
  display: none; align-items: center; justify-content: center;
  z-index: 200; cursor: zoom-out;
}
.zoom-overlay.open { display: flex; }
.zoom-overlay img { max-width: 90vw; max-height: 90vh; object-fit: contain; }



/* ══════════════════════════
   RESPONSIVE — TABLET (≤900px)
══════════════════════════ */
@media (max-width: 900px) {
  .product-wrap { grid-template-columns: 1fr; gap: 32px; }
  header, .breadcrumb, .product-wrap, .product-tabs, .related {
    padding-left: 20px; padding-right: 20px;
  }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-summary { grid-template-columns: 150px 1fr; gap: 24px; }
}

/* ══════════════════════════
   RESPONSIVE — MOBILE (≤768px)
══════════════════════════ */
@media (max-width: 768px) {
  header { padding: 0 16px; height: 56px; }
  nav { display: none; }
  .burger { display: block; }
  .logo-link img { height: 26px; }
  .header-right { gap: 16px; }
  .search-bar { top: 56px; padding: 12px 16px; }

  /* Breadcrumb */
  .breadcrumb {
    padding: 12px 16px; font-size: 11px;
    overflow-x: auto; white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; -ms-overflow-style: none;
    max-width: 100vw;
  }
  .breadcrumb::-webkit-scrollbar { display: none; }

  /* Product */
  .product-wrap {
    padding: 0 16px 40px;
    grid-template-columns: 1fr; gap: 24px;
  }

  /* Gallery */
  .gallery-main { aspect-ratio: 1/1; }
  .gallery-main img {
    width: auto;
    height: auto;
    max-width: 88%;
    max-height: 88%;
  }
  .gallery-thumbs { gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .thumb { width: 64px; height: 64px; flex-shrink: 0; }

  /* Info */
  .product-name { font-size: 20px; }
  .product-sku { font-size: 11px; }
  .price-main { font-size: 26px; }
  .price-old { font-size: 15px; }
  .rating { flex-wrap: wrap; gap: 8px; }

  /* Colors & sizes */
  .colors { gap: 10px; }
  .color-swatch { width: 36px; height: 36px; }
  .sizes { gap: 6px; }
  .size-btn { padding: 8px 14px; font-size: 12px; }

  /* CTA */
  .cta-row { gap: 10px; }
  .btn-cart { padding: 14px 16px; font-size: 13px; }
  .btn-wish { width: 48px; height: 48px; }

  /* Delivery */
  .delivery-block { padding: 14px 16px; }

  /* Tabs */
  .product-tabs { padding: 0 16px; margin-bottom: 40px; }
  .tab-nav {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .tab-nav::-webkit-scrollbar { display: none; }
  .tab-btn { padding: 10px 16px; font-size: 13px; flex-shrink: 0; white-space: nowrap; }
  .desc-text { font-size: 13px; line-height: 1.75; }
  .specs-table { font-size: 12.5px; }
  .specs-table td { padding: 10px 0; }
  .specs-table td:first-child { width: 40%; }

  /* Reviews */
  .reviews-summary {
    grid-template-columns: 1fr; gap: 20px;
    padding: 20px;
  }
  .rev-num { font-size: 42px; }
  .rev-score-big { display: flex; align-items: center; gap: 16px; }
  .rev-body { font-size: 13px; }

  /* Related */
  .related { padding: 0 16px 48px; }
  .related h2 { font-size: 19px; }
  .related-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .rel-info { padding: 10px 12px 14px; }
  .rel-brand { font-size: 9px; }
  .rel-name { font-size: 12px; }
  .rel-price { font-size: 13px; }

}

/* ══════════════════════════
   RESPONSIVE — SMALL MOBILE (≤480px)
══════════════════════════ */
@media (max-width: 480px) {
  header { padding: 0 12px; }
  .logo-lockup { --logo-height: 28px; }
  .search-bar { padding: 10px 12px; }
  .breadcrumb { padding: 10px 12px; font-size: 10px; }
  .product-wrap { padding: 0 12px 32px; }
  .product-name { font-size: 17px; }
  .price-main { font-size: 22px; }
  .price-old { font-size: 14px; }
  .btn-cart { font-size: 12px; padding: 12px; }
  .btn-oneclick { font-size: 12px; }
  .product-tabs { padding: 0 12px; }
  .related { padding: 0 12px 36px; }
}
