/* ============================================================
   Whipped Body Care — storefront
   Colors & fonts arrive as CSS variables set by site.js (theme
   is editable from the admin panel).
   ============================================================ */

:root {
  --bg: #fbf6ef;
  --surface: #ffffff;
  --ink: #251c13;
  --muted: #9a8772;
  --accent: #c98a4b;
  --accent2: #efc9b8;
  --accent-ink: #fff9f2;
  --radius: 22px;
  --font-heading: 'Fraunces', serif;
  --font-body: 'Outfit', sans-serif;
  --font-script: 'Mr Dafoe', cursive;
  --font-ar: 'Tajawal', sans-serif;
  --shadow: 0 14px 44px -14px color-mix(in srgb, var(--ink) 22%, transparent);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 350;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* subtle grain over everything */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 1rem; color: var(--ink); }

h1, h2, h3 { font-family: var(--font-heading); font-weight: 480; line-height: 1.08; letter-spacing: -0.01em; }

.container { width: min(1180px, 92vw); margin-inline: auto; }

::selection { background: var(--accent); color: var(--accent-ink); }

/* ------------------------------ loader ------------------------------ */

.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity 0.5s ease, visibility 0.5s;
}
.loader.hide { opacity: 0; visibility: hidden; }
.loader-blob {
  width: 64px; height: 64px;
  background: var(--accent);
  border-radius: 50% 45% 55% 50% / 50% 55% 45% 50%;
  animation: blobPulse 1.1s ease-in-out infinite;
}
@keyframes blobPulse {
  0%, 100% { transform: scale(1) rotate(0deg); border-radius: 50% 45% 55% 50% / 50% 55% 45% 50%; }
  50% { transform: scale(1.15) rotate(12deg); border-radius: 45% 55% 50% 50% / 55% 45% 55% 45%; }
}

/* --------------------------- announcement --------------------------- */

.announce {
  background: var(--ink);
  color: var(--bg);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding: 9px 16px;
  position: relative;
  z-index: 12;
}

/* -------------------------------- nav ------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 11;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 12px;
  gap: 16px;
}
.logo { display: flex; align-items: baseline; gap: 10px; line-height: 1; }
.logo img { height: 52px; width: auto; }
.logo-script {
  font-family: var(--font-script);
  font-size: 2.1rem;
  transform: rotate(-4deg);
  display: inline-block;
}
.logo-sub {
  font-size: 0.6rem; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.nav-links { display: flex; gap: 28px; font-size: 0.92rem; letter-spacing: 0.04em; }
.nav-links a { position: relative; opacity: 0.85; padding-block: 4px; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform 0.3s ease;
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.cart-btn {
  display: flex; align-items: center; gap: 9px;
  background: var(--ink); color: var(--bg);
  padding: 10px 18px; border-radius: 999px;
  font-size: 0.9rem; letter-spacing: 0.03em;
  transition: transform 0.25s ease, background 0.25s ease;
}
.cart-btn:hover { transform: scale(1.05); background: var(--accent); color: var(--accent-ink); }
.cart-count {
  background: var(--accent); color: var(--accent-ink);
  min-width: 21px; height: 21px; border-radius: 999px;
  display: grid; place-items: center;
  font-size: 0.72rem; font-weight: 600;
  transition: background 0.25s ease;
}
.cart-btn:hover .cart-count { background: var(--accent-ink); color: var(--accent); }

/* ------------------------------- hero ------------------------------- */

