:root {
    --primary: #ff007b;
    --primary-glow: rgba(255, 0, 123, 0.5);
    --secondary: #9d4edd;
    --dark-bg: #050507;
    --card-bg: rgba(20, 20, 25, 0.6);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #a0a0b0;
    --green: #00e676;
    --header-bg: rgba(0, 0, 0, 0.8);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
    box-shadow: 0 0 10px var(--primary-glow);
}
::-webkit-scrollbar-thumb:hover {
    background: #d00065;
}

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

body {
    background-color: var(--dark-bg);
    color: var(--text-main);
    font-family: 'Rajdhani', sans-serif;
    overflow-x: hidden;
}

/* Background Stars */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: 
        radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 3px),
        radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 2px);
    background-size: 550px 550px, 350px 350px;
    background-position: 0 0, 40px 60px;
    opacity: 0.5;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 0, 123, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.4s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

header.scrolled {
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.8);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0 0 10px var(--primary);
}

.logo img {
    height: 70px; /* Reduced to 70px */
    filter: drop-shadow(0 0 10px var(--primary-glow));
    transition: transform 0.3s;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: #fff;
    background: rgba(157, 78, 221, 0.1);
    box-shadow: 0 0 15px rgba(157, 78, 221, 0.2);
    border: 1px solid var(--primary);
}

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

/* Buttons */
.btn {
    padding: 10px 25px;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn-primary {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary-glow);
    box-shadow: 0 0 10px rgba(157, 78, 221, 0.2);
}

.btn-primary:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 25px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

.w-100 { width: 100%; }

/* Hero Slider */
.hero {
    padding: 0;
    height: 500px; /* Fixed height as requested */
    background: #000;
    position: relative;
    overflow: hidden;
}

.hero-slider-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: grab;
}

.hero-slider-container:active {
    cursor: grabbing;
}

.hero-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-out;
}

.banner-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    background: radial-gradient(circle, rgba(0,0,0,0.6) 0%, transparent 70%);
    width: 100%;
    pointer-events: none; /* Let clicks pass through to drag */
}

.banner-content h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(0,0,0,0.8);
    color: #fff;
}

.banner-content p {
    color: #ddd;
    font-size: 1.4rem;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
    font-weight: 500;
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--primary);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }

.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    transform: scale(1.2);
}

/* Neon Separator - Lightning/Smoke Effect */
.neon-separator {
    width: 100%;
    height: 4px;
    background: transparent;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 10;
    overflow: visible; /* Allow glow to spill */
}

/* Static Base Line */
.neon-separator .static-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(157, 78, 221, 0.3); /* Dim purple/primary */
    box-shadow: 0 0 5px rgba(157, 78, 221, 0.2);
    z-index: 1;
}

/* Dynamic Bolts */
.neon-separator span {
    position: absolute;
    top: -2px; /* Slightly above/centered */
    left: 0;
    height: 8px; /* Thicker for the bolt effect */
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(157, 78, 221, 0) 10%,
        rgba(157, 78, 221, 0.5) 40%, /* Smoke tail */
        var(--primary) 70%, 
        #fff 90%, /* Bright head */
        transparent 100%
    );
    box-shadow: 
        0 0 15px var(--primary),
        0 0 30px #fff;
    filter: blur(2px);
    opacity: 0;
    z-index: 2;
    animation: lightning-scan 3s linear infinite;
    pointer-events: none;
}

.neon-separator span:nth-child(1) {
    animation-delay: 0s;
    animation-duration: 2.5s;
}

.neon-separator span:nth-child(2) {
    animation-delay: 0.8s;
    animation-duration: 3s;
    width: 300px; /* Smaller bolt */
    filter: blur(2px);
}

.neon-separator span:nth-child(3) {
    animation-delay: 1.5s;
    animation-duration: 2s;
    width: 600px; /* Larger bolt */
}

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

.section-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: #fff;
    text-transform: uppercase;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding-bottom: 50px;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.3);
}

.product-img {
    height: 200px;
    width: 100%;
    padding: 10px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.badge-category {
    font-size: 0.7rem;
    color: var(--text-muted);
    border: 1px solid var(--card-border);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 8px;
}

.product-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #fff;
}

.product-description {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.4;
}

.product-price {
    color: var(--green);
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 230, 118, 0.3);
    margin-top: auto;
    margin-bottom: 15px;
    display: block;
}

.add-btn {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--green);
    color: var(--green);
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}

.add-btn:hover {
    background: var(--green);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.5);
}

