/* =========================================================
   Product detail page
   ========================================================= */

/* Single-product spec strip — clean read-only summary for the
   one SKU that this page represents (replaces the multi-option
   selector + 19-color swatch grid we used to show). */
.product-spec-strip {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0 0 32px;
}
.product-spec-strip__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.product-spec-strip__row:last-child { border-bottom: 0; }
.product-spec-strip__row .k {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}
.product-spec-strip__row .v {
  font-family: var(--serif);
  font-style: normal;
  font-size: 1.1rem;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.product-spec-strip__chip {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--swatch, var(--accent));
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: inline-block;
  flex-shrink: 0;
}

.product-detail {
  padding: calc(var(--header-h) + 60px) 0 0;
  background: var(--bg);
}
.product-crumbs {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}
.product-crumbs a { color: var(--muted); }
.product-crumbs a:hover { color: var(--accent); }
.product-crumbs span { color: var(--ink); }

.product-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  padding-bottom: clamp(80px, 10vw, 120px);
  align-items: start;
}

/* Multi-image product gallery — main image + thumbnail strip */
.product-gallery {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  user-select: none;
}
.product-gallery__main {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, #fdf8ed 0%, #ece3d4 100%);
  box-shadow: var(--shadow-md);
}
.product-gallery__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .55s ease, transform .9s cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
  pointer-events: none;
}
.product-gallery__slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.product-gallery__slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.product-gallery__progress {
  position: absolute;
  top: 24px; right: 24px;
  font-family: var(--serif);
  font-style: normal;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(21, 17, 15, 0.55);
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: 999px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.product-gallery__progress .sep { opacity: 0.5; }
.product-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 0;
  color: var(--ink);
  display: grid; place-items: center;
  cursor: none;
  z-index: 4;
  opacity: 0;
  transition: opacity .35s ease, background-color .25s ease, transform .35s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.product-gallery__main:hover .product-gallery__nav {
  opacity: 1;
}
.product-gallery__nav:hover {
  background: var(--ink);
  color: #fff;
}
.product-gallery__nav--prev { left: 20px; }
.product-gallery__nav--next { right: 20px; }
.product-gallery__nav:hover { transform: translateY(-50%) scale(1.06); }

/* Thumbnail strip */
.product-gallery__thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  scrollbar-width: thin;
}
.product-gallery__thumb {
  position: relative;
  flex: 1 0 72px;
  max-width: 132px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-soft);
  border: 0;
  padding: 0;
  cursor: none;
  isolation: isolate;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.product-gallery__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid transparent;
  transition: border-color .3s ease;
  pointer-events: none;
  z-index: 2;
}
.product-gallery__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .55s cubic-bezier(.2,.8,.2,1), opacity .3s ease;
  opacity: 0.6;
}
.product-gallery__thumb:hover img {
  opacity: 0.9;
  transform: scale(1.04);
}
.product-gallery__thumb.is-active::after {
  border-color: var(--ink);
}
.product-gallery__thumb.is-active img {
  opacity: 1;
}

/* Info column */
.product-info { padding-top: 16px; }
.product-info .eyebrow { color: var(--accent); }
.product-info h1 {
  font-family: var(--serif); font-style: normal; font-weight: 500;
  font-size: 3.15rem;
  line-height: 1.08;
  margin: 8px 0 16px;
  letter-spacing: 0;
}
.product-info .price {
  font-family: var(--serif); font-style: normal;
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 12px;
}
.product-info .price strong { color: var(--ink); font-weight: 500; }
.product-info > p {
  font-size: 1rem; line-height: 1.65;
  color: var(--ink-soft);
  max-width: 480px; margin-bottom: 32px;
}
.product-info__desc {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 0 28px;
}

.product-swatches {
  display: flex; gap: 12px;
  margin-bottom: 32px; flex-wrap: wrap;
}
.product-swatch {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  letter-spacing: 0.06em;
  cursor: none;
  transition: border-color .25s, background-color .25s;
}
.product-swatch.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
.product-swatch:hover { border-color: var(--ink); }
.product-swatch__chip {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  background: var(--swatch, #8b6f47);
  flex-shrink: 0;
}

.product-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.product-option {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  background: #fff;
}
.product-option__label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: block; margin-bottom: 8px;
}
.product-option__value {
  font-family: var(--serif); font-style: normal;
  font-size: 1.2rem; color: var(--ink);
}
.product-option__chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.product-option__chip {
  font-size: 12px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: none;
  transition: border-color .25s, background-color .25s, color .25s;
}
.product-option__chip:hover, .product-option__chip.is-active {
  border-color: var(--ink); background: var(--ink); color: #fff;
}

/* Stack the two CTAs vertically so they read as a clear primary/secondary
   pair and don't wrap awkwardly when the right column is narrow. */
.product-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
  align-items: stretch;
}
.product-actions .btn {
  width: 100%;
  justify-content: center;
}
.product-quantity {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}
.product-quantity button {
  width: 44px; height: 50px;
  background: transparent; border: 0;
  font-size: 1.1rem;
  cursor: none;
  color: var(--ink);
  font-family: var(--sans);
}
.product-quantity input {
  width: 56px;
  border: 0; background: transparent;
  text-align: center;
  font-family: var(--serif);
  font-size: 1.1rem;
  outline: none;
}

