/*
 * CupsByAA v3 shell (R1, 25 Nov 2026).
 * The approved redesign: docs/mobile-experience/redesign/index.html.
 * Loaded LAST in layouts/app and layouts/shop, so v3 rules win over the old skin.
 * Every class is prefixed v3-. Page agents copy from /v3-styleguide.
 *
 * Mobile first (375 px), then 768 px and 1024 px. Logical properties only, so
 * RTL needs no mirror rules. Cups may bounce (spring); all other UI eases out.
 * Under prefers-reduced-motion nothing here moves.
 */

/* ---------------------------------------------------------------- tokens */
:root {
  --v3-pink: #E55E99;          /* accent, large text and fills only (3.0:1 on cream) */
  --v3-pink-strong: #C83F7D;   /* white text on it: 4.7:1 */
  --v3-pink-ink: #A8336A;      /* small pink text on blush: 5.1:1 */
  --v3-ink: #19171D;
  --v3-cream: #F7F5F2;
  --v3-blush: #FFF1F7;
  --v3-blush-2: #FBE1ED;
  --v3-sky: #E6F3FF;
  --v3-sky-ink: #33506B;
  --v3-muted: #5B5560;         /* 6.6:1 on cream */
  --v3-line: #E6E1E5;
  --v3-white: #FFFFFF;
  --v3-wa: #25D366;            /* WhatsApp green, ink text on it (9:1) */

  --v3-r-lg: 24px;
  --v3-r-md: 18px;
  --v3-r-sm: 14px;
  --v3-r-pill: 999px;

  --v3-target: 44px;
  --v3-btn-h: 54px;
  --v3-max: 1200px;
  --v3-gutter: 20px;
  --v3-header-h: 64px;

  --v3-font-ar: "IBM Plex Sans Arabic", "Inter", system-ui, -apple-system, sans-serif;
  --v3-font-en: "Inter", "IBM Plex Sans Arabic", system-ui, -apple-system, sans-serif;
  --v3-font: var(--v3-font-en);

  --v3-ease-out: cubic-bezier(.2, .8, .2, 1);   /* UI */
  --v3-spring: cubic-bezier(.3, 1.6, .5, 1);    /* cups only */
  --v3-shadow: 0 1px 2px rgb(25 23 29 / .05), 0 10px 28px -14px rgb(25 23 29 / .18);
  --v3-shadow-cup: drop-shadow(0 14px 18px rgb(25 23 29 / .18));
}

html[lang="ar"] { --v3-font: var(--v3-font-ar); }

@media (min-width: 768px) {
  :root { --v3-gutter: 28px; }
}

@media (min-width: 1024px) {
  :root { --v3-gutter: 32px; --v3-header-h: 76px; }
}

/* ---------------------------------------------------------- canvas, base */
/* Beats cups-ui's body.modern-layout[data-surface] canvas. */
html body[data-surface="public"],
html body[data-surface="shop"],
html body.modern-layout[data-surface="public"],
html body.modern-layout[data-surface="shop"] {
  background: var(--v3-cream) !important;
  color: var(--v3-ink);
  font-family: var(--v3-font) !important;
  -webkit-font-smoothing: antialiased;
}

body[data-surface="public"] ::selection,
body[data-surface="shop"] ::selection { background: var(--v3-blush-2); color: var(--v3-ink); }

body[data-surface="public"],
body[data-surface="shop"] { accent-color: var(--v3-pink-strong); caret-color: var(--v3-pink-strong); }

:where([class^="v3-"], [class*=" v3-"]) :where(a, button, summary, [tabindex]):focus-visible,
:where(a, button)[class*="v3-"]:focus-visible {
  outline: 3px solid var(--v3-ink);
  outline-offset: 3px;
}

/* The site-wide reveal (cups-motion) must not fade a v3-reveal twice. */
.v3-reveal.cm-pending { opacity: 1 !important; transform: none !important; }

/* ----------------------------------------------------------------- type */
.v3-h1,
.v3-h2,
.v3-h3 {
  margin: 0;
  color: var(--v3-ink);
  font-family: var(--v3-font);
  font-weight: 700;
  text-wrap: balance;
}

