/* ═══════════════════════════════════════════════════════════════════════
   VVIFY — design tokens, animations, components.
   Premium beauty/cosmetics theme · pink · black · white.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  /* Palette */
  --pink:        #e8528a;   /* primary accent / CTA */
  --pink-deep:   #c01f63;
  --pink-soft:   #f8d3e2;
  --pink-tint:   #fff4f8;   /* blush section background */
  --blush:       #fce7ef;
  --ink:         #1a1014;   /* near-black text */
  --ink-soft:    #4a3a42;
  --muted:       #8a7b82;
  --line:        rgba(26,16,20,.10);
  --line-strong: rgba(26,16,20,.16);
  --bg:          #ffffff;
  --black:       #15100f;   /* dark sections + product black */
  --on-pink:     #ffffff;
  --on-dark:     #fbeef3;
  --gold:        #c9a24b;

  --ok-fg: #1a8a4a;  --ok-bg: #e7f6ec;  --ok-border: #b6e3c5;
  --warn-fg: #b8860b; --warn-bg: #fcf3e0; --warn-border: #efd9a8;
  --err-fg: #c0392b;  --err-bg: #fdecea;  --err-border: #f5c6c2;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1240px;
  --radius: 22px;
  --ease-out: cubic-bezier(.16,.84,.44,1);
  --anim-dur: .7s;
  --shadow-soft: 0 18px 50px -28px rgba(192,31,99,.45);
  --shadow-card: 0 26px 60px -34px rgba(26,16,20,.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button { font-family: inherit; border: none; background: none; color: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--pink); color: #fff; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }

/* ─── Primitives ──────────────────────────────────────────────────────── */
.container-x { max-width: var(--container); margin-inline: auto; }
.serif { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
.eyebrow {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase; color: var(--pink-deep);
}
.muted { color: var(--muted); }
.section { padding: clamp(56px, 8vw, 110px) 24px; }
.lead { font-size: clamp(16px, 2vw, 19px); color: var(--ink-soft); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 30px; border-radius: 999px; font-weight: 600; font-size: 15px;
  letter-spacing: .01em; cursor: pointer; transition: transform .2s var(--ease-out), box-shadow .25s, background .25s, color .2s;
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn-primary { background: var(--pink); color: var(--on-pink); box-shadow: 0 14px 34px -12px rgba(232,82,138,.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -12px rgba(232,82,138,.7); background: var(--pink-deep); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); background: #000; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--pink); color: var(--pink-deep); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn:active { transform: translateY(0) scale(.99); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
/* Shine sweep on primary buttons */
.btn-primary::after, .btn-dark::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-130%);
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transition: transform .7s var(--ease-out); pointer-events: none;
}
.btn-primary:hover::after, .btn-dark:hover::after { transform: translateX(130%); }

/* Pills / badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  background: var(--pink); color: #fff;
}
.badge-soft { background: var(--blush); color: var(--pink-deep); }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  font-size: 13px; background: #fff; border: 1px solid var(--line); color: var(--ink-soft);
}

/* Cards */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .35s var(--ease-out), border-color .35s, box-shadow .35s;
}
.card-hov:hover { transform: translateY(-6px); border-color: var(--pink-soft); box-shadow: var(--shadow-card); }

/* Form fields */
.field {
  width: 100%; padding: 14px 16px; border-radius: 14px; background: #fff;
  border: 1px solid var(--line-strong); color: var(--ink); font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
.field::placeholder { color: #b6a8af; }
.field:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(232,82,138,.12); }
label.lab { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 7px; }

/* ─── Header ──────────────────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: rgba(255,255,255,.82); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 24px; }
.logo { font-family: var(--serif); font-weight: 700; font-size: 26px; letter-spacing: .18em; color: var(--ink); line-height: 1; display: inline-flex; align-items: center; gap: 10px; }
.logo small { font-family: var(--sans); font-size: 9px; letter-spacing: .3em; color: var(--pink-deep); display: block; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 500; }
.nav-links a { color: var(--ink-soft); position: relative; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--pink-deep); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--pink); transition: width .25s var(--ease-out); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 12px; background: #fff;
  border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; transition: border-color .2s, transform .2s;
}
.icon-btn:hover { border-color: var(--pink-soft); transform: translateY(-1px); }
.cart-count {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--pink); color: #fff; font-size: 11px; font-weight: 700;
  display: none; align-items: center; justify-content: center;
}
.cart-count.show { display: flex; }

/* ─── Hero ────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(120px,16vw,180px) 24px clamp(60px,8vw,96px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(900px 500px at 78% 8%, var(--blush), transparent 60%),
  radial-gradient(700px 600px at 8% 90%, #fff0f6, transparent 55%), #fff; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px,5vw,64px); align-items: center; }
.hero h1 { font-family: var(--serif); font-size: clamp(44px, 7.2vw, 92px); line-height: .98; letter-spacing: -.02em; }
.hero .accent { color: var(--pink-deep); font-style: italic; }
.hero-art {
  border-radius: 28px; overflow: hidden; aspect-ratio: 4/4.4; background: linear-gradient(150deg,#ffe3ee,#fff);
  border: 1px solid var(--pink-soft); box-shadow: 0 40px 90px -40px rgba(192,31,99,.45); position: relative;
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.float { animation: floaty 6s ease-in-out infinite; }

/* Trust badges strip */
.trust-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.trust { display: flex; align-items: center; gap: 13px; padding: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.trust .tico { width: 42px; height: 42px; border-radius: 12px; background: var(--blush); color: var(--pink-deep); display: flex; align-items: center; justify-content: center; flex: none; }
.trust b { display: block; font-size: 14px; }
.trust span { font-size: 12.5px; color: var(--muted); }

/* Marquee */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink); }
.marquee-track { display: flex; gap: 48px; white-space: nowrap; padding: 16px 0; animation: marquee 28s linear infinite; width: max-content; }
.marquee-track span { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--on-dark); display: inline-flex; align-items: center; gap: 48px; }
.marquee-track span::after { content: "✦"; color: var(--pink); font-style: normal; }

