:root {
  --bg: #F4EEE7;
  --warm: #F4EEE7;
  --text: #1A1A1A;
  --text-mid: #6B6560;
  --text-light: #A09890;
  --border: #E0D9D0;
  --gold: #C8A96E;
  --accent: #1F3A5F;
  --surface: #fff9f1;
  --success: #14532d;
  --shadow: 0 8px 28px rgba(65, 48, 35, 0.08);
  --container: 1536px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg) !important;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER OVERRIDES (light warm tone) ── */
body > header {
  background: rgba(244, 238, 231, 0.92) !important;
  color: var(--text) !important;
  border-bottom: 1px solid rgba(212, 200, 188, 0.82);
  box-shadow: none !important;
  backdrop-filter: blur(18px) saturate(150%);
}

body > header a,
body > header nav a,
body > header span {
  color: var(--text) !important;
}

body > header + .bg-blue-800 {
  display: none;
}

/* ── PDP OUTER LAYOUT ── */
.pdp-outer {
  display: block;
  padding: 0 0 28px;
}

/* ── LEFT PANEL: flows as stacked blocks on mobile ── */
.pdp-left-panel {
  display: contents;
}

/* ── GALLERY ── */
.pdp-gallery-col {
  display: flex;
  flex-direction: column;
}

/* Mobile: main image first, thumbs below */
.gallery-main { order: 1; }
.product-thumbs, .gallery-thumbs { order: 2; }

.gallery-main {
  width: 100%;
  max-width: 520px;
  max-height: 520px;
  aspect-ratio: 1 / 1;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-main img,
.product-zoom-trigger img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.product-zoom-trigger {
  appearance: none;
  -webkit-appearance: none;
  width: 74%;
  height: 74%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  cursor: zoom-in;
}

.product-zoom-trigger:focus-visible {
  outline: 2px solid rgba(31, 58, 95, 0.55);
  outline-offset: 6px;
  border-radius: 18px;
}

.gallery-thumbs, .product-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.gallery-thumbs::-webkit-scrollbar,
.product-thumbs::-webkit-scrollbar { display: none; }

.gallery-thumb, .product-thumb {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid rgba(212, 200, 188, .92);
  cursor: pointer;
  background: #F4EEE7;
  transition: border-color 0.15s;
  appearance: none;
  padding: 8px;
}

.gallery-thumb:focus-visible,
.product-thumb:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.gallery-thumb.is-active, .gallery-thumb.active,
.product-thumb.is-active, .product-thumb.active { border-color: var(--accent); border-width: 2px; }

.gallery-thumb img, .product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* ── ZOOM MODAL ── */
.product-zoom-modal[hidden] { display: none; }
.product-zoom-open { overflow: hidden; }

.product-zoom-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 28px;
}

.product-zoom-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(20, 20, 20, 0.72);
  cursor: zoom-out;
}

.product-zoom-surface {
  position: relative;
  z-index: 1;
  width: min(96vw, 1100px);
  height: min(90vh, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px;
  border-radius: 20px;
  background: #fff9f1;
  box-shadow: 0 30px 90px rgba(0,0,0,.34);
}

.product-zoom-surface img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  cursor: zoom-out;
}

.product-zoom-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  border: 1px solid rgba(31, 58, 95, 0.18);
  border-radius: 999px;
  background: rgba(255, 249, 241, 0.94);
  color: var(--text);
  cursor: pointer;
}

.product-zoom-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* ── NAME COLUMN ── */
.pdp-name-col {
  padding: 14px 12px 16px;
}

/* ── BREADCRUMB ── */
.product-breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 11px;
  letter-spacing: -0.1px;
  color: var(--text-mid);
}

.product-breadcrumb a {
  color: var(--text-mid);
  text-decoration: none;
}

.product-breadcrumb a:hover { color: var(--text); }

.product-breadcrumb .sep {
  font-size: 11px;
  color: var(--text-mid);
}

/* ── BRAND + TITLE ── */
.product-brand-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 6px;
}