.v3-h1 {
  font-size: clamp(2.75rem, 1.6rem + 5.2vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -.01em;
}

.v3-h2 {
  font-size: clamp(1.875rem, 1.35rem + 2.1vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.005em;
}

.v3-h3 {
  font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem);
  line-height: 1.25;
}

html[lang="en"] .v3-h1 { font-weight: 800; letter-spacing: -.035em; }
html[lang="en"] .v3-h2 { font-weight: 800; letter-spacing: -.02em; }
html[lang="en"] .v3-h3 { letter-spacing: -.01em; }

/* Arabic display: Plex tops out at 700 and needs a little more leading. */
html[lang="ar"] .v3-h1 { line-height: 1.12; }
html[lang="ar"] .v3-h2 { line-height: 1.2; }

.v3-h1 em,
.v3-h2 em { font-style: normal; color: var(--v3-pink); }

.v3-lead {
  margin: 12px 0 0;
  max-width: 34ch;
  color: var(--v3-muted);
  font-size: 1.0625rem;
  line-height: 1.55;
  text-wrap: pretty;
}

@media (min-width: 1024px) {
  .v3-lead { max-width: 46ch; font-size: 1.1875rem; }
}

/* -------------------------------------------------------------- buttons */
.v3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--v3-btn-h);
  min-width: var(--v3-target);
  padding: 0 22px;
  border: 1.5px solid transparent;
  border-radius: var(--v3-r-md);
  font-family: var(--v3-font);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform .15s var(--v3-ease-out), background-color .15s var(--v3-ease-out), border-color .15s var(--v3-ease-out), box-shadow .15s var(--v3-ease-out);
}

.v3-btn:active { transform: scale(.97); }
.v3-btn[disabled],
.v3-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.v3-btn i,
.v3-btn svg { flex: none; }

