/* Christmas Deals Mobile-First CSS */

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

:root {
    /* Dark Christmas Color Palette - Light Mode */
    --xmas-red: #C0392B;
    --xmas-red-dark: #922B21;
    --xmas-red-light: #E74C3C;
    --xmas-green: #1E8449;
    --xmas-green-dark: #145A32;
    --xmas-green-light: #27AE60;
    --xmas-gold: #D4AC0D;
    --xmas-gold-light: #F1C40F;
    --xmas-burgundy: #7B241C;
    --xmas-pine: #0B5345;
    --xmas-cream: #FDF5E6;
    --xmas-white: #FFFFFF;
    --xmas-dark: #1C2833;
    --xmas-charcoal: #2C3E50;
    --xmas-gray: #5D6D7E;
    --xmas-light-gray: #D5D8DC;
    --xmas-card-bg: #FFFFFF;
    --xmas-shadow: rgba(28, 40, 51, 0.15);
    --xmas-body-bg: linear-gradient(180deg, #FDEBD0 0%, #FADBD8 50%, #D5F5E3 100%);
    --xmas-text: #1C2833;
    --xmas-text-muted: #5D6D7E;
    --nav-height: 60px;

    /* Header gradient */
    --header-gradient: linear-gradient(135deg, var(--xmas-burgundy) 0%, var(--xmas-red-dark) 25%, var(--xmas-green-dark) 75%, var(--xmas-pine) 100%);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --xmas-card-bg: #1C2833;
    --xmas-white: #2C3E50;
    --xmas-cream: #1C2833;
    --xmas-dark: #ECF0F1;
    --xmas-charcoal: #BDC3C7;
    --xmas-gray: #95A5A6;
    --xmas-light-gray: #34495E;
    --xmas-shadow: rgba(0, 0, 0, 0.3);
    --xmas-body-bg: linear-gradient(180deg, #1C2833 0%, #2C3E50 50%, #1C2833 100%);
    --xmas-text: #ECF0F1;
    --xmas-text-muted: #95A5A6;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--xmas-body-bg);
    background-attachment: fixed;
    color: var(--xmas-text);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    padding-bottom: var(--nav-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.3s ease, color 0.3s ease;
}

.app-container {
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    padding-bottom: var(--nav-height);
}

/* Christmas Header */
.bf-header {
    background: var(--header-gradient);
    position: relative;
    overflow: hidden;
    padding: 1.5rem 0.75rem;
    padding-top: 2.5rem;
    margin-bottom: 1rem;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 8px 32px rgba(123, 36, 28, 0.3);
}

.bf-header.compact {
    padding: 1.25rem 0.75rem;
    padding-top: 2.5rem;
}

.bf-banner {
    position: relative;
    text-align: center;
    z-index: 2;
}

/* Christmas Lights */
.christmas-lights {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    z-index: 3;
    overflow: hidden;
}

.lights-wire {
    position: absolute;
    top: 8px;
    left: -10px;
    right: -10px;
    height: 3px;
    background: #2C3E50;
    border-radius: 2px;
}

.light-bulb {
    position: absolute;
    top: 8px;
    width: 12px;
    height: 18px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: glow 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
}

.light-bulb::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #5D6D7E;
    border-radius: 2px;
}

.light-bulb:nth-child(2) { left: 5%; background: #E74C3C; color: #E74C3C; animation-delay: 0s; }
.light-bulb:nth-child(3) { left: 12%; background: #F1C40F; color: #F1C40F; animation-delay: 0.2s; }
.light-bulb:nth-child(4) { left: 19%; background: #27AE60; color: #27AE60; animation-delay: 0.4s; }
.light-bulb:nth-child(5) { left: 26%; background: #3498DB; color: #3498DB; animation-delay: 0.6s; }
.light-bulb:nth-child(6) { left: 33%; background: #E74C3C; color: #E74C3C; animation-delay: 0.8s; }
.light-bulb:nth-child(7) { left: 40%; background: #F1C40F; color: #F1C40F; animation-delay: 1s; }
.light-bulb:nth-child(8) { left: 47%; background: #27AE60; color: #27AE60; animation-delay: 0.1s; }
.light-bulb:nth-child(9) { left: 54%; background: #3498DB; color: #3498DB; animation-delay: 0.3s; }
.light-bulb:nth-child(10) { left: 61%; background: #E74C3C; color: #E74C3C; animation-delay: 0.5s; }
.light-bulb:nth-child(11) { left: 68%; background: #F1C40F; color: #F1C40F; animation-delay: 0.7s; }
.light-bulb:nth-child(12) { left: 75%; background: #27AE60; color: #27AE60; animation-delay: 0.9s; }
.light-bulb:nth-child(13) { left: 82%; background: #3498DB; color: #3498DB; animation-delay: 0.15s; }
.light-bulb:nth-child(14) { left: 89%; background: #E74C3C; color: #E74C3C; animation-delay: 0.35s; }
.light-bulb:nth-child(15) { left: 96%; background: #F1C40F; color: #F1C40F; animation-delay: 0.55s; }

@keyframes glow {
    0%, 100% {
        opacity: 1;
        filter: brightness(1.2);
        box-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
    }
    50% {
        opacity: 0.4;
        filter: brightness(0.6);
        box-shadow: 0 0 5px currentColor;
    }
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.dark-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.dark-mode-toggle:active {
    transform: scale(0.95);
}

.dark-mode-toggle svg {
    width: 22px;
    height: 22px;
    stroke: #FFFFFF;
    transition: all 0.3s ease;
}

/* Sun icon - visible in dark mode */
.dark-mode-toggle .sun-icon {
    display: none;
}

/* Moon icon - visible in light mode */
.dark-mode-toggle .moon-icon {
    display: block;
}

/* Swap icons in dark mode */
[data-theme="dark"] .dark-mode-toggle .sun-icon {
    display: block;
}

[data-theme="dark"] .dark-mode-toggle .moon-icon {
    display: none;
}

[data-theme="dark"] .dark-mode-toggle {
    background: rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .dark-mode-toggle:hover {
    background: rgba(0, 0, 0, 0.4);
}

/* Snow/Sparkle effect */
.lightning-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 50% 50%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 60% 20%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 80% 80%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 10% 60%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(2px 2px at 90% 40%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(3px 3px at 25% 85%, rgba(212, 172, 13, 0.5), transparent),
        radial-gradient(3px 3px at 75% 15%, rgba(212, 172, 13, 0.5), transparent);
    animation: sparkle 4s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 0.8; transform: translateY(-3px); }
}

.bf-title {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 0.35rem;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}

.bf-title-compact {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 0.25rem;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}

/* Christmas text styling */
.bf-christmas {
    color: #FFFFFF;
    background: linear-gradient(90deg, #F1C40F, #FFFFFF, #F1C40F);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
    font-size: 1em;
}

.bf-deals {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.45em;
    letter-spacing: 6px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Legacy classes for compatibility */
.bf-black {
    color: #FFFFFF;
    font-size: 0.6em;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.9;
}

.bf-friday {
    color: #FFFFFF;
    background: linear-gradient(90deg, #F1C40F, #FFFFFF, #F1C40F);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        background-position: -200% center;
    }
    50% {
        background-position: 200% center;
    }
}

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

.bf-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Dark Mode Toggle */
.theme-toggle {
    position: absolute;
    top: 35px;
    right: 12px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    color: white;
    transition: transform 0.3s ease;
}

.theme-toggle:hover svg {
    transform: rotate(20deg);
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: none;
}

/* Countdown Timer */
.countdown-timer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* When showing sale-live message, switch to column layout */
.countdown-timer:has(.sale-live) {
    flex-direction: column;
    gap: 0.5rem;
}

.time-segment {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.5rem 0.6rem;
    min-width: 55px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.time-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--xmas-gold-light);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.time-label {
    display: block;
    font-size: 0.5625rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0.15rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sale-live {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--xmas-gold-light);
    animation: celebratePulse 1.5s ease-in-out infinite;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

@keyframes celebratePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.05);
    }
}

/* New Year Countdown */
.cyber-monday-countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.75rem;
}

.cyber-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cyber-time {
    font-size: 1rem;
    font-weight: 700;
    color: #FFFFFF;
    font-variant-numeric: tabular-nums;
}

/* Search Section */
.search-section {
    padding: 0 0.75rem;
    margin-bottom: 0.85rem;
}

.search-bar {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.search-bar input {
    width: 100%;
    padding: 0.75rem 2.75rem 0.75rem 1rem;
    background: var(--xmas-card-bg);
    border: 2px solid var(--xmas-light-gray);
    border-radius: 16px;
    color: var(--xmas-text);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px var(--xmas-shadow);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--xmas-green);
    box-shadow: 0 4px 20px rgba(30, 132, 73, 0.25);
}

.search-bar input::placeholder {
    color: var(--xmas-text-muted);
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--xmas-text-muted);
}

/* Filter Section */
.filter-section {
    padding: 0 0.75rem;
    margin-bottom: 0.85rem;
}

.filter-chips {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.25rem 0;
}

.filter-chips::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    padding: 0.5rem 1rem;
    background: var(--xmas-card-bg);
    border: 2px solid var(--xmas-light-gray);
    border-radius: 20px;
    color: var(--xmas-text);
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--xmas-shadow);
}

.filter-chip:hover {
    border-color: var(--xmas-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 132, 73, 0.2);
}

.filter-chip.active {
    background: linear-gradient(135deg, var(--xmas-green-dark) 0%, var(--xmas-green) 100%);
    border-color: transparent;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(30, 132, 73, 0.35);
}

/* Main Content */
.main-content {
    padding: 0 1rem;
    min-height: calc(100vh - 300px);
}

/* Loading State */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--xmas-text);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--xmas-light-gray);
    border-top-color: var(--xmas-red);
    border-right-color: var(--xmas-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error State */
.error-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--xmas-text);
}

.error-icon {
    width: 48px;
    height: 48px;
    color: var(--xmas-red);
    margin: 0 auto 1rem;
}

.retry-btn {
    margin-top: 1rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--xmas-red-dark) 0%, var(--xmas-red) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(192, 57, 43, 0.35);
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192, 57, 43, 0.45);
}

/* Store Listings Grid */
.listings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-bottom: 1rem;
}

.store-card {
    background: var(--xmas-card-bg);
    border: none;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--xmas-shadow);
}

.store-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.store-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px var(--xmas-shadow);
}

.deal-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 10;
    animation: badge-float 3s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.deal-badge.featured {
    background: linear-gradient(135deg, var(--xmas-red-dark), var(--xmas-red));
    color: white;
}

.deal-badge.new {
    background: linear-gradient(135deg, var(--xmas-gold), var(--xmas-gold-light));
    color: #1C2833;
}

.deal-badge.trending {
    background: linear-gradient(135deg, #8E44AD, #9B59B6);
    color: white;
}

.deal-badge.datafree {
    background: linear-gradient(135deg, var(--xmas-green-dark), var(--xmas-green));
    color: white;
}

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

.store-logo-container {
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--xmas-green-dark) 0%, var(--xmas-green) 100%);
    padding: 0.75rem;
}

.store-logo {
    max-width: 100%;
    max-height: 38px;
    object-fit: contain;
    filter: brightness(1.05);
}

.store-info {
    padding: 0.75rem 0.85rem;
}

.store-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--xmas-text);
}

.store-tagline-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.store-tagline {
    font-size: 0.8rem;
    color: var(--xmas-text-muted);
    margin: 0;
    flex: 1;
    line-height: 1.4;
}

.store-meta {
    margin-bottom: 0.65rem;
}

.discount-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, rgba(212, 172, 13, 0.15), rgba(241, 196, 15, 0.15));
    border: 1.5px solid var(--xmas-gold);
    border-radius: 8px;
    color: var(--xmas-gold);
    font-size: 0.75rem;
    font-weight: 700;
}

