/* ============================================================
   KINGSBUILD — PRODUCT DETAIL PAGE CSS
   Phase 4: Gallery, Specs, Qty, Add-to-Cart, Reviews, Related
   ============================================================ */

/* ── Page Shell ── */
.product-page { background: var(--kb-white); }

/* ── Breadcrumb Bar ── */
.product-breadcrumb-bar {
  background: var(--kb-pure-white);
  border-bottom: 1px solid var(--kb-ash);
  padding: 0.75rem 0;
}
.product-breadcrumb-bar .breadcrumb { font-size: 0.8rem; }

/* ══════════════════════════════════════════
   MAIN PRODUCT SECTION
══════════════════════════════════════════ */
.product-main {
  padding: 2.5rem 0 3rem;
}
.product-layout {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 3.5rem;
  align-items: start;
}

/* ══════════════════════════════════════════
   IMAGE GALLERY
══════════════════════════════════════════ */
.product-gallery {
  position: sticky;
  top: calc(var(--header-height) + var(--header-top-height) + 1rem);
}

/* Main viewer */
.gallery-main {
  position: relative;
  background: var(--kb-ash);
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: zoom-in;
  border: 1px solid var(--kb-fog);
}
.gallery-main__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.25s ease;
  display: block;
}
.gallery-main:hover .gallery-main__img { transform: scale(1.04); }
.gallery-main__img.is-loading { opacity: 0.5; }

/* Zoom overlay hint */
.gallery-zoom-hint {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  padding: 0.3rem 0.6rem;
  background: rgba(0,0,0,0.55);
  color: rgba(255,255,255,0.8);
  border-radius: var(--radius-md);
  font-size: 0.7rem;
  font-family: var(--font-condensed);
  letter-spacing: 0.06em;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Badge on main image */
.gallery-main__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
}

/* KEBS cert badge */
.gallery-cert {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  background: rgba(13,13,13,0.75);
  backdrop-filter: blur(4px);
  color: var(--kb-gold);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-md);
  font-family: var(--font-condensed);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Thumbnail strip */
.gallery-thumbs {
  display: flex;
  gap: 0.625rem;
  margin-top: 0.875rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }

.gallery-thumb {
  flex-shrink: 0;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  background: var(--kb-ash);
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-thumb:hover { border-color: var(--kb-concrete); }
.gallery-thumb.is-active {
  border-color: var(--kb-gold);
  box-shadow: 0 0 0 1px var(--kb-gold);
}

/* Lightbox overlay */
.gallery-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: var(--z-modal);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.gallery-lightbox.is-open { display: flex; }
.gallery-lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  pointer-events: none;
}
.gallery-lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.gallery-lightbox__close:hover { background: rgba(255,255,255,0.2); }

/* ══════════════════════════════════════════
   PRODUCT INFO PANEL
══════════════════════════════════════════ */
.product-info { display: flex; flex-direction: column; gap: 1.25rem; }

.product-info__badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.product-info__brand {
  font-family: var(--font-condensed);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--kb-gold-dark);
  text-decoration: none;
}
.product-info__brand:hover { color: var(--kb-gold); }

.product-info__name {
  font-family: var(--font-condensed);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--kb-black);
}

/* Rating row */
.product-rating-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}
.product-rating-row .stars { font-size: 1rem; }
.product-rating-val {
  font-family: var(--font-condensed);
  font-size: 1rem;
  font-weight: 700;
  color: var(--kb-charcoal);
}
.product-review-link {
  font-size: 0.875rem;
  color: var(--kb-steel);
  text-decoration: underline;
  transition: color var(--transition-fast);
}
.product-review-link:hover { color: var(--kb-charcoal); }
.product-in-stock-label {
  margin-left: auto;
  font-family: var(--font-condensed);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kb-success);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.product-in-stock-label .stock-dot { background: var(--kb-success); }

.product-divider { height: 1px; background: var(--kb-ash); }

/* Pricing block */
.product-pricing {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.product-price {
  font-family: var(--font-condensed);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--kb-black);
  line-height: 1;
}
.product-price-orig {
  font-size: 1rem;
  color: var(--kb-concrete);
  text-decoration: line-through;
}
.product-saving-badge {
  background: var(--kb-danger);
  color: #fff;
  font-family: var(--font-condensed);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}
