/* =========================================================
   MIEL STUDIO × SOI PARIS PDP LAYOUT
   Layout mirrors soi-paris.com/products/* 1:1:
   announcement → header → [thumbs | main image] + [fiche]
   → same-model grid → reviews → instagram → bandeau → footer
   ========================================================= */
:root {
  --white: #FFFFFF;
  --blush: #FDF8F7;          /* SOI .primary__color--light */
  --blush-deep: #F7ECEA;
  --ink: #34342B;            /* SOI .black */
  --ink-2: #545454;          /* SOI .dark__color */
  --line: #CBCBCB;           /* SOI bulle border */
  --hair: #ECE7E3;
  --rose: #A8475F;           /* Miel accent, AA on white */
  --font: 'Jost', 'Noto Sans Thai', system-ui, sans-serif;
  --page: 1440px;
  --ease: cubic-bezier(.25, .8, .25, 1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.page__width { max-width: var(--page); margin: 0 auto; padding: 0 40px; }
@media (max-width: 767px) { .page__width { padding: 0 16px; } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.upper { text-transform: uppercase; letter-spacing: .06em; }

/* ---------- 1. Announcement bar ---------- */
.announcement {
  background: var(--blush-deep);
  color: var(--ink);
  min-height: 35px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; text-align: center; padding: 6px 16px;
}
.announcement strong { font-weight: 600; }

/* ---------- 2. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--hair);
}
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 72px;
}
.nav-main { display: flex; gap: 28px; }
.nav-main a { text-decoration: none; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav-main a:hover { border-color: var(--ink); }
.logo { text-decoration: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.logo svg { height: 42px; width: auto; display: block; }
.nav-icons { display: flex; justify-content: flex-end; gap: 18px; align-items: center; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; position: relative; }
.icon-btn svg { width: 20px; height: 20px; stroke: var(--ink); fill: none; stroke-width: 1.3; }
.bag-count {
  position: absolute; top: 4px; right: 2px;
  min-width: 17px; height: 17px; border-radius: 9px;
  background: var(--ink); color: var(--white);
  font-size: 12px; line-height: 17px; text-align: center; padding: 0 4px;
}
.burger { display: none; }
@media (max-width: 960px) {
  .nav-main { display: none; }
  .burger { display: inline-grid; }
  .header-inner { height: 60px; }
  .logo svg { height: 34px; }
}

/* ---------- 3. Product top container (SOI 50 / 50) ---------- */
#product__top--container {
  display: flex; gap: 0; align-items: flex-start;
  padding-top: 32px; padding-bottom: 84px;
}
#product__images--container {
  width: 55%; flex: 0 0 55%;
  display: flex; flex-direction: row-reverse; gap: 20px;
  position: sticky; top: 92px;
}
.product__description-wrap { flex: 1; padding-left: 72px; padding-right: 16px; min-width: 0; max-width: 560px; }
@media (max-width: 1100px) { .product__description-wrap { padding-left: 36px; max-width: none; } }
@media (max-width: 900px) {
  #product__top--container { flex-direction: column; padding-top: 0; }
  #product__images--container { width: 100%; flex-basis: auto; position: static; flex-direction: column; gap: 10px; }
  .product__description-wrap { padding-left: 0; padding-top: 24px; width: 100%; }
}

/* Main stage (#swiper__product): fade slides, only active visible */
#swiper__product {
  flex-grow: 2; position: relative; overflow: hidden;
  aspect-ratio: 2 / 3; background: var(--blush);
  cursor: zoom-in; touch-action: pan-y;
}
.swiper-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .6s var(--ease);
}
.swiper-slide.is-active { opacity: 1; z-index: 1; }
.swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.soi-taille-cartouche {
  position: absolute; left: 50%; bottom: 38px; transform: translateX(-50%);
  z-index: 3; pointer-events: none; max-width: calc(100% - 32px);
  padding: 8px 16px; border-radius: 20px;
  background: rgba(32, 30, 30, .62);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #fff; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stage-dots { display: none; }
@media (max-width: 900px) {
  #swiper__product { aspect-ratio: 4 / 5; }
  .stage-dots {
    display: flex; gap: 6px; justify-content: center;
    position: absolute; left: 0; right: 0; bottom: 12px; z-index: 3;
  }
  .stage-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); transition: background .3s, width .3s; }
  .stage-dots span.on { background: #fff; width: 18px; border-radius: 3px; }
  .soi-taille-cartouche { bottom: 32px; }
}

