/* ==========================================================
   BECAT — style.css
   Palette: black, white, off-white. Square corners. Big type.
   Sections: 1 Base  2 Header  3 Hero  4 Shop  5 Collections
             6 Story/Instagram/Contact  7 Footer  8 Dialogs
             9 Bag  10 Toast  11 Motion, mascot, brand details  12 Reduced motion
   ========================================================== */

/* ---------- 1. BASE ---------- */
:root {
  --black: #000;
  --white: #fff;
  --paper: #f2f2ef;
  --stone: #e4e4df;
  --grey: #5f5f5b;
  --line: #cfcfca;
  --danger: #b00020;
  --focus: #000;
  --header-h: 68px;
  --logo-h: 72px;
  --section-pad: clamp(4rem, 9vw, 8rem);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Archivo", "Arial Narrow", Impact, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.on-dark { --focus: #fff; }

.container { width: min(100% - 2.5rem, 1400px); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--black); color: var(--white); padding: .75rem 1rem;
}
.skip-link:focus { top: 1rem; }

.display {
  font-family: var(--font-display);
  font-stretch: 62%;
  font-weight: 900;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: -.005em;
}

.fine { font-size: .8125rem; color: var(--grey); line-height: 1.5; }
.notice { padding: 1rem; border: 1px solid var(--black); margin-top: 1.5rem; }

/* Buttons */
.btn {
  --fill: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.75rem;
  border: 1px solid var(--black); background-color: var(--black); color: var(--white);
  background-image: linear-gradient(var(--fill), var(--fill));
  background-repeat: no-repeat; background-position: left center; background-size: 0% 100%;
  font-weight: 600; font-size: .9375rem; letter-spacing: .02em;
  text-decoration: none; border-radius: 0;
  transition: background-size .4s var(--ease-out), color .3s, transform .15s;
}
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { background-color: var(--stone); background-image: none; color: var(--grey); border-color: var(--line); cursor: not-allowed; }
.btn--ghost { --fill: var(--black); background-color: transparent; color: var(--black); }
.btn--light { --fill: var(--black); background-color: var(--white); color: var(--black); border-color: var(--white); }
.btn--block { width: 100%; }
@media (hover: hover) {
  .btn:hover:not(:disabled) { background-size: 100% 100%; color: var(--black); }
  .btn--ghost:hover:not(:disabled), .btn--light:hover:not(:disabled) { color: var(--white); }
}
.btn:focus-visible:not(:disabled) { background-size: 100% 100%; color: var(--black); }
.btn--ghost:focus-visible:not(:disabled), .btn--light:focus-visible:not(:disabled) { color: var(--white); }

.text-link { font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  background: none; border: 0; padding: 0;
}

/* Sections */
.section { padding-block: var(--section-pad); }
.section--white { background: var(--white); }
.section--dark { background: var(--black); color: var(--white); }

.section-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 1.5rem; margin-bottom: clamp(1.75rem, 4vw, 3rem);
}
.section-title { font-size: clamp(2.75rem, 8vw, 6.5rem); }

/* ---------- Announcement ---------- */
.announcement { background: var(--black); color: var(--white); text-align: center; padding: .6rem 1.25rem; }
.announcement p { font-size: .8125rem; letter-spacing: .02em; }

/* ---------- 2. HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper); border-bottom: 1px solid var(--line);
  height: var(--header-h);
  transition: background-color .35s, box-shadow .35s, border-color .35s;
}
.site-header.is-scrolled {
  background: rgba(242, 242, 239, .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom-color: transparent; box-shadow: 0 1px 0 rgba(0, 0, 0, .12), 0 8px 24px rgba(0, 0, 0, .05);
}
.site-nav-open .site-header { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
.header-inner {
  width: min(100% - 1.5rem, 1400px); margin-inline: auto; height: 100%;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.brand-logo { justify-self: center; align-self: start; margin-top: 3px; position: relative; z-index: 2; display: block; line-height: 0; }
.brand-logo img { display: block; height: var(--logo-h); width: auto; aspect-ratio: 900 / 910; transform-origin: 50% 0; }
.wordmark-fallback { font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; letter-spacing: .14em; line-height: 1; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.bag-btn {
  justify-self: end; display: inline-flex; align-items: center; gap: .4rem;
  min-height: 44px; padding: 0 .5rem; background: none; border: 0; font-weight: 600;
}
.bag-label { display: none; }
.bag-count {
  display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding: 0 .35rem;
  background: var(--black); color: var(--white); font-size: .75rem; font-weight: 700;
}
.bag-count.is-bumped { animation: bump .4s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }

/* Mobile menu: full-screen panel under the header */
.site-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  height: calc(100dvh - var(--header-h)); background: var(--paper);
  padding: 2rem 1.25rem;
  overflow-x: hidden; overflow-y: auto;
  visibility: hidden; opacity: 0; transform: translateY(-10px);
  transition: opacity .3s ease, transform .35s var(--ease-out), visibility 0s linear .35s;
}
.site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.site-nav li { opacity: 0; transform: translateY(14px); transition: opacity .3s ease, transform .4s var(--ease-out); }
.site-nav.is-open li { opacity: 1; transform: none; }
.site-nav.is-open li:nth-child(1) { transition-delay: .06s; }
.site-nav.is-open li:nth-child(2) { transition-delay: .11s; }
.site-nav.is-open li:nth-child(3) { transition-delay: .16s; }
.site-nav.is-open li:nth-child(4) { transition-delay: .21s; }
.site-nav ul { display: grid; gap: .25rem; }
.site-nav a {
  display: block; padding: .35rem 0; text-decoration: none;
  font-family: var(--font-display); font-stretch: 62%; font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.5rem, 11vw, 4.5rem); line-height: 1;
}