.hero {
  position: relative;
  padding: clamp(64px, 11vh, 130px) 0 clamp(70px, 12vh, 150px);
  overflow: hidden;
}
.hero-blob {
  position: absolute; border-radius: 50% 45% 55% 50% / 50% 55% 45% 50%;
  filter: blur(2px); opacity: 0.55; z-index: 0;
  animation: floatBlob 11s ease-in-out infinite;
}
.hero-blob.b1 { width: 420px; height: 420px; background: var(--accent2); top: -120px; right: -90px; }
.hero-blob.b2 { width: 260px; height: 260px; background: color-mix(in srgb, var(--accent) 30%, var(--bg)); bottom: -60px; left: -70px; animation-delay: -4s; }
.hero-blob.b3 { width: 120px; height: 120px; background: color-mix(in srgb, var(--accent) 18%, var(--bg)); top: 18%; left: 12%; animation-delay: -7s; }
@keyframes floatBlob {
  0%, 100% { transform: translateY(0) rotate(0deg); border-radius: 50% 45% 55% 50% / 50% 55% 45% 50%; }
  50% { transform: translateY(-26px) rotate(9deg); border-radius: 45% 55% 48% 52% / 55% 46% 54% 45%; }
}

.hero-inner { position: relative; z-index: 1; max-width: 780px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
  margin-bottom: 26px;
}
.hero-eyebrow::before { content: ''; width: 34px; height: 1.5px; background: var(--accent); }
.hero h1 {
  font-size: clamp(2.7rem, 7.2vw, 5.4rem);
  margin-bottom: 26px;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 380;
}
.hero-sub { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 33em; margin-bottom: 40px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px;
  font-size: 0.98rem; font-weight: 500; letter-spacing: 0.02em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s, color 0.25s;
}
.btn-primary { background: var(--ink); color: var(--bg); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-3px); }
.btn-ghost { border: 1.5px solid color-mix(in srgb, var(--ink) 22%, transparent); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }

/* spinning badge, echo of the round logo */
.hero-badge {
  position: absolute; right: clamp(8px, 6vw, 90px); bottom: clamp(10px, 5vh, 60px);
  width: 130px; height: 130px; z-index: 1;
  display: grid; place-items: center;
}
.hero-badge svg { width: 100%; height: 100%; animation: spin 16s linear infinite; }
.hero-badge .badge-center {
  position: absolute; font-family: var(--font-script); font-size: 1.7rem;
  transform: rotate(-8deg); color: var(--accent);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------ marquee ----------------------------- */

.marquee {
  background: var(--accent); color: var(--accent-ink);
  transform: rotate(-1.6deg) scale(1.02);
  padding: 13px 0; overflow: hidden;
  margin-block: 10px 30px;
}
.marquee-track {
  display: flex; gap: 0; width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee span {
  white-space: nowrap; padding-right: 28px;
  font-family: var(--font-heading); font-size: 1.02rem; letter-spacing: 0.18em;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------ sections ---------------------------- */

section.block { padding: clamp(56px, 9vh, 110px) 0; }
.sec-head { max-width: 640px; margin-bottom: clamp(34px, 5vh, 56px); }
.sec-kicker {
  font-size: 0.78rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 14px; display: block;
}
.sec-head h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-bottom: 14px; }
.sec-head p { color: var(--muted); font-size: 1.05rem; }

/* ------------------------------ products ---------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}

.card {
  background: var(--surface);
  border-radius: calc(var(--radius) * 1.15);
  overflow: hidden;
  box-shadow: 0 2px 14px -8px color-mix(in srgb, var(--ink) 14%, transparent);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  display: flex; flex-direction: column;
  position: relative;
}
.card:hover { transform: translateY(-7px) rotate(-0.4deg); box-shadow: var(--shadow); }

.card-media { position: relative; aspect-ratio: 1 / 0.92; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.card:hover .card-media img { transform: scale(1.06) rotate(0.5deg); }

/* CSS placeholder "jar" for products without a photo yet */
.card-ph {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  position: relative; overflow: hidden;
}
.card-ph .swirl { font-family: var(--font-script); font-size: 4.6rem; color: color-mix(in srgb, var(--ink) 80%, transparent); transform: rotate(-8deg); z-index: 1; }
.card-ph::before {
  content: ''; position: absolute; width: 150%; height: 150%;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--surface) 55%, transparent), transparent 55%);
}
.card-ph::after {
  content: ''; position: absolute; bottom: -40%; left: -10%;
  width: 120%; height: 80%;
  background: color-mix(in srgb, var(--surface) 38%, transparent);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--ink); color: var(--bg);
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
}
.badge.sale { background: var(--accent); color: var(--accent-ink); }

