/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    overflow-y: auto; /* Force standard scroll */
}

body {
    font-family: var(--font-main);
    line-height: 1.5;
}

#canvas-container {
    position: fixed; /* Changed from absolute to fixed */
    top: 0;
    left: 0;
    width: 100vw; /* Use viewport width */
    height: 100vh; /* Use viewport height */
    z-index: -1; /* Ensure it's behind all other content */
}

:root {
    --bg-color: #050505;
    --text-color: #e0e0e0;
    --accent-color: #39ff14; /* Acid Green */
    --secondary-accent: #ff00ff; /* Neon Magenta */
    --card-bg: #111;
    --font-main: 'Inter', sans-serif;
    --font-mono: 'Courier Prime', monospace;
    --font-display: 'Orbitron', sans-serif;
}



/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(57, 255, 20, 0.1);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.3s;
}

.icon-btn:hover {
    color: var(--accent-color);
    text-shadow: 0 0 5px var(--accent-color);
}

.site-logo {
    height: 30px; 
    width: auto;
}

/* Glitch Logo */
.glitch-logo {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 900;
    color: var(--text-color);
    position: relative;
    letter-spacing: 2px;
}

.glitch-logo::before,
.glitch-logo::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-logo::before {
    left: 2px;
    text-shadow: -1px 0 var(--secondary-accent);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-logo::after {
    left: -2px;
    text-shadow: -1px 0 var(--accent-color);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    5% { clip: rect(70px, 9999px, 11px, 0); }
    10% { clip: rect(26px, 9999px, 86px, 0); }
    15% { clip: rect(7px, 9999px, 18px, 0); }
    20% { clip: rect(61px, 9999px, 35px, 0); }
    25% { clip: rect(93px, 9999px, 13px, 0); }
    30% { clip: rect(54px, 9999px, 79px, 0); }
    35% { clip: rect(2px, 9999px, 60px, 0); }
    40% { clip: rect(65px, 9999px, 96px, 0); }
    45% { clip: rect(10px, 9999px, 1px, 0); }
    50% { clip: rect(53px, 9999px, 6px, 0); }
    55% { clip: rect(29px, 9999px, 32px, 0); }
    60% { clip: rect(73px, 9999px, 81px, 0); }
    65% { clip: rect(8px, 9999px, 19px, 0); }
    70% { clip: rect(46px, 9999px, 64px, 0); }
    75% { clip: rect(97px, 9999px, 52px, 0); }
    80% { clip: rect(15px, 9999px, 47px, 0); }
    85% { clip: rect(84px, 9999px, 78px, 0); }
    90% { clip: rect(59px, 9999px, 4px, 0); }
    95% { clip: rect(12px, 9999px, 91px, 0); }
    100% { clip: rect(38px, 9999px, 23px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    5% { clip: rect(5px, 9999px, 3px, 0); }
    10% { clip: rect(95px, 9999px, 64px, 0); }
    15% { clip: rect(34px, 9999px, 19px, 0); }
    20% { clip: rect(71px, 9999px, 49px, 0); }
    25% { clip: rect(16px, 9999px, 82px, 0); }
    30% { clip: rect(48px, 9999px, 11px, 0); }
    35% { clip: rect(92px, 9999px, 57px, 0); }
    40% { clip: rect(23px, 9999px, 35px, 0); }
    45% { clip: rect(67px, 9999px, 93px, 0); }
    50% { clip: rect(41px, 9999px, 2px, 0); }
    55% { clip: rect(89px, 9999px, 54px, 0); }
    60% { clip: rect(7px, 9999px, 73px, 0); }
    65% { clip: rect(51px, 9999px, 18px, 0); }
    70% { clip: rect(25px, 9999px, 96px, 0); }
    75% { clip: rect(83px, 9999px, 45px, 0); }
    80% { clip: rect(12px, 9999px, 69px, 0); }
    85% { clip: rect(61px, 9999px, 27px, 0); }
    90% { clip: rect(39px, 9999px, 85px, 0); }
    95% { clip: rect(98px, 9999px, 6px, 0); }
    100% { clip: rect(55px, 9999px, 31px, 0); }
}

.icon-link img, .search-btn img {
    width: 20px;
    height: 20px;
    transition: filter 0.3s;
}

.contact-btn {
    background-color: transparent;
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: bold;
    font-family: var(--font-mono);
    text-transform: uppercase;
    border: 1px solid var(--text-color);
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.contact-btn:hover {
    background-color: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

/* Cart Icon */
.cart-container {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.cart-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.2s;
}

.cart-container:hover .cart-icon {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: var(--accent-color);
    color: #000;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 50%;
    min-width: 16px;
    text-align: center;
}

.mobile-cart-icon {
    filter: invert(1); /* Make black icon white on black bg if needed, but header is black now */
}

/* Hero Section */
.hero {
    padding: 100px 20px 40px; /* Top padding for fixed header */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background-color: #000;
}
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(57, 255, 20, 0.1) 0%, transparent 60%),
        linear-gradient(0deg, transparent 24%, rgba(255, 255, 255, .05) 25%, rgba(255, 255, 255, .05) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, .05) 75%, rgba(255, 255, 255, .05) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(255, 255, 255, .05) 25%, rgba(255, 255, 255, .05) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, .05) 75%, rgba(255, 255, 255, .05) 76%, transparent 77%, transparent);
    background-size: 100% 100%, 50px 50px, 50px 50px;
}

.hero-background-text {
    display: none; /* Hidden on mobile by default */
}

.slider-arrow {
    display: none; /* Hidden on mobile */
}

.slider-dots {
    display: none; /* Hidden on mobile */
}

.hero-content {
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero-placeholder {
    width: 100%;
    max-width: 400px;
    height: 300px;
    background-color: rgba(10, 10, 10, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #333;
    color: var(--text-color);
    font-weight: bold;
    position: relative;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.glitch-text {
    font-family: var(--font-display);
    font-size: 60px;
    color: var(--text-color);
    position: relative;
    text-transform: uppercase;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 var(--secondary-accent);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 var(--accent-color);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 2s infinite linear alternate-reverse;
}

/* Product Grid */
.products {
    padding: 40px 20px;
    background-color: #050505;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 15px;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
    }
}

.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image-container {
    position: relative;
    width: 100%;
    padding-top: 125%; /* Taller Aspect Ratio */
    background-color: #1a1a1a;
    margin-bottom: 15px;
    border: 1px solid #333;
    transition: all 0.3s;
    overflow: hidden;
}

.product-card:hover .product-image-container {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.1);
}

.image-placeholder {
    display: none; /* Hide placeholder */
}

.product-image, .product-image-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.product-image-hover {
    opacity: 0;
    transform: scale(1.1);
}

.product-image-container:hover .product-image {
    opacity: 0;
}

.product-image-container:hover .product-image-hover {
    opacity: 1;
    transform: scale(1);
}

.preorder-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--secondary-accent);
    color: #fff;
    padding: 5px 10px;
    font-size: 10px;
    font-weight: 900;
    z-index: 10;
    font-family: var(--font-display);
    box-shadow: 0 0 10px var(--secondary-accent);
    letter-spacing: 1px;
}

