:root {
  --red: #c8102e;
  --red-dark: #9e0c24;
  --green: #14532d;
  --green-soft: #e7f2ea;
  --gold: #d4a017;
  --cream: #fdf8f1;
  --ink: #1f1a17;
  --muted: #6b625c;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(31, 26, 23, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Bricolage Grotesque", "Onest", system-ui, sans-serif;
  font-optical-sizing: auto;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
}
h1, h2, h3, .logo { font-family: "Gloock", "Playfair Display", Georgia, serif; font-weight: 400; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

#snow {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
}

.topbar {
  background: var(--green); color: #fff; text-align: center;
  font-size: 0.85rem; padding: 8px 16px;
}

.header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(16px, 5vw, 64px);
  background: rgba(253, 248, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.logo { font-size: 1.75rem; font-weight: 400; color: var(--red); letter-spacing: -0.02em; }
.logo span { color: var(--green); }
.nav { display: flex; gap: 28px; font-weight: 500; }
.nav a:hover { color: var(--red); }
.cart-btn {
  position: relative; font-size: 1.3rem; padding: 8px 12px;
  border-radius: 999px; background: #fff; box-shadow: var(--shadow);
}
.cart-count {
  position: absolute; top: -4px; right: -4px;
  background: var(--red); color: #fff; font-size: 0.72rem; font-weight: 600;
  min-width: 20px; height: 20px; border-radius: 999px;
  display: grid; place-items: center; padding: 0 5px;
}
.cart-count.bump { animation: bump 0.4s ease; }
@keyframes bump { 50% { transform: scale(1.4); } }

/* Hero */
.hero {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px;
  padding: 72px clamp(16px, 5vw, 64px) 56px;
}
.eyebrow { color: var(--red); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; margin: 12px 0 16px; color: var(--green); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 480px; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  font-weight: 600; transition: transform 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { border: 2px solid var(--green); color: var(--green); }
.btn.full { width: 100%; }

.countdown { display: flex; gap: 12px; margin-top: 32px; }
.countdown div {
  background: #fff; border-radius: 14px; padding: 10px 14px; text-align: center;
  box-shadow: var(--shadow); min-width: 68px;
}
.countdown strong { display: block; font-family: "Gloock", "Playfair Display", Georgia, serif; font-weight: 400; font-size: 1.6rem; color: var(--red); }
.countdown small { color: var(--muted); font-size: 0.75rem; }

.hero-art { display: grid; place-items: center; }
.gift { position: relative; width: 240px; height: 240px; animation: float 4s ease-in-out infinite; }
.gift .box {
  position: absolute; bottom: 0; left: 20px; width: 200px; height: 160px;
  background: var(--red); border-radius: 10px;
  box-shadow: inset 0 -20px 0 rgba(0,0,0,0.1), var(--shadow);
}
.gift .lid {
  position: absolute; bottom: 150px; left: 8px; width: 224px; height: 44px;
  background: var(--red-dark); border-radius: 10px; z-index: 2;
}
.gift .ribbon-v {
  position: absolute; bottom: 0; left: 104px; width: 32px; height: 194px;
  background: var(--gold); z-index: 3; border-radius: 4px;
}
.gift .bow { position: absolute; bottom: 176px; left: 82px; font-size: 4.5rem; z-index: 4; }
@keyframes float { 50% { transform: translateY(-14px) rotate(-2deg); } }

/* Sections */
.section { position: relative; z-index: 2; padding: 56px clamp(16px, 5vw, 64px); }
.section-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--green); }
.section-head p { color: var(--muted); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 8px 18px; border-radius: 999px; background: #fff;
  border: 1px solid rgba(0,0,0,0.08); font-weight: 500;
}
.chip.active { background: var(--green); color: #fff; border-color: var(--green); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform 0.2s;
}
.card:hover { transform: translateY(-4px); }
.card-img {
  height: 170px; display: grid; place-items: center; font-size: 4.5rem;
  position: relative;
}
.badge {
  position: absolute; top: 12px; left: 12px; background: var(--gold); color: #fff;
  font-size: 0.72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { font-size: 1.1rem; }
.card-body p { color: var(--muted); font-size: 0.88rem; flex: 1; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.price { font-weight: 600; font-size: 1.1rem; }
.add-btn {
  background: var(--red); color: #fff; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 0.88rem;
}
.add-btn:hover { background: var(--red-dark); }
a.add-btn { display: inline-block; }
.card-img { text-decoration: none; }
.card-body h3 a:hover { color: var(--red); }
.price s.was { color: var(--muted); font-weight: 400; font-size: 0.85rem; margin-left: 4px; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #eee; border-top-color: var(--red); animation: spin 0.8s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
a.cart-btn { display: inline-block; }

.gift-boxes { background: var(--green-soft); }
.box-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.gbox { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.gbox .emoji { font-size: 2.8rem; }
.gbox h3 { margin: 10px 0 6px; font-size: 1.3rem; }
.gbox ul { list-style: none; color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; }
.gbox li::before { content: "✓ "; color: var(--green); font-weight: 600; }

.about-card { background: #fff; border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); text-align: center; }
.about-card h2 { color: var(--green); margin-bottom: 28px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.features span { font-size: 2.4rem; }
.features h3 { margin: 8px 0 4px; }
.features p { color: var(--muted); font-size: 0.92rem; }

.newsletter {
  position: relative; z-index: 2;
  background: var(--red); color: #fff; text-align: center;
  padding: 56px 16px; margin-top: 24px;
}
.newsletter h2 { font-size: 2rem; }
.newsletter p { opacity: 0.9; margin: 6px 0 20px; }
.newsletter form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.newsletter input {
  padding: 14px 20px; border-radius: 999px; border: none; min-width: 260px; font: inherit;
}
.newsletter .btn-primary { background: var(--green); }

.footer { position: relative; z-index: 2; text-align: center; padding: 24px; color: var(--muted); font-size: 0.85rem; }

/* Drawer */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); opacity: 0; pointer-events: none; transition: opacity 0.25s; z-index: 40; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(400px, 100%);
  background: #fff; z-index: 50; transform: translateX(100%); transition: transform 0.3s;
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid #eee; }
.drawer-head button { font-size: 1.2rem; }
.drawer-items { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.empty { color: var(--muted); text-align: center; margin-top: 40px; }
.cart-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; }
.cart-item .ci-emoji { font-size: 2rem; background: var(--cream); border-radius: 12px; height: 52px; display: grid; place-items: center; }
.cart-item h4 { font-size: 0.95rem; }
.cart-item small { color: var(--muted); }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 26px; height: 26px; border-radius: 50%; background: var(--cream); font-weight: 600; }
.drawer-foot { padding: 20px; border-top: 1px solid #eee; }
.ship-line { color: var(--muted); font-size: 0.85rem; margin-bottom: 10px; }
.btn:disabled { opacity: 0.7; cursor: wait; transform: none; }
.card-img.has-img { padding: 0; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.ci-emoji img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.gbox .emoji img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.grid .empty { grid-column: 1 / -1; }
.total-row { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 1.1rem; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 100px);
  background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px;
  z-index: 60; transition: transform 0.3s; font-size: 0.92rem;
}
.toast.show { transform: translate(-50%, 0); }

@media (max-width: 760px) {
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 40px; text-align: center; }
  .lead { margin: 0 auto; }
  .hero-actions, .countdown { justify-content: center; }
  .hero-art { order: -1; }
  .gift { transform: scale(0.75); }
}

/* ---------- Announcement bar (announce.js) ---------- */
.announce { position: relative; z-index: 21; color: #fff; text-align: center; }
.announce-top { background: var(--red); padding: 10px 16px 12px; display: grid; gap: 8px; justify-items: center; }
.announce-msg { font-weight: 700; font-size: 1.05rem; letter-spacing: 0.01em; }
.announce-cd { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; font-size: 0.9rem; opacity: 0.95; }
.announce-cd .cd { display: flex; gap: 6px; }
.announce-cd .cd div { background: rgba(255, 255, 255, 0.16); border-radius: 7px; min-width: 42px; padding: 3px 6px 2px; line-height: 1.05; }
.announce-cd .cd b { display: block; font-size: 1.05rem; font-weight: 800; }
.announce-cd .cd small { display: block; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; }
.marquee { background: var(--red-dark); overflow: hidden; white-space: nowrap; padding: 9px 0; font-weight: 700; font-size: 0.92rem; }
.marquee-track { display: inline-flex; animation: marquee 38s linear infinite; }
.marquee-track > div { display: inline-flex; align-items: center; }
.marquee span { padding: 0 18px; }
.marquee i { font-style: normal; color: #ffb3c0; font-size: 0.8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
