:root {
  --plum: #250c29;
  --plum-light: #3a1640;
  --purple: #641979;
  --ink: #301335;
  --muted: #69596b;
  --paper: #fcf8f2;
  --surface: #fffdfa;
  --line: #e9dfe5;
  --yellow: #ffca40;
  --night: #160c1f;
  --night-deep: #110819;
  --night-text: #fff8f1;
  --night-muted: #d9c7dd;
  --glass-border: #f5ddff38;
  --ease-out: cubic-bezier(.2,.75,.25,1);
  --ease-touch: cubic-bezier(.2,.55,.35,1);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--night);
  font-family: var(--body);
  font-size: 100%;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; }
body.locked { overflow: hidden; }
body.has-cart { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
img { display: block; max-width: 100%; }
.skip-link { position: absolute; z-index: 12; left: 12px; top: 12px; transform: translateY(-150%); padding: 10px 14px; border-radius: 8px; color: var(--night); background: var(--yellow); font-weight: 700; }
.skip-link:focus { transform: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button, a, .opt, .payment__option { touch-action: manipulation; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid #932dad; outline-offset: 4px; }

.site-container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 40px);
}
.site-container > * { min-width: 0; }

.site-header, .hero, .menu-section, .site-footer { background-color: var(--night); color: var(--night-text); }
.header-inner { padding-block-start: max(10px, env(safe-area-inset-top)); }
.header-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  background: linear-gradient(115deg, #36203e, #1e1228 68%);
  box-shadow: inset 0 1px #ffffff13, 0 5px 18px #0d05162b;
}
.brand { display: flex; justify-self: start; align-items: center; gap: 9px; min-width: 0; min-height: 44px; border-radius: 10px; text-decoration: none; }
.brand img { flex: none; width: 43px; height: 43px; border-radius: 50%; }
.brand-meta { display: grid; gap: 3px; }
.brand-name { font: 800 1.48rem/.94 var(--display); }
.brand-location { color: var(--night-muted); font-size: .75rem; line-height: 1.15; }
.header-action { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 44px; padding: 6px 11px; border: 1px solid #ffca4052; border-radius: 999px; color: var(--night-text); background: #ffca4014; font-size: .8125rem; font-weight: 700; }
.header-action:disabled { opacity: .65; cursor: default; }
.header-action:not(:disabled):active { border-color: var(--yellow); background: #ffca4030; }
.header-action svg, .social svg, .cart-bar svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.header-action svg { color: var(--yellow); }
.social { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-size: .875rem; font-weight: 600; text-decoration: none; }

.hero { position: relative; isolation: isolate; overflow: clip; padding-block: 6px 30px; }
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(180deg, var(--night), #160c1f18 14%, #160c1f38 47%, #160c1fee 91%, var(--night) 100%),
    url("../img/hero-cena-sm.webp") right center / cover no-repeat;
}
.hero-inner { display: grid; gap: 3px; grid-template-columns: minmax(0, 1fr); }
.hero-copy { display: grid; justify-items: center; text-align: center; gap: 11px; }
.hero h1 { font: 800 clamp(3rem, 13.6vw, 5.2rem)/.88 var(--display); letter-spacing: -.016em; text-wrap: balance; }
.hero h1 em { display: block; margin-top: 3px; color: var(--yellow); font: italic 600 .72em/1.05 Georgia, serif; letter-spacing: -.052em; }
.hero-description { color: var(--night-muted); line-height: 1.42; max-width: 30ch; text-wrap: pretty; }
.hero-media { position: relative; isolation: isolate; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; grid-row: 1; height: clamp(225px, 73vw, 355px); }
.hero-media::before, .hero-media::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.hero-media::before { inset: -5% 2% 7%; background: radial-gradient(ellipse at 50% 52%, #c882d876 0%, #9740b248 44%, transparent 70%); }
.hero-media::after { bottom: 2%; width: 70%; height: 12%; background: radial-gradient(ellipse, #0b0413bc, transparent 72%); }
.hero-product { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; width: 100%; height: 100%; }
.hero-product img { width: auto; height: 100%; object-fit: contain; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 18px; border: 1px solid transparent; border-radius: 12px; font-size: 1rem; font-weight: 700; text-align: center; text-decoration: none; }
.btn--primary { background: var(--yellow); color: var(--plum); }
.btn--primary:hover { background: #ffda72; }
.btn--primary:active { background: #f3b825; }
.btn:disabled { opacity: .55; cursor: default; }
.btn--block { width: 100%; }
.hero-cta { width: min(100%, 385px); min-height: 51px; margin-top: 4px; box-shadow: 0 7px 24px #ffe07728; }
.hero a:focus-visible, .site-header :focus-visible { outline-color: var(--yellow); }

.menu-section {
  padding-block: 30px 45px;
  border-top: 1px solid #f8dbff21;
  background:
    linear-gradient(180deg, #160c1fa3, #160c1fb8 57%, #160c1f 100%),
    url("../img/menu-textura.webp") center top / cover no-repeat var(--night);
}
.menu-heading { margin-bottom: 16px; }
.menu-heading h2, .sheet__title { font: 800 clamp(2rem, 7vw, 3.25rem)/.95 var(--display); }
.menu-load { display: grid; justify-items: start; gap: 8px; padding-block: 12px; }
.menu-status { color: var(--night-muted); line-height: 1.4; }
.menu-load [aria-disabled="true"] { opacity: .65; cursor: default; }
.menu-nav { position: sticky; z-index: 3; top: 4px; display: flex; gap: 4px; margin-bottom: 19px; padding: 4px; border: 1px solid var(--glass-border); border-radius: 15px; background: linear-gradient(145deg, #2b1935, #1a1024); box-shadow: inset 0 1px #ffffff12; }
.menu-nav a { display: inline-flex; flex: 1; align-items: center; justify-content: center; min-width: 0; min-height: 44px; padding: 6px 8px; border: 1px solid transparent; border-radius: 10px; color: var(--night-text); font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; }
.menu-nav a[aria-current="location"] { color: var(--plum); background: var(--yellow); border-color: #ffda72; box-shadow: inset 0 1px #fff4cc9e; }
.menu-nav a:not([aria-current]):active { background: #ffca4022; }
.menu-cat { scroll-margin-top: 72px; }
.menu-cat + .menu-cat { margin-top: 28px; }
.menu-cat__heading { margin-bottom: 12px; }
.menu-cat__title { font: 700 1.75rem/1 var(--display); }
.menu-cat__heading p { margin-top: 5px; color: var(--night-muted); line-height: 1.4; }
.menu-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.size-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "kind kind" "size size" "price plus"; align-items: end; gap: 2px; min-width: 0; width: 100%; padding: 13px 11px; border: 1px solid var(--glass-border); border-radius: 15px; text-align: left; color: var(--night-text); background: linear-gradient(145deg, #65436f73 0%, #2f1a3ab5 72%); box-shadow: inset 0 1px #ffffff1b, 0 4px 10px #08030e36; }
.size-card--photo { grid-template-areas: "photo photo" "kind kind" "size size" "price plus"; }
.size-card__media { grid-area: photo; display: grid; place-items: center; overflow: hidden; margin-bottom: 6px; border-radius: 9px; background: #9a78aa; }
.size-card__media img { width: 100%; height: clamp(100px, 29vw, 158px); object-fit: contain; }
.size-card:focus-visible { border-color: #ffca409e; background-color: #66417040; }
.size-card:not(:disabled):active { border-color: var(--yellow); background-color: #71467f6b; }
.size-card:disabled { opacity: .6; cursor: default; }
.size-card__kind { grid-area: kind; font-weight: 600; font-size: .875rem; color: var(--night-muted); }
.size-card__size { grid-area: size; font: 800 clamp(2rem, 8vw, 3.1rem)/1 var(--display); white-space: nowrap; }
.size-card__price { grid-area: price; align-self: center; font-weight: 700; color: var(--yellow); white-space: nowrap; }
.size-card__plus { grid-area: plus; align-self: center; justify-self: end; display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid #ffca4562; background: #ffca401b; border-radius: 50%; font-size: 1.35rem; color: var(--yellow); }
.size-card:focus-visible .size-card__plus, .size-card:active .size-card__plus { background: var(--yellow); color: var(--plum); }
.menu-section :focus-visible { outline-color: var(--yellow); }

.site-footer { border-top: 1px solid #f8dbff21; background-color: var(--night-deep); }
.footer-inner { display: grid; gap: 10px; align-items: center; padding-block: 22px; }
.footer-delivery p { max-width: 44ch; margin-top: 4px; color: var(--night-muted); font-size: .875rem; line-height: 1.45; }
.footer-inner .social { color: var(--yellow); width: max-content; }
.footer-credit { grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid #f8dbff21; color: var(--night-muted); font-size: .8125rem; line-height: 1.4; }
.footer-credit strong { color: var(--night-text); font-weight: 600; }

.cart-dock { position: fixed; inset-inline: 0; bottom: 0; padding: 7px 0 calc(9px + env(safe-area-inset-bottom)); z-index: 5; pointer-events: none; }
.cart-bar { margin-inline: auto; width: min(100%, 560px); display: flex; justify-content: space-between; pointer-events: auto; box-shadow: 0 4px 24px #250c2950; min-height: 54px; }
.cart-bar span:first-child { display: inline-flex; gap: 8px; align-items: center; }
.cart-bar span:last-child { font-size: .875rem; white-space: nowrap; }
.overlay { position: fixed; z-index: 9; inset: 0; background: #1b0825b0; }
.sheet { position: fixed; z-index: 10; inset-inline: 0; bottom: var(--keyboard-offset, 0px); display: grid; grid-template-rows: minmax(0, 1fr) auto; width: min(100%, 580px); max-height: min(91dvh, calc(var(--visible-height, 100dvh) - 12px)); margin-inline: auto; padding-top: 32px; background: var(--surface); border-radius: 24px 24px 0 0; box-shadow: 0 -8px 30px #1b082535; }
.sheet--tall { height: 95dvh; max-height: min(95dvh, calc(var(--visible-height, 100dvh) - 10px)); }
.sheet__handle { position: absolute; inset: 0 68px auto; height: 32px; display: grid; place-items: center; cursor: grab; touch-action: none; user-select: none; }
.sheet__handle::before { content: ""; width: 40px; height: 5px; border-radius: 99px; background: #c9b7cc; }
.sheet--dragging .sheet__handle { cursor: grabbing; }
.sheet__close { position: absolute; z-index: 2; top: 25px; right: 12px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--surface); font-size: 1.65rem; line-height: 1; }
.sheet__scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 16px 18px; }
.sheet__title { padding-right: 46px; }
.sheet__title:focus { outline: none; }
.sheet__footer { display: grid; gap: 8px; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); box-shadow: 0 -5px 16px #30133508; }
.sheet__footer .btn { min-height: 50px; }
.sheet--success p { margin-top: 12px; line-height: 1.5; }
.sheet--delivery .sheet__scroll { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
.delivery-rates { margin: 16px 0 0; }
.delivery-rates > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding-block: 12px; border-top: 1px solid var(--line); }
.delivery-rates dd { margin: 0; color: var(--purple); font-weight: 700; white-space: nowrap; }
.muted { color: var(--muted); }
.price-old { color: var(--muted); font-size: .82em; }

.cz-head { display: grid; grid-template-columns: minmax(0, 1fr) 64px; align-items: center; gap: 12px; margin: 4px 0 15px; padding-right: 44px; }
.cz-head .sheet__title { padding-right: 0; font-size: clamp(1.75rem, 7.5vw, 2.8rem); }
.cz-head p { color: var(--purple); font-weight: 700; margin-top: 5px; }
.cz-head img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.cz__footer-row { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 9px; }
.cz__footer-row .btn { padding-inline: 7px; }
.qty { display: inline-flex; align-items: center; justify-content: center; gap: 4px; border: 1px solid var(--line); border-radius: 12px; }
.qty output { min-width: 18px; text-align: center; font-weight: 700; }
.icon-btn { width: 44px; height: 44px; border: 0; border-radius: 11px; color: var(--purple); background: transparent; font-size: 1.35rem; }
.icon-btn:disabled { color: #827781; cursor: default; }
.group { padding: 0; margin: 0 0 16px; border: 0; min-inline-size: 0; }
.group__head { width: 100%; padding: 7px 0 8px; }
.group__head-inner { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.group__title { font: 700 1.5rem/1.05 var(--display); }
.group__hint { flex: none; color: var(--purple); font-weight: 700; font-size: .875rem; }
.group__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.group--sabor .group__options, .group--cobertura .group__options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.group--adicionais .group__options { grid-template-columns: minmax(0, 1fr); }
.opt { position: relative; display: flex; align-items: center; gap: 6px; padding: 5px; min-height: 52px; min-width: 0; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.opt:has(:checked) { background: #f7e9f8; border-color: var(--purple); }
.opt:has(:focus-visible) { outline: 3px solid var(--purple); outline-offset: 2px; }
.opt--off { opacity: .65; cursor: default; flex-wrap: wrap; }
.opt--off .opt__price { flex-basis: 100%; font-size: .75rem; }
.opt--off .opt__check { display: none; }
.opt input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.opt__photo { flex: none; width: 40px; height: 40px; border-radius: 7px; object-fit: cover; background: #f2e9f2; }
.opt__name { flex: 1; min-width: 0; font-size: .875rem; font-weight: 600; line-height: 1.15; overflow-wrap: anywhere; }
.opt__price { font-size: .875rem; color: var(--purple); font-weight: 700; white-space: nowrap; }
.opt__check { width: 16px; height: 16px; flex: none; display: grid; place-items: center; border: 1px solid #9d879f; border-radius: 5px; color: white; font-size: .7rem; }
.opt__check::before { content: "\2713"; visibility: hidden; }
.opt:has(:checked) .opt__check { background: var(--purple); border-color: var(--purple); }
.opt:has(:checked) .opt__check::before { visibility: visible; }
.opt--plain { grid-column: 1 / -1; min-height: 44px; padding-inline: 12px; }
.group--leite-condensado-garrafa .opt--plain { grid-column: auto; }
.group--sabor .opt { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; align-content: start; }
.group--sabor .opt__photo { width: 100%; height: auto; aspect-ratio: 1.22; }
.group--sabor .opt__check { position: absolute; top: 10px; right: 10px; background: var(--surface); }
.group--cobertura .opt:not(.opt--plain) { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; align-content: start; text-align: center; }
.group--cobertura .opt__photo { width: 100%; height: 62px; padding: 5px; object-fit: contain; }
.group--cobertura .opt:not(.opt--plain) .opt__check { position: absolute; top: 9px; right: 9px; background: var(--surface); }
.group--sabor .opt:has(:checked) .opt__check, .group--cobertura .opt:has(:checked) .opt__check { background: var(--purple); }
.group--adicionais .opt { padding-inline: 6px 10px; gap: 9px; }
.photo-note { margin-top: 12px; color: var(--muted); font-size: .875rem; }

.cart-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; border-bottom: 1px solid var(--line); padding-block: 13px; }
.cart-line__name, .cart-line__price { font-weight: 700; }
.cart-line__detail { white-space: pre-line; color: var(--muted); font-size: .875rem; line-height: 1.45; margin-top: 4px; }
.cart-line__actions { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 2px; }
.link-btn { min-height: 44px; padding: 4px 8px; border: 0; background: transparent; color: var(--purple); font-weight: 700; }
.link-btn--danger { color: #8e254a; }
.empty { margin-top: 12px; color: var(--muted); }
.totals { display: grid; gap: 6px; font-size: .925rem; }
.totals > div { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; }
.totals .total { font-size: 1.1rem; font-weight: 700; padding-top: 6px; border-top: 1px solid var(--line); }

#checkout-form { display: grid; gap: 10px; padding-top: 15px; }
.field { display: grid; gap: 4px; }
.field label { font-size: .9rem; font-weight: 700; }
.field input:not([type="radio"], [type="checkbox"]), .field textarea { width: 100%; min-height: 46px; padding: 9px 11px; border: 1px solid #bdaabd; border-radius: 10px; color: var(--ink); background: #fff; }
.field textarea { resize: vertical; min-height: 66px; }
.field__error { color: #98294d; font-size: .875rem; }
.field__error:empty { display: none; }
.field [aria-invalid="true"] { border-color: #a03253 !important; }
.bairro-suggestions { margin: 0; padding: 3px; list-style: none; border: 1px solid #bdaabd; border-radius: 10px; background: #fff; }
.bairro-suggestions [role="option"] { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 8px 9px; border-radius: 7px; cursor: pointer; touch-action: manipulation; }
.bairro-suggestions [aria-selected="true"], .bairro-suggestions [role="option"]:active { background: #f7e9f8; }
.bairro-suggestions__taxa { color: var(--purple); font-size: .875rem; font-weight: 700; white-space: nowrap; }
.delivery-note { color: var(--muted); font-size: .875rem; line-height: 1.35; }
.payment { min-inline-size: 0; border: 0; margin: 0; padding: 0; }
.payment legend { padding: 0; margin-bottom: 5px; font-size: .9rem; font-weight: 700; }
.payment__options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(72px, 100%), 1fr)); gap: 6px; }
.payment__option { position: relative; display: grid; place-items: center; min-height: 50px; padding: 7px; border: 1px solid #bdaabd; border-radius: 10px; color: var(--ink); background: #fff; font-size: .875rem; font-weight: 700; line-height: 1.2; text-align: center; cursor: pointer; }
.payment__option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.payment__option:has(:checked) { border-color: var(--purple); box-shadow: inset 0 0 0 1px var(--purple); background: #f7e9f8; color: var(--purple); }
.payment__option:has(:focus-visible) { outline: 3px solid var(--purple); outline-offset: 2px; }
.payment-note { color: var(--muted); font-size: .875rem; }
.toast { position: fixed; z-index: 11; bottom: calc(76px + env(safe-area-inset-bottom)); left: 50%; translate: -50% 0; width: max-content; max-width: calc(100% - 24px); padding: 10px 16px; border-radius: 12px; color: white; background: var(--plum); text-align: center; pointer-events: none; opacity: 0; }
.toast.show { opacity: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 355px) {
  .group--sabor .opt__name, .group--cobertura .opt__name { font-size: .8125rem; }
  .group--complementos .opt__photo { width: 34px; height: 34px; }
  .group--complementos .opt__check {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 14px;
    height: 14px;
    background: var(--surface);
  }
  .group--complementos .opt:has(:checked) .opt__check {
    background: var(--purple);
  }
}

@media (min-width: 580px) {
  .menu-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .size-card { padding-inline: 16px; }
  .footer-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .sheet__scroll { padding-inline: 22px; }
  .sheet__footer { padding-inline: 22px; }
}

@media (min-width: 920px) {
  .header-inner { padding-block-start: 15px; }
  .header-bar { padding: 7px 13px; }
  .brand img { width: 48px; height: 48px; }
  .hero { padding-block: 25px 38px; }
  .hero::before {
    background:
      linear-gradient(90deg, #160c1fc2, #160c1f36 66%, #160c1f1a),
      linear-gradient(180deg, var(--night), transparent 14%),
      linear-gradient(0deg, var(--night), transparent 30%),
      url("../img/hero-cena.webp") center 68% / cover no-repeat;
  }
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 75px); }
  .hero-copy { justify-items: start; text-align: left; gap: 19px; }
  .hero h1 { font-size: clamp(4.8rem, 8.1vw, 8rem); }
  .hero-description { font-size: 1.125rem; }
  .hero-media { grid-row: auto; height: clamp(390px, 40vw, 535px); }
  .hero-product img { filter: drop-shadow(0 10px 14px #0e0315a0); }
  .hero-cta { width: auto; min-width: 195px; min-height: 53px; }
  .menu-section { padding-block: 42px 53px; }
  .menu-list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
  .menu-list--photos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .size-card { padding: 14px 15px; }
  .size-card__plus { width: 35px; height: 35px; }
  .sheet { bottom: 4dvh; border-radius: 22px; max-height: min(92dvh, calc(var(--visible-height, 100dvh) - 12px)); }
  .sheet--tall { height: 89dvh; }
  .sheet__footer { border-radius: 0 0 22px 22px; }
}

@media (hover: hover) and (pointer: fine) {
  .bairro-suggestions [role="option"]:hover { background: #f7e9f8; }
  .menu-nav a:not([aria-current]):hover { background: #ffca4022; }
  .header-action:not(:disabled):hover { border-color: #ffca408d; background: #ffca4026; }
  .size-card:not(:disabled):hover { border-color: #ffca409e; background-color: #66417040; }
  .size-card:not(:disabled):hover .size-card__plus { background: var(--yellow); color: var(--plum); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero-media { animation: intro-rise 570ms var(--ease-out) backwards; }
  .hero h1 { animation-delay: 45ms; }
  .hero-description { animation-delay: 90ms; }
  .hero-cta { animation-delay: 135ms; }
  .hero-media { animation-delay: 80ms; }
  .hero-product img { animation: hero-float 4.6s ease-in-out .25s; }

  .header-action, .size-card, .btn, .menu-nav a, .opt, .payment__option, .icon-btn, .sheet__close {
    transition: transform 160ms var(--ease-touch), background-color 190ms ease, border-color 190ms ease, box-shadow 190ms ease;
  }
  .size-card__plus, .size-card__media img, .opt__photo {
    transition: transform 250ms var(--ease-out), background-color 190ms ease;
  }
  .header-action:not(:disabled):active, .size-card:not(:disabled):active, .btn:not(:disabled):active, .menu-nav a:active,
  .opt:not(.opt--off):active, .payment__option:active, .icon-btn:not(:disabled):active, .sheet__close:active {
    transform: scale(.975);
    transition-duration: 90ms;
  }
  .size-card:not(:disabled):active .size-card__plus { transform: scale(.86) rotate(8deg); }
  .opt:has(:checked) .opt__check { animation: check-pop 210ms var(--ease-out); }

  .overlay:not([hidden]) { animation: overlay-in 200ms ease-out; }
  .sheet:not([hidden]) { animation: sheet-in 290ms var(--ease-out); transition: translate 180ms var(--ease-out); }
  .sheet.sheet--dragging { transition: none; }
  .cart-bar:not([hidden]) { animation: dock-in 310ms var(--ease-out); }
  .toast { transform: translateY(8px); transition: opacity 160ms ease, transform 200ms var(--ease-out); }
  .toast.show { transform: translateY(0); }
}

@media (min-width: 920px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .size-card--entered { animation: card-rise 390ms var(--ease-out) backwards; }
  .size-card--entered:nth-child(even) { animation-delay: 45ms; }

  @supports (view-timeline-name: --hero-foto) {
    .hero-media {
      view-timeline-name: --hero-foto;
      view-timeline-axis: block;
    }
    .hero-product {
      animation: hero-drift auto linear both;
      animation-timeline: --hero-foto;
      animation-range: exit 0% exit 100%;
    }
  }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .size-card:not(:disabled):hover { box-shadow: inset 0 1px #ffffff30, 0 10px 25px #08030e8a; }
  .size-card:not(:disabled):hover .size-card__media img { transform: scale(1.035); }
  .size-card:not(:disabled):hover .size-card__plus { transform: scale(1.08); }
  .opt:not(.opt--off):hover .opt__photo { transform: scale(1.035); }
}

@keyframes intro-rise {
  from { transform: translateY(12px); opacity: .86; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes card-rise {
  from { translate: 0 9px; opacity: .92; }
  to { translate: 0 0; opacity: 1; }
}
@keyframes check-pop {
  0%, 100% { transform: scale(1); }
  55% { transform: scale(1.19); }
}
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet-in {
  from { transform: translateY(26px); opacity: .89; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes dock-in {
  from { transform: translateY(14px); opacity: .8; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes hero-drift {
  from { transform: translateY(0); }
  to { transform: translateY(13%); }
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-9px) rotate(-1deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