.shop-now-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--xmas-red-dark) 0%, var(--xmas-red) 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.8rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.3);
}

.shop-now-btn:hover {
    transform: translateX(3px);
    box-shadow: 0 6px 16px rgba(192, 57, 43, 0.4);
}

.btn-icon {
    width: 14px;
    height: 14px;
}

/* Catalogues Page */
.catalogues-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding-bottom: 1rem;
}

.catalogue-card {
    background: var(--xmas-card-bg);
    border: none;
    border-radius: 16px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--xmas-shadow);
}

.catalogue-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.catalogue-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px var(--xmas-shadow);
}

.catalogue-header {
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    position: relative;
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
}

.catalogue-store-logo {
    width: 140px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 0.5rem;
    backdrop-filter: blur(5px);
}

.cat-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.store-initial {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
}

.catalogue-preview {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.pdf-icon {
    width: 26px;
    height: 26px;
    color: white;
}

.catalogue-info {
    padding: 0.85rem;
}

.catalogue-name {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--xmas-text);
    line-height: 1.35;
}

.catalogue-meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: var(--xmas-text-muted);
}

.meta-item svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    color: var(--xmas-green);
}

.catalogue-actions {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--xmas-red-dark) 0%, var(--xmas-red) 100%);
    color: white;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.3);
}