.release-date {
    font-family: var(--font-mono);
    font-size: 12px;
    color: #888;
    margin-bottom: 15px;
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--accent-color);
    color: #000;
    width: 40px;
    height: 40px;
    border-radius: 0; /* Square for edgier look */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 0 10px var(--accent-color);
}

.product-title {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    line-height: 1.4;
    letter-spacing: 1px;
    color: var(--text-color);
}

.price-container {
    margin-bottom: 15px;
    font-family: var(--font-mono);
    font-size: 14px;
}

.current-price {
    font-weight: bold;
    margin-right: 5px;
    color: var(--accent-color);
    text-shadow: 0 0 5px rgba(57, 255, 20, 0.5);
}

.old-price {
    color: #666;
    text-decoration: line-through;
}

.buy-btn {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid #333;
    padding: 12px 0;
    width: 100%;
    font-size: 14px;
    cursor: pointer;
    font-family: var(--font-display);
    border-radius: 0;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 900;
}

.buy-btn:hover {
    background-color: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
}

.modal-content.product-detail-content {
    max-width: 700px; /* Wider for product details */
    width: 95%;
    padding: 20px;
}

.product-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.product-gallery {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin-bottom: 20px;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    border: 1px solid #555;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
}

.gallery-arrow:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #000;
}

.gallery-arrow.left {
    left: 10px;
}

.gallery-arrow.right {
    right: 10px;
}

.product-modal-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.2);
}

.product-modal-price {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.product-modal-description {
    font-family: var(--font-main);
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 500px;
}

.product-modal-description strong {
    color: var(--secondary-accent);
    text-shadow: 0 0 5px var(--secondary-accent);
}

.product-detail-content .buy-btn {
    max-width: 300px;
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    cursor: auto;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #0a0a0a;
    border: 1px solid var(--accent-color);
    width: 90%;
    max-width: 450px;
    padding: 30px;
    position: relative;
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.1);
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideIn {
    from { transform: translateY(50px) scale(0.9); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.modal-header h2 {
    font-family: var(--font-display);
    color: var(--text-color);
    margin: 0;
    font-size: 20px;
    letter-spacing: 2px;
}

.close-modal {
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--accent-color);
}

/* Cart Items */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #222;
}

.cart-item-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 1px solid #333;
}

.cart-item-text h4 {
    font-family: var(--font-display);
    font-size: 12px;
    margin-bottom: 5px;
    color: var(--text-color);
    text-transform: uppercase;
}

