/* ============================================================
   Bloomprint 3D — design tokens (v3, real brand: lilac + logo)
   ============================================================ */
:root {
  --ink: #2b1f33;
  --ink-soft: #5e5266;
  --cream: #faf7fc;
  --card: #f4ecfa;
  --line: rgba(43, 31, 51, 0.12);
  --lilac: #b47bd6;
  --lilac-deep: #8f56b0;
  --lilac-light: #f3e9fa;
  --lilac-pale: #efe0f7;
  --accent2: #e8b44a;

  --display: "Fraunces", "Georgia", serif;
  --body: "Inter", -apple-system, sans-serif;

  --radius: 8px;
  --pill: 999px;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lilac-deep);
}

/* ---------- Marquee ticker ---------- */
.ticker {
  background: var(--lilac-deep);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
}
.ticker-track { display: inline-flex; animation: ticker-scroll 28s linear infinite; }
.ticker-track span {
  padding: 0 28px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px;
}
.ticker-track span::after { content: "•"; opacity: 0.5; margin-left: 28px; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 247, 252, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { height: 44px; width: auto; }
.nav-links { display: flex; gap: 30px; font-size: 14px; font-weight: 600; }
.nav-links a { text-decoration: none; opacity: 0.8; }
.nav-links a:hover { opacity: 1; }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.cart-btn {
  position: relative; background: var(--ink); color: #fff;
  border: none; border-radius: var(--pill); padding: 11px 20px;
  font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px;
}
.cart-count {
  background: var(--lilac); color: white; border-radius: 50%;
  width: 18px; height: 18px; font-size: 11px; display: flex;
  align-items: center; justify-content: center; font-weight: 700;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 560px; display: flex; align-items: center;
  background:
    radial-gradient(ellipse at 85% 20%, rgba(232,180,74,0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 15% 85%, rgba(180,123,214,0.35) 0%, transparent 55%),
    linear-gradient(150deg, #efe0f7 0%, #f8f1fb 55%, #faf7fc 100%);
  overflow: hidden;
}
.hero-glow {
  position: absolute; right: 6%; top: 50%; transform: translateY(-50%);
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(180,123,214,0.35), transparent 70%);
  filter: blur(10px); border-radius: 50%;
  animation: glow-pulse 5s ease-in-out infinite;
}
@keyframes glow-pulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
.hero-inner { position: relative; z-index: 2; padding: 64px 0; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.02; margin: 14px 0 18px; }
.hero .accent { color: var(--lilac-deep); font-style: italic; }
.hero p.lede { font-size: 18px; color: var(--ink-soft); max-width: 42ch; margin: 0 0 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  border-radius: var(--pill); padding: 15px 28px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary { background: var(--lilac); color: white; }
.btn-primary:hover { background: var(--lilac-deep); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--lilac); border-radius: var(--pill);
  padding: 7px 16px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--lilac-deep); margin-bottom: 22px; background: #fff;
}
.hero-badge b { color: var(--ink); }

/* ---------- Section shell ---------- */
section { padding: 64px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 30px; gap: 24px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 38px); }
.section-head p { color: var(--ink-soft); max-width: 52ch; margin: 8px 0 0; font-size: 15px; }

