/* ==========================================================================
   ELITECHIC — design system
   Style: Vibrant & block-based. Chunky ink outlines, offset "pop" shadows,
   saturated gift colours on warm cream. Fredoka (display) + Nunito (body).
   ========================================================================== */

:root {
  /* palette */
  --ink: #1f1235;
  --ink-2: #3a2c55;
  --muted: #5b5070;
  --cream: #ffffff;
  --cream-2: #f5f5f5;
  --paper: #ffffff;
  --red: #d7263d;
  --red-press: #b01a2f;
  --sun: #ffc233;
  --sun-soft: #ffe7a8;
  --pink: #ff8fc7;
  --pink-soft: #ffd3e8;
  --sky: #4d7cfe;
  --sky-soft: #bfd6ff;
  --mint: #2ec4a0;
  --mint-soft: #c9f2e3;
  --grape: #7b4dff;
  --success: #0b7a5a;
  --danger: #c0182f;

  /* semantic */
  --bg: var(--cream);
  --fg: var(--ink);
  --surface: var(--paper);
  --border: var(--ink);
  --focus: var(--sky);

  /* type */
  /* Baloo 2 rather than Fredoka: Fredoka has no Vietnamese glyphs. */
  --font-display: 'Baloo 2', 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --fs-2xl: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  --fs-3xl: clamp(2.6rem, 1.6rem + 4.4vw, 5.25rem);

  /* shape & depth */
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --r-pill: 999px;
  --bw: 2.5px;
  --pop-sm: 3px 3px 0 var(--ink);
  --pop: 5px 5px 0 var(--ink);
  --pop-lg: 9px 9px 0 var(--ink);

  /* spacing */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 150ms;
  --t: 240ms;

  color-scheme: light;
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 var(--s-4);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p {
  margin: 0 0 var(--s-4);
  text-wrap: pretty;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection {
  background: var(--sun);
  color: var(--ink);
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: var(--cream);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm);
  font-weight: 800;
  text-decoration: none;
}
.skip-link:focus {
  top: var(--s-4);
}

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: clamp(56px, 8vw, 112px);
}
.section-tight {
  padding-block: clamp(40px, 5vw, 64px);
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--s-5);
  margin-bottom: var(--s-6);
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: var(--fs-2xl);
  margin: 0;
}
.section-head p {
  margin: var(--s-2) 0 0;
  color: var(--muted);
  max-width: 52ch;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: var(--s-3);
}
.lead {
  font-size: var(--fs-lg);
  color: var(--ink-2);
}
.muted {
  color: var(--muted);
}
.grid {
  display: grid;
  gap: var(--s-5);
}
.stack > * + * {
  margin-top: var(--s-4);
}

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--paper);
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 12px 24px;
  border: var(--bw) solid var(--ink);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--pop-sm);
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out), background-color var(--t-fast);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--pop);
}
.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--ink);
}
.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: var(--pop-sm);
}
.btn-primary {
  --btn-bg: var(--red);
  --btn-fg: #fff;
}
.btn-primary:hover {
  --btn-bg: var(--red-press);
}
.btn-ink {
  --btn-bg: var(--ink);
  --btn-fg: var(--cream);
}
.btn-sun {
  --btn-bg: var(--sun);
}
.btn-lg {
  min-height: 58px;
  padding: 16px 32px;
  font-size: 1.1875rem;
}
.btn-sm {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.9375rem;
}
.btn-block {
  width: 100%;
}
.btn .icon {
  width: 20px;
  height: 20px;
}
.link {
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: var(--red);
  transition: text-decoration-color var(--t-fast);
}
.link:hover {
  text-decoration-color: var(--ink);
}
.icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--r-pill);
  border: var(--bw) solid transparent;
  background: transparent;
  cursor: pointer;
  transition: background-color var(--t-fast), border-color var(--t-fast);
  text-decoration: none;
}
.icon-btn:hover {
  background: var(--paper);
  border-color: var(--ink);
}

/* ---------- badges & chips ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  background: var(--sun);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.2;
  white-space: nowrap;
}
.badge-new {
  background: var(--mint);
}
.badge-sale {
  background: var(--pink);
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: 8px 18px;
  border: var(--bw) solid var(--ink);
  border-radius: var(--r-pill);
  background: var(--paper);
  font-weight: 800;
  font-size: var(--fs-sm);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--t-fast), transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast);
}
.chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--pop-sm);
}
.chip[aria-current='true'],
.chip.is-active {
  background: var(--ink);
  color: var(--cream);
}

/* ---------- announcement + header ---------- */
.announce {
  background: var(--ink);
  color: var(--cream);
  font-weight: 700;
  font-size: var(--fs-xs);
  overflow: hidden;
}
.announce-track {
  display: flex;
  gap: var(--s-7);
  padding: 9px 0;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.announce-track span {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  white-space: nowrap;
}
.announce-track .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sun);
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: var(--bw) solid transparent;
  transition: border-color var(--t), box-shadow var(--t);
}
.site-header.is-scrolled {
  border-bottom-color: var(--ink);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  min-height: 76px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  flex: none;
}
.logo svg {
  width: 42px;
  height: 42px;
  transition: transform var(--t) var(--ease-back);
}
.logo:hover svg {
  transform: rotate(-10deg) scale(1.06);
}
.nav {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  margin-inline: auto;
}
.nav > a,
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-weight: 800;
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  transition: background-color var(--t-fast);
}
.nav > a:hover,
.nav-trigger:hover,
.nav > a[aria-current='page'] {
  background: var(--sun-soft);
}
.nav-item {
  position: relative;
}
.nav-trigger .icon {
  width: 16px;
  height: 16px;
  transition: transform var(--t-fast);
}
.nav-item.is-open .nav-trigger .icon {
  transform: rotate(180deg);
}
.mega {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  translate: -50% 0;
  width: min(720px, 90vw);
  padding: var(--s-4);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  border-radius: var(--r);
  box-shadow: var(--pop-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--t-fast), transform var(--t-fast) var(--ease-out), visibility var(--t-fast);
}
.nav-item.is-open .mega {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.mega a {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-2);
  border-radius: var(--r-sm);
  text-decoration: none;
  font-weight: 800;
  line-height: 1.25;
  transition: background-color var(--t-fast);
}
.mega a:hover {
  background: var(--cream);
}
.mega a small {
  display: block;
  font-weight: 600;
  color: var(--muted);
  font-size: var(--fs-xs);
}
.mega-thumb {
  flex: none;
  width: 58px;
  height: 58px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  flex: none;
}
.cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  background: var(--red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1;
}
.cart-count[data-count='0'] {
  display: none;
}
.cart-count.bump {
  animation: bump 420ms var(--ease-back);
}
@keyframes bump {
  40% {
    transform: scale(1.45);
  }
}
.menu-toggle {
  display: none;
}

