:root {
  --bg: #06070c;
  --bg-2: #0c0e17;
  --panel: rgba(20, 24, 40, 0.6);
  --panel-solid: #121626;
  --border: rgba(120, 140, 255, 0.16);
  --text: #eef1ff;
  --muted: #8d93b0;
  --cyan: #00e5ff;
  --magenta: #ff2bd6;
  --violet: #7c4dff;
  --grad: linear-gradient(135deg, var(--cyan), var(--violet) 55%, var(--magenta));
  --radius: 18px;
  --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  --glow: 0 0 30px rgba(0, 229, 255, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(124, 77, 255, 0.18), transparent 60%),
    radial-gradient(700px 500px at -10% 40%, rgba(0, 229, 255, 0.10), transparent 60%),
    var(--bg);
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4, .logo { font-family: "Orbitron", sans-serif; letter-spacing: 0.02em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 600;
  transition: transform .25s, box-shadow .25s, background .25s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -8px rgba(124, 77, 255, .7); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -8px rgba(0, 229, 255, .6); }
.btn-ghost { border: 1px solid var(--border); background: rgba(255,255,255,.03); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--cyan); box-shadow: var(--glow); }
.btn-block { width: 100%; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
}
.icon-btn:hover { border-color: var(--cyan); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  width: min(1200px, calc(100% - 32px)); z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; border-radius: 999px;
  background: rgba(10, 12, 22, 0.6); backdrop-filter: blur(16px);
  border: 1px solid var(--border);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.05rem; }
.logo-mark {
  width: 26px; height: 26px; border-radius: 8px; background: var(--grad);
  transform: rotate(45deg) scale(.8); box-shadow: var(--glow);
}
.nav-links { display: flex; gap: 32px; font-weight: 500; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.cart-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid var(--border);
}
.cart-btn:hover { border-color: var(--cyan); box-shadow: var(--glow); }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--magenta); font-size: .72rem; font-weight: 700;
  display: grid; place-items: center;
}
.cart-count.bump { animation: bump .4s; }
@keyframes bump { 50% { transform: scale(1.4); } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 120px max(16px, calc((100% - 1200px) / 2)) 80px; overflow: hidden;
}
#hero3d { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-grid-floor {
  position: absolute; left: -50%; right: -50%; bottom: -10%; height: 55%;
  background-image:
    linear-gradient(rgba(0, 229, 255, .25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, .25) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(500px) rotateX(65deg);
  mask-image: linear-gradient(to top, #000 10%, transparent 80%);
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 80%);
  animation: floor 3s linear infinite; pointer-events: none;
}
@keyframes floor { to { background-position: 0 60px; } }
.hero-content { position: relative; z-index: 2; max-width: 620px; pointer-events: none; }
.hero-content a, .hero-content button { pointer-events: auto; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .25em; font-size: .78rem; font-weight: 600;
  color: var(--cyan); margin-bottom: 14px;
}
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: 1.02; font-weight: 900; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--muted); font-size: 1.1rem; margin: 22px 0 34px; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 50px; }
.hero-stats strong { display: block; font-family: "Orbitron"; font-size: 1.3rem; }
.hero-stats span { color: var(--muted); font-size: .85rem; }

/* ---------- Sections ---------- */
.section { width: min(1200px, calc(100% - 32px)); margin: 0 auto; padding: 90px 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }

/* Categories */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; perspective: 1000px; }
.cat-card {
  position: relative; padding: 30px 24px; border-radius: var(--radius); text-align: left;
  background: var(--panel); border: 1px solid var(--border); backdrop-filter: blur(10px);
  transform-style: preserve-3d; transition: transform .4s, border-color .3s, box-shadow .3s;
}
.cat-card:hover { transform: translateY(-8px) rotateX(8deg); border-color: var(--cyan); box-shadow: var(--glow); }
.cat-card .cat-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(0,229,255,.18), rgba(255,43,214,.18));
  margin-bottom: 18px; transform: translateZ(40px); color: var(--cyan);
}
.cat-card h3 { font-size: 1rem; transform: translateZ(30px); }
.cat-card p { color: var(--muted); font-size: .85rem; transform: translateZ(20px); }