.v3-btn--main { background: var(--v3-ink); color: #fff !important; }
@media (hover: hover) and (pointer: fine) { .v3-btn--main:hover { background: #000; } }

.v3-btn--pink { background: var(--v3-pink-strong); color: #fff !important; }
@media (hover: hover) and (pointer: fine) { .v3-btn--pink:hover { background: #AD3169; } }

.v3-btn--alt { background: var(--v3-white); color: var(--v3-ink) !important; border-color: var(--v3-ink); }
@media (hover: hover) and (pointer: fine) { .v3-btn--alt:hover { background: var(--v3-blush); } }

.v3-btn--wa { background: var(--v3-wa); color: var(--v3-ink) !important; }
@media (hover: hover) and (pointer: fine) { .v3-btn--wa:hover { background: #1FBE5A; } }

.v3-btn--sm { min-height: var(--v3-target); padding: 0 16px; border-radius: var(--v3-r-sm); font-size: .9375rem; }
.v3-btn--block { display: flex; width: 100%; }

/* ---------------------------------------------------------------- chips */
.v3-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--v3-target);
  min-width: var(--v3-target);
  padding: 0 14px;
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-r-pill);
  background: var(--v3-white);
  color: var(--v3-ink);
  font-family: var(--v3-font);
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) { a.v3-chip:hover,
button.v3-chip:hover { border-color: #D9C9D2; background: var(--v3-blush); } }

.v3-chip--pink { border-color: transparent; background: var(--v3-blush-2); color: var(--v3-pink-ink); }
.v3-chip--sky { border-color: transparent; background: var(--v3-sky); color: var(--v3-sky-ink); }
.v3-chip--ink { border-color: var(--v3-ink); background: var(--v3-ink); color: #fff; }
.v3-chip--quiet { min-height: 32px; padding: 0 12px; font-size: .8125rem; font-weight: 600; }

/* Count bubble on a chip (the cart). Hidden until it has a number. */
.v3-chip__badge,
.v3-cart-badge {
  position: absolute;
  inset-block-start: -4px;
  inset-inline-end: -4px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--v3-pink-strong);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--v3-cream);
}

.v3-chip__badge[hidden],
.v3-cart-badge[hidden] { display: none !important; }

/* ---------------------------------------------------------------- cards */
.v3-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-r-lg);
  background: var(--v3-white);
  color: var(--v3-ink);
  overflow: hidden;
}

a.v3-card { text-decoration: none; transition: transform .2s var(--v3-ease-out), box-shadow .2s var(--v3-ease-out); }
@media (hover: hover) and (pointer: fine) {
  a.v3-card:hover { transform: translateY(-2px); box-shadow: var(--v3-shadow); }
}

.v3-card p { margin: 0; color: var(--v3-muted); }
.v3-card--blush { border-color: transparent; background: var(--v3-blush); }
.v3-card--sky { border-color: transparent; background: var(--v3-sky); }
.v3-card--sky p { color: var(--v3-sky-ink); }
.v3-card--pink { border-color: transparent; background: var(--v3-pink-strong); color: #fff; }
.v3-card--pink :where(h2, h3, .v3-h2, .v3-h3),
.v3-card.v3-card--pink p { color: #fff; }
.v3-card--ink { border-color: transparent; background: var(--v3-ink); color: #fff; }
.v3-card--ink :where(h2, h3, .v3-h2, .v3-h3) { color: #fff; }
.v3-card.v3-card--ink p { color: #D8D3DA; }

/* Image on top, text below: the shop product and real-work cards. */
.v3-card--flush { padding: 0; gap: 0; }
.v3-card__media { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--v3-blush); }
.v3-card__body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 14px; }
.v3-card__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }

@media (min-width: 1024px) {
  .v3-card { padding: 22px; }
  .v3-card--flush { padding: 0; }
  .v3-card__body { padding: 18px; }
}

/* -------------------------------------------------------------- section */
/* Full-bleed band: the background runs edge to edge, the content stops at 1200 px. */
.v3-section {
  padding-block: 44px 8px;
  padding-inline: max(var(--v3-gutter), calc((100% - var(--v3-max)) / 2));
}

.v3-section > .v3-h2 + .v3-lead,
.v3-section > header > .v3-h2 + .v3-lead { margin-top: 8px; }
.v3-section > :where(.v3-grid, .v3-card, .v3-btn, .v3-hero, [data-v3-body]) { margin-top: 22px; }

.v3-section--band { padding-block: 44px; }
.v3-section--blush { background: var(--v3-blush); }
.v3-section--sky { background: var(--v3-sky); }
.v3-section--ink { background: var(--v3-ink); color: #fff; }
.v3-section--ink :where(.v3-h2, .v3-h3) { color: #fff; }
.v3-section--ink .v3-lead { color: #D8D3DA; }

@media (min-width: 768px) {
  .v3-section { padding-block: 64px 16px; }
  .v3-section--band { padding-block: 64px; }
}

@media (min-width: 1024px) {
  .v3-section { padding-block: 88px 24px; }
  .v3-section--band { padding-block: 88px; }
  .v3-section > :where(.v3-grid, .v3-card, .v3-btn, .v3-hero, [data-v3-body]) { margin-top: 32px; }
}

/* ---------------------------------------------------------------- grid */
.v3-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

/* Two up even on a phone: ready-made product tiles only. */
.v3-grid--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (min-width: 768px) {
  .v3-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

@media (min-width: 1024px) {
  .v3-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .v3-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .v3-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ----------------------------------------------------------------- hero */
.v3-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding: 18px var(--v3-gutter) 0;
  overflow: hidden;
}

.v3-hero__copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.v3-hero__copy > .v3-h1 { margin-top: 14px; }
.v3-hero__copy > .v3-h1:first-child { margin-top: 0; }
.v3-hero__copy > .v3-price { margin-top: 14px; }
.v3-hero__ctas { display: flex; gap: 10px; width: 100%; margin-top: 18px; }
.v3-hero__ctas > .v3-btn { flex: 0 0 auto; }
.v3-hero__ctas > .v3-btn--main,
.v3-hero__ctas > .v3-btn--pink { flex: 1 1 auto; }
.v3-hero__media { position: relative; min-width: 0; min-height: 260px; }
.v3-hero__media img { display: block; max-width: 100%; height: auto; }

/* Inside a v3-section the band already pads the sides. */
.v3-section > .v3-hero { padding-inline: 0; }

@media (min-width: 768px) {
  .v3-hero__ctas { width: auto; }
  .v3-hero__ctas > .v3-btn--main,
  .v3-hero__ctas > .v3-btn--pink { flex: 0 0 auto; }
}

@media (min-width: 1024px) {
  .v3-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center;
    gap: 48px;
    max-width: var(--v3-max);
    margin-inline: auto;
    padding: 56px var(--v3-gutter) 40px;
    box-sizing: content-box;
  }
  .v3-hero__media { min-height: 460px; }
}

/* ---------------------------------------------------------------- price */
/* Big number, small currency sign. Rendered by partials/v3-price (live tier, never typed). */
.v3-price {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 8px;
  row-gap: 2px;
  margin: 0;
  color: var(--v3-ink);
}

.v3-price__value {
  display: inline-flex;
  align-items: baseline;
  gap: .22em;
  font-size: 1.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  white-space: nowrap;
}

.v3-price__cur { display: inline-flex; color: var(--v3-muted); font-size: .6em; font-weight: 600; }
.v3-price__cur svg { width: 1.35em !important; height: .76em !important; }
.v3-price__note { color: var(--v3-muted); font-size: .9375rem; font-weight: 500; }

.v3-price--lg .v3-price__value { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); }
.v3-price--sm .v3-price__value { font-size: 1.125rem; }
.v3-price--sm .v3-price__note { font-size: .75rem; }

/* --------------------------------------------------------------- ticker */
/* The black delivery marquee. partials/v3-ticker. */
.v3-ticker {
  position: relative;
  overflow: hidden;
  padding-block: 14px;
  background: var(--v3-ink);
  color: #fff;
  font-family: var(--v3-font);
  font-size: .9375rem;
  font-weight: 600;
  white-space: nowrap;
}

.v3-ticker__move {
  display: flex;
  width: max-content;
  animation: v3-tick 30s linear infinite;
}

[dir="rtl"] .v3-ticker__move { animation-name: v3-tick-rtl; }

.v3-ticker__group {
  display: flex;
  flex: none;
  gap: 28px;
  margin: 0;
  padding: 0;
  padding-inline-end: 28px;
  list-style: none;
}

.v3-ticker__item { display: inline-flex; align-items: center; gap: 28px; margin: 0; }
.v3-ticker__item::after {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--v3-pink);
}

.v3-ticker:focus-within .v3-ticker__move { animation-play-state: paused; }

@media (hover: hover) and (pointer: fine) { .v3-ticker:hover .v3-ticker__move { animation-play-state: paused; } }

@keyframes v3-tick { to { transform: translateX(-50%); } }
@keyframes v3-tick-rtl { to { transform: translateX(50%); } }

/* ---------------------------------------------------------------- sticky */
/* Phone bar: price + one action. partials/v3-sticky. Gone at 1024 px. */
.v3-sticky {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 45;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--v3-line);
  background: rgb(255 255 255 / .95);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  transform: translateY(calc(100% + 8px));
  visibility: hidden;
  transition: transform .35s var(--v3-ease-out), visibility 0s linear .35s;
}

.v3-sticky.is-on {
  transform: none;
  visibility: visible;
  transition: transform .35s var(--v3-ease-out), visibility 0s;
}

.v3-sticky__row { display: flex; align-items: center; gap: 12px; max-width: 640px; margin-inline: auto; }
.v3-sticky__info { flex: 1; min-width: 0; line-height: 1.2; }
.v3-sticky__note { display: block; overflow: hidden; color: var(--v3-muted); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.v3-sticky .v3-btn { flex: none; min-height: 50px; }
.v3-sticky .v3-btn:only-child { flex: 1; }

/* Room under the last footer line while the bar can show. */
body:has(.v3-sticky) .v3-footer { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }

@media (min-width: 1024px) {
  .v3-sticky { display: none !important; }
  body:has(.v3-sticky) .v3-footer { padding-bottom: 28px; }
}

/* ---------------------------------------------------------------- reveal */
/* Fade up once on scroll. Visible by default; partials/v3-runtime arms it. */
.v3-reveal-armed .v3-reveal:not(.is-in) { opacity: 0; transform: translateY(24px); }
.v3-reveal-armed .v3-reveal { transition: opacity .6s ease, transform .6s var(--v3-ease-out); }

/* ---------------------------------------------------------------- header */
/* Restyles the existing header in place: same links, menu and data hooks. */
.cups-site-header.v3-header {
  border-bottom: 1px solid transparent !important;
  border-color: transparent !important;
  background: rgb(247 245 242 / .86) !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: border-color .2s var(--v3-ease-out);
}

.cups-site-header.v3-header.cm-scrolled { border-color: var(--v3-line) !important; }

.v3-header__inner { max-width: var(--v3-max); margin-inline: auto; padding-inline: 16px; }
.v3-header__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--v3-header-h); }

.v3-header .cups-brand { display: inline-flex; align-items: center; gap: 10px; min-height: var(--v3-target); color: var(--v3-ink); text-decoration: none; }
.v3-header .cups-brand img { height: 34px; width: auto; }
.v3-header__name { display: none; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }

.v3-header__tools { display: flex; align-items: center; gap: 8px; }

/* Desktop nav: inline links, no track. */
.v3-header .cups-desktop-nav {
  gap: 2px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}

.v3-header .cups-desktop-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--v3-target);
  padding: 0 12px;
  border-radius: var(--v3-r-pill);
  background: none;
  box-shadow: none;
  color: var(--v3-muted);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) { .v3-header .cups-desktop-nav a:hover { background: var(--v3-blush); color: var(--v3-ink); box-shadow: none; } }
.v3-header .cups-desktop-nav a.is-active { background: none; box-shadow: inset 0 -2px 0 var(--v3-pink); border-radius: 0; color: var(--v3-ink); }

/* Language and currency: one pill, the current choice filled ink. */
.v3-header .cups-segmented-control {
  height: var(--v3-target) !important;
  min-height: var(--v3-target) !important;
  padding: 3px !important;
  gap: 2px !important;
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-r-pill) !important;
  background: var(--v3-white);
}

.v3-header .cups-segmented-control > a {
  min-width: 36px !important;
  padding: 0 10px !important;
  border-radius: var(--v3-r-pill) !important;
  background: none;
  box-shadow: none;
  color: var(--v3-muted);
  font-size: .8125rem;
  font-weight: 700;
}

.v3-header .cups-segmented-control > a span { color: inherit !important; font-size: inherit; font-weight: inherit; }
@media (hover: hover) and (pointer: fine) { .v3-header .cups-segmented-control > a:hover { background: var(--v3-blush); color: var(--v3-ink); box-shadow: none; } }
.v3-header .cups-segmented-control > a.is-active,
.v3-header .cups-segmented-control > a[aria-current="true"] { background: var(--v3-ink) !important; box-shadow: none !important; color: #fff !important; }

/* Cart and menu: 44 px chips. */
.v3-header .cups-icon-button {
  position: relative;
  width: auto;
  min-width: var(--v3-target);
  height: var(--v3-target);
  padding: 0 12px;
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-r-pill);
  background: var(--v3-white);
  color: var(--v3-ink);
}

@media (hover: hover) and (pointer: fine) { .v3-header .cups-icon-button:hover { border-color: #D9C9D2; background: var(--v3-blush); color: var(--v3-ink); } }

/* Phone menu panel. */
.v3-header .cups-mobile-menu {
  padding: 10px 16px 18px;
  border-color: var(--v3-line);
  background: var(--v3-cream);
  box-shadow: 0 18px 30px -18px rgb(25 23 29 / .35);
}

.v3-header .cups-mobile-menu > a {
  min-height: 52px;
  padding: 0 14px;
  border-radius: var(--v3-r-sm);
  color: var(--v3-ink);
  font-size: 1.0625rem;
  font-weight: 700;
}

.v3-header .cups-mobile-menu > a.is-active { background: var(--v3-white); color: var(--v3-ink); }

@media (hover: hover) and (pointer: fine) { .v3-header .cups-mobile-menu > a:hover { background: var(--v3-white); color: var(--v3-ink); } }
.v3-header .cups-mobile-currency a { border-color: var(--v3-line); background: var(--v3-white); color: var(--v3-muted); }
.v3-header .cups-mobile-currency a.is-active { border-color: var(--v3-ink); background: var(--v3-ink); color: #fff; }

@media (min-width: 768px) {
  .v3-header__inner { padding-inline: var(--v3-gutter); }
}

@media (min-width: 1024px) {
  .v3-header .cups-brand img { height: 40px; }
  .v3-header .cups-desktop-nav a { padding: 0 14px; }
}

@media (min-width: 1280px) {
  .v3-header__name { display: inline; }
}

/* ---------------------------------------------------------------- footer */
footer.cups-public-footer.v3-footer {
  margin-top: 56px;
  padding: 0 0 28px;
  border-top: 1px solid var(--v3-line);
  background: var(--v3-cream) !important;
  color: var(--v3-ink) !important;
  font-family: var(--v3-font);
}

.v3-footer__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 20px;
  max-width: var(--v3-max);
  margin-inline: auto;
  padding: 40px var(--v3-gutter) 0;
}

.v3-footer__brand,
.v3-footer__delivery { grid-column: 1 / -1; }
.v3-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.v3-footer__brand .v3-footer__logo { display: inline-flex; min-height: var(--v3-target); align-items: center; }
.v3-footer__brand .v3-footer__logo img { height: 40px; width: auto; }
.v3-footer__social { display: flex; flex-wrap: wrap; gap: 10px; }

.v3-footer .v3-footer__title {
  margin: 0 0 6px;
  color: var(--v3-ink) !important;
  font-size: .9375rem;
  font-weight: 700;
}

.v3-footer__links { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.v3-footer .v3-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--v3-target);
  padding: 0;
  color: var(--v3-muted) !important;
  font-size: .9375rem;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) { .v3-footer .v3-footer__links a:hover { color: var(--v3-ink) !important; text-decoration: underline; text-underline-offset: 4px; } }

/* The old skin paints every footer link that has an aria-label as a round
   white button; v3 buttons keep their own fill. */
.v3-footer a.v3-btn--wa { border-color: transparent; background: var(--v3-wa) !important; color: var(--v3-ink) !important; }
.v3-footer a.v3-btn--wa i { color: var(--v3-ink) !important; }
.v3-footer a.v3-chip { border-color: var(--v3-line); background: var(--v3-white) !important; color: var(--v3-ink) !important; }
@media (hover: hover) and (pointer: fine) { .v3-footer a.v3-chip:hover { background: var(--v3-blush) !important; color: var(--v3-ink) !important; } }
.v3-footer a.v3-chip i { color: var(--v3-ink) !important; }

.v3-footer .cups-public-footer a.cups-footer-location,
.v3-footer a.cups-footer-location { justify-content: flex-start; text-align: start; }

.v3-footer__delivery .cups-dp { font-size: .875rem; }

.v3-footer__base {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: var(--v3-max);
  margin: 32px auto 0;
  padding: 24px var(--v3-gutter) 0;
  border-top: 1px solid var(--v3-line);
  text-align: center;
}

.v3-footer__base p { margin: 0; font-size: .875rem; }
.v3-footer__legal { color: var(--v3-muted); font-size: .8125rem; }

@media (min-width: 768px) {
  .v3-footer__inner { gap: 32px 40px; }
}

@media (min-width: 1024px) {
  footer.cups-public-footer.v3-footer { margin-top: 88px; }
  .v3-footer__inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, .8fr) minmax(0, 1.3fr); padding-top: 56px; }
  .v3-footer__brand,
  .v3-footer__delivery { grid-column: auto; }
}

/* ------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  .v3-btn,
  a.v3-card,
  .v3-sticky,
  .v3-header,
  .v3-reveal-armed .v3-reveal { transition: none !important; }
  .v3-btn:active { transform: none; }
  .v3-reveal-armed .v3-reveal:not(.is-in) { opacity: 1; transform: none; }

  /* The marquee stops and becomes a plain, wrapping line. */
  .v3-ticker { white-space: normal; }
  .v3-ticker__move,
  [dir="rtl"] .v3-ticker__move { width: auto; animation: none; justify-content: center; }
  .v3-ticker__group { flex-wrap: wrap; justify-content: center; row-gap: 8px; padding-inline: 16px; }
  .v3-ticker__group[aria-hidden="true"],
  .v3-ticker__item[aria-hidden="true"] { display: none; }
}

