* {
            font-family: 'Inter', sans-serif;
            -webkit-tap-highlight-color: transparent;
        }

        html {
            scroll-behavior: smooth;
            -webkit-text-size-adjust: 100%;
        }

        body {
            background-color: #f8fafc;
            color: #1e293b;
            overflow-x: hidden;
            padding-bottom: env(safe-area-inset-bottom, 0);
        }

        button,
        a,
        select,
        input {
            min-height: 44px;
        }

        input[type="text"] {
            font-size: 16px !important;
        }

        .store-card {
            transition: all 0.2s ease;
            border: 1px solid #e2e8f0;
            background: white;
        }

        .store-card:hover {
            border-color: #cbd5e1;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            transform: translateY(-2px);
        }

        @media (hover: none) {
            .store-card:hover {
                transform: none;
            }
        }

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

        .store-card.highlighted {
            border-color: #2563eb;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2), 0 8px 24px rgba(37, 99, 235, 0.15);
            animation: pulse-highlight 2s ease-out;
        }

        @keyframes pulse-highlight {
            0% {
                box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.4);
            }

            100% {
                box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2), 0 8px 24px rgba(37, 99, 235, 0.15);
            }
        }

        .featured-card {
            border: 2px solid #2563eb;
            background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
        }

        .featured-card:hover {
            border-color: #1d4ed8;
            box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
        }

        .category-tab {
            transition: all 0.15s ease;
        }

        .category-tab:hover:not(.active-tab) {
            background-color: #f1f5f9;
        }

        .active-tab {
            background-color: #2563eb;
            color: white;
            border-color: #2563eb;
        }

        .input-search {
            border: 1px solid #cbd5e1;
            transition: all 0.2s ease;
        }

        .input-search:focus {
            outline: none;
            border-color: #2563eb;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        }

        .sticky-header {
            position: sticky;
            top: 0;
            z-index: 40;
        }

        .spinner {
            border: 3px solid #f3f3f3;
            border-radius: 50%;
            border-top: 3px solid #2563eb;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
        }

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

            100% {
                transform: rotate(360deg);
            }
        }

        .autocomplete-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border: 1px solid #e2e8f0;
            border-top: none;
            border-radius: 0 0 0.5rem 0.5rem;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
            max-height: 320px;
            overflow-y: auto;
            z-index: 50;
            -webkit-overflow-scrolling: touch;
        }

        .autocomplete-item {
            padding: 12px 14px;
            cursor: pointer;
            transition: background 0.1s;
            display: flex;
            align-items: center;
            gap: 10px;
            min-height: 48px;
        }

        .autocomplete-item:hover {
            background: #f1f5f9;
        }

        .slider-container {
            position: relative;
            overflow: hidden;
            border-radius: 0.75rem;
            height: 100%;
            min-height: 300px;
        }

        .slider-track {
            display: flex;
            transition: transform 0.5s ease;
            height: 100%;
        }

        .slider-track img {
            width: 100%;
            height: 100%;
            flex-shrink: 0;
            object-fit: cover;
            border-radius: 0.75rem;
        }

        .slider-dots {
            display: flex;
            justify-content: center;
            gap: 6px;
            margin-top: 10px;
        }

        .slider-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: #cbd5e1;
            cursor: pointer;
            transition: background 0.2s;
        }

        .slider-dot.active {
            background: #2563eb;
        }

        .modal-backdrop {
            background: rgba(15, 23, 42, 0.5);
            backdrop-filter: blur(4px);
        }

        .shop-dropdown {
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 0.75rem;
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
            z-index: 60;
            width: 340px;
            max-height: 80vh;
            overflow-y: auto;
            animation: dropdownIn 0.2s ease;
        }

        @keyframes dropdownIn {
            from {
                opacity: 0;
                transform: translateY(-8px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes slideUp {
            from { opacity: 0; transform: translateY(100%); }
            to { opacity: 1; transform: translateY(0); }
        }
        .animate-slide-up { animation: slideUp 0.3s ease; }

        .shop-dropdown-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 16px;
            transition: background 0.15s;
            cursor: pointer;
            text-decoration: none;
            color: inherit;
            border-bottom: 1px solid #f1f5f9;
        }

        .shop-dropdown-item:last-child {
            border-bottom: none;
        }

        .shop-dropdown-item:hover {
            background: #f8fafc;
        }

        .dark .shop-dropdown {
            background: #1e293b;
            border-color: #334155;
        }

        .dark .shop-dropdown-item {
            border-color: #334155;
        }

        .dark .shop-dropdown-item:hover {
            background: #334155;
        }

        @media (max-width: 400px) {
            .shop-dropdown {
                width: 290px;
                right: -40px;
            }
        }

        .consent-check {
            width: 20px;
            height: 20px;
            accent-color: #2563eb;
            cursor: pointer;
            flex-shrink: 0;
        }

        .consent-btn-disabled {
            opacity: 0.5;
            pointer-events: none;
        }

        .nearest-badge {
            background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
            color: #78350f;
            font-size: 10px;
            font-weight: 700;
            padding: 2px 8px;
            border-radius: 9999px;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }

        @media (max-width: 640px) {
            .sticky-header {
                position: sticky;
                top: 0;
            }

            .featured-card {
                padding: 12px !important;
            }

            .featured-card .text-sm {
                font-size: 0.8rem;
            }

            .header-icon-btn {
                width: 40px;
                height: 40px;
                display: flex;
                align-items: center;
                justify-content: center;
                border-radius: 10px;
                background: #f1f5f9;
                border: 1px solid #e2e8f0;
            }

            .dark .header-icon-btn {
                background: #334155;
                border-color: #475569;
            }
        }

        @media (max-width: 380px) {
            .featured-card {
                gap: 8px !important;
            }
        }

        /* Dark Mode Overrides */
        html.dark {
            background-color: #0f172a;
        }

        .dark body {
            background-color: #0f172a;
            color: #f8fafc;
        }

        .dark .bg-white {
            background-color: #1e293b !important;
        }

        .dark .bg-slate-50 {
            background-color: #020617 !important;
        }

        .dark .bg-slate-100 {
            background-color: #334155 !important;
        }

        .dark .text-slate-800 {
            color: #f8fafc !important;
        }

        .dark .text-slate-700 {
            color: #cbd5e1 !important;
        }

        .dark .text-slate-600,
        .dark .text-slate-500 {
            color: #94a3b8 !important;
        }

        .dark .border-slate-200,
        .dark .border-slate-100 {
            border-color: #334155 !important;
        }

        .dark .input-search {
            background-color: #0f172a !important;
            color: white !important;
        }

        .dark .store-card {
            background: #1e293b;
            border-color: #334155;
        }

        .dark .category-tab {
            background-color: #0f172a;
            color: #cbd5e1;
            border-color: #334155;
        }

        .dark .category-tab.active-tab {
            background-color: #2563eb;
            color: white;
            border-color: #2563eb;
        }

        .dark .autocomplete-dropdown {
            background-color: #1e293b;
            border-color: #334155;
        }

        .dark .autocomplete-item:hover {
            background-color: #334155;
        }

        .dark .featured-card {
            background: linear-gradient(135deg, #1e3a8a 0%, #1e293b 100%);
            border-color: #3b82f6;
        }

        .dark .modal-backdrop {
            background: rgba(0, 0, 0, 0.7);
        }

        .no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
        .no-scrollbar::-webkit-scrollbar { display: none; }

/* Security/UX helpers */
.consent-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 9998; }
@media (min-width: 640px) { .consent-banner { left: auto; max-width: 420px; } }

/* Custom Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    z-index: 0;
}
.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    z-index: 10;
}
