/* =========================================
   TOPFITS: DARK NEO-BRUTALIST (v7.0)
   Target: Teen / Street / Dark Mode
   ========================================= */

:root {
    --c-bg: #050505;
    /* Deep Black */
    --c-surface: #111111;
    /* Off-Black */
    --c-text: #ffffff;
    /* White Text */
    --c-accent: #ffffff;
    /* White Accent */
    --c-accent-fg: #000000;
    /* Black Text on Accent */

    --border-thick: 2px solid var(--c-accent);
    --shadow-hard: 4px 4px 0px var(--c-accent);
    /* Accent Shadow */
    --shadow-hover: 2px 2px 0px var(--c-accent);

    --font-heading: 'Outfit', sans-serif;
    --font-mono: 'Space Mono', monospace;
    
    --space-unit: 20px; /* Base spacing unit */

    /* Admin & Custom Extension Variables */
    --c-border: #333333;
    --c-text-secondary: #aaaaaa;
    --c-text-tertiary: #666666;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: #050505; /* Deep black backing */
}

body {
    background-color: transparent !important;
    color: var(--c-text);
    font-family: var(--font-heading);
    position: relative;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Dedicated Background Animation */
.bg-animation-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    background-color: #050505;
    background-image: 
        radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 3px),
        radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 2px),
        radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 3px);
    background-size: 550px 550px, 350px 350px, 250px 250px;
    background-position: 0 0, 40px 60px, 130px 270px;
    animation: bg-stars-move 60s linear infinite;
    pointer-events: none;
}

@keyframes bg-stars-move {
    0% { background-position: 0 0, 40px 60px, 130px 270px; }
    100% { background-position: 550px 550px, 390px 410px, 380px 820px; }
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s ease;
}

img {
    display: block;
    max-width: 100%;
}

/* --- TYPOGRAPHY UTILS --- */
.h-display {
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 0.9;
}

.h1 {
    font-size: clamp(2rem, 5vw, 3rem); /* Fluid font size */
}

