/* © 2026 MinorBug. All rights reserved. Proprietary design & code prepared for Rglow — do not copy or redistribute without written permission. */
/* =========================================================================
   Rglow · P3 "Everyday Club" — extras Tailwind can't express on its own
   (font tokens, keyframes, mask logo, layer states, marquee, stickers).
   Shopify: swap the --font-* vars for the licensed @font-face files.
   ========================================================================= */

:root {
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Solway", ui-serif, Georgia, serif;
  --font-hand: "Caveat", "Segoe Print", cursive;
  --c-terracotta: #A45D44;
  --c-cloud: #F0EEE9;
  --c-sienna: #713520;
  --c-dusty: #D29866;
  --c-blush: #F3D9CF;
  --c-peach: #F6E1CC;
  --c-butter: #FBF4EA;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --out: cubic-bezier(.22, 1, .36, 1);
  --bottom-nav: 84px;
}

html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
html.ec-lock { overflow: hidden; }

body {
  background: var(--c-cloud);
  color: var(--c-sienna);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@media (max-width: 1023.98px) {
  body { padding-bottom: calc(var(--bottom-nav) + env(safe-area-inset-bottom)); }
}
::selection { background: var(--c-terracotta); color: var(--c-cloud); }

/* Visible, on-brand keyboard focus */
:focus-visible {
  outline: 2.5px solid var(--c-terracotta);
  outline-offset: 3px;
  border-radius: 999px;
}
.ec-focus-card:focus-visible, a.ec-tile:focus-visible, .ec-focus-sq:focus-visible { border-radius: 28px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; transition: top .3s var(--out); }
.skip-link:focus { top: 12px; }

/* ---------- Logo via mask (recolourable, never stretched) ---------- */
.ec-logo {
  -webkit-mask: url("../../assets/img/wordmark.png") center / contain no-repeat;
          mask: url("../../assets/img/wordmark.png") center / contain no-repeat;
  aspect-ratio: 2000 / 929;
}
.ec-mono {
  -webkit-mask: url("../../assets/img/monogram.png") center / contain no-repeat;
          mask: url("../../assets/img/monogram.png") center / contain no-repeat;
  aspect-ratio: 393 / 470;
}

/* ---------- Rotating sticker badge ---------- */
.ec-sticker { display: inline-block; filter: drop-shadow(3px 3px 0 rgba(113, 53, 32, .9)); }
.ec-spin { transform-origin: 60px 60px; animation: ec-spin 16s linear infinite; }
.ec-sticker:hover .ec-spin { animation-duration: 5s; }
@keyframes ec-spin { to { transform: rotate(360deg); } }

/* Washi tape label */
.ec-tape { position: relative; }
.ec-tape::before {
  content: ""; position: absolute; left: 50%; top: -11px; width: 64px; height: 22px;
  transform: translateX(-50%) rotate(-4deg);
  background: repeating-linear-gradient(90deg, rgba(246, 225, 204, .92) 0 6px, rgba(243, 217, 207, .92) 6px 12px);
  box-shadow: 0 1px 2px rgba(113, 53, 32, .15);
  border-left: 2px dotted rgba(255, 255, 255, .6); border-right: 2px dotted rgba(255, 255, 255, .6);
}

/* Handwritten arrows draw in */
.ec-draw path { stroke-dasharray: 220; stroke-dashoffset: 220; transition: stroke-dashoffset 1.2s var(--out) .4s; }
.ec-draw.is-in path, .is-revealed .ec-draw path { stroke-dashoffset: 0; }

/* ---------- Word reveal ---------- */
.ec-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.ec-w > span { display: inline-block; will-change: transform; }

/* ---------- Layers: drawers / modals / sheets ---------- */
.ec-layer { visibility: hidden; transition: visibility 0s linear .55s; }
.ec-layer.is-open { visibility: visible; transition: none; }
.ec-layer [data-overlay] { opacity: 0; transition: opacity .45s var(--out); }
.ec-layer.is-open [data-overlay] { opacity: 1; }
.ec-layer [data-panel] { transition: transform .6s var(--out), opacity .45s var(--out); }
.ec-layer.is-open [data-panel] { transform: none !important; opacity: 1 !important; }
.ec-layer[data-spring].is-open [data-panel] { transition: transform .7s var(--spring), opacity .35s var(--out); }

/* ---------- Micro animations ---------- */
@keyframes ec-jump { 0%,100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-7px) rotate(-8deg); } 60% { transform: translateY(1px) rotate(4deg); } }
.ec-jump { animation: ec-jump .6s var(--spring); }
@keyframes ec-bounce { 0% { transform: scale(1); } 35% { transform: scale(1.55); } 65% { transform: scale(.85); } 100% { transform: scale(1); } }
.ec-bounce { animation: ec-bounce .6s var(--spring); }
@keyframes ec-pop { 0% { transform: scale(1); } 40% { transform: scale(.88); } 75% { transform: scale(1.08); } 100% { transform: scale(1); } }
.ec-pop { animation: ec-pop .5s var(--spring); }
@keyframes ec-pulse { 0% { box-shadow: 0 0 0 0 rgba(164, 93, 68, .55); } 70% { box-shadow: 0 0 0 16px rgba(164, 93, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(164, 93, 68, 0); } }
.ec-pulse { animation: ec-pulse 2s var(--out) infinite; }
@keyframes ec-float { 0%,100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-8px) rotate(var(--r, 0deg)); } }
.ec-float { animation: ec-float 5s ease-in-out infinite; }
@keyframes ec-rise { from { opacity: 0; transform: translateY(28px) scale(.97); } to { opacity: 1; transform: none; } }
.ec-rise { animation: ec-rise .7s var(--spring) both; }
@keyframes ec-shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.ec-shake { animation: ec-shake .35s ease; }

