body {
    margin: 0;
    padding: 0;
    background-color: #050510;
    /* Very dark navy/black */
    color: white;
    font-family: 'Arial', sans-serif;
    overflow: hidden;
    /* Prevent scrollbars from popups initially */
    height: 100vh;
    width: 100vw;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 50% 50%, rgba(20, 20, 50, 0.8), rgba(0, 0, 0, 0.95)),
        url('https://grainy-gradients.vercel.app/noise.svg');
    /* Noise texture for grit */
    z-index: -1;
    pointer-events: none;
}

/* --- 2. Logo (CS:GO 4:3 Stretched) --- */
.logo {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 4rem;
    text-transform: uppercase;
    transform: scaleX(2.5);
    transform-origin: center;
    text-align: center;
    margin-top: 50px;
    margin-bottom: 50px;
    letter-spacing: 2px;
    width: 100%;
    display: block;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* --- 3. Shop Button (Scam/Adult Site) --- */
@keyframes flash {
    0% {
        background-color: red;
        color: yellow;
        border-color: yellow;
    }

    50% {
        background-color: yellow;
        color: red;
        border-color: red;
    }

    100% {
        background-color: red;
        color: yellow;
        border-color: yellow;
    }
}

.shop-btn {
    font-family: 'Arial Black', sans-serif;
    font-size: 2rem;
    padding: 15px 40px;
    border: 5px dashed yellow;
    background-color: red;
    color: yellow;
    text-transform: uppercase;
    cursor: pointer;
    animation: flash 0.5s infinite;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
    transform: rotate(-2deg);
    /* Slight tilt for chaos */
}

.shop-btn:hover {
    animation-duration: 0.2s;
    /* Faster panic on hover */
}

/* --- 4. Chaos UI Buttons --- */
.chaos-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

/* Windows 95 Style */
.win95-btn {
    font-family: 'MS Sans Serif', 'Tahoma', sans-serif;
    font-size: 14px;
    background-color: #c0c0c0;
    color: black;
    border: 2px solid #fff;
    border-right-color: #404040;
    border-bottom-color: #404040;
    padding: 5px 15px;
    cursor: pointer;
    box-shadow: 1px 1px 0 black;
}

.win95-btn:active {
    border: 2px solid #404040;
    border-right-color: #fff;
    border-bottom-color: #fff;
}

/* Windows XP Style */
.winxp-btn {
    font-family: 'Tahoma', sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background: linear-gradient(180deg, #3f8cf3 0%, #245ddb 100%);
    /* Blue XP */
    border: 1px solid #003c74;
    border-radius: 5px;
    padding: 8px 20px;
    cursor: pointer;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.3);
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5);
}

.winxp-btn:hover {
    background: linear-gradient(180deg, #5c9dff 0%, #245ddb 100%);
}

/* --- 5. Pop-ups (Windows) --- */
.popup-window {
    position: absolute;
    width: 250px;
    background: rgba(20, 20, 30, 0.6);
    /* Dark glass */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: grab;
    transition: transform 0.1s;
}

.popup-window:active {
    cursor: grabbing;
    transform: scale(1.02);
    z-index: 1000 !important;
    /* Bring to front on click */
}

.title-bar {
    background: linear-gradient(90deg, #333, #111);
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: grab;
}

.title-text {
    font-size: 12px;
    color: #ccc;
    font-family: monospace;
}

.close-btn {
    background: #ff4444;
    border: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: black;
    font-weight: bold;
    line-height: 1;
}

.popup-content {
    padding: 0;
}

.popup-content img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s;
}

.popup-content img:hover {
    opacity: 0.8;
}

/* --- 6. Stop Button & Jumpscare --- */
#stop-btn {
    position: fixed;
    bottom: 10px;
    right: 10px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s;
}

#stop-btn:hover {
    background: red;
    color: white;
    opacity: 1;
}

#jumpscare-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: shake 0.5s infinite;
}

.hidden {
    display: none !important;
}

