/**
 * CloseKart - Custom Styles (Optimized & Complete)
 * Version: 3.0 - LIGHT BACKGROUNDS FOR TEXT VISIBILITY
 * 
 * KEY PRINCIPLES:
 * - Light backgrounds for optimal text readability
 * - CSS custom properties for easy theming
 * - Mobile-first responsive design
 * - Performance optimized
 */

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
    /* Primary Colors */
    --primary: #FF6B35;
    --primary-dark: #e55a2b;
    --primary-light: #ff8c61;
    --primary-rgb: 255, 107, 53;
    --primary-soft: rgba(var(--primary-rgb), 0.1);
    
    /* Secondary Colors */
    --secondary: #2d3436;
    --secondary-light: #636e72;
    --secondary-rgb: 45, 52, 54;
    
    /* Background Colors - LIGHT THEME */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f3f4;
    --bg-light: #fafafa;
    
    /* Text Colors */
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --text-muted: #b2bec3;
    --text-white: #ffffff;
    --text-light: #f5f5f5;
    
    /* Semantic Colors */
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #d63031;
    --info: #0984e3;
    
    /* Border & Divider */
    --border-color: #e9ecef;
    --border-light: #f1f3f4;
    --border-focus: var(--primary);
    
    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.03);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-md: 0 6px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --shadow-primary: 0 10px 30px rgba(var(--primary-rgb), 0.3);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.15);
    
    /* Spacing Scale */
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 15px;
    --radius-xl: 20px;
    --radius-2xl: 25px;
    --radius-full: 9999px;
    
    /* Typography */
    --font-sans: 'Poppins', 'Noto Sans Devanagari', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    
    /* Font Weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    
    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Z-Index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ============================================
   BASE STYLES & RESET
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    height: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input, button, textarea, select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

@media (min-width: 640px) {
    .container { padding-left: var(--space-6); padding-right: var(--space-6); }
}

/* Text Utilities */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-white { color: var(--text-white) !important; }
.text-dark { color: var(--text-primary) !important; }

.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

.font-medium { font-weight: var(--font-medium) !important; }
.font-semibold { font-weight: var(--font-semibold) !important; }
.font-bold { font-weight: var(--font-bold) !important; }

.text-sm { font-size: var(--text-sm) !important; }
.text-lg { font-size: var(--text-lg) !important; }
.text-xl { font-size: var(--text-xl) !important; }
.text-2xl { font-size: var(--text-2xl) !important; }

/* Background Utilities */
.bg-white { background-color: var(--bg-primary) !important; }
.bg-light { background-color: var(--bg-secondary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-primary-soft { background-color: var(--primary-soft) !important; }

/* Spacing Utilities */
.p-0 { padding: 0 !important; }
.p-4 { padding: var(--space-4) !important; }
.p-6 { padding: var(--space-6) !important; }
.p-8 { padding: var(--space-8) !important; }

.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-5 { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.py-6 { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.py-8 { padding-top: var(--space-12); padding-bottom: var(--space-12); }

.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: var(--space-2) !important; }
.mb-3 { margin-bottom: var(--space-3) !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }
.mb-5 { margin-bottom: var(--space-6) !important; }

/* Flex Utilities */
.flex { display: flex !important; }
.flex-col { flex-direction: column !important; }
.items-center { align-items: center !important; }
.justify-between { justify-content: space-between !important; }
.justify-center { justify-content: center !important; }
.flex-wrap { flex-wrap: wrap !important; }
.gap-2 { gap: var(--space-2) !important; }
.gap-4 { gap: var(--space-4) !important; }

/* Display Utilities */
.hidden { display: none !important; }
.block { display: block !important; }
.inline-block { display: inline-block !important; }

/* Border Radius */
.rounded-md { border-radius: var(--radius-md) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-xl { border-radius: var(--radius-xl) !important; }
.rounded-full { border-radius: var(--radius-full) !important; }

/* Shadow */
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow { box-shadow: var(--shadow) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

/* Position */
.relative { position: relative !important; }
.absolute { position: absolute !important; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    line-height: var(--leading-none);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-primary);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: var(--text-white);
}

.btn-light {
    background-color: var(--bg-primary);
    color: var(--primary);
    border-color: var(--border-color);
}

.btn-light:hover {
    background-color: var(--bg-secondary);
    border-color: var(--primary);
}

.btn-lg {
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-base);
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background-color: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-body {
    padding: var(--space-5);
}

.card-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.card-text {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-full);
    line-height: 1;
}

.badge-primary {
    background-color: var(--primary);
    color: var(--text-white);
}

.badge-secondary {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
}

.badge-success {
    background-color: var(--success);
    color: var(--text-white);
}

.badge-warning {
    background-color: var(--warning);
    color: var(--text-primary);
}

/* ============================================
   FORMS
   ============================================ */
.form-control {
    display: block;
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.input-group .form-control {
    border-radius: 0;
    position: relative;
    flex: 1 1 auto;
}

.input-group .btn,
.input-group .input-group-text {
    border-radius: 0;
}

.input-group > :first-child {
    border-top-left-radius: var(--radius-md);
    border-bottom-left-radius: var(--radius-md);
}

.input-group > :last-child {
    border-top-right-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: var(--space-3) var(--space-4);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* ============================================
   SECTIONS - LIGHT BACKGROUNDS
   ============================================ */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-soft) 0%, var(--bg-primary) 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: var(--space-12) 0;
}

.hero-title {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
    .hero-title { font-size: var(--text-4xl); }
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    max-width: 600px;
}

/* Shop Header Section - LIGHT BACKGROUND */
.shop-header-section {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: var(--space-12) 0;
    border-bottom: 1px solid var(--border-color);
}

.shop-header-section h1,
.shop-header-section h2,
.shop-header-section h3,
.shop-header-section h4,
.shop-header-section h5,
.shop-header-section h6 {
    color: var(--text-primary);
}

.shop-header-section p {
    color: var(--text-secondary);
}

.shop-header-section .badge {
    background: var(--primary);
    color: var(--text-white);
}

.shop-header-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--bg-tertiary);
}

.shop-header-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

/* Products Section - LIGHT BACKGROUND */
.products-section {
    padding: var(--space-12) 0;
    background: var(--bg-primary);
}

.products-section h2 {
    color: var(--text-primary);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-6);
}