/* Thumbnail rail (SOI: 90px wide, prev ^ / next v polyline arrows) */
.gallery-thumbs {
  width: 90px; flex: 0 0 90px;
  display: flex; flex-direction: column; align-items: center;
}
.thumb-arrow {
  width: 100%; height: 34px; display: grid; place-items: center;
  transition: opacity .25s;
}
.thumb-arrow svg { width: 21px; height: 11px; stroke: var(--ink); fill: none; stroke-width: 1.25; }
.thumb-arrow[disabled] { opacity: .2; cursor: default; }
.thumb-viewport {
  height: calc(5 * 144px + 4 * 10px);   /* exactly 5 thumbnails visible */
  overflow: hidden; width: 100%; position: relative;
}
.thumb-track {
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .55s var(--ease);
  will-change: transform;
}
.thumb {
  width: 90px; height: 144px; flex: 0 0 144px;
  padding: 0; position: relative; overflow: hidden;
  opacity: .55; transition: opacity .3s;
}
.thumb::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--ink); transform: scaleX(0); transition: transform .35s var(--ease);
}
.thumb:hover { opacity: .85; }
.thumb.is-active { opacity: 1; }
.thumb.is-active::after { transform: scaleX(1); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1280px) {
  .thumb-viewport { height: calc(4 * 144px + 3 * 10px); }
}
@media (max-width: 900px) {
  .gallery-thumbs { width: 100%; flex-basis: auto; flex-direction: row; }
  .thumb-arrow { display: none; }
  .thumb-viewport { height: auto; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
  .thumb-viewport::-webkit-scrollbar { display: none; }
  .thumb-track { flex-direction: row; transform: none !important; }
  .thumb { width: 64px; height: 96px; flex: 0 0 64px; scroll-snap-align: start; }
}

/* ---------- Product fiche (Quiet Luxury / Editorial Breathing Room) ---------- */
.product__title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.product__title--text {
  font-size: clamp(22px, 1.1rem + 1vw, 30px);
  line-height: 1.25; font-weight: 500; letter-spacing: .02em;
  margin: 0 0 10px;
}
.product__title--text span { font-weight: 400; color: var(--ink-2); font-size: .82em; margin-left: 6px; }
.price-row {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 32px; font-size: 17px; color: var(--ink);
}
.price__text--product { font-size: 18px; font-weight: 500; letter-spacing: .02em; }
.price-sep { color: var(--line); }
.duo-note { font-size: 15px; color: var(--ink-2); font-weight: 400; }

.option-label {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 13px; font-weight: 500; letter-spacing: .04em;
  margin-bottom: 14px; color: var(--ink-2);
}
.option-label .value { font-weight: 500; color: var(--ink); font-size: 13.5px; }

/* SOI photo-bubble swatches */
.bulles { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; list-style: none; }
.bulle {
  width: 42px; height: 42px; border-radius: 50%;
  padding: 2px; border: 1px solid var(--line);
  transition: border-color .2s, transform .2s;
}
.bulle:hover { transform: scale(1.05); }
.bulle[aria-checked="true"] { border: 1.5px solid var(--ink); }
.bulle span { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; position: relative; }
.bulle span::before { content: ''; position: absolute; inset: 0; background: var(--sw); }
.bulle img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; transform: scale(2.4); mix-blend-mode: normal; }

/* Inline quiet size row */
.size-inline-row {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px;
  font-size: 13.5px; color: var(--ink-2); margin-bottom: 28px;
}
.size-inline-row b { color: var(--ink); font-weight: 500; }
.size-guide-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--ink-2);
  border-bottom: 1px solid var(--line); padding-bottom: 1px;
  transition: color .2s, border-color .2s;
}
.size-guide-btn:hover { color: var(--ink); border-color: var(--ink); }