.jumpscare-content {
    text-align: center;
    background: yellow;
    padding: 20px;
    border: 10px solid red;
    box-shadow: 0 0 50px red;
}

.jumpscare-content h1 {
    color: red;
    font-size: 3rem;
    font-family: 'Impact', sans-serif;
    margin-bottom: 20px;
    text-transform: uppercase;
    animation: flash 0.1s infinite;
}

.jumpscare-content img {
    max-width: 100%;
    border: 5px solid black;
}

@keyframes shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }

    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }

    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }

    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }

    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }

    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }

    70% {
        transform: translate(3px, 1px) rotate(-1deg);
    }

    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }

    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }

    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}

/* --- 7. Shop Subpage Styles --- */

/* --- Supreme Style Layout --- */

/* --- Supreme Style Layout --- */

.shop-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    /* User Requested Background */
    background: url('background.jpg') no-repeat center center fixed;
    background-size: cover;
}

/* Sidebar */
.shop-sidebar {
    width: 200px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Align text to right like Supreme */
    flex-shrink: 0;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: sticky;
    top: 40px;
}

.filter-btn {
    background: none;
    border: none;
    /* Orange Text with Black Outline */
    color: #ff6600;
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
    font-family: 'Courier New', Courier, monospace;
    /* Courier for that retro/minimal vibe */
    font-size: 16px;
    /* Slightly larger for visibility */
    text-align: right;
    cursor: pointer;
    padding: 2px 0;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
    font-weight: 900;
    /* Extra bold */
}

.filter-btn:hover,
.filter-btn.active {
    color: #ff9900;
    /* Lighter orange on hover */
    background: none;
    box-shadow: none;
    text-decoration: none;
    transform: scale(1.1);
}

/* Main Content */
.shop-main {
    flex-grow: 1;
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
}

.shop-header-minimal {
    display: flex;
    justify-content: flex-end;
    /* Cart on right */
    gap: 20px;
    margin-bottom: 40px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.back-link,
.cart-display {
    color: #ff6600;
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
    font-weight: bold;
    text-decoration: none;
}

.back-link:hover {
    color: #ff9900;
}

/* Product Grid (Supreme Style) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    /* Smaller items */
    gap: 40px;
    /* Spacious gaps */
    width: 100%;
    overflow-y: auto;
    padding-right: 10px;
    flex-grow: 1;
    /* Custom Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: white transparent;
}

.product-grid::-webkit-scrollbar-track {
    background: transparent;
}

.product-grid::-webkit-scrollbar-thumb {
    background-color: white;
    border-radius: 20px;
}

/* --- Gallery Mode Styles --- */
/* --- Gallery Mode Styles --- */
.product-card {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    width: 100%;
    aspect-ratio: 3 / 4;
}

.product-card:hover {
    transform: none;
    /* No movement */
    opacity: 0.8;
    /* Simple fade */
    box-shadow: none;
    border: none;
}

.product-img {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: transparent;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensure whole item is visible without cropping if preferred, or cover for uniformity. User asked for 3:4. */
    object-fit: cover;
    /* Sticking to cover for uniform grid as requested earlier */
    transition: opacity 0.2s;
    background: transparent;
}

.product-card:hover .product-img img {
    transform: none;
}

/* Hide Info in Grid (Gallery Look) */
.product-info {
    display: none;
}

/* --- Details Modal --- */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 20000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #111;
    margin: auto;
    padding: 20px;
    border: 1px solid #333;
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 255, 0, 0.1);
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 10px;
    z-index: 10;
}

.close-modal:hover,
.close-modal:focus {
    color: white;
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

#modal-img {
    max-width: 400px;
    max-height: 500px;
    width: 100%;
    object-fit: contain;
    border: 1px solid #333;
}

.modal-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

#modal-title {
    color: white;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

#modal-price {
    font-size: 2rem;
    color: #00ff00;
    margin-bottom: 30px;
}

#modal-buy-btn {
    padding: 15px;
    font-size: 1.2rem;
    text-align: center;
    display: block;
    width: 100%;
}