        :root {
            --bg: #050a15;
            --bg-alt: #081225;
            --accent: #0084ff;
            --primary-color: #0084ff;
            --glass: rgba(255, 255, 255, 0.03);
            --glass-border: rgba(255, 255, 255, 0.07);
            --muted: rgba(255,255,255,0.65); /* Updated from ww.html */
            --nav-height: 76px;             /* Updated from ww.html */
            --radius: 14px;
            --glass-bg: rgba(255, 255, 255, 0.03);
            --glass-border: rgba(255, 255, 255, 0.08);
            --glass-blur: blur(12px);
            --accent-glow: rgba(0, 132, 255, 0.5);
        }

        /* --- Global Styles --- */
        * { box-sizing: border-box; margin: 0; padding: 0; }
        /* Add this to your stylestore.css */
        body {
            -webkit-user-select: none; /* Safari */
            -ms-user-select: none;     /* IE 10 and 11 */
            user-select: none;         /* Standard syntax for Chrome, Firefox, and Edge */
            font-family: 'Poppins', sans-serif;
            background: var(--bg);
            background-image: 
                radial-gradient(circle at 10% 20%, rgba(0, 132, 255, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(0, 132, 255, 0.08) 0%, transparent 40%);
            color: #fff;
            overflow-x: hidden;
            line-height: 1.6;
            padding-top: var(--nav-height);
        }
        
        /* Optional: Allow selection in specific areas like search bars or login inputs */
        input, textarea {
            -webkit-user-select: text;
            -ms-user-select: text;
            user-select: text;
        }

        /* Custom Scrollbar */
        ::-webkit-scrollbar { width: 8px; }
        ::-webkit-scrollbar-track { background: var(--bg); }
        ::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 10px; }
        ::-webkit-scrollbar-thumb:hover { background: var(--accent); }

        /* --- Header --- */
    header {
      position: fixed;
      left: 0; right: 0; top: 0;
      height: var(--nav-height);
      display: flex;
      align-items: center;
      gap: 18px;
      padding: 12px 28px;
      backdrop-filter: blur(8px) saturate(1.05);
      background: linear-gradient(180deg, rgba(8,16,34,0.6), rgba(8,16,34,0.2));
      border-bottom: 1px solid rgba(255,255,255,0.04);
      z-index: 999;
    }
    .logo {
      font-weight: 800;
      font-size: 20px;
      color: var(--accent);
      letter-spacing: 0.6px;
    }
        .brand {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-left: 6px;
    }
        
        .icon-btn:hover { color: var(--accent); transform: translateY(-2px); }
        .icon-btn {
        background: transparent;
        border: 0;
        color: var(--muted);
        font-size: 18px;
        cursor: pointer;
        padding: 8px;
        border-radius: 8px;
        transition: all .18s ease;
        }
        .search {
        padding: 8px 12px;
        border-radius: 9px;
        background: rgba(255,255,255,0.03);
        border: 1px solid rgba(255,255,255,0.03);
        color: var(--muted);
        outline: none;
        min-width: 200px;
        }
    .nav-links {
      display: flex;
      gap: 22px;
      margin-left: 22px;
      align-items: center;
    }

    .nav-links a {
      color: var(--muted);
      text-decoration: none;
      font-weight: 600;
      font-size: 14px;
      position: relative;
      padding: 6px 0;
    }

    .nav-links a::after {
      content: "";
      position: absolute;
      left: 0; bottom: 1px;
      width: 100%; height: 3px;
      background: var(--accent);
      border-radius: 3px;
      transform: scaleX(0);
      transform-origin: right;
      transition: transform .25s ease;
    }

    .nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
    .nav-links a:hover { color: #fff; }

    .nav-right {
      margin-left: auto;
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .nav-left {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 120px;
    }

.slider {
    height: 480px; width: min(1300px, 94%); margin: 20px auto 40px;
    border-radius: 20px; overflow: hidden; position: relative;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    z-index: 2;
}
.slider-wrapper {
    position: relative;
    width: min(1300px, 94%);
    margin: 60px auto;
}

.slider-glow-container {
    position: absolute;
    inset: -100px; 
    z-index: -1;
    pointer-events: none;
    /* Removed the Pulse Animation from here */
}

.glow-layer {
    position: absolute;
    inset: 0;
    background-size: cover !important;
    background-position: center !important;
    /* Use a slightly smaller blur and pre-calculate with will-change */
    filter: blur(80px) saturate(1.6); 
    will-change: opacity; 
    transition: opacity 1.5s ease-in-out;
    opacity: 0;
}

/* Static brightness boost instead of heavy real-time filters */
.glow-layer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    filter: brightness(1.2);
    opacity: 0.5;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 0.9; }
}
        .slides { display: flex; height: 100%; transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1); }
        .slide {
            min-width: 100%; position: relative; display: flex; align-items: flex-end;
            padding: 60px; background-size: cover !important; background-position: center !important;
        }
        .slide::after {
            content: ''; position: absolute; inset: 0;
            background: linear-gradient(to top, rgba(5,10,21,0.95) 0%, rgba(5,10,21,0.3) 50%, transparent 100%);
        }
        .slide-content { position: relative; z-index: 2; max-width: 650px; }
        .slide-content h1 { font-size: 52px; font-weight: 800; margin-bottom: 12px; line-height: 1.1; letter-spacing: -1px; }
        .slide-content p { color: var(--muted); font-size: 18px; margin-bottom: 25px; }

        /* --- Categories --- */
        .categories { display: flex; justify-content: center; gap: 12px; margin: 50px 0; }