.h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.text-mono {
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

/* --- COMPONENTS: NEO-CARDS --- */
.product-card {
    border: var(--border-thick);
    background: var(--c-surface);
    box-shadow: var(--shadow-hard);
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    color: var(--c-text);
}

.product-card:hover {
    transform: translate(-1px, -1px);
    box-shadow: 5px 5px 0px var(--c-accent);
}

/* Homepage Transparent Card Specifics */
.product-card[style*="transparent"]:hover {
    box-shadow: none !important;
    transform: none !important;
}
.product-card[style*="transparent"]:hover .card-img-container {
    border-color: #fff !important;
}
.product-card[style*="transparent"]:hover img {
    transform: scale(1.05);
}
.product-card[style*="transparent"]:hover .product-title {
    color: #ddd;
}

.card-img-container {
    aspect-ratio: 4/5;
    border-bottom: var(--border-thick);
    position: relative;
    overflow: hidden;
    background: #000;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Overlay as a "Tech Label" */
.card-overlay-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #000;
    /* Black background */
    color: #fff;
    padding: 12px;
    border-top: var(--border-thick);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: -0.5px;
}

.card-price {
    background: #fff;
    color: #000;
    padding: 4px 8px;
    font-weight: 700;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.card-stats {
    display: flex;
    gap: 12px;
    margin-top: 4px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #aaa;
    /* Lighter grey for stats */
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* --- ANNOUNCEMENT BAR --- */
/* Wrapper removed/unused now */

.announcement-bar {
    background: linear-gradient(90deg, #ff00cc, #333399); 
    background-size: 200% 200%;
    animation: gradient-move 5s ease infinite;
    color: #fff;
    padding: 12px 0;
    
    /* Nuclear Fixed Bottom Logic */
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    
    z-index: 19000 !important; 
    /* Removed transform to avoid stacking context weirdness */
    
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    
    border-top: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
    
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes gradient-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.announcement-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.announcement-content a {
    text-decoration: underline;
    font-weight: 700;
}

.badge-new {
    background: #fff;
    color: #000;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: 4px;
}

.btn-close-announcement {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.2);
    border-radius: 4px; /* Square/slightly rounded for tech feel */
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: all 0.2s;
}

.btn-close-announcement:hover {
    background: #fff;
    color: #000;
}

/* --- BUTTONS: MONO --- */
.btn {
    height: 48px;
    background: var(--c-accent);
    color: var(--c-accent-fg);
    border: 2px solid var(--c-accent);
    box-shadow: 3px 3px 0px rgba(255, 255, 255, 0.2);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    padding: 0 24px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn:hover {
    background: #000;
    color: var(--c-accent);
    box-shadow: 5px 5px 0px var(--c-accent);
    transform: translate(-2px, -2px);
    border-color: var(--c-accent);
}

.btn:active {
    transform: translate(0, 0);
    box-shadow: 0 0 0;
}

/* --- HEADER --- */
.site-header {
    background: #000;
    border-bottom: var(--border-thick);
    padding: 0 20px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 900; /* High but below popups */
    color: #fff;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    font-style: italic;
    background: var(--c-accent);
    /* Accent Box */
    color: var(--c-accent-fg);
    /* Contrast Text */
    padding: 5px 15px;
    text-transform: uppercase;
    letter-spacing: -1px;
    transform: rotate(-1deg);
}

.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-family: var(--font-mono);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    position: relative;
    color: #fff;
}

.main-nav a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--c-accent);
    transition: width 0.3s;
}

.main-nav a:hover::after {
    width: 100%;
}

.main-nav a.active {
    text-decoration: underline;
}

/* --- RESPONSIVE HEADER --- */
.mobile-only { display: none; }
.desktop-only { display: block; }

#mobile-menu-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: #000;
    z-index: 2000; /* Ensure on top of everything */
    display: flex; flex-direction: column;
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px;
}

.btn-close-menu {
    background: transparent; border: none; color: #fff; font-size: 2rem; cursor: pointer;
}

.mobile-nav-links {
    display: flex; flex-direction: column; gap: 30px;
    align-items: center;
}

.mobile-nav-links a {
    font-family: 'Outfit'; 
    font-weight: 900; 
    font-size: clamp(1.5rem, 5vw, 2.5rem); /* Fluid font size */
    color: #fff; 
    text-transform: uppercase;
}

/* --- FILTER BAR --- */
.filter-bar {
    border-bottom: var(--border-thick);
    background: #000;
    /* Dark BG */
    padding: 12px 0;
    position: sticky;
    top: 70px;
    z-index: 1000; /* Increased from 90 */
    color: #fff;
    overflow-x: visible; /* Changed from auto to visible for dropdowns */
    white-space: nowrap;
}

.filter-btn {
    background: #000;
    color: #fff;
    border: 1px solid #fff;
    padding: 6px 16px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    cursor: pointer;
    border-radius: 20px;
    /* Pill shape like Pic 1 */
    transition: all 0.2s;
}

.filter-btn:hover {
    background: #222;
}

/* Dropdowns */
.dropdown-group {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #000;
    min-width: 200px;
    border: 1px solid #fff;
    box-shadow: 4px 4px 0 #fff;
    /* Hard shadow */
    z-index: 1001; /* Increased from 101 */
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
}

.dropdown-content.show {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 8px 12px;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    cursor: pointer;
    border-radius: 4px;
}

.dropdown-item:hover {
    background: #222;
}

/* Price specific */
.price-content {
    min-width: 280px;
    padding: 20px;
}

.price-input {
    background: #000;
    border: 1px solid #fff;
    color: #fff;
    padding: 8px;
    width: 100%;
    font-family: var(--font-mono);
    text-align: center;
    border-radius: 4px;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
}

.btn-outline {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
}

.btn-solid {
    background: #fff;
    border: 1px solid #fff;
    color: #000;
}

.filter-bar::-webkit-scrollbar {
    display: none;
}

.cat-chip {
    background: #000;
    border: 1px solid #fff;
    color: #fff;
    font-weight: 600;
    border-radius: 20px;
    /* Pill shape */
    padding: 6px 14px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    transition: all 0.2s;
    white-space: nowrap;
}

.cat-chip:hover {
    background: #222;
}

/* Range Slider */
.range-slider-container {
    position: relative;
    width: 100%;
    height: 20px;
    margin-bottom: 15px;
}

.slider-track-bg {
    position: absolute;
    width: 100%;
    height: 4px;
    background-color: #333;
    /* Dark Grey rail */
    top: 50%;
    transform: translateY(-50%);
    border-radius: 2px;
}

.slider-track-fill {
    position: absolute;
    height: 4px;
    background-color: #fff;
    /* White active rail */
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    border-radius: 2px;
}

.range-input {
    position: absolute;
    width: 100%;
    height: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    z-index: 20;
}

/* Chrome/Safari Thumb */
.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #fff;
    border: none;
    border-radius: 50%;
    pointer-events: auto;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: transform 0.1s;
}

