:root {
    --bg-dark:    #0a0a1a;
    --bg-card:    rgba(22, 33, 62, 0.7);
    --bg-glass:   rgba(255, 255, 255, 0.05);
    --primary:    #00e676;
    --primary-glow: rgba(0, 230, 118, 0.3);
    --accent:     #ffd600;
    --gradient:   linear-gradient(135deg, #00e676, #00bcd4);
    --text:       #f0f0f0;
    --text-muted: #8888aa;
    --border:     rgba(255, 255, 255, 0.08);
}

body {
    background-color: var(--bg-dark);
    color: var(--text);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.2);
}

/* Card hover effects */
.product-card {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
}
.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px -5px var(--primary-glow);
    border-color: rgba(0, 230, 118, 0.3);
}

/* Form inputs */
input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

/* Spinner */
.spinner {
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top: 3px solid #fff;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Ripple effect for buttons */
.btn-ripple {
    position: relative;
    overflow: hidden;
    background: var(--gradient);
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-ripple:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px var(--primary-glow);
}
.btn-ripple:active {
    transform: translateY(0);
}

/* Utility classes */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
}
.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hide scrollbar for horizontal scroll containers */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* ====== MOBILE FIXES ====== */
@media (hover: none) {
    /* Disable lift animation on touch devices (feels laggy) */
    .product-card:hover {
        transform: none;
        box-shadow: none;
        border-color: var(--border);
    }
    .btn-ripple:hover {
        transform: none;
    }
    .tab-btn:hover {
        border-color: rgba(255,255,255,0.1);
        color: rgba(255,255,255,0.6);
        background: rgba(255,255,255,0.03);
    }
}

@media (max-width: 640px) {
    /* Smaller hero on mobile */
    .hero-title {
        font-size: 2.5rem;
    }
    /* Tighter padding */
    .py-24 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    /* Tab buttons: allow wrap nicely */
    #category-tabs {
        gap: 0.5rem;
    }
    #category-tabs button {
        font-size: 0.8rem;
        padding: 0.5rem 0.9rem;
    }
    /* Hot offers scroll cards: min-width on mobile */
    #hot-offers-container > div {
        min-width: 160px;
    }
}