@media (min-width: 900px) {
  :root { --header-h: 80px; --logo-h: 98px; }
  .header-inner { grid-template-columns: auto 1fr auto; width: min(100% - 2.5rem, 1400px); }
  .brand-logo { justify-self: start; margin-top: 5px; }
  .brand-logo img { transform-origin: 0 0; }
  .nav-toggle { display: none; }
  .site-nav { position: static; overflow: visible; height: auto; background: none; padding: 0; justify-self: center; visibility: visible; opacity: 1; transform: none; transition: none; }
  .site-nav li, .site-nav.is-open li { opacity: 1; transform: none; transition: none; }
  .site-nav ul { display: flex; gap: 2.5rem; }
  .site-nav a {
    font-family: var(--font-body); font-stretch: 100%; font-weight: 500; text-transform: none;
    font-size: .9375rem; line-height: 1.5; padding: .25rem 0;
    background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
    transition: background-size .25s;
  }
  .site-nav a:hover { background-size: 100% 1px; }
  .bag-label { display: inline; }
}

/* ---------- 3. HERO ---------- */
.hero { padding-block: 2rem clamp(3rem, 7vw, 6rem); }
.hero-grid { display: grid; gap: 2.5rem; }

.hero-copy { min-width: 0; }
/* Safe size for fallback fonts; enlarged once the condensed display font has loaded (class set in script.js). */
.hero-title { font-size: clamp(3.25rem, 15vw, 6rem); line-height: .88; }
.display-font-ready .hero-title { font-size: clamp(4rem, 22vw, 8.5rem); }
.hero-title .line { display: block; overflow: hidden; white-space: nowrap; }
.hero-title .line > span { display: block; animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
.hero-title .line:nth-child(2) > span { animation-delay: .09s; }
.hero-title .line:nth-child(3) > span { animation-delay: .18s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }

.hero-text { max-width: 36ch; margin-top: 1.75rem; font-size: 1.0625rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: 2rem; }

.hero-stage { position: relative; }
.hero-visual { position: relative; aspect-ratio: 4 / 5; background: var(--stone); overflow: hidden; }
.hero-art { width: 100%; height: 100%; }
.tee-crowd use { fill: none; stroke: #000; stroke-opacity: .28; stroke-width: 2.4; }
.tee-solo { fill: var(--black); stroke: none; }
.tee-print {
  font-family: var(--font-display); font-weight: 900; font-size: 19px; letter-spacing: .16em;
  fill: var(--paper);
}
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 900px) {
  .hero { padding-top: 3rem; }
  .hero-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: end; gap: 3rem; }
  .hero-title { font-size: clamp(4.5rem, 8.5vw, 9.5rem); }
  .display-font-ready .hero-title { font-size: clamp(6rem, 13vw, 12rem); }
}

/* ---------- 4. SHOP ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  min-height: 44px; padding: 0 1.1rem; background: transparent; border: 1px solid var(--black);
  font-size: .9rem; font-weight: 500; border-radius: 0; transition: background-color .2s, color .2s;
}
.chip:hover { background: var(--stone); }
.chip[aria-pressed="true"] { background: var(--black); color: var(--white); }

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; }
@media (min-width: 800px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem 1.5rem; } }

.card { display: flex; flex-direction: column; }
.card-media {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0;
  background: var(--stone); overflow: hidden; border-radius: 0;
}
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-media .img-alt { opacity: 0; transition: opacity .35s; }
.card-media img:first-child { transition: transform .6s ease; }
@media (hover: hover) {
  .card:hover .card-media .img-alt { opacity: 1; }
  .card:hover .card-media img:first-child { transform: scale(1.03); }
}
.card-tags { position: absolute; left: .6rem; top: .6rem; z-index: 2; display: flex; flex-wrap: wrap; gap: .3rem; }
.tag { background: var(--white); color: var(--black); font-size: .75rem; font-weight: 600; padding: .2rem .55rem; }
.tag--outline { background: transparent; border: 1px solid var(--black); }
.tag--dark { background: var(--black); color: var(--white); }

/* Discount badge (top-left of the product image) and price display */
.discount-badge {
  position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none;
  background: var(--danger); color: var(--white);
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: 1.125rem; line-height: 1; letter-spacing: .04em; white-space: nowrap;
  padding: .55rem .8rem;
}
.card-tags--below-badge { top: 3rem; }
.pd-gallery.has-discount { position: relative; }
.pd-gallery.has-discount .discount-badge { font-size: 1.35rem; padding: .65rem .95rem; }
.price-original { color: var(--grey); font-weight: 400; text-decoration: line-through; margin-right: .5rem; }
.price-now { font-weight: inherit; }

