:root {
    --primary: #FF6B35;
    --primary-dark: #E55A2B;
    --primary-light: #FF8F5E;
    --secondary: #FF3838;
    --accent: #FFD93D;
    --success: #00C853;
    --bg: #FFF8F5;
    --bg-card: #FFFFFF;
    --bg-secondary: #FFF0E8;
    --text: #2D3436;
    --text-light: #636E72;
    --text-muted: #B2BEC3;
    --border: #FFE0D0;
    --shadow: rgba(255, 107, 53, 0.15);
    --shadow-hover: rgba(255, 107, 53, 0.3);
    --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #FF3838 100%);
    --gradient-warm: linear-gradient(135deg, #FFF8F5 0%, #FFE8D6 100%);
}

[data-theme="dark"] {
    --primary: #FF6B35;
    --primary-dark: #E55A2B;
    --secondary: #FF5252;
    --accent: #FFD93D;
    --success: #00E676;
    --bg: #0D1B2A;
    --bg-card: #1B2838;
    --bg-secondary: #162032;
    --text: #E0E1DD;
    --text-light: #B0BEC5;
    --text-muted: #546E7A;
    --border: #1E3A5F;
    --shadow: rgba(255, 107, 53, 0.2);
    --shadow-hover: rgba(255, 107, 53, 0.4);
    --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #FF1744 100%);
    --gradient-warm: linear-gradient(135deg, #0D1B2A 0%, #1B2838 100%);
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Page Management */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Responsive Typography */
h1 { font-size: clamp(1.8rem, 5vw, 4rem); }
h2 { font-size: clamp(1.3rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 3vw, 1.5rem); }
p { font-size: clamp(0.85rem, 2vw, 1.1rem); }

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

/* Better box-sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Prevent horizontal overflow */
body {
    overflow-x: hidden;
    max-width: 100vw;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

/* ============================================
   HEADER & NAVIGATION - MOVED NAV BELOW HEADER
   ============================================ */

/* Header with Logo and Actions */
.header {
    background: var(--bg-card);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1001;
    border-bottom: 1px solid var(--border);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(0.5rem, 2vw, 0.75rem) clamp(1rem, 3vw, 1.5rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 2vw, 1rem);
}

/* Navbar - Now below header */
.navbar {
    background: var(--bg-secondary);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 60px;
    z-index: 1000;
    border-bottom: 2px solid var(--border);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(0.4rem, 1.5vw, 0.6rem) clamp(1rem, 3vw, 1.5rem);
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.logo-icon {
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    animation: pulse 2s infinite;
    font-weight: 800;
    color: var(--primary);
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Nav Links with FA icons only (no text) - Centered below header */
.nav-links {
    display: flex;
    gap: clamp(0.5rem, 1.5vw, 1rem);
    list-style: none;
    align-items: center;
    justify-content: center;
}

/* ============================================
   PROMO CAROUSEL - HOME PAGE (AUTO-SCROLL)
   ============================================ */
.promo-carousel-section {
    padding: clamp(2rem, 5vw, 4rem) 0;
    background: var(--gradient-warm);
    overflow: hidden;
}

.promo-carousel-wrapper {
    overflow: hidden;
    margin: 0 clamp(1rem, 3vw, 2rem);
    position: relative;
}

.promo-carousel {
    display: flex;
    gap: clamp(1rem, 2vw, 1.5rem);
    overflow-x: hidden;
    padding: 1rem 0;
    scroll-behavior: auto;
    transition: none;
    scrollbar-width: none;
}

.promo-carousel::-webkit-scrollbar {
    display: none;
}

.promo-carousel .card {
    min-width: clamp(250px, 30vw, 300px);
    max-width: clamp(250px, 30vw, 300px);
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.3s;
}

.promo-carousel .card:hover {
    transform: translateY(-5px);
}

/* Carousel fade edges */
.promo-carousel-wrapper::before,
.promo-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 10;
    pointer-events: none;
}

.promo-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--gradient-warm), transparent);
}

.promo-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--gradient-warm), transparent);
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    position: relative;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(36px, 4vw, 44px);
    height: clamp(36px, 4vw, 44px);
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid transparent;
}

.nav-links a:hover {
    color: var(--primary);
    background: var(--border);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px var(--shadow);
}

.nav-links a.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.nav-links a::after {
    display: none;
}