.range-input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
    /* Glow ring attempt */
}

/* Firefox Thumb */
.range-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #fff;
    border: none;
    border-radius: 50%;
    pointer-events: auto;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: transform 0.1s;
}

.range-input::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

/* --- GRIDS --- */
.wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 var(--space-unit);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); /* slightly smaller default */
    gap: 15px;
}

/* Hero Responsive */
.hero-wrapper {
    text-align: center;
    padding: 80px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
}

.highlight-text {
    color: var(--c-accent);
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

/* --- PRIMARY CTA (MATCHES SITE STANDARD) --- */
.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--c-accent);
    color: var(--c-accent-fg); /* Ensure readable text */
    font-family: var(--font-heading);
    font-weight: 800; /* Extra Bold */
    font-size: 2rem; /* Much Larger */
    padding: 20px 60px; /* Much Larger Padding */
    text-decoration: none;
    text-transform: uppercase;
    border: 1px solid var(--c-accent); /* Standard Border */
    border-radius: var(--radius-sm); /* Standard Radius */
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Standard Hard Shadow */
    box-shadow: 4px 4px 0px #fff; 
    clip-path: none; /* Remove custom shape */
}

/* Standard Hover */
.hero-btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #fff; 
    background: #fff;
    color: #000;
}

.hero-btn-primary:active {
    transform: translate(0, 0);
    box-shadow: 2px 2px 0px #000;
}

/* --- SECONDARY ACTIONS (MATCHES SITE STANDARD OUTLINE) --- */
.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent; 
    border: 1px solid #fff; /* Standard Outline */
    color: #fff;
    font-family: var(--font-heading); /* Standard Font */
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 24px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.2s;
    border-radius: var(--radius-sm); /* Standard Radius */
    box-shadow: none;
}

/* Standard Secondary Hover */
.hero-btn-secondary:hover {
    background: #fff;
    color: #000;
    box-shadow: 4px 4px 0px var(--c-accent);
    transform: translate(-2px, -2px);
    border-color: #fff;
}

.hero-btn-secondary:active {
    transform: translate(0, 0);
    box-shadow: none;
}

@media (max-width: 600px) {
    .hero-actions {
        width: 100%;
        gap: 10px;
    }
    .hero-btn-primary {
        width: 100%;
        padding: 14px 20px;
        font-size: 1.2rem;
    }
    .secondary-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-btn-secondary {
        width: 100%;
        justify-content: center;
    }
    .hero-title {
        font-size: 2rem;
    }
}

/* --- MEDIA QUERIES --- */
@media (max-width: 768px) {
    /* Header & Nav */
    .main-nav { display: none; }
    .mobile-only { display: block; }
    .desktop-only { display: none; }
    .site-header { padding: 0 15px; }
    
    /* Grids */
    .product-grid {
        grid-template-columns: repeat(2, 1fr); /* Force 2 columns on mobile */
        gap: 10px;
    }
    
    .product-card {
        border-width: 1px; /* Thinner border for small/dense screens */
        box-shadow: 2px 2px 0 #fff;
    }
    
    .product-card:hover {
        box-shadow: 3px 3px 0 #fff;
    }
    
    /* Layout */
    .detail-layout { grid-template-columns: 1fr; gap: 20px; }
    
    /* Footer */
    .site-footer {
        padding: 40px 15px;
        margin-top: 40px;
    }
    .site-footer .wrapper {
        gap: 30px;
    }
}

@media (max-width: 480px) {
    /* Very Small Screens */
    .product-grid {
        gap: 8px;
        grid-template-columns: repeat(2, 1fr); /* Keep 2 cols but tight */
    }
    
    /* Super small screens - SE / Mini */
    @media (max-width: 360px) {
        .product-grid {
             grid-template-columns: 1fr; /* Single column for very narrow/old phones */
        }
    }
    .card-overlay-info { padding: 8px; }
    .card-title { font-size: 0.7rem; } /* Smaller title */
    .card-price { font-size: 0.7rem; padding: 2px 6px; }
    
    .slots-wrapper { padding: 10px 5px; } /* Minimal padding */
    .slot-card { width: 90px; height: 100px; }
    .page-title { font-size: 1.5rem; } /* Reduce main title size */
    
    .filter-bar { top: 60px; } 
    
    /* Header adjustments */
    .logo { font-size: 1.2rem; padding: 4px 10px; }
}

