:root {
    --bg-dark: #0a0a0a;
    --bg-light: #161616;
    --text-main: #f0f0f0;
    --text-muted: #555555;
    --accent-red: #d32f2f;
    --accent-neon: #ff003c;
    --font-family: 'Inter', -apple-system, sans-serif;
    --glow: 0 0 10px rgba(255, 0, 60, 0.7), 0 0 20px rgba(255, 0, 60, 0.5);
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.title-glow {
    color: var(--text-main);
    text-shadow: var(--glow);
    font-weight: 800;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 2px 10px rgba(255, 0, 60, 0.2);
    padding: 1rem 5%;
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent-neon);
    text-shadow: var(--glow);
    letter-spacing: 3px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-neon);
    transition: var(--transition);
    box-shadow: var(--glow);
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.cart-icon-container {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: var(--accent-neon);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--glow);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--accent-neon);
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-neon);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    box-shadow: var(--glow);
    border-color: var(--accent-neon);
}

.btn-solid {
    background: var(--accent-neon);
    border-color: var(--accent-neon);
    color: var(--text-main);
}

.btn-solid:hover {
    background: var(--accent-red);
    box-shadow: var(--glow);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 5%;
    text-align: center;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(circle at center, var(--bg-light) 0%, var(--bg-dark) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* Sections */
.section {
    padding: 5rem 5%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--accent-neon);
    box-shadow: var(--glow);
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* Product Card */
.product-card {
    background: var(--bg-light);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 0, 60, 0.3);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 0, 60, 0.2);
}

.product-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img {
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.8rem;
    color: #1A1A1A;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.product-card .btn {
    width: 100%;
    text-align: center;
    margin-top: auto;
}

/* Forms */
.form-container {
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 0, 60, 0.2);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent-neon);
    box-shadow: 0 0 8px rgba(255, 0, 60, 0.3);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 1rem;
}

.checkbox-group input {
    margin-top: 5px;
    accent-color: var(--accent-neon);
}

.checkbox-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 8rem 5% 5rem;
}

.legal-content h2 {
    margin-top: 2.5rem;
    color: var(--accent-neon);
}

.legal-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.legal-content ul {
    list-style: disc;
    margin-left: 2rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* Footer */
footer {
    background: var(--bg-light);
    padding: 4rem 5% 2rem;
    border-top: 1px solid rgba(255, 0, 60, 0.2);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--accent-neon);
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--accent-neon);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: rgba(10, 10, 10, 0.95);
    border-left: 4px solid var(--accent-neon);
    color: var(--text-main);
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease forwards, fadeOut 0.5s ease 2.5s forwards;
    min-width: 250px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Page Header (for non-hero pages) */
.page-header {
    padding: 8rem 5% 4rem;
    background: linear-gradient(to bottom, rgba(255, 0, 60, 0.1), var(--bg-dark));
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Cart Page */
.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.cart-items {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1.5rem;
}

.cart-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
    gap: 1rem;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-title {
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--accent-neon);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--accent-neon);
    border-color: var(--accent-neon);
}

.remove-btn {
    background: none;
    border: none;
    color: var(--accent-red);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.remove-btn:hover {
    color: white;
}

.cart-summary {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
}

/* Product Details */
.product-details-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.product-gallery img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(255, 0, 60, 0.2);
    box-shadow: var(--glow);
}

.detail-category {
    color: var(--accent-neon);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.detail-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.detail-price {
    font-size: 2rem;
    color: white;
    margin-bottom: 2rem;
    font-weight: bold;
}

.detail-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* simple mobile approach */
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .cart-layout {
        grid-template-columns: 1fr;
    }

    .product-details-container {
        grid-template-columns: 1fr;
    }
}






/* --- Visibility Protocol CSS --- */
.reveal {
    opacity: 1;
    transform: none;
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.reveal.js-hidden {
    opacity: 0;
    transform: translateY(40px);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