.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card-cat { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.card-name { font-family: var(--font-heading); font-size: 1.32rem; }
.card-desc { font-size: 0.88rem; color: var(--muted); flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; gap: 8px; }
.price { font-weight: 600; font-size: 1.05rem; display: flex; gap: 8px; align-items: baseline; }
.price del { color: var(--muted); font-weight: 400; font-size: 0.88rem; }
.add-btn {
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  color: var(--ink);
  border: 1.5px solid color-mix(in srgb, var(--accent) 45%, transparent);
  padding: 9px 16px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 550;
  transition: all 0.25s ease;
  display: inline-flex; align-items: center; gap: 7px;
}
.add-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); transform: scale(1.05); }
.add-btn.added { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ------------------------------- promo ------------------------------ */

.promo-banner {
  position: relative; overflow: hidden;
  background: linear-gradient(118deg, var(--ink), color-mix(in srgb, var(--ink) 72%, var(--accent)));
  color: var(--bg);
  border-radius: calc(var(--radius) * 1.6);
  padding: clamp(44px, 7vw, 84px) clamp(26px, 6vw, 80px);
  display: flex; flex-wrap: wrap; gap: 30px; align-items: center; justify-content: space-between;
}
.promo-banner::before {
  content: ''; position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px;
  background: color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 50% 45% 55% 50% / 50% 55% 45% 50%;
  filter: blur(8px);
  animation: floatBlob 9s ease-in-out infinite;
}
.promo-banner > div { position: relative; max-width: 560px; }
.promo-banner h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 14px; }
.promo-banner p { opacity: 0.82; font-size: 1.02rem; }
.promo-banner .btn-primary { background: var(--accent); color: var(--accent-ink); position: relative; }
.promo-banner .btn-primary:hover { background: var(--bg); color: var(--ink); }
.promo-banner img {
  position: relative; width: min(280px, 60vw);
  border-radius: calc(var(--radius) * 1.2);
}

/* ------------------------------- story ------------------------------ */

.story-grid {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: clamp(30px, 6vw, 80px); align-items: center;
}
.story-media { position: relative; }
.story-media img, .story-ph {
  width: 100%; aspect-ratio: 0.92;
  object-fit: cover;
  border-radius: 58% 42% 55% 45% / 50% 55% 45% 50%;
  box-shadow: var(--shadow);
}
.story-ph {
  background:
    radial-gradient(circle at 65% 30%, color-mix(in srgb, var(--accent2) 80%, white), transparent 60%),
    linear-gradient(160deg, var(--accent2), var(--accent));
  display: grid; place-items: center;
}
.story-ph span { font-family: var(--font-script); font-size: clamp(3rem, 7vw, 5rem); color: var(--accent-ink); transform: rotate(-8deg); }
.story-media::after {
  content: ''; position: absolute; inset: -16px; z-index: -1;
  border: 1.5px dashed color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 58% 42% 55% 45% / 50% 55% 45% 50%;
  animation: spin 60s linear infinite;
}
.story-text h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 20px; }
.story-text p { color: var(--muted); font-size: 1.06rem; white-space: pre-line; }

/* ------------------------------ contact ----------------------------- */