/* search */
.search-panel {
  border-top: var(--bw) solid var(--ink);
  background: var(--paper);
  padding-block: var(--s-4);
}
.search-panel[hidden] {
  display: none;
}
.search-form {
  display: flex;
  gap: var(--s-3);
}
.search-form input {
  flex: 1;
}

/* mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  visibility: hidden;
  pointer-events: none;
}
.drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 18, 53, 0.45);
  opacity: 0;
  transition: opacity var(--t);
}
.drawer.is-open .drawer-backdrop {
  opacity: 1;
}
.drawer-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(440px, 92vw);
  background: var(--cream);
  border-inline: var(--bw) solid var(--ink);
  display: flex;
  flex-direction: column;
  transition: transform 320ms var(--ease-out);
}
.drawer-right .drawer-panel {
  right: 0;
  transform: translateX(100%);
}
.drawer-left .drawer-panel {
  left: 0;
  transform: translateX(-100%);
}
.drawer.is-open .drawer-panel {
  transform: none;
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-4) var(--s-5);
  border-bottom: var(--bw) solid var(--ink);
}
.drawer-head h2 {
  margin: 0;
  font-size: var(--fs-lg);
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--s-5);
  overscroll-behavior: contain;
}
.drawer-foot {
  padding: var(--s-5);
  border-top: var(--bw) solid var(--ink);
  background: var(--paper);
}
.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: var(--s-2) 0;
  border-bottom: 2px dashed color-mix(in srgb, var(--ink) 20%, transparent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  text-decoration: none;
}
.mobile-nav h3 {
  margin: var(--s-5) 0 var(--s-2);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* mini cart */
