:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --accent-color: #f1f1f1;
    --secondary-text: #888888;
    --card-bg: #111111;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-text);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo a {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 3D Canvas */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Hero Section */
.hero {
    height: 100vh; /* Full screen height for 3D effect */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: transparent; /* Remove background to show WebGL */
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-content {
    z-index: 2;
    padding: 2rem;
}

/* Glitch Typography */
.glitch {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: 4px;
    position: relative;
    color: white;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

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

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

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9, 2px 2px #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

.hero-subtext {
    font-size: 1.2rem;
    color: var(--secondary-text);
    margin-bottom: 2.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 1rem 3rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--text-color);
    transition: all 0.4s ease;
    z-index: -1;
}

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

.btn-outline:hover {
    color: var(--bg-color);
}

@keyframes glitch-anim {
    0% { clip: rect(69px, 9999px, 83px, 0); }
    5% { clip: rect(78px, 9999px, 81px, 0); }
    10% { clip: rect(93px, 9999px, 14px, 0); }
    15% { clip: rect(32px, 9999px, 90px, 0); }
    20% { clip: rect(100px, 9999px, 100px, 0); }
    25% { clip: rect(79px, 9999px, 21px, 0); }
    30% { clip: rect(70px, 9999px, 29px, 0); }
    35% { clip: rect(10px, 9999px, 73px, 0); }
    40% { clip: rect(51px, 9999px, 85px, 0); }
    45% { clip: rect(79px, 9999px, 73px, 0); }
    50% { clip: rect(27px, 9999px, 34px, 0); }
    55% { clip: rect(76px, 9999px, 7px, 0); }
    60% { clip: rect(17px, 9999px, 8px, 0); }
    65% { clip: rect(20px, 9999px, 57px, 0); }
    70% { clip: rect(14px, 9999px, 3px, 0); }
    75% { clip: rect(26px, 9999px, 32px, 0); }
    80% { clip: rect(19px, 9999px, 4px, 0); }
    85% { clip: rect(11px, 9999px, 33px, 0); }
    90% { clip: rect(79px, 9999px, 26px, 0); }
    95% { clip: rect(67px, 9999px, 92px, 0); }
    100% { clip: rect(50px, 9999px, 55px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(11px, 9999px, 40px, 0); }
    5% { clip: rect(17px, 9999px, 60px, 0); }
    10% { clip: rect(35px, 9999px, 25px, 0); }
    15% { clip: rect(98px, 9999px, 17px, 0); }
    20% { clip: rect(69px, 9999px, 66px, 0); }
    25% { clip: rect(59px, 9999px, 38px, 0); }
    30% { clip: rect(19px, 9999px, 9px, 0); }
    35% { clip: rect(8px, 9999px, 60px, 0); }
    40% { clip: rect(28px, 9999px, 71px, 0); }
    45% { clip: rect(16px, 9999px, 21px, 0); }
    50% { clip: rect(74px, 9999px, 66px, 0); }
    55% { clip: rect(61px, 9999px, 80px, 0); }
    60% { clip: rect(25px, 9999px, 6px, 0); }
    65% { clip: rect(48px, 9999px, 5px, 0); }
    70% { clip: rect(65px, 9999px, 24px, 0); }
    75% { clip: rect(60px, 9999px, 12px, 0); }
    80% { clip: rect(32px, 9999px, 62px, 0); }
    85% { clip: rect(2px, 9999px, 28px, 0); }
    90% { clip: rect(39px, 9999px, 80px, 0); }
    95% { clip: rect(59px, 9999px, 26px, 0); }
    100% { clip: rect(11px, 9999px, 50px, 0); }
}

/* Products Section */
.products-section {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.products-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    font-weight: 800;
    letter-spacing: 2px;
}

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

.product-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.product-image {
    position: relative;
    padding-top: 133%; /* 3:4 aspect ratio */
    background: #222;
    overflow: hidden;
}

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

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

.badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ff3333;
    color: white;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}

.product-info {
    padding: 1.5rem;
    text-align: center;
}

.product-info h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.price {
    font-size: 1.1rem;
    color: var(--accent-color);
}

.sold-out .product-image img {
    opacity: 0.6;
    filter: grayscale(100%);
}

/* Footer */
.footer {
    padding: 4rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.03); /* TRUE GLASS */
    backdrop-filter: blur(30px) saturate(150%);
    margin-top: 5rem;
    border-radius: 40px 40px 0 0;
    position: relative;
    z-index: 5;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
}

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

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ff00c1;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.copyright {
    color: var(--secondary-text);
    font-size: 0.9rem;
}

