/* Koyin Cosmetics: Cherry Pop + Chartreuse */
:root {
  --blush: #F7E6E3;
  --blush-line: #E8CFCA;
  --blush-deep: #F0DCD8;
  --cocoa: #2E1A16;
  --cocoa-2: #5B3A33;
  --muted: #6B4840;
  --earth: #8A4B3D;
  --cherry: #C8203A;
  --cherry-dark: #A8162E;
  --lime: #CDEB45;
  --rose: #F4A3B0;
  --white: #FFFFFF;
  --on-dark: #E3C3BD;
  --on-dark-2: #C9A69F;
  --dark-line: #4A2F28;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
  --gutter: clamp(20px, 4.2vw, 60px);
  --radius: 28px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--blush);
  color: var(--cocoa);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 3px solid var(--cherry); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--cocoa); color: var(--blush); padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 16px; }

/* ---------- type ---------- */
.eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--earth); }
.eyebrow-lime { color: var(--lime); }
.h2 { margin: 0; font-family: var(--display); font-variation-settings: 'SOFT' 100; font-weight: 800; font-size: clamp(40px, 4.6vw, 66px); line-height: 1; letter-spacing: -.02em; }
.pill-hl { background: var(--lime); padding: 0 .28em; border-radius: 999px; font-style: italic; }
.ulink { position: relative; text-decoration: none; font-weight: 500; }
.ulink::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.ulink:hover::after, .ulink:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.ulink.strong { font-weight: 700; }