@media (max-width: 400px) {
    /* Super small screens for slots */
    .slots-wrapper { padding: 10px 5px; }
    .slot-card { width: 90px; height: 100px; }
    .page-title { font-size: 1.8rem; }
    .btn-spin { padding: 15px 40px; font-size: 1rem; }
    
    /* Ensure track fits */
    .track-window { height: 110px; }
    .track-strip { height: 100%; }
    .slot-icon { width: 70px; height: 70px; }
    .slot-text { font-size: 0.55rem; }
}

/* --- DETAIL PAGE --- */
.detail-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    /* Larger image */
    gap: 40px;
    padding: 40px 0;
}


.size-tile {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    font-family: var(--font-mono);
    cursor: pointer;
}

.size-option input:checked+.size-tile {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* Footer */
.site-footer {
    background: #fafafa;
    border-top: 1px solid var(--c-border);
    padding: 80px var(--space-unit);
    margin-top: 80px;
    color: #000;
}

/* =========================================
   ANIMATIONS & TRANSITIONS
   ========================================= */

/* --- Keyframes --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(30px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes popIn {
    0% { transform: scale(0.9); opacity: 0; }
    70% { transform: scale(1.02); }
    100% { transform: scale(1); opacity: 1; }
}

/* --- Utility Classes --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Page Load Base */

/* --- SKELETON LOADING --- */
.skeleton {
    background: #111;
    position: relative;
    overflow: hidden;
}

.skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skeleton-card {
    border: 1px solid #222;
    background: #000;
    aspect-ratio: 4/5;
    border-radius: 4px;
}

/* --- TOAST NOTIFICATIONS --- */
.toast-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20002; /* Above everything */
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: #fff;
    color: #000;
    padding: 12px 24px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    animation: toast-in 0.3s forwards, toast-out 0.3s forwards 2.7s;
}

@keyframes toast-in {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
    to { opacity: 0; transform: translateY(10px); }
}

/* --- HOVER QUICK ACTIONS --- */
.quick-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.2s ease;
    z-index: 5;
}

.product-card:hover .quick-actions {
    opacity: 1;
    transform: translateY(0);
}

.action-btn {
    width: 32px;
    height: 32px;
    background: #fff;
    color: #000;
    border: 1px solid #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: transform 0.2s;
}

.action-btn:hover {
    transform: scale(1.1);
    background: var(--c-accent);
}
body {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

body.page-loaded {
    opacity: 1;
}

body.menu-open {
    overflow: hidden;
}

/* Enhanced Hover Effects */
.product-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s ease;
}

.btn {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.2s ease, 
                background-color 0.2s ease, 
                color 0.2s ease;
}

.btn:active {
    transform: scale(0.98);
}
/* Mobile UI Polish Round 3 */
@media (max-width: 480px) { .card-title { font-size: 0.7rem !important; } .slots-wrapper { padding: 10px 5px !important; } .page-title { font-size: 1.5rem !important; } .logo { font-size: 1.2rem !important; } }

/* Mobile Menu Polish Round 2 */
.mobile-menu { z-index: 2147483647 !important; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important; }
.btn-close-menu { border: 1px solid #333 !important; width: 44px !important; height: 44px !important; display: flex !important; align-items: center !important; justify-content: center !important; border-radius: 50% !important; }

/* --- REDUCED MOTION --- */
body.reduce-motion *,
body.reduce-motion *::before,
body.reduce-motion *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
}

body.reduce-motion .bg-animation-container,
body.reduce-motion .bg-animation,
body.reduce-motion .cursor-dot,
body.reduce-motion .cursor-outline {
    display: none !important;
}

body.reduce-motion .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
}


/* --- GRID DENSITY --- */
body.density-compact .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)) !important;
    gap: 10px !important;
}

body.density-compact .neo-shop-grid {
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)) !important;
    gap: 10px !important;
}

body.density-compact .product-card .card-title,
body.density-compact .minimal-product-card .mp-title {
    font-size: 0.75rem !important;
    margin-bottom: 2px !important;
    line-height: 1.15 !important;
}

