/* ============================================================
   Miró — Product detail page styles (mobile-first)
   ============================================================ */

/* ---------- Section heads (related products) ---------- */
.section-head { margin-bottom: clamp(28px, 5vw, 48px); }
.section-head .eyebrow { margin-bottom: 12px; }
.section-head p:not(.eyebrow) { margin-top: 12px; }

/* ---------- Breadcrumbs strip ---------- */
.pdp-crumbs { padding: 18px 0 6px; }

/* ---------- PDP layout ---------- */
.pdp {
  display: grid; gap: 36px;
  padding-block: 10px clamp(48px, 7vw, 96px);
}
@media (min-width: 900px) {
  .pdp {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    gap: 48px; align-items: start;
  }
  .pdp-buy { position: sticky; top: calc(var(--header-h) + 40px); }
}
@media (min-width: 1200px) {
  .pdp { gap: 76px; }
}

/* ---------- Gallery — main image, thumbnails below, soft shadow
   (per client reference) ---------- */
.pdp-stage {
  position: relative; margin: 0;
  aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}
.pdp-stage img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
}
.pdp-stage img.is-fading { opacity: 0; }

/* Touch / mobile zoom: tap toggles 2×, drag pans via transform-origin */
.pdp-stage.is-touch-zoom { cursor: zoom-out; touch-action: none; }
.pdp-stage.is-touch-zoom img { transform: scale(2); }

/* Desktop hover zoom pane (background-image + background-position only) */
.pdp-zoom {
  position: absolute; inset: 0; z-index: 2;
  opacity: 0; pointer-events: none;
  background-repeat: no-repeat;
  background-size: 225%;
  background-color: var(--cream-soft);
  transition: opacity 0.25s var(--ease);
}
.pdp-zoom.is-active { opacity: 1; }
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .pdp-stage { cursor: zoom-in; }
}

.pdp-thumbs { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.pdp-thumb {
  width: 76px; flex: none;
  aspect-ratio: 3 / 4;
  padding: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--cream-soft);
  opacity: 0.75;
  transition: border-color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.pdp-thumb:hover { opacity: 1; border-color: var(--navy); }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb[aria-pressed="true"] {
  opacity: 1;
  border-color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--navy);
}

/* ---------- Buy column ---------- */
.pdp-buy .eyebrow { margin-bottom: 8px; }
.pdp-title { font-size: clamp(30px, 4.5vw, 42px); }

.pdp-price {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-top: 14px;
}
.pdp-price__now { font-size: 24px; font-weight: 600; color: var(--ink); }
.pdp-price__was { font-size: 17px; font-weight: 400; color: var(--ink-soft); }
.pdp-price__note { margin-top: 6px; font-size: 13px; color: var(--ink-soft); }
.pdp-desc { margin-top: 16px; max-width: 56ch; }

/* ---------- Carat lines (per client "Sample product details") ---------- */
.pdp-carats { margin-top: 18px; }
.pdp-carats p { font-size: 14.5px; color: var(--ink); }
.pdp-carats p + p { margin-top: 4px; }

/* ---------- Option groups (metal / size) ---------- */
.pdp-opt { margin-top: 28px; }
.pdp-opt__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.pdp-opt__label {
  display: block; margin-bottom: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--navy);
}
.pdp-opt__label span {
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em; text-transform: none;
  color: var(--ink-soft);
}
.pdp-opt__guide {
  min-height: 48px; padding: 0 6px; margin-bottom: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--raspberry);
  text-decoration: underline; text-underline-offset: 4px;
  transition: color 0.2s var(--ease);
}
.pdp-opt__guide:hover { color: var(--raspberry-dark); }
.pdp-opt__error {
  margin-top: 10px;
  font-size: 13.5px; font-weight: 600; color: var(--maroon);
}

/* ---------- Size guide panel ---------- */
.sizeguide {
  margin-top: 16px; padding: 18px 18px 20px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}
.sizeguide__head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 6px;
}
.sizeguide__title { font-family: var(--font-title); font-size: 18px; color: var(--navy); }
.sizeguide table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.sizeguide th, .sizeguide td {
  text-align: left; padding: 9px 6px;
  border-bottom: 1px solid var(--line-soft);
}
.sizeguide th {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft);
}
.sizeguide td:last-child, .sizeguide th:last-child { text-align: right; }
.sizeguide__tip { margin-top: 12px; font-size: 13px; color: var(--ink-soft); }

/* ---------- CTA row (qty + add to cart) ---------- */
.pdp-cta { display: flex; gap: 12px; margin-top: 28px; }
.pdp-cta .qty { flex: none; }
.pdp-cta .qty button, .pdp-cta .qty input { height: 58px; }
.pdp-cta .btn { flex: 1; width: auto; min-width: 0; padding-inline: 18px; }
.pdp-book { margin-top: 12px; }

/* ---------- Not-found state ---------- */
.pdp-notfound {
  grid-column: 1 / -1;
  max-width: 560px; margin-inline: auto;
  padding-block: clamp(48px, 10vw, 120px);
  text-align: center;
}
.pdp-notfound h1 { margin-top: 12px; font-size: clamp(30px, 5vw, 44px); }
.pdp-notfound p:not(.eyebrow) { margin-top: 16px; }
.pdp-notfound__ctas {
  display: flex; flex-direction: column; gap: 12px;
  margin-top: 30px;
}
@media (min-width: 600px) {
  .pdp-notfound__ctas { flex-direction: row; justify-content: center; }
}