@media print {
  .v3-sticky, .v3-ticker { display: none !important; }
  .v3-reveal-armed .v3-reveal { opacity: 1 !important; transform: none !important; }
}

/* ================================================================ motion */
/* Stream A, 26 Nov 2026. The one motion vocabulary (docs/mobile-experience/MOTION.md).
   L0 still: inputs, steppers, payment, game controls.  L1 touch: press.
   L2 state: sheets, toasts, step change, price tick.  L3 moment: cups only, one per action.
   Nothing below restyles a v3 component: it only adds press, sheet, tick, skeleton and state. */
:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  /* Damped spring, bounce 0.2 (damping 0.8), 620 ms. Cups only. Safari 17.2+; older engines use --v3-spring. */
  --ease-spring: var(--v3-spring);
  --dur-press: 120ms;
  --dur-release: 160ms;
  --dur-state: 240ms;
  --dur-sheet: 320ms;
  --dur-moment: 600ms;
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --ease-spring: linear(0, 0.044, 0.148, 0.28, 0.417, 0.546, 0.659, 0.755, 0.831, 0.891, 0.935, 0.967, 0.988,
      1.002, 1.01, 1.014, 1.015, 1.015, 1.013, 1.011, 1.009, 1.007, 1.005, 1.004, 1);
  }
}