.mini-item {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: var(--s-3);
  align-items: center;
  padding: var(--s-3) 0;
  border-bottom: 2px dashed color-mix(in srgb, var(--ink) 18%, transparent);
}
.mini-item .thumb {
  width: 76px;
  height: 76px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
  overflow: hidden;
}
.mini-item h4 {
  font-size: 1rem;
  margin: 0 0 2px;
}
.mini-item p {
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--muted);
  line-height: 1.4;
}
.ship-meter {
  margin-bottom: var(--s-4);
  font-size: var(--fs-sm);
  font-weight: 700;
}
.ship-meter .bar {
  height: 12px;
  margin-top: var(--s-2);
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  background: var(--paper);
  overflow: hidden;
}
.ship-meter .bar span {
  display: block;
  height: 100%;
  background: repeating-linear-gradient(-45deg, var(--mint), var(--mint) 8px, #25b08f 8px, #25b08f 16px);
  border-right: 2px solid var(--ink);
  transition: width 500ms var(--ease-out);
}
.ship-meter .bar span[style*='100%'] {
  border-right: 0;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(40px, 6vw, 88px) clamp(56px, 8vw, 112px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 {
  font-size: var(--fs-3xl);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: var(--s-5);
}
.hl {
  position: relative;
  white-space: nowrap;
  display: inline-block;
}
.hl::before {
  content: '';
  position: absolute;
  inset: 52% -6px 2% -6px;
  background: var(--sun);
  border-radius: 8px;
  z-index: -1;
  transform: rotate(-1.5deg);
}
.hl-red {
  color: var(--red);
}
.hero .lead {
  max-width: 34ch;
  margin-bottom: var(--s-6);
}
.hero-ctas {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.trust-row {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  margin-top: var(--s-6);
  flex-wrap: wrap;
  font-weight: 700;
  font-size: var(--fs-sm);
}
.trust-row .item {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.stars {
  display: inline-flex;
  gap: 1px;
  color: #f5a400;
}
.stars svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: var(--ink);
  stroke-width: 1.5;
}
.stars .star-off {
  fill: var(--paper);
}
.avatars {
  display: flex;
}
.avatars span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  margin-left: -10px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
}
.avatars span:first-child {
  margin-left: 0;
}

.hero-stage {
  position: relative;
  aspect-ratio: 1 / 1.02;
  border: var(--bw) solid var(--ink);
  border-radius: var(--r-lg);
  background: var(--sun);
  box-shadow: var(--pop-lg);
  overflow: hidden;
  isolation: isolate;
}
.hero-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 16%, transparent) 1.6px, transparent 1.6px);
  background-size: 22px 22px;
  z-index: -1;
}
.hero-stage .m {
  position: absolute;
  transition: transform 500ms var(--ease-back);
}
.hero-stage .m-1 {
  width: 62%;
  left: -2%;
  top: 4%;
  transform: rotate(-6deg);
}
.hero-stage .m-2 {
  width: 52%;
  right: -3%;
  top: 6%;
  transform: rotate(7deg);
}
.hero-stage .m-3 {
  width: 50%;
  left: 26%;
  bottom: 14%;
  transform: rotate(-2deg);
}
.hero-stage:hover .m-1 {
  transform: rotate(-9deg) translateY(-6px);
}
.hero-stage:hover .m-2 {
  transform: rotate(10deg) translateY(-8px);
}
.hero-stage:hover .m-3 {
  transform: rotate(1deg) translateY(-4px);
}
.hero-try {
  position: absolute;
  left: var(--s-4);
  right: var(--s-4);
  bottom: var(--s-4);
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: 8px 8px 8px 18px;
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  border-radius: var(--r-pill);
  box-shadow: var(--pop-sm);
}
.hero-try label {
  font-family: var(--font-display);
  font-weight: 600;
  white-space: nowrap;
  font-size: var(--fs-sm);
}
.hero-try input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: var(--cream);
  border-radius: var(--r-pill);
  padding: 10px 16px;
  font-weight: 800;
  min-height: 44px;
}
.hero-try input:focus-visible {
  outline-offset: 0;
}
.sticker-note {
  position: absolute;
  z-index: 2;
  padding: 10px 16px;
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  border-radius: var(--r);
  box-shadow: var(--pop-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  line-height: 1.2;
}
.blob {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(0);
}

/* ---------- marquee strip ---------- */
.strip {
  background: var(--red);
  color: #fff;
  border-block: var(--bw) solid var(--ink);
  overflow: hidden;
  transform: rotate(-1.2deg);
  margin-block: -12px;
  position: relative;
  z-index: 2;
}
.strip-track {
  display: flex;
  gap: var(--s-6);
  width: max-content;
  padding: 16px 0;
  animation: marquee 30s linear infinite;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}
.strip-track span {
  display: inline-flex;
  align-items: center;
  gap: var(--s-6);
  white-space: nowrap;
}
.strip-track svg {
  width: 26px;
  height: 26px;
  fill: var(--sun);
  stroke: var(--ink);
  stroke-width: 1.5;
}

/* ---------- category bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: var(--s-5);
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--s-5);
  border: var(--bw) solid var(--ink);
  border-radius: var(--r-lg);
  text-decoration: none;
  overflow: hidden;
  box-shadow: var(--pop);
  transition: transform var(--t) var(--ease-out), box-shadow var(--t) var(--ease-out);
  isolation: isolate;
}
.tile:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--pop-lg);
}
.tile h3 {
  font-size: var(--fs-xl);
  margin: 0 0 6px;
  max-width: 12ch;
}
.tile p {
  margin: 0;
  font-weight: 700;
  font-size: var(--fs-sm);
  max-width: 24ch;
  opacity: 0.85;
}
.tile .tile-art {
  position: absolute;
  right: -6%;
  bottom: -8%;
  width: 62%;
  z-index: -1;
  transition: transform 500ms var(--ease-back);
}
.tile:hover .tile-art {
  transform: rotate(-5deg) scale(1.05);
}
.tile .arrow {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: var(--bw) solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  transition: transform var(--t) var(--ease-back);
}
.tile:hover .arrow {
  transform: rotate(-45deg);
}
.tile-1 {
  grid-column: span 3;
  grid-row: span 2;
  background: var(--sun);
}
.tile-1 .tile-art {
  width: 78%;
  right: -4%;
  bottom: -4%;
}
.tile-2 {
  grid-column: span 3;
  background: var(--sky-soft);
}
.tile-3 {
  grid-column: span 3;
  background: var(--ink);
  color: var(--cream);
}
.tile-4 {
  grid-column: span 2;
  background: var(--mint-soft);
}
.tile-5 {
  grid-column: span 2;
  background: var(--red);
  color: #fff;
}
.tile-6 {
  grid-column: span 2;
  background: var(--pink-soft);
}
.tile-7 {
  grid-column: span 6;
  min-height: 240px;
  background: #2e7d47;
  color: #fff;
}
.tile-7 h3 {
  max-width: none;
}
.tile-7 .tile-art {
  width: 34%;
  right: 3%;
  bottom: -10%;
}
.tile-2 .tile-art,
.tile-3 .tile-art,
.tile-4 .tile-art,
.tile-5 .tile-art,
.tile-6 .tile-art {
  width: 46%;
  right: -8%;
  bottom: -14%;
}
.tile-4 p,
.tile-5 p,
.tile-6 p {
  max-width: 17ch;
}

/* ---------- product cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-6) var(--s-5);
}
.p-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.p-media {
  position: relative;
  aspect-ratio: 1;
  border: var(--bw) solid var(--ink);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--card-bg, var(--cream-2));
  transition: transform var(--t) var(--ease-out), box-shadow var(--t) var(--ease-out);
}
.p-media svg {
  width: 100%;
  height: 100%;
  transition: transform 500ms var(--ease-out);
}
.p-card:hover .p-media {
  transform: translate(-3px, -3px);
  box-shadow: var(--pop);
}
.p-card:hover .p-media svg {
  transform: scale(1.05) rotate(-1.5deg);
}
.p-media .badge {
  position: absolute;
  top: 12px;
  right: 12px;
}
.p-quick {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t-fast), transform var(--t-fast) var(--ease-out);
}
.p-card:hover .p-quick,
.p-card:focus-visible .p-quick {
  opacity: 1;
  transform: none;
}
.p-info {
  padding-top: var(--s-3);
}
.p-info h3 {
  font-size: 1.1875rem;
  margin: 0 0 4px;
}
.p-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  font-size: var(--fs-sm);
}
.price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
}
.price s {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875em;
  color: var(--muted);
  margin-left: 6px;
}
.rating-mini {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
  font-size: var(--fs-xs);
}
.rating-mini svg {
  width: 15px;
  height: 15px;
  fill: #f5a400;
  stroke: var(--ink);
  stroke-width: 1.5;
}

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  counter-reset: step;
}
.step {
  position: relative;
  padding: var(--s-6) var(--s-5) var(--s-5);
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  border-radius: var(--r-lg);
}
.step-num {
  position: absolute;
  top: -22px;
  left: var(--s-5);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: var(--bw) solid var(--ink);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: var(--pop-sm);
}
.step h3 {
  font-size: var(--fs-lg);
  margin-top: var(--s-2);
}
.step p {
  color: var(--muted);
  margin: 0;
}
.step-art {
  height: 140px;
  margin: var(--s-4) 0 var(--s-5);
  border-radius: var(--r);
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.step-art svg {
  height: 100%;
}

/* ---------- occasions ---------- */
.occasion-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s-4);
}
.occasion {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-5) var(--s-3);
  border: var(--bw) solid var(--ink);
  border-radius: var(--r);
  background: var(--paper);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  transition: transform var(--t) var(--ease-back), box-shadow var(--t), background-color var(--t-fast);
}
.occasion:hover {
  transform: translateY(-4px) rotate(-1.5deg);
  box-shadow: var(--pop);
}
.occasion .o-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: var(--bw) solid var(--ink);
  border-radius: 50%;
}
.occasion .o-icon svg {
  width: 30px;
  height: 30px;
}

/* ---------- guarantee / stats ---------- */
.promise {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-7);
  align-items: center;
  padding: clamp(32px, 5vw, 64px);
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--r-lg);
  border: var(--bw) solid var(--ink);
  box-shadow: 9px 9px 0 var(--red);
}
.promise h2 {
  font-size: var(--fs-2xl);
}
.promise .eyebrow {
  color: var(--sun);
}
.promise p {
  color: color-mix(in srgb, var(--cream) 82%, transparent);
}
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
.stat {
  padding: var(--s-5);
  border: var(--bw) solid var(--cream);
  border-radius: var(--r);
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-2xl);
  line-height: 1;
  color: var(--sun);
  margin-bottom: var(--s-2);
}
.stat span {
  font-weight: 700;
  font-size: var(--fs-sm);
}
.perks {
  list-style: none;
  padding: 0;
  margin: var(--s-5) 0 0;
  display: grid;
  gap: var(--s-3);
}
.perks li {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  font-weight: 700;
}
.perks .icon {
  color: var(--mint);
  margin-top: 2px;
}