/* ─── Product cards ───────────────────────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 24px; }
.pcard { display: flex; flex-direction: column; overflow: hidden; }
.pcard-media { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--pink-tint); }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.pcard:hover .pcard-media img { transform: scale(1.06); }
.pcard-badge { position: absolute; top: 14px; left: 14px; z-index: 2; }
.pcard-quick {
  position: absolute; left: 14px; right: 14px; bottom: 14px; transform: translateY(14px); opacity: 0;
  transition: transform .3s var(--ease-out), opacity .3s;
}
.pcard:hover .pcard-quick { transform: none; opacity: 1; }
.pcard-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard-body h3 { font-family: var(--serif); font-size: 22px; }
.pcard-price { display: flex; align-items: baseline; gap: 10px; margin-top: auto; padding-top: 12px; }
.pcard-price .now { font-size: 20px; font-weight: 600; color: var(--ink); }
.pcard-price .was { font-size: 14px; color: var(--muted); text-decoration: line-through; }
.swatch { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-strong); cursor: pointer; transition: transform .15s; }
.swatch:hover { transform: scale(1.12); }
.swatch.sel { box-shadow: 0 0 0 2px var(--pink); }

/* Stars */
.stars { color: var(--gold); letter-spacing: 2px; font-size: 14px; }

/* Section headers */
.sec-head { max-width: 640px; }
.sec-head h2 { font-family: var(--serif); font-size: clamp(30px,4.6vw,52px); line-height: 1.02; margin-top: 12px; }
.sec-head p { margin-top: 14px; }

/* Feature rows */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,4vw,56px); align-items: center; }
.feature-art { border-radius: 24px; overflow: hidden; aspect-ratio: 5/4; border: 1px solid var(--line); background: var(--pink-tint); }
.feature-art img { width: 100%; height: 100%; object-fit: cover; }

