/* ==========================================================================
   MakeMymini product page (redesign Phase 3) — brief §7.
   Loaded only by product.php, after site.css. Classes are pdp-* prefixed.
   ========================================================================== */

.pdp { padding-block: 1rem clamp(2.5rem, 6vw, 4.5rem); }

/* ---------- Breadcrumb ---------------------------------------------------- */
.pdp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin: 0 0 1.1rem; padding: 0; list-style: none; font-size: 0.85rem; color: var(--muted); }
.pdp-crumbs li + li::before { content: '›'; margin-right: 0.35rem; color: #b3a58f; }
.pdp-crumbs a { color: var(--muted); text-decoration: none; }
.pdp-crumbs a:hover { color: var(--maroon); text-decoration: underline; }
.pdp-crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Two-column layout -------------------------------------------- */
.pdp-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem; align-items: start; }
@media (min-width: 900px) {
  .pdp-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 3rem; }
  .pdp-gallery-col { position: sticky; top: 96px; }
}

/* ---------- Gallery -------------------------------------------------------- */
.pdp-stage { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--radius-card); background: var(--sand); box-shadow: var(--shadow-soft); }
.pdp-slide { position: absolute; inset: 0; display: none; }
.pdp-slide.is-active { display: block; }
.pdp-slide img, .pdp-slide video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-slide video { background: #000; }
.pdp-slide[data-type="image"] { cursor: zoom-in; }
.pdp-slide[data-type="image"] img { transition: transform 0.25s var(--ease); will-change: transform; }
@media (hover: hover) and (pointer: fine) {
  .pdp-slide.is-zoom img { transform: scale(1.9); transform-origin: var(--zx, 50%) var(--zy, 50%); }
}
.pdp-slide .ba { width: 100%; height: 100%; aspect-ratio: auto !important; border-radius: 0; }
.pdp-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; color: #9a8f92; background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255, 255, 255, 0.55) 14px 28px), linear-gradient(160deg, #F8F3F2, #F1E8E8); }
.pdp-ph svg { width: 44px; height: 44px; }
.pdp-ph span { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; }

.pdp-arrow, .pdp-expand { position: absolute; z-index: 3; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--ink); cursor: pointer; box-shadow: var(--shadow-soft); transition: background-color 0.2s var(--ease), transform 0.2s var(--ease); }
.pdp-arrow:hover, .pdp-expand:hover { background: #fff; transform: scale(1.06); }
.pdp-arrow svg, .pdp-expand svg { width: 20px; height: 20px; }
.pdp-arrow--prev { left: 0.75rem; top: 50%; margin-top: -21px; }
.pdp-arrow--next { right: 0.75rem; top: 50%; margin-top: -21px; }
.pdp-expand { right: 0.75rem; top: 0.75rem; }
.pdp-stage[data-single] .pdp-arrow { display: none; }

.pdp-thumbs { display: flex; gap: 0.6rem; margin-top: 0.8rem; overflow-x: auto; padding: 0.2rem; scrollbar-width: none; }
.pdp-thumbs::-webkit-scrollbar { display: none; }
.pdp-thumb { position: relative; flex: 0 0 auto; width: 74px; height: 74px; padding: 0; border: 2.5px solid transparent; border-radius: 16px; overflow: hidden; background: var(--sand); cursor: pointer; opacity: 0.75; transition: opacity 0.2s var(--ease), border-color 0.2s var(--ease); }
.pdp-thumb:hover { opacity: 1; }
.pdp-thumb[aria-current="true"] { border-color: var(--maroon); opacity: 1; }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-thumb-badge { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.15rem 0; background: rgba(27, 20, 17, 0.75); color: #fff; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; text-align: center; }
.pdp-thumb--video { background: var(--night); color: #fff; display: flex; align-items: center; justify-content: center; }
.pdp-thumb--video svg { width: 26px; height: 26px; }

/* Lightbox (native <dialog>: focus trapping and Esc come for free) */
.pdp-lightbox { width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(15, 10, 8, 0.96); color: #fff; }
.pdp-lightbox::backdrop { background: rgba(15, 10, 8, 0.96); }
.pdp-lb-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pdp-lb-track::-webkit-scrollbar { display: none; }
.pdp-lb-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; padding: 3.5rem 1rem 3rem; }
.pdp-lb-slide img, .pdp-lb-slide video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; }
.pdp-lb-close, .pdp-lb-nav { position: absolute; z-index: 2; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 1.4rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.pdp-lb-close:hover, .pdp-lb-nav:hover { background: rgba(255, 255, 255, 0.26); }
.pdp-lb-close { top: 0.9rem; right: 0.9rem; }
.pdp-lb-nav { top: 50%; margin-top: -23px; }
.pdp-lb-nav--prev { left: 0.9rem; }
.pdp-lb-nav--next { right: 0.9rem; }
.pdp-lb-count { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; font-size: 0.85rem; color: #cbbfab; }
@media (max-width: 640px) { .pdp-lb-nav { display: none; } }

/* ---------- Buy box (2026-09-26 layout, DEVELOPER_TASKS "Mobile layout") ---------- */
.pdp-buybox { padding: clamp(1.25rem, 3vw, 2rem); }
.pdp-buybox h1 { margin: 0 0 0.35rem; font-size: clamp(1.55rem, 3.2vw, 2.4rem); line-height: 1.12; letter-spacing: -0.02em; }
.pdp-subtitle { margin: 0 0 0.6rem; font-family: var(--display); font-style: italic; font-size: 1.1rem; color: var(--maroon); }
.pdp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.4rem; margin: 0 0 0.6rem; font-size: 0.86rem; font-weight: 600; color: var(--muted); }
.pdp-meta > * + *::before { content: '\00B7'; margin-right: 0.4rem; }
.pdp-meta a { text-decoration: none; color: inherit; }
.pdp-meta a:hover { color: var(--maroon); }
.pdp-meta .stars { font-size: 0.95rem; letter-spacing: 1px; }

.pdp-price-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0.3rem 0.65rem; margin: 0.75rem 0 0.15rem; }
.pdp-price { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.5rem); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.02em; }
.pdp-mrp { color: #8a7f82; font-size: 1.05rem; text-decoration: line-through; font-weight: 500; }
.pdp-off { padding: 0.2rem 0.5rem; border-radius: 6px; background: #1f7a45; color: #fff; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em; }
.pdp-each { margin: 0 0 0.2rem; min-height: 1.3em; }
.pdp-each-btn { padding: 0; border: 0; background: none; font: inherit; font-size: 0.86rem; font-weight: 700; color: #1f7a45; cursor: pointer; text-align: left; }
.pdp-each-btn:disabled { cursor: default; color: #1f7a45; }
.pdp-each-btn:not(:disabled) { text-decoration: underline; text-underline-offset: 3px; }

/* Packs: one row of equal buttons, qty / total / each */
.pdp-qty { display: grid; grid-template-columns: repeat(var(--tiers, 4), minmax(0, 1fr)); gap: 0.45rem; margin: 1rem 0 0.2rem; }
.pdp-qty-opt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.05rem; padding: 1.05rem 0.2rem 0.5rem; min-height: 44px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; font: inherit; color: var(--ink); cursor: pointer; transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease); }
.pdp-qty-opt:hover { border-color: var(--maroon); }
.pdp-qty-opt.active { border-color: var(--maroon); background: #FBEFF1; box-shadow: 0 0 0 2px rgba(158, 43, 61, 0.15); }
.pdp-qty-q { font-size: 1rem; font-weight: 700; line-height: 1.1; }
.pdp-qty-p { font-size: 0.86rem; font-weight: 700; }
.pdp-qty-e { font-size: 0.7rem; color: var(--muted); white-space: nowrap; }
.pdp-qty-tag { position: absolute; top: -0.6rem; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 0.12rem 0.45rem; border-radius: 99px; background: var(--maroon); color: #fff; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.01em; }
.pdp-qty-tag.gold { background: var(--gold-ink); }

.pdp-delivery { display: flex; align-items: flex-start; gap: 0.6rem; margin: 0.85rem 0; padding: 0.65rem 0.85rem; border-radius: 12px; background: #F2F7F2; font-size: 0.86rem; font-weight: 600; color: #24533a; }
.pdp-delivery svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 0.1rem; color: #2f6b3a; }
.pdp-delivery small { display: block; margin-top: 0.15rem; font-weight: 500; font-size: 0.78rem; color: #4d6b58; }

/* How it works, as 3 icons */
.pdp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; margin: 0 0 1rem; padding: 0; list-style: none; text-align: center; font-size: 0.76rem; font-weight: 600; color: var(--muted); }
.pdp-steps svg { display: block; width: 22px; height: 22px; margin: 0 auto 0.2rem; color: var(--maroon); }

/* ---------- Upload --------------------------------------------------------- */
.pdp-upl-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin: 0 0 0.45rem; }
.pdp-upl-head h2 { margin: 0; font-family: inherit; font-size: 1rem; font-weight: 700; letter-spacing: 0; }
.pdp-upl-count { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.pdp-upload-sub { margin: -0.2rem 0 0.5rem; font-size: 0.8rem; color: var(--muted); }
.pdp-units { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
.pdp-units.is-multi { grid-template-columns: 1fr 1fr; }
.pdp-unit { min-width: 0; }
.pdp-drop { position: relative; display: flex; align-items: center; justify-content: center; min-height: 92px; padding: 0.8rem 0.5rem; overflow: hidden; text-align: center; cursor: pointer; border: 1.5px dashed var(--maroon); border-radius: 14px; background: #FFF9F7; color: var(--maroon); transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease); }
.pdp-drop:hover, .pdp-drop.drag { background: #FDF0F2; }
.pdp-drop:focus-visible { outline-offset: 2px; }
.pdp-drop.attention-pulse { animation: pdp-pulse 1.4s ease-in-out 2; }
@keyframes pdp-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(158, 43, 61, 0.35); } 50% { box-shadow: 0 0 0 10px rgba(158, 43, 61, 0); } }
.pdp-drop-state { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 0.1rem; }
.pdp-drop svg { width: 24px; height: 24px; margin-bottom: 0.15rem; }
.pdp-drop-text { font-size: 0.86rem; font-weight: 700; }
.pdp-drop-sub { font-size: 0.72rem; font-weight: 500; color: var(--muted); }
.pdp-drop-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.28; }
.pdp-drop.is-done { border-style: solid; border-color: #1f7a45; background: #F1FAF4; color: #1f7a45; }
.pdp-drop.is-done .pdp-drop-img { opacity: 0.35; }
.pdp-drop.is-done .pdp-drop-state, .pdp-drop.is-busy .pdp-drop-state, .pdp-drop.is-warn .pdp-drop-state { padding: 0.25rem 0.5rem; border-radius: 10px; background: rgba(255, 255, 255, 0.88); }
.pdp-drop.is-busy { cursor: progress; color: var(--muted); border-style: solid; border-color: var(--line); }
.pdp-drop.is-warn { border-style: solid; border-color: #a8560c; color: #a8560c; }
.pdp-unit-msg { margin: 0.35rem 0 0; font-size: 0.8rem; font-weight: 600; line-height: 1.4; color: var(--maroon-deep); }
.pdp-unit-msg.warn { color: #a8560c; }
.pdp-error { margin: 0.3rem 0 0; font-size: 0.86rem; font-weight: 700; color: var(--maroon-deep); }
.pdp-error:empty { display: none; }

.pdp-note-link { display: inline-block; margin: 0.55rem 0 0; padding: 0.3rem 0; border: 0; background: none; font: inherit; font-size: 0.86rem; font-weight: 700; color: var(--maroon); cursor: pointer; }
.pdp-notes { margin-top: 0.4rem; }
.pdp-notes[hidden], .pdp-note-link[hidden], .pdp-upload-sub[hidden], .pdp-unit-msg[hidden] { display: none; }
.pdp-notes textarea { resize: vertical; }

.pdp-buy { margin: 0.75rem 0 0; }
.pdp-buy .btn-primary { width: 100%; font-weight: 700; }
.pdp-secure { display: flex; align-items: center; justify-content: center; gap: 0.35rem; margin: 0.55rem 0 0; font-size: 0.76rem; color: var(--muted); text-align: center; }
.pdp-secure svg { width: 14px; height: 14px; flex-shrink: 0; }
.pdp-consent { margin: 0.55rem 0 0; font-size: 0.72rem; line-height: 1.5; color: var(--muted); }
.pdp-consent a { color: var(--maroon); font-weight: 600; }
.pdp-optin { margin: 0.55rem 0 0; font-size: 0.74rem; line-height: 1.5; color: var(--muted); text-align: center; }
.pdp-status { margin: 0.5rem 0 0; font-size: 0.85rem; color: var(--sage); font-weight: 600; }
.pdp-status:empty { display: none; }
.pdp-share { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 0.9rem; font-size: 0.86rem; font-weight: 700; color: #1a7f45; text-decoration: none; }
.pdp-share svg { width: 18px; height: 18px; }
.pdp-share:hover { text-decoration: underline; }

.pdp-trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.pdp-trust li { display: flex; align-items: flex-start; gap: 0.45rem; padding: 0.55rem 0.6rem; border-radius: 10px; background: #F7EFDF; font-size: 0.78rem; font-weight: 600; line-height: 1.3; }
.pdp-trust svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--maroon); }

/* ---------- Real reviews (next to the Buy button) ---------------------------- */
.pdp-reviews { margin-top: 1.25rem; }
.pdp-reviews h2 { margin: 0 0 0.7rem; font-size: 1.25rem; }
.pdp-rv-track { display: flex; gap: 0.7rem; overflow-x: auto; padding-bottom: 0.3rem; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pdp-rv-track::-webkit-scrollbar { display: none; }
.pdp-rv { flex: 0 0 min(240px, 72vw); margin: 0; padding: 0.75rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; scroll-snap-align: start; font-size: 0.84rem; }
.pdp-rv img { display: block; width: 100%; height: 140px; object-fit: cover; border-radius: 10px; margin-bottom: 0.5rem; }
.pdp-rv .stars { display: block; font-size: 0.9rem; letter-spacing: 1px; }
.pdp-rv p { margin: 0.3rem 0; color: #4d443b; }
.pdp-rv figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-weight: 700; font-size: 0.8rem; }

/* ---------- Accordions ------------------------------------------------------ */
.pdp-acc-wrap { margin-top: 1.25rem; }
.pdp-acc { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; margin-bottom: 0.6rem; }
.pdp-acc[open] { border-color: rgba(158, 43, 61, 0.35); }
.pdp-acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.pdp-acc summary::-webkit-details-marker { display: none; }
.pdp-acc summary::after { content: '+'; flex-shrink: 0; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--sand); color: var(--maroon); font-family: var(--body-font); font-size: 1.2rem; line-height: 1; transition: transform 0.25s var(--ease), background-color 0.25s var(--ease); }
.pdp-acc[open] summary::after { transform: rotate(45deg); background: var(--maroon); color: #fff; }
.pdp-acc-body { padding: 0 1.25rem 1.15rem; font-size: 0.93rem; color: #4d443b; }
.pdp-acc-body p { margin: 0 0 0.6rem; }
.pdp-acc-body ul { margin: 0; padding-left: 1.15rem; }
.pdp-acc-body li { margin-bottom: 0.4rem; }
.pdp-acc-body a { color: var(--maroon); font-weight: 600; }
.pdp-acc-body dl { margin: 0; }
.pdp-acc-body dt { font-weight: 700; }
.pdp-acc-body dd { margin: 0 0 0.5rem; }

/* ---------- Lower sections --------------------------------------------------- */
.pdp-section { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.pdp-section > h2 { margin: 0 0 1.25rem; }

.pdp-gift { display: grid; gap: 1.25rem; align-items: center; padding: clamp(1.25rem, 3vw, 2rem); background: var(--night); color: #E5DBC9; }
@media (min-width: 720px) { .pdp-gift { grid-template-columns: 180px 1fr auto; } }
.pdp-gift-img { aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: #2a201b; }
.pdp-gift-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-gift h2 { margin: 0 0 0.4rem; color: #fff; font-size: 1.6rem; }
.pdp-gift p { margin: 0; color: #cbbfab; }
.pdp-gift .price-tag { color: #F0B968; }

/* ---------- Hero reveal loop + dots ------------------------------------------ */
.pdp-slide[data-type="hero"] { cursor: pointer; background: #111; }
.pdp-slide .pdp-hero-poster, .pdp-slide .pdp-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pdp-slide .pdp-hero-video { background: transparent; }
.pdp-pill { position: absolute; left: 0.75rem; top: 0.75rem; z-index: 2; padding: 0.3rem 0.65rem; border-radius: 99px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 0.75rem; font-weight: 600; }
.pdp-dots { display: none; }

/* ---------- Sticky mobile buy bar --------------------------------------------- */
.pdp-sticky { display: none; }
@media (max-width: 640px) {
  body.has-sticky-cta { padding-bottom: 76px; }
  .pdp-sticky { display: flex; align-items: center; gap: 0.75rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 0.6rem 0.9rem calc(0.65rem + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, 0.97); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(60, 40, 20, 0.08); }
  .pdp-sticky-price { line-height: 1.1; white-space: nowrap; }
  .pdp-sticky-price b { display: block; font-family: var(--display); font-size: 1.2rem; color: var(--ink); }
  .pdp-sticky-price s { font-size: 0.78rem; color: #8a7f82; }
  .pdp-sticky .btn { flex: 1; min-height: 48px; padding-inline: 0.8rem; font-weight: 700; }
}

/* ---------- Phone layout (up to 899px): the offer strip replaces the breadcrumb,
   the gallery goes edge to edge with dots, the buy box loses its card frame --- */
@media (max-width: 899px) {
  .pdp-crumbs-nav--desktop { display: none; }
  .has-offer-strip .pdp { padding-top: 0; }
  .pdp-grid { gap: 1rem; }
  .pdp-gallery-col { margin-inline: calc(var(--gutter) * -1); }
  .pdp-stage { border-radius: 0; box-shadow: none; }
  .pdp-thumbs, .pdp-arrow { display: none; }
  .pdp-dots { position: absolute; left: 0; right: 0; bottom: 0.7rem; z-index: 2; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
  .pdp-dots span { width: 7px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.55); transition: width 0.2s var(--ease); }
  .pdp-dots span.on { width: 18px; background: #fff; }
  .pdp-buybox { padding: 0; background: none; box-shadow: none; border-radius: 0; }
}