/* ----------------------------------------------------------------- press */
/* L1: 0.97 on press-in (120 ms), back in 160 ms. Uses the `scale` property, so it
   composes with any transform a component already has (hover lift, RTL flips). */
.v3-press,
.v3-chip,
a.v3-card,
.v3-card a {
  transition-property: scale, transform, background-color, border-color, color, box-shadow;
  transition-duration: var(--dur-release), .2s, .15s, .15s, .15s, .2s;
  transition-timing-function: var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.v3-btn { transition-property: scale, transform, background-color, border-color, box-shadow; transition-duration: var(--dur-release), .15s, .15s, .15s, .15s; }
.v3-press:not(.v3-btn):active,
.v3-chip:active,
a.v3-card:active,
.v3-card a:not(.v3-btn):active {
  scale: .97;
  transition-duration: var(--dur-press), .2s, .15s, .15s, .15s, .2s;
}
.v3-btn:active { transition-duration: var(--dur-press), .15s, .15s, .15s, .15s; }
[data-fx-level="0"] :is(.v3-press, .v3-chip, .v3-btn, a.v3-card, .v3-card a):active,
:is(.v3-press, .v3-chip, .v3-btn, a.v3-card, .v3-card a)[data-fx-level="0"]:active,
:is(.v3-press, .v3-chip, .v3-btn)[aria-disabled="true"]:active,
:is(.v3-press, .v3-chip, .v3-btn):disabled:active { scale: none; transform: none; }

/* ----------------------------------------------------------------- sheet */
/* L2: <dialog class="v3-sheet"> slides up from the bottom edge (320 ms drawer ease),
   leaves in 70 % of that. Old engines without @starting-style: it simply appears. */
dialog.v3-sheet {
  position: fixed;
  inset: auto 0 0 0;
  margin: 0 auto;
  width: 100%;
  max-width: 560px;
  max-height: min(88dvh, calc(100dvh - 24px));
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: var(--v3-r-lg) var(--v3-r-lg) 0 0;
  padding: 0 var(--v3-gutter) calc(20px + env(safe-area-inset-bottom));
  background: var(--v3-white);
  color: var(--v3-ink);
  box-shadow: 0 -12px 40px -12px rgb(25 23 29 / .28);
  transform: translateY(0);
  transition:
    transform var(--dur-sheet) var(--ease-drawer),
    overlay var(--dur-sheet) allow-discrete,
    display var(--dur-sheet) allow-discrete;
}
dialog.v3-sheet:not([open]) {
  transform: translateY(100%);
  transition-duration: calc(var(--dur-sheet) * .7);
  transition-timing-function: var(--ease-out);
}
@starting-style { dialog.v3-sheet[open] { transform: translateY(100%); } }
dialog.v3-sheet::backdrop {
  background: rgb(25 23 29 / .42);
  opacity: 1;
  transition: opacity var(--dur-sheet) var(--ease-out), overlay var(--dur-sheet) allow-discrete, display var(--dur-sheet) allow-discrete;
}
dialog.v3-sheet:not([open])::backdrop { opacity: 0; transition-duration: calc(var(--dur-sheet) * .7); }
@starting-style { dialog.v3-sheet[open]::backdrop { opacity: 0; } }
.v3-sheet__head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  margin-inline: calc(var(--v3-gutter) * -1);
  padding: 18px var(--v3-gutter) 8px;
  background: inherit;
  touch-action: none;
}
.v3-sheet__handle {
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 22px;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: grab;
  touch-action: none;
}
.v3-sheet__handle::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 40px;
  height: 5px;
  margin-left: -20px;
  border-radius: var(--v3-r-pill);
  background: var(--v3-line);
}
.v3-sheet__title { flex: 1; margin: 0; font-size: 1.125rem; font-weight: 700; }
.v3-sheet__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--v3-target);
  min-height: var(--v3-target);
  border: 0;
  border-radius: var(--v3-r-pill);
  background: var(--v3-cream);
  color: var(--v3-ink);
  cursor: pointer;
}
.v3-sheet__close:focus-visible,
.v3-sheet__handle:focus-visible { outline: 2px solid var(--v3-pink); outline-offset: 2px; }
@media (min-width: 768px) {
  dialog.v3-sheet { bottom: 24px; border-radius: var(--v3-r-lg); padding-bottom: 24px; }
}