/* ---------- reviews ---------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.review {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-5);
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  border-radius: var(--r);
}
.review:nth-child(3n + 1) {
  transform: rotate(-1deg);
}
.review:nth-child(3n + 2) {
  transform: rotate(0.8deg);
  background: var(--sun-soft);
}
.review:nth-child(3n) {
  transform: rotate(-0.4deg);
  background: var(--mint-soft);
}
.review h3 {
  font-size: 1.125rem;
  margin: 0;
}
.review p {
  margin: 0;
  color: var(--ink-2);
}
.review footer {
  margin-top: auto;
  font-size: var(--fs-sm);
  font-weight: 800;
}
.review footer span {
  font-weight: 600;
  color: var(--muted);
}
.verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-xs);
  font-weight: 800;
  color: var(--success);
}
.verified svg {
  width: 15px;
  height: 15px;
}

/* ---------- newsletter ---------- */
.signup {
  position: relative;
  padding: clamp(32px, 6vw, 72px);
  background: var(--pink);
  border: var(--bw) solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--pop-lg);
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}
.signup h2 {
  font-size: var(--fs-2xl);
  max-width: 18ch;
  margin-inline: auto;
}
.signup p {
  max-width: 46ch;
  margin-inline: auto;
  font-weight: 700;
}
.signup-form {
  display: flex;
  gap: var(--s-3);
  max-width: 520px;
  margin: var(--s-5) auto 0;
}
.signup-form input {
  flex: 1;
  min-width: 0;
}
.signup .deco {
  position: absolute;
  z-index: -1;
  opacity: 0.9;
}
.form-msg {
  min-height: 1.6em;
  margin-top: var(--s-3);
  font-weight: 800;
}

/* ---------- forms ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field + .field {
  margin-top: var(--s-4);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
.field-row + .field,
.field + .field-row,
.field-row + .field-row {
  margin-top: var(--s-4);
}
.field-row .field + .field {
  margin-top: 0;
}
label,
.label {
  font-weight: 800;
  font-size: var(--fs-sm);
}
.label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2);
}
.hint {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--muted);
}
.input,
.select,
.textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  border-radius: var(--r-sm);
  font-size: 1rem;
  font-weight: 600;
  transition: box-shadow var(--t-fast), border-color var(--t-fast);
}
.input::placeholder,
.textarea::placeholder {
  color: #8a7f9c;
  font-weight: 600;
}
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--sky) 35%, transparent), var(--pop-sm);
}
.textarea {
  min-height: 130px;
  resize: vertical;
}
.select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231F1235' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}
.is-invalid .input,
.is-invalid .select,
.is-invalid .textarea,
.input[aria-invalid='true'],
.select[aria-invalid='true'] {
  border-color: var(--danger);
  background: #fff5f6;
}
.error-text {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--danger);
  font-size: var(--fs-xs);
  font-weight: 800;
}
.error-text:empty {
  display: none;
}
.check {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  cursor: pointer;
  font-weight: 700;
  font-size: var(--fs-sm);
  line-height: 1.45;
}
.check input {
  appearance: none;
  flex: none;
  width: 26px;
  height: 26px;
  margin: 0;
  border: var(--bw) solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color var(--t-fast);
}
.check input::after {
  content: '';
  width: 12px;
  height: 7px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px) scale(0);
  transition: transform var(--t-fast) var(--ease-back);
}
.check input:checked {
  background: var(--red);
}
.check input:checked::after {
  transform: rotate(-45deg) translate(1px, -1px) scale(1);
}
.alert {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  padding: var(--s-4);
  border: var(--bw) solid var(--ink);
  border-radius: var(--r-sm);
  font-weight: 700;
  background: var(--sun-soft);
}
.alert-error {
  background: #ffe1e5;
}
.alert-success {
  background: var(--mint-soft);
}
.alert .icon {
  margin-top: 2px;
}

/* ---------- page header / breadcrumb ---------- */
.page-hero {
  padding-block: clamp(40px, 6vw, 72px) clamp(32px, 4vw, 48px);
  border-bottom: var(--bw) solid var(--ink);
  background: var(--ph-bg, var(--sun));
  position: relative;
  overflow: hidden;
}
.page-hero h1 {
  font-size: var(--fs-2xl);
  margin-bottom: var(--s-3);
}
.page-hero p {
  font-weight: 700;
  max-width: 56ch;
  margin: 0;
}
.page-hero .ph-art {
  position: absolute;
  right: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  bottom: -30%;
  width: 260px;
  transform: rotate(8deg);
  pointer-events: none;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0 0 var(--s-4);
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
  font-weight: 700;
}
.crumbs li + li::before {
  content: '/';
  margin-right: 6px;
  opacity: 0.5;
}
.crumbs a {
  text-decoration: none;
}
.crumbs a:hover {
  text-decoration: underline;
}

/* ---------- shop toolbar ---------- */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
  flex-wrap: wrap;
}
.toolbar .chip-row {
  flex: 1;
}
.toolbar-selects {
  display: flex;
  gap: var(--s-3);
  align-items: center;
}
.toolbar-selects .select {
  min-height: 44px;
  padding-block: 8px;
  border-radius: var(--r-pill);
  font-weight: 800;
  width: auto;
}
.result-count {
  font-weight: 800;
  color: var(--muted);
  margin-bottom: var(--s-4);
}
.empty {
  text-align: center;
  padding: var(--s-8) var(--s-5);
  border: var(--bw) dashed var(--ink);
  border-radius: var(--r-lg);
  background: var(--paper);
}
.empty svg.empty-art {
  width: 180px;
  margin: 0 auto var(--s-4);
}