/* Springy buttons (Tailwind handles colour; this handles the press) */
.ec-btn { transition: transform .45s var(--spring), background-color .3s, color .3s, box-shadow .3s; }
.ec-btn:hover { transform: translateY(-2px) rotate(-1deg); }
.ec-btn:active { transform: translateY(1px) scale(.96); transition-duration: .12s; }

/* ---------- Preloader (ported from P1 Atelier) ---------- */
.ec-loader { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; background: var(--c-terracotta); color: var(--c-cloud); }
.ec-loader-mark { position: relative; width: 84px; aspect-ratio: 393 / 470; }
.ec-loader-mark span { position: absolute; inset: 0; -webkit-mask: url("../../assets/img/monogram.png") center / contain no-repeat; mask: url("../../assets/img/monogram.png") center / contain no-repeat; }
.ec-loader-mark .ghost { background: rgba(240, 238, 233, .25); }
.ec-loader-mark .fill { background: var(--c-cloud); clip-path: inset(100% 0 0 0); }
.ec-loader-count { position: absolute; right: clamp(16px, 4vw, 48px); bottom: clamp(16px, 4vw, 48px); font: 300 clamp(3rem, 9vw, 8rem)/1 var(--font-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.ec-loader-tag { position: absolute; left: clamp(16px, 4vw, 48px); bottom: calc(clamp(16px, 4vw, 48px) + 10px); font: 700 .72rem/1 var(--font-display); letter-spacing: .24em; text-transform: uppercase; }

/* ---------- Reviews: swipe rail on phones (MOM 01: keep mobile simple) ---------- */
@media (max-width: 767px) {
  #rev-grid.ec-rev-rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -12px; padding: 4px 12px 10px; scrollbar-width: none; }
  #rev-grid.ec-rev-rail::-webkit-scrollbar { display: none; }
  #rev-grid.ec-rev-rail > * { flex: 0 0 84%; scroll-snap-align: center; }
  #rev-grid.ec-rev-rail > .ec-rev-photo { display: none; }
}

/* ---------- Breadcrumbs: comfortable tap height on phones ---------- */
nav[aria-label="Breadcrumb"] a { display: inline-block; padding-block: .5rem; }

/* ---------- Policy text (lists + links inside rendered copy) ---------- */
.ec-prose ul { list-style: disc; padding-left: 1.3rem; }
.ec-prose ol { list-style: decimal; padding-left: 1.3rem; }
.ec-prose li { margin-top: .4rem; padding-left: .2rem; }
.ec-prose li::marker { color: var(--c-terracotta); font-weight: 700; }
.ec-prose a { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Velocity marquee ---------- */
.ec-marquee { overflow: hidden; }
.ec-marquee-track { display: flex; width: max-content; will-change: transform; }
.ec-marquee-track > * { flex-shrink: 0; }

/* ---------- Draggable carousel ---------- */
.ec-rail { touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.ec-rail.is-dragging { cursor: grabbing; }
.ec-rail.is-dragging a { pointer-events: none; }
.ec-rail img { -webkit-user-drag: none; user-select: none; }

/* ---------- UGC reels ---------- */
@keyframes ec-kenburns { 0% { transform: scale(1.02) translate(0, 0); } 100% { transform: scale(1.18) translate(-3%, -4%); } }
.ec-reel.is-playing .ec-reel-img { animation: ec-kenburns 7s ease-out forwards; }
@media (hover: hover) { .ec-reel:hover .ec-reel-img { animation: ec-kenburns 7s ease-out forwards; } }
.ec-reel-bar > i { display: block; height: 100%; width: 0; background: var(--c-cloud); border-radius: 9px; }
.ec-reel.is-playing .ec-reel-bar > i { animation: ec-fill 7s linear forwards; }
@media (hover: hover) { .ec-reel:hover .ec-reel-bar > i { animation: ec-fill 7s linear forwards; } }
@keyframes ec-fill { to { width: 100%; } }
.ec-reel .ec-reel-shop { opacity: 0; transform: translateY(14px); transition: opacity .4s var(--out), transform .5s var(--spring); }
.ec-reel.is-playing .ec-reel-shop, .ec-reel:focus-within .ec-reel-shop { opacity: 1; transform: none; }
@media (hover: hover) { .ec-reel:hover .ec-reel-shop { opacity: 1; transform: none; } }

/* ---------- Misc ---------- */
.ec-noscroll { scrollbar-width: none; }
.ec-noscroll::-webkit-scrollbar { display: none; }
.ec-grain { position: relative; isolation: isolate; }
.ec-grain::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35; pointer-events: none; border-radius: inherit;
  background-image: radial-gradient(rgba(113, 53, 32, .09) 1px, transparent 1px); background-size: 4px 4px;
}
.ec-outline-text { color: transparent; -webkit-text-stroke: 1.5px var(--c-cloud); }
.ec-scribble { background: linear-gradient(transparent 62%, rgba(210, 152, 102, .45) 62% 90%, transparent 90%); }

/* Accordion: animate grid rows */
.ec-acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--out); }
.ec-acc-panel > div { overflow: hidden; }
[aria-expanded="true"] + .ec-acc-panel, :has(> [aria-expanded="true"]) + .ec-acc-panel { grid-template-rows: 1fr; }
[aria-expanded="true"] .ec-acc-icon { transform: rotate(45deg); }

/* Gallery crossfade */
.ec-main-img { transition: opacity .55s var(--out), transform .8s var(--out); }

/* Range-like progress bars */
.ec-bar > span { display: block; height: 100%; border-radius: inherit; transition: width .8s var(--spring); }

/* =========================================================================
   Mobile nav (< 1024px): liquid tab bar + sticker-bento menu sheet
   Shopify: header-group section "mobile-bottom-nav" + "mobile-menu".
   ========================================================================= */
:root {
  /* Damped-spring curves (generated, zeta .72 / .55 / .45). Fallbacks below. */
  --spring-sheet: cubic-bezier(.22, 1.18, .36, 1);
  --spring-blob: cubic-bezier(.34, 1.5, .5, 1);
  --spring-pop: cubic-bezier(.3, 1.7, .5, 1);
  --ease-in: cubic-bezier(.45, 0, .8, .3);
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring-sheet: linear(0, .0203, .0731, .1479, .2359, .3302, .4257, .5181, .6049, .6841, .7546, .8161, .8685, .9122, .9477, .976, .9977, 1.0138, 1.0251, 1.0325, 1.0367, 1.0383, 1.0381, 1.0364, 1.0338, 1.0305, 1.027, 1.0233, 1.0197, 1.0163, 1.0131, 1.0103, 1.0078, 1.0057, 1.0039, 1.0024, 1);
    --spring-blob: linear(0, .0347, .1241, .2477, .3886, .5327, .6697, .7925, .8967, .9803, 1.0431, 1.0866, 1.1129, 1.1248, 1.1253, 1.1175, 1.1039, 1.087, 1.0689, 1.0509, 1.0343, 1.0199, 1.0079, .9985, .9917, .9873, .9848, .984, .9845, .9859, .9878, .99, .9924, .9946, .9965, .9982, 1);
    --spring-pop: linear(0, .0517, .1831, .3602, .5537, .7401, .903, 1.0325, 1.1248, 1.1805, 1.2037, 1.2008, 1.179, 1.1452, 1.1061, 1.0668, 1.0313, 1.0021, .9803, .9663, .9592, .958, .9613, .9675, .9753, .9834, .9911, .9976, 1.0026, 1.0061, 1.008, 1.0087, 1.0083, 1.0072, 1.0057, 1.004, 1);
  }
}