/* ------------------------------------------------------------------ tick */
/* L2: numbers roll digit by digit (resources/js/fun/tick.ts). The digit stays real
   text (transparent), a 0..9 strip rolls over it. The rial sign is never touched. */
@property --v3-d { syntax: "<number>"; inherits: true; initial-value: 0; }
.v3-tick { font-variant-numeric: tabular-nums; }
.v3-tick__n { white-space: nowrap; }
.v3-tick__d {
  position: relative;
  display: inline-block;
  height: 1.2em;
  line-height: 1.2em;
  overflow: hidden;
  vertical-align: bottom;
  -webkit-text-fill-color: transparent;
  transition: --v3-d var(--dur-state) var(--ease-out);
}
.v3-tick__d::after {
  content: "0\A 1\A 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  white-space: pre;
  text-align: center;
  -webkit-text-fill-color: currentColor;
  transform: translateY(calc(var(--v3-d) * -1.2em));
}

/* -------------------------------------------------------------- skeleton */
/* Loading placeholders. `.v3-skeleton--cup` is the cup shape (trapezoid with a rim). */
.v3-skeleton {
  display: block;
  min-height: 1em;
  border-radius: var(--v3-r-sm);
  background: linear-gradient(90deg, var(--v3-line) 0%, #F3EFF2 40%, var(--v3-line) 80%) 0 0 / 300% 100%;
  animation: v3-shimmer 1.4s linear infinite;
}
.v3-skeleton--line { height: .875em; margin-block: .35em; border-radius: var(--v3-r-pill); }
.v3-skeleton--cup {
  width: 72px;
  aspect-ratio: 0.78;
  border-radius: 0;
  clip-path: polygon(4% 0, 96% 0, 96% 7%, 88% 7%, 76% 100%, 24% 100%, 12% 7%, 4% 7%);
}
[dir="rtl"] .v3-skeleton { animation-direction: reverse; }
@keyframes v3-shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }

/* ----------------------------------------------------------------- state */
/* Empty, error and loading cards. The error card leads with the fix. */
.v3-state {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 28px 20px;
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-r-lg);
  background: var(--v3-white);
  text-align: center;
}
.v3-state__cup { width: 88px; height: auto; filter: var(--v3-shadow-cup); }
.v3-state__title { margin: 0; font-size: 1.125rem; font-weight: 700; color: var(--v3-ink); }
.v3-state__text { margin: 0; max-width: 36ch; color: var(--v3-muted); }
.v3-state__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 4px; }
.v3-state--empty { background: var(--v3-cream); border-style: dashed; }
/* A cup on its side: the empty-cart and not-found picture. */
.v3-state--empty .v3-state__cup { rotate: -78deg; margin-block: 8px; }
[dir="rtl"] .v3-state--empty .v3-state__cup { rotate: 78deg; }
.v3-state--error { border-color: var(--v3-pink); background: var(--v3-blush); }
.v3-state--error .v3-state__title { color: var(--v3-pink-ink); }
.v3-state--loading { border-style: dashed; }

/* ------------------------------------------------- motion: reduced motion */
/* L1 press stays (it is feedback, not travel). L2 slides become swaps. L3 is handled in JS. */
@media (prefers-reduced-motion: reduce) {
  .v3-btn:active,
  .v3-press:active,
  .v3-chip:active,
  a.v3-card:active,
  .v3-card a:not(.v3-btn):active { scale: .97; }
  dialog.v3-sheet,
  dialog.v3-sheet::backdrop { transition-property: opacity, overlay, display; }
  dialog.v3-sheet:not([open]) { transform: none; opacity: 0; }
  @starting-style { dialog.v3-sheet[open] { transform: none; opacity: 0; } }
  dialog.v3-sheet { opacity: 1; transition-duration: 150ms; }
  .v3-tick__d { transition: none; }
  .v3-skeleton { animation: none; }
}