/* ---------- Category tiles ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile {
  position: relative; aspect-ratio: 3/4; border-radius: 12px; overflow: hidden;
  display: flex; align-items: flex-end; padding: 22px; color: #fff; text-decoration: none;
}
.tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43,31,51,0.05) 0%, rgba(43,31,51,0.7) 100%); }
.tile-label { position: relative; z-index: 1; font-family: var(--display); font-weight: 700; font-size: 22px; }

/* ---------- Chip row ---------- */
.chip-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 30px; }
.chip {
  flex: none; border: 1px solid var(--line); background: var(--card);
  border-radius: var(--pill); padding: 9px 18px; font-size: 13.5px; font-weight: 700;
}
.chip.active { background: var(--lilac-deep); color: #fff; border-color: var(--lilac-deep); }

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.card-art {
  aspect-ratio: 1/1; position: relative; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--art-a, #efe0f7), var(--art-b, #faf7fc));
}
.card-art .initial { font-family: var(--display); font-weight: 700; font-size: 36px; color: rgba(43,31,51,0.28); }
.card-badge {
  position: absolute; top: 12px; left: 12px; background: var(--lilac-deep); color: #fff;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 5px 10px; border-radius: var(--pill);
}
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card-cat { font-size: 11px; color: var(--lilac-deep); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.card-title { font-family: var(--display); font-size: 16px; font-weight: 700; line-height: 1.25; }
.card-blurb { font-size: 13px; color: var(--ink-soft); flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.card-price { font-weight: 800; font-size: 16px; }
.add-btn {
  background: var(--ink); color: #fff; border: none; border-radius: 50%;
  width: 34px; height: 34px; font-size: 18px; display: flex; align-items: center; justify-content: center;
}
.add-btn:hover { background: var(--lilac); }

/* ---------- Why direct ---------- */
.why-strip { background: var(--lilac-deep); color: #fff; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.why-card h3 { font-size: 17px; margin-bottom: 8px; color: #fff; }
.why-card p { color: rgba(255,255,255,0.8); font-size: 14px; margin: 0; }
.why-strip .section-head h2 { color: #fff; }
.why-strip .eyebrow { color: var(--accent2); }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; padding: 34px 0; }
.trust-grid b { display: block; font-size: 13.5px; letter-spacing: 0.02em; font-weight: 800; }
.trust-grid span { font-size: 12.5px; color: var(--ink-soft); }

/* ---------- Footer ---------- */
footer { padding: 52px 0 64px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
footer h4 { font-family: var(--display); font-size: 15px; margin: 0 0 12px; font-weight: 700; }
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
footer ul a { text-decoration: none; color: var(--ink-soft); }
.footer-bottom { margin-top: 36px; font-size: 12.5px; color: var(--ink-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Cart drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(43,31,51,0.45); opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 60; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 92vw);
  background: #fff; z-index: 61; transform: translateX(100%);
  transition: transform .25s ease; display: flex; flex-direction: column;
  box-shadow: -8px 0 24px rgba(0,0,0,0.15);
}
.drawer.open { transform: translateX(0); }
.drawer-head { padding: 20px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.drawer-head h3 { font-size: 18px; }
.drawer-close { background: none; border: none; font-size: 20px; }
.drawer-items { flex: 1; overflow-y: auto; padding: 12px 22px; }
.drawer-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.drawer-item .thumb { width: 52px; height: 52px; border-radius: 8px; flex: none; background: linear-gradient(160deg, var(--art-a, #efe0f7), var(--art-b, #faf7fc)); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; color: rgba(43,31,51,0.3); }
.drawer-item .info { flex: 1; min-width: 0; }
.drawer-item .info b { font-size: 13.5px; display: block; }
.drawer-item .qty-row { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.qty-row button { width: 22px; height: 22px; border: 1px solid var(--line); background: var(--cream); border-radius: 50%; font-size: 13px; line-height: 1; }
.qty-row span { font-size: 13px; min-width: 16px; text-align: center; font-weight: 700; }
.drawer-item .price { font-weight: 800; font-size: 13.5px; }
.drawer-empty { padding: 40px 0; text-align: center; color: var(--ink-soft); font-size: 14px; }
.drawer-foot { padding: 18px 22px 24px; border-top: 1px solid var(--line); }
.drawer-total { display: flex; justify-content: space-between; font-size: 15px; font-weight: 800; margin-bottom: 14px; }
.checkout-btn { width: 100%; background: var(--lilac); color: white; border: none; padding: 15px; border-radius: var(--pill); font-weight: 800; font-size: 15px; }
.checkout-btn:hover { background: var(--lilac-deep); }
.checkout-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.drawer-note { font-size: 11.5px; color: var(--ink-soft); margin-top: 10px; text-align: center; }

@media (max-width: 900px) {
  .hero { min-height: 480px; }
  .hero-glow { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .tile-grid { grid-template-columns: 1fr; }
  .why-grid, .footer-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