/* ---------- product page ---------- */
.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  padding-block: var(--s-5) var(--s-8);
}
.pdp-media {
  position: sticky;
  top: 96px;
}
.preview-stage {
  position: relative;
  aspect-ratio: 1;
  border: var(--bw) solid var(--ink);
  border-radius: var(--r-lg);
  background: var(--stage-bg, var(--cream-2));
  box-shadow: var(--pop-lg);
  overflow: hidden;
  transition: background-color 400ms var(--ease-out);
  isolation: isolate;
}
.preview-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 12%, transparent) 1.6px, transparent 1.6px);
  background-size: 24px 24px;
  z-index: -1;
}
.preview-stage svg {
  width: 100%;
  height: 100%;
}
.preview-stage .live-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  font-weight: 800;
  font-size: var(--fs-xs);
}
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(215, 38, 61, 0.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  70% {
    box-shadow: 0 0 0 9px rgba(215, 38, 61, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(215, 38, 61, 0);
  }
}
.preview-stage.is-updating svg {
  animation: wiggle 360ms var(--ease-back);
}
@keyframes wiggle {
  40% {
    transform: scale(1.015) rotate(-0.6deg);
  }
}
.media-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-5);
}
.media-notes div {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-3);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r-sm);
  font-weight: 800;
  font-size: var(--fs-xs);
  line-height: 1.3;
}
.media-notes .icon {
  width: 22px;
  height: 22px;
  color: var(--red);
}
.pdp-info h1 {
  font-size: var(--fs-2xl);
  margin-bottom: var(--s-3);
}
.pdp-rating {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 800;
  font-size: var(--fs-sm);
  margin-bottom: var(--s-4);
  text-decoration: none;
}
.pdp-price {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
}
.pdp-price .price {
  font-size: 2rem;
}
.pdp-tagline {
  color: var(--ink-2);
  font-size: var(--fs-lg);
  margin-bottom: var(--s-5);
}
.builder {
  border: var(--bw) solid var(--ink);
  border-radius: var(--r-lg);
  background: var(--paper);
  overflow: hidden;
}
.builder-step {
  padding: var(--s-5);
  border: 0;
  margin: 0;
  min-width: 0;
}
.builder-step + .builder-step {
  border-top: 2px dashed color-mix(in srgb, var(--ink) 25%, transparent);
}
.builder-step legend {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: var(--s-4);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-lg);
}
.builder-step legend + * {
  clear: both;
}
.builder-step legend .n {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--sun);
  font-size: 1rem;
  flex: none;
}
.opt-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: var(--s-4) 0 var(--s-2);
  font-weight: 800;
  font-size: var(--fs-sm);
}
.opt-label output {
  font-weight: 700;
  color: var(--muted);
}
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}
.swatch {
  position: relative;
  cursor: pointer;
}
.swatch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.swatch .sw {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: var(--bw) solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
  transition: transform var(--t-fast) var(--ease-back), box-shadow var(--t-fast);
}
.swatch .sw svg {
  width: 100%;
  height: 100%;
}
.swatch:hover .sw {
  transform: translateY(-2px);
}
.swatch input:checked + .sw {
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--ink);
  transform: translateY(-2px);
}
.swatch input:focus-visible + .sw {
  outline: 3px solid var(--focus);
  outline-offset: 6px;
}
.swatch-round .sw {
  border-radius: 50%;
}
.font-opts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: var(--s-2);
}
.font-opt {
  position: relative;
  cursor: pointer;
}
.font-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.font-opt span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 6px;
  border: var(--bw) solid var(--ink);
  border-radius: var(--r-sm);
  background: var(--paper);
  text-align: center;
  transition: background-color var(--t-fast), transform var(--t-fast);
}
.font-opt b {
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.1;
}
.font-opt small {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--muted);
}
.font-opt input:checked + span {
  background: var(--sun);
}
.font-opt input:checked + span small {
  color: var(--ink);
}
.font-opt input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.variant-opts {
  display: grid;
  gap: var(--s-2);
}
.variant-opt {
  position: relative;
  cursor: pointer;
}
.variant-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.variant-opt span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-height: 54px;
  padding: 12px 16px;
  border: var(--bw) solid var(--ink);
  border-radius: var(--r-sm);
  font-weight: 800;
  transition: background-color var(--t-fast), box-shadow var(--t-fast);
}
.variant-opt span::before {
  content: '';
  flex: none;
  width: 20px;
  height: 20px;
  border: var(--bw) solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  transition: box-shadow var(--t-fast);
}
.variant-opt span em {
  flex: 1;
  font-style: normal;
}
.variant-opt input:checked + span {
  background: var(--sun-soft);
  box-shadow: var(--pop-sm);
}
.variant-opt input:checked + span::before {
  box-shadow: inset 0 0 0 4px var(--paper);
  background: var(--red);
}
.variant-opt input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.dropzone {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4);
  border: var(--bw) dashed var(--ink);
  border-radius: var(--r);
  background: var(--cream);
  cursor: pointer;
  transition: background-color var(--t-fast);
}
.dropzone:hover,
.dropzone.is-drag {
  background: var(--sun-soft);
}
.dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.dropzone:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.dz-thumb {
  flex: none;
  width: 64px;
  height: 64px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--paper) center / cover no-repeat;
  display: grid;
  place-items: center;
}
.dz-text strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
}
.dz-text span {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--muted);
}
.dz-remove {
  position: relative;
  z-index: 2;
  margin-left: auto;
}
.qty {
  display: inline-flex;
  align-items: center;
  border: var(--bw) solid var(--ink);
  border-radius: var(--r-pill);
  background: var(--paper);
  overflow: hidden;
}
.qty button {
  width: 46px;
  height: 46px;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color var(--t-fast);
}
.qty button:hover {
  background: var(--sun-soft);
}
.qty input {
  width: 44px;
  height: 46px;
  border: 0;
  text-align: center;
  font-weight: 900;
  background: none;
  -moz-appearance: textfield;
}
.qty input::-webkit-inner-spin-button,
.qty input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}
.buy-row {
  display: flex;
  gap: var(--s-3);
  align-items: center;
}
.buy-row .btn {
  flex: 1;
}
.delivery-eta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-4);
  padding: var(--s-3) var(--s-4);
  background: var(--mint-soft);
  border: 2px solid var(--ink);
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: var(--fs-sm);
  line-height: 1.4;
}
.delivery-eta .icon {
  color: var(--success);
}
.accordion {
  margin-top: var(--s-6);
  border-top: var(--bw) solid var(--ink);
}
.accordion details {
  border-bottom: var(--bw) solid var(--ink);
}
.accordion summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  min-height: 64px;
  padding: var(--s-3) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-lg);
}
.accordion summary::-webkit-details-marker {
  display: none;
}
.accordion summary .icon {
  transition: transform var(--t) var(--ease-out);
}
.accordion details[open] summary .icon {
  transform: rotate(45deg);
}
.accordion .acc-body {
  padding-bottom: var(--s-5);
  color: var(--ink-2);
}
.accordion ul {
  margin: 0;
  padding-left: 1.2em;
}
.accordion li + li {
  margin-top: 6px;
}
.sticky-buy {
  display: none;
}
.rating-summary {
  display: flex;
  gap: var(--s-6);
  align-items: center;
  padding: var(--s-5);
  margin-bottom: var(--s-5);
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  border-radius: var(--r);
  flex-wrap: wrap;
}
.rating-summary .big {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
}