.contact-wrap {
  text-align: center;
  background: var(--surface);
  border-radius: calc(var(--radius) * 1.6);
  padding: clamp(46px, 8vw, 90px) clamp(22px, 6vw, 80px);
  box-shadow: 0 2px 18px -10px color-mix(in srgb, var(--ink) 15%, transparent);
  position: relative; overflow: hidden;
}
.contact-wrap h2 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); margin-bottom: 14px; }
.contact-wrap p { color: var(--muted); max-width: 36em; margin: 0 auto 32px; }
.contact-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-wa { background: #1faa56; color: #fff; }
.btn-wa:hover { background: #178a45; color: #fff; transform: translateY(-3px); }

/* ------------------------------- footer ----------------------------- */

footer {
  padding: 48px 0 34px;
  text-align: center;
  color: var(--muted); font-size: 0.86rem;
}
.foot-logo { font-family: var(--font-script); font-size: 2rem; color: var(--ink); display: inline-block; transform: rotate(-4deg); margin-bottom: 8px; }
.foot-social { display: flex; gap: 18px; justify-content: center; margin: 16px 0 20px; }
.foot-social a {
  width: 40px; height: 40px; border-radius: 999px;
  border: 1.5px solid color-mix(in srgb, var(--ink) 16%, transparent);
  display: grid; place-items: center;
  transition: all 0.25s ease;
  color: var(--ink);
}
.foot-social a:hover { background: var(--ink); color: var(--bg); transform: translateY(-3px); }
.foot-social svg { width: 17px; height: 17px; }
.foot-admin { opacity: 0.45; }
.foot-admin:hover { opacity: 1; }

/* ---------------------------- cart drawer --------------------------- */

.overlay {
  position: fixed; inset: 0; z-index: 20;
  background: color-mix(in srgb, var(--ink) 45%, transparent);
  backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}
.overlay.open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 21;
  width: min(440px, 100vw);
  background: var(--bg);
  display: flex; flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -20px 0 60px -20px color-mix(in srgb, var(--ink) 35%, transparent);
}
.drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}
.drawer-head h3 { font-size: 1.45rem; }
.drawer-close { font-size: 1.5rem; line-height: 1; opacity: 0.6; transition: 0.2s; padding: 4px 8px; }
.drawer-close:hover { opacity: 1; transform: rotate(90deg); }

.drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.drawer-foot { padding: 18px 24px 24px; border-top: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); }

.cart-empty { text-align: center; color: var(--muted); padding: 60px 10px; }
.cart-empty .swirl { font-family: var(--font-script); font-size: 3rem; color: var(--accent); display: block; margin-bottom: 10px; transform: rotate(-6deg); }

.cart-line { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px dashed color-mix(in srgb, var(--ink) 10%, transparent); }
.cart-line-img {
  width: 64px; height: 64px; border-radius: 16px; overflow: hidden; flex-shrink: 0;
  display: grid; place-items: center;
  font-family: var(--font-script); font-size: 1.5rem; color: var(--accent-ink);
}
.cart-line-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-info { flex: 1; min-width: 0; }
.cart-line-name { font-family: var(--font-heading); font-size: 1.02rem; }
.cart-line-price { font-size: 0.85rem; color: var(--muted); }
.qty { display: inline-flex; align-items: center; gap: 4px; margin-top: 7px; border: 1.5px solid color-mix(in srgb, var(--ink) 14%, transparent); border-radius: 999px; }
.qty button { width: 28px; height: 28px; font-size: 1rem; opacity: 0.7; }
.qty button:hover { opacity: 1; color: var(--accent); }
.qty span { min-width: 22px; text-align: center; font-weight: 600; font-size: 0.9rem; }
.cart-line-remove { font-size: 0.78rem; color: var(--muted); text-decoration: underline; margin-top: 4px; }
.cart-line-remove:hover { color: #c0392b; }
.cart-line-total { font-weight: 600; white-space: nowrap; }

.free-ship { margin-bottom: 14px; }
.free-ship-msg { font-size: 0.82rem; color: var(--muted); margin-bottom: 7px; }
.free-ship-msg b { color: var(--accent); }
.free-ship-bar { height: 7px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 8%, transparent); overflow: hidden; }
.free-ship-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent2), var(--accent)); border-radius: 99px; transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1); }