/* Categories Section - LIGHT BACKGROUND */
.categories-section {
    background: var(--bg-primary);
    padding: var(--space-12) 0;
}

.categories-section h2 {
    color: var(--text-primary);
}

/* Nearby Shops Section - LIGHT BACKGROUND */
.nearby-shops-section {
    background: var(--bg-secondary);
    padding: var(--space-12) 0;
}

.nearby-shops-section h2 {
    color: var(--text-primary);
}

/* Featured Shops Section - LIGHT BACKGROUND */
.featured-shops-section {
    background: var(--bg-primary);
    padding: var(--space-12) 0;
}

.featured-shops-section h2 {
    color: var(--text-primary);
}

/* How It Works Section - LIGHT BACKGROUND */
.how-it-works-section {
    background: var(--bg-secondary);
    padding: var(--space-12) 0;
}

.how-it-works-section h2 {
    color: var(--text-primary);
}

/* Seller CTA Section - KEEP GRADIENT BUT ENSURE TEXT CONTRAST */
.seller-cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
    padding: var(--space-12) 0;
}

.seller-cta-section h2 {
    color: var(--text-white);
}

.seller-cta-section p {
    color: rgba(255, 255, 255, 0.9);
}

/* Location Prompt Section - LIGHT BACKGROUND */
.location-prompt-section {
    background: var(--bg-secondary);
    padding: var(--space-12) 0;
}

.location-prompt-section h3 {
    color: var(--text-primary);
}

.location-prompt-section p {
    color: var(--text-secondary);
}

/* ============================================
   COMPONENTS
   ============================================ */

/* Product Card */
.product-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    background: var(--bg-secondary);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card .card-body {
    padding: var(--space-5);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card h5 {
    color: var(--text-primary);
    font-weight: var(--font-semibold);
    font-size: var(--text-base);
    margin-bottom: var(--space-2);
    line-height: var(--leading-snug);
}

.product-card .card-text {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
    flex: 1;
}

/* Price Section */
.price-section {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-bottom: var(--space-4);
}

.current-price {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--primary);
}

.original-price {
    font-size: var(--text-sm);
    color: var(--text-muted);
    text-decoration: line-through;
}

.discount-badge {
    background: var(--primary-soft);
    color: var(--primary);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
}

/* Shop Card */
.shop-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
    height: 100%;
}

.shop-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.shop-image {
    position: relative;
    overflow: hidden;
}

.shop-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.shop-card:hover .shop-image img {
    transform: scale(1.05);
}

/* Badges on Cards */
.delivery-badge,
.featured-badge,
.distance-badge {
    position: absolute;
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
}