.cart-item-text p {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-color);
    font-weight: bold;
}

.remove-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.3s;
}

.remove-btn:hover {
    color: #ff3b3b;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-display);
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-color);
    border-top: 1px solid #333;
    padding-top: 15px;
}

.checkout-btn, .pay-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--accent-color);
    color: #000;
    border: none;
    font-weight: 900;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 16px;
    text-transform: uppercase;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.checkout-btn:hover, .pay-btn:hover {
    background-color: #fff;
    box-shadow: 0 0 20px rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

/* Checkout Form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 10px;
    color: #888;
    margin-bottom: 8px;
    font-family: var(--font-display);
    letter-spacing: 1px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background-color: #111;
    border: 1px solid #333;
    color: #fff;
    font-family: var(--font-mono);
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.1);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 12px;
    font-family: var(--font-mono);
}

.radio-label input {
    width: auto;
    accent-color: var(--accent-color);
}

.checkout-logo {
    height: 30px;
    margin-right: 10px;
}

.payment-info {
    font-size: 10px;
    color: #666;
    text-align: center;
    margin-bottom: 20px;
    font-style: italic;
    font-family: var(--font-mono);
}

/* Footer */
.footer {
    background-color: #050505;
    color: var(--text-color);
    padding: 80px 20px;
    text-align: center;
    font-family: var(--font-mono);
    border-top: 1px solid #333;
    position: relative;
    z-index: 2;
}

.delivery-text {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
}

.origin-text {
    font-size: 14px;
    margin-bottom: 40px;
    color: #666;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 50px 0;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    border-radius: 0; /* Square */
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s;
    cursor: pointer;
}

.social-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: filter 0.3s;
}

.social-icon:hover {
    background-color: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
    box-shadow: 0 0 20px var(--accent-color);
    transform: rotate(45deg) scale(1.1);
}

.social-icon:hover img {
    filter: brightness(0); /* Make icon black on hover */
}

.made-on {
    font-family: var(--font-display);
    color: #333;
    font-size: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.5;
}

/* Desktop Adaptation */
@media (min-width: 992px) {
    .header {
        background-color: rgba(5, 5, 5, 0.8);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 20px 50px;
    }

    .site-logo {
        filter: none; 
    }

    .icon-link img, .search-btn img {
        filter: none;
    }
    
    .invert-icon {
        /* If icons are black, invert them to white */
        /* Assuming icons are white by default from URL */
    }

    /* Hero Section Desktop */
    .hero {
        min-height: 100vh;
        padding: 0;
    }

    .hero-content {
        max-width: 1000px;
        z-index: 2;
    }

    .hero-placeholder {
        max-width: 100%;
        height: 600px;
        border: none;
        background-color: transparent;
        box-shadow: none;
    }

    /* Background Text */
    .hero-background-text {
        display: block;
        position: absolute;
        font-family: var(--font-display);
        font-size: 250px;
        color: rgba(255, 255, 255, 0.02);
        font-weight: 900;
        z-index: 1;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
        text-transform: uppercase;
    }

    .hero-background-text.left {
        left: -80px;
        writing-mode: vertical-rl;
        text-orientation: upright;
        letter-spacing: -20px;
        color: transparent;
        -webkit-text-stroke: 2px rgba(255, 255, 255, 0.1);
    }

    .hero-background-text.right {
        right: -50px;
        color: rgba(57, 255, 20, 0.03); /* Faint green */
        font-size: 300px;
    }

    /* Slider Arrows */
    .slider-arrow {
        display: block;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: transparent;
        border: 1px solid #333;
        width: 80px;
        height: 80px;
        border-radius: 0;
        font-size: 40px;
        cursor: pointer;
        z-index: 10;
        display: flex;
        justify-content: center;
        align-items: center;
        color: var(--text-color);
        transition: all 0.3s;
    }
    
    .slider-arrow:hover {
        border-color: var(--accent-color);
        color: var(--accent-color);
        box-shadow: 0 0 20px rgba(57, 255, 20, 0.3);
    }

    .slider-arrow.left-arrow {
        left: 5%;
    }

    .slider-arrow.right-arrow {
        right: 5%;
    }

    /* Slider Dots */
    .slider-dots {
        display: flex;
        position: absolute;
        bottom: 50px;
        left: 50%;
        transform: translateX(-50%);
        gap: 20px;
        z-index: 10;
    }

    .dot {
        width: 12px;
        height: 12px;
        background-color: #333;
        border-radius: 0; /* Square dots */
        cursor: pointer;
        transition: background-color 0.3s;
        border: 1px solid transparent;
    }

    .dot.active {
        background-color: var(--accent-color);
        box-shadow: 0 0 15px var(--accent-color);
    }
    
    .dot:hover {
        border-color: var(--accent-color);
    }
}