/* SOI add-to-cart row: plain black button + outlined heart */
.add__to__cart--container { display: flex; align-items: center; gap: 14px; }
.button__plain--black {
  flex: 1; min-height: 48px; padding: 12px 25px;
  background: var(--ink); color: var(--blush); border: 1px solid var(--ink); border-radius: 0;
  font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background .25s linear, color .25s linear;
}
.button__plain--black:hover { background: transparent; color: var(--ink); }
.button__outline {
  width: 100%; min-height: 46px; margin-top: 10px;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  font-size: 13px; font-weight: 500; letter-spacing: .06em;
  transition: border-color .25s linear, background .25s linear;
}
.button__outline:hover { border-color: var(--ink); background: var(--blush); }
.heart-btn { width: 46px; height: 48px; display: grid; place-items: center; border: 1px solid var(--hair); }
.heart-btn svg { width: 20px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.2; transition: fill .2s; }
.heart-btn[aria-pressed="true"] svg { fill: var(--rose); stroke: var(--rose); }
.pay-note { font-size: 13px; color: var(--ink-2); margin-top: 10px; }

/* BitBranding 4-Line Description + Clean Spec Accordion */
.four-line-copy {
  margin-top: 36px; font-size: 14px; line-height: 1.78; color: var(--ink);
}
.four-line-copy p + p { margin-top: 14px; }
.four-line-copy p.restraint-line { color: var(--ink-2); font-size: 13.5px; }
.quiet-accordion {
  margin-top: 28px; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
}
.quiet-accordion summary {
  list-style: none; cursor: pointer; padding: 16px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; font-weight: 500; letter-spacing: .06em; color: var(--ink);
}
.quiet-accordion summary::-webkit-details-marker { display: none; }
.quiet-accordion .acc-icon { font-size: 16px; font-weight: 300; color: var(--ink-2); transition: transform .25s; }
.quiet-accordion[open] .acc-icon { transform: rotate(45deg); }
.quiet-accordion-body {
  padding: 0 0 22px; font-size: 13.5px; line-height: 1.8; color: var(--ink-2);
}
.spec-list { list-style: none; padding: 0; margin: 0; }
.spec-list li + li { margin-top: 6px; }
.spec-list b { color: var(--ink); font-weight: 500; }
.ship-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 12px 0; }
.ship-table th, .ship-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.ship-table th { font-weight: 500; color: var(--ink); }
.ship-table td:last-child, .ship-table th:last-child { text-align: right; white-space: nowrap; }

/* Spacious Pre-Footer Editorial Story Club Section */
.story-club-section {
  padding: 96px 0; border-top: 1px solid var(--hair); background: var(--blush);
}
.vip-story-box {
  max-width: 460px; margin: 0 auto; text-align: center;
}
.vip-story-kicker {
  display: block; font-size: 11px; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px;
}
.vip-story-box h2 {
  font-size: 18px; font-weight: 500; line-height: 1.55; color: var(--ink);
  margin-bottom: 10px; letter-spacing: .01em;
}
.vip-story-box p {
  font-size: 13.5px; color: var(--ink-2); line-height: 1.75; margin-bottom: 28px;
}
.vip-story-form {
  display: flex; align-items: baseline; gap: 16px;
  border-bottom: 1px solid var(--ink); padding-bottom: 8px;
}
.vip-story-form input {
  flex: 1; min-width: 0; border: 0; background: transparent;
  padding: 4px 0; font: inherit; font-size: 14px; color: var(--ink);
}
.vip-story-form input:focus { outline: none; }
.vip-story-form input::placeholder { color: var(--ink-2); opacity: .7; }
.vip-story-form button {
  background: transparent; color: var(--ink); padding: 4px 0;
  font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  white-space: nowrap; transition: opacity .2s;
}
.vip-story-form button:hover { opacity: .6; }
.vip-story-unlocked {
  margin-top: 14px; font-size: 13px; color: var(--ink-2);
}
.vip-story-unlocked b { color: var(--ink); font-weight: 500; }

/* ---------- 4. Section titles (Quiet Luxury Kicker + Composed Title) ---------- */
.section { padding: 88px 0 96px; border-top: 1px solid var(--hair); }
.section-kicker {
  display: block; text-align: center; font-size: 11px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px;
}
.section-title {
  text-align: center; font-size: clamp(18px, .9rem + .5vw, 22px); font-weight: 500;
  letter-spacing: .02em; line-height: 1.4; color: var(--ink);
}

/* Same-model grid (all 4 colorways) */
.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; margin-top: 44px;
}
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; } }
.card { text-align: left; display: block; width: 100%; }
.card-media { position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: var(--blush); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s var(--ease), transform .8s var(--ease); }
.card-media img.alt { opacity: 0; }
.card:hover .card-media img.alt { opacity: 1; }
.card:hover .card-media img { transform: scale(1.03); }
.card h3 { font-size: 13.5px; font-weight: 500; letter-spacing: .02em; margin-top: 14px; line-height: 1.4; color: var(--ink); }
.card .card-sub { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.card .card-fit { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.card .card-price { font-size: 14px; font-weight: 500; margin-top: 6px; font-variant-numeric: tabular-nums; }
.card .card-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--line); vertical-align: 0; margin-right: 6px; }