/* ---------- buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 32px; border-radius: 999px; border: 0;
  font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-cherry { background: var(--cherry); color: var(--white); }
.btn-cherry::before { background: var(--cocoa); }
.btn-dark { background: var(--cocoa); color: var(--blush); }
.btn-dark::before { background: var(--cherry); }
.btn-dark:hover { color: var(--white); }
.btn-white { background: var(--white); color: var(--cocoa); }
.btn-white::before { background: var(--lime); }
.btn-lime { background: var(--lime); color: var(--cocoa); }
.btn-lime::before { background: var(--white); }
.btn-outline-light { background: transparent; color: var(--blush); box-shadow: inset 0 0 0 1.5px var(--on-dark-2); }
.btn-outline-light::before { background: var(--blush); }
.btn-outline-light:hover { color: var(--cocoa); }
.btn-block { width: 100%; }
.btn-grow { flex: 1 1 auto; }
.btn.is-added { background: var(--lime); color: var(--cocoa); }
.btn.is-added::before { transform: translateY(101%); }

.icon-btn { width: 48px; height: 48px; border-radius: 999px; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; position: relative; transition: background .3s, transform .3s var(--ease); }
.icon-btn:hover { transform: scale(1.06); }
.icon-btn-white { background: var(--white); color: var(--cocoa); }
.icon-btn-light { color: var(--blush); }

/* ---------- top bar + header ---------- */
.topbar { background: var(--cherry); color: var(--white); text-align: center; font-size: 14px; font-weight: 500; padding: 9px 16px; }
.topbar p { margin: 0; }
.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247, 230, 227, .86);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s, box-shadow .4s;
}
.header.is-scrolled { border-color: var(--blush-line); box-shadow: 0 10px 30px -22px rgba(46, 26, 22, .5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 16px; transition: padding .4s var(--ease); }
.header.is-scrolled .header-inner { padding-block: 8px; }
.nav-desktop { flex: 1 1 0; display: flex; gap: 30px; font-size: 15px; }
.nav-desktop a { text-decoration: none; }
.logo { display: block; line-height: 0; }
.logo img { width: 140px; height: auto; transition: width .4s var(--ease); }
.header.is-scrolled .logo img { width: 112px; }
.header-end { flex: 1 1 0; display: flex; justify-content: flex-end; }
.menu-btn { display: none; }
.bag-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 8px 0 18px;
  border: 1.5px solid var(--cocoa); border-radius: 999px; background: transparent; font-weight: 700; font-size: 15px;
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.bag-btn:hover { background: var(--cocoa); color: var(--blush); }
.bag-count { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 999px; background: var(--lime); color: var(--cocoa); font-size: 13px; }
.bump { animation: bump .6s var(--ease-back); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.35) rotate(-8deg); } 100% { transform: scale(1); } }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; padding-top: 48px; padding-bottom: 88px; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero-title { margin: 0; font-family: var(--display); font-variation-settings: 'SOFT' 100; font-weight: 800; font-size: clamp(56px, 7.3vw, 112px); line-height: .95; letter-spacing: -.03em; }
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .w > span { display: inline-block; }
.hl { position: relative; display: inline-block; color: var(--cherry); font-style: italic; isolation: isolate; }
.hl::after { content: ""; position: absolute; left: -.02em; right: .1em; bottom: .02em; height: .13em; background: var(--lime); z-index: -1; border-radius: 4px; transform-origin: left; }
.hero-sub { margin: 0; font-size: 19px; line-height: 1.55; max-width: 470px; color: var(--cocoa-2); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-prices { display: flex; gap: 32px; margin: 0; padding-top: 8px; }
.hero-prices div { display: flex; flex-direction: column-reverse; }
.hero-prices dt { font-size: 14px; color: var(--cocoa-2); }
.hero-prices dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 24px; }
.hero-media { position: relative; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hero-img { overflow: hidden; border-radius: 24px; background: var(--blush-deep); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-img-main { grid-row: span 2; aspect-ratio: 1090 / 1400; border-radius: 999px 999px 24px 24px; }
.hero-img-main img { object-position: center top; }
.hero-img-a, .hero-img-b { position: relative; min-height: 0; }
.hero-img-a img, .hero-img-b img { position: absolute; inset: 0; }
.sticker {
  position: absolute; z-index: 3; top: 22px; left: -38px; width: 138px; height: 138px; border-radius: 50%;
  background: var(--lime); display: grid; place-items: center; text-align: center;
  font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1.05;
  box-shadow: 0 14px 30px -14px rgba(46, 26, 22, .45);
  animation: wobble 6s ease-in-out infinite;
}
.sticker > span { display: block; }
@keyframes wobble { 0%, 100% { transform: rotate(-12deg) scale(1); } 50% { transform: rotate(6deg) scale(1.05); } }

/* ---------- marquee ---------- */
.marquee { --dur: 32s; background: var(--cocoa); color: var(--blush); overflow: hidden; padding: 20px 0; user-select: none; }
.marquee-track { display: flex; width: max-content; animation: marquee var(--dur) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span, .marquee-track i { flex: 0 0 auto; font-family: var(--display); font-weight: 700; font-style: italic; font-size: clamp(22px, 2.3vw, 32px); white-space: nowrap; padding-right: .6em; }
.marquee-track i { color: var(--lime); font-style: normal; display: inline-block; animation: spin 6s linear infinite; }
.marquee-rev .marquee-track { animation-direction: reverse; }
.marquee-cherry { background: var(--cherry); color: var(--white); }
.marquee-cherry .marquee-track i { color: var(--lime); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- shop ---------- */
.shop { padding-top: 104px; padding-bottom: 40px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 36px; }
.section-head > div { display: flex; flex-direction: column; gap: 12px; }
.section-note { margin: 0; max-width: 360px; color: var(--cocoa-2); }
.chips { display: none; gap: 8px; margin: -12px 0 24px; overflow-x: auto; scrollbar-width: none; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--cocoa); background: transparent; font-weight: 700; font-size: 14px; transition: background .3s, color .3s; flex: 0 0 auto; }
.chip.is-on { background: var(--cocoa); color: var(--blush); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
  scroll-margin-top: 110px;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(46, 26, 22, .45); }
.card.is-hidden { display: none; }
.card-media { position: relative; overflow: hidden; aspect-ratio: 4 / 4.2; background: var(--blush-deep); }
.card-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card-media > img { transform: scale(1.06); }
.pill { position: absolute; top: 16px; left: 16px; background: var(--lime); font-size: 13px; font-weight: 700; padding: 7px 14px; border-radius: 999px; }
.pill-pre { left: auto; right: 16px; background: var(--cherry); color: var(--white); letter-spacing: .02em; }
.pre-note { margin: 0 0 10px; padding: 10px 14px; border-radius: 14px; background: var(--blush); color: var(--cherry); font-size: 14px; font-weight: 600; line-height: 1.4; }
.shade-chip {
  position: absolute; right: 16px; bottom: 16px; width: 92px; height: 92px; border-radius: 20px; overflow: hidden;
  background: var(--white); border: 4px solid var(--white); box-shadow: 0 12px 26px -12px rgba(46, 26, 22, .5);
  transform: rotate(6deg); transition: transform .5s var(--ease-back);
}
.card:hover .shade-chip { transform: rotate(-4deg) scale(1.06); }
.shade-chip img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; transition: opacity .35s, transform .5s var(--ease); }
.shade-chip img.swap { opacity: 0; transform: scale(1.2); }
.card-body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 16px; flex: 1 1 auto; }
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card-top h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 32px; letter-spacing: -.01em; }
.price { font-family: var(--display); font-weight: 700; font-size: 24px; }
.card-blurb { margin: 0; font-size: 15px; color: var(--muted); }
.shade-label { margin: 0; font-size: 14px; color: var(--muted); display: flex; gap: 6px; height: 21px; overflow: hidden; }
.shade-label strong { color: var(--cocoa); display: inline-block; transition: transform .35s var(--ease), opacity .35s; }
.shade-label strong.out { transform: translateY(-100%); opacity: 0; }
.shade-label strong.in { transform: translateY(100%); opacity: 0; transition: none; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(46, 26, 22, .15);
  transition: transform .35s var(--ease-back), box-shadow .35s var(--ease);
}
.swatch:hover { transform: scale(1.14); }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--cocoa); }
.card .add { margin-top: auto; }

.lineup { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding-top: 40px; padding-bottom: 104px; }
.lineup-tile { position: relative; display: block; overflow: hidden; border-radius: var(--radius); text-decoration: none; aspect-ratio: 4 / 3.3; }
.lineup-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.lineup-tile:hover img { transform: scale(1.07); }
.lineup-tile span { position: absolute; left: 18px; bottom: 18px; background: var(--blush); padding: 11px 20px; border-radius: 999px; font-weight: 700; transition: background .3s, transform .4s var(--ease); }
.lineup-tile:hover span { background: var(--lime); transform: translateX(6px); }

/* ---------- look ---------- */
.look { background: var(--cherry); color: var(--white); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); align-items: stretch; overflow: hidden; }
.look-media { overflow: hidden; min-height: 620px; }
.look-media img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.look-copy { padding: 80px max(var(--gutter), env(safe-area-inset-right, 0px)) 80px 72px; display: flex; flex-direction: column; justify-content: center; gap: 26px; }
.look-copy p { margin: 0; font-size: 19px; line-height: 1.6; max-width: 500px; }
.tag { align-self: flex-start; background: var(--lime); color: var(--cocoa); font-weight: 700; font-size: 14px; padding: 8px 16px; border-radius: 999px; }
.look-items { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.look-item { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .12); border-radius: 18px; padding: 10px 18px 10px 10px; font-size: 15px; transition: background .3s, transform .4s var(--ease); }
.look-item:hover { background: rgba(255, 255, 255, .2); transform: translateY(-3px); }
.look-item img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.look-plus { font-size: 28px; font-weight: 700; }
.look .btn { align-self: flex-start; }