.card-body { padding: .9rem 0 1rem; display: grid; gap: .15rem; }
.card-name { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.card-meta { font-size: .875rem; color: var(--grey); }
.card-price { font-weight: 600; margin-top: .2rem; }
.card-add { margin-top: auto; width: 100%; }

.skeleton-card span { display: block; aspect-ratio: 4 / 5; background: var(--stone); animation: pulse 1.4s ease-in-out infinite; }
.skeleton-card i { display: block; height: .9rem; margin-top: .8rem; width: 60%; background: var(--stone); animation: pulse 1.4s ease-in-out infinite; }
.skeleton-card i + i { width: 30%; }
@keyframes pulse { 50% { opacity: .5; } }

.img-fallback {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  background: var(--black); color: var(--white); text-align: center; padding: 1rem;
}
.img-fallback svg { width: 46%; max-width: 200px; fill: none; stroke: #fff; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.img-fallback svg path { vector-effect: non-scaling-stroke; }
.img-fallback strong { font-family: var(--font-display); font-weight: 900; letter-spacing: .16em; font-size: 1.1rem; }
.img-fallback small { font-size: .75rem; opacity: .7; }

/* ---------- 5. COLLECTIONS ---------- */
.collection-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.collection-tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: 3rem;
  min-height: 240px; padding: 1.5rem; text-align: left;
  background: transparent; border: 1px solid var(--black); border-radius: 0;
  transition: background-color .25s, color .25s;
}
.collection-tile:hover { background: var(--black); color: var(--white); }
.collection-tile:hover { --focus: #fff; }
.collection-name { font-size: clamp(2.25rem, 6vw, 3.75rem); }
.collection-count { font-size: .9rem; }

/* ---------- 6. STORY / INSTAGRAM / CONTACT ---------- */
.story-grid, .insta-grid, .contact-grid { display: grid; gap: 2rem; }
.story-grid > *, .insta-grid > *, .contact-grid > * { min-width: 0; }
.story-title, .insta-title { font-size: clamp(2.25rem, 9vw, 5rem); }
.display-font-ready .story-title, .display-font-ready .insta-title { font-size: clamp(3rem, 14vw, 7.5rem); }
.story-copy { display: grid; gap: 1.1rem; max-width: 48ch; font-size: 1.0625rem; align-content: end; }
.story-place { position: relative; font-size: .875rem; color: var(--grey); padding-top: 1rem; }
.story-place::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transform-origin: left; transition: transform 1.2s var(--ease-out) var(--d, 0s); }

.insta-copy { display: grid; gap: 1.5rem; max-width: 42ch; justify-items: start; align-content: end; }

.contact-list { display: grid; gap: 1.25rem; max-width: 44ch; }
.big-link {
  display: inline-block; font-family: var(--font-display); font-stretch: 62%; font-weight: 900;
  text-transform: uppercase; font-size: clamp(2.5rem, 7vw, 4.5rem); line-height: 1.05;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.big-link:hover { text-decoration-thickness: 6px; }

@media (min-width: 900px) {
  .story-grid, .insta-grid, .contact-grid { grid-template-columns: 1.3fr 1fr; gap: 4rem; align-items: end; }
}

/* ---------- 7. FOOTER ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--black); padding-top: 3.5rem; }
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
.footer-logo { display: inline-block; line-height: 0; margin-bottom: 1rem; }
.footer-logo img { width: clamp(150px, 18vw, 200px); height: auto; aspect-ratio: 900 / 910; }
.footer-brand p:last-child { max-width: 30ch; color: var(--grey); }
.footer-heading { font-size: .875rem; font-weight: 700; margin-bottom: .75rem; }
.footer-grid li + li { margin-top: .4rem; }
.footer-grid a { text-underline-offset: 4px; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  padding-block: 1.25rem 1.75rem; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--grey);
}
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

/* ---------- 8. DIALOGS ---------- */
dialog { border: 0; padding: 0; background: var(--paper); color: var(--black); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(0, 0, 0, .6); }

/* Product detail */
.pd { width: 100vw; height: 100dvh; }
.pd[open] { animation: pd-in .35s var(--ease-out); }
@keyframes pd-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade-in { from { opacity: 0; } }
.pd-inner { position: relative; height: 100%; overflow-y: auto; display: grid; align-content: start; }
.pd-close { position: fixed; right: .5rem; top: .5rem; z-index: 5; background: var(--white); }
.pd-gallery { display: flex; flex-direction: column; min-height: 0; }
.pd-main { position: relative; aspect-ratio: 4 / 5; background: var(--stone); overflow: hidden; }
.pd-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: .5rem; padding: .5rem; background: var(--paper); }
.pd-thumb { position: relative; width: 64px; height: 80px; padding: 0; border: 1px solid var(--line); background: var(--stone); overflow: hidden; }
.pd-thumb[aria-current="true"] { border-color: var(--black); outline: 1px solid var(--black); }
.pd-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pd-thumb .img-fallback svg { width: 60%; }
.pd-thumb .img-fallback strong, .pd-thumb .img-fallback small { display: none; }

.pd-info { padding: 1.5rem 1.25rem 2rem; display: grid; gap: 1.25rem; align-content: start; }
.pd-title { font-size: clamp(2.5rem, 7vw, 3.75rem); }
.pd-price { font-size: 1.25rem; font-weight: 600; }
.pd-desc { color: #2b2b29; max-width: 46ch; }
.pd-group > legend, .pd-group > .group-label { font-weight: 600; font-size: .9rem; margin-bottom: .6rem; padding: 0; }
.pd-group { border: 0; margin: 0; padding: 0; min-width: 0; }

.size-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.size-btn {
  min-width: 56px; min-height: 48px; padding: 0 1rem; background: transparent;
  border: 1px solid var(--black); font-weight: 600; border-radius: 0; transition: background-color .15s, color .15s;
}
.size-btn:hover { background: var(--stone); }
.size-btn[aria-pressed="true"] { background: var(--black); color: var(--white); }
.size-row.is-invalid { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.field-error { color: var(--danger); font-size: .875rem; font-weight: 600; margin-top: .5rem; min-height: 1.3em; }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--black); }
.stepper button { width: 44px; height: 44px; background: none; border: 0; font-size: 1.25rem; line-height: 1; }
.stepper button:hover:not(:disabled) { background: var(--stone); }
.stepper button:disabled { color: var(--line); cursor: not-allowed; }
.stepper output { min-width: 2.5rem; text-align: center; font-weight: 600; }

@media (min-width: 800px) {
  .pd { width: min(1100px, 94vw); height: min(92dvh, 760px); margin: auto; }
  .pd-inner { grid-template-columns: 1.05fr 1fr; overflow: hidden; align-content: stretch; }
  .pd-close { position: absolute; }
  .pd-gallery { height: 100%; }
  .pd-main { flex: 1; aspect-ratio: auto; min-height: 0; }
  .pd-info { overflow-y: auto; height: 100%; padding: 3rem 2.5rem; }
}

/* PHONES ONLY: keep the product gallery at its full size.
   The product popup is a fixed-height grid, and the gallery used to be squeezed into whatever
   height the product details left over, which collapsed the main photo to a sliver. */
@media (max-width: 799px) {
  .pd-inner { grid-auto-rows: max-content; }
  .pd-gallery { min-height: auto; flex: none; }
  .pd-main, .pd-thumbs { flex: none; }
  .pd-main img, .pd-thumb img { object-fit: contain; }   /* show the whole photo, no cropping */
}

/* ---------- 9. BAG DRAWER ---------- */
.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(440px, 100vw); height: 100dvh; }
.drawer[open] { animation: slide-in .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes slide-in { from { transform: translateX(100%); } }
.drawer-inner { display: flex; flex-direction: column; height: 100%; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: .5rem .5rem .5rem 1.25rem; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.1rem; font-weight: 700; }
.drawer-brand { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.drawer-brand h2 { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: .02em; text-transform: uppercase; }

/* Official mascot in the bag (shown exactly as supplied, only scaled) */
.cart-mascot { flex: none; height: 56px; aspect-ratio: 732 / 1513; }
.cart-mascot[hidden] { display: none; }
.cart-mascot .mascot-img { width: auto; height: 100%; aspect-ratio: 732 / 1513; cursor: pointer; transform-origin: 50% 100%; }
.cart-mascot--empty { height: 150px; }
.cart-mascot--empty .mascot-img { cursor: default; }
.drawer-body { flex: 1; overflow-y: auto; padding: 0 1.25rem; }
.drawer-foot { padding: 1rem 1.25rem 0; border-top: 1px solid var(--black); background: var(--white); display: grid; gap: .75rem; max-height: 46dvh; overflow-y: auto; box-shadow: 0 -10px 18px -14px rgba(0, 0, 0, .35); }

.empty-cart { padding: 2.5rem 0 3rem; display: grid; gap: 1rem; justify-items: center; text-align: center; }
.empty-cart h3 { font-size: 2.25rem; }
.empty-cart p { max-width: 30ch; color: var(--grey); }

.cart-item { display: grid; grid-template-columns: 88px 1fr; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.cart-thumb { position: relative; width: 88px; height: 110px; background: var(--stone); overflow: hidden; }
.cart-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cart-thumb .img-fallback svg { width: 70%; }
.cart-thumb .img-fallback strong, .cart-thumb .img-fallback small { display: none; }
.cart-info { display: grid; gap: .25rem; align-content: start; min-width: 0; }
.cart-name { font-weight: 700; line-height: 1.3; font-size: .975rem; }
.cart-meta { font-size: .875rem; color: var(--grey); }
.cart-controls { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .5rem; flex-wrap: wrap; }
.cart-controls .stepper button { width: 40px; height: 40px; }
.cart-line-total { font-weight: 700; font-size: 1.05rem; }
.link-btn { background: none; border: 0; padding: .4rem 0; font-size: .875rem; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { text-decoration-thickness: 2px; }
.cart-item .link-btn { color: var(--grey); }
.cart-item .link-btn:hover { color: var(--black); }

.field-label { font-size: .875rem; font-weight: 600; }
.field { display: grid; gap: .4rem; }
.field-req { font-weight: 400; color: var(--grey); }
#customer-name, #delivery-address, #order-note { width: 100%; padding: .65rem .75rem; border: 1px solid var(--black); background: var(--white); border-radius: 0; resize: vertical; min-height: 56px; }
#customer-name { min-height: 48px; resize: none; }
#customer-name::placeholder, #delivery-address::placeholder, #order-note::placeholder { color: #85857f; }
.field-error { margin: 0; color: var(--danger); font-size: .875rem; font-weight: 600; }
.field-error[hidden] { display: none; }
#customer-name.is-invalid, #delivery-address.is-invalid { border-color: var(--danger); outline: 1px solid var(--danger); }
.checkout-bar { position: sticky; bottom: 0; z-index: 1; display: grid; gap: .45rem; margin: 0 -1.25rem; padding: .75rem 1.25rem 1.25rem; background: var(--white); border-top: 1px solid var(--line); }
/* Delivery, payment and policy info */
.cart-benefits { display: grid; gap: .5rem; padding: .75rem 0 .25rem; }
.cart-benefits[hidden] { display: none; }
.benefit { display: flex; align-items: center; gap: .55rem; background: var(--white); border: 1px solid var(--line); min-width: 0; }
.benefit-icon { flex: none; display: inline-flex; }
.benefit-text { display: grid; gap: .1rem; min-width: 0; }
.benefit-text strong { font-size: .75rem; line-height: 1.2; }
.benefit-text span { font-size: .75rem; line-height: 1.35; }
/* Try at Home: the headline benefit */
.benefit--try { padding: .6rem .9rem; gap: .8rem; background: var(--black); border-color: var(--black); color: var(--white); }
.benefit--try .benefit-icon svg { width: 28px; height: 28px; }
.benefit--try .benefit-text strong { font-size: 1.35rem; line-height: 1; letter-spacing: .02em; }
.benefit--try .benefit-text span { color: rgba(255, 255, 255, .78); }
/* The other four sit in one compact row */
.benefit-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: .5rem; }
.benefit-grid .benefit { flex-direction: column; justify-content: flex-start; text-align: center; gap: .35rem; padding: .6rem .3rem; }
.benefit-grid .benefit-text strong { font-size: .6875rem; }
.policy-details { background: var(--white); border: 1px solid var(--line); }
.policy-details summary { cursor: pointer; padding: .5rem .85rem; font-size: .8125rem; font-weight: 600; min-height: 40px; display: flex; align-items: center; }
.policy-body { display: grid; gap: .9rem; padding: .25rem .85rem 1rem; }
.policy-block p { margin: 0; font-size: .8125rem; line-height: 1.5; color: var(--grey); }
.policy-block .policy-head { color: var(--black); font-weight: 700; margin-bottom: .15rem; }
.bar-pay { margin: 0; font-size: .8125rem; font-weight: 600; }
.bar-pay[hidden] { display: none; }
@media (max-height: 760px) { .bar-pay { display: none; } }   /* Cash on Delivery is already shown at the top of the bag */
.summary-lines { display: grid; gap: .2rem; }
.summary-row { display: flex; justify-content: space-between; align-items: baseline; font-size: .875rem; color: var(--grey); }
.summary-row span:last-child { color: var(--black); font-weight: 600; }
#cart-delivery.is-free { font-weight: 700; }
/* TRY AT HOME highlight on the main shopping page */
.try-strip {
  display: flex; align-items: center; gap: 1rem 1.25rem; flex-wrap: wrap;
  margin: calc(-1 * clamp(.5rem, 1.5vw, 1.25rem)) 0 clamp(1.75rem, 3vw, 2.5rem);
  padding: 1rem 1.25rem; background: var(--black); color: var(--white);
}
.try-strip-icon { flex: none; display: inline-flex; }
.try-strip-icon svg { width: 36px; height: 36px; }
.try-strip-copy { display: grid; gap: .3rem; flex: 1 1 12rem; min-width: 0; }
.try-strip-title { margin: 0; font-size: clamp(1.75rem, 4vw, 2.5rem); }
.try-strip-text { margin: 0; font-size: .9375rem; line-height: 1.45; color: rgba(255, 255, 255, .88); }
.try-strip-note { margin: 0; flex: 0 1 15rem; font-size: .75rem; line-height: 1.4; color: rgba(255, 255, 255, .62); }
@media (max-width: 599px) {
  .try-strip { padding: .85rem 1rem; gap: .6rem .9rem; }
  .try-strip-icon { align-self: flex-start; }
  .try-strip-icon svg { width: 30px; height: 30px; }
  .try-strip-text { font-size: .875rem; }
  .try-strip-note { flex-basis: 100%; }
}
.subtotal-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.1rem; }
#whatsapp-order { min-height: 54px; font-size: 1rem; }
.subtotal-row strong { font-size: 1.4rem; }

.cart-status:empty { display: none; }
.cart-status { padding: .75rem .9rem; border: 1px solid var(--black); font-size: .875rem; background: var(--paper); }
.cart-status.is-error { border-color: var(--danger); color: var(--danger); }
.cart-status a { font-weight: 700; }

/* ---------- 10. TOAST ---------- */
.toast {
  position: fixed; left: 50%; bottom: 1.25rem; z-index: 200;
  transform: translate(-50%, 1rem); opacity: 0; visibility: hidden;
  display: flex; align-items: center; gap: 1rem; max-width: calc(100vw - 2rem);
  background: var(--black); color: var(--white); padding: .85rem 1.1rem; font-size: .9375rem;
  transition: opacity .25s, transform .25s, visibility .25s;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast-action { background: none; border: 0; color: var(--white); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; padding: .25rem; --focus: #fff; }
.toast-action:focus-visible { outline: 2px solid #fff; }

/* ---------- 11. MOTION SYSTEM, MASCOT AND BRAND DETAILS ---------- */
/* RULES THAT KEEP CONTENT SAFE
   1. Every element's normal style is its FINAL, visible state.
   2. Scroll-hidden states only exist under html.anim-ready, which script.js adds only after the
      observer is running. No JavaScript, a JavaScript error or reduced motion = everything visible.
   3. Scroll animations are toggled by the class .is-visible, which is ADDED when an element enters
      the screen and REMOVED once it is well off-screen, so they replay in both scroll directions.
   4. Only transform-like properties (translate, scale, rotate), opacity and clip-path are animated. */

:root { --ease-io: cubic-bezier(.76, 0, .24, 1); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header: logo shrinks a little when scrolled, thin progress line, active section underline */
.brand-logo img { transition: scale .5s var(--ease-out); }
.site-header.is-scrolled .brand-logo img { scale: .7; }   /* hangs below the bar at the top of the page, tucks inside once scrolled */
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--black); transform: scaleX(0); transform-origin: left; pointer-events: none; will-change: transform; }
@media (min-width: 900px) { .site-nav a[aria-current="true"] { background-size: 100% 1px; } }

/* Intro curtain: the real logo on paper, then the curtain lifts (about 1.2 seconds, never blocks clicks) */
.intro {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  background: var(--paper); pointer-events: none; clip-path: inset(0 0 0% 0);
  animation: curtain .65s var(--ease-io) .6s forwards;
}
.intro-logo { width: min(46vw, 190px); height: auto; animation: intro-logo .6s var(--ease-out) both; }
@keyframes curtain { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }
@keyframes intro-logo { from { opacity: 0; translate: 0 14px; scale: .96; } }
.skip-intro .intro { display: none; }

/* ---- Hero choreography (curtain mid-lift at ~0.85s): headline, text, buttons, panel, mascot ---- */
.hero { overflow-x: hidden; overflow-x: clip; }
.hero-title .line:nth-child(1) > span { animation-delay: .85s; }
.hero-title .line:nth-child(2) > span { animation-delay: .94s; }
.hero-title .line:nth-child(3) > span { animation-delay: 1.03s; }
.hero-text { animation: fade-up .8s var(--ease-out) 1.25s both; }
.hero-actions { animation: fade-up .8s var(--ease-out) 1.4s both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } }
@keyframes fade-in { from { opacity: 0; } }
.hero-visual { animation: fade-in .9s ease .8s both; }
.hero-art, .hero-photo { animation: zoom-in 1.9s var(--ease-out) .8s both; }
@keyframes zoom-in { from { transform: scale(1.12); } }
.hero-copy, .hero-art-wrap { will-change: transform; }   /* moved by scroll (see script.js) */
.hero-art-wrap { width: 100%; height: 100%; }

/* Mobile: the stage (with the mascot) comes first so the cat is on screen immediately */
@media (max-width: 899px) {
  .hero { padding-top: 1.25rem; }
  .hero-stage { order: -1; width: 100%; max-width: 440px; margin-inline: auto; }
}
/* Desktop: size the stage to the window height so the whole mascot is in the first screen */
@media (min-width: 900px) {
  .hero-stage { justify-self: end; width: min(100%, max(380px, calc((100vh - 190px) * .8))); width: min(100%, max(380px, calc((100svh - 190px) * .8))); }
}

/* ---- Mascot: slides in from the right edge, settles with an overshoot, then breathes gently ---- */
.hero-mascot {
  position: absolute; right: -1.5%; bottom: -3%; z-index: 3;
  height: 90%; aspect-ratio: 732 / 1513; pointer-events: none;
  animation: mascot-in 1.3s cubic-bezier(.16, .84, .3, 1) 1.15s both;
}
.mascot-img { display: block; width: 100%; height: 100%; -webkit-user-drag: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.hero-mascot .mascot-img {
  pointer-events: auto; cursor: pointer; transform-origin: 50% 100%;
  animation: mascot-idle 6.5s ease-in-out 3.4s infinite;
}
.mascot-shadow {
  position: absolute; left: 10%; right: 6%; bottom: 1%; height: 3.5%; z-index: -1;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .25), transparent);
  animation: fade-in .6s ease 2.2s both, shadow-idle 6.5s ease-in-out 3.4s infinite;
}
@keyframes mascot-in {
  0%   { opacity: 0; transform: translateX(75vw) rotate(4deg); }
  12%  { opacity: 1; }
  66%  { transform: translateX(-1.4%) rotate(-1.2deg); }
  84%  { transform: translateX(.4%) rotate(.4deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes mascot-idle { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-.5deg); } }
@keyframes shadow-idle { 50% { transform: scaleX(.93); opacity: .8; } }
.mascot-img.is-hop { animation: mascot-hop .6s var(--ease-out) !important; }
@keyframes mascot-hop {
  0%, 100% { transform: none; }
  38% { transform: translateY(-4%) rotate(-1.6deg); }
  70% { transform: translateY(0) rotate(.6deg); }
}

/* Returning visitors: no replay of the intro (class set before first paint) */
.skip-intro .hero-title .line > span, .skip-intro .hero-text, .skip-intro .hero-actions,
.skip-intro .hero-visual, .skip-intro .hero-art, .skip-intro .hero-photo,
.skip-intro .hero-mascot { animation: none; }
.skip-intro .mascot-shadow { animation: shadow-idle 6.5s ease-in-out 2s infinite; }
.skip-intro .hero-mascot .mascot-img { animation-delay: 2s; }

/* Visible if an image file is missing, so the problem is obvious (shown only when testing locally) */
.asset-note { padding: .75rem; border: 1px dashed var(--black); background: var(--white); font-size: .8125rem; line-height: 1.35; max-width: 220px; }
.hero-mascot .asset-note { position: absolute; right: 4%; bottom: 8%; pointer-events: none; }

/* ---- Brand marquee: two identical groups, track moves exactly -50% = seamless loop ---- */
.marquee { background: var(--black); color: var(--white); overflow: hidden; padding-block: .85rem; --focus: #fff; }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; will-change: transform; }
.marquee-group { display: flex; flex-shrink: 0; }
.marquee-group span {
  padding-inline: 1.75rem; white-space: nowrap; line-height: 1.2;
  font-family: var(--font-display); font-stretch: 62%; font-weight: 900; font-size: 1.25rem; letter-spacing: .08em;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================================
   SCROLL ANIMATION SYSTEM  (elements marked with data-anim="...")
   ========================================================================= */
.anim-ready [data-anim] {
  transition: opacity .9s var(--ease-out), translate .9s var(--ease-out), scale .9s var(--ease-out), clip-path 1.1s var(--ease-io);
}
.anim-ready [data-anim].is-visible { transition-delay: var(--d, 0s); }

/* fade-up: supporting text. Enters from below, or from above when scrolling back up (--y is set by script.js) */
.anim-ready [data-anim="fade-up"]:not(.is-visible) { opacity: 0; translate: 0 var(--y, 30px); }

/* wipe: headings are revealed top to bottom like a curtain */
.anim-ready [data-anim="wipe"] { clip-path: inset(-12% -3% -12% -3%); }
.anim-ready [data-anim="wipe"]:not(.is-visible) { opacity: 0; translate: 0 calc(var(--y, 30px) * .6); clip-path: inset(0 0 100% 0); }

/* lines: big titles slide up out of a mask, line by line */
.ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.ln > span { display: block; }
.anim-ready [data-anim="lines"] .ln > span { transition: translate 1s var(--ease-out); }
.anim-ready [data-anim="lines"].is-visible .ln:nth-child(2) > span { transition-delay: .1s; }
.anim-ready [data-anim="lines"]:not(.is-visible) .ln > span { translate: 0 112%; }

/* plate: image reveal. The frame wipes open from the left while the logo settles from a slight zoom */
.anim-ready [data-anim="plate"] { clip-path: inset(0 0 0 0); }
.anim-ready [data-anim="plate"]:not(.is-visible) { clip-path: inset(0 100% 0 0); }
.plate-logo { transition: scale 1.5s var(--ease-out) .15s, opacity 1s ease .15s; }
.anim-ready [data-anim="plate"]:not(.is-visible) .plate-logo { scale: 1.22; opacity: 0; }

/* card: product cards rise with a column stagger, the photo settles from a slight zoom */
.anim-ready [data-anim="card"]:not(.is-visible) { opacity: 0; translate: 0 calc(var(--y, 30px) * 1.5); }
.card-media img:first-child { transition: transform .9s var(--ease-out), scale 1.3s var(--ease-out) .1s; }
.anim-ready [data-anim="card"]:not(.is-visible) .card-media img:first-child { scale: 1.16; }
.anim-ready [data-anim="card"] .card-body, .anim-ready [data-anim="card"] .card-add {
  transition: opacity .8s ease calc(var(--d, 0s) + .22s), translate .8s var(--ease-out) calc(var(--d, 0s) + .22s);
}
.anim-ready [data-anim="card"]:not(.is-visible) .card-body, .anim-ready [data-anim="card"]:not(.is-visible) .card-add { opacity: 0; translate: 0 14px; }

/* tile: collection tiles scale up from slightly smaller */
.anim-ready .collection-tile[data-anim] {
  transition: opacity .9s var(--ease-out), translate .9s var(--ease-out), scale .9s var(--ease-out), background-color .25s, color .25s, transform .3s var(--ease-out);
}
.anim-ready .collection-tile[data-anim].is-visible { transition-delay: var(--d, 0s), var(--d, 0s), var(--d, 0s), 0s, 0s, 0s; }
.anim-ready [data-anim="tile"]:not(.is-visible) { opacity: 0; translate: 0 44px; scale: .95; }

/* band: the marquee wipes in from the left */
.anim-ready [data-anim="band"] { clip-path: inset(0 0 0 0); }
.anim-ready [data-anim="band"]:not(.is-visible) { clip-path: inset(0 100% 0 0); }

/* panel: the dark Instagram section opens up from an inset block to full width */
.anim-ready [data-anim="panel"] { clip-path: inset(0 0 0 0); }
.anim-ready [data-anim="panel"]:not(.is-visible) { clip-path: inset(9% 5% 9% 5%); }

/* slide-x: contact links slide in from the left */
.anim-ready [data-anim="slide-x"]:not(.is-visible) { opacity: 0; translate: -48px 0; }

/* rule: hairlines draw themselves (section headings, story place line) */
.section-head::after { content: ""; flex-basis: 100%; height: 1px; background: var(--black); transform-origin: left; transition: transform 1.3s var(--ease-out) .2s; }
.anim-ready .section-head[data-anim]:not(.is-visible)::after, .anim-ready .story-place[data-anim]:not(.is-visible)::before { transform: scaleX(0); }

/* footer: the whole footer rises in; children stagger via their own data-anim="fade-up" */
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--black); transform-origin: left; transition: transform 1.3s var(--ease-out); }
.site-footer { position: relative; }
.anim-ready [data-anim="footer"] { transition: opacity .9s ease, translate .9s var(--ease-out); }
.anim-ready [data-anim="footer"]:not(.is-visible) { opacity: .0; translate: 0 36px; }
.anim-ready .site-footer[data-anim]:not(.is-visible)::before { transform: scaleX(0); }

/* peek: the mascot rises from behind the top edge of the Story section, then looks around once */
.story-section { position: relative; }
.peek {
  position: absolute; z-index: 2; bottom: 100%; right: clamp(1.25rem, 9vw, 9rem);
  height: calc(var(--section-pad) - 1.25rem); aspect-ratio: 4 / 3; overflow: hidden; pointer-events: none;
}
.peek .mascot-img { height: auto; transform-origin: 50% 100%; transition: translate 1s var(--ease-out) .1s; }
.anim-ready .peek:not(.is-visible) .mascot-img { translate: 0 105%; }
.peek.is-visible .mascot-img { animation: peek-look 2.6s ease-in-out 1.2s both; }
@keyframes peek-look { 0%, 100% { rotate: 0deg; } 35% { rotate: -3deg; } 70% { rotate: 2deg; } }
@media (max-width: 699px) { .peek { display: none; } }

/* ---- Story layout: headline, logo plate, copy ---- */
.story-plate { margin: 0; background: var(--paper); aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; }
.plate-frame { width: 78%; }
.plate-logo { display: block; width: 100%; height: auto; will-change: transform; }
@media (min-width: 900px) {
  .story-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); grid-template-areas: "title plate" "copy plate"; gap: 2.5rem 4rem; align-items: end; }
  .story-title { grid-area: title; }
  .story-copy { grid-area: copy; }
  .story-plate { grid-area: plate; align-self: center; }
}

/* ---- Footer mascot: stands on the footer line, hops each time the footer scrolls into view ---- */
.footer-grid { padding-bottom: 0; }
.footer-grid:has(.footer-mascot[hidden]) { padding-bottom: 3rem; }
.footer-mascot { display: flex; align-items: flex-start; gap: .65rem; justify-self: start; align-self: end; }
.footer-mascot .mascot-img { width: auto; height: clamp(190px, 26vw, 240px); aspect-ratio: 732 / 1513; cursor: pointer; transform-origin: 50% 100%; }
.mascot-note {
  position: relative; margin-top: .6rem; padding: .5rem .8rem; background: var(--white); border: 1px solid var(--black);
  font-size: .875rem; font-weight: 600; white-space: nowrap; transform-origin: 100% 100%;
  transition: opacity .5s ease .9s, translate .6s var(--ease-out) .9s, scale .6s var(--ease-out) .9s;
}
.mascot-note::after {
  content: ""; position: absolute; right: -6px; bottom: 10px; width: 10px; height: 10px;
  background: var(--white); border-right: 1px solid var(--black); border-top: 1px solid var(--black); transform: rotate(45deg);
}
.anim-ready .site-footer:not(.is-visible) .mascot-note { opacity: 0; translate: 0 6px; scale: .92; }
.site-footer.is-visible .footer-mascot .mascot-img { animation: footer-hop 1.2s var(--ease-out) .5s both, footer-idle 7s ease-in-out 2.6s infinite; }
@keyframes footer-hop {
  0%, 100% { transform: none; }
  22% { transform: translateY(-16px) rotate(-1.5deg); }
  44% { transform: none; }
  64% { transform: translateY(-8px) rotate(1deg); }
  82% { transform: none; }
}
@keyframes footer-idle { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-.7deg); } }
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr auto; }
  .footer-grid > :not(.footer-mascot) { padding-bottom: 3rem; }
  .footer-mascot { justify-self: end; }
}