body.density-compact .product-card .card-price,
body.density-compact .minimal-product-card .mp-price {
    font-size: 0.8rem !important;
    padding: 2px 4px !important;
}

/* Make image padding smaller in compact view */
body.density-compact .minimal-product-card img.mp-img {
    padding: 10px !important;
}

body.density-compact .minimal-product-card .minimal-btn-buy,
body.density-compact .minimal-product-card .minimal-btn-details {
    font-size: 0.6rem !important;
    padding: 6px 0 !important;
    border-radius: 8px !important;
    gap: 3px !important;
}

body.density-compact .minimal-product-card .minimal-btn-wishlist {
    min-width: 28px !important;
    font-size: 0.9rem !important;
    border-radius: 8px !important;
}

/* Tighter vertical padding inside card */
body.density-compact .minimal-product-card {
    padding: 6px !important;
}
body.density-compact .minimal-product-card > div:nth-child(2) {
    padding: 4px 4px 2px 4px !important;
    gap: 6px !important;
}

/* --- PREMIUM CATEGORY RAIL --- */
.categories-bar-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    margin-bottom: 40px;
}

.categories-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 0 var(--space-unit);
    scrollbar-width: none; /* Hide scrollbar Firefox */
}

.categories-scroll::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome */
}

.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 80px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 10px;
    border-radius: 12px;
}

.cat-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.cat-icon {
    font-size: 1.5rem;
    color: var(--c-accent); /* Accent Icon */
    background: rgba(255, 255, 255, 0.05);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.cat-item:hover .cat-icon {
    background: var(--c-accent);
    color: #000;
    box-shadow: 0 0 15px rgba(57, 198, 148, 0.4);
    transform: scale(1.1);
}

.cat-item span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* --- SECTION HEADERS POLISH --- */
.section-header-row h2 {
    position: relative;
    display: inline-block;
    padding-left: 15px;
}

.section-header-row h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--c-accent);
    box-shadow: 0 0 10px var(--c-accent);
}

/* Specific strict 4-column grid for the Shop Page */
.neo-shop-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important; 
    gap: 16px !important; /* Tight gap to match blocky aesthetic */
    width: 100% !important;
}

/* CRITICAL FIX: prevents CSS grid blowout from large HD images */
.neo-shop-grid > .product-card,
.neo-shop-grid > .neo-product-card,
.neo-shop-grid > .minimal-product-card {
    min-width: 0;
}

@media (max-width: 1024px) {
    .neo-shop-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    /* Keep 2 columns on tablet and mobile */
    .neo-shop-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    /* Stack the action buttons on mobile so they fit nicely */
    .card-action-row {
        flex-direction: column !important;
        padding: 6px !important;
        gap: 6px !important;
    }

    .btn-primary-card,
    .btn-secondary-card {
        margin: 0 !important;
        font-size: 0.65rem !important;
        padding: 8px 0 !important;
        letter-spacing: -0.5px !important;
    }

    /* Adjust info section padding and text size for mobile */
    .card-info {
        padding: 8px !important;
    }

    .card-title {
        font-size: 0.8rem !important;
    }

    .card-price {
        font-size: 0.85rem !important;
        padding: 4px 8px !important;
    }
    
    .product-badge-container {
        transform: scale(0.85);
        transform-origin: top left;
    }
    
    .wishlist-btn {
        width: 30px !important;
        height: 30px !important;
        font-size: 1rem !important;
    }

    /* Mobile Filters Collapsible Menu */
    .mobile-filter-header {
        display: flex !important;
    }
    .mobile-filter-content {
        display: none !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px !important;
        padding-top: 15px !important;
        border-top: 1px solid #222 !important;
    }
    .mobile-filter-content.show-mobile-filters {
        display: flex !important;
    }
    .filter-section, .filter-categories, .shop-search-form {
        width: 100% !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
    }
    .dropdown-group, .shop-search-form > div {
        width: 100% !important;
        max-width: 100% !important;
    }
    .filter-btn, .cat-chip {
        width: 100% !important;
        justify-content: space-between !important;
        box-sizing: border-box !important;
    }
    .dropdown-content {
        position: static !important;
        width: 100% !important;
        margin-top: 5px !important;
        box-shadow: none !important;
        border: 1px solid #333 !important;
    }
}
