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

:root {
    --primary: #8b31ff;
    --primary-light: #c278ff;
    --bg: #060609;
    --surface: #0d0d18;
    --surface-light: #12121f;
    --text: #e0d8ff;
    --text-muted: #8e8aa8;
    --border: rgba(139, 49, 255, 0.22);
    --glow: rgba(139, 49, 255, 0.55);
    --glow-light: rgba(139, 49, 255, 0.25);
    --accent: #3ddc84;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', 'Rajdhani', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

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

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    background: rgba(6, 6, 9, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: 0.4s;
}

nav.scrolled {
    height: 70px;
    background: rgba(6, 6, 9, 0.95);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-family: 'Orbitron', monospace;
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 3px;
}

.nav-logo em {
    color: var(--primary-light);
    font-style: normal;
    text-shadow: 0 0 15px var(--glow);
}

.cart-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(139, 49, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.cart-count {
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0 6px;
}

.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 5% 100px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: rgba(139, 49, 255, 0.08);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 40px;
    backdrop-filter: blur(5px);
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2.8rem, 10vw, 6rem);
    font-weight: 900;
    line-height: 1.05;
    color: #fff;
    margin-bottom: 25px;
}

.hero-title .grad {
    background: linear-gradient(90deg, var(--primary), #d8b4ff, #fff, #d8b4ff, var(--primary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradShift 5s linear infinite;
}

@keyframes gradShift { to { background-position: 200% center; } }

.shop-section {
    position: relative;
    z-index: 2;
    padding: 100px 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    color: #fff;
    letter-spacing: 2px;
}

.section-line {
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 20px auto;
    border-radius: 2px;
    box-shadow: 0 0 15px var(--glow);
}

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 5px 20px rgba(139, 49, 255, 0.3);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 30px;
    transition: 0.4s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-light);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.product-image-container {
    width: 100%;
    height: 180px;
    background: #1a1a2e;
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.product-price {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}

.add-btn {
    padding: 12px 20px;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.add-btn:hover {
    background: var(--primary);
}

.drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background: var(--surface);
    z-index: 1001;
    transition: 0.5s;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border);
}

.drawer.open { right: 0; }

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: 0.4s;
}

.overlay.open { opacity: 1; pointer-events: auto; }

.drawer-header { padding: 30px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; }
.drawer-items { flex-grow: 1; overflow-y: auto; padding: 30px; }
.drawer-footer { padding: 30px; background: var(--surface-light); }

.cart-item { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.cart-item-img { width: 45px; height: 45px; border-radius: 8px; object-fit: cover; }
.cart-item-info { flex-grow: 1; }
.cart-item-name { font-weight: 700; font-size: 0.9rem; color: #fff; }
.cart-item-price { color: var(--primary-light); font-size: 0.85rem; }

.checkout-btn { width: 100%; padding: 20px; background: var(--primary); color: #fff; border: none; border-radius: 16px; font-weight: 800; cursor: pointer; }

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--surface);
    border: 1px solid var(--primary);
    padding: 15px 30px;
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    z-index: 2000;
    transition: 0.4s;
}
.toast.show { transform: translateX(-50%) translateY(0); }

footer { padding: 60px 5%; text-align: center; border-top: 1px solid var(--border); color: var(--text-muted); }

@media (max-width: 768px) {
    .drawer { max-width: 100%; }
}
