/* ===========================================================
   CherryVanilla Store — homepage styles
   Cherry-blossom dark theme. Mobile-first, responsive.
   =========================================================== */

:root {
  --bg:        #140a12;
  --bg-2:      #1b0d18;
  --panel:     rgba(255, 255, 255, 0.045);
  --panel-2:   rgba(255, 255, 255, 0.06);
  --border:    rgba(255, 180, 214, 0.12);
  --border-2:  rgba(255, 180, 214, 0.22);

  --pink:       #FF4D8D;
  --pink-light: #FF8FBE;
  --pink-soft:  #FFB3D9;
  --lilac:      #A56BFF;
  --gold:       #FFC94A;

  --text:  #F7EAF1;
  --muted: #BB9CAE;

  --grad: linear-gradient(135deg, #FF4D8D 0%, #FF7AC4 45%, #A56BFF 100%);
  --grad-soft: linear-gradient(135deg, rgba(255,77,141,.18), rgba(165,107,255,.18));

  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-pink: 0 14px 40px rgba(255, 77, 141, 0.28);
  --wrap: 1180px;

  --ff-head: "Outfit", system-ui, sans-serif;
  --ff-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255, 77, 141, 0.16), transparent 60%),
    radial-gradient(1000px 600px at 0% 10%, rgba(165, 107, 255, 0.14), transparent 55%),
    var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--ff-head); line-height: 1.1; letter-spacing: -0.01em; }

a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

svg.i, .cat-icon svg, .trust-i svg { width: 100%; height: 100%; fill: currentColor; display: block; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--ff-head); font-weight: 600; font-size: 14px;
  padding: 11px 18px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
  white-space: nowrap; color: var(--text); background: transparent;
}
.btn .i { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 15px 26px; font-size: 15.5px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-pink); }
.btn-primary:hover { box-shadow: 0 18px 48px rgba(255, 77, 141, 0.42); }

.btn-outline { border-color: var(--border-2); background: rgba(255,255,255,.03); }
.btn-outline:hover { border-color: var(--pink); background: rgba(255, 77, 141, 0.10); }

.btn-ghost { color: var(--muted); padding: 9px 14px; }
.btn-ghost:hover { color: var(--text); }