/* ---------- how + fees ---------- */
.how { padding-top: 104px; padding-bottom: 104px; }
.how .h2 { margin-bottom: 48px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.step { position: relative; padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.step::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--cocoa); transform-origin: left; transition: transform 1s var(--ease) calc(var(--d, 0s) + .15s); }
.js .step.reveal:not(.in)::before { transform: scaleX(0); }
.step-n { font-family: var(--display); font-weight: 800; font-size: 44px; color: var(--cherry); line-height: 1; }
.step h3 { margin: 0; font-size: 22px; }
.step p { margin: 0; color: var(--cocoa-2); }
.fees { margin-top: 48px; background: var(--white); border-radius: var(--radius); padding: 30px 36px; display: flex; align-items: center; gap: 40px; }
.fees-head { flex: 0 0 200px; }
.fees-head h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 32px; }
.fees-head p { margin: 4px 0 0; color: var(--cocoa-2); }
.fees-grid { flex: 1 1 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.fee { background: var(--blush); border-radius: 20px; padding: 18px 22px; transition: transform .45s var(--ease-back); }
.fee:hover { transform: translateY(-4px) rotate(-1.5deg); }
.fee p { margin: 0; color: var(--cocoa-2); font-size: 15px; }
.fee strong { display: block; margin-top: 4px; font-family: var(--display); font-weight: 800; font-size: 30px; }
.fee-lime { background: var(--lime); }
.fee-lime p { color: var(--cocoa); }

/* ---------- story ---------- */
.story { background: var(--cocoa); color: var(--blush); display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); align-items: center; gap: 72px; overflow: hidden; }
.story-media { overflow: hidden; height: 100%; min-height: 640px; }
.story-media img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.story-copy { padding: 80px max(var(--gutter), env(safe-area-inset-right, 0px)) 80px 0; display: flex; flex-direction: column; gap: 24px; }
.story-copy em { color: var(--rose); }
.story-copy p:not(.eyebrow) { margin: 0; font-size: 18px; line-height: 1.65; max-width: 520px; color: var(--on-dark); }
.story-copy .btn { align-self: flex-start; }
.story-copy p.story-sign { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 24px; color: var(--lime); }

/* ---------- gallery ---------- */
.gallery { padding-top: 104px; padding-bottom: 104px; }
.gallery-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.gallery-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 18px; transition: transform .6s var(--ease), border-radius .6s var(--ease), opacity .9s var(--ease); }
.gallery-grid img:nth-child(odd):hover { transform: rotate(-2deg) scale(1.03); border-radius: 40px; }
.gallery-grid img:nth-child(even):hover { transform: rotate(2deg) scale(1.03); border-radius: 40px; }

/* ---------- footer ---------- */
.footer { background: var(--cocoa); color: var(--blush); padding-top: 80px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 18px; max-width: 440px; }
.footer-brand img { width: 220px; }
.footer-brand p { margin: 0; color: var(--on-dark); }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 64px; font-size: 15px; }
.footer-cols div { display: flex; flex-direction: column; gap: 12px; }
.footer-cols a, .footer-cols span { color: var(--on-dark); text-decoration: none; }
.footer-cols a:hover { color: var(--lime); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 56px; padding-top: 24px; padding-bottom: max(32px, env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--dark-line); font-size: 13px; color: var(--on-dark-2); }

/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(46, 26, 22, .55); opacity: 0; transition: opacity .45s var(--ease); }
.scrim.on { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(480px, 100%);
  background: var(--blush); display: flex; flex-direction: column;
  box-shadow: -24px 0 60px rgba(46, 26, 22, .25);
  transform: translateX(105%); transition: transform .6s var(--ease); visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: max(18px, env(safe-area-inset-top, 0px)) 20px 18px 28px; border-bottom: 1px solid var(--blush-line); }