.cat-btn {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.cat-btn.active {
    background: var(--accent);
    border-color: var(--accent-glow);
    box-shadow: 0 0 25px var(--accent-glow);
}
.cat-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 132, 255, 0.2);
    transform: translateY(-2px);
}

        .products {
            display: grid;        grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
            gap: 20px; width: min(1300px, 94%); margin: 0 auto 80px;
        }

#productGrid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr)); 
    gap: 20px;
    width: min(1400px, 96%);
    margin: 0 auto 80px;
    padding: 20px;
}
/* --- The New Nike-Style Card --- */
.container {
    position: relative;
    /* This allows the grid to handle the layout */
}

.card {
    position: relative;
    width: 100%; /* Fill the grid column */
    height: 380px; /* Reduced height from 450px */
    background: #fdfdfd; /* Off-white background */
    border-radius: 20px;
    overflow: hidden;
    transition: 0.5s;
    cursor: pointer;
    border: 1px solid var(--glass-border); /* Kept from your old style */
}

/* Container to establish 3D space */
.elytra-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    perspective: 1000px;
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Base wing style */
.wing {
    position: absolute;
    width: 60px;
    height: 120px;
    background-size: 200% 100%; /* Show half the PNG per wing if needed */
    background-repeat: no-repeat;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top center;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
}

/* Initial Wing Positions */
.wing-left {
    transform: rotateY(20deg) rotateZ(10deg);
    background-position: left center;
    left: 40px;
}

.wing-right {
    transform: rotateY(-20deg) rotateZ(-10deg);
    background-position: right center;
    right: 40px;
}

/* Hover Animation: Wings spread and flap */
.card:hover .wing-left {
    transform: rotateY(60deg) rotateZ(-15deg) scale(1.1);
}

.card:hover .wing-right {
    transform: rotateY(-60deg) rotateZ(15deg) scale(1.1);
}

/* Slow flapping idle animation */
.elytra-container {
    animation: elytraFloat 3s ease-in-out infinite;
}

@keyframes elytraFloat {
    0%, 100% { transform: translateY(0) rotateX(0deg); }
    50% { transform: translateY(-10px) rotateX(5deg); }
}

/* Ambient Glow Effect */
.card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 
                0 0 30px rgba(155, 220, 40, 0.2);
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

/* Circular Background Pop */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    clip-path: circle(150px at 80% 20%);
    transition: 0.5s ease-in-out;
    z-index: 1;
}

.card:hover::before {
    clip-path: circle(300px at 50% -20%);
}

/* Faded Background Typography */
.card::after {
    content: 'ASTRA'; /* Changed to NIKE or you can use var(--category) */
    position: absolute;
    top: 30%;
    left: -20%;
    font-size: 8em;
    font-weight: 900;
    font-style: italic;
    color: rgba(255, 255, 255, 0.04);
    pointer-events: none;
    z-index: 0;
    transition: 0.5s;
}

.card:hover::after {
    left: -10%;
    color: rgba(255, 255, 255, 0.1);
}