/* Custom 3D Cursor */
body {
    cursor: none;
}
.cursor, .cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.cursor {
    width: 8px;
    height: 8px;
    background: #fff;
    box-shadow: 0 0 10px #fff, 0 0 20px #ff00c1, 0 0 30px #00fff9;
}
.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width 0.3s, height 0.3s, border-color 0.3s, transform 0.1s;
}
.cursor-follower.active {
    width: 60px;
    height: 60px;
    border-color: #ff00c1;
    background: rgba(255, 0, 193, 0.1);
    backdrop-filter: blur(2px);
}

/* Holographic 3D Cards */
.product-card {
    background: rgba(17, 17, 17, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    transition: border 0.3s ease;
}
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(125deg, rgba(255,255,255,0) 40%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 60%);
    background-size: 200% 200%;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s;
}
.product-card:hover::before {
    opacity: 1;
    animation: holographic-glare 2s infinite linear;
}
.product-info {
    transform: translateZ(30px); /* 3D pop out effect */
}
.product-image {
    transform: translateZ(20px) scale(0.95);
    border-radius: 8px;
}
@keyframes holographic-glare {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Magnetic Buttons styling */
.magnetic-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    cursor: none;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: background 0.3s ease, color 0.3s ease;
    z-index: 10;
}
.magnetic-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
}
.magnetic-btn span {
    position: relative;
    z-index: 11;
    pointer-events: none;
}
.btn-outline, .btn {
    cursor: none !important;
    z-index: 10;
}
/* Floating Navbar Glassmorphism */
.navbar {
    width: 90%;
    margin: 20px auto;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(20px) saturate(150%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}

/* 3D Loader */
#loader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    z-index: 9999999;
    display: flex;
    justify-content: center;
    align-items: center;
}
.liquid-dollar-container {
    position: relative;
    font-size: 6vw;
    font-weight: 900;
    font-family: 'Inter', sans-serif;
    letter-spacing: 10px;
    height: 10vw;
    width: 40vw;
}
.liquid-dollar {
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}
.liquid-dollar.outline {
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.1);
    color: transparent;
}
.liquid-dollar.fill {
    color: transparent;
    background: linear-gradient(0deg, #00fff9, #ff00c1);
    -webkit-background-clip: text;
    background-clip: text;
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
    filter: drop-shadow(0 0 20px rgba(0, 255, 249, 0.8));
}

/* 3D Press Button */
.btn-3d {
    background: transparent;
    border: none;
    padding: 0;
    cursor: none;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 0 0 rgba(0,0,0,0);
}
.btn-3d::before {
    content: "";
    position: absolute;
    top: 5px; left: 0; right: 0; bottom: -5px;
    background: rgba(255, 0, 193, 0.3);
    border-radius: 12px;
    z-index: -1;
    filter: blur(10px);
    transition: all 0.2s;
}
.btn-front {
    display: block;
    padding: 1.2rem 3rem;
    border-radius: 12px;
    background: linear-gradient(45deg, #111, #222);
    border: 1px solid rgba(255,255,255,0.2);
    transform: translateY(0);
    transition: transform 0.2s cubic-bezier(0.3, 0.7, 0.4, 1);
}
.btn-3d:active .btn-front {
    transform: translateY(5px);
}
.btn-3d:active::before {
    filter: blur(20px) brightness(1.5);
    background: rgba(0, 255, 249, 0.5);
}

/* 3D Flip Text Buttons (Footer) */
.btn-3d-flip {
    position: relative;
    display: inline-block;
    perspective: 500px;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: none;
}
.btn-3d-flip .flip-inner {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.5, 0, 0.2, 1);
    transform-style: preserve-3d;
    position: relative;
    transform-origin: center center -10px;
}
.btn-3d-flip .front, .btn-3d-flip .back {
    display: block;
    backface-visibility: hidden;
}
.btn-3d-flip .back {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotateX(90deg) translateZ(10px);
    color: #00fff9;
    text-shadow: 0 0 10px rgba(0, 255, 249, 0.5);
}
.btn-3d-flip .front {
    transform: translateZ(10px);
}
.btn-3d-flip:hover .flip-inner {
    transform: rotateX(-90deg);
}

/* Liquid WebGL container */
#product-webgl-container {
    overflow: hidden;
    cursor: none;
    background: transparent;
    padding-top: 0;
    height: 600px;
}
#product-img-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#product-webgl-container canvas {
    border-radius: 8px;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cart 3D List */