.product-price-note {
  width: 100%;
  font-size: 0.8rem;
  color: var(--kb-steel);
  margin-top: 0.25rem;
}

/* Variant / Option selectors (future-proofed) */
.product-options { display: flex; flex-direction: column; gap: 0.875rem; }
.option-group { display: flex; flex-direction: column; gap: 0.4rem; }
.option-label {
  font-family: var(--font-condensed);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kb-graphite);
}
.option-label span { color: var(--kb-gold-dark); font-weight: 700; }
.option-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.option-chip {
  padding: 0.375rem 0.875rem;
  background: var(--kb-pure-white);
  border: 1.5px solid var(--kb-fog);
  border-radius: var(--radius-md);
  font-family: var(--font-condensed);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--kb-graphite);
}
.option-chip:hover { border-color: var(--kb-charcoal); background: var(--kb-ash); }
.option-chip.selected { background: var(--kb-black); color: var(--kb-white); border-color: var(--kb-black); }
.option-chip.unavailable { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }

/* Qty + Add to Cart */
.product-add-row {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-wrap: wrap;
}

.product-qty-label {
  font-family: var(--font-condensed);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--kb-graphite);
  flex-shrink: 0;
}

.qty-control--lg {
  border: 1.5px solid var(--kb-fog);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: inline-flex;
}
.qty-control--lg .qty-control__btn {
  width: 2.625rem;
  height: 2.75rem;
  background: var(--kb-ash);
  border: none;
  font-size: 1.25rem;
  font-weight: 300;
  cursor: pointer;
  transition: background var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-control--lg .qty-control__btn:hover { background: var(--kb-fog); }
.qty-control--lg .qty-control__input {
  width: 3.5rem;
  text-align: center;
  border: none;
  font-family: var(--font-condensed);
  font-size: 1rem;
  font-weight: 700;
  color: var(--kb-black);
  background: var(--kb-pure-white);
  outline: none;
}

.btn-add-cart {
  flex: 1;
  min-width: 180px;
  padding: 0.875rem 1.5rem;
  background: var(--kb-black);
  color: var(--kb-pure-white);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-condensed);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
}
.btn-add-cart:hover { background: var(--kb-gold); color: var(--kb-black); box-shadow: var(--shadow-gold); }
.btn-add-cart:disabled { background: var(--kb-success); color: #fff; cursor: default; box-shadow: none; }
.btn-add-cart:active { transform: scale(0.98); }

.btn-wishlist-lg {
  width: 2.875rem;
  height: 2.875rem;
  background: var(--kb-pure-white);
  border: 1.5px solid var(--kb-fog);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.btn-wishlist-lg:hover { border-color: #E74C3C; color: #E74C3C; }
.btn-wishlist-lg.is-active { background: #FFF0EE; border-color: #E74C3C; color: #E74C3C; }

/* Min order notice */
.min-order-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  background: var(--kb-warning-bg);
  border-left: 3px solid var(--kb-warning);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.825rem;
  color: var(--kb-warning);
}

/* Bulk quote CTA */
.bulk-quote-cta {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1rem;
  background: var(--kb-charcoal);
  border-radius: var(--radius-md);
  color: var(--kb-pure-white);
  text-decoration: none;
  transition: background var(--transition-fast);
}
.bulk-quote-cta:hover { background: var(--kb-iron); }
.bulk-quote-cta__icon { font-size: 1.25rem; }
.bulk-quote-cta__text { flex: 1; }
.bulk-quote-cta__title {
  font-family: var(--font-condensed);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--kb-gold);
}
.bulk-quote-cta__sub { font-size: 0.78rem; color: rgba(255,255,255,0.6); }
.bulk-quote-cta__arrow { color: var(--kb-gold); font-size: 1.1rem; }

/* Trust micro-icons */
.product-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.trust-micro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.625rem 0.5rem;
  background: var(--kb-ash);
  border-radius: var(--radius-md);
  text-align: center;
}
.trust-micro__icon { font-size: 1.1rem; }
.trust-micro__label {
  font-family: var(--font-condensed);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--kb-graphite);
  line-height: 1.3;
}