.product-meta {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-top: 16px;
}
.product-meta__row {
  padding: 16px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.product-meta__row span:first-child {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.product-meta__row span:last-child {
  font-family: var(--serif); font-style: normal;
  font-size: 1rem; color: var(--ink);
}

/* Before / After */
.before-after { background: var(--bg-soft); padding: clamp(80px, 12vw, 140px) 0; }
.ba-frame {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  user-select: none;
  cursor: ew-resize;
  background: #2a221c;
}
.ba-frame img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
}
.ba-frame__after { clip-path: inset(0 0 0 50%); will-change: clip-path; }
.ba-frame__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255,255,255,0.85);
  transform: translateX(-50%);
  pointer-events: none;
  will-change: transform, left;
}
.ba-frame__handle::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.ba-frame__handle::after {
  content: "\2039 \203A";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  letter-spacing: 6px;
  font-size: 14px; color: var(--ink);
  font-family: var(--sans); font-weight: 600;
  z-index: 2;
}
.ba-frame__label {
  position: absolute;
  top: 24px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(21,17,15,0.7);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: 999px;
  z-index: 3;
}
.ba-frame__label--before { left: 24px; }
.ba-frame__label--after { right: 24px; }

/* Product description */
.product-description { padding: clamp(72px, 10vw, 120px) 0; background: var(--bg); }
.product-description__grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1fr);
  gap: clamp(42px, 6vw, 92px);
  align-items: start;
}
.product-description__head {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  max-width: 440px;
}
.product-description h2 {
  font-style: normal; font-weight: 500;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.05;
  margin: 10px 0 0;
}
.product-description__lede {
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.55;
  max-width: 420px;
  margin: 22px 0 0;
}
.product-description__content {
  color: var(--ink-soft);
  font-size: 1.03rem;
  line-height: 1.72;
  overflow: hidden;
}
.product-description__content,
.product-description__content :where(div, section, article, p, ul, ol, li, table, thead, tbody, tr, th, td) {
  background: transparent !important;
}
.product-description__content :where(*) {
  max-width: 100%;
  color: inherit;
  letter-spacing: 0;
}
.product-description__content :where(h1, h2, h3, h4, h5, h6, strong, b) {
  color: var(--ink);
}
.product-description__content :where(h1, h2, h3) {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 18px;
}
.product-description__content p {
  margin: 0 0 18px;
}
.product-description__content :where(ul, ol) {
  margin: 0 0 22px 1.2em;
  padding: 0;
}
.product-description__content li {
  margin-bottom: 8px;
}
.product-description__content table {
  width: 100% !important;
  border-collapse: collapse;
  margin: 20px 0;
  display: block;
  overflow-x: auto;
}
.product-description__content :where(th, td) {
  border: 1px solid var(--line);
  padding: 12px 14px;
  vertical-align: top;
}
.product-description__content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
  margin: 22px 0;
}

/* Specs */
.product-specs { background: var(--bg-soft); padding: clamp(80px, 12vw, 140px) 0; }
.product-specs__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
}
.product-specs h2 { font-style: normal; font-weight: 500; }
.product-specs__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.product-specs__row {
  display: flex;
  justify-content: space-between; align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  grid-column: span 2;
}
.product-specs__row .k {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.product-specs__row .v {
  font-family: var(--serif); font-style: normal;
  font-size: 1.05rem; color: var(--ink);
  text-align: right;
}

.product-related { padding: clamp(80px, 12vw, 140px) 0; background: var(--bg); }

@media (max-width: 1024px) {
  .product-hero { grid-template-columns: 1fr; }
  .product-gallery { position: relative; top: 0; max-width: 540px; margin: 0 auto; }
  .product-description__grid { grid-template-columns: 1fr; }
  .product-description__head { position: static; max-width: 680px; }
  .product-specs__grid { grid-template-columns: 1fr; }
  .product-info h1 { font-size: 2.75rem; }
}
@media (max-width: 720px) {
  .product-options { grid-template-columns: 1fr; }
  .product-meta { grid-template-columns: 1fr; }
  .product-gallery__thumb { flex-basis: 58px; }
  .product-info h1 { font-size: 2.15rem; }
}

/* =========================================================
   Sticky inquire bar — bottom-fixed, slides in after hero
   ========================================================= */
.product-sticky-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px -20px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.product-sticky-bar.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}
.product-sticky-bar__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px clamp(16px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.product-sticky-bar__info {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.product-sticky-bar__chip {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--swatch, var(--accent));
  border: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}
.product-sticky-bar__info > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.product-sticky-bar__info strong {
  font-family: var(--serif);
  font-style: normal;
  font-size: 1.05rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-sticky-bar__info span {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}
.product-sticky-bar .btn {
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .product-sticky-bar__inner {
    padding: 10px 16px;
    gap: 12px;
  }
  .product-sticky-bar__info span { display: none; }
  .product-sticky-bar__chip { width: 28px; height: 28px; }
  .product-sticky-bar__info strong { font-size: 0.95rem; }
  .product-sticky-bar .btn { padding: 10px 16px; font-size: 12px; }
}
/* Don't crowd the bottom-left WhatsApp FAB */
@media (min-width: 720px) {
  .product-sticky-bar.is-visible ~ .inquiry-fab,
  body:has(.product-sticky-bar.is-visible) .inquiry-fab {
    bottom: 92px;
  }
}