.product-name {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.4px;
  margin-top: 0;
  margin-bottom: 14px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-name--sm { font-size: 25px; }
.product-name--xs { font-size: 20px; letter-spacing: -0.2px; }

/* ── PROMO BANNER ── */
.pdp-promo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #7a5c1e;
  background: rgba(200, 169, 110, .12);
  border: 1px solid var(--gold);
  padding: 11px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.pdp-promo::before {
  content: "🚚";
  font-size: 14px;
  display: inline-block;
  animation: truck-pulse 1.8s ease-in-out infinite;
}

@keyframes truck-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

.pdp-promo-tag {
  font-weight: 700;
  color: #6b4a10;
}

/* ── VARIANTS ── */
.variant-stack,
.product-variation-stack {
  display: grid;
  gap: 18px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
}

#product-variation-picker[hidden],
.product-variation-stack[hidden] {
  display: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}

.variant-group { min-width: 0; }

.variant-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.variant-top h2 {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.variant-value {
  max-width: 55%;
  color: var(--text-mid);
  font-size: 13px;
  text-align: right;
  overflow-wrap: anywhere;
}

.variant-lock-hint {
  margin: 0;
  padding: 4px 0 0;
  color: var(--text-mid);
  font-size: 13px;
  line-height: 1.4;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 10px;
}

.chip {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: #FBF4EB;
  color: var(--text);
  cursor: pointer;
  font-size: inherit;
  font-weight: 400;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.chip:hover { border-color: rgba(138, 106, 82, .56); }

.chip.active {
  border-color: rgba(138, 106, 82, .56);
  background: #F1E7DD;
}

.chip.is-disabled {
  opacity: 0.36;
  cursor: not-allowed;
}

button.chip, button.color-chip {
  font: inherit;
  font-family: inherit;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

button.chip:focus-visible,
button.color-chip:focus-visible {
  outline: 2px solid rgba(31, 58, 95, 0.45);
  outline-offset: 2px;
}

.color-chip {
  position: relative;
  width: 36px;
  height: 36px;
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.color-chip::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(30, 30, 30, 0.12);
  border-radius: 50%;
  background: var(--swatch);
}

.color-chip.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(31, 58, 95, 0.18);
}

.variant-select {
  width: auto;
  max-width: 280px;
  min-height: 40px;
  padding: 8px 36px 8px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B6560' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.product-variation-empty {
  padding: 0 0 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
  font-size: 14px;
}

/* ── RIGHT COLUMN ── */
.pdp-right-col {
  display: block;
}

.pdp-info-col {
  background: linear-gradient(145deg, #fff9f1 0, #f7efe5 100%);
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(212, 200, 188, .35);
  margin: 0 12px;
}

.product-info {
  padding: 18px 22px 24px;
}

/* ── PRICE ── */
.product-price-row {
  display: grid;
  gap: 10px;
  padding-bottom: 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.product-price-main { display: grid; gap: 6px; }

.product-lto-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #92400e;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.4);
  padding: 3px 10px;
  border-radius: 100px;
}

.product-was-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-was-price {
  font-size: 14px;
  color: var(--text-mid);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}

.product-savings-badge {
  font-size: 12px;
  font-weight: 600;
  color: #14532d;
  background: rgba(20, 83, 45, 0.1);
  padding: 2px 8px;
  border-radius: 100px;
}

.product-price-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-price {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.3px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

#product-soldout-display {
  padding-bottom: 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
  font-size: 32px;
  font-weight: 400;
}

.product-used-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #b45309;
  font-size: 13px;
  font-weight: 600;
}

.product-price-note,
.product-delivery-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-mid);
  font-size: 12px;
  font-weight: 400;
}

.product-low-stock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b91c1c;
  font-size: 14px;
  font-weight: 700;
  background: rgba(185, 28, 28, 0.07);
  border: 1px solid rgba(185, 28, 28, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 10px 0;
}

.product-low-stock small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #c0392b;
  margin-top: 2px;
}

.product-low-stock svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.product-release-note {
  color: #b91c1c !important;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 0;
}

.product-used-note svg,
.product-price-note svg,
.product-delivery-note svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--success);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

.stock-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: stockPulse 2.4s ease-in-out infinite;
}

@keyframes stockPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── PAYFLEX ── */
.product-payflex {
  display: none;
  padding: 12px 14px;
  border: 1px solid rgba(212, 200, 188, 0.82);
  border-radius: 12px;
  background: rgba(255, 249, 241, 0.72);
  color: var(--text-mid);
  font-size: 13px;
}

/* ── PAYMENT ICONS ── */
.product-payment-icons {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin-bottom: 4px;
  padding-top: 10px;
}

.product-payment-logo {
  height: 32px;
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 1px solid rgba(212, 200, 188, 0.86);
  border-radius: 8px;
  background: #ffffff;
}

.product-payment-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 64px;
  max-height: 20px;
  object-fit: contain;
}

.product-payment-payflex {
  border-color: rgba(100, 103, 166, 0.2);
  background: #eee7f6;
}

.product-payment-ozow {
  border-color: rgba(46, 107, 77, 0.22);
  background: #eff8f2;
}

/* ── BUTTONS ── */
.product-btn {
  width: 100%;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
}

.product-btn-primary {
  background: var(--accent);
  color: #fff;
}

.product-btn-primary:hover { opacity: 0.88; }