/* Delivery estimate */
.delivery-estimate {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  background: var(--kb-pure-white);
  border: 1px solid var(--kb-ash);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--kb-graphite);
}
.delivery-estimate__icon { font-size: 1.15rem; }
.delivery-estimate__detail strong { color: var(--kb-black); }

/* ══════════════════════════════════════════
   PRODUCT DETAIL TABS
══════════════════════════════════════════ */
.product-tabs-section {
  border-top: 4px solid var(--kb-ash);
  background: var(--kb-pure-white);
}

.product-tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--kb-ash);
  overflow-x: auto;
  scrollbar-width: none;
}
.product-tabs-nav::-webkit-scrollbar { display: none; }

.product-tab-btn {
  flex-shrink: 0;
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-family: var(--font-condensed);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kb-steel);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: -1px;
  white-space: nowrap;
}
.product-tab-btn:hover { color: var(--kb-charcoal); }
.product-tab-btn.active {
  color: var(--kb-black);
  border-bottom-color: var(--kb-gold);
}

.product-tab-panel { display: none; padding: 2.5rem 0; }
.product-tab-panel.active { display: block; }

/* Description tab */
.product-description {
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--kb-graphite);
}
.product-description p + p { margin-top: 1rem; }
.product-description strong { color: var(--kb-black); }
.product-description ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Specifications tab */
.spec-table {
  width: 100%;
  max-width: 600px;
  border-collapse: collapse;
}
.spec-table tr:nth-child(even) { background: var(--kb-ash); }
.spec-table td {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  vertical-align: top;
  border-bottom: 1px solid var(--kb-fog);
}
.spec-table td:first-child {
  font-family: var(--font-condensed);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--kb-graphite);
  width: 40%;
  white-space: nowrap;
}
.spec-table td:last-child { color: var(--kb-charcoal); }
.spec-table tr:last-child td { border-bottom: none; }

/* Downloads tab */
.downloads-list { display: flex; flex-direction: column; gap: 0.75rem; max-width: 480px; }
.download-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  background: var(--kb-ash);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background var(--transition-fast);
}
.download-item:hover { background: var(--kb-fog); }
.download-item__icon { font-size: 1.5rem; }
.download-item__title {
  font-family: var(--font-condensed);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--kb-charcoal);
}
.download-item__meta { font-size: 0.75rem; color: var(--kb-steel); }
.download-item__btn {
  margin-left: auto;
  font-family: var(--font-condensed);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--kb-gold-dark);
  border-bottom: 1px solid var(--kb-gold);
  padding-bottom: 1px;
}

/* ══════════════════════════════════════════
   REVIEWS SECTION
══════════════════════════════════════════ */
.reviews-section { padding: 3rem 0; background: var(--kb-white); }
.reviews-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
}

/* Rating summary card */
.rating-summary {
  background: var(--kb-pure-white);
  border: 1px solid var(--kb-ash);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.5rem;
  text-align: center;
}
.rating-summary__score {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--kb-black);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.rating-summary__stars { font-size: 1.4rem; margin-bottom: 0.5rem; }
.rating-summary__count { font-size: 0.8rem; color: var(--kb-steel); margin-bottom: 1.25rem; }