/* Sticky Bottom Buy Bar (Mobile & Desktop Scroll) */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-top: 1px solid var(--hair); box-shadow: 0 -4px 20px rgba(0, 0, 0, .06);
  transform: translateY(105%); transition: transform .35s var(--ease);
}
.sticky-bar.is-visible { transform: translateY(0); }
.sticky-inner {
  max-width: var(--page); margin: 0 auto; padding: 10px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.sticky-prod { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sticky-prod img { width: 42px; height: 56px; object-fit: cover; background: var(--blush); flex: 0 0 42px; }
.sticky-title { font-size: 13px; font-weight: 600; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-sub { font-size: 12px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.sticky-dots { display: inline-flex; gap: 6px; }
.sticky-dot {
  width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--sw); padding: 0; transition: transform .2s;
}
.sticky-dot[aria-checked="true"] { outline: 1.5px solid var(--ink); outline-offset: 1px; transform: scale(1.1); }
.sticky-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.sticky-btn-single {
  min-height: 40px; padding: 0 16px; border: 1px solid var(--ink); background: var(--white); color: var(--ink);
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
}
.sticky-btn-single:hover { background: var(--blush); }
.sticky-btn-duo {
  min-height: 40px; padding: 0 18px; border: 1px solid var(--ink); background: var(--ink); color: var(--blush);
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
}
.sticky-btn-duo:hover { opacity: .9; }
@media (max-width: 767px) {
  .sticky-inner { padding: 8px 12px; gap: 10px; }
  .sticky-title { font-size: 12px; }
  .sticky-btn-single { padding: 0 10px; font-size: 11px; }
  .sticky-btn-duo { padding: 0 12px; font-size: 11px; }
  body { padding-bottom: 64px; }
}

/* Bandeau footer (whisper-quiet luxury service notes) */
#bandeau--footer { background: var(--white); padding: 56px 0; border-top: 1px solid var(--hair); }
.bandeau-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
@media (max-width: 767px) { .bandeau-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; } }
.bandeau-grid svg { width: 24px; height: 24px; margin: 0 auto; stroke: var(--ink-2); fill: none; stroke-width: .85; }
.bandeau-grid p { font-size: 12.5px; color: var(--ink-2); padding-top: 12px; line-height: 1.65; letter-spacing: .02em; }
.bandeau-grid p b { display: block; font-weight: 500; color: var(--ink); letter-spacing: .03em; margin-bottom: 2px; }

/* Footer (Architectural Colophon — Toteme / COS Style) */
.site-footer { background: var(--white); padding: 64px 0 36px; border-top: 1px solid var(--hair); font-size: 13.5px; color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; max-width: 880px; }
@media (max-width: 767px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-grid h2 { font-size: 11px; font-weight: 500; color: var(--ink); text-transform: uppercase; letter-spacing: .16em; margin-bottom: 16px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 9px; line-height: 1.6; }
.footer-grid a { text-decoration: none; color: var(--ink-2); transition: color .2s; }
.footer-grid a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--hair); font-size: 12px; letter-spacing: .04em; color: var(--ink-2); }

/* ---------- Dialogs: cart drawer, size guide, lightbox ---------- */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--white); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(32, 30, 30, .45); }
.cart-drawer {
  margin: 0 0 0 auto; width: min(440px, 100vw); height: 100dvh;
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .35s var(--ease), overlay .35s allow-discrete, display .35s allow-discrete;
}
.cart-drawer[open] { transform: translateX(0); }
@starting-style { .cart-drawer[open] { transform: translateX(100%); } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--hair); }
.drawer-head h2 { font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.close-x { width: 40px; height: 40px; display: grid; place-items: center; }
.close-x svg { width: 16px; height: 16px; stroke: var(--ink); stroke-width: 1.3; }
.free-ship { padding: 14px 24px; background: var(--blush); font-size: 14px; }
.free-ship .track { height: 3px; background: var(--hair); margin-top: 8px; }
.free-ship .track i { display: block; height: 100%; background: var(--ink); transition: width .4s var(--ease); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer-empty { text-align: center; padding: 50px 0; color: var(--ink-2); }
.line-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--hair); font-size: 14px; }
.line-item img { width: 76px; height: 114px; object-fit: cover; }
.line-item b { display: block; font-weight: 600; text-transform: uppercase; font-size: 13px; letter-spacing: .03em; }
.line-item .meta { color: var(--ink-2); }
.line-item .remove { font-size: 13px; text-decoration: underline; color: var(--ink-2); margin-top: 6px; }
.drawer-foot { padding: 20px 24px 24px; border-top: 1px solid var(--hair); }
.subtotal { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 4px; }
.subtotal-sub { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); margin-bottom: 4px; }
.subtotal-sub.discount { color: var(--rose); font-weight: 600; }
.drawer-foot .pay-note { margin: 6px 0 14px; font-size: 13px; }
.pay-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.pay-methods button {
  border: 1px solid var(--line); min-height: 44px; font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: border-color .2s, background .2s;
}
.pay-methods button:hover { border-color: var(--ink); background: var(--blush); }
.pay-methods svg { width: 16px; height: 16px; stroke: var(--ink); fill: none; stroke-width: 1.4; }
.qty-row { display: inline-flex; align-items: center; border: 1px solid var(--line); margin-top: 8px; }
.qty-btn { width: 28px; height: 28px; font-size: 15px; display: grid; place-items: center; }
.qty-btn:hover { background: var(--blush); }
.qty-val { min-width: 28px; text-align: center; font-size: 13px; font-weight: 600; }
.line-item-actions { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.line-item .remove { font-size: 13px; text-decoration: underline; color: var(--ink-2); margin-top: 6px; }
.price-strike { text-decoration: line-through; color: var(--ink-2); font-size: 12px; display: block; text-align: right; }

/* ---------- Duo 2-Color Picker Modal ---------- */
.duo-modal { width: min(680px, calc(100vw - 24px)); padding: 32px 28px 26px; }
.duo-badge {
  display: inline-block; background: var(--blush-deep); color: var(--rose);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: 4px 10px; margin-bottom: 8px;
}
.duo-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; }
.duo-preset {
  border: 1px solid var(--hair); background: var(--blush); padding: 6px 12px;
  font-size: 12px; transition: border-color .2s, background .2s;
}
.duo-preset:hover, .duo-preset.is-active { border-color: var(--ink); background: var(--white); font-weight: 600; }
.duo-slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 22px; }
@media (max-width: 560px) { .duo-slots { grid-template-columns: 1fr; gap: 14px; } }
.duo-slot { border: 1px solid var(--hair); padding: 14px; background: var(--blush); }
.duo-slot-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-size: 13px; }
.duo-slot-head b { text-transform: uppercase; letter-spacing: .05em; }
.duo-slot-preview { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; }
.duo-slot-preview img { width: 72px; height: 108px; object-fit: cover; background: var(--white); }
.duo-slot-name { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.duo-bulles { display: flex; gap: 10px; list-style: none; }
.duo-bulles .bulle { width: 38px; height: 38px; }
.duo-summary {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 14px 16px; background: var(--blush-deep); margin-bottom: 16px; font-size: 14px;
}
.duo-summary-price b { font-size: 19px; font-weight: 700; margin-left: 8px; }
.duo-summary-price s { color: var(--ink-2); font-size: 14px; }

/* ---------- Stripe Checkout Modal ---------- */
.checkout-modal { width: min(760px, calc(100vw - 24px)); padding: 0; overflow: hidden; }
.co-grid { display: grid; grid-template-columns: 1.15fr .85fr; max-height: 90dvh; overflow-y: auto; }
@media (max-width: 720px) { .co-grid { grid-template-columns: 1fr; } }
.co-main { padding: 28px 28px 26px; }
.co-side { background: var(--blush); padding: 28px 24px; border-left: 1px solid var(--hair); display: flex; flex-direction: column; justify-content: space-between; }
@media (max-width: 720px) { .co-side { border-left: 0; border-top: 1px solid var(--hair); } }
.co-brand { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.co-brand b { font-size: 16px; letter-spacing: .12em; text-transform: uppercase; }
.stripe-pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2);
  border: 1px solid var(--hair); padding: 3px 9px; background: var(--blush);
}
.stripe-pill b { color: #635BFF; font-weight: 700; letter-spacing: .02em; }
.co-sec-title { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin: 16px 0 10px; }
.co-sec-title:first-of-type { margin-top: 0; }
.co-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.co-field { display: flex; flex-direction: column; gap: 4px; }
.co-field.full { grid-column: 1 / -1; }
.co-field label { font-size: 12px; color: var(--ink-2); font-weight: 500; }
.co-field input, .co-field select {
  height: 42px; padding: 0 12px; border: 1px solid var(--line); background: var(--white);
  font: inherit; font-size: 14px; color: var(--ink);
}
.co-field input:focus, .co-field select:focus { outline: none; border-color: var(--ink); }
.pay-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 8px 0 14px; }
.pay-tab {
  border: 1px solid var(--line); padding: 12px; text-align: left;
  display: flex; flex-direction: column; gap: 4px; transition: border-color .2s, background .2s;
}
.pay-tab[aria-selected="true"] { border: 1.5px solid var(--ink); background: var(--blush); }
.pay-tab-top { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; }
.pay-tab-sub { font-size: 12px; color: var(--ink-2); }
.pay-pane[hidden] { display: none; }
.promptpay-box {
  border: 1px solid var(--hair); background: var(--blush); padding: 14px 16px;
  font-size: 13px; color: var(--ink-2); margin-bottom: 14px;
}
.promptpay-box b { color: var(--ink); display: block; margin-bottom: 2px; }
.co-items { list-style: none; max-height: 240px; overflow-y: auto; border-bottom: 1px solid var(--hair); margin-bottom: 14px; }
.co-item { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; padding: 10px 0; border-top: 1px solid var(--hair); font-size: 13px; align-items: center; }
.co-item:first-child { border-top: 0; }
.co-item img { width: 48px; height: 72px; object-fit: cover; }
.co-totals { font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.co-totals-row { display: flex; justify-content: space-between; color: var(--ink-2); }
.co-totals-row.discount { color: var(--rose); font-weight: 600; }
.co-totals-row.grand { color: var(--ink); font-size: 17px; font-weight: 700; padding-top: 10px; border-top: 1px solid var(--hair); margin-top: 4px; }
.qr-screen { text-align: center; padding: 12px 0 4px; }
.qr-card {
  max-width: 280px; margin: 12px auto 16px; border: 1px solid var(--line);
  background: var(--white); padding: 18px 16px;
}
.qr-head { background: #1A3B6E; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .08em; padding: 6px 10px; margin: -18px -16px 14px; text-transform: uppercase; }
.qr-svg { width: 176px; height: 176px; margin: 0 auto 10px; display: block; }
.qr-amount { font-size: 20px; font-weight: 700; margin-top: 4px; }
.qr-timer { font-size: 12px; color: var(--rose); margin-top: 4px; font-weight: 600; }
.co-success { text-align: center; padding: 22px 12px; }
.co-success-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--white); display: grid; place-items: center; margin: 0 auto 14px; }
.co-success-icon svg { width: 24px; height: 24px; stroke: var(--white); fill: none; stroke-width: 2; }
.co-order-box { background: var(--blush); border: 1px solid var(--hair); padding: 14px 16px; text-align: left; font-size: 13px; margin: 16px 0; }

.modal { margin: auto; width: min(620px, calc(100vw - 32px)); padding: 36px 32px 30px; position: relative; max-height: 90dvh; overflow-y: auto; }
.modal .close-x { position: absolute; top: 10px; right: 10px; }
.modal h2 { font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.modal > p { color: var(--ink-2); font-size: 14px; }
.size-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.size-table th, .size-table td { border-bottom: 1px solid var(--hair); padding: 10px 8px; text-align: left; }
.size-table thead th { background: var(--blush); font-weight: 600; }

.lightbox { margin: auto; background: transparent; width: 100vw; height: 100dvh; display: none; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(253, 248, 247, .97); }
.lightbox img { max-height: 92dvh; max-width: 92vw; object-fit: contain; }
.lightbox .close-x { position: fixed; top: 16px; right: 16px; }
.lb-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; display: grid; place-items: center; }
.lb-nav svg { width: 11px; height: 21px; stroke: var(--ink); fill: none; stroke-width: 1.25; }
.lb-prev { left: 16px; } .lb-next { right: 16px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--blush); padding: 12px 20px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); z-index: 200;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