/* ---------- cart page ---------- */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: var(--s-6);
  align-items: start;
  padding-block: var(--s-6) var(--s-8);
}
.cart-line {
  display: grid;
  grid-template-columns: 132px 1fr auto;
  gap: var(--s-5);
  padding: var(--s-5);
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  border-radius: var(--r);
}
.cart-line + .cart-line {
  margin-top: var(--s-4);
}
.cart-line .thumb {
  width: 132px;
  height: 132px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--cream-2);
  overflow: hidden;
}
.cart-line h2 {
  font-size: 1.25rem;
  margin: 0 0 4px;
}
.cart-line h2 a {
  text-decoration: none;
}
.cart-line dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  margin: var(--s-2) 0 var(--s-3);
  font-size: var(--fs-sm);
}
.cart-line dt {
  font-weight: 800;
}
.cart-line dd {
  margin: 0;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.cart-line .line-actions {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
}
.cart-line .line-total {
  text-align: right;
}
.btn-text {
  background: none;
  border: 0;
  padding: 8px 4px;
  min-height: 44px;
  font-weight: 800;
  font-size: var(--fs-sm);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  color: var(--muted);
}
.btn-text:hover {
  color: var(--danger);
}
.summary-card {
  position: sticky;
  top: 96px;
  padding: var(--s-5);
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--pop);
}
.summary-card h2 {
  font-size: var(--fs-xl);
}
.sum-row {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 6px 0;
  font-weight: 700;
}
.sum-row.total {
  margin-top: var(--s-3);
  padding-top: var(--s-4);
  border-top: var(--bw) solid var(--ink);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
}
.pay-marks {
  display: flex;
  justify-content: center;
  gap: var(--s-2);
  margin-top: var(--s-4);
  flex-wrap: wrap;
}
.pay-marks span {
  padding: 4px 10px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: var(--cream);
}
.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: var(--s-3);
  font-size: var(--fs-xs);
  font-weight: 800;
  color: var(--muted);
}
.secure-note .icon {
  width: 16px;
  height: 16px;
}

/* ---------- checkout ---------- */
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: var(--s-7);
  align-items: start;
  padding-block: var(--s-6) var(--s-8);
}
.co-section {
  padding: var(--s-5);
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  border-radius: var(--r-lg);
}
.co-section + .co-section {
  margin-top: var(--s-5);
}
.co-section h2 {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--fs-lg);
}
.ship-opts {
  display: grid;
  gap: var(--s-2);
}
.co-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: var(--s-3);
  align-items: center;
  padding: var(--s-2) 0;
}
.co-item .thumb {
  position: relative;
  width: 64px;
  height: 64px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  overflow: visible;
  background: var(--cream-2);
}
.co-item .thumb svg {
  border-radius: 10px;
}
.co-item .q {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
}
.co-item h3 {
  font-size: 1rem;
  margin: 0;
}
.co-item p {
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--muted);
  font-weight: 700;
}
#paypal-buttons {
  min-height: 52px;
}
.pay-status {
  margin-top: var(--s-3);
}
.steps-bar {
  display: flex;
  gap: var(--s-2);
  align-items: center;
  font-weight: 800;
  font-size: var(--fs-sm);
  flex-wrap: wrap;
}
.steps-bar .on {
  color: var(--red);
}

/* ---------- order confirmation ---------- */
.confirm-hero {
  text-align: center;
  padding-block: var(--s-8) var(--s-6);
}
.confirm-hero .tick {
  width: 96px;
  height: 96px;
  margin: 0 auto var(--s-5);
  display: grid;
  place-items: center;
  border: var(--bw) solid var(--ink);
  border-radius: 50%;
  background: var(--mint);
  box-shadow: var(--pop);
  animation: pop-in 600ms var(--ease-back) both;
}
.confirm-hero .tick .icon {
  width: 48px;
  height: 48px;
  stroke-width: 3;
}
@keyframes pop-in {
  from {
    transform: scale(0.3) rotate(-20deg);
    opacity: 0;
  }
}
.order-num {
  display: inline-block;
  padding: 6px 16px;
  border: var(--bw) dashed var(--ink);
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  background: var(--paper);
  letter-spacing: 0.04em;
}
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: var(--s-6) 0;
  list-style: none;
  padding: 0;
  counter-reset: tl;
}
.timeline li {
  position: relative;
  text-align: center;
  font-weight: 800;
  font-size: var(--fs-sm);
  padding-top: 52px;
  color: var(--muted);
}
.timeline li::before {
  content: '';
  position: absolute;
  top: 18px;
  left: -50%;
  right: 50%;
  height: 4px;
  background: color-mix(in srgb, var(--ink) 20%, transparent);
}
.timeline li:first-child::before {
  display: none;
}
.timeline li::after {
  counter-increment: tl;
  content: counter(tl);
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: var(--bw) solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
}
.timeline li.done {
  color: var(--ink);
}
.timeline li.done::before {
  background: var(--ink);
}
.timeline li.done::after {
  content: '✓';
  background: var(--mint);
}
.timeline li.current::after {
  background: var(--sun);
  box-shadow: var(--pop-sm);
}
.confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 300;
}

/* ---------- content pages ---------- */
.prose {
  max-width: 72ch;
}
.prose h2 {
  font-size: var(--fs-xl);
  margin-top: var(--s-7);
}
.prose h3 {
  font-size: var(--fs-lg);
  margin-top: var(--s-5);
}
.prose ul {
  padding-left: 1.3em;
}
.prose li + li {
  margin-top: 6px;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s-4) 0 var(--s-5);
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  border-radius: var(--r-sm);
  overflow: hidden;
  font-size: var(--fs-sm);
}
.prose th,
.prose td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 2px solid color-mix(in srgb, var(--ink) 15%, transparent);
}
.prose th {
  background: var(--sun-soft);
  font-weight: 900;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: start;
}
.card-box {
  padding: var(--s-6);
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--pop);
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.value {
  padding: var(--s-5);
  border: var(--bw) solid var(--ink);
  border-radius: var(--r);
  background: var(--paper);
}
.value .o-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: var(--bw) solid var(--ink);
  border-radius: 16px;
  margin-bottom: var(--s-4);
}
.value h3 {
  font-size: var(--fs-lg);
}
.value p {
  color: var(--muted);
  margin: 0;
}