.btn-cart {
  position: relative; background: rgba(255,255,255,.05); border: 1px solid var(--border);
  padding: 9px 16px;
}
.btn-cart:hover { border-color: var(--border-2); }
.cart-count {
  font-style: normal; font-size: 11px; font-weight: 700; min-width: 19px; height: 19px;
  padding: 0 5px; border-radius: 999px; background: var(--pink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; margin-left: 2px;
}

/* ---------- top bar ---------- */
.topbar {
  text-align: center; font-size: 13px; padding: 8px 16px; color: #ffe6f1;
  background: linear-gradient(90deg, #b3275f, #d6418a, #8a4dd6);
  position: relative; z-index: 60;
}
.topbar strong { color: #fff; }
.topbar-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #fff; margin-right: 8px; vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); }
  70% { box-shadow: 0 0 0 7px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(20, 10, 18, 0.72);
  border-bottom: 1px solid var(--border);
  transition: background .25s ease, box-shadow .25s ease;
}
.nav.scrolled { background: rgba(20, 10, 18, 0.92); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.nav-inner { display: flex; align-items: center; gap: 18px; height: 68px; }

.brand { display: flex; align-items: center; gap: 11px; }
.brand-icon { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 6px 18px rgba(255,77,141,.35); }
.brand-name { font-family: var(--ff-head); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand-name span { color: var(--pink-light); }

.nav-links { display: flex; gap: 4px; margin-left: 12px; flex: 1; }
.nav-links a {
  font-family: var(--ff-head); font-weight: 500; font-size: 14.5px; color: var(--muted);
  padding: 9px 13px; border-radius: 10px; transition: color .18s, background .18s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.05); }

.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { padding: 70px 0 40px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; }

.sale-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-head); font-weight: 600; font-size: 13px; letter-spacing: .14em;
  text-transform: uppercase; color: #fff; padding: 7px 14px; border-radius: 999px;
  background: var(--grad); box-shadow: var(--shadow-pink); margin-bottom: 20px;
}
.sale-badge strong { font-size: 15px; }

.hero-copy h1 { font-size: clamp(40px, 6vw, 66px); font-weight: 800; }
.hero-sub { color: var(--muted); font-size: 17px; max-width: 480px; margin: 18px 0 26px; }
.hero-sub strong { color: var(--text); }

.countdown { display: flex; gap: 12px; margin-bottom: 30px; }
.cd-box {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 0; width: 74px; text-align: center;
}
.cd-box b { display: block; font-family: var(--ff-head); font-size: 30px; font-weight: 700; color: #fff; }
.cd-box small { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-art { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-art-glow {
  position: absolute; inset: -10% -5%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 77, 141, 0.35), transparent 65%);
  filter: blur(20px); z-index: 0;
}
.hero-banner {
  position: relative; z-index: 1; width: 100%; max-width: 560px; height: auto;
  border-radius: 18px; filter: drop-shadow(0 24px 50px rgba(0,0,0,.5));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- sections ---------- */
.section { padding: 64px 0; position: relative; }
.section-alt {
  background: linear-gradient(180deg, transparent, rgba(255,77,141,.04) 40%, transparent);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 8px; font-size: 16px; }

.back-link { display: inline-block; color: var(--muted); font-size: 14px; margin-bottom: 18px; transition: color .15s; }
.back-link:hover { color: var(--pink-light); }
.ranks-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 32px; }
.ranks-note a { color: var(--pink-light); }
.ranks-note strong { color: var(--text); }

/* ---------- category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card {
  position: relative; overflow: hidden;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.cat-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(140px 90px at 80% 0%, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%);
  opacity: .0; transition: opacity .25s ease;
}
.cat-card:hover { transform: translateY(-5px); border-color: var(--border-2); box-shadow: var(--shadow); }
.cat-card:hover::before { opacity: 1; }
.cat-icon {
  position: relative; display: block; width: 88px; height: 88px; margin-bottom: 12px;
}
.cat-icon img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .5));
  transition: transform .2s ease;
}
.cat-card:hover .cat-icon img { transform: scale(1.06) rotate(-2deg); }
.cat-card h3 { font-size: 20px; position: relative; }
.cat-card p { color: var(--muted); font-size: 14px; margin-top: 6px; position: relative; }
.cat-go { display: inline-block; margin-top: 16px; font-weight: 600; font-size: 14px; color: var(--c); position: relative; }

/* ---------- product grid ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prod-card {
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.prod-card:hover { transform: translateY(-5px); border-color: var(--border-2); box-shadow: var(--shadow); }
.prod-top {
  position: relative; height: 150px; display: flex; align-items: center; justify-content: center;
  background: var(--grad-soft); border-bottom: 1px solid var(--border);
}
.prod-emoji { font-size: 64px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.4)); line-height: 1; }
.prod-img { max-width: 80%; max-height: 126px; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .45)); }
.prod-tag {
  position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 5px 10px; border-radius: 999px; color: #fff; background: var(--pink);
}
.prod-tag.popular { background: var(--lilac); }
.prod-off {
  position: absolute; top: 12px; right: 12px; font-size: 12px; font-weight: 700;
  padding: 5px 10px; border-radius: 999px; color: #2a0e1c; background: var(--gold);
}
.prod-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.prod-body h3 { font-size: 19px; }
.prod-body .desc { color: var(--muted); font-size: 13.5px; margin: 7px 0 12px; }
.prod-price { display: flex; align-items: baseline; gap: 9px; margin: auto 0 14px; }
.prod-price .now { font-family: var(--ff-head); font-weight: 800; font-size: 26px; color: #fff; }
.prod-price .was { color: var(--muted); text-decoration: line-through; font-size: 15px; }
.prod-per { color: var(--muted); font-size: 13px; font-weight: 600; }
.prod-card .btn { width: 100%; }
.prod-perks { list-style: none; margin: 0 0 14px; display: flex; flex-direction: column; gap: 6px; }
.prod-perks li { position: relative; padding-left: 19px; font-size: 12.5px; color: var(--muted); }
.prod-perks li::before { content: "✓"; position: absolute; left: 0; color: var(--pink); font-weight: 700; }
.prod-perks li.more { padding-left: 0; color: var(--pink-light); font-weight: 600; font-size: 12px; }
.prod-title { color: inherit; transition: color .15s; }
.prod-title:hover { color: var(--pink-light); }

/* ---------- product detail (product.html) ---------- */
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 10px; }
.pd-media {
  background: var(--grad-soft); border: 1px solid var(--border); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; padding: 30px; min-height: 320px;
}
.pd-media img { max-width: 86%; max-height: 320px; object-fit: contain; filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .5)); }
.pd-emoji { font-size: 150px; line-height: 1; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .45)); }
.pd-cat { display: inline-block; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--pink-light); margin-bottom: 8px; }
.pd-info h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.pd-price { display: flex; align-items: baseline; gap: 12px; margin: 16px 0 18px; }
.pd-price .now { font-family: var(--ff-head); font-weight: 800; font-size: 34px; color: #fff; }
.pd-price .was { color: var(--muted); text-decoration: line-through; font-size: 18px; }
.pd-per { color: var(--muted); font-size: 17px; font-weight: 600; }
.pd-period { color: var(--pink-light); font-size: 13.5px; margin: -8px 0 16px; }
.pd-off { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; color: #2a0e1c; background: var(--gold); align-self: center; }
.pd-desc { color: var(--muted); font-size: 16px; margin-bottom: 18px; }
.pd-perks { list-style: none; margin: 0 0 24px; display: flex; flex-direction: column; gap: 10px; }
.pd-perks li { position: relative; padding-left: 26px; font-size: 15px; }
.pd-perks li::before { content: "✓"; position: absolute; left: 0; color: var(--pink); font-weight: 700; }
.pd-note { color: var(--muted); font-size: 13px; margin-top: 14px; }
@media (max-width: 760px) {
  .pd-grid { grid-template-columns: 1fr; gap: 24px; }
  .pd-media { min-height: 240px; padding: 22px; }
}

/* ---------- store note ---------- */
/* Deliberately NOT three equal cards: a 2:1 split with a rule down the middle reads like someone wrote it,
   where three identical icon+heading+line tiles is the single most recognisable generated-template block. */
.storenote { display: grid; grid-template-columns: 1.75fr 1fr; gap: 44px; align-items: start; }
.storenote-main h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin-bottom: 14px; }
.storenote-main p { color: var(--muted); font-size: 15.5px; max-width: 58ch; line-height: 1.65; }
.storenote-main p + p { margin-top: 12px; }
.storenote-side { border-left: 2px solid var(--border); padding-left: 22px; }
.storenote-side p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.storenote-side .ip span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
@media (max-width: 760px) {
  .storenote { grid-template-columns: 1fr; gap: 26px; }
  .storenote-side { border-left: 0; border-top: 1px solid var(--border); padding: 20px 0 0; }
}

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); background: rgba(0,0,0,.25); padding-top: 56px; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 40px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 300px; }
.footer-brand .ip { display: flex; align-items: center; gap: 8px; }
.footer-brand .ip span { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.footer-brand .ip code {
  font-family: var(--ff-body); color: var(--pink-light); background: rgba(255,77,141,.1);
  padding: 3px 9px; border-radius: 7px; font-size: 13px;
}
.footer-col h4 { font-size: 15px; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted); font-size: 14px; padding: 5px 0; transition: color .15s; }
.footer-col a:hover { color: var(--pink-light); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  border-top: 1px solid var(--border); padding: 20px 22px; flex-wrap: wrap;
}
.footer-bottom p { color: var(--muted); font-size: 13px; }
.pay { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.pay strong { color: var(--text); font-family: var(--ff-head); }

/* ---------- cart drawer ---------- */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: .25s; z-index: 90;
}
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 380px; max-width: 90vw; z-index: 100;
  background: var(--bg-2); border-left: 1px solid var(--border); box-shadow: -20px 0 50px rgba(0,0,0,.5);
  transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--border); }