.product-btn-secondary {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.product-btn-secondary:hover {
  background: var(--accent);
  color: #fff;
}

.product-btn-secondary svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ── ASSURANCES ── */
.product-assurances {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 16px;
}

.product-assurances div {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid rgba(212, 200, 188, 0.82);
  border-radius: 10px;
  background: rgba(255, 249, 241, 0.72);
  color: var(--text-mid);
  font-size: 11px;
  font-weight: 500;
}

.product-assurances svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

/* ── IMPORT PROMISE ── */
.import-promise {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(212, 200, 188, 0.82);
  border-radius: 14px;
  background: rgba(236, 227, 217, 0.48);
}

.import-promise h2 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 6px;
}

.import-promise p {
  color: var(--text-mid);
  font-size: 12px;
  line-height: 1.55;
}

/* ── PREVIOUSLY PURCHASED ── */
.product-previously-purchased {
  padding: 10px 14px;
  border: 1px solid rgba(212, 200, 188, 0.82);
  border-radius: 10px;
  background: rgba(255, 249, 241, 0.72);
  font-size: 13px;
}

/* ── TRUST PANEL (desktop right col) ── */
.pdp-trust-panel {
  display: block;
  background: transparent;
  border: 1px solid rgba(212, 200, 188, .35);
  border-radius: 16px;
  padding: 0 20px;
}

.pdp-right-col .pdp-trust-panel {
  background: linear-gradient(145deg, #fff9f1 0, #f7efe5 100%);
  box-shadow: var(--shadow);
  border-radius: 20px;
  margin: 0 12px;
  padding: 0 22px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

.trust-item:last-child { border-bottom: none; }

.trust-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--text-mid);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-title { font-size: 13px; font-weight: 500; margin-bottom: 2px; }
.trust-desc { font-size: 12px; font-weight: 300; color: var(--text-mid); }

/* ── WARM SECTIONS ── */
.warm-sections { margin-top: 20px; }

.details-section {
  padding: 24px 20px;
  background: linear-gradient(145deg, #fff9f1 0, #f7efe5 100%);
  border-radius: 20px;
  margin: 0 12px 12px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(212, 200, 188, .35);
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 14px;
}

.details-section p,
.details-section ul,
.details-section ol {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 8px;
}

.details-section ul { padding-left: 1.25rem; }

/* ── ACCORDION ── */
.accordion-wrap {
  padding: 0 22px;
  margin: 0 12px;
  background: linear-gradient(145deg, #fff9f1 0, #f7efe5 100%);
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(212, 200, 188, .35);
}

.accordion-item,
details.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-item:last-child,
details.accordion-item:last-child { border-bottom: none; }

/* JS-based accordion */
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  font-family: inherit;
  text-align: left;
}

.accordion-icon {
  font-size: 32px;
  font-weight: 300;
  color: var(--text-mid);
  transition: transform 0.2s;
  line-height: 1;
  flex-shrink: 0;
}

.accordion-item.open .accordion-icon { transform: rotate(45deg); }
.accordion-content { display: none; padding-bottom: 18px; }
.accordion-item.open .accordion-content { display: block; }
.accordion-trigger:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

/* Native <details> accordion */
details.accordion-item > summary.accordion-trigger {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  font-family: inherit;
}
details.accordion-item > summary.accordion-trigger::-webkit-details-marker { display: none; }
details.accordion-item > summary.accordion-trigger::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: var(--text-mid);
  transition: transform 0.2s;
  line-height: 1;
  flex-shrink: 0;
}
details.accordion-item[open] > summary.accordion-trigger::after { transform: rotate(45deg); }
details.accordion-item > .accordion-body { padding-bottom: 18px; }
details.accordion-item > summary.accordion-trigger:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

/* Spec table (inside accordion) */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: 8px 0; font-size: 13px; vertical-align: top; }
.spec-table tr:last-child td { border-bottom: none; }
.spec-table th[scope="row"] { color: var(--text-mid); width: 45%; padding-right: 12px; font-weight: 300; text-align: left; }

/* Spec rows (flat, from PHP) */
.product-specs {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--border);
  font-size: 13px;
}

.product-spec-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1px;
  border-bottom: 1px solid var(--border);
}

.product-spec-row:last-child { border-bottom: 0; }

.product-spec-row > div {
  padding: 8px 10px;
  background: rgba(255, 249, 241, 0.74);
}

.product-spec-row > div:first-child {
  color: var(--text-mid);
  font-weight: 400;
}

.product-spec-row > div:last-child {
  color: var(--text);
  font-weight: 500;
  overflow-wrap: anywhere;
}

/* ── MOBILE CART BAR ── */
.mobile-cart-bar {
  display: none;
}

/* ── RELATED PRODUCTS ── */
.product-related-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 16px 34px;
}