/* Product Details Page - Redesign */
.product-details-page { 
    padding: 60px 0; 
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.product-content-grid { 
    display: grid; 
    grid-template-columns: 1.5fr 1fr; 
    gap: 60px; 
    background: rgba(15, 15, 19, 0.7); /* Glass effect */
    backdrop-filter: blur(20px);
    padding: 50px; 
    border-radius: 24px; 
    border: 1px solid rgba(157, 78, 221, 0.2); 
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

/* Left Column: Gallery */
.product-gallery { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
}

.main-image { 
    width: 100%; 
    height: 500px; /* Taller image area */
    background: radial-gradient(circle at center, rgba(157, 78, 221, 0.05) 0%, rgba(0,0,0,0.3) 100%); 
    border-radius: 16px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    border: 1px solid rgba(255,255,255,0.05); 
    overflow: hidden; 
    position: relative;
}

.main-image img { 
    max-width: 90%; 
    max-height: 90%; 
    object-fit: contain; 
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5)); 
    transition: transform 0.3s;
}

.main-image:hover img {
    transform: scale(1.02);
}

.thumbnail-list { 
    display: flex; 
    gap: 15px; 
    overflow-x: auto; 
    padding: 5px; 
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.thumbnail-list img { 
    width: 100px; 
    height: 70px; 
    object-fit: cover; 
    border-radius: 8px; 
    cursor: pointer; 
    border: 2px solid transparent; 
    transition: all 0.3s; 
    background: rgba(0,0,0,0.3); 
    opacity: 0.7;
}

.thumbnail-list img:hover, .thumbnail-list img.active { 
    border-color: var(--primary); 
    box-shadow: 0 0 15px var(--primary-glow); 
    opacity: 1;
}

/* Right Column: Info */
.product-info-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.badge-category {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    align-self: flex-start;
    margin-bottom: 15px;
    box-shadow: 0 0 10px rgba(157, 78, 221, 0.4);
}

.product-info-panel h1 { 
    font-family: 'Orbitron', sans-serif; 
    font-size: 3rem; 
    color: #fff; 
    margin: 0 0 20px 0; 
    text-transform: uppercase;
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(157, 78, 221, 0.2);
}

.price-box { 
    margin: 20px 0 40px; 
    display: flex; 
    align-items: flex-start; 
    gap: 8px; 
    background: rgba(0, 230, 118, 0.05);
    padding: 15px 25px;
    border-radius: 12px;
    border: 1px solid rgba(0, 230, 118, 0.2);
    display: inline-flex;
}

.price-box .currency { 
    font-size: 1.5rem; 
    color: var(--green); 
    margin-top: 8px; 
    font-weight: 600;
}

.price-box .amount { 
    font-size: 3.5rem; 
    font-weight: 700; 
    color: var(--green); 
    line-height: 1; 
    text-shadow: 0 0 20px rgba(0, 230, 118, 0.3); 
}

.description-box {
    background: rgba(255,255,255,0.03);
    padding: 25px;
    border-radius: 12px;
    border-left: 3px solid var(--primary);
    margin-bottom: 40px;
}

.description-box h3 { 
    color: #fff; 
    margin-bottom: 15px; 
    font-family: 'Orbitron', sans-serif; 
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.description-box p { 
    color: var(--text-muted); 
    line-height: 1.8; 
    font-size: 1rem;
}

.action-box .btn { 
    font-size: 1.3rem; 
    padding: 20px; 
    letter-spacing: 2px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(157, 78, 221, 0.1), rgba(255, 0, 127, 0.1));
    border: 1px solid var(--primary);
}

.action-box .btn:hover {
    background: var(--primary);
    box-shadow: 0 0 40px var(--primary-glow);
    transform: translateY(-3px);
}

@media (max-width: 1024px) { 
    .product-content-grid { 
        grid-template-columns: 1fr; 
        gap: 40px;
    } 
    .main-image { 
        height: 350px; 
    }
    .product-info-panel h1 {
        font-size: 2.5rem;
    }
}

/* Modal (Login) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--primary);
    padding: 30px;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 0 30px rgba(157, 78, 221, 0.3);
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--text-muted); }
.form-group input { width: 100%; padding: 12px; background: #1a1a20; border: 1px solid #2a2a35; color: #fff; border-radius: 8px; }
.form-group input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 10px rgba(157, 78, 221, 0.3); }

/* Loader */
.spinner { width: 50px; height: 50px; border: 3px solid rgba(255,255,255,0.1); border-radius: 50%; border-top-color: var(--primary); animation: spin 1s linear infinite; margin: 0 auto 20px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-products { text-align: center; grid-column: 1 / -1; padding: 50px; }



@keyframes lightning-scan {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(100vw);
        opacity: 0;
    }
}
