/* ============================================================
   PRODUCT.CSS — Khajurbhai Singtel · Product Detail Page
   Redesigned for: accessibility, mobile-first, premium warmth
   Requires: variables.css
   ============================================================ */

/* ── Base overrides for product page ─────────────────────── */
.product-page {
  background: var(--bg-body);
  min-height: 100vh;
  font-family: 'DM Sans', var(--font-body, sans-serif);
}

/* ── Skip Link (accessibility) ────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  background: var(--brand-red, #DA3F3F);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 8px 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb {
  padding: 14px 40px;
  max-width: 1240px;
  margin: 0 auto;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.breadcrumb-list a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.breadcrumb-list a:hover,
.breadcrumb-list a:focus-visible {
  color: var(--brand-red, #DA3F3F);
  text-decoration: underline;
}
.breadcrumb-sep {
  color: var(--border-strong);
  user-select: none;
}
.breadcrumb-list [aria-current="page"] {
  color: var(--text-primary);
  font-weight: 500;
}

/* ── Product Detail Layout ────────────────────────────────── */
.product-detail-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  padding: 16px 40px 72px;
  max-width: 1240px;
  margin: 0 auto;
}

/* ── Image Column ─────────────────────────────────────────── */
.product-image-col {
  position: sticky;
  top: calc(68px + 40px + 16px);
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Mobile trust strip */
.trust-strip--mobile { display: none; }
.trust-strip--desktop { display: flex; }

.trust-strip {
  gap: 10px;
  flex-wrap: wrap;
}
.trust-strip--mobile {
  flex-direction: row;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: var(--bg-surface-2, #F5F0E8);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--border-color, #E8DED2);
}
.trust-chip svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: var(--brand-red, #DA3F3F);
}

/* Main image box */
.image-main {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-surface-2, #FAF6F0);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color, #E8DED2);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.image-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  transition: transform 0.45s cubic-bezier(0.25,0.46,0.45,0.94);
  display: block;
}
.image-main:hover img {
  transform: scale(1.05);
}

/* Badges on image */
.img-overlay-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.img-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.img-pill--discount {
  background: var(--brand-red, #DA3F3F);
  color: #fff;
}
.img-pill--stock {
  background: #D1FAE5;
  color: #065F46;
}
.img-pill--oos {
  background: #FEE2E2;
  color: #991B1B;
}
.img-pill[hidden] { display: none; }

/* Chips row below image */
.image-footer-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.chip--green {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
}
.chip--gold {
  background: #FFFBEB;
  color: #92400E;
  border: 1px solid #FDE68A;
}
.chip svg { flex-shrink: 0; }

/* ── Info Column ──────────────────────────────────────────── */
.product-info-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Live viewers */
.live-viewers {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 100px;
  font-size: 13px;
  color: #78350F;
  margin-bottom: 18px;
  width: fit-content;
  max-width: 100%;
}
.live-viewers strong {
  font-weight: 700;
}
.live-dot {
  width: 8px;
  height: 8px;
  background: #F59E0B;
  border-radius: 50%;
  flex-shrink: 0;
  animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.45; transform: scale(0.65); }
}

/* Discount badge inline */
#discount-badge {
  margin-bottom: 10px;
}
.discount-badge-pill {
  display: inline-flex;
  align-items: center;
  background: #FEE2E2;
  color: var(--brand-red, #DA3F3F);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Product name */
.product-name {
  font-family: 'Playfair Display', var(--font-display, Georgia), serif;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

/* Rating row */
.product-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.stars {
  display: flex;
  gap: 2px;
}
.stars svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.rating-count {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.rating-count:hover,
.rating-count:focus-visible {
  color: var(--brand-red, #DA3F3F);
  text-decoration: underline;
}

/* Divider */
.section-divider {
  height: 1px;
  background: var(--border-color, #E8DED2);
  margin: 4px 0 22px;
}

/* ── Price Block ──────────────────────────────────────────── */
.price-block {
  background: var(--bg-surface-2, #FAF6F0);
  border: 1px solid var(--border-color, #E8DED2);
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 20px;
}
.price-current {
  font-family: 'Playfair Display', var(--font-display, Georgia), serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 8px;
}
.price-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.price-original {
  font-size: 15px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.price-save {
  font-size: 13px;
  font-weight: 700;
  color: #059669;
  background: #ECFDF5;
  padding: 2px 10px;
  border-radius: 100px;
}
.price-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.price-note svg {
  flex-shrink: 0;
  color: #059669;
}
.price-special-badge {
  display: inline-block;
  margin-top: 10px;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

/* ── Out of Stock ─────────────────────────────────────────── */
.oos-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #FEE2E2;
  border: 1px solid #FECACA;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #991B1B;
  margin-bottom: 16px;
}
.oos-alert[hidden] { display: none; }

/* ── Quantity ─────────────────────────────────────────────── */
.qty-section {
  margin-bottom: 20px;
}
.qty-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.qty-control {
  display: inline-flex;
  align-items: stretch;
  border: 1.5px solid var(--border-strong, #C9BAA8);
  border-radius: 10px;
  overflow: hidden;
  height: 48px;
  background: var(--bg-surface, #fff);
}
.qty-btn {
  width: 48px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-2, #FAF6F0);
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  transition: background 0.15s;
  flex-shrink: 0;
  touch-action: manipulation;
}
.qty-btn:hover {
  background: var(--border-color, #E8DED2);
}
.qty-btn:focus-visible {
  outline: 2px solid var(--brand-red, #DA3F3F);
  outline-offset: -2px;
  z-index: 1;
}
.qty-btn:active {
  background: var(--border-strong, #C9BAA8);
}
.qty-btn svg { pointer-events: none; }

input#quantity-input {
  width: 56px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-surface, #fff);
  border: none;
  border-left: 1px solid var(--border-color, #E8DED2);
  border-right: 1px solid var(--border-color, #E8DED2);
  outline: none;
  padding: 0;
  font-family: inherit;
  /* remove native spinner */
  -moz-appearance: textfield;
}
input#quantity-input::-webkit-inner-spin-button,
input#quantity-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}
input#quantity-input:focus-visible {
  background: #FFFBEB;
}

/* ── Action Buttons ───────────────────────────────────────── */
.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 18px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s, opacity 0.18s;
  letter-spacing: 0.01em;
  white-space: nowrap;
  touch-action: manipulation;
  min-height: 52px;
}
.btn:focus-visible {
  outline: 3px solid var(--brand-red, #DA3F3F);
  outline-offset: 2px;
}
.btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Add to Cart */
.btn--cart {
  background: var(--bg-surface, #fff);
  color: var(--text-primary);
  border: 2px solid var(--border-strong, #C9BAA8);
}
.btn--cart:hover:not(:disabled) {
  background: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
}

/* Buy Now */
.btn--buy {
  background: var(--brand-red, #DA3F3F);
  color: #fff;
  border: 2px solid var(--brand-red, #DA3F3F);
}
.btn--buy:hover:not(:disabled) {
  background: var(--brand-red-dark, #B83232);
  border-color: var(--brand-red-dark, #B83232);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(218,63,63,0.32);
}
.btn--buy:active:not(:disabled) {
  transform: translateY(0);
}

/* ── Secondary Actions ────────────────────────────────────── */
.secondary-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-top: 1px solid var(--border-color, #E8DED2);
  border-bottom: 1px solid var(--border-color, #E8DED2);
  margin-bottom: 20px;
}
.sec-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  touch-action: manipulation;
}
.sec-btn:hover {
  background: var(--bg-surface-2, #FAF6F0);
  color: var(--brand-red, #DA3F3F);
}
.sec-btn:focus-visible {
  outline: 2px solid var(--brand-red, #DA3F3F);
  outline-offset: 1px;
}
.sec-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: fill 0.15s;
}

/* Wishlisted state */
.sec-btn[aria-pressed="true"] {
  color: var(--brand-red, #DA3F3F);
}
.sec-btn[aria-pressed="true"] svg {
  fill: var(--brand-red, #DA3F3F);
}

/* ── Delivery Card ────────────────────────────────────────── */
.delivery-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-surface-2, #FAF6F0);
  border: 1px solid var(--border-color, #E8DED2);
  border-radius: 14px;
  margin-bottom: 20px;
}
.delivery-card__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #ECFDF5;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.delivery-card__icon svg {
  width: 18px;
  height: 18px;
  stroke: #047857;
}
.delivery-card__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.delivery-card__value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ── Trust Strip (desktop) ────────────────────────────────── */
.trust-strip--desktop {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  background: var(--bg-surface-2, #FAF6F0);
  border: 1px solid var(--border-color, #E8DED2);
  border-radius: 12px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.trust-item svg {
  width: 20px;
  height: 20px;
  stroke: var(--brand-red, #DA3F3F);
  flex-shrink: 0;
}

/* ── Tabs Section ─────────────────────────────────────────── */
.tabs-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px 72px;
}
.tabs-wrap {
  background: var(--bg-surface, #fff);
  border: 1px solid var(--border-color, #E8DED2);
  border-radius: 20px;
  overflow: hidden;
}

/* Tab nav */
.tab-nav {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border-color, #E8DED2);
  background: var(--bg-surface-2, #FAF6F0);
}
.tab-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  flex-shrink: 0;
  padding: 16px 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  letter-spacing: 0.01em;
}
.tab-btn:hover {
  color: var(--text-primary);
}
.tab-btn:focus-visible {
  outline: 2px solid var(--brand-red, #DA3F3F);
  outline-offset: -4px;
  border-radius: 6px 6px 0 0;
}
.tab-btn.active,
.tab-btn[aria-selected="true"] {
  color: var(--brand-red, #DA3F3F);
  border-bottom-color: var(--brand-red, #DA3F3F);
  font-weight: 700;
}

/* Tab panels */
.tab-body { padding: 0; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.tab-content-inner {
  padding: 32px 36px;
}

/* Info blocks inside tabs */
.info-block {
  margin-bottom: 28px;
}
.info-block:last-child { margin-bottom: 0; }

.info-block h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 10px;
  font-family: 'DM Sans', var(--font-body, sans-serif);
}
.info-block small {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}
.info-block p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0;
}
.info-block ul {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.info-block ul li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  padding-left: 18px;
  position: relative;
}
.info-block ul li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--brand-red, #DA3F3F);
  font-weight: 700;
}

.info-block--highlight {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border: 1px solid #FDE68A;
  border-radius: 14px;
  padding: 20px 22px;
}
.info-block--highlight h3 { color: #92400E; }
.info-block--highlight p  { color: #78350F; }

/* Nutrition table */
.nutrition-table {
  border: 1px solid var(--border-color, #E8DED2);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 4px;
}
.nut-row {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color, #E8DED2);
  gap: 16px;
}
.nut-row:last-child { border-bottom: none; }
.nut-row--head {
  background: var(--bg-surface-2, #FAF6F0);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.nut-row--strong {
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-surface-2, #FAF6F0);
}
.nut-row--indent {
  padding-left: 28px;
  font-size: 13px;
  color: var(--text-muted);
}
.nut-row span:last-child {
  text-align: right;
  font-weight: 600;
  white-space: nowrap;
}

.text-link {
  color: var(--brand-red, #DA3F3F);
  text-decoration: none;
  font-weight: 600;
}
.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
}

.empty-state {
  font-size: 15px;
  color: var(--text-muted);
  text-align: center;
  padding: 32px 0;
}

/* ── Related Products ─────────────────────────────────────── */
.related-section {
  padding: 0 40px 80px;
}
.related-inner {
  max-width: 1240px;
  margin: 0 auto;
}
.section-heading {
  font-family: 'Playfair Display', var(--font-display, Georgia), serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.related-card {
  background: var(--bg-surface, #fff);
  border: 1px solid var(--border-color, #E8DED2);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  will-change: transform;
}
.related-card:hover,
.related-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.10);
  outline: none;
}
.related-card:focus-visible {
  outline: 2px solid var(--brand-red, #DA3F3F);
  outline-offset: 2px;
}
.related-img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-surface-2, #FAF6F0);
}
.related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
  display: block;
}
.related-card:hover .related-img img {
  transform: scale(1.06);
}
.related-info {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.related-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
}
.related-disc {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}
.related-orig {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.related-pct {
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  background: #ECFDF5;
  padding: 1px 7px;
  border-radius: 100px;
}

/* ── Toast ────────────────────────────────────────────────── */
.kb-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: calc(100vw - 48px);
}
.kb-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  background: var(--text-primary, #1A1410);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  animation: toastIn 0.25s cubic-bezier(0.34,1.56,0.64,1) both;
  pointer-events: all;
}
.kb-toast.success { background: #065F46; }
.kb-toast.error   { background: #991B1B; }
.kb-toast.warning { background: #92400E; }
.kb-toast.info    { background: #1E40AF; }
.kb-toast.removing {
  animation: toastOut 0.2s ease forwards;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(16px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateY(8px) scale(0.96); }
}

/* ── Focus visible global (accessible ring) ───────────────── */
:focus-visible {
  outline: 2px solid var(--brand-red, #DA3F3F);
  outline-offset: 2px;
}

/* ── Responsive: 1024px ───────────────────────────────────── */
@media (max-width: 1024px) {
  .product-detail-container {
    gap: 36px;
    padding: 16px 24px 56px;
  }
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .tabs-section,
  .related-section {
    padding-left: 24px;
    padding-right: 24px;
  }
  .breadcrumb {
    padding-left: 24px;
    padding-right: 24px;
  }
  .trust-strip--desktop {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Responsive: 768px (tablet / mobile) ─────────────────── */
@media (max-width: 768px) {
  .breadcrumb {
    display: none; /* clean on mobile; nav handles hierarchy */
  }

  .product-detail-container {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 0 32px;
  }

  /* Image col goes full-width at top */
  .product-image-col {
    position: static;
    border-radius: 0;
    gap: 10px;
    padding: 14px 16px 0;
    background: var(--bg-surface-2, #FAF6F0);
  }
  .image-main {
    border-radius: 16px;
    max-height: 320px;
  }
  .image-footer-chips {
    padding-bottom: 4px;
  }
  .trust-strip--mobile {
    display: flex;
    order: -1; /* show above image */
  }
  .trust-strip--desktop { display: none; }

  /* Info col */
  .product-info-col {
    padding: 20px 16px 0;
  }

  /* Buttons full width stack */
  .product-actions {
    grid-template-columns: 1fr;
  }
  .btn {
    min-height: 54px;
    font-size: 16px;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .tabs-section {
    padding: 0 0 40px;
  }
  .tabs-wrap {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .tab-content-inner {
    padding: 24px 16px;
  }

  .related-section {
    padding: 0 16px 56px;
  }

  .kb-toast-container {
    bottom: 16px;
    right: 16px;
    left: 16px;
  }
}

/* ── Responsive: 480px ────────────────────────────────────── */
@media (max-width: 480px) {
  .image-main { max-height: 260px; }

  .product-name {
    font-size: 22px;
  }
  .price-current {
    font-size: 28px;
  }
  .tab-btn {
    padding: 13px 16px;
    font-size: 13px;
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .related-info { padding: 10px 12px 12px; }
  .related-name { font-size: 13px; }

  .sec-btn span { display: none; } /* icon-only on very small screens */
  .sec-btn { padding: 10px; }

  .nutrition-table .nut-row {
    font-size: 13px;
  }
}

/* ── Dark theme support ───────────────────────────────────── */
[data-theme="dark"] .image-main {
  background: var(--bg-surface-2);
}
[data-theme="dark"] .trust-chip,
[data-theme="dark"] .price-block,
[data-theme="dark"] .delivery-card,
[data-theme="dark"] .trust-item,
[data-theme="dark"] .tabs-wrap,
[data-theme="dark"] .related-card {
  border-color: var(--border-color);
  background: var(--bg-surface-2);
}
[data-theme="dark"] .chip--green {
  background: rgba(4,120,87,0.15);
  border-color: rgba(167,243,208,0.2);
}
[data-theme="dark"] .chip--gold {
  background: rgba(146,64,14,0.15);
  border-color: rgba(253,230,138,0.2);
}
[data-theme="dark"] .live-viewers {
  background: rgba(120,53,15,0.2);
  border-color: rgba(253,230,138,0.2);
}
[data-theme="dark"] .info-block--highlight {
  background: linear-gradient(135deg, rgba(120,53,15,0.2), rgba(146,64,14,0.15));
  border-color: rgba(253,230,138,0.2);
}
[data-theme="dark"] .nut-row--head,
[data-theme="dark"] .nut-row--strong {
  background: var(--bg-surface);
}

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .image-main img,
  .related-card,
  .related-img img,
  .btn--buy,
  .live-dot {
    transition: none;
    animation: none;
  }
}