/* ---------- Liquid tab bar ---------- */
.ec-tabbar { height: 64px; }
.ec-goo-clip { position: absolute; inset: 4px; border-radius: 999px; overflow: hidden; pointer-events: none; }
.ec-goo { position: absolute; inset: -24px; filter: url(#ec-goo); }
.ec-blob {
  position: absolute; left: 24px; top: 50%; display: block; background: var(--c-terracotta); border-radius: 999px;
  transform: translate3d(calc(var(--bx, 0px) - 50%), -50%, 0) scale(var(--bs, 0));
}
.ec-blob[data-blob="a"] { width: 60px; height: 54px; border-radius: 27px; transition: transform .7s var(--spring-blob); }
.ec-blob[data-blob="b"] { width: 42px; height: 42px; transition: transform .85s var(--out) .05s; }
.ec-blob[data-blob="c"] { width: 26px; height: 26px; transition: transform 1.05s var(--out) .1s; }
.ec-blob[data-blob="a"] > i { display: block; width: 100%; height: 100%; border-radius: inherit; background: inherit; }
.ec-blob.is-moving > i { animation: ec-squash .7s var(--out); }
@keyframes ec-squash { 0% { transform: scale(1, 1); } 30% { transform: scale(1.32, .8); } 62% { transform: scale(.94, 1.06); } 100% { transform: scale(1, 1); } }

.ec-tab { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 100%; height: 56px; border-radius: 999px; color: rgba(113, 53, 32, .78); transition: color .25s var(--out) .12s, transform .45s var(--spring); -webkit-tap-highlight-color: transparent; }
.ec-tab[data-active] { color: var(--c-cloud); }
.ec-tab:active { transform: scale(.9); transition-duration: .1s; }
.ec-tab:focus-visible { outline-offset: -2px; }
.ec-tab svg { transition: transform .5s var(--spring); }
.ec-tab[data-active] svg { transform: translateY(-1px) scale(1.06); }

/* Raised quiz button + slow sparkle ring */
.ec-quiz-fab { position: relative; display: grid; place-items: center; width: 62px; height: 62px; margin-top: -30px; border-radius: 999px; -webkit-tap-highlight-color: transparent; }
.ec-quiz-ring { position: absolute; inset: -15px; pointer-events: none; }
.ec-quiz-ring svg { width: 100%; height: 100%; animation: ec-spin 22s linear infinite; }
.ec-quiz-fab:active .ec-quiz-core { transform: scale(.9); transition-duration: .1s; }
.ec-quiz-core { position: relative; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 999px; transition: transform .45s var(--spring); }

/* ---------- Menu layer ---------- */
.ec-menu-scrim {
  position: absolute; inset: 0; opacity: 0; transition: opacity .45s var(--out);
  background: radial-gradient(120% 70% at 50% 0%, rgba(246, 225, 204, .4), rgba(243, 217, 207, .62) 60%, rgba(210, 152, 102, .45));
  -webkit-backdrop-filter: blur(5px) saturate(1.1); backdrop-filter: blur(5px) saturate(1.1);
}
.ec-menu.is-open .ec-menu-scrim { opacity: 1; }

.ec-menu-sheet {
  position: absolute; left: 8px; right: 8px; bottom: -48px; margin-inline: auto; max-width: 640px;
  max-height: calc(100vh - 64px + 48px); max-height: calc(100dvh - 64px + 48px);
  padding-bottom: calc(48px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(180deg, #FBF4EA 0%, var(--c-cloud) 38%);
  border: 1.5px solid var(--c-sienna); border-bottom: 0; border-radius: 34px 34px 0 0;
  box-shadow: 0 -30px 60px -30px rgba(113, 53, 32, .45);
  transform: translate3d(0, 105%, 0);
  transition: transform .42s var(--ease-in);
  will-change: transform;
}
.ec-menu.is-open .ec-menu-sheet { transform: translate3d(0, 0, 0); transition: transform .82s var(--spring-sheet); }
.ec-menu-sheet.is-dragging { transition: none !important; }
.ec-menu-drag { touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.ec-menu-drag:active { cursor: grabbing; }
.ec-menu-handle { display: block; width: 44px; height: 5px; margin: 10px auto 0; border-radius: 9px; background: rgba(113, 53, 32, .28); transition: transform .4s var(--spring), background-color .3s; }
.ec-menu-sheet.is-dragging .ec-menu-handle { transform: scaleX(1.35); background: var(--c-terracotta); }
.ec-menu-scroll { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.ec-menu-scroll::-webkit-scrollbar { display: none; }

/* Page behind: scales down a touch (origin set from JS so it shrinks about the viewport centre) */
.ec-push { transition: transform .5s var(--out); }
html.ec-menu-open .ec-push { transform: scale(.94); transition: transform .8s var(--spring-sheet); }

/* Sticker tiles: pop in with stagger + random tilt (--r set per open) */
.ec-mtile {
  position: relative; border-radius: 26px; border: 1.5px solid var(--c-sienna);
  box-shadow: 2px 2px 0 0 var(--c-sienna); -webkit-tap-highlight-color: transparent;
  opacity: 0; transform: translateY(26px) scale(.55) rotate(calc(var(--r, 0deg) * 4));
}
.is-popped .ec-mtile {
  opacity: 1; transform: rotate(var(--r, 0deg));
  transition: transform .95s var(--spring-pop) var(--d, 0s), opacity .3s var(--out) var(--d, 0s), box-shadow .3s;
}
.is-settled .ec-mtile { transition: transform .5s var(--spring), opacity .3s, box-shadow .25s; }
.is-settled .ec-mtile:active { transform: rotate(var(--r, 0deg)) scale(.95, .92); box-shadow: 0 0 0 0 var(--c-sienna); transition-duration: .12s; }
@media (hover: hover) { .is-settled .ec-mtile:hover { transform: rotate(0deg) translateY(-3px); box-shadow: 4px 4px 0 0 var(--c-sienna); } }
.ec-mtile:focus-visible { outline: 2.5px solid var(--c-terracotta); outline-offset: 3px; border-radius: 26px; }
.ec-mfade { opacity: 0; transform: translateY(14px); }
.is-popped .ec-mfade { opacity: 1; transform: none; transition: transform .7s var(--spring-blob) var(--d, 0s), opacity .35s var(--out) var(--d, 0s); }

/* Liner squiggles draw on open */
.ec-squig path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-popped .ec-squig path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--out) var(--d, 0s); }

/* Tiny Ken Burns loop */
.ec-kb { animation: ec-kb 9s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes ec-kb { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.22) translate(-4%, -3%); } }

/* Hot chips */
.ec-chip-row { scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-mask: linear-gradient(90deg, #000 88%, transparent); mask: linear-gradient(90deg, #000 88%, transparent); }
.ec-chip-row::-webkit-scrollbar { display: none; }
.ec-chip { scroll-snap-align: start; }
.ec-chip-add { position: relative; transition: transform .45s var(--spring), background-color .3s; }
.ec-chip-add::after { content: ""; position: absolute; inset: -6px; border-radius: 999px; }
.ec-chip-add:active { transform: scale(.85); transition-duration: .1s; }
.ec-chip.is-added { animation: ec-pop .55s var(--spring); }

/* Ticker */
.ec-ticker-track { display: flex; width: max-content; animation: ec-ticker 22s linear infinite; }
@keyframes ec-ticker { to { transform: translateX(-50%); } }

/* Caveat "start here!" note */
.ec-note path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-popped .ec-note path { stroke-dashoffset: 0; transition: stroke-dashoffset .9s var(--out) .75s; }
.ec-note-text { opacity: 0; transform: rotate(-8deg) scale(.6); }
.is-popped .ec-note-text { opacity: 1; transform: rotate(-8deg); transition: transform .8s var(--spring-pop) .65s, opacity .3s .65s; }

/* =========================================================================
   Store extras: cart milestones, switch, checkbox, sold-out stamp, copy states,
   sale countdown. Shopify: cart-drawer snippets + sections "sale-*", "glow-rewards".
   ========================================================================= */
/* Milestone markers on the two-step progress bar */
.ec-node {
  position: absolute; top: 50%; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px;
  transform: translate(-50%, -50%); border-radius: 999px; border: 1.5px solid rgba(113, 53, 32, .35);
  background: var(--c-cloud); color: rgba(113, 53, 32, .55);
  transition: background-color .4s var(--out), color .4s var(--out), border-color .4s, box-shadow .4s;
}
.ec-node[data-on] { background: var(--c-terracotta); color: var(--c-cloud); border-color: var(--c-sienna); box-shadow: 2px 2px 0 0 var(--c-sienna); }
.ec-node.ec-pop { animation: ec-node-pop .6s var(--spring); }
@keyframes ec-node-pop { 0% { transform: translate(-50%, -50%) scale(1); } 40% { transform: translate(-50%, -50%) scale(1.35) rotate(-12deg); } 100% { transform: translate(-50%, -50%) scale(1); } }

/* Switch (gift wrap) */
.ec-switch { position: relative; flex-shrink: 0; width: 50px; height: 30px; border-radius: 999px; background: rgba(113, 53, 32, .18); border: 1.5px solid rgba(113, 53, 32, .25); transition: background-color .3s var(--out), border-color .3s; }
.ec-switch > i { position: absolute; top: 2.5px; left: 3px; width: 22px; height: 22px; border-radius: 999px; background: var(--c-cloud); box-shadow: 0 1px 3px rgba(113, 53, 32, .35); transition: transform .45s var(--spring); }
[aria-checked="true"] > .ec-switch { background: var(--c-terracotta); border-color: var(--c-sienna); }
[aria-checked="true"] > .ec-switch > i { transform: translateX(19px); }
#ec-wrap:focus-visible { outline-offset: 2px; border-radius: 16px; }

/* Custom checkbox (WhatsApp opt-in) */
.ec-check { display: grid; place-items: center; flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid var(--c-sienna); background: var(--c-cloud); color: transparent; transition: background-color .25s, color .25s, transform .4s var(--spring); }
.ec-check-input:checked + .ec-check { background: var(--c-terracotta); color: var(--c-cloud); transform: rotate(-6deg); }
.ec-check-input:focus-visible + .ec-check { outline: 2.5px solid var(--c-terracotta); outline-offset: 3px; }

/* Sold-out stamp (cards, PDP gallery) */
.ec-stamp {
  display: grid; place-items: center; align-content: center; gap: 2px; width: 76px; height: 76px; padding-top: 2px;
  border-radius: 999px; background: var(--c-sienna); color: var(--c-cloud); text-align: center;
  border: 1.5px solid var(--c-cloud); outline: 1.5px dashed rgba(113, 53, 32, .6); outline-offset: 2px;
  box-shadow: 3px 3px 0 0 rgba(113, 53, 32, .9); transform: rotate(-10deg);
}
/* Strike-through on sold-out swatches */
.ec-slash::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2.5px; border-radius: 3px; background: var(--c-cloud); box-shadow: 0 0 0 1px var(--c-sienna); transform: translateX(-50%) rotate(45deg); }

.ec-stamp > span:last-child { font-size: 14px; white-space: nowrap; }
.ec-chev { transition: transform .45s var(--spring); }
[aria-expanded="true"] .ec-chev { transform: rotate(180deg); }

/* Copy buttons: icon swap */
[data-copy] [data-copied-ic] { display: none; }
[data-copy].is-copied [data-copy-ic] { display: none; }
[data-copy].is-copied [data-copied-ic] { display: inline-block; }

/* Coupon sticker (sale) */
.ec-coupon { position: relative; border: 2px dashed var(--c-sienna); }
.ec-coupon::before, .ec-coupon::after { content: ""; position: absolute; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 999px; background: var(--coupon-bg, var(--c-cloud)); border: 2px dashed var(--c-sienna); }
.ec-coupon::before { left: -10px; clip-path: inset(0 0 0 50%); }
.ec-coupon::after { right: -10px; clip-path: inset(0 50% 0 0); }

/* Countdown digits */
.ec-digit { display: inline-block; font-variant-numeric: tabular-nums; }
.ec-digit.is-tick { animation: ec-tick .5s var(--spring); }
@keyframes ec-tick { 0% { transform: translateY(-35%) rotateX(60deg); opacity: .2; } 100% { transform: none; opacity: 1; } }

/* Reduced motion: render final state */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .ec-spin, .ec-float, .ec-pulse, .ec-kb, .ec-ticker-track, .ec-quiz-ring svg { animation: none !important; }
  .ec-loader { display: none; }
  .ec-draw path { stroke-dashoffset: 0; }
  .ec-reel .ec-reel-shop { opacity: 1; transform: none; }
  /* Mobile nav: simple fade, no goo, no tilt, no page scale */
  .ec-goo { filter: none; }
  .ec-blob[data-blob="b"], .ec-blob[data-blob="c"] { display: none; }
  .ec-menu .ec-menu-sheet { transform: none !important; opacity: 0; transition: opacity .25s linear !important; }
  .ec-menu.is-open .ec-menu-sheet { opacity: 1; }
  .ec-menu .ec-menu-scrim { transition: opacity .25s linear !important; }
  html.ec-menu-open .ec-push { transform: none; }
  .ec-mtile, .is-popped .ec-mtile, .ec-mfade, .ec-note-text { opacity: 1 !important; transform: none !important; }
  .ec-squig path, .ec-note path { stroke-dashoffset: 0 !important; }
  .ec-ticker-track { flex-wrap: wrap; width: auto; }
  .ec-ticker-track > [data-dup] { display: none; }
}