/* ---------- footer ---------- */
.site-footer {
  margin-top: var(--s-8);
  background: var(--ink);
  color: var(--cream);
  border-top: var(--bw) solid var(--ink);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--s-6);
  padding-block: var(--s-8) var(--s-6);
}
.site-footer h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sun);
  margin-bottom: var(--s-4);
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 4px;
}
.site-footer a {
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  color: color-mix(in srgb, var(--cream) 85%, transparent);
  transition: color var(--t-fast);
}
.site-footer a:hover {
  color: var(--sun);
}
.site-footer .logo {
  color: var(--cream);
  margin-bottom: var(--s-4);
}
.footer-about {
  max-width: 34ch;
  color: color-mix(in srgb, var(--cream) 75%, transparent);
  font-weight: 600;
}
.socials {
  display: flex;
  gap: var(--s-2);
  margin-top: var(--s-4);
}
.socials a {
  width: 46px;
  height: 46px;
  justify-content: center;
  border: 2px solid color-mix(in srgb, var(--cream) 40%, transparent);
  border-radius: 50%;
}
.socials a:hover {
  border-color: var(--sun);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  padding-block: var(--s-5);
  border-top: 2px solid color-mix(in srgb, var(--cream) 18%, transparent);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: color-mix(in srgb, var(--cream) 65%, transparent);
  flex-wrap: wrap;
}
.footer-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 17vw, 15rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: var(--red);
  text-align: center;
  margin-top: var(--s-5);
  user-select: none;
  overflow: hidden;
  white-space: nowrap;
}

/* ---------- toast ---------- */
.toast-wrap {
  position: fixed;
  left: 50%;
  bottom: 24px;
  translate: -50% 0;
  z-index: 400;
  display: grid;
  gap: var(--s-2);
  width: min(92vw, 420px);
}
.toast {
  display: flex;
  gap: var(--s-3);
  align-items: center;
  padding: 14px 18px;
  background: var(--ink);
  color: var(--cream);
  border: var(--bw) solid var(--ink);
  border-radius: var(--r);
  box-shadow: 5px 5px 0 var(--sun);
  font-weight: 800;
  animation: toast-in 320ms var(--ease-back);
}
.toast.is-error {
  box-shadow: 5px 5px 0 var(--red);
}
@keyframes toast-in {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
}

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ---------- admin ---------- */
.admin-body {
  background: #f6f2ec;
}
.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.admin-side {
  background: var(--ink);
  color: var(--cream);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}
.admin-side .logo {
  color: var(--cream);
  font-size: 1.3rem;
}
.admin-side .logo svg {
  width: 34px;
  height: 34px;
}
.admin-nav {
  display: grid;
  gap: 4px;
}
.admin-nav a {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  text-decoration: none;
  font-weight: 800;
  color: color-mix(in srgb, var(--cream) 80%, transparent);
}
.admin-nav a:hover {
  background: color-mix(in srgb, var(--cream) 10%, transparent);
  color: var(--cream);
}
.admin-nav a[aria-current='page'] {
  background: var(--sun);
  color: var(--ink);
}
.admin-nav .pill {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.75rem;
}
.admin-main {
  padding: var(--s-6) clamp(16px, 3vw, 40px);
  min-width: 0;
}
.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
  flex-wrap: wrap;
}
.admin-head h1 {
  font-size: var(--fs-xl);
  margin: 0;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
  margin-bottom: var(--s-6);
}
.kpi {
  padding: var(--s-5);
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  border-radius: var(--r);
}
.kpi span {
  font-weight: 800;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.kpi strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.1;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.kpi small {
  font-weight: 700;
  color: var(--muted);
}
.panel {
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  border-radius: var(--r);
  overflow: hidden;
}
.panel + .panel {
  margin-top: var(--s-5);
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border-bottom: var(--bw) solid var(--ink);
}
.panel-head h2 {
  margin: 0;
  font-size: var(--fs-lg);
}
.panel-body {
  padding: var(--s-5);
}
.table-wrap {
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.table th,
.table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid color-mix(in srgb, var(--ink) 10%, transparent);
  white-space: nowrap;
}
.table th {
  font-weight: 900;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--cream);
}
.table tr:last-child td {
  border-bottom: 0;
}
.table td.num,
.table th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.table a {
  font-weight: 800;
}
.status {
  display: inline-flex;
  padding: 3px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
  background: var(--cream);
}
.status-paid {
  background: var(--sun);
}
.status-in_production {
  background: var(--sky-soft);
}
.status-shipped {
  background: var(--pink-soft);
}
.status-delivered {
  background: var(--mint);
}
.status-cancelled,
.status-refunded {
  background: #e5e1ea;
  color: var(--muted);
}
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: var(--s-5);
  align-items: start;
}
.proof {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--s-5);
  padding: var(--s-5);
}
.proof + .proof {
  border-top: 2px dashed color-mix(in srgb, var(--ink) 20%, transparent);
}
.proof .thumb {
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--cream-2);
  overflow: hidden;
}
.kv {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 16px;
  margin: 0;
  font-size: var(--fs-sm);
}
.kv dt {
  font-weight: 900;
}
.kv dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.filters {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-bottom: var(--s-4);
}
.filters .input,
.filters .select {
  width: auto;
  min-height: 44px;
}
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--s-5);
}
.login-card {
  width: min(420px, 100%);
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .occasion-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .kpis {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .nav,
  .header-actions .hide-sm {
    display: none;
  }
  .menu-toggle {
    display: inline-grid;
  }
  .header-inner {
    min-height: 64px;
    gap: var(--s-2);
  }
  .logo {
    margin-right: auto;
  }
  .hero-grid,
  .promise,
  .two-col,
  .pdp,
  .cart-layout,
  .checkout-layout,
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .hero-stage {
    max-width: 560px;
    width: 100%;
    margin-inline: auto;
  }
  .pdp-media {
    position: relative;
    top: 0;
  }
  .bento {
    grid-template-columns: 1fr 1fr;
  }
  .tile-1 {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 300px;
  }
  .tile-1 .tile-art {
    width: 56%;
  }
  .tile-7 {
    grid-column: span 2;
  }
  .tile-7 .tile-art {
    width: 50%;
  }
  .tile-2,
  .tile-3,
  .tile-4,
  .tile-5,
  .tile-6 {
    grid-column: span 1;
  }
  .steps,
  .review-grid,
  .value-grid {
    grid-template-columns: 1fr;
  }
  .steps {
    gap: var(--s-7);
  }
  .summary-card {
    position: relative;
    top: 0;
  }
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-side {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--s-3);
    padding: var(--s-3) var(--s-4);
  }
  .admin-nav {
    display: flex;
    flex-wrap: wrap;
  }
  .admin-side .spacer {
    display: none;
  }
  .sticky-buy {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: var(--s-3);
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: var(--cream);
    border-top: var(--bw) solid var(--ink);
    transform: translateY(110%);
    transition: transform var(--t) var(--ease-out);
  }
  .sticky-buy.is-visible {
    transform: none;
  }
  .sticky-buy .price {
    font-size: 1.375rem;
  }
  .sticky-buy .btn {
    flex: 1;
  }
}