.cart-3d-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    perspective: 1000px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}
.cart-row-3d {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2.5rem;
    background: rgba(255, 255, 255, 0.05); /* TRUE GLASS */
    backdrop-filter: blur(30px) saturate(150%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.cart-row-3d:hover {
    border-color: rgba(255, 0, 193, 0.8);
    box-shadow: 0 20px 50px rgba(255, 0, 193, 0.3);
}
.cart-row-3d img {
    width: 90px;
    border-radius: 8px;
    transform: translateZ(40px);
}
.cart-item-details {
    flex: 2;
    margin-left: 2rem;
    text-align: left;
    transform: translateZ(30px);
}
.cart-item-qty {
    flex: 1;
    text-align: center;
    transform: translateZ(30px);
}
.cart-item-total {
    flex: 1;
    text-align: right;
    transform: translateZ(30px);
}
.cart-item-action {
    flex: 0.5;
    text-align: right;
    transform: translateZ(30px);
}
.qty-badge {
    background: linear-gradient(45deg, #ff00c1, #00fff9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 800;
}
.cart-summary-3d {
    margin: 2rem 0 4rem auto; /* Aligned to the right */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px) saturate(150%);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    max-width: 450px;
}
.cart-summary-3d p {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}
.total-glitch {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

/* Secret Shatter Overlay */
#secret-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(5,5,5,0.98);
    z-index: 999999;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    gap: 2rem;
    perspective: 1000px;
    backdrop-filter: blur(20px);
}

/* Cloth Canvas */
#cloth-canvas {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
}
.hero-content {
    z-index: 2;
    position: relative;
    pointer-events: none;
}
.hero-content a {
    pointer-events: auto;
}

/* Footer Massive Text */
.footer-massive-text {
    font-size: 8vw;
    font-weight: 900;
    text-align: center;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255,255,255,0.1);
    margin-bottom: 2rem;
    letter-spacing: -5px;
    opacity: 0.5;
    position: relative;
}

/* Responsive & Mobile Fixes */
@media (hover: none) and (pointer: coarse) {
    body { cursor: auto; }
    .cursor, .cursor-follower { display: none !important; }
    .btn-3d, .btn, .btn-outline, .magnetic-btn, .btn-3d-flip, a { cursor: pointer !important; }
}

@media (max-width: 768px) {
    /* App-like Mobile Navbar */
    .navbar {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.5rem;
        border-radius: 20px;
        width: 95%;
    }
    .logo a { font-size: 1.2rem; }
    .nav-links {
        width: 100%;
        display: flex;
        overflow-x: auto;
        padding-top: 1rem;
        gap: 1.5rem;
        justify-content: flex-start;
        -ms-overflow-style: none;
        scrollbar-width: none;
        border-top: 1px solid rgba(255,255,255,0.1);
        margin-top: 0.5rem;
    }
    .nav-links::-webkit-scrollbar { display: none; }
    .nav-links a { 
        font-size: 0.75rem; 
        white-space: nowrap; 
        padding-bottom: 0.5rem;
    }
    
    .glitch { font-size: 3rem; letter-spacing: 2px; }
    .hero-subtext { font-size: 0.9rem; margin-bottom: 1.5rem; }
    .magnetic-btn { padding: 0.8rem 1.5rem; font-size: 0.8rem; }
    
    .products-section { padding: 2rem 1rem; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(100%, 1fr)); }
    
    /* Grid Mobile Footer */
    .footer { padding: 3rem 1rem 2rem 1rem; border-radius: 30px 30px 0 0; }
    .footer-links { 
        display: grid; 
        grid-template-columns: 1fr; 
        width: 100%; 
        gap: 1.5rem;
        text-align: center;
    }
    .social-links {
        display: flex;
        justify-content: center;
        gap: 2rem;
        width: 100%;
        margin-top: 1rem;
    }
    .btn-3d-flip { font-size: 0.75rem; }
    .footer-massive-text { font-size: 14vw; letter-spacing: -2px; margin-bottom: 3rem; }
    
    /* Cart Mobile Layout */
    .cart-row-3d {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1.5rem;
    }
    .cart-row-3d img { width: 120px; }
    .cart-item-details { margin-left: 0; text-align: center; }
    .cart-item-qty, .cart-item-total, .cart-item-action { text-align: center; }
    
    .cart-summary-3d {
        align-items: center;
        text-align: center;
        padding: 1.5rem;
        margin: 2rem auto;
        width: 100%;
    }
    .total-glitch { font-size: 2.2rem; }
    
    .liquid-dollar-container { font-size: 15vw; height: 20vw; width: 80vw; letter-spacing: 5px; }
    
    /* Fix WebGL Liquid container height on mobile */
    #product-webgl-container { height: 400px; }
}