.totals { font-size: 0.95rem; display: grid; gap: 6px; margin-bottom: 16px; }
.totals .row { display: flex; justify-content: space-between; color: var(--muted); }
.totals .row.grand { color: var(--ink); font-weight: 650; font-size: 1.12rem; padding-top: 8px; border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); }
.cod-note { font-size: 0.78rem; color: var(--muted); text-align: center; margin-top: 10px; }

.btn-block { width: 100%; justify-content: center; }

/* ----------------------------- checkout ----------------------------- */

.co-field { margin-bottom: 15px; }
.co-field label { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; font-weight: 550; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.co-field input, .co-field textarea {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid color-mix(in srgb, var(--ink) 12%, transparent);
  border-radius: 14px;
  padding: 13px 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.co-field input:focus, .co-field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3.5px color-mix(in srgb, var(--accent) 18%, transparent);
}
.co-field textarea { min-height: 96px; resize: vertical; }
.co-field textarea[dir='rtl'], .co-field input[dir='rtl'] { font-family: var(--font-ar); }

.lang-toggle { display: inline-flex; border: 1.5px solid color-mix(in srgb, var(--ink) 14%, transparent); border-radius: 999px; overflow: hidden; }
.lang-toggle button { padding: 4px 13px; font-size: 0.78rem; font-weight: 550; opacity: 0.55; transition: 0.2s; }
.lang-toggle button.on { background: var(--ink); color: var(--bg); opacity: 1; }
.lang-toggle button[data-lang='ar'] { font-family: var(--font-ar); }

.co-error { background: #fdecea; color: #b03a2e; border-radius: 12px; padding: 10px 14px; font-size: 0.88rem; margin-bottom: 14px; display: none; }
.co-error.show { display: block; }

.co-back { font-size: 0.85rem; color: var(--muted); text-decoration: underline; margin-bottom: 14px; display: inline-block; }
.co-back:hover { color: var(--ink); }

/* success */
.co-done { text-align: center; padding: 40px 6px; }
.co-done-check {
  width: 76px; height: 76px; margin: 0 auto 20px;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 50% 45% 55% 50% / 50% 55% 45% 50%;
  display: grid; place-items: center; font-size: 2rem;
  animation: pop 0.5s cubic-bezier(0.22, 1.4, 0.36, 1);
}
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.co-done h4 { font-family: var(--font-heading); font-size: 1.6rem; margin-bottom: 10px; }
.co-done p { color: var(--muted); font-size: 0.94rem; margin-bottom: 22px; }

/* ------------------------------- toast ------------------------------ */

.toast {
  position: fixed; bottom: 26px; left: 50%; z-index: 30;
  visibility: hidden;
  transform: translate(-50%, calc(100% + 44px));
  background: var(--ink); color: var(--bg);
  padding: 13px 24px; border-radius: 999px;
  font-size: 0.92rem;
  box-shadow: var(--shadow);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex; gap: 9px; align-items: center;
  max-width: 90vw;
}
.toast.show { visibility: visible; transform: translate(-50%, 0); }
.toast .dot { width: 8px; height: 8px; border-radius: 99px; background: var(--accent); flex-shrink: 0; }

/* ------------------------------ reveal ------------------------------ */

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ----------------------------- responsive --------------------------- */

@media (max-width: 860px) {
  .nav-links { display: none; }
  .story-grid { grid-template-columns: 1fr; }
  .story-media { max-width: 420px; margin-inline: auto; }
  .hero-badge { display: none; }
  .promo-banner { justify-content: center; text-align: center; }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 13px; }
  .card-body { padding: 14px 14px 16px; }
  .card-name { font-size: 1.08rem; }
  .card-desc { display: none; }
  .card-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .add-btn { justify-content: center; }
  .logo img { height: 44px; }
  .drawer { width: 100vw; }
}