/* ---- Product cards, buttons and dialogs: refined interactions ---- */
.card-media .img-alt { transition: opacity .6s ease; }
.card-name { background: linear-gradient(currentColor, currentColor) left 100% / 0 1px no-repeat; transition: background-size .45s var(--ease-out); width: fit-content; }
@media (hover: hover) { .card:hover .card-name { background-size: 100% 1px; } }
.size-btn:active:not(:disabled), .chip:active { transform: scale(.96); }
.size-btn, .chip { transition: background-color .15s, color .15s, transform .12s; }
.collection-tile { transition: background-color .25s, color .25s, transform .3s var(--ease-out); }
.collection-tile:active { transform: scale(.985); }

.pd-main > * { animation: fade-in .45s ease; }
.pd[open] .pd-info > * { animation: fade-up .6s var(--ease-out) both; }
.pd[open] .pd-info > :nth-child(1) { animation-delay: .08s; }
.pd[open] .pd-info > :nth-child(2) { animation-delay: .14s; }
.pd[open] .pd-info > :nth-child(3) { animation-delay: .2s; }
.pd[open] .pd-info > :nth-child(4) { animation-delay: .26s; }
.pd[open] .pd-info > :nth-child(5) { animation-delay: .32s; }
.pd[open] .pd-info > :nth-child(6) { animation-delay: .38s; }

