/* ============================================
   DELULU BOOKS - Design System
   Light/Dark Mode with PLRHustle-inspired aesthetics
   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
    /* Brand Colors */
    --brand-primary: #7C3AED;
    --brand-primary-light: #A78BFA;
    --brand-primary-dark: #5B21B6;
    --brand-secondary: #EC4899;
    --brand-accent: #F59E0B;
    
    /* Light Mode (Default) */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-tertiary: #F1F5F9;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F8FAFC;
    --bg-overlay: rgba(0, 0, 0, 0.5);
    
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-tertiary: #94A3B8;
    --text-inverse: #FFFFFF;
    
    --border-primary: #E2E8F0;
    --border-secondary: #CBD5E1;
    --border-focus: var(--brand-primary);
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(124, 58, 237, 0.3);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    --gradient-hero: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    --gradient-card: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    
    /* Status Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;
    
    /* Typography */
    --font-sans: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Sora', 'Outfit', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-modal: 300;
    --z-toast: 400;
}

/* ============================================
   DARK MODE
   ============================================ */
[data-theme="dark"] {
    --bg-primary: #0F0F14;
    --bg-secondary: #16161D;
    --bg-tertiary: #1E1E28;
    --bg-card: #1A1A24;
    --bg-card-hover: #222230;
    --bg-overlay: rgba(0, 0, 0, 0.7);
    
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-tertiary: #64748B;
    --text-inverse: #0F172A;
    
    --border-primary: #2D2D3A;
    --border-secondary: #3D3D4D;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(124, 58, 237, 0.4);
    
    --gradient-hero: linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-primary) 100%);
    --gradient-card: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-tertiary) 100%);
}

/* ============================================
   BASE RESET & DEFAULTS
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    letter-spacing: -0.01em;
    transition: background-color var(--transition-base), color var(--transition-base);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }

p {
    color: var(--text-secondary);
    max-width: 65ch;
}

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--brand-primary-light);
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */

/* Prevent horizontal overflow on mobile */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    box-sizing: border-box;
}

@media (min-width: 480px) {
    .container { padding: 0 var(--spacing-md); }
}

@media (min-width: 640px) {
    .container { padding: 0 var(--spacing-lg); }
}

@media (min-width: 1024px) {
    .container { padding: 0 var(--spacing-xl); }
}

.section {
    padding: var(--spacing-2xl) 0;
}

@media (min-width: 768px) {
    .section { padding: var(--spacing-3xl) 0; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Primary Button */
.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-inverse);
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

/* Secondary Button */
.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-primary);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-card-hover);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

/* Ghost Button */
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Button Sizes */
.btn-sm {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.875rem;
}

.btn-lg {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1rem;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
}

.card:hover {
    border-color: var(--border-secondary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-body {
    padding: var(--spacing-lg);
}

/* Product Card Specific */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card__image {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--gradient-card);
    overflow: hidden;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-card__image img {
    transform: scale(1.05);
}

/* Pinterest Pin It hover */
.pin-wrapper {
    position: relative;
}

.pin-it-btn {
    position: absolute;
    bottom: var(--spacing-sm);
    right: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    background: #E60023;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    opacity: 0;
    transition: opacity var(--transition-fast);
    z-index: 2;
}

.pin-wrapper:hover .pin-it-btn {
    opacity: 1;
}

.pin-it-btn--small {
    padding: var(--spacing-xs);
    font-size: 0;
}

.pin-it-btn--small svg {
    display: block;
}

.product-card__badge {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: var(--spacing-md);
}

.product-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition-fast);
}

.product-card:hover .product-card__title {
    color: var(--brand-primary);
}

.product-card__price {
    margin-top: auto;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-primary);
}