.nav-icon {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin: 0;
}

/* Mobile: smaller nav icons, hide logo text */
@media (max-width: 480px) {
    .logo-text {
        display: none;
    }
    
    .logo-icon {
        font-size: 1.5rem;
    }
    
    .nav-links {
        margin-left: 0.5rem;
        gap: 0.25rem;
    }
    
    .nav-links a {
        width: 32px;
        height: 32px;
    }
    
    .nav-icon {
        font-size: 0.9rem;
    }
}

/* Tablet: left-aligned icons */
@media (min-width: 481px) and (max-width: 768px) {
    .nav-links {
        margin-left: 1rem;
    }
}

/* Desktop: left-aligned icons with more spacing */
@media (min-width: 769px) {
    .nav-links {
        margin-left: 2rem;
    }
    
    .nav-links a:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 15px var(--shadow-hover);
    }
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

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

.nav-links a:hover {
    color: var(--primary);
}

.nav-icon {
    font-size: 1.1em;
}

/* Remove hamburger menu completely */
.hamburger-btn,
.mobile-menu {
    display: none !important;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 2vw, 1rem);
    margin-left: auto;
}

.theme-toggle {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: clamp(1rem, 2vw, 1.2rem);
    transition: all 0.3s;
    width: clamp(36px, 5vw, 42px);
    height: clamp(36px, 5vw, 42px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    transform: rotate(180deg);
    border-color: var(--primary);
}

.cart-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: clamp(0.5rem, 2vw, 0.6rem) clamp(0.8rem, 2vw, 1.2rem);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px var(--shadow);
    position: relative;
    font-size: clamp(0.8rem, 2vw, 1rem);
}

.cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

.cart-count {
    background: var(--accent);
    color: var(--text);
    border-radius: 50%;
    width: clamp(20px, 3vw, 24px);
    height: clamp(20px, 3vw, 24px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.7rem, 2vw, 0.8rem);
    font-weight: 800;
    animation: bounceIn 0.5s;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.cart-total-mini {
    font-weight: 700;
}

/* Hero */
.hero {
    background: var(--gradient-warm);
    padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 3vw, 1rem);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(2rem, 5vw, 3rem);
    align-items: center;
    min-height: clamp(60vh, 80vw, 80vh);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: clamp(300px, 50vw, 600px);
    height: clamp(300px, 50vw, 600px);
    background: var(--primary);
    opacity: 0.05;
    border-radius: 50%;
    animation: float 6s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: var(--secondary);
    color: white;
    padding: clamp(0.3rem, 2vw, 0.5rem) clamp(0.8rem, 2vw, 1.2rem);
    border-radius: 50px;
    font-weight: 700;
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    animation: slideInLeft 0.5s;
    box-shadow: 0 4px 15px rgba(255, 56, 56, 0.3);
}

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

.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-light);
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    animation: slideInLeft 0.5s 0.2s backwards;
}

.hero-stats {
    display: flex;
    gap: clamp(1rem, 3vw, 2rem);
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    animation: slideInLeft 0.5s 0.3s backwards;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    min-width: 80px;
}

.stat-number {
    display: block;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    color: var(--text-light);
}

.cta-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2.5rem);
    border-radius: 50px;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 6px 20px var(--shadow);
    animation: slideInLeft 0.5s 0.4s backwards;
}

.cta-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px var(--shadow-hover);
}