.product-related-title {
  margin-bottom: 14px;
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.product-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.product-related-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(212, 200, 188, 0.82);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.product-related-card:hover {
  border-color: rgba(31, 58, 95, 0.38);
  transform: translateY(-1px);
}

.product-related-card-img {
  aspect-ratio: 1 / 1;
  margin: 8px 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
  background: transparent !important;
}

.product-related-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.product-related-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
}

.product-related-card-name {
  color: var(--text);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── AFFILIATE BUTTON ── */
.affiliate-btn img { max-width: 100%; height: auto; border-radius: 8px; margin-top: 8px; }

/* ── PREVIOUSLY PURCHASED NOTICE ── */
.text-sm { font-size: 13px; }
.font-bold { font-weight: 700; }
.text-gray-900 { color: var(--text); }
.text-blue-700 { color: #1d4ed8; }

/* ── FOOTER OVERRIDES ── */
body > footer {
  background: #121212 !important;
  color: rgba(255, 255, 255, 0.72) !important;
}

body > footer a,
body > footer p,
body > footer span,
body > footer div {
  color: rgba(255, 255, 255, 0.72) !important;
}

/* ── MOBILE ── */
@media (max-width: 767px) {
  .mobile-cart-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px 16px max(12px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: rgba(255, 249, 241, 0.96);
    box-shadow: 0 -12px 32px rgba(31, 25, 20, 0.08);
    backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(100%);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .mobile-cart-bar.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-cart-bar strong { display: block; color: var(--text); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
  .mobile-cart-bar span { display: block; margin-top: 2px; color: var(--text-mid); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .mobile-cart-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 100px;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
  }

  body:has(.mobile-cart-bar.is-visible) > footer {
    padding-bottom: max(78px, calc(68px + env(safe-area-inset-bottom))) !important;
  }

  .product-related-mobile-carousel .product-related-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 2px 2px 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .product-related-mobile-carousel .product-related-grid::-webkit-scrollbar { display: none; }

  .product-related-mobile-carousel .product-related-card {
    flex: 0 0 min(72vw, 260px);
    scroll-snap-align: start;
  }

  .pdp-right-col .pdp-trust-panel {
    margin-top: 12px;
  }

  .pdp-promo {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* ── TABLET ── */
@media (min-width: 768px) {
  .product-related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

/* ── DESKTOP ── */
@media (min-width: 1024px) {
  .pdp-outer {
    display: grid;
    grid-template-columns: 9fr 3fr;
    grid-template-rows: auto auto;
    gap: 0 32px;
    max-width: var(--container);
    margin: 20px auto 0;
    padding: 0 24px 40px;
    align-items: start;
  }

  .pdp-content {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .pdp-left-panel {
    display: grid;
    grid-template-columns: 5fr 4fr;
    gap: 0 28px;
    border: 1px solid rgba(212, 200, 188, .35);
    border-radius: 20px;
    padding: 28px 28px 36px;
    align-items: stretch;
    box-shadow: var(--shadow);
    height: 520px;
    overflow: hidden;
  }

  .pdp-gallery-col {
    display: flex;
    flex-direction: row;
    gap: 10px;
  }

  /* Desktop: restore natural order (thumbs left, image right) */
  .pdp-gallery-col .gallery-main { order: 2; }
  .pdp-gallery-col .product-thumbs,
  .pdp-gallery-col .gallery-thumbs { order: 1; }

  .pdp-gallery-col .gallery-main {
    flex: 1;
    border-radius: 14px;
    overflow: hidden;
  }

  .pdp-gallery-col .gallery-thumbs,
  .pdp-gallery-col .product-thumbs {
    flex-direction: column;
    overflow-x: visible;
    overflow-y: auto;
    padding: 0;
    width: 60px;
    flex-shrink: 0;
    gap: 8px;
  }

  .pdp-gallery-col .gallery-thumb,
  .pdp-gallery-col .product-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
  }

  .pdp-name-col {
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }

  .product-name { font-size: 28px; }
  .product-name--sm { font-size: 25px; }
  .product-name--xs { font-size: 20px; }

  .pdp-right-col {
    grid-column: 2;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-self: start;
    position: sticky;
    top: 120px;
  }

  .pdp-info-col {
    margin: 0;
    border-radius: 16px;
  }

  .pdp-right-col .pdp-trust-panel {
    margin: 0;
    border-radius: 16px;
  }

  .pdp-trust-panel {
    margin-top: 0;
  }

  .warm-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    grid-column: 1;
    grid-row: 2;
    margin-top: 32px;
    align-items: stretch;
  }

  .warm-sections > * {
    margin: 0;
  }

  .details-section,
  .accordion-wrap {
    margin: 0;
  }

  .product-related-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
  }

  .product-related-section {
    padding: 32px 24px 48px;
  }
}