/* 3D Cape Container */
.cape-container {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cape-3d {
    width: 80px;
    height: 140px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-20deg) rotateX(10deg);
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Rotate the cape on hover so user sees the back */
.card:hover .cape-3d {
    transform: rotateY(180deg) rotateX(0deg) scale(1.1);
}

.cape-face {
    position: absolute;
    /* Reduced from 640% to 500% to "zoom out" the texture into the frame */
    background-size: 500% 250%; 
    image-rendering: pixelated;
    background-repeat: no-repeat;
}

/* Front face: The main galaxy pattern */
.cape-face.front {
    width: 80px; height: 140px;
    background-position: 4% 8%; 
    transform: translateZ(5px);
}

/* Back face: Usually the darker/inside part */
.cape-face.back {
    width: 80px; height: 140px;
    background-position: 30% 8%; 
    transform: rotateY(180deg) translateZ(5px);
}

/* Left side: The thin strip between the two main textures */
.cape-face.left {
    width: 10px; height: 140px;
    background-position: 0% 8%; 
    transform: rotateY(-90deg) translateZ(0px);
}

/* Right side: The other thin strip */
.cape-face.right {
    width: 10px; height: 140px;
    background-position: 23% 8%; 
    transform: rotateY(90deg) translateZ(80px);
}
.cape-face.left { transform: rotateY(-90deg) translateZ(5px); }
.cape-face.right { transform: rotateY(90deg) translateZ(75px); }
/* Mode Button Active State */
.mode-btn {
    width: auto !important;
    padding: 0 10px !important;
    font-size: 10px !important;
    font-weight: 700;
}

.mode-btn.active {
    background: var(--primary-color) !important;
    color: white !important;
}

/* Adjust card background for "Off-White" from your last request */
.cape-card {
    background: #f9f9f9 !important;
}

.imgBx {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 100%;
    height: 220px;
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.card:hover .imgBx {
    top: 0%;
    transform: translateY(-10%) scale(1.1);
}

.imgBx img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-25deg);
    width: 270px;
    filter: drop-shadow(5px 15px 15px rgba(0,0,0,0.5));
    object-fit: contain; /* Important for product images */
}

.contentBx {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100px;
    text-align: center;
    transition: 0.5s;
    z-index: 11;
}

.card:hover .contentBx {
    height: 210px;
}

.contentBx h2 {
    position: relative;
    font-weight: 600;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 10px;
}

/* Hidden Details Logic */
.size, .color {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 20px;
    transition: 0.5s;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.card:hover .size {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.card:hover .color {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.size h3, .color h3 {
    color: #fff;
    font-weight: 300;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-right: 10px;
}

.size span {
    width: 26px;
    height: 26px;
    text-align: center;
    line-height: 26px;
    font-size: 12px;
    background: #fff;
    margin: 0 5px;
    color: #111;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}

.size span:hover {
    background: var(--primary-color);
    color: #fff;
}

.color span {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    border: 2px solid transparent;
}

.color span:hover {
    border: 2px solid #fff;
}

/* Button Styling */
.contentBx a {
    display: inline-block;
    padding: 10px 30px;
    background: #fff;
    border-radius: 30px;
    margin-top: 15px;
    text-decoration: none;
    font-weight: 700;
    color: #111;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.5s;
}

.card:hover .contentBx a {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.card:hover .contentBx a:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Move the badge so it doesn't block the text */
.badge {
    position: absolute; 
    top: 10px; 
    right: 10px; 
    background: #ff3e3e;
    padding: 3px 8px; 
    border-radius: 4px; 
    font-size: 9px; 
    font-weight: 800; 
    text-transform: uppercase;
    z-index: 5;
}
        /* --- Buttons --- */
        .btn-primary {
            background: linear-gradient(135deg, var(--accent), #00c2ff);
            color: #fff; border: none; padding: 12px 28px; border-radius: 10px;
            font-weight: 700; cursor: pointer; transition: 0.3s;
            box-shadow: 0 4px 15px var(--accent-glow);
        }
        .btn-primary:hover { transform: scale(1.05); box-shadow: 0 8px 25px var(--accent-glow); }
        .btn-ghost {
            background: var(--glass); border: 1px solid var(--glass-border); color: #fff;
            padding: 12px 24px; border-radius: 10px; cursor: pointer; transition: 0.3s; font-weight: 600;
        }
        .btn-ghost:hover { background: var(--glass-border); color: var(--accent); }
            .btn-login {
      background: transparent;
      color: var(--muted);
      border: 1px solid rgba(255,255,255,0.07);
      padding: 10px 14px;
      border-radius: 8px;
      cursor: pointer;
      font-weight: 600;
      transition: all .18s ease;
    }
#loginModal.active {
    display: flex;
    background: rgba(0, 0, 0, 0.7); /* Darken background when login is open */
}
/* --- Polished Ash Theme Popup Styles --- */
.wrapper, .register-popup {
    background: rgba(10, 13, 20, 0.507) !important; /* Dark Ash tint */
    backdrop-filter: blur(20px) saturate(1.5) !important;
    border: 1px solid var(--glass-border) !important;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: min(400px, 90%); /* Responsive width */
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    visibility: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
}

.wrapper.active, .register-popup.active {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.form-box h2 {
    color: #fff;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

.input-box {
    position: relative;
    width: 100%;
    height: 50px;
    margin: 25px 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s ease;
}

/* Highlight border on focus */
.input-box:focus-within {
    border-color: var(--accent);
}

.input-box input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 15px;
    color: #fff;
    padding: 0 35px 0 5px; /* Space for the icon on the right */
}

.input-box label {
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

/* Floating label logic */
.input-box input:focus ~ label,
.input-box input:valid ~ label {
    top: -5px;
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
}

.input-box .icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--muted);
}

.icon-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1;
    transition: all 0.3s ease;
}

.icon-close:hover {
    background: rgba(255, 62, 62, 0.2); /* Red tint on hover */
    color: #ff3e3e;
}

.btn {
    width: 100%;
    height: 48px;
    background: var(--accent);
    border: none;
    outline: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    color: #fff;
    font-weight: 700;
    transition: 0.3s;
    margin-top: 10px;
}

.btn:hover {
    background: #0074e0;
    box-shadow: 0 0 20px var(--accent-glow);
}

.login-register {
    font-size: 13px;
    color: var(--muted);
    text-align: center;
    margin: 20px 0 0;
}

.login-register a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}

.login-register a:hover {
    text-decoration: underline;
}

/* Fix for the validation message spacing */
#message {
    display: block;
    font-size: 12px;
    margin-top: -15px;
    margin-bottom: 15px;
    min-height: 15px;
}
#loginModal.active .wrapper {
    visibility: visible;
    opacity: 1;
}
    .btn-login:hover { 
      transform: translateY(-2px); 
      color: var(--accent); 
      border-color: rgba(24, 105, 226, 0.562); 
    }

        /* --- Partners Marquee --- */
        .partners-section { margin-bottom: 100px; padding: 40px 0; background: rgba(255,255,255,0.01); border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); }
        .marquee { width: 100%; overflow: hidden; display: flex; }
        .marquee-content { display: flex; gap: 100px; animation: scroll 30s linear infinite; }
        @keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
        .partner-logo { font-size: 22px; font-weight: 800; color: var(--muted); white-space: nowrap; transition: 0.3s; cursor: default; }
        .partner-logo:hover { color: var(--accent); opacity: 1; }

        /* --- Modals & Drawer --- */
        .modal {
            position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px);
            display: none; align-items: center; justify-content: center; z-index: 2000;
        }
        .modal.active { display: flex; }
        .sheet {
            background: var(--bg-alt); border: 1px solid var(--glass-border); border-radius: 20px;
            padding: 40px; width: min(500px, 90%); position: relative;
        }

        .cart-drawer {
            position: fixed; right: 0; top: 0; height: 100%; width: 400px;
            background: var(--bg-alt); border-left: 1px solid var(--glass-border);
            transform: translateX(100%); transition: 0.5s cubic-bezier(0.2, 1, 0.2, 1); z-index: 2100;
            padding: 40px; display: flex; flex-direction: column;
        }
        .cart-drawer.open { transform: translateX(0); }

        @media (max-width: 768px) {
            header { padding: 0 20px; }
            .nav-links { display: none; }
            .slide-content h1 { font-size: 36px; }
            .cart-drawer { width: 100%; }
            .cat-btn { padding: 10px 20px; font-size: 12px; }
            .search { min-width: 120px;}
        }

        /* Auth Popup Styling */