/* Dark band */
.band-dark { background: var(--black); color: var(--on-dark); }
.band-dark .eyebrow { color: var(--pink); }
.band-dark .serif { color: #fff; }
.band-dark .muted { color: #c9b3bd; }

/* Stat blocks */
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.stat .big { font-family: var(--serif); font-size: clamp(30px,4vw,48px); color: var(--pink-deep); }
.band-dark .stat .big { color: var(--pink); }
.stat .lbl { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 22px 4px; cursor: pointer; font-size: 18px; font-weight: 500; }
.faq-q .sign { color: var(--pink); font-size: 24px; flex: none; transition: transform .2s; }
.faq-a { display: none; padding: 0 4px 22px; color: var(--ink-soft); max-width: 760px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; counter-reset: s; }
.step .n { font-family: var(--serif); font-size: 38px; color: var(--pink-soft); }
.step h4 { font-size: 17px; margin: 6px 0; }
.step p { font-size: 14px; color: var(--muted); }

/* ─── Cart drawer ─────────────────────────────────────────────────────── */
.overlay { display: none; position: fixed; inset: 0; z-index: 85; background: rgba(26,16,20,.5); backdrop-filter: blur(4px); }
.overlay.open { display: block; }
.drawer {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(94vw, 420px); background: #fff;
  display: flex; flex-direction: column; animation: drawerIn .32s var(--ease-out); box-shadow: -30px 0 80px -40px rgba(0,0,0,.5);
}
.drawer-head, .drawer-foot { padding: 20px 22px; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; overflow: auto; padding: 18px 22px; }
.drawer-foot { border-top: 1px solid var(--line); }
.cart-line { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; background: var(--pink-tint); border: 1px solid var(--line); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.qty button { width: 32px; height: 32px; font-size: 18px; color: var(--ink); }
.qty span { min-width: 28px; text-align: center; font-weight: 600; font-size: 14px; }
.link-x { color: var(--muted); font-size: 12px; }
.link-x:hover { color: var(--err-fg); }

/* ─── Footer ──────────────────────────────────────────────────────────── */
.site-footer { background: var(--black); color: var(--on-dark); padding: 64px 24px 36px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer-grid h5 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--pink); margin-bottom: 14px; }
.footer-grid a { display: block; color: #d8c4cd; font-size: 14px; padding: 5px 0; transition: color .2s, transform .2s; }
.footer-grid a:hover { color: #fff; transform: translateX(3px); }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; color: #b59aa6; }
.pay-pill { padding: 6px 11px; border-radius: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); font-size: 11px; color: #e6d2db; }

/* Toast */
.toast {
  display: none; position: fixed; top: 86px; left: 50%; transform: translateX(-50%); z-index: 95;
  background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 999px; font-size: 14px; font-weight: 500;
  box-shadow: 0 18px 50px -16px rgba(0,0,0,.5); align-items: center; gap: 10px;
}
.toast.show { display: flex; animation: popIn .25s var(--ease-out); }
.toast .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); }

/* Notices */
.notice { padding: 14px 16px; border-radius: 14px; font-size: 14px; }
.notice-ok { background: var(--ok-bg); border: 1px solid var(--ok-border); color: var(--ok-fg); }
.notice-warn { background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--warn-fg); }
.notice-err { background: var(--err-bg); border: 1px solid var(--err-border); color: var(--err-fg); }

/* Legal / prose */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-family: var(--serif); font-size: clamp(22px,3vw,30px); margin: 34px 0 12px; }
.prose p, .prose li { color: var(--ink-soft); font-size: 16px; }
.prose ul { padding-left: 20px; display: grid; gap: 8px; }

/* Mobile menu */
.mobile-menu { display: none; position: fixed; inset: 0; z-index: 80; background: rgba(26,16,20,.5); backdrop-filter: blur(4px); }
.mobile-menu.open { display: block; }
.mobile-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw,340px); background: #fff; padding: 22px; display: flex; flex-direction: column; gap: 4px; animation: drawerIn .3s var(--ease-out); overflow-y: auto; }
.mobile-panel a { padding: 15px 6px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 20px; color: var(--ink); }

/* ─── Reveal-on-scroll engine ─────────────────────────────────────────── */
html.js [data-anim], html.js [data-stagger] > * {
  opacity: 0; transform: translateY(28px);
  transition: opacity var(--anim-dur) var(--ease-out), transform var(--anim-dur) var(--ease-out);
  transition-delay: var(--d, 0s); will-change: opacity, transform;
}
html.js [data-anim="left"]  { transform: translateX(-40px); }
html.js [data-anim="right"] { transform: translateX(40px); }
html.js [data-anim="scale"] { transform: scale(.94); }
html.js [data-anim].is-in, html.js [data-stagger].is-in > * { opacity: 1; transform: none; }

/* Keyframes */
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes drawerIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes popIn { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
.pop { animation: pop .35s var(--ease-out) both; }

/* ─── Utilities ───────────────────────────────────────────────────────── */
.hide-mobile { display: revert; }
.show-mobile { display: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.mt-auto { margin-top: auto; }

/* ─── Location pills ("Where we deliver") ─────────────────────────────── */
.loc-region { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--pink-deep); font-weight: 600; margin: 26px 0 12px; }
.loc-pills { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 8px; }
.loc-pill { display: inline-block; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-soft); font-size: 13px; transition: border-color .2s, color .2s, transform .2s; }
.loc-pill:hover { border-color: var(--pink-soft); color: var(--pink-deep); transform: translateY(-2px); }

/* ─── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 860px) {
  .hide-mobile { display: none; }
  .show-mobile { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; margin: 0 auto; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.flip > .feature-art { order: -1; }
  .trust-strip { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: 1fr; }
  .btn { padding: 14px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html.js [data-anim], html.js [data-stagger] > * { opacity: 1; transform: none; }
}
