:root {
  --bg: #0d0a12;
  --bg-deep: #07050a;
  --surface: #17121f;
  --surface-2: #1d1230;
  --line: #33283f;
  --line-strong: #5a4a6e;
  --text: #f6efe2;
  --text-soft: #d9cfe3;
  --muted: #b7abc6;
  --accent: #ff7a1a;
  --slime: #9be02a;
  --moon: #f7e7b4;
  --display: 'Creepster', cursive;
  --body: 'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.5; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--slime); outline-offset: 3px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.display { font-family: var(--display); font-weight: 400; letter-spacing: 0.03em; line-height: 1; margin: 0; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.18em; color: var(--slime); text-transform: uppercase; }

/* top bar + slime drip */
.topbar { background: var(--accent); color: var(--bg); font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-align: center; padding: 10px 16px; text-transform: uppercase; }
.drip { height: 40px; margin-bottom: -40px; position: relative; z-index: 25; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='40' viewBox='0 0 240 40'%3E%3Cpath fill='%23ff7a1a' d='M0 0H240V5C226 5 228 33 215 33S204 5 190 5H142C134 5 136 21 127 21S120 5 106 5H62C56 5 58 38 47 38S38 5 26 5H0Z'/%3E%3C/svg%3E") repeat-x top left; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(13,10,18,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 40px; height: 84px; padding-top: 8px; }
.logo { font-family: var(--display); font-size: 36px; letter-spacing: 0.04em; color: var(--accent); white-space: nowrap; }
.logo:hover { color: var(--accent); text-shadow: 0 0 24px rgba(255,122,26,0.6); }
.nav { display: flex; gap: 28px; flex: 1; font-weight: 500; }
.nav a { padding: 12px 0; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; color: var(--text); position: relative; border-radius: 50%; }
.icon-btn:hover { color: var(--accent); }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--slime); color: var(--bg); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.cart-count[hidden] { display: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 32px; border-radius: 999px; font-size: 17px; font-weight: 700; border: 1px solid transparent; transition: transform .15s, box-shadow .15s, background .15s; }
.btn-primary { background: var(--accent); color: var(--bg); box-shadow: 0 0 28px rgba(255,122,26,0.45); }
.btn-primary:hover { color: var(--bg); transform: translateY(-2px); box-shadow: 0 0 40px rgba(255,122,26,0.7); }
.btn-ghost { background: rgba(13,10,18,0.5); color: var(--text); border-color: #8a7a9e; font-weight: 500; }
.btn-ghost:hover { border-color: var(--accent); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--accent); height: 44px; padding: 0 20px; font-size: 15px; width: 100%; }
.btn-outline:hover { background: var(--accent); color: var(--bg); }
.btn-block { width: 100%; }

/* hero */
.hero { position: relative; min-height: 680px; overflow: hidden; display: flex; align-items: center; }
.hero-img { position: absolute; right: 0; top: 0; width: 62%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 38%, rgba(13,10,18,0.72) 58%, rgba(13,10,18,0.15) 100%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; z-index: 1; background: linear-gradient(180deg, rgba(13,10,18,0), var(--bg)); }
.hero .wrap { position: relative; z-index: 3; width: 100%; }
.hero-copy { max-width: 640px; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; padding: 72px 0; }
.hero h1 { font-size: clamp(56px, 8vw, 112px); line-height: 0.95; color: var(--accent); text-shadow: 0 0 36px rgba(255,122,26,0.45); }
.hero p { margin: 0; font-size: 20px; color: var(--text-soft); max-width: 500px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.moon { position: absolute; z-index: 2; top: 56px; left: 46%; width: 150px; height: 150px; border-radius: 50%; background: var(--moon); box-shadow: 0 0 60px 20px rgba(247,231,180,0.35), inset -22px -14px 0 0 #e6cf8a; animation: glow 5s ease-in-out infinite; }
.bat { position: absolute; z-index: 2; fill: var(--bg); stroke: #3a2d4a; stroke-width: 0.5; animation: flap 6s ease-in-out infinite; }
.bat.b1 { top: 96px; left: 48%; width: 96px; }
.bat.b2 { top: 44px; left: 60%; width: 64px; animation-delay: -2s; }
.bat.b3 { top: 220px; left: 42%; width: 44px; animation-delay: -4s; }
.web { position: absolute; z-index: 2; top: 0; right: 0; width: 260px; height: 260px; transform: scaleX(-1); opacity: .45; }
@keyframes glow { 50% { box-shadow: 0 0 80px 30px rgba(247,231,180,0.45), inset -22px -14px 0 0 #e6cf8a; } }
@keyframes flap { 0%,100% { transform: translate(0,0) rotate(-6deg); } 50% { transform: translate(18px,-14px) rotate(8deg); } }

.countdown { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.count-box { width: 92px; padding: 12px 0; text-align: center; border: 1px solid #4a3b5c; border-radius: 10px; background: rgba(28,22,36,0.85); }
.count-box b { display: block; font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1; color: var(--slime); }
.count-box span { font-size: 12px; letter-spacing: 0.12em; color: var(--text-soft); }
.countdown > span { font-size: 15px; color: var(--text-soft); }

/* sections */
.section { padding: 80px 0 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(36px, 4.5vw, 52px); display: flex; align-items: center; gap: 16px; }
.section-head h2 svg { width: 56px; fill: var(--accent); flex-shrink: 0; }

.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.cat { position: relative; height: 320px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); padding: 0; color: var(--text); text-align: left; }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat:hover img { transform: scale(1.06); }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,10,18,0) 35%, rgba(13,10,18,0.95) 100%); }
.cat-label { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 20px; }
.cat-label b { display: block; font-family: var(--display); font-weight: 400; font-size: 34px; letter-spacing: 0.03em; }
.cat-label span { font-size: 15px; color: var(--text-soft); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); font-size: 15px; font-weight: 500; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 700; }

.grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; gap: 12px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid #2c2238; transition: transform .2s, border-color .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 12px 40px rgba(255,122,26,0.18); }
.card-img { aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #fff; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-name { font-weight: 500; line-height: 1.35; min-height: 44px; }
.card-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.price { font-size: 19px; font-weight: 700; color: var(--accent); }
.opts { font-size: 13px; color: var(--muted); }

.feature { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 18px; overflow: hidden; background: var(--surface-2); border: 1px solid #3d2a5c; }
.feature img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.feature-copy { padding: 56px; display: flex; flex-direction: column; gap: 18px; justify-content: center; align-items: flex-start; }
.feature-copy h2 { font-size: clamp(44px, 5vw, 68px); }
.feature-copy p { margin: 0; font-size: 18px; color: var(--text-soft); }
.feature-copy .price { font-size: 30px; }

.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust b { display: block; font-size: 17px; }
.trust span { font-size: 15px; color: var(--muted); }

/* footer */
.site-footer { margin-top: 72px; background: var(--bg-deep); padding: 64px 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; }
.site-footer h2 { font-size: 44px; color: var(--accent); margin-bottom: 12px; }
.site-footer label { display: block; font-size: 15px; color: var(--muted); margin-bottom: 12px; }
.nl { display: flex; gap: 12px; }
.nl input { flex: 1; min-width: 0; height: 52px; padding: 0 20px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text); font-size: 16px; font-family: inherit; }
.nl .btn { height: 52px; box-shadow: none; }
.nl-msg { margin: 12px 0 0; font-size: 15px; color: var(--slime); min-height: 22px; }
.foot-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; font-size: 15px; }
.foot-links b { display: block; margin-bottom: 12px; }
.foot-links a { display: block; color: var(--muted); padding: 6px 0; }
.foot-links a:hover { color: var(--accent); }
.copy { margin-top: 48px; font-size: 14px; color: var(--muted); }

/* product page */
.crumbs { padding: 56px 0 0; font-size: 14px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs span:last-child { color: var(--text); }
.pdp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; padding-top: 28px; }
.gallery-main { aspect-ratio: 1; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.thumb { aspect-ratio: 1; padding: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.thumb[aria-pressed="true"] { border: 2px solid var(--accent); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info { display: flex; flex-direction: column; gap: 22px; }
.pdp-info h1 { font-size: clamp(44px, 5.5vw, 76px); }
.pdp-info .price { font-size: 34px; }
.opt-label { font-size: 15px; color: var(--muted); margin-bottom: 12px; }
.opt-label b { color: var(--text); font-weight: 500; }
.pills { display: flex; gap: 10px; flex-wrap: wrap; }
.pill { min-width: 62px; height: 48px; padding: 0 16px; border-radius: 999px; font-size: 16px; font-weight: 700; background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.pill[aria-pressed="true"] { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.buy-row { display: flex; gap: 12px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; height: 56px; }
.qty button { width: 52px; height: 56px; background: transparent; border: 0; color: var(--text); font-size: 22px; }
.qty output { width: 32px; text-align: center; font-size: 17px; font-weight: 700; }
.buy-row .btn { flex: 1; }
.note { padding: 16px 20px; border: 1px solid #3d2a5c; border-radius: 12px; background: var(--surface-2); font-size: 15px; display: flex; gap: 14px; align-items: center; }
.note svg { width: 44px; fill: var(--slime); flex-shrink: 0; }
.about { border-top: 1px solid var(--line); padding-top: 20px; }
.about b { font-size: 17px; }
.about ul { margin: 12px 0 0; padding-left: 20px; color: var(--text-soft); display: flex; flex-direction: column; gap: 8px; }

/* cart drawer */
.overlay { position: fixed; inset: 0; z-index: 40; background: rgba(7,5,10,0.7); opacity: 0; pointer-events: none; transition: opacity .2s; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: min(440px, 100vw); background: var(--surface); border-left: 1px solid var(--line); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s; visibility: hidden; }
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 34px; color: var(--accent); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.empty { padding: 48px 0; text-align: center; color: var(--muted); }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line img { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; background: #fff; }
.line-name { font-weight: 500; line-height: 1.3; }
.line-opt { font-size: 13px; color: var(--muted); }
.line-qty { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; border: 1px solid var(--line-strong); border-radius: 999px; }
.line-qty button { width: 44px; height: 44px; background: transparent; border: 0; color: var(--text); font-size: 18px; }
.line-price { font-weight: 700; color: var(--accent); white-space: nowrap; }
.remove { display: block; margin-top: 8px; background: none; border: 0; padding: 12px 0; color: var(--muted); font-size: 13px; text-decoration: underline; text-align: right; width: 100%; }
.drawer-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 700; }
.drawer-foot small { color: var(--muted); font-size: 13px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 50; transform: translate(-50%, 80px); background: var(--slime); color: var(--bg); font-weight: 700; padding: 14px 22px; border-radius: 999px; transition: transform .25s; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { transform: translate(-50%, 0); }

.menu-btn { display: none; }

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .wrap { padding: 0 16px; }
  .menu-btn { display: inline-flex; }
  .site-header .wrap { gap: 4px; height: 72px; padding-left: 4px; padding-right: 8px; }
  .logo { font-size: 26px; flex: 1; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .hero { min-height: 600px; align-items: flex-end; }
  .hero-img { width: 100%; }
  .hero::before { background: linear-gradient(180deg, rgba(13,10,18,0.35) 0%, rgba(13,10,18,0.6) 35%, var(--bg) 88%); }
  .hero-copy { padding: 200px 0 32px; gap: 16px; }
  .hero p { font-size: 17px; }
  .hero-actions .btn { width: 100%; }
  .moon { top: 40px; left: auto; right: 28px; width: 84px; height: 84px; box-shadow: 0 0 40px 14px rgba(247,231,180,0.35), inset -12px -8px 0 0 #e6cf8a; }
  .bat.b1 { top: 66px; left: auto; right: 38px; width: 64px; }
  .bat.b2 { top: 140px; left: auto; right: 130px; width: 40px; }
  .bat.b3, .web { display: none; }
  .section { padding-top: 48px; }
  .cats { gap: 12px; }
  .cat { height: 150px; }
  .cat-label { left: 12px; right: 12px; bottom: 10px; }
  .cat-label b { font-size: 24px; }
  .cat-label span { display: none; }
  .grid, .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card { padding: 8px; gap: 8px; }
  .card-name { font-size: 15px; }
  .card-meta { flex-direction: column; gap: 0; }
  .feature { grid-template-columns: 1fr; }
  .feature img { min-height: 280px; max-height: 340px; }
  .feature-copy { padding: 28px 20px; }
  .trust { grid-template-columns: 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .nl { flex-direction: column; }
  .pdp { grid-template-columns: 1fr; gap: 28px; }
  .crumbs { padding-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