/* Shop tools */
.shop-tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border);
  background: rgba(255,255,255,.03); color: var(--muted); font-size: .9rem; font-weight: 500;
  transition: all .2s;
}
.chip:hover { color: var(--text); }
.chip.active { background: var(--grad); color: #fff; border-color: transparent; }
.search {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255,255,255,.03); color: var(--muted);
  min-width: 240px;
}
.search input { background: none; border: 0; outline: none; color: var(--text); font: inherit; width: 100%; }
.search:focus-within { border-color: var(--cyan); }

/* Product cards (3D tilt) */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px; }
.product-card {
  position: relative; border-radius: var(--radius); padding: 16px;
  background: linear-gradient(160deg, rgba(30, 36, 60, .75), rgba(12, 14, 24, .85));
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transform-style: preserve-3d; transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0));
  transition: transform .15s ease-out, border-color .3s, box-shadow .3s;
  cursor: pointer;
}
.product-card:hover { border-color: rgba(0, 229, 255, .5); box-shadow: var(--shadow), var(--glow); }
.product-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.10), transparent 40%);
  opacity: 0; transition: opacity .3s;
}
.product-card:hover::after { opacity: 1; }
.product-media {
  position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, rgba(124, 77, 255, .35), rgba(6, 7, 12, .9) 70%);
  display: grid; place-items: center; transform: translateZ(40px);
}
.product-media img { width: 85%; height: 85%; object-fit: contain; filter: drop-shadow(0 25px 25px rgba(0,0,0,.6)); transition: transform .5s; }
.product-card:hover .product-media img { transform: scale(1.08) translateY(-6px); }
.product-media img.photo { width: 100%; height: 100%; object-fit: cover; filter: none; }
.product-card:hover .product-media img.photo { transform: scale(1.06); }
.placeholder-art { width: 55%; color: var(--cyan); filter: drop-shadow(0 0 18px rgba(0,229,255,.5)); }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2; padding: 4px 10px; border-radius: 999px;
  font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  background: var(--magenta); color: #fff; transform: translateZ(60px);
}
.product-info { padding: 16px 4px 4px; transform: translateZ(25px); }
.product-cat { color: var(--cyan); font-size: .72rem; text-transform: uppercase; letter-spacing: .15em; font-weight: 600; }
.product-info h3 { font-family: "Inter"; font-size: 1.05rem; font-weight: 700; margin: 4px 0 6px; }
.rating { color: #ffc93c; font-size: .82rem; }
.rating span { color: var(--muted); margin-left: 4px; }
.price-row { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.price { font-family: "Orbitron"; font-weight: 700; font-size: 1.15rem; }
.old-price { color: var(--muted); text-decoration: line-through; font-size: .85rem; margin-left: 8px; font-family: "Inter"; font-weight: 400; }
.add-btn {
  width: 42px; height: 42px; border-radius: 12px; background: var(--grad); display: grid; place-items: center;
  font-size: 1.4rem; font-weight: 700; color: #fff; transition: transform .2s;
}
.add-btn:hover { transform: scale(1.12) rotate(90deg); }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.why-card { padding: 28px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border); }
.why-icon { font-size: 1.8rem; margin-bottom: 12px; }
.why-card h3 { font-size: 1rem; margin-bottom: 6px; }
.why-card p { color: var(--muted); font-size: .92rem; }

/* CTA */
.cta-box {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 48px; border-radius: 28px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(0,229,255,.12), rgba(124,77,255,.18), rgba(255,43,214,.12));
  border: 1px solid var(--border);
}
.cta-box h2 { font-size: 2rem; }
.cta-box p { color: var(--muted); }
.cta-form { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-form input {
  padding: 13px 18px; border-radius: 12px; border: 1px solid var(--border);
  background: rgba(0,0,0,.35); color: var(--text); font: inherit; outline: none; min-width: 0;
}
.cta-form input { border-radius: 999px; min-width: 240px; }
.cta-form input:focus { border-color: var(--cyan); }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 60px 0 30px; margin-top: 40px; }
.footer-grid { width: min(1200px, calc(100% - 32px)); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 30px; }
.footer-grid > div { display: flex; flex-direction: column; gap: 8px; }
.footer h4 { font-size: .9rem; margin-bottom: 6px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--cyan); }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.copyright { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 40px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3, 4, 8, .75); backdrop-filter: blur(6px); }
.modal-card {
  position: relative; width: min(980px, 100%); max-height: 92vh; overflow: auto;
  background: var(--panel-solid); border: 1px solid var(--border); border-radius: 24px; padding: 32px;
  box-shadow: var(--shadow); animation: pop .35s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes pop { from { transform: scale(.9) translateY(20px); opacity: 0; } }
.modal-close { position: absolute; top: 16px; right: 16px; z-index: 3; }
.modal-body { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.viewer {
  aspect-ratio: 1; border-radius: 20px; perspective: 1000px; cursor: grab; touch-action: none;
  background: radial-gradient(circle at 50% 45%, rgba(124, 77, 255, .4), rgba(6,7,12,.95) 70%);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.viewer:active { cursor: grabbing; }
.viewer-inner { width: 78%; height: 78%; display: grid; place-items: center; transform-style: preserve-3d; transition: transform .1s; }
.viewer-inner img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 30px rgba(0,0,0,.7)); }
.viewer-inner .placeholder-art { width: 70%; }
.viewer-inner img.photo { width: 100%; height: auto; max-height: 100%; border-radius: 14px; box-shadow: 0 30px 50px -10px rgba(0,0,0,.8), 0 0 0 1px var(--border); filter: none; }
.thumbs { flex-wrap: wrap; }
.viewer-hint { position: absolute; bottom: 12px; font-size: .75rem; color: var(--muted); }
.thumbs { display: flex; gap: 8px; margin-top: 12px; }
.thumbs img { width: 60px; height: 60px; object-fit: cover; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid var(--border); cursor: pointer; padding: 4px; }
.thumbs img.active { border-color: var(--cyan); }
.detail h2 { font-size: 1.7rem; margin: 6px 0 10px; }
.detail p.desc { color: var(--muted); margin: 14px 0; }
.specs { list-style: none; display: grid; gap: 8px; margin: 18px 0 24px; }
.specs li { display: flex; gap: 10px; font-size: .92rem; }
.specs li::before { content: "▸"; color: var(--cyan); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.qty button { width: 36px; height: 36px; font-size: 1.1rem; }
.qty button:hover { background: rgba(255,255,255,.06); }
.qty span { min-width: 30px; text-align: center; font-weight: 600; }
.detail-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.detail .price { font-size: 1.6rem; }

/* ---------- Cart drawer ---------- */
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%); z-index: 90;
  background: var(--panel-solid); border-left: 1px solid var(--border);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.drawer.open { transform: none; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .3s; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--border); }