.product-card__price-original {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    text-decoration: line-through;
    margin-right: var(--spacing-sm);
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-input::placeholder {
    color: var(--text-tertiary);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-primary);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

[data-theme="dark"] .header {
    background: rgba(15, 15, 20, 0.9);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
}

.header__logo-icon {
    font-size: 1.75rem;
}

.header__logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header__nav {
    display: none;
    align-items: center;
    gap: var(--spacing-xl);
}

@media (min-width: 768px) {
    .header__nav {
        display: flex;
    }
}

.header__nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.header__nav-link:hover,
.header__nav-link.active {
    color: var(--brand-primary);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

/* Hide extra buttons on mobile, show only theme toggle and menu button */
@media (max-width: 767px) {
    .header__actions > .btn,
    .header__actions > a.btn,
    .header__actions > form,
    .header__actions .btn-ghost,
    .header__actions .btn-primary,
    .header__actions .btn-secondary {
        display: none !important;
    }
    
    .header__logo {
        font-size: 1.25rem;
        flex-shrink: 0;
    }
    
    .header__logo-icon {
        font-size: 1.5rem;
    }
    
    .header__logo span:not(.header__logo-icon):not(.header__logo-text) {
        display: none;
    }
    
    .theme-toggle {
        width: 36px;
        height: 36px;
    }
    
    .mobile-menu-btn {
        width: 36px;
        height: 36px;
    }
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background: var(--bg-card-hover);
}

.theme-toggle__icon {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.theme-toggle:hover .theme-toggle__icon {
    color: var(--brand-primary);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
    
    .header__actions {
        gap: var(--spacing-sm);
    }
    
    .header__actions .btn {
        display: inline-flex;
    }
}

.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    background: var(--bg-primary);
    padding: var(--spacing-xl);
    transform: translateX(100%);
    transition: transform var(--transition-base);
}

.mobile-menu.open {
    display: block;
    transform: translateX(0);
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

.mobile-menu__link {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-primary);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    padding: var(--spacing-3xl) 0;
    text-align: center;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main gradient background with dithering effect */
.hero__bg {
    position: absolute;
    inset: 0;
    background: 
        /* Radial gradient orbs */
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 58, 237, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 20% 80%, rgba(167, 139, 250, 0.1) 0%, transparent 50%),
        /* Base gradient */
        linear-gradient(180deg, 
            var(--bg-secondary) 0%, 
            var(--bg-primary) 50%,
            var(--bg-secondary) 100%
        );
    z-index: 0;
}

/* Animated grain/noise texture */
.hero__noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    z-index: 1;
    pointer-events: none;
}

/* Animated glow effect */
.hero__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 1;
    animation: hero-glow-pulse 8s ease-in-out infinite;
}

@keyframes hero-glow-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

/* Grid pattern overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(124, 58, 237, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 2;
    pointer-events: none;
}

/* Gradient fade at edges */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(180deg, transparent 0%, transparent 80%, var(--bg-primary) 100%),
        linear-gradient(90deg, var(--bg-primary) 0%, transparent 10%, transparent 90%, var(--bg-primary) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 10;
}

.hero__title {
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
}

.hero__title-highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__description {
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
}

/* Dark mode hero adjustments */
@media (prefers-color-scheme: dark) {
    .hero__bg {
        background: 
            radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 58, 237, 0.25) 0%, transparent 50%),
            radial-gradient(ellipse 60% 40% at 80% 50%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
            radial-gradient(ellipse 50% 30% at 20% 80%, rgba(167, 139, 250, 0.08) 0%, transparent 50%),
            linear-gradient(180deg, 
                var(--bg-secondary) 0%, 
                var(--bg-primary) 50%,
                var(--bg-secondary) 100%
            );
    }
    
    .hero__noise {
        opacity: 0.05;
    }
}

/* Responsive hero */
@media (max-width: 768px) {
    .hero {
        min-height: 300px;
        padding: var(--spacing-2xl) 0;
    }
    
    .hero__glow {
        width: 300px;
        height: 300px;
    }
}

/* ============================================
   TRUST STRIP (Homepage)
   ============================================ */
.trust-strip {
    padding: var(--spacing-xl) 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-primary);
    border-bottom: 1px solid var(--border-primary);
}

.trust-strip .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
}

.trust-strip__stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-xl);
}

.trust-strip__stat {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.trust-strip__badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
}

.trust-strip__badges--desktop-only {
    display: none;
}

.trust-strip__badge {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
}

@media (min-width: 640px) {
    .trust-strip .container {
        flex-direction: row;
        justify-content: space-between;
    }
    .trust-strip__badges--desktop-only {
        display: flex;
    }
}

/* ============================================
   PRODUCTS GRID
   ============================================ */
.products-section {
    padding: var(--spacing-2xl) 0;
}

.products-header {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

@media (min-width: 768px) {
    .products-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    /* Keep 3 products per row on desktop for better visibility */
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-xl);
    }
}

/* ============================================
   CATEGORY FILTERS
   ============================================ */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.category-filters::-webkit-scrollbar {
    display: none;
}

.category-filter {
    flex-shrink: 0;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.category-filter:hover,
.category-filter.active {
    background: var(--brand-primary);
    color: var(--text-inverse);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-primary);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-2xl);
}

@media (min-width: 768px) {
    .footer__grid {
        grid-template-columns: 2fr repeat(3, 1fr);
        gap: var(--spacing-xl);
    }
}

.footer__brand {
    max-width: 100%;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-primary);
}

@media (min-width: 768px) {
    .footer__brand {
        max-width: 300px;
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }
}