.auth-wrapper {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0; pointer-events: none;
    transition: 0.4s;
}

.auth-wrapper.active {
    opacity: 1; pointer-events: auto;
}

.form-container {
    background: var(--glass);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    width: 400px;
    position: relative;
}

.icon-close {
    position: absolute;
    top: 20px; right: 20px;
    cursor: pointer; font-size: 20px;
}

.input-box {
    position: relative;
    margin: 20px 0;
    border-bottom: 2px solid #fff;
}

.input-box input {
    width: 100%; height: 40px;
    background: transparent; border: none; outline: none;
    color: #fff; padding: 0 35px 0 5px;
}

.input-box label {
    position: absolute; top: 50%; left: 5px;
    transform: translateY(-50%);
    pointer-events: none; transition: 0.3s;
}

.input-box input:focus~label,
.input-box input:valid~label { top: -5px; }

.login-register {
    text-align: center; font-size: 14px; margin-top: 20px;
}

.login-register a { color: var(--accent); font-weight: 700; }
.auth-wrapper {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(15px);
    display: flex; justify-content: center; align-items: center;
    z-index: 10000; opacity: 0; pointer-events: none; transition: 0.4s;
}
.auth-wrapper.active { opacity: 1; pointer-events: auto; }
.form-container {
    background: rgba(255,255,255,0.05); padding: 40px; border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1); width: 400px; position: relative;
}
.forgot-link {
    display: block; text-align: right; font-size: 12px; color: #aaa;
    margin: -10px 0 20px; text-decoration: none;
}
.forgot-link:hover { color: var(--accent); }
/* Add spacing for the OTP input */
#otpInput::placeholder { letter-spacing: 0; font-size: 14px; opacity: 0.5; }