/* ---------------------------------------------------------- sound toggle */
/* [data-fun-sound-toggle] becomes this 44 px button (resources/js/fun/sound.ts). Sound is off by default. */
.cups-sound{display:inline-flex;align-items:center;justify-content:center;gap:.375rem;min-width:44px;min-height:44px;padding:0 .625rem;border-radius:999px;border:1px solid var(--v3-line);background:var(--v3-white);color:inherit;font:inherit;font-size:.875rem;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:scale var(--dur-release) var(--ease-out),background-color .2s ease}
.cups-sound:active{scale:.97;transition-duration:var(--dur-press),.2s}
.cups-sound[aria-pressed="true"]{background:var(--v3-blush);border-color:var(--v3-pink);color:var(--v3-pink-ink)}
.cups-sound:focus-visible{outline:2px solid var(--v3-pink);outline-offset:2px}
.cups-sound__label{white-space:nowrap}
.cups-sound--icon .cups-sound__label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ============================================================ fix pass, 26 Nov 2026 */
/* From the three v3 release audits. This file ships under a hashed name
   (scripts/hash-css-asset.mjs, partials/v3-css): run `npm run build:v3css` after an edit. */

/* The buy bar covered the last footer lines on the product page: the footer's own
   `padding: 0 0 28px` came later with the same weight and won. This one is heavier. */
body:has(.v3-sticky) footer.cups-public-footer.v3-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) {
  body:has(.v3-sticky) footer.cups-public-footer.v3-footer { padding-bottom: 28px; }
}

/* Safe areas. Both layouts now send viewport-fit=cover, so env(safe-area-inset-*) is real
   on iPhone. In landscape the page and the fixed bars stay clear of the notch. */
@supports (padding: max(0px)) {
  body[data-surface="public"] { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
  .v3-sticky { padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
}

/* A phone on its side (812 x 375): the header and the bars took 136 to 144 px of 375.
   The header scrolls away with the page and the bars get thinner. */
@media (orientation: landscape) and (max-height: 480px) {
  .cups-site-header.v3-header { position: relative !important; }
  .v3-sticky { padding-top: 6px; padding-bottom: calc(6px + env(safe-area-inset-bottom)); }
  .v3-sticky .v3-btn { min-height: 44px; }
}

/* /track: the placeholder was #8b98a7 on white, 2.94:1. This is 7.2:1. */
.cups-track-input-wrap input::placeholder { color: #5b5560; opacity: 1; }

/* Checkout with the keyboard open: a focused field scrolls clear of the header and the bar. */
.v3s-page input, .v3s-page select, .v3s-page textarea { scroll-margin-block: 90px 120px; }

/* Type: no one-word last line in a heading, no straggler in a lead. */
.v3-h1, .v3-h2, .v3s-title { text-wrap: balance; }
.v3-lead { text-wrap: pretty; }

/* Small links reach 44 px across. */
.v3-footer__links a, .v3s-crumbs a { min-width: 44px; }

/* F-16: tap targets of 44 px. The remove-file buttons keep their 32 px disc; the
   hit area grows around it. The language options keep their 36 px pill inside the
   44 px control; the tap reaches the control's full height. */
[data-custom-order] button[wire\:click^="removeFile"]::after,
[data-custom-order] button[wire\:click^="removeChunkedFile"]::after { content: ""; position: absolute; inset: -6px; }
.v3-header .cups-segmented-control > a { position: relative; }
.v3-header .cups-segmented-control > a::after { content: ""; position: absolute; inset: -4px -1px; }

/* The image shimmer runs only on screen (partials/v3-runtime marks the images in view). */
.v3-shim-io [data-cups-image-state="loading"]:not(.is-shim-on),
.v3-shim-io [data-cups-image-state="loading"]:not(.is-shim-on)::after { animation-play-state: paused; }