.drawer-head h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 32px; }
.drawer-head h2 span { font-family: var(--body); font-weight: 500; font-size: 16px; color: var(--muted); }
.drawer-body { flex: 1 1 auto; overflow-y: auto; padding: 22px 28px; display: flex; flex-direction: column; gap: 14px; overscroll-behavior: contain; }
.bag-empty { text-align: center; padding: 40px 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bag-empty p { margin: 0; color: var(--muted); }
.bag-empty .bag-empty-title { font-family: var(--display); font-weight: 800; font-size: 28px; color: var(--cocoa); }
.bag-empty .btn { margin-top: 12px; }
.bag-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bag-item { display: flex; gap: 14px; background: var(--white); border-radius: 20px; padding: 10px; animation: itemIn .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes itemIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
.bag-item.leaving { animation: itemOut .35s var(--ease) forwards; }
@keyframes itemOut { to { opacity: 0; transform: translateX(40px); height: 0; } }
.bag-item img { width: 88px; height: 88px; border-radius: 14px; object-fit: cover; flex: 0 0 auto; }
.bag-item-main { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; min-width: 0; }
.bag-item-top { display: flex; justify-content: space-between; gap: 8px; }
.bag-item-top p { margin: 0; }
.bag-item-top .name { font-weight: 700; }
.bag-item-top .sub { font-size: 13px; color: var(--muted); }
.bag-item-bottom { display: flex; justify-content: space-between; align-items: center; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--on-dark); border-radius: 999px; height: 40px; }
.qty button { width: 40px; height: 38px; border: 0; background: transparent; font-weight: 700; font-size: 18px; border-radius: 999px; }
.qty button:hover { background: var(--blush); }
.qty span { min-width: 20px; text-align: center; font-weight: 700; }
.qty-lg { height: 54px; border-color: var(--cocoa); }
.qty-lg button { width: 48px; height: 52px; font-size: 22px; }
.remove { border: 0; background: transparent; color: var(--muted); font-size: 13px; text-decoration: underline; min-height: 40px; }
.zones { margin: 8px 0 0; border: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.zones legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--earth); }
.zone { position: relative; display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 16px; border-radius: 14px; background: var(--white); box-shadow: inset 0 0 0 2px transparent; cursor: pointer; transition: box-shadow .3s; }
.zone input { position: absolute; opacity: 0; pointer-events: none; }
.zone-dot { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 2px #B89A94; transition: box-shadow .35s var(--ease-back); flex: 0 0 auto; }
.zone-name { flex: 1 1 auto; font-weight: 700; }
.zone:has(input:checked) { box-shadow: inset 0 0 0 2px var(--cocoa); }
.zone:has(input:checked) .zone-dot { box-shadow: inset 0 0 0 6px var(--cherry); }
.zone:has(input:focus-visible) { outline: 3px solid var(--cherry); outline-offset: 2px; }
.zones.need { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.drawer-foot { background: var(--white); padding: 22px 28px max(26px, env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 10px; }
.drawer-foot .row { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.drawer-foot .row strong { color: var(--cocoa); }
.drawer-foot .total { border-top: 1px solid var(--blush-deep); padding-top: 12px; align-items: baseline; color: var(--cocoa); font-weight: 700; font-size: 18px; }
.drawer-foot .total strong { font-family: var(--display); font-weight: 800; font-size: 30px; }
.drawer-foot .fine { margin: 0; text-align: center; font-size: 12.5px; color: var(--muted); }
.drawer-foot.empty .btn { opacity: .45; pointer-events: none; }

/* ---------- menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 80; background: var(--cocoa); color: var(--blush);
  display: flex; flex-direction: column;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  clip-path: circle(0% at 32px 40px); visibility: hidden;
  transition: clip-path .7s var(--ease), visibility 0s .7s;
}
.menu.open { clip-path: circle(150% at 32px 40px); visibility: visible; transition: clip-path .7s var(--ease), visibility 0s; }
.menu-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; }
.menu-head img { width: 100px; }
.bag-icon .bag-dot { position: absolute; top: 4px; right: 2px; min-width: 20px; height: 20px; border-radius: 999px; background: var(--lime); color: var(--cocoa); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.menu-links { padding: 24px 24px 0; display: flex; flex-direction: column; }
.menu-links a {
  display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--dark-line);
  text-decoration: none; font-family: var(--display); font-weight: 800; font-size: clamp(34px, 10vw, 44px);
  opacity: 0; transform: translateY(30px);
}
.menu.open .menu-links a { opacity: 1; transform: none; transition: opacity .6s var(--ease) calc(.2s + var(--i) * .07s), transform .7s var(--ease) calc(.2s + var(--i) * .07s); }
.menu-links a.lime { color: var(--lime); font-style: italic; }
.menu-links small { font-family: var(--body); font-weight: 500; font-size: 14px; color: var(--on-dark-2); }
.menu-foot { margin-top: auto; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.menu-foot img { width: 100%; height: 120px; object-fit: cover; border-radius: 16px; }
.menu-foot p { margin: 0; color: var(--on-dark-2); font-size: 14px; }
.menu-social { display: flex; gap: 10px; }
.menu-social a { flex: 1 1 0; display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px #6B4A42; text-decoration: none; font-weight: 700; font-size: 14px; }

/* ---------- sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 75; background: rgba(46, 26, 22, 0); visibility: hidden; transition: background .45s, visibility 0s .5s; display: flex; align-items: flex-end; }
.sheet.open { background: rgba(46, 26, 22, .55); visibility: visible; transition: background .45s, visibility 0s; }
.sheet-panel {
  width: 100%; max-height: 88vh; overflow-y: auto; background: var(--blush); border-radius: 28px 28px 0 0;
  padding: 12px 20px max(24px, env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 16px;
  transform: translateY(100%); transition: transform .55s var(--ease);
}
.sheet.open .sheet-panel { transform: none; }
.sheet-grip { align-self: center; width: 44px; height: 5px; border-radius: 999px; background: #D9B8B2; }
.sheet-head { display: flex; gap: 14px; align-items: center; }
.sheet-head img { width: 76px; height: 76px; border-radius: 16px; object-fit: cover; }
.sheet-head div { flex: 1 1 auto; }
.sheet-head h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.1; }
.sheet-head p { margin: 4px 0 0; font-weight: 700; }
.sheet-shades { display: flex; flex-direction: column; gap: 10px; }
.sheet-shade { display: flex; align-items: center; gap: 14px; padding: 8px 14px 8px 8px; border-radius: 18px; border: 0; background: var(--white); text-align: left; box-shadow: inset 0 0 0 2.5px transparent; transition: box-shadow .3s, transform .3s var(--ease); }
.sheet-shade[aria-checked="true"] { box-shadow: inset 0 0 0 2.5px var(--cocoa); }
.sheet-shade:active { transform: scale(.98); }
.sheet-shade img { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; }
.sheet-shade span { flex: 1 1 auto; font-weight: 700; }
.sheet-shade i { width: 26px; height: 26px; border-radius: 50%; background: var(--c); }
.sheet-foot { display: flex; gap: 10px; align-items: center; }

/* ---------- toast + fly ---------- */
.toast {
  position: fixed; z-index: 90; left: 50%; bottom: max(24px, env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 8px; border-radius: 999px;
  background: var(--cocoa); color: var(--blush); box-shadow: 0 20px 40px -18px rgba(46, 26, 22, .6);
  transform: translate(-50%, 140%); transition: transform .55s var(--ease), visibility 0s .55s; max-width: calc(100% - 32px); visibility: hidden;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .55s var(--ease), visibility 0s; }
.toast img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.toast span { font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast button { border: 0; background: var(--lime); color: var(--cocoa); border-radius: 999px; min-height: 40px; padding: 0 16px; font-weight: 700; font-size: 14px; flex: 0 0 auto; }
.fly { position: fixed; z-index: 95; width: 22px; height: 22px; border-radius: 50%; pointer-events: none; box-shadow: 0 0 0 3px var(--white); }

/* ---------- motion: load + reveal ---------- */
.js .load { opacity: 0; transform: translateY(24px); }
.js .is-loaded .load { opacity: 1; transform: none; transition: opacity .9s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s); }
.js .hero-title .w > span { transform: translateY(105%); }
.js .is-loaded .hero-title .w > span { transform: none; transition: transform 1.1s var(--ease) var(--d, 0s); }
.js .hl::after { transform: scaleX(0); }
.js .is-loaded .hl::after { transform: scaleX(1); transition: transform .9s var(--ease) .95s; }
.js .reveal-img { clip-path: inset(100% 0 0 0 round 24px); }
.js .reveal-img img { transform: scale(1.25); }
.js .is-loaded .reveal-img { clip-path: inset(0 0 0 0 round 0); transition: clip-path 1.3s var(--ease) var(--d, 0s); }
.js .is-loaded .reveal-img img { transform: scale(1); transition: transform 1.8s var(--ease) var(--d, 0s); }
.js .sticker { scale: 0; }
.js .is-loaded .sticker { scale: 1; transition: scale .9s var(--ease-back) 1.1s; }
.js .header { transform: translateY(-100%); }
.js .is-loaded .header { transform: none; transition: transform .8s var(--ease), border-color .4s, box-shadow .4s; }

.js .reveal { opacity: 0; transform: translateY(36px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .9s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s); }
.js .card.reveal.in { transition: opacity .9s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s), box-shadow .6s var(--ease); }
.js .card.reveal.in:hover { transform: translateY(-6px); }
.js .gallery-grid img.reveal { transform: translateY(50px) scale(.94); }
.js .gallery-grid img.reveal.in { transform: none; transition: opacity .9s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s), border-radius .6s var(--ease); }
.js .gallery-grid img.reveal.in:nth-child(odd):hover { transform: rotate(-2deg) scale(1.03); }
.js .gallery-grid img.reveal.in:nth-child(even):hover { transform: rotate(2deg) scale(1.03); }

/* ---------- tablet ---------- */
@media (max-width: 1099px) {
  .nav-desktop { display: none; }
  .menu-btn { display: inline-flex; }
  .header-inner { gap: 12px; }
  .logo img { width: 120px; }
  .header.is-scrolled .logo img { width: 100px; }
  .header-end, .menu-btn { flex: 0 0 auto; }
  .bag-btn .bag-word { display: none; }
  .bag-btn { padding: 0 6px 0 14px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-top: 40px; padding-bottom: 72px; }
  .hero-sub { max-width: 560px; }
  .sticker { left: auto; right: 20px; top: -30px; width: 124px; height: 124px; font-size: 17px; }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .card { flex-direction: row; }
  .card-media { aspect-ratio: auto; flex: 0 0 42%; min-height: 380px; }
  .lineup { gap: 14px; padding-bottom: 80px; }
  .look { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); }
  .look-copy { padding: 48px 36px; }
  .look-media { min-height: 560px; }
  .story { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .story-media { min-height: 0; height: 460px; }
  .story-copy { padding: 56px max(var(--gutter), env(safe-area-inset-right, 0px)) 64px max(var(--gutter), env(safe-area-inset-left, 0px)); }
  .fees { flex-direction: column; align-items: stretch; gap: 18px; padding: 26px 28px; }
  .fees-head { flex: none; display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px; }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-grid img:nth-child(n+4) { display: none; }
  .how, .gallery, .shop { padding-top: 80px; }
  .how, .gallery { padding-bottom: 80px; }
}

/* ---------- mobile ---------- */
@media (max-width: 699px) {
  .topbar { font-size: 12.5px; padding: 8px 12px; }
  .header-inner { padding-block: 8px; padding-left: max(8px, env(safe-area-inset-left, 0px)); padding-right: max(8px, env(safe-area-inset-right, 0px)); }
  .logo img, .header.is-scrolled .logo img { width: 100px; }
  .bag-btn { border: 0; padding: 0; width: 48px; height: 48px; justify-content: center; position: relative; }
  .bag-btn:hover { background: transparent; color: inherit; }
  .bag-btn svg { width: 24px; height: 24px; }
  .bag-btn .bag-count { position: absolute; top: 3px; right: 0; min-width: 20px; height: 20px; font-size: 11px; padding: 0 5px; }
  .hero { padding-top: 28px; padding-bottom: 48px; gap: 24px; }
  .hero-copy { gap: 20px; }
  .hero-title { font-size: clamp(48px, 15vw, 64px); }
  .hero-sub { font-size: 16px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .hero-prices { gap: 18px; justify-content: space-between; }
  .hero-prices dd { font-size: 20px; }
  .hero-prices dt { font-size: 13px; }
  .hero-media { display: block; height: auto; }
  .hero-img-main { width: 100%; }
  .hero-img-a, .hero-img-b { display: none; }
  .sticker { top: auto; bottom: 20px; right: 12px; width: 104px; height: 104px; font-size: 15px; }
  .marquee { padding: 14px 0; }
  .shop { padding-top: 56px; }
  .section-head { margin-bottom: 24px; }
  .chips { display: flex; }
  .card { flex-direction: column; }
  .card-media { aspect-ratio: 1 / 1; min-height: 0; flex: none; }
  .card-body { padding: 20px; gap: 12px; }
  .card-top h3 { font-size: 26px; }
  .price { font-size: 20px; }
  .shade-chip { width: 76px; height: 76px; border-radius: 16px; }
  .swatch { width: 30px; height: 30px; pointer-events: none; }
  .swatches { gap: 8px; }
  .lineup { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-top: 24px; padding-bottom: 56px; scrollbar-width: none; }
  .lineup-tile { flex: 0 0 78%; scroll-snap-align: start; }
  .look { grid-template-columns: minmax(0, 1fr); }
  .look-media { min-height: 0; height: 420px; }
  .look-copy { padding: 32px max(20px, env(safe-area-inset-right, 0px)) 44px max(20px, env(safe-area-inset-left, 0px)); gap: 18px; }
  .look-copy p { font-size: 16px; }
  .look-items { flex-direction: column; align-items: stretch; }
  .look-plus { display: none; }
  .look .btn { align-self: stretch; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .step { flex-direction: row; flex-wrap: wrap; column-gap: 16px; padding-top: 16px; }
  .step-n { font-size: 30px; flex: 0 0 48px; }
  .step h3 { font-size: 18px; flex: 1 1 calc(100% - 64px); align-self: center; }
  .step p { flex: 0 0 100%; padding-left: 64px; font-size: 15px; }
  .fees { padding: 20px; }
  .fees-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .fee { background: transparent; border-radius: 0; padding: 12px 0; display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--blush-deep); }
  .fee:last-child { border-bottom: 0; }
  .fee:hover { transform: none; }
  .fee strong { margin: 0; font-family: var(--body); font-size: 16px; }
  .fee-lime p { color: var(--cocoa-2); }
  .story-media { height: 380px; }
  .story-copy { padding-top: 36px; padding-bottom: 44px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .gallery-grid img:nth-child(n+4) { display: block; }
  .gallery-grid img:nth-child(5) { display: none; }
  .gallery-grid img { border-radius: 14px; }
  .footer { padding-top: 48px; }
  .footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; width: 100%; }
  .footer-brand img { width: 180px; }
  .footer-bottom { flex-direction: column; margin-top: 36px; }
  .drawer { width: 100%; }
  .drawer-head h2 { font-size: 28px; }
  .drawer-body { padding: 18px 20px; }
  .drawer-foot { padding-inline: 20px; border-radius: 26px 26px 0 0; }
  .bag-item img { width: 80px; height: 80px; }
}
@media (min-width: 700px) { .sheet { display: none; } }


.look-item.is-out { opacity: .6; }
.look-item.is-out img { filter: grayscale(1); }


/* ---------- sold-out card ---------- */
.so-msg, .so-cta { display: none; }
.so-scene { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.so-scene img { flex: 0 0 auto; width: 132px; height: 96px; object-fit: cover; object-position: 55% 40%; border-radius: 14px; border: 3px solid var(--white); box-shadow: 0 10px 22px -12px rgba(46, 26, 22, .5); transform: rotate(-3deg); animation: soChip 3s var(--ease) infinite; }
.so-bubble { position: relative; margin: 0; flex: 1 1 auto; min-width: 0; background: var(--lime); color: var(--cocoa); border-radius: 16px; padding: 10px 13px; font-family: var(--display); font-weight: 800; font-size: 15px; line-height: 1.2; }
.so-bubble::before { content: ""; position: absolute; left: -8px; top: 50%; margin-top: -8px; border: 8px solid transparent; border-right-color: var(--lime); border-left: 0; }
@keyframes soChip { 0%, 100% { transform: rotate(-3deg) translateY(0); } 25% { transform: rotate(0) translateY(-4px); } 50% { transform: rotate(-4deg) translateY(0); } }
.card.is-soldout .card-media::after {
  content: "Sold out"; position: absolute; top: 16px; right: 16px; background: var(--cherry); color: var(--white);
  font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px;
  transform: rotate(4deg); box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--cherry);
}
.card.is-soldout .so-msg { display: flex; flex-direction: column; gap: 4px; background: var(--blush); border-radius: 16px; padding: 14px 16px; }
.so-title { margin: 0; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 24px; line-height: 1.1; color: var(--cherry); }
.so-text { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--cocoa-2); }
.card.is-soldout .card-blurb, .card.is-soldout .shade-label, .card.is-soldout .add, .card.is-soldout .stock-note { display: none; }
.card.is-soldout .so-cta { display: inline-flex; margin-top: auto; }
@media (max-width: 699px) {
  .so-scene img { width: 112px; height: 84px; }
  .so-bubble { font-size: 14px; }
  .so-title { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { .so-scene img { animation: none; } }

/* ---------- product tip ---------- */
.card-tip { margin: 0; display: flex; align-items: flex-start; gap: 8px; background: var(--blush); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; line-height: 1.4; color: var(--cocoa-2); }
.card-tip svg { flex: 0 0 auto; margin-top: 1px; color: var(--cherry); }
.card-tip strong { color: var(--cocoa); }

/* ---------- stock ---------- */
.stock-note { margin: -6px 0 0; min-height: 20px; font-size: 13.5px; font-weight: 700; color: var(--cherry); }
.swatch.is-out { background: linear-gradient(135deg, transparent 45%, var(--cocoa) 46%, var(--cocoa) 54%, transparent 55%), var(--c); opacity: .45; }
.swatch.is-out:hover { transform: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn:disabled::before { transform: translateY(101%); }
.qty button:disabled { opacity: .3; cursor: not-allowed; background: transparent; }
.sheet-shade small { display: block; font-size: 12.5px; font-weight: 700; color: var(--cherry); }
.sheet-shade[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }


/* ---------- checkout + order pages ---------- */
.page-flow { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.flow-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--blush-line); }
.flow-head .back { flex: 1 1 0; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; font-weight: 700; font-size: 15px; }
.flow-head .logo img { width: 120px; }
.flow-secure { flex: 1 1 0; display: inline-flex; justify-content: flex-end; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--muted); }
.flow-title { margin: 0; font-family: var(--display); font-variation-settings: 'SOFT' 100; font-weight: 800; font-size: clamp(44px, 6vw, 84px); line-height: .95; letter-spacing: -.03em; }
.flow-title.small { font-size: clamp(32px, 4vw, 52px); }
.flow-big { margin: 0; font-family: var(--display); font-weight: 800; font-size: 36px; }
.lead-muted { margin: 0; font-size: 18px; line-height: 1.55; color: var(--cocoa-2); max-width: 560px; }
.center { text-align: center; }
.fine { margin: 0; font-size: 13px; color: var(--muted); }
.ulink.small { font-size: 14px; font-weight: 700; align-self: flex-start; }

.checkout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); grid-template-areas: "intro intro" "form sum"; gap: 28px 48px; align-items: start; padding-top: 40px; padding-bottom: 72px; }
.checkout-intro { grid-area: intro; display: flex; flex-direction: column; gap: 10px; }
.checkout-empty { grid-area: form; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.checkout-form { grid-area: form; display: flex; flex-direction: column; gap: 18px; }
.panel { margin: 0; border: 0; background: var(--white); border-radius: 24px; padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 14px; }
.panel legend { float: left; width: 100%; padding: 0; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 24px; }
.panel legend + * { clear: both; }
.step-dot { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--lime); font-family: var(--body); font-size: 14px; font-weight: 700; }
.zone-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.zone-list .zone { background: var(--blush); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field label { font-size: 14px; font-weight: 700; }
.field .opt { font-weight: 500; color: var(--muted); }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--blush-line);
  background: var(--blush); color: var(--cocoa); font: 16px var(--body); resize: vertical;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cocoa); background: var(--white); box-shadow: 0 0 0 4px rgba(205, 235, 69, .55); }