.footer__brand-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.footer__brand-text {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.footer__newsletter {
    display: flex;
    gap: var(--spacing-sm);
}

.footer__newsletter-input {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 0.875rem;
}

.footer__newsletter-input:focus {
    outline: none;
    border-color: var(--brand-primary);
}

/* Footer Accordion - Mobile Only */
.footer__accordion {
    border-bottom: 1px solid var(--border-primary);
}

.footer__accordion:last-of-type {
    border-bottom: none;
}

.footer__accordion-trigger {
    display: flex;
    align-items: center;
    width: 100%;
    padding: var(--spacing-md) 0;
    background: none;
    border: none;
    cursor: pointer;
    gap: var(--spacing-sm);
    text-align: left;
    transition: all var(--transition-fast);
    border-radius: var(--radius-md);
    margin: 0 calc(-1 * var(--spacing-sm));
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
}

.footer__accordion-trigger:hover {
    background: var(--bg-tertiary);
}

.footer__accordion-trigger:active {
    transform: scale(0.98);
}

.footer__accordion-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.footer__accordion-trigger .footer__column-title {
    flex: 1;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: none;
    letter-spacing: 0;
}

.footer__accordion-chevron {
    width: 20px;
    height: 20px;
    color: var(--text-tertiary);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.footer__accordion.is-open .footer__accordion-chevron {
    transform: rotate(180deg);
}

.footer__accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.2s ease;
    opacity: 0;
    padding: 0;
}

.footer__accordion.is-open .footer__accordion-content {
    max-height: 200px;
    padding-bottom: var(--spacing-md);
    opacity: 1;
}

/* Desktop: Show links, hide accordion behavior */
@media (min-width: 768px) {
    .footer__accordion {
        border-bottom: none;
    }
    
    .footer__accordion-trigger {
        pointer-events: none;
        cursor: default;
        padding: 0;
        margin-bottom: var(--spacing-md);
    }
    
    .footer__accordion-icon,
    .footer__accordion-chevron {
        display: none;
    }
    
    .footer__accordion-trigger .footer__column-title {
        font-size: 0.875rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    
    .footer__accordion-content {
        max-height: none;
        overflow: visible;
        opacity: 1;
        padding: 0;
    }
}

.footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    padding-left: calc(1.25rem + var(--spacing-sm));
}

@media (min-width: 768px) {
    .footer__links {
        padding-left: 0;
    }
}

.footer__link {
    font-size: 0.9375rem;
    color: var(--text-tertiary);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-xs) 0;
}

.footer__link:hover {
    color: var(--brand-primary);
    transform: translateX(4px);
}

@media (min-width: 768px) {
    .footer__link {
        font-size: 0.875rem;
        padding: 0;
    }
    
    .footer__link:hover {
        transform: none;
    }
}

.footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-primary);
    text-align: center;
}

@media (min-width: 768px) {
    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer__copyright {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

/* Social Links */
.footer__social {
    display: flex;
    gap: var(--spacing-sm);
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.footer__social-link svg {
    width: 18px;
    height: 18px;
}

.footer__social-link:hover {
    background: var(--brand-primary);
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-3xl) var(--spacing-lg);
    text-align: center;
}

.empty-state__icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.5;
}

.empty-state__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.empty-state__text {
    color: var(--text-tertiary);
}

/* ============================================
   SEARCH
   ============================================ */
.search-box {
    position: relative;
    width: 100%;
    max-width: 300px;
}

.search-box__input {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    padding-left: 40px;
    background: var(--bg-tertiary);
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.search-box__input:focus {
    outline: none;
    background: var(--bg-card);
    border-color: var(--brand-primary);
}

.search-box__icon {
    position: absolute;
    left: var(--spacing-sm);
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-tertiary);
    pointer-events: none;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-md);
}

.badge-primary {
    background: rgba(124, 58, 237, 0.1);
    color: var(--brand-primary);
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-secondary);
    text-align: center;
}

.cta-section__title {
    margin-bottom: var(--spacing-sm);
}

.cta-section__text {
    margin: 0 auto var(--spacing-lg);
    max-width: 500px;
}

/* ============================================
   UTILITIES
   ============================================ */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

.mt-auto { margin-top: auto; }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.animate-fadeIn {
    animation: fadeIn var(--transition-base) ease-out;
}

.animate-slideInRight {
    animation: slideInRight var(--transition-base) ease-out;
}

/* Staggered animations for grid items */
.products-grid > * {
    animation: fadeIn var(--transition-slow) ease-out backwards;
}

.products-grid > *:nth-child(1) { animation-delay: 0ms; }
.products-grid > *:nth-child(2) { animation-delay: 50ms; }
.products-grid > *:nth-child(3) { animation-delay: 100ms; }
.products-grid > *:nth-child(4) { animation-delay: 150ms; }
.products-grid > *:nth-child(5) { animation-delay: 200ms; }
.products-grid > *:nth-child(6) { animation-delay: 250ms; }
.products-grid > *:nth-child(7) { animation-delay: 300ms; }
.products-grid > *:nth-child(8) { animation-delay: 350ms; }

/* ============================================
   SCROLLBAR (Dark mode friendly)
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-secondary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* ============================================
   LOADING STATES
   ============================================ */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-tertiary) 0%,
        var(--bg-secondary) 50%,
        var(--bg-tertiary) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