@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-5) var(--s-3);
  }
  .p-info h3 {
    font-size: 1rem;
  }
  .p-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .p-quick {
    display: none;
  }
  .bento {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(190px, auto);
  }
  .tile-1,
  .tile-7 {
    grid-column: span 1;
  }
  .tile-2,
  .tile-3,
  .tile-4,
  .tile-5,
  .tile-6 {
    grid-column: span 1;
  }
  .occasion-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .signup-form,
  .search-form {
    flex-direction: column;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-top > :first-child {
    grid-column: span 2;
  }
  .cart-line {
    grid-template-columns: 88px 1fr;
    gap: var(--s-3);
    padding: var(--s-4);
  }
  .cart-line .thumb {
    width: 88px;
    height: 88px;
  }
  .cart-line .line-total {
    grid-column: 2;
    text-align: left;
  }
  .media-notes {
    grid-template-columns: 1fr;
  }
  .timeline li {
    font-size: var(--fs-xs);
  }
  .kpis {
    grid-template-columns: 1fr 1fr;
  }
  .proof {
    grid-template-columns: 1fr;
  }
  .proof .thumb {
    max-width: 200px;
  }
  .hero-try label {
    display: none;
  }
  .trust-row {
    gap: var(--s-3);
  }
  .page-hero .ph-art {
    width: 150px;
    bottom: -20%;
    right: -20px;
    opacity: 0.6;
  }
  .rating-summary {
    gap: var(--s-4);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .announce-track,
  .strip-track {
    animation: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .announce,
  .strip {
    display: none;
  }
}

/* above-the-fold entrance (CSS-only so it never blocks LCP) */
.rise {
  animation: rise 700ms var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 80ms);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

/* character photo swatches (spiral ornament) */
.swatch-photo .sw {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background-color: var(--cream-2);
  background-size: 300%;
  background-position: 50% 14%;
}

/* product gallery: live design + sample photos */
.stage-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-thumbs {
  display: flex;
  gap: var(--s-2);
  margin-top: var(--s-4);
  flex-wrap: wrap;
}
.gallery-thumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 72px;
  min-width: 72px;
  padding: 0 14px;
  border: var(--bw) solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
  font-weight: 800;
  font-size: var(--fs-sm);
  cursor: pointer;
  overflow: hidden;
}
.gallery-thumb:has(img) {
  padding: 0;
  width: 72px;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-thumb.is-active {
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--ink);
}

.swatch-photo .sw.sw-cover {
  background-size: cover;
  background-position: center;
}

/* numbered option swatches (e.g. number of names) */
.swatch .sw.sw-num {
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
}
.names-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
}
.name-slot {
  position: relative;
}
.name-slot .input {
  padding-left: 44px;
}
.name-num {
  position: absolute;
  left: 10px;
  top: 50%;
  translate: 0 -50%;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sun-soft);
  font-weight: 900;
  font-size: 0.8125rem;
}
@media (max-width: 480px) {
  .names-grid {
    grid-template-columns: 1fr;
  }
}

/* category tiles whose sample is a product photo: framed circle that never covers the text */
.tile .tile-art.is-photo {
  width: 56%;
  right: 5%;
  bottom: 7%;
  aspect-ratio: 1;
  border: var(--bw) solid var(--ink);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--pop-sm);
}
.tile .tile-art.is-photo svg {
  width: 100%;
  height: 100%;
  transform: scale(1.35);
}
.tile:hover .tile-art.is-photo {
  transform: rotate(-4deg) scale(1.03);
}
@media (max-width: 900px) {
  .tile .tile-art.is-photo {
    width: 44%;
  }
}
@media (max-width: 640px) {
  .tile .tile-art.is-photo {
    width: 46%;
    bottom: 8%;
  }
}

/* family tree ornament: tree style picker next to each name */
.name-slot:has(.tree-select) {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 10px;
  border: 2px dashed color-mix(in srgb, var(--ink) 25%, transparent);
  border-radius: var(--r-sm);
}
.name-slot:has(.tree-select) .name-num {
  top: 37px;
  translate: 0 -50%;
  left: 18px;
  z-index: 1;
}
.name-slot .tree-select {
  min-height: 44px;
  padding-left: 44px;
  font-size: 0.9375rem;
}
.name-slot:has(.tree-select) .input:not(select) {
  padding-left: 16px;
}

/* ---------- handbag storefront: hero photo + perks ---------- */
.hero-photo {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border: var(--bw) solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--pop-lg);
  overflow: hidden;
  background: var(--paper);
  color: inherit;
  text-decoration: none;
}
.hero-photo img,
.hero-photo svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-photo-tag {
  position: absolute;
  left: var(--s-4);
  right: var(--s-4);
  bottom: var(--s-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--cream);
  border: var(--bw) solid var(--ink);
  border-radius: var(--r);
  font-weight: 800;
}
.hero-photo-tag strong {
  font-size: var(--fs-sm);
  line-height: 1.3;
}
.hero-perks {
  list-style: none;
  padding: 0;
  margin: var(--s-6) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  font-weight: 800;
  font-size: var(--fs-sm);
}
.hero-perks li {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.stat strong .icon {
  width: 1em;
  height: 1em;
}

/* ---------- bank transfer box on the order page ---------- */
.transfer-box {
  display: grid;
  grid-template-columns: minmax(0, 280px) 1fr;
  gap: var(--s-6);
  align-items: center;
  max-width: 820px;
  margin: 0 auto var(--s-7);
  padding: var(--s-6);
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--pop);
}
.transfer-box img {
  width: 100%;
  height: auto;
  border-radius: var(--r);
  background: #fff;
}
.transfer-box h2 {
  font-size: var(--fs-xl);
  margin-bottom: var(--s-2);
}
.transfer-box dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-2) var(--s-4);
  margin: var(--s-4) 0 0;
  font-weight: 700;
}
.transfer-box dt {
  color: var(--muted, #6b6276);
}
.transfer-box dd {
  margin: 0;
  overflow-wrap: break-word;
}
@media (max-width: 640px) {
  .transfer-box {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .transfer-box dl {
    text-align: left;
  }
}

/* ---------- portrait 3:4 product photos (bags keep the supplier's framing) ---------- */
.p-media.is-portrait,
.preview-stage.is-portrait,
.hero-photo {
  aspect-ratio: 3 / 4;
}
.gallery-thumbs.is-portrait {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
}
.gallery-thumbs.is-portrait .gallery-thumb {
  width: auto;
  min-width: 0;
  height: auto;
  aspect-ratio: 3 / 4;
  padding: 0;
}
.gallery-thumb .thumb-live,
.gallery-thumb .thumb-live svg {
  display: block;
  width: 100%;
  height: 100%;
}
@media (max-width: 520px) {
  .gallery-thumbs.is-portrait {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