.drawer-head h3 { font-size: 20px; }
.drawer-close { background: none; border: 0; color: var(--muted); font-size: 28px; line-height: 1; cursor: pointer; transition: color .15s; }
.drawer-close:hover { color: var(--text); }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 20px; }
.drawer-empty { color: var(--muted); text-align: center; margin-top: 40px; font-size: 14px; }
.cart-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cart-item .ci-emoji { font-size: 30px; flex-shrink: 0; }
.cart-item .ci-img { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.cart-item .ci-info { flex: 1; }
.cart-item .ci-info b { font-family: var(--ff-head); font-size: 15px; display: block; }
.cart-item .ci-info span { color: var(--muted); font-size: 13px; }
.cart-item .ci-remove { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 18px; align-self: flex-start; }
.cart-item .ci-remove:hover { color: var(--pink); }
.ci-qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 7px; }
.ci-step {
  width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--border);
  background: rgba(255, 255, 255, .05); color: var(--text); font-size: 15px; line-height: 1;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .15s, color .15s;
}
.ci-step:hover { border-color: var(--pink); color: var(--pink); }
.ci-count { min-width: 18px; text-align: center; font-weight: 600; font-size: 14px; }
.drawer-foot { padding: 18px 20px; border-top: 1px solid var(--border); }
.drawer-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.drawer-total b { font-family: var(--ff-head); font-size: 24px; }
.drawer-note { display: block; text-align: center; color: var(--muted); font-size: 12px; margin-top: 10px; }