.field input::placeholder, .field textarea::placeholder { color: #A98C86; }
.hint { margin: 0; font-size: 14px; color: var(--muted); background: var(--lime); border-radius: 12px; padding: 10px 14px; color: var(--cocoa); }
.form-error { background: var(--cherry); color: var(--white); border-radius: 16px; padding: 14px 18px; font-weight: 700; }
.form-error.shake { animation: shake .45s; }
.btn-pay { min-height: 60px; font-size: 17px; }
.btn.is-busy { pointer-events: none; }
.btn.is-busy svg { animation: spin 1s linear infinite; }

.summary { grid-area: sum; position: sticky; top: 24px; background: var(--white); border-radius: 24px; padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.summary h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 26px; }
.summary-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.summary-items li { display: flex; align-items: center; gap: 14px; }
.sum-img { position: relative; flex: 0 0 auto; }
.sum-img img { width: 58px; height: 58px; border-radius: 14px; object-fit: cover; }
.sum-img b { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; border-radius: 999px; background: var(--cocoa); color: var(--blush); font-size: 12px; display: grid; place-items: center; padding: 0 5px; }
.sum-name { flex: 1 1 auto; font-weight: 700; min-width: 0; }
.sum-name small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
.code-box { display: flex; gap: 8px; }
.code-box input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 1.5px solid var(--blush-deep); border-radius: 14px; font: 600 15px var(--body); letter-spacing: .04em; text-transform: uppercase; color: var(--cocoa); background: var(--blush); }
.code-box input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 500; }
.code-btn { height: 46px; padding: 0 18px; border: 0; border-radius: 14px; background: var(--cocoa); color: var(--white); font: 700 14px var(--body); cursor: pointer; }
.code-btn:disabled { opacity: .5; }
.code-msg { margin: -6px 0 0; font-size: 13.5px; font-weight: 600; color: var(--cherry); }
.code-msg.ok { color: var(--lime); }
.row-disc { color: var(--lime) !important; font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.summary-rows { border-top: 1px solid var(--blush-deep); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.summary-rows .row { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.summary-rows .row strong { color: var(--cocoa); }
.summary-rows .total { border-top: 1px solid var(--blush-deep); padding-top: 10px; color: var(--cocoa); font-weight: 700; align-items: baseline; }
.summary-rows .total strong { font-family: var(--display); font-weight: 800; font-size: 28px; }

.order { overflow-x: clip; flex: 1 1 auto; display: flex; justify-content: center; padding-top: 56px; padding-bottom: 72px; }
.order-state { position: relative; width: 100%; max-width: 640px; display: flex; flex-direction: column; gap: 18px; }
.order-summary { position: static; }
.ref-chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; background: var(--white); border-radius: 999px; padding: 6px 6px 6px 18px; font-size: 15px; }
.ref-chip span { color: var(--muted); }
.ref-chip strong { font-family: var(--display); font-size: 20px; letter-spacing: .02em; }
.ref-chip .copy { border: 0; background: var(--lime); border-radius: 999px; min-height: 36px; padding: 0 14px; font-weight: 700; font-size: 13px; }
.ref-chip:not(:has(.copy)) { padding-right: 18px; }
.flow-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.spinner { width: 84px; height: 84px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; font-size: 34px; animation: pulse 1.4s var(--ease) infinite; }
.spinner i { font-style: normal; display: inline-block; animation: spin 1.6s linear infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.confetti { position: absolute; inset: -40px 0 auto; height: 520px; overflow: hidden; pointer-events: none; z-index: 2; }
.confetti i { position: absolute; top: 0; font-style: normal; animation: fall 2.4s cubic-bezier(.2, .6, .4, 1) forwards; opacity: 0; }
@keyframes fall { 0% { opacity: 0; transform: translate(0, -20px) rotate(0); } 10% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), 420px) rotate(540deg); } }
.js .order-state > *:not(.confetti) { opacity: 0; transform: translateY(20px); }
.js .is-loaded .order-state > *:not(.confetti) { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .8s var(--ease); }
.js .is-loaded .order-state > *:nth-child(2) { transition-delay: .06s; }
.js .is-loaded .order-state > *:nth-child(3) { transition-delay: .12s; }
.js .is-loaded .order-state > *:nth-child(4) { transition-delay: .18s; }
.js .is-loaded .order-state > *:nth-child(5) { transition-delay: .24s; }
.js .is-loaded .order-state > *:nth-child(n+6) { transition-delay: .3s; }