.hero-visual {
    position: relative;
    height: clamp(300px, 40vw, 400px);
    animation: fadeIn 0.5s 0.5s backwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.floating-card {
    position: absolute;
    font-size: clamp(2rem, 5vw, 4rem);
    animation: floatCard 3s infinite ease-in-out;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

.card-1 { top: 10%; left: 20%; animation-delay: 0s; }
.card-2 { top: 50%; right: 20%; animation-delay: 0.5s; }
.card-3 { bottom: 20%; left: 30%; animation-delay: 1s; }
.card-4 { top: 30%; right: 40%; animation-delay: 1.5s; }

@keyframes floatCard {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* Quick Categories */
.quick-categories {
    padding: clamp(1.5rem, 3vw, 2rem) 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.categories-grid {
    display: flex;
    gap: clamp(0.5rem, 2vw, 1rem);
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 0 1rem;
}

.categories-grid::-webkit-scrollbar {
    display: none;
}

.category-pill {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    padding: clamp(0.5rem, 2vw, 0.75rem) clamp(1rem, 2vw, 1.5rem);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(0.8rem, 2vw, 1rem);
}

.category-pill:hover, .category-pill.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow);
}

.cat-icon {
    font-size: clamp(1rem, 2vw, 1.2rem);
}

/* Sections */
.section {
    padding: clamp(2rem, 5vw, 4rem) 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    flex-wrap: wrap;
    gap: 1rem;
}

.section-badge, .urgency-badge {
    background: var(--secondary);
    color: white;
    padding: clamp(0.2rem, 1vw, 0.3rem) clamp(0.5rem, 2vw, 0.8rem);
    border-radius: 50px;
    font-size: clamp(0.7rem, 2vw, 0.8rem);
    font-weight: 700;
    animation: pulse 2s infinite;
}

/* Grids */
.businesses-grid, .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(clamp(250px, 30vw, 280px), 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
    padding: 0 1rem;
}

/* Cards - Fixed for desktop */
.card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: clamp(1rem, 3vw, 1.5rem);
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s;
    border: 2px solid transparent;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.cart-item-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 10px;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px var(--shadow-hover);
    border-color: var(--primary-light);
}

.card h3 {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
    word-wrap: break-word;
}

.card p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    word-wrap: break-word;
}

.card .price {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 800;
    color: var(--primary);
    margin: 1rem 0;
    word-wrap: break-word;
}

.card .price::before {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--secondary);
    margin-bottom: 0.5rem;
    border-radius: 2px;
}

.stock-progress {
    margin: 0.5rem 0;
}

.stock-bar {
    height: 8px;
    background: var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.3rem;
}

.stock-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 0.5s;
}

.stock-text {
    font-size: 0.8rem;
    color: var(--text-light);
}

.out-of-stock {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--secondary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 1;
}

/* Countdown Special Badge */
.countdown-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: var(--text);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    animation: pulse 1s infinite;
    z-index: 1;
}

.countdown-timer {
    font-family: monospace;
    font-weight: 800;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Card button - Ensure it's not cut off */
.card button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: clamp(0.6rem, 2vw, 0.75rem) clamp(1rem, 2vw, 1.5rem);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    width: 100%;
    transition: all 0.3s;
    box-shadow: 0 4px 15px var(--shadow);
    font-size: clamp(0.9rem, 2vw, 1rem);
    margin-top: auto;
}

.card button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

.card button:active {
    transform: scale(0.98);
}

/* Social Proof */
.social-proof {
    background: var(--bg-secondary);
    padding: clamp(2rem, 5vw, 4rem) 0;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(200px, 25vw, 250px), 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
}

.proof-card {
    background: var(--bg-card);
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.proof-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 8px 25px var(--shadow);
}

.proof-icon {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    display: block;
}