.bag-btn.is-bumped .icon { animation: bag-wiggle .55s ease; transform-origin: 50% 20%; }
@keyframes bag-wiggle { 25% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } }
.stepper output { display: inline-block; }
.stepper output.is-pop { animation: pop .3s ease; }
@keyframes pop { 40% { transform: scale(1.35); } }
.cart-item.is-new { animation: item-in .5s var(--ease-out); }
@keyframes item-in { from { opacity: 0; transform: translateX(18px); } }
.cart-item.is-flash { animation: item-flash 1.1s ease; }
@keyframes item-flash { 0% { background-color: var(--stone); } 100% { background-color: transparent; } }
.cart-item.is-removing {
  overflow: hidden; height: 0 !important; opacity: 0; padding-block: 0; border-bottom-width: 0;
  transition: height .3s var(--ease-out), opacity .2s ease, padding .3s var(--ease-out), border-width .3s;
}
.btn.is-done { background-size: 100% 100%; color: var(--white); --fill: var(--black); }
.cart-status { animation: fade-up .35s var(--ease-out); }

dialog[open]::backdrop { animation: fade-in .3s ease both; }
.pd[open] { animation: pd-in .35s var(--ease-out); }
@keyframes pd-in { from { opacity: 0; transform: translateY(14px); } }
.pd.is-closing { animation: pd-out .22s ease-in forwards; }
@keyframes pd-out { to { opacity: 0; transform: translateY(10px); } }
.drawer.is-closing { animation: slide-out .26s ease-in forwards; }
@keyframes slide-out { to { transform: translateX(100%); } }
.pd.is-closing::backdrop, .drawer.is-closing::backdrop { animation: backdrop-out .24s ease forwards; }
@keyframes backdrop-out { to { opacity: 0; } }

@media print { .intro { display: none; } }

/* ---------- 12. REDUCED MOTION (must stay last) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .intro { display: none; }
  .scroll-progress { display: none; }
}