.rating-bars { display: flex; flex-direction: column; gap: 0.4rem; text-align: left; }
.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
}
.rating-bar-row__label { width: 1.2rem; flex-shrink: 0; color: var(--kb-steel); text-align: right; font-weight: 600; }
.rating-bar-row__track {
  flex: 1;
  height: 6px;
  background: var(--kb-ash);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.rating-bar-row__fill {
  height: 100%;
  background: var(--kb-gold);
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}
.rating-bar-row__pct { width: 2.5rem; flex-shrink: 0; color: var(--kb-concrete); font-size: 0.72rem; }

/* Review cards */
.reviews-list { display: flex; flex-direction: column; gap: 1.5rem; }
.review-card {
  background: var(--kb-pure-white);
  border: 1px solid var(--kb-ash);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}
.review-card__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.review-card__author-info { display: flex; align-items: center; gap: 0.75rem; }
.review-card__avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--kb-charcoal);
  color: var(--kb-gold);
  font-family: var(--font-condensed);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.review-card__name {
  font-family: var(--font-condensed);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--kb-charcoal);
}
.review-card__verified {
  font-size: 0.72rem;
  color: var(--kb-success);
  font-family: var(--font-condensed);
  letter-spacing: 0.04em;
}
.review-card__meta {
  text-align: right;
}
.review-card__stars { font-size: 0.85rem; }
.review-card__date { font-size: 0.75rem; color: var(--kb-steel); margin-top: 0.15rem; }
.review-card__title {
  font-family: var(--font-condensed);
  font-size: 1rem;
  font-weight: 700;
  color: var(--kb-black);
  margin-bottom: 0.375rem;
}
.review-card__body { font-size: 0.875rem; line-height: 1.65; color: var(--kb-graphite); }
.review-card__footer {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--kb-steel);
}
.review-helpful-btn {
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--kb-fog);
  border-radius: var(--radius-full);
  background: none;
  cursor: pointer;
  font-size: 0.78rem;
  color: var(--kb-steel);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.review-helpful-btn:hover { border-color: var(--kb-concrete); color: var(--kb-charcoal); }
.review-helpful-btn.voted { border-color: var(--kb-gold); color: var(--kb-gold-dark); background: var(--kb-gold-pale); }

/* Review CTA */
.write-review-cta {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--kb-ash);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.write-review-cta__text {
  font-family: var(--font-condensed);
  font-size: 0.9rem;
  color: var(--kb-graphite);
}
.write-review-cta__text strong { color: var(--kb-black); display: block; font-size: 1rem; }

/* ══════════════════════════════════════════
   RELATED PRODUCTS SECTION
══════════════════════════════════════════ */
.related-section {
  background: var(--kb-pure-white);
  padding: 3rem 0;
  border-top: 1px solid var(--kb-ash);
}
.section-header { margin-bottom: 1.75rem; }
.section-header__eyebrow {
  font-family: var(--font-condensed);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--kb-gold);
  margin-bottom: 0.25rem;
}
.section-header__title {
  font-family: var(--font-condensed);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--kb-black);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* Reuse cat-card styles — related cards are identical in markup */

/* ══════════════════════════════════════════
   STICKY MOBILE BUY BAR
══════════════════════════════════════════ */
.sticky-buy-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: var(--kb-pure-white);
  border-top: 1px solid var(--kb-ash);
  padding: 0.75rem 1rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
  align-items: center;
  gap: 0.875rem;
}
.sticky-buy-bar__info { flex: 1; min-width: 0; }
.sticky-buy-bar__name {
  font-family: var(--font-condensed);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--kb-charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-buy-bar__price {
  font-family: var(--font-condensed);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--kb-black);
}
.sticky-buy-bar__cta {
  flex-shrink: 0;
  padding: 0.75rem 1.5rem;
  background: var(--kb-gold);
  color: var(--kb-black);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-condensed);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .product-layout { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .related-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .reviews-layout { grid-template-columns: 1fr; }
  .rating-summary { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; text-align: left; }
  .rating-summary__score { font-size: 3rem; }
  .product-layout { grid-template-columns: 1fr; gap: 2rem; }
  .product-gallery { position: static; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .sticky-buy-bar { display: flex; }
  /* Add bottom padding to page so sticky bar doesn't obscure content */
  .product-page { padding-bottom: 5rem; }
}

@media (max-width: 640px) {
  .product-info__name { font-size: 1.5rem; }
  .product-trust-strip { grid-template-columns: repeat(3, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .product-tab-btn { padding: 0.875rem 1rem; font-size: 0.8rem; }
  .gallery-thumbs { gap: 0.5rem; }
  .gallery-thumb { width: 3.5rem; height: 3.5rem; }
  .rating-summary { grid-template-columns: 1fr; text-align: center; }
  .product-add-row { flex-direction: column; align-items: stretch; }
  .btn-add-cart { min-width: unset; }
}