.delivery-badge {
    top: var(--space-3);
    right: var(--space-3);
    background: var(--success);
    color: var(--text-white);
}

.featured-badge {
    top: var(--space-3);
    left: var(--space-3);
    background: var(--warning);
    color: var(--text-primary);
}

.distance-badge {
    bottom: var(--space-3);
    left: var(--space-3);
    background: var(--primary);
    color: var(--text-white);
}

/* Rating */
.rating {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.rating i {
    color: #FFD700;
    font-size: var(--text-sm);
}

.rating .text-muted {
    color: var(--text-muted);
}

/* Category Card */
.category-item {
    flex: 0 0 auto;
    width: 120px;
}

.category-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-5) var(--space-4);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

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

.category-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-soft);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-3);
    transition: all var(--transition-base);
}

.category-card:hover .category-icon {
    background: var(--primary);
}

.category-card:hover .category-icon i {
    color: var(--text-white) !important;
}

.category-name {
    color: var(--text-primary);
    font-weight: var(--font-medium);
    font-size: var(--text-sm);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Step Card */
.step-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
    height: 100%;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-icon {
    position: relative;
    display: inline-block;
    margin-bottom: var(--space-4);
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: var(--primary);
    color: var(--text-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-number {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 30px;
    height: 30px;
    background: var(--secondary-light);
    color: var(--text-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-bold);
    font-size: var(--text-sm);
    border: 2px solid var(--bg-primary);
}

.step-card h4 {
    color: var(--text-primary);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-2);
}

.step-card p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin-bottom: 0;
}

/* Search Box */
.search-box {
    max-width: 600px;
}

.search-box .input-group {
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.search-box .form-control {
    border: none;
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-base);
}

.search-box .btn {
    border-radius: 0;
    padding-left: var(--space-6);
    padding-right: var(--space-6);
}

/* Stats */
.quick-stats {
    display: flex;
    gap: var(--space-6);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--primary);
    line-height: 1;
    margin-bottom: var(--space-1);
}

.stat-item small {
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

/* Location Prompt Card */
.location-prompt-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

/* Scroll Buttons for Categories */
.categories-scroll-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.categories-container {
    display: flex;
    gap: var(--space-4);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: var(--space-2) 0;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

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

.categories-container:active {
    cursor: grabbing;
}

.scroll-btn {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--bg-primary);
    box-shadow: var(--shadow-md);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 10;
}

.scroll-btn:hover {
    background: var(--primary);
    color: var(--text-white);
    transform: scale(1.1);
}

.scroll-btn:active {
    transform: scale(0.95);
}

@media (max-width: 576px) {
    .scroll-btn { display: none; }
    .category-item { width: 100px; }
    .category-card { padding: var(--space-4) var(--space-3); }
    .category-icon { width: 50px; height: 50px; }
}

/* Scroll Indicators */
.scroll-indicators {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    padding: 0;
}

.scroll-dot.active {
    background: var(--primary);
    width: 20px;
    border-radius: var(--radius-sm);
}

/* ============================================
   DARK BACKGROUND CONVERTER
   Ensures any dark backgrounds become light
   ============================================ */
.dark-section,
.bg-dark-section,
.bg-dark,
[style*="background: #2d3436"],
[style*="background:#2d3436"],
[style*="background-color: #2d3436"],
[style*="background-color:#2d3436"] {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 768px) {
    :root {
        --space-12: 2.5rem;
        --text-3xl: 1.5rem;
        --text-4xl: 1.875rem;
    }
    
    .hero-section {
        min-height: auto;
        padding: var(--space-8) 0;
    }
    
    .shop-header-image img {
        height: 200px;
    }
}

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

/* Print Styles */
@media print {
    .hero-section,
    .seller-cta-section,
    .scroll-btn,
    .location-prompt-section {
        display: none !important;
    }
    
    .shop-card,
    .product-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid var(--border-color);
    }
}
/* ============================================
   CTA & FOOTER SPACING FIX
============================================ */

/* Add space below seller CTA section */
.seller-cta-section {
    margin-bottom: 70px;   /* Desktop spacing */
}

/* Ensure footer does not collapse upward */
.footer {
    position: relative;
    z-index: 1;
}

/* Mobile responsive spacing */
@media (max-width: 768px) {
    .seller-cta-section {
        margin-bottom: 30px;  /* Slightly smaller gap on mobile */
    }
}
.seller-cta-section {
    margin-bottom: 50px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}