.drawer-items { flex: 1; overflow: auto; padding: 16px 24px; display: flex; flex-direction: column; gap: 14px; }
.drawer-foot { padding: 20px 24px; border-top: 1px solid var(--border); }
.total-row { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 16px; }
.total-row strong { font-family: "Orbitron"; font-size: 1.2rem; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; }
.cart-thumb { width: 64px; height: 64px; border-radius: 12px; background: radial-gradient(circle, rgba(124,77,255,.35), rgba(6,7,12,.9)); display: grid; place-items: center; overflow: hidden; }
.cart-thumb img { width: 85%; height: 85%; object-fit: contain; }
.cart-thumb .placeholder-art { width: 60%; }
.cart-item h4 { font-family: "Inter"; font-size: .92rem; }
.cart-item .muted { font-size: .85rem; }
.cart-item .qty button { width: 28px; height: 28px; }
.remove { color: var(--muted); font-size: .8rem; }
.remove:hover { color: var(--magenta); }
.cart-empty { text-align: center; color: var(--muted); margin-top: 60px; }

.secure-note { text-align: center; margin-top: 10px; }

/* Checkout */
.checkout-card { width: min(520px, 100%); }
.checkout-card h3 { margin-bottom: 14px; }
.pay-options { display: grid; gap: 10px; margin: 10px 0 18px; }
.pay-option {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--border); background: rgba(255,255,255,.03); transition: border-color .2s, box-shadow .2s;
}
.pay-option:has(input:checked) { border-color: var(--cyan); box-shadow: var(--glow); }
.pay-option input { accent-color: var(--cyan); margin-top: 4px; }
.pay-option strong { display: block; font-size: .95rem; }
.pay-option small { color: var(--muted); font-size: .82rem; }
.checkout-form { display: grid; gap: 12px; }
.checkout-form[hidden] { display: none; }
.checkout-form label { display: grid; gap: 6px; font-size: .85rem; color: var(--muted); }
.checkout-form input, .checkout-form textarea, .checkout-form select {
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border);
  background: rgba(0,0,0,.35); color: var(--text); font: inherit; outline: none; min-width: 0;
}
.checkout-form select option { background: var(--panel-solid); }
.checkout-form input:focus, .checkout-form textarea:focus, .checkout-form select:focus { border-color: var(--cyan); }
.checkout-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cod-done { text-align: center; display: grid; gap: 10px; }
.cod-done .success-icon { margin-bottom: 6px; }
.cod-done p { margin: 0; }
.btn:disabled { opacity: .6; cursor: default; transform: none; }