.view-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(192, 57, 43, 0.4);
}

.download-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 2px solid var(--xmas-green);
    border-radius: 10px;
    background: transparent;
    color: var(--xmas-green);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: var(--xmas-green);
    color: white;
    transform: scale(1.02);
}

.view-btn svg,
.download-btn svg {
    width: 16px;
    height: 16px;
}

.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--xmas-text-muted);
    grid-column: 1 / -1;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--xmas-card-bg);
    border-top: 1px solid var(--xmas-light-gray);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
    box-shadow: 0 -4px 20px var(--xmas-shadow);
    transition: background 0.3s ease;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.5rem;
    color: var(--xmas-text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.nav-item span {
    font-size: 0.7rem;
    font-weight: 600;
}

.nav-item.active {
    color: var(--xmas-red);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 3px;
    background: linear-gradient(90deg, var(--xmas-red), var(--xmas-green));
    border-radius: 0 0 4px 4px;
}

.nav-item:hover {
    color: var(--xmas-green);
}

/* Coming Soon Styles */
.coming-soon-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.store-card.coming-soon .store-logo,
.catalogue-card.coming-soon .cat-logo {
    display: none;
}

.store-card.coming-soon .shop-now-btn,
.catalogue-card.coming-soon .view-btn {
    display: none;
}

.store-card.coming-soon .store-tagline,
.catalogue-card.coming-soon .catalogue-name {
    display: none;
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Media Queries for tablets and larger screens */
@media (min-width: 768px) {
    .bf-title {
        font-size: 3.5rem;
    }

    .listings-grid,
    .catalogues-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .app-container {
        max-width: 1200px;
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .listings-grid,
    .catalogues-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Touch feedback */
button,
a,
.filter-chip {
    -webkit-tap-highlight-color: rgba(30, 132, 73, 0.1);
}

/* Smooth scrolling for iOS */
.app-container {
    -webkit-overflow-scrolling: touch;
}

/* Safe area insets for notched devices */
.bottom-nav {
    padding-bottom: env(safe-area-inset-bottom);
}

.app-container {
    padding-top: env(safe-area-inset-top);
}

/* Modal/Popup Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(28, 40, 51, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(8px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--xmas-card-bg);
    border: none;
    border-radius: 20px;
    padding: 1.75rem;
    max-width: 90%;
    width: 360px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    position: relative;
}

.modal-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    display: block;
    color: var(--xmas-green);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--xmas-text);
    text-align: center;
    margin-bottom: 0.5rem;
}

.modal-message {
    font-size: 0.9375rem;
    color: var(--xmas-text-muted);
    text-align: center;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.modal-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    border-radius: 14px;
    margin: 1rem 0;
    background: linear-gradient(135deg, var(--xmas-green-dark), var(--xmas-green));
}

.modal-logo {
    display: block;
    max-width: 150px;
    max-height: 70px;
    object-fit: contain;
}

.modal-notice {
    font-size: 0.75rem;
    color: var(--xmas-text-muted);
    text-align: center;
    margin-bottom: 1.5rem;
    font-style: italic;
    padding: 0.5rem;
    background: rgba(192, 57, 43, 0.1);
    border-radius: 8px;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
}

.modal-btn {
    flex: 1;
    padding: 0.9rem;
    border: none;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn-cancel {
    background: var(--xmas-light-gray);
    color: var(--xmas-text);
}

.modal-btn-cancel:hover {
    background: var(--xmas-gray);
    color: white;
    transform: scale(1.02);
}

.modal-btn-cancel:focus,
.modal-btn-cancel:active {
    background: var(--xmas-light-gray);
    color: var(--xmas-text);
    outline: none;
}

.modal-btn-confirm {
    background: linear-gradient(135deg, var(--xmas-red-dark), var(--xmas-red));
    color: white;
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.3);
}

.modal-btn-confirm:hover {
    box-shadow: 0 6px 18px rgba(192, 57, 43, 0.4);
    transform: scale(1.02);
}

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

@keyframes slideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Decorative Christmas elements */
.xmas-decoration {
    position: absolute;
    pointer-events: none;
    opacity: 0.6;
}

/* Falling snow/sparkles animation for header */
@keyframes fall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100px) rotate(360deg);
        opacity: 0;
    }
}