/* ---------- login modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: .25s; z-index: 110;
}
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -44%);
  width: 380px; max-width: 92vw; z-index: 120;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px 24px;
  opacity: 0; visibility: hidden; transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.modal.open { opacity: 1; visibility: visible; transform: translate(-50%, -50%); }
.modal h3 { font-size: 21px; }
.modal-sub { color: var(--muted); font-size: 14px; margin: 6px 0 18px; }
.modal-close { position: absolute; top: 12px; right: 14px; background: none; border: 0; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; transition: color .15s; }
.modal-close:hover { color: var(--text); }
.seg { display: flex; gap: 6px; background: rgba(255, 255, 255, .04); border: 1px solid var(--border); border-radius: 999px; padding: 4px; margin-bottom: 14px; }
.seg-btn {
  flex: 1; padding: 9px 0; border: 0; border-radius: 999px; background: transparent; color: var(--muted);
  font-family: var(--ff-head); font-weight: 600; font-size: 14px; cursor: pointer; transition: background .18s, color .18s;
}
.seg-btn.active { background: var(--grad); color: #fff; }
.mc-input-wrap {
  display: flex; align-items: center; margin-bottom: 16px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .04);
  transition: border-color .15s;
}
.mc-input-wrap:focus-within { border-color: var(--pink); }
.mc-prefix { display: none; padding-left: 14px; color: var(--pink-light); font-size: 16px; font-weight: 700; }
.mc-input-wrap.bedrock .mc-prefix { display: block; }
.mc-input-wrap.bedrock .modal-input { padding-left: 4px; }
.modal-input {
  flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 14px;
  color: var(--text); font-size: 15px; font-family: var(--ff-body);
}
.modal-input::placeholder { color: var(--muted); }
.modal-input:focus { outline: none; }
.modal-logout { display: none; width: 100%; background: none; border: 0; color: var(--muted); font-size: 13px; margin-top: 12px; cursor: pointer; transition: color .15s; }
.modal-logout:hover { color: var(--pink); }

/* ---------- petals ---------- */
.petals { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
.petal {
  position: absolute; top: -20px; width: 12px; height: 12px; border-radius: 100% 0 100% 0;
  background: linear-gradient(135deg, #ffd0e4, #ff8fbe); opacity: .8;
  animation: fall linear infinite;
}
@keyframes fall {
  0%   { transform: translateY(-20px) translateX(0) rotate(0deg); opacity: 0; }
  10%  { opacity: .85; }
  100% { transform: translateY(105vh) translateX(60px) rotate(420deg); opacity: 0; }
}

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .hero-copy { order: 2; }
  .hero-art { order: 1; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .countdown, .hero-cta { justify-content: center; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed; top: 0; right: 0; height: 100vh; width: 250px; flex-direction: column;
    background: var(--bg-2); border-left: 1px solid var(--border); padding: 90px 22px 22px; margin: 0;
    transform: translateX(100%); transition: transform .3s ease; z-index: 45; gap: 6px;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { width: 100%; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-ghost span, .nav-actions .btn-cart span { display: none; }
}

@media (max-width: 560px) {
  .cat-grid, .prod-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 28px; }
  .cd-box { width: 64px; }
  .cd-box b { font-size: 24px; }
  .footer-bottom { justify-content: center; text-align: center; }
}