/* Order success page */
.success-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.success-card {
  width: min(520px, 100%); text-align: center; padding: 48px 32px; border-radius: 28px;
  background: var(--panel-solid); border: 1px solid var(--border); box-shadow: var(--shadow), var(--glow);
}
.success-icon {
  width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); font-size: 2.4rem; color: #fff; animation: pop .6s cubic-bezier(.2,.9,.3,1.4);
}
.success-card h1 { font-size: 1.8rem; margin-bottom: 10px; }
.success-card p { color: var(--muted); margin-bottom: 8px; }
.success-card .btn { margin-top: 22px; }

/* WhatsApp */
.wa-icon { width: 20px; height: 20px; flex: none; }
.btn-whatsapp { background: #25d366; color: #fff; box-shadow: 0 10px 30px -8px rgba(37, 211, 102, .6); }
.btn-whatsapp:hover { transform: translateY(-3px); }
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 70; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff;
  box-shadow: 0 10px 30px -6px rgba(37, 211, 102, .7); transition: transform .25s;
  animation: wa-pulse 2.5s infinite;
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.1); }
@keyframes wa-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); } 50% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); } }
.wa-ask { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: #25d366; font-weight: 600; font-size: .92rem; }
.wa-ask:hover { text-decoration: underline; }

/* Toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 120px); z-index: 200;
  padding: 12px 22px; border-radius: 999px; background: var(--panel-solid); border: 1px solid var(--cyan);
  box-shadow: var(--glow); transition: transform .35s; font-weight: 500; max-width: calc(100% - 32px);
}
.toast.show { transform: translate(-50%, 0); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s, transform .7s; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  #hero3d { opacity: .4; }
  .toast { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .modal-body { grid-template-columns: 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-box { padding: 32px 22px; }
}
@media (max-width: 520px) {
  .modal-card { padding: 22px 18px; }
  .hero-stats { gap: 22px; }
  .search { min-width: 0; width: 100%; }
  .cta-form, .cta-form input { width: 100%; min-width: 0; }
  .cta-form .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-card { padding: 10px; }
  .product-info h3 { font-size: .9rem; }
  .price { font-size: .95rem; }
  .add-btn { width: 34px; height: 34px; font-size: 1.1rem; }
  .old-price { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