.proof-card h3 {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.proof-card p {
    color: var(--text-light);
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    right: -450px;
    top: 0;
    width: clamp(300px, 90vw, 450px);
    height: 100vh;
    background: var(--bg-card);
    box-shadow: -5px 0 30px rgba(0,0,0,0.2);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    z-index: 1001;
    border-left: 3px solid var(--primary);
}

.cart-sidebar.open {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.cart-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.cart-header {
    padding: clamp(1rem, 3vw, 1.5rem);
    border-bottom: 2px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
    flex-wrap: wrap;
    gap: 1rem;
}

.cart-header h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 700;
}

.close-btn {
    background: none;
    border: none;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    cursor: pointer;
    color: var(--text-light);
    width: clamp(32px, 5vw, 40px);
    height: clamp(32px, 5vw, 40px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.close-btn:hover {
    background: var(--bg-secondary);
    color: var(--secondary);
}

/* Cart Progress with Springbok & Protea */
.cart-progress {
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1rem, 3vw, 1.5rem);
    background: var(--bg-secondary);
    position: relative;
}

.progress-bar {
    height: 12px;
    background: var(--border);
    border-radius: 10px;
    overflow: visible;
    position: relative;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 0.5s;
    position: relative;
}

.springbok {
    position: absolute;
    top: -8px;
    left: 0%;
    font-size: 1.2rem;
    transition: left 0.5s;
    transform: translateX(-50%);
}

.protea {
    position: absolute;
    top: -8px;
    right: 0;
    font-size: 1.2rem;
}

.promo-input {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.promo-input input {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 2px solid var(--border);
    border-radius: 50px;
    background: var(--bg-card);
    color: var(--text);
    font-size: 0.9rem;
    min-width: 150px;
}

.promo-input button {
    background: var(--accent);
    color: var(--text);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.promo-input button:hover {
    background: var(--primary);
    color: white;
}

.promo-applied {
    color: var(--success);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Cart Items Grouped by Store */
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: clamp(1rem, 3vw, 1.5rem);
    -webkit-overflow-scrolling: touch;
}

.cart-store-group {
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 1.5rem;
}

.cart-store-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cart-store-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.pickup-delivery-toggle {
    display: flex;
    gap: 0.5rem;
}

.toggle-btn {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.toggle-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    animation: slideInRight 0.3s;
    flex-wrap: wrap;
    gap: 0.5rem;
}

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

.cart-item-info {
    flex: 1;
    min-width: 150px;
}

.cart-item-info h4 {
    margin-bottom: 0.3rem;
    font-weight: 600;
    font-size: clamp(0.9rem, 2vw, 1rem);
    word-wrap: break-word;
}

.cart-item-info .price {
    color: var(--primary);
    font-weight: 700;
    font-size: clamp(1rem, 2vw, 1.1rem);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 2vw, 0.8rem);
    margin-top: 0.5rem;
}

.quantity-btn {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    color: var(--text);
    width: clamp(28px, 4vw, 35px);
    height: clamp(28px, 4vw, 35px);
    border-radius: 50%;
    cursor: pointer;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: bold;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.quantity {
    font-weight: 700;
    font-size: clamp(1rem, 2vw, 1.1rem);
    min-width: 30px;
    text-align: center;
}

.remove-btn {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    font-weight: 600;
    transition: all 0.3s;
}

.remove-btn:hover {
    background: #D32F2F;
    transform: scale(1.05);
}

/* Cart Footer */
.cart-footer {
    padding: clamp(1rem, 3vw, 1.5rem);
    border-top: 2px solid var(--border);
    background: var(--bg-secondary);
}

.cart-summary {
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: var(--text-light);
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.summary-row.discount {
    color: var(--success);
    font-weight: 600;
}

.summary-row.total {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    font-weight: 800;
    color: var(--text);
    border-top: 2px solid var(--border);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.checkout-btn {
    background: var(--gradient-primary) !important;
    color: white !important;
    border: none !important;
    padding: clamp(1rem, 2vw, 1.2rem) !important;
    border-radius: 50px !important;
    cursor: pointer;
    font-size: clamp(1rem, 2.5vw, 1.1rem) !important;
    font-weight: 700 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    transition: all 0.3s !important;
    box-shadow: 0 6px 20px var(--shadow) !important;
}

.checkout-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 30px var(--shadow-hover) !important;
}

.btn-price {
    background: rgba(255,255,255,0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
}

.secure-text {
    text-align: center;
    margin-top: 0.8rem;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: var(--text-light);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--success);
    color: white;
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2rem);
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(0,200,83,0.3);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2000;
    font-size: clamp(0.9rem, 2vw, 1rem);
    white-space: nowrap;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: clamp(1.5rem, 3vw, 2rem) 0;
    text-align: center;
    border-top: 3px solid var(--primary);
    color: var(--text-light);
    font-weight: 600;
    font-size: clamp(0.8rem, 2vw, 1rem);
}

/* Product Page Specific */
.search-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    position: relative;
}

.search-bar input {
    flex: 1;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--border);
    border-radius: 50px;
    background: var(--bg-card);
    color: var(--text);
    font-size: clamp(0.9rem, 2vw, 1rem);
    min-width: 150px;
    width: 100%;
}

.search-bar button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .search-bar {
        flex-direction: column;
    }
    
    .search-bar input {
        min-width: 100%;
    }
    
    .filter-btn {
        width: 100%;
        justify-content: center;
    }
}

.auto-suggest {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 10px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    -webkit-overflow-scrolling: touch;
}

.auto-suggest.show {
    display: block;
}

.auto-suggest-item {
    padding: 0.8rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

.auto-suggest-item:hover {
    background: var(--bg-secondary);
}

.filter-btn {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-window {
    position: fixed;
    top: 0;
    right: -300px;
    width: clamp(250px, 80vw, 300px);
    height: 100vh;
    background: var(--bg-card);
    box-shadow: -5px 0 30px rgba(0,0,0,0.2);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 1.5rem;
    overflow-y: auto;
    z-index: 1002;
    -webkit-overflow-scrolling: touch;
}

.filter-window.open {
    right: 0;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group h4 {
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Creative Profile Page */
.creative-profile {
    max-width: 1000px;
    margin: 0 auto;
}

.profile-hero {
    background: var(--gradient-warm);
    border-radius: 30px;
    padding: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.profile-avatar-section {
    margin-bottom: 1.5rem;
}

.profile-avatar {
    width: clamp(100px, 20vw, 150px);
    height: clamp(100px, 20vw, 150px);
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border: 4px solid var(--bg-card);
    box-shadow: 0 8px 30px var(--shadow);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    color: white;
}

.avatar-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.avatar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow);
}

.profile-welcome h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 0.5rem;
}

.profile-username {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-light);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

.stat-card .stat-number {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.profile-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.profile-section-left, .profile-section-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px var(--shadow);
}

.profile-card h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.profile-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--border);
    border-radius: 50px;
    background: var(--bg-secondary);
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.free-meal-progress .progress-bar {
    margin: 1rem 0;
}

.free-meal-text {
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 0.5rem;
}

/* Achievements */
.achievements {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.achievement {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 15px;
    transition: all 0.3s;
}

.achievement span {
    font-size: 2rem;
}

.achievement p {
    font-weight: 600;
    margin: 0;
}

.achievement.unlocked {
    background: var(--gradient-primary);
    color: white;
}

/* Feedback Page */
.feedback-rating {
    font-size: 2rem;
    cursor: pointer;
    margin-bottom: 1.5rem;
}

.feedback-rating i {
    margin-right: 0.5rem;
    transition: all 0.3s;
    color: var(--text-muted);
}

.feedback-rating i:hover,
.feedback-rating i.active {
    color: var(--accent);
    transform: scale(1.2);
}

textarea.profile-input {
    height: 150px;
    resize: vertical;
    border-radius: 20px;
}

/* ============================================
   RESPONSIVE DESIGN - ALL DEVICES
   Smartwatches → Phones → Tablets → Desktop → Big TVs
   ============================================ */

/* 1. SMARTWATCHES (≤ 320px) */
@media (max-width: 320px) {
    .header-container {
        padding: 0.25rem 0.5rem;
    }

    .logo-text {
        display: none;
    }

    .logo-icon {
        font-size: 1.2rem;
    }

    .header-actions .theme-toggle,
    .header-actions .cart-btn {
        padding: 0.3rem;
        font-size: 0.8rem;
    }

    .cart-count {
        width: 16px;
        height: 16px;
        font-size: 0.6rem;
    }

    .navbar {
        top: 40px;
    }

    .nav-container {
        padding: 0.25rem 0.5rem;
    }

    .nav-links {
        gap: 0.25rem;
    }

    .nav-links a {
        width: 28px;
        height: 28px;
    }

    .nav-icon {
        font-size: 0.8rem;
    }

    .hero {
        padding: 1rem 0.5rem;
        min-height: auto;
    }

    .hero-badge {
        font-size: 0.6rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 0.5rem;
    }

    .stat-number {
        font-size: 1rem;
    }

    .cta-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .businesses-grid,
    .products-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .card {
        padding: 0.75rem;
    }

    .promo-carousel .card {
        min-width: 200px;
        max-width: 200px;
    }

    .profile-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.25rem;
    }

    .stat-card {
        padding: 0.5rem;
    }

    .stat-card .stat-number {
        font-size: 1rem;
    }

    .profile-content {
        grid-template-columns: 1fr;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .filter-window {
        width: 100%;
        right: -100%;
    }
}

/* 2. SMALL PHONES (321px - 375px) */
@media (min-width: 321px) and (max-width: 375px) {
    .logo-text {
        display: none;
    }

    .nav-links a {
        width: 32px;
        height: 32px;
    }

    .hero {
        min-height: auto;
    }

    .businesses-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .promo-carousel .card {
        min-width: 220px;
        max-width: 220px;
    }
}

/* 3. MEDIUM PHONES (376px - 480px) */
@media (min-width: 376px) and (max-width: 480px) {
    .logo-text {
        display: none;
    }

    .nav-links {
        gap: 0.5rem;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        height: 200px;
    }

    .businesses-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .promo-carousel .card {
        min-width: 250px;
        max-width: 250px;
    }

    .profile-content {
        grid-template-columns: 1fr;
    }

    .search-bar {
        flex-direction: column;
    }
}

/* 4. LARGE PHONES / SMALL TABLETS (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        height: 250px;
    }

    .hero-stats {
        justify-content: center;
    }

    .businesses-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .promo-carousel .card {
        min-width: 280px;
        max-width: 280px;
    }

    .profile-content {
        grid-template-columns: 1fr;
    }

    .profile-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 5. TABLETS (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .businesses-grid,
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero {
        grid-template-columns: repeat(2, 1fr);
    }

    .promo-carousel .card {
        min-width: 300px;
        max-width: 300px;
    }

    .profile-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 6. SMALL DESKTOP (1025px - 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
    .businesses-grid,
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero {
        max-width: 1400px;
        margin: 0 auto;
    }

    .section-container {
        max-width: 1400px;
    }
}

/* 7. LARGE DESKTOP / SMALL TV (1441px - 1920px) */
@media (min-width: 1441px) and (max-width: 1920px) {
    .businesses-grid,
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .hero {
        max-width: 1600px;
        margin: 0 auto;
    }

    .section-container {
        max-width: 1600px;
    }
}

/* 8. BIG TVS / ULTRAWIDE (1921px - 2560px) */
@media (min-width: 1921px) and (max-width: 2560px) {
    .businesses-grid,
    .products-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .hero {
        max-width: 2000px;
        margin: 0 auto;
    }

    .section-container {
        max-width: 2000px;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav-links a {
        width: 50px;
        height: 50px;
    }

    .nav-icon {
        font-size: 1.4rem;
    }
}

/* 9. ULTRA-WIDE / 8K TVS (2561px+) */
@media (min-width: 2561px) {
    .businesses-grid,
    .products-grid {
        grid-template-columns: repeat(8, 1fr);
    }

    .hero {
        max-width: 2400px;
        margin: 0 auto;
    }

    .section-container {
        max-width: 2400px;
    }

    .nav-links {
        gap: 2rem;
    }

    .nav-links a {
        width: 60px;
        height: 60px;
    }

    .nav-icon {
        font-size: 1.6rem;
    }

    h1 { font-size: clamp(3rem, 5vw, 6rem); }
    h2 { font-size: clamp(2rem, 4vw, 4rem); }
    h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
    p { font-size: clamp(1.1rem, 2vw, 1.5rem); }
}
    
    .logo-text {
        font-size: 1rem;
    }
    
    .nav-links {
        gap: 0.5rem;
    }
    
    .nav-links a {
        font-size: 0.75rem;
    }
    
    .nav-icon {
        font-size: 0.9rem;
    }
    
    .hero {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
        min-height: auto;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-visual {
        order: 2;
        height: 200px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .stat {
        text-align: left;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.2rem;
        margin-bottom: 0;
    }
    
    .floating-card {
        font-size: 1.5rem;
    }
    
    .businesses-grid,
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .card h3 {
        font-size: 1rem;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .filter-window {
        width: 100%;
        right: -100%;
    }
    
    .profile-hero {
        padding: 1.5rem 1rem;
    }
    
    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .profile-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .stat-card {
        padding: 0.75rem 0.5rem;
    }
    
    .stat-card .stat-number {
        font-size: 1.2rem;
    }
    
    .profile-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .search-bar input {
        width: 100%;
    }
    
    .filter-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Small Mobile (376px - 480px) */
@media (min-width: 376px) and (max-width: 480px) {
    .businesses-grid,
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero {
        grid-template-columns: 1fr;
    }
    
    .hero-visual {
        height: 250px;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .profile-content {
        grid-template-columns: 1fr;
    }
}

/* Medium Mobile / Large Mobile (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .businesses-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .profile-content {
        grid-template-columns: 1fr;
    }
    
    .profile-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

/* Tablet Portrait (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .businesses-grid,
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profile-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* Small Desktop (1025px - 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
    .businesses-grid,
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .hero {
        max-width: 1400px;
        margin: 0 auto;
    }
}

/* Large Desktop / TV (1441px+) */
@media (min-width: 1441px) {
    .businesses-grid,
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .hero {
        max-width: 1600px;
        margin: 0 auto;
    }
    
    .section-container {
        max-width: 1600px;
    }
}

/* Landscape Mode on Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 1rem;
    }
    
    .hero-visual {
        display: none;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .nav-links a,
    .card button,
    .quantity-btn,
    .remove-btn,
    .toggle-btn,
    .filter-option label,
    .category-pill {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .card button {
        padding: 0.75rem 1rem;
    }
    
    .quantity-btn {
        width: 44px;
        height: 44px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .cart-sidebar,
    .cart-overlay,
    .toast,
    .footer,
    .theme-toggle,
    .filter-btn,
    .search-bar,
    .countdown-badge,
    .out-of-stock {
        display: none !important;
    }
    
    .page {
        display: block !important;
        page-break-after: always;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* ============================================
   CHECKOUT MODAL
   ============================================ */
.checkout-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.checkout-modal {
    background: var(--bg-card);
    border-radius: 24px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.3s ease;
}

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

.checkout-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.checkout-modal-title {
    font-size: 1.2rem;
    font-weight: 700;
}

.checkout-modal-close {
    background: var(--bg-secondary);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: background 0.2s;
}

.checkout-modal-close:hover {
    background: var(--border);
}

.checkout-modal-body {
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.checkout-modal-intro {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: var(--text-light);
    line-height: 1.5;
}

.checkout-modal-intro i {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
    color: var(--primary);
}

.checkout-modal-intro strong {
    color: var(--text);
}

.checkout-biz-card {
    background: var(--bg);
    border-radius: 16px;
    padding: 1.1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}

.checkout-biz-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.checkout-biz-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.checkout-biz-items {
    font-size: 0.8rem;
    color: var(--text-light);
}

.checkout-biz-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    white-space: nowrap;
    flex-shrink: 0;
}

.checkout-biz-badge.pending {
    background: var(--bg-secondary);
    color: var(--text-muted);
}

.checkout-biz-badge.sending {
    background: #FFF3E0;
    color: #E65100;
}

.checkout-biz-badge.sent {
    background: #E8F5E9;
    color: #2E7D32;
}

[data-theme="dark"] .checkout-biz-badge.sending {
    background: #3E2723;
    color: #FFB74D;
}

[data-theme="dark"] .checkout-biz-badge.sent {
    background: #1B5E20;
    color: #A5D6A7;
}

.checkout-biz-details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.8rem;
}

.checkout-biz-details span {
    font-size: 0.8rem;
    color: var(--text-light);
    padding-left: 0.5rem;
    border-left: 2px solid var(--border);
}

.checkout-send-btn {
    width: 100%;
    padding: 0.7rem;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    background: var(--gradient-primary);
    color: white;
    transition: opacity 0.2s, transform 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.checkout-send-btn:hover:not(:disabled) {
    opacity: 0.9;
    transform: scale(1.01);
}

.checkout-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--bg-secondary);
    color: var(--text-muted);
}

.checkout-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.checkout-modal-total span {
    font-size: 0.85rem;
    color: var(--text-light);
}

.checkout-modal-total strong {
    display: block;
    font-size: 1.3rem;
    color: var(--primary);
}

.checkout-done-btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    background: var(--bg-secondary);
    color: var(--text);
    transition: background 0.2s;
}

.checkout-done-btn:hover {
    background: var(--border);
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .proof-icon,
    .stat-number {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode System Preference */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --primary: #FF6B35;
        --primary-dark: #E55A2B;
        --secondary: #FF5252;
        --accent: #FFD93D;
        --success: #00E676;
        --bg: #0D1B2A;
        --bg-card: #1B2838;
        --bg-secondary: #162032;
        --text: #E0E1DD;
        --text-light: #B0BEC5;
        --text-muted: #546E7A;
        --border: #1E3A5F;
        --shadow: rgba(255, 107, 53, 0.2);
        --shadow-hover: rgba(255, 107, 53, 0.4);
        --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #FF1744 100%);
        --gradient-warm: linear-gradient(135deg, #0D1B2A 0%, #1B2838 100%);
    }
}

/* Print Styles */
@media print {
    .navbar, .cart-sidebar, .cart-overlay, .toast, .footer {
        display: none;
    }
}