@media (max-width: 899px) {
  .checkout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "sum" "form"; padding-top: 24px; gap: 18px; }
  .summary { position: static; }
}
@media (max-width: 599px) {
  .flow-head { padding-block: 6px; }
  .flow-head .logo img { width: 100px; }
  .flow-head .back span, .flow-secure span { display: none; }
  .panel { padding: 18px; border-radius: 20px; }
  .panel legend { font-size: 21px; }
  .zone-list, .field-row { grid-template-columns: minmax(0, 1fr); }
  .order { padding-top: 32px; }
  .flow-ctas .btn { flex: 1 1 100%; }
}


/* ---------- bank transfer ---------- */
.bank-card { background: var(--cocoa); color: var(--blush); border-radius: 24px; padding: 8px 22px; display: flex; flex-direction: column; }
.bank-row { display: flex; align-items: center; gap: 12px; min-height: 58px; border-bottom: 1px solid var(--dark-line); }
.bank-row:last-child { border-bottom: 0; }
.bank-row > span { flex: 0 0 132px; color: var(--on-dark-2); font-size: 14px; }
.bank-row > strong { flex: 1 1 auto; font-size: 17px; min-width: 0; overflow-wrap: anywhere; }
.bank-row .mono { font-family: var(--display); font-size: 22px; letter-spacing: .04em; }
.bank-amount > strong { font-family: var(--display); font-size: 30px; color: var(--lime); }
.copy { border: 0; background: var(--lime); color: var(--cocoa); border-radius: 999px; min-height: 38px; padding: 0 16px; font-weight: 700; font-size: 13px; flex: 0 0 auto; transition: transform .3s var(--ease-back); }
.copy:hover { transform: scale(1.06); }
.copy:active { transform: scale(.94); }
.hold { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--cocoa-2); }
.hold svg { color: var(--cherry); flex: 0 0 auto; }
.upload h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 24px; }
.drop { position: relative; display: block; border: 2px dashed #D9B8B2; border-radius: 20px; background: var(--blush); cursor: pointer; transition: border-color .3s, background .3s; }
.drop:hover, .drop:focus-within { border-color: var(--cocoa); background: #FBEFEC; }
.drop.has-file { border-style: solid; border-color: var(--cocoa); background: var(--white); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 16px; text-align: center; }
.drop-empty svg { color: var(--cherry); }
.drop-empty small, .drop-file small { color: var(--muted); font-size: 13px; }
.drop-file { display: flex; align-items: center; gap: 14px; padding: 12px; }
.drop-file img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.drop-file-name { display: flex; flex-direction: column; min-width: 0; }
.drop-file-name strong { overflow-wrap: anywhere; }
.order-mini { background: var(--white); border-radius: 20px; padding: 4px 22px; }
.order-mini summary { cursor: pointer; min-height: 52px; display: flex; align-items: center; font-weight: 700; list-style: none; }
.order-mini summary::-webkit-details-marker { display: none; }
.order-mini summary::after { content: "+"; margin-left: auto; font-size: 22px; transition: transform .3s var(--ease); }
.order-mini[open] summary::after { transform: rotate(45deg); }
.order-mini .summary { padding: 0 0 18px; }
.spinner.calm { animation-duration: 2.6s; }
.order-banner { background: var(--lime); color: var(--cocoa); }
.order-banner .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; padding-block: 10px; font-size: 14px; font-weight: 500; text-align: center; }
.order-banner a { font-weight: 700; }
@media (max-width: 599px) {
  .bank-card { padding: 4px 16px; }
  .bank-row { flex-wrap: wrap; gap: 2px 10px; padding: 10px 0; }
  .bank-row > span { flex: 0 0 100%; font-size: 13px; }
  .bank-row > strong { flex: 1 1 0; }
  .bank-row .mono { font-size: 20px; }
  .bank-amount > strong { font-size: 26px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
  .js .load, .js .reveal, .js .reveal-img, .js .reveal-img img, .js .hero-title .w > span, .js .header { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js .sticker { scale: 1; }
  .js .hl::after { transform: none; }
}
