/* Core Design System with Animations */
:root {
    --bg-dark: #000000;
    --bg-main: #000000;
    --bg-card: rgba(22, 22, 23, 0.6);
    --border-color: rgba(255, 255, 255, 0.12);
    --border-color-hover: rgba(255, 255, 255, 0.24);
    
    /* Typography */
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --text-tertiary: #6e6e73;
    
    /* Brand Colors */
    --accent-blue: #0071e3;
    --accent-blue-hover: #147ce5;
    
    /* Ratings / Temp Colors */
    --temp-hot-glow: rgba(48, 209, 88, 0.15);
    --temp-hot-border: rgba(48, 209, 88, 0.4);
    --temp-hot-text: #30d158;
    
    --temp-warm-glow: rgba(255, 159, 10, 0.12);
    --temp-warm-border: rgba(255, 159, 10, 0.35);
    --temp-warm-text: #ff9f0a;

    --temp-cold-glow: rgba(10, 132, 255, 0.12);
    --temp-cold-border: rgba(10, 132, 255, 0.3);
    --temp-cold-text: #0a84ff;
    
    /* Layout Tokens */
    --glass-blur: blur(24px);
    --border-radius-card: 20px;
    --border-radius-pill: 30px;
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-quick: all 0.2s ease;
}

/* Global Reset & Base Styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for sticky navigation bar */
    background-color: var(--bg-dark);
    scrollbar-gutter: stable;
    overflow-x: hidden;
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
    overscroll-behavior-x: none;
}

.page-wrapper {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-main);
    overflow-x: clip;
}

/* Page Shrunk state when Modal is Open (sheet style) */
body.modal-open-active {
    overflow: hidden;
}

/* Ambient glow blobs */
.glow-blob {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.glow-blob-1 {
    top: -200px;
    right: -200px;
    animation: floatGlow 12s ease-in-out infinite alternate;
}

.glow-blob-2 {
    bottom: -100px;
    left: -200px;
    background: radial-gradient(circle, rgba(255, 69, 58, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    animation: floatGlow 16s ease-in-out infinite alternate-reverse;
}

/* Keyframes */
@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 30px) scale(1.1); }
}

/* Sticky Glass Navbar */
.navbar {
    background-color: rgba(10, 10, 10, 0.5); /* Sleeker, darker glass */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); /* Finer border */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4), inset 0 -1px 0 rgba(255, 255, 255, 0.03); /* Subtle glow shadow */
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 14px 24px; /* Slightly more vertical padding for premium feel */
    transition: var(--transition-smooth);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.6px;
}

.brand img {
    height: 26px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 113, 227, 0.15));
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand:hover img {
    transform: scale(1.08) rotate(3deg);
}

.brand-text {
    background: linear-gradient(135deg, #ffffff 60%, #a6a6a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition-quick);
    font-weight: 800;
}

.brand-suffix {
    color: #e10514; /* Polish flag vibrant red (matches logo color exactly) */
    -webkit-text-fill-color: #e10514; /* Overrides parent transparent text fill */
    background: none;
    -webkit-background-clip: initial;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(225, 5, 20, 0.25); /* Soft red ambient glow */
}

.brand:hover .brand-text {
    opacity: 0.95;
}

/* Search bar styling */
.nav-search {
    flex-grow: 1;
    max-width: 440px; /* Slightly wider */
    position: relative;
}

.search-input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05); /* Darker input */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px; /* Fully rounded capsule */
    padding: 10px 18px 10px 42px; /* Adjusted padding */
    color: var(--text-primary);
    font-family: inherit;
    font-size: 13px; /* Slightly smaller for premium look */
    letter-spacing: -0.1px;
    transition: var(--transition-smooth);
}

.search-input::placeholder {
    color: var(--text-tertiary);
    transition: var(--transition-quick);
}

.search-input:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.search-input:focus {
    outline: none;
    background-color: rgba(0, 0, 0, 0.8); /* Focus blockout */
    border-color: var(--accent-blue);
    box-shadow: 0 0 20px rgba(0, 113, 227, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.search-input:focus::placeholder {
    color: var(--text-secondary);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    color: var(--text-secondary);
    pointer-events: none;
    transition: var(--transition-quick);
}

.search-input:focus ~ .search-icon {
    color: var(--accent-blue);
}

/* Shortcut badge */
.search-shortcut {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 3px 7px;
    font-size: 9px;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-tertiary);
    pointer-events: none;
    transition: var(--transition-smooth);
    opacity: 0.8;
}

.search-input:focus ~ .search-shortcut {
    opacity: 0;
    transform: translateY(-50%) scale(0.85);
}

/* Right links */
.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Language switcher */
.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px; /* Fully rounded capsule */
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.language-link {
    min-width: 34px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px; /* Pill tabs */
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.language-link:hover {
    color: var(--text-primary);
}

.language-link.active {
    color: #000000;
    background: #ffffff; /* Contrast pill */
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

.nav-btn {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition-quick);
}

.nav-btn:hover {
    color: var(--text-primary);
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-dark);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
}

.btn-primary:hover {
    background-color: #ffffff;
    transform: translateY(-1px);
}

/* Category Pill bar (Scrollable) */
.category-wrapper {
    width: 100%;
    min-width: 0;
    max-width: 1200px;
    margin: 16px auto 8px auto;
    padding: 0 24px;
    overflow: hidden;
    position: relative;
}

.category-wrapper--content {
    max-width: none;
    margin: 0 0 18px;
    padding: 0;
}


.category-bar {
    display: flex;
    gap: 8px;
    min-width: 0;
    overflow-x: auto;
    white-space: nowrap;
    padding: 4px 0 10px;
    scroll-padding-left: 24px;
    scrollbar-width: none; /* Hide standard Firefox scrollbar */
    -webkit-overflow-scrolling: touch;
}

.category-wrapper--content .category-bar {
    padding-top: 0;
}

.category-bar::-webkit-scrollbar {
    display: none; /* Hide Chrome scrollbar */
}

.category-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-pill);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition-quick);
}

.category-pill:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.14);
}

.category-pill.active {
    background-color: rgba(48, 209, 88, 0.16);
    color: var(--temp-hot-text);
    border-color: rgba(48, 209, 88, 0.36);
    font-weight: 600;
    box-shadow: 0 0 18px rgba(48, 209, 88, 0.12);
}

/* Main Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 24px 80px 24px;
    flex-grow: 1;
}

/* HERO SECTION (Product Billboard Style) */
.hero-slider {
    margin-bottom: 40px;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 420px;
    border: 1px solid var(--border-color);
}

.hero-indicators {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-dot:hover {
    background-color: rgba(255, 255, 255, 0.50);
}

.hero-dot.active {
    background-color: #ffffff;
    width: 24px;
    border-radius: 4px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Space out content and image */
    background: linear-gradient(135deg, #111115 0%, #000000 100%);
    padding: 48px;
    gap: 40px; /* Space gap to prevent overlap */
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-content {
    flex: 1;
    max-width: 550px;
    z-index: 2;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-tag {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent-blue);
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.hero-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
    color: #ffffff; /* High contrast solid white */
}

.hero-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
}

.hero-price-tag {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.hero-price {
    font-size: 24px;
    font-weight: 700;
}

.hero-old-price {
    text-decoration: line-through;
    color: var(--text-tertiary);
    font-size: 16px;
}

.hero-discount {
    background-color: var(--temp-hot-text);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.btn-hero {
    display: inline-block;
    background-color: var(--accent-blue);
    color: white;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-quick);
}

.btn-hero:hover {
    background-color: var(--accent-blue-hover);
    transform: scale(1.02);
}

.hero-image-container {
    flex: 1;
    max-width: 400px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    position: relative;
}

.hero-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 16px;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.6));
    animation: floatImage 6s ease-in-out infinite alternate;
}

@keyframes floatImage {
    0% { transform: translateY(0); }
    100% { transform: translateY(-15px); }
}

/* Page Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.sort-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.03);
}

.sort-tab {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition-quick);
}

.sort-tab:hover {
    color: var(--text-primary);
}

.sort-tab.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Grid System for Deals */
.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

.deal-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-card);
    padding: 16px;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transition: var(--transition-smooth);
    animation: fadeInCard 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
    text-decoration: none;
    color: inherit;
    order: var(--deal-order, 0);
}

.deal-card.expired {
    filter: grayscale(100%);
    opacity: 0.8;
}

.deal-card.expired:hover {
    filter: grayscale(60%);
    opacity: 1;
}


/* Card staggered entrance animation */
@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.deal-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: var(--border-color-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Pulse Glow Rating Badge */
.rating-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 10;
    /* Opaque dark pill so the badge stays readable on white product images. */
    background-color: rgba(12, 12, 14, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.rating-badge.hot {
    color: var(--temp-hot-text);
    box-shadow: 0 0 12px rgba(255, 69, 58, 0.2);
    animation: pulseGlowHot 2s infinite alternate;
}

.rating-badge.warm {
    color: var(--temp-warm-text);
}

.rating-badge.cold {
    color: var(--temp-cold-text);
}

@keyframes pulseGlowHot {
    0% { box-shadow: 0 0 4px rgba(48, 209, 88, 0.15); }
    100% { box-shadow: 0 0 14px rgba(48, 209, 88, 0.35); }
}

.deal-card-image-box {
    width: 100%;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.03);
    margin-bottom: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.deal-card-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.deal-card:hover .deal-card-image {
    transform: scale(1.08);
}

.deal-card-merchant {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.deal-card-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.deal-card-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
}

.deal-card-price {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.deal-card-old-price {
    font-size: 13px;
    text-decoration: line-through;
    color: var(--text-tertiary);
}

.deal-card-discount {
    font-size: 11px;
    font-weight: 700;
    color: var(--temp-hot-text);
    margin-left: auto;
}

/* Advertising slot */
.ad-placement {
    margin-bottom: 32px;
}

.ad-placement--top {
    margin-top: 4px;
}

.ad-placement--after-hero {
    margin-top: -8px;
}

.ad-slot {
    grid-column: 1 / -1;
    order: var(--ad-order-desktop, 17);
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025));
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
    isolation: isolate;
}

.ad-slot--compact { aspect-ratio: 970 / 90; }
.ad-slot--billboard { aspect-ratio: 970 / 250; }
.ad-slot--native { aspect-ratio: 1200 / 300; }

.ad-viewport,
.ad-track,
.ad-slide,
.ad-link,
.ad-picture,
.ad-image {
    width: 100%;
    height: 100%;
}

.ad-viewport {
    overflow: hidden;
}

.ad-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.ad-slide {
    flex: 0 0 100%;
    position: relative;
}

.ad-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.ad-image {
    display: block;
    object-fit: cover;
}

.ad-disclosure {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    max-width: min(70%, 320px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: rgba(255, 255, 255, 0.86);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.ad-cta {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 3;
    max-width: min(62%, 260px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 9px 15px;
    border-radius: 999px;
    background: var(--ad-cta-bg, rgba(255, 255, 255, 0.92));
    color: var(--ad-cta-color, #07111f);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.02em;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(10px);
}

.ad-cta--center {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

.ad-cta--right {
    left: auto;
    right: 14px;
}

.ad-cta--sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* The compact strip is only ~90px tall, so the overlays shrink with it. */
.ad-slot--compact .ad-disclosure {
    top: 7px;
    left: 10px;
    padding: 3px 8px;
    font-size: 9px;
}

.ad-slot--compact .ad-cta {
    bottom: 9px;
    padding: 5px 11px;
    font-size: 11px;
}

.ad-slot--compact .ad-cta--lg {
    padding: 7px 14px;
    font-size: 12px;
}

.ad-cta--lg {
    padding: 13px 24px;
    font-size: 15px;
}

.ad-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 50%;
    background: rgba(0,0,0,0.48);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: var(--transition-quick);
}

.ad-control:hover,
.ad-control:focus-visible {
    background: rgba(0,0,0,0.72);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,113,227,0.35);
}

.ad-control--prev { left: 12px; }
.ad-control--next { right: 12px; }

.ad-dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    z-index: 4;
    display: flex;
    gap: 7px;
    transform: translateX(-50%);
}

.ad-dot {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
}

.ad-dot.is-active,
.ad-dot:focus-visible {
    background: #fff;
    outline: 2px solid rgba(0,113,227,0.45);
    outline-offset: 2px;
}

/* Detail Modal Overlay (Centered premium card style) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    padding: 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

#detailsModal.modal-overlay {
    align-items: stretch;
    overflow-y: auto;
}

#detailsModal.modal-overlay .modal-sheet {
    margin: auto;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-sheet {
    width: 100%;
    max-width: 600px;
    height: 650px;
    height: min(650px, calc(100dvh - 32px));
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    background-color: #161617;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    /* One shared scroll for content, CTA and related strip; the CTA stays
       visible via position: sticky on .modal-actions. */
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: none;
    position: relative;
    box-shadow: 0 30px 70px rgba(0,0,0,0.7);
}

.modal-sheet::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    .modal-sheet {
        max-width: 720px;
        height: 580px;
        height: min(580px, calc(100dvh - 32px));
        max-height: calc(100vh - 32px);
        max-height: calc(100dvh - 32px);
        padding: 0 40px;
    }
}

.modal-close-btn {
    /* First flow child of the scrolling sheet: sticky keeps it in the corner
       while the content scrolls; negative bottom margin removes its footprint
       so the grid below keeps its original position. */
    position: sticky;
    top: 16px;
    align-self: flex-end;
    margin: 16px -8px -48px 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(22, 22, 23, 0.95);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    transition: var(--transition-quick);
    flex-shrink: 0;
}

.modal-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--border-color-hover);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 44px;
    padding-bottom: 24px;
}

@media (min-width: 768px) {
    .modal-grid {
        grid-template-columns: 280px 1fr;
        padding-top: 52px;
        padding-bottom: 32px;
    }
}

.modal-image-box {
    width: 100%;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

@media (min-width: 768px) {
    .modal-image-box {
        height: 280px;
    }
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.expired-image-link {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.expired-image-link:hover {
    opacity: 0.85;
}

.modal-body {
    display: flex;
    flex-direction: column;
}

.modal-merchant {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.modal-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.modal-meta-row {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
}

.modal-rating-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
}

.modal-rating-badge.hot {
    color: var(--temp-hot-text);
    background-color: var(--temp-hot-glow);
    border-color: var(--temp-hot-border);
}

.modal-category {
    font-size: 13px;
    color: var(--text-secondary);
}

.modal-price-box {
    display: flex;
    align-items: baseline;
    gap: 12px;
    background-color: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.modal-price {
    font-size: 26px;
    font-weight: 700;
}

.modal-old-price {
    text-decoration: line-through;
    color: var(--text-secondary);
    font-size: 16px;
}
.modal-description {
    display: none;
    background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 32px;
    padding: 18px;
}

.modal-description-wrapper {
    margin-bottom: 24px;
}

.modal-desc-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 12px;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.modal-desc-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.modal-desc-toggle:active {
    transform: scale(0.98);
}

.toggle-icon {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.modal-description-wrapper.is-expanded .toggle-icon {
    transform: rotate(180deg);
}

.modal-description-wrapper.is-expanded .modal-description {
    display: block;
}

.modal-description.is-empty {
    color: var(--text-tertiary);
    font-style: italic;
}

.modal-description p {
    margin: 0;
}

.modal-description p + p {
    margin-top: 12px;
}

.modal-description a {
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
}

.modal-description a:hover {
    text-decoration: underline;
}

.modal-related {
    padding: 0 20px 20px;
    background-color: #161617;
    flex-shrink: 0;
}

.modal-related-viewport {
    position: relative;
}

.modal-related-nav {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(12, 12, 14, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--text-primary);
    cursor: pointer;
    padding: 0;
}

.modal-related-nav.is-prev {
    left: -10px;
}

.modal-related-nav.is-next {
    right: -10px;
}

.modal-related-nav:hover {
    background-color: rgba(40, 40, 44, 0.95);
}

.modal-related-nav[disabled] {
    opacity: 0.35;
    cursor: default;
}

/* Arrows only make sense with a mouse — touch users swipe the strip. */
@media (hover: hover) and (pointer: fine) {
    .modal-related-nav {
        display: flex;
    }
}

.modal-related-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.modal-related-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.modal-related-strip::-webkit-scrollbar {
    display: none;
}

.modal-related-card {
    flex: 0 0 124px;
    scroll-snap-align: start;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 8px;
    cursor: pointer;
    text-align: left;
    color: inherit;
    font: inherit;
}

.modal-related-card:hover {
    background-color: rgba(255, 255, 255, 0.09);
}

.modal-related-card img {
    width: 100%;
    height: 68px;
    object-fit: cover;
    border-radius: 6px;
    background-color: #fff;
}

.modal-related-card-title {
    font-size: 11px;
    line-height: 1.3;
    color: var(--text-primary);
    margin-top: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.modal-related-card-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--temp-hot-text);
    margin-top: 4px;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 20px 24px;
    background-color: #161617;
    margin-top: auto;
    flex-shrink: 0;
    /* Stays pinned to the sheet's bottom edge while the content above scrolls;
       scrolls away naturally once the related strip comes into view. */
    position: sticky;
    bottom: 0;
    z-index: 5;
}

.modal-go-btn {
    width: 100%;
    max-width: 280px;
}

@media (min-width: 768px) {
    .modal-go-btn {
        max-width: 420px;
        font-size: 17px;
        padding-top: 16px;
        padding-bottom: 16px;
    }
}

.affiliate-disclosure {
    font-size: 10px;
    font-weight: 400;
    color: var(--text-secondary);
    opacity: 0.5;
    text-align: center;
    max-width: 320px;
    line-height: 1.3;
}

.btn-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: var(--transition-quick);
}

.btn-modal-primary {
    background-color: var(--accent-blue);
    color: white;
}

.btn-modal-primary:hover {
    background-color: var(--accent-blue-hover);
}

.btn-modal-secondary {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-modal-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Pagination container */
.pagination-container {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    list-style: none !important;
    padding: 0;
    margin: 0;
    gap: 8px;
}

.pagination li {
    list-style-type: none !important;
    margin: 0;
    padding: 0;
}

.pagination li a, 
.pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-quick);
}

.pagination li a:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.pagination li.active span {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
    font-weight: 600;
}

.pagination li.disabled span {
    color: var(--text-tertiary);
    opacity: 0.4;
    cursor: not-allowed;
    background-color: transparent;
}

/* Footer */
.footer {
    background: radial-gradient(circle at 50% 0%, rgba(0, 113, 227, 0.05) 0%, rgba(10, 10, 12, 0.95) 75%);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 80px 24px 50px 24px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.02) 100%);
    pointer-events: none;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    text-align: left;
    margin-bottom: 50px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand {
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -0.6px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.footer-brand img {
    height: 24px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-brand:hover img {
    transform: scale(1.08);
}

.footer-tagline {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.55;
}

.footer-col-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
}

.footer-links li a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.footer-inline-button {
    appearance: none;
    background: none;
    border: 0;
    color: var(--text-secondary);
    cursor: pointer;
    font: inherit;
    padding: 0;
    transition: var(--transition-quick);
}

.footer-inline-button:hover {
    color: var(--text-primary);
}

.footer-seo-block {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    padding: 32px;
    text-align: left;
    margin-bottom: 50px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.footer-seo-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01));
    pointer-events: none;
}

.footer-seo-block h3 {
    background: linear-gradient(135deg, #ffffff 40%, #a6a6a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.2px;
}

.footer-seo-block p {
    margin-bottom: 14px;
}

.footer-seo-block p:last-child {
    margin-bottom: 0;
}

.footer-seo-block strong {
    color: var(--text-primary);
    font-weight: 600;
}

.footer-disclaimer {
    font-size: 12px;
    color: var(--text-tertiary);
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: left;
    border-left: 2px solid rgba(255, 255, 255, 0.08);
    padding-left: 16px;
}

.footer-disclaimer p {
    margin: 0;
}

.footer-disclaimer strong {
    color: var(--text-secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-size: 12px;
    color: var(--text-tertiary);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.footer-bottom-links a,
.footer-cookie-settings {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: var(--transition-quick);
}

.footer-cookie-settings {
    appearance: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    padding: 0;
}

.footer-bottom-links a:hover,
.footer-cookie-settings:hover {
    color: #ffffff;
}

/* Legal pages */
.legal-page {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 56px 0 32px;
}

.legal-hero {
    margin-bottom: 28px;
}

.legal-kicker {
    color: var(--accent-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.legal-hero h1 {
    color: var(--text-primary);
    font-size: clamp(34px, 6vw, 64px);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 16px;
}

.legal-hero p {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.7;
    max-width: 760px;
}

.legal-card {
    background: rgba(22, 22, 23, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: clamp(24px, 4vw, 44px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.legal-card h2 {
    color: var(--text-primary);
    font-size: 20px;
    line-height: 1.3;
    margin: 30px 0 10px;
}

.legal-card h2:first-child {
    margin-top: 0;
}

.legal-card p,
.legal-card li {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.75;
}

.legal-card p + p {
    margin-top: 10px;
}

.legal-card ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0 0 20px;
}

/* 404 page */
.not-found-page {
    display: grid;
    gap: 28px;
    justify-items: center;
    padding: 52px 0 64px;
    text-align: center;
}

.not-found-art {
    width: min(100%, 900px);
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.not-found-art img {
    display: block;
    width: 100%;
    height: auto;
}

.not-found-copy {
    max-width: 720px;
}

.not-found-kicker {
    color: var(--accent-blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.not-found-copy h1 {
    color: var(--text-primary);
    font-size: clamp(36px, 7vw, 76px);
    font-weight: 800;
    line-height: 0.95;
    margin-bottom: 14px;
}

.not-found-message {
    color: var(--text-secondary);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.55;
}

.not-found-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
}

.not-found-primary,
.not-found-secondary {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    text-decoration: none;
    transition: var(--transition-quick);
}

.not-found-primary {
    background: var(--accent-blue);
    color: #fff;
}

.not-found-primary:hover {
    background: var(--accent-blue-hover);
}

.not-found-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.not-found-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 1300;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: end;
    max-width: 1120px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(22, 22, 23, 0.92);
    border: 1px solid var(--border-color-hover);
    border-radius: 20px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner-title {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.cookie-banner-copy p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.55;
}

.cookie-banner-copy a {
    color: var(--text-primary);
    font-weight: 600;
}

.cookie-preferences {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.cookie-preferences label {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--text-secondary);
    font-size: 13px;
}

.cookie-preferences input {
    accent-color: var(--accent-blue);
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.cookie-btn {
    min-height: 40px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    padding: 0 16px;
    transition: var(--transition-quick);
    white-space: nowrap;
}

.cookie-btn-muted {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.cookie-btn-muted:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cookie-btn-primary {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #fff;
}

.cookie-btn-primary:hover {
    background: var(--accent-blue-hover);
}

@media (max-width: 760px) {
    .cookie-banner {
        grid-template-columns: 1fr;
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 16px;
    }

    .cookie-banner-actions {
        justify-content: stretch;
    }

    .cookie-btn {
        flex: 1 1 150px;
    }
}

/* Mobile responsive menu */
.nav-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Overrides */
@media (max-width: 767px) {
    .category-wrapper {
        margin: 12px auto 4px;
        padding: 0 16px;
    }
    .category-wrapper--content {
        margin: 0 0 16px;
        padding: 0;
    }
    .category-bar {
        gap: 8px;
        margin: 0 -16px;
        padding: 2px 16px 10px;
        scroll-padding-left: 16px;
        scroll-snap-type: x proximity;
    }
    .category-wrapper--content .category-bar {
        margin: 0;
        padding: 0 0 10px;
        scroll-padding-left: 0;
    }
    .category-pill {
        min-height: 38px;
        padding: 8px 14px;
        font-size: 12px;
        scroll-snap-align: start;
    }
    .ad-placement {
        margin-bottom: 20px;
    }
    .ad-slot {
        order: var(--ad-order-mobile, 9);
        border-radius: 16px;
    }
    .ad-slot--compact { aspect-ratio: 320 / 50; }
    .ad-slot--billboard { aspect-ratio: 320 / 100; }
    .ad-slot--native { aspect-ratio: 16 / 9; }
    .ad-disclosure {
        top: 8px;
        left: 8px;
        max-width: calc(100% - 92px);
        font-size: 9px;
        padding: 4px 7px;
    }
    .ad-control {
        display: none;
    }
    .ad-cta {
        left: 8px;
        bottom: 8px;
        max-width: 40%;
    }

    .ad-cta--center {
        left: 50%;
    }

    .ad-cta--right {
        left: auto;
        right: 8px;
        padding: 6px 10px;
        font-size: 11px;
        box-shadow: 0 6px 16px rgba(0,0,0,0.22);
    }
    .ad-dots {
        left: 50%;
        bottom: 10px;
        gap: 6px;
        transform: translateX(-50%);
    }
    .hero-slider {
        height: 560px;
        border-radius: 16px;
    }
    .hero-slide {
        padding: 24px 24px 76px;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 12px;
    }
    .hero-content {
        max-width: 100%;
        order: 2;
        flex: 0 1 auto;
    }
    .hero-title {
        font-size: 26px;
        margin-bottom: 8px;
    }
    .hero-description {
        font-size: 13px;
        margin-bottom: 16px;
    }
    .hero-image-container {
        display: flex;
        order: 1;
        width: 100%;
        max-width: none;
        flex: 0 0 96px;
        height: 96px;
        margin-bottom: 2px;
    }
    .hero-image {
        max-width: min(170px, 72%);
        max-height: 96px;
        border-radius: 12px;
        filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.45));
        animation: none;
    }
    .hero-price-tag {
        justify-content: center;
        margin-bottom: 20px;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .nav-search {
        display: none; /* Hide search bar on mobile headers, or let it collapse */
    }
}

@media (prefers-reduced-motion: reduce) {
    .ad-track {
        transition: none;
    }
}

@media (max-width: 767px) {
    /* Modal mobile: full-screen, slides up from bottom */
    #detailsModal.modal-overlay {
        align-items: stretch;
        justify-content: stretch;
        overflow: hidden;
        padding: 0;
        background: #000;
    }
    #detailsModal.modal-overlay .modal-sheet {
        margin: 0;
        width: 100%;
        max-width: 100%;
        height: 100%;
        height: 100dvh;
        max-height: 100%;
        max-height: 100dvh;
        border: none;
        border-radius: 0;
        padding: 0 16px;
        transform: translateY(100%);
        transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: none;
    }
    #detailsModal.modal-overlay.active .modal-sheet {
        transform: translateY(0);
    }
    /* Hide drag handle on full-screen mobile */
    #detailsModal .modal-sheet::before {
        display: none;
    }
    .modal-close-btn {
        top: calc(env(safe-area-inset-top, 0px) + 14px);
        right: 16px;
        width: 32px;
        height: 32px;
    }
    .modal-close-btn svg {
        width: 14px;
        height: 14px;
    }
    .modal-grid {
        display: flex;
        flex-direction: column;
        gap: 18px;
        padding-top: calc(env(safe-area-inset-top, 0px) + 58px);
        padding-bottom: 16px;
    }
    .modal-image-box {
        height: 38vh;
        height: 38dvh;
        max-height: 320px;
        min-height: 180px;
        flex-shrink: 0;
    }
    .modal-title {
        font-size: 19px;
        margin-bottom: 12px;
    }
    .modal-meta-row {
        margin-bottom: 16px;
    }
    .modal-price-box {
        padding: 12px;
        margin-bottom: 16px;
    }
    .modal-actions {
        padding-top: 12px;
        padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
    }
    .modal-actions .btn-modal {
        width: 100%;
    }
    .modal-description-wrapper {
        margin-bottom: 16px;
    }
    .modal-desc-toggle {
        width: 100%;
        justify-content: center;
        margin-bottom: 8px;
    }
    .modal-description {
        margin-bottom: 20px;
        padding: 14px;
        font-size: 13px;
    }
}

@media (min-width: 768px) and (max-height: 700px) {
    #detailsModal.modal-overlay {
        padding: 12px;
    }

    #detailsModal.modal-overlay .modal-sheet {
        height: calc(100vh - 24px);
        height: calc(100dvh - 24px);
    }

    .modal-grid {
        gap: 24px;
        padding-top: 44px;
        padding-bottom: 20px;
    }

    .modal-image-box {
        height: min(240px, calc(100vh - 180px));
        height: min(240px, calc(100dvh - 180px));
    }

    .modal-actions {
        padding-top: 12px;
        padding-bottom: 16px;
    }
}

/* Premium Welcome Value Proposition Section */
.premium-welcome {
    margin-bottom: 40px;
    position: relative;
    border-radius: var(--border-radius-card);
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.premium-welcome-card {
    background: radial-gradient(circle at 50% 0%, rgba(0, 113, 227, 0.12) 0%, rgba(10, 10, 12, 0.8) 80%);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: calc(var(--border-radius-card) - 1px);
    padding: 60px 48px;
    text-align: center;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.premium-glow-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(1000px circle at var(--x, 50%) var(--y, 0%), rgba(0, 113, 227, 0.06), transparent 40%);
    z-index: -1;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.premium-tag {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent-blue);
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: inline-block;
    background: rgba(0, 113, 227, 0.08);
    border: 1px solid rgba(0, 113, 227, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
}

.premium-title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.8px;
    margin-bottom: 20px;
    max-width: 800px;
    background: linear-gradient(135deg, #ffffff 40%, #a6a6a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #ffffff;
}

.premium-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 700px;
    margin-bottom: 36px;
    letter-spacing: -0.1px;
}

.premium-stores-inline {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 30px;
    padding: 10px 24px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    font-size: 13px;
    color: var(--text-secondary);
}

.stores-label {
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
}

.stores-list-inline {
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.2px;
}

.premium-actions {
    display: flex;
    justify-content: center;
}

.btn-premium-cta {
    display: inline-block;
    background-color: #ffffff;
    color: #000000;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.btn-premium-cta:hover {
    background-color: #ffffff;
    transform: scale(1.03) translateY(-1px);
    box-shadow: 0 10px 24px rgba(255, 255, 255, 0.3);
}

/* Tablet Layout overrides */
@media (max-width: 1024px) {
    .premium-welcome-card {
        padding: 50px 32px;
    }
    .premium-title {
        font-size: 34px;
        letter-spacing: -1.2px;
    }
}

/* Mobile Layout overrides */
@media (max-width: 768px) {
    .premium-welcome {
        margin-bottom: 24px;
    }
    .premium-welcome-card {
        padding: 40px 20px;
    }
    .premium-title {
        font-size: 28px;
        letter-spacing: -0.8px;
    }
    .premium-subtitle {
        font-size: 14px;
        margin-bottom: 28px;
    }
    .premium-stores-inline {
        flex-direction: column;
        gap: 6px;
        border-radius: 16px;
        padding: 12px 16px;
        margin-bottom: 28px;
        width: 100%;
    }
    .stores-list-inline {
        text-align: center;
        font-size: 12px;
        line-height: 1.4;
    }
    .btn-premium-cta {
        padding: 12px 28px;
        font-size: 13px;
        width: 100%;
        text-align: center;
    }
}

/* SEO Informational FAQ & Sunday Calendar Section */
.seo-info-section {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
    margin: 48px auto;
    max-width: 1200px;
    width: 100%;
}

.seo-card {
    background-color: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-card);
    padding: 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.seo-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.seo-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

.seo-card-icon {
    font-size: 22px;
}

.seo-card-sub {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
}

/* Sunday Calendar styling */
.sunday-calendar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.next-sunday-alert {
    background: rgba(48, 209, 88, 0.08);
    border: 1px solid rgba(48, 209, 88, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    color: #30d158;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pulse-green {
    width: 8px;
    height: 8px;
    background-color: #30d158;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.7);
    animation: pulse-green-anim 1.5s infinite;
    flex-shrink: 0;
}

@keyframes pulse-green-anim {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(48, 209, 88, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(48, 209, 88, 0);
    }
}

.sunday-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sunday-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition-quick);
}

.sunday-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.sunday-item.passed {
    opacity: 0.5;
}

.sunday-item.passed .sunday-status {
    color: var(--text-tertiary);
    background: rgba(255, 255, 255, 0.05);
}

.sunday-item.upcoming .sunday-status {
    color: #30d158;
    background: rgba(48, 209, 88, 0.12);
}

.sunday-date {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.sunday-status {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
}

/* FAQ Accordion styling */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.faq-item {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.faq-item.active {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

.faq-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-quick);
}

.faq-arrow {
    color: var(--text-secondary);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: var(--accent-blue);
}

.faq-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-panel p {
    padding: 0 24px 20px 24px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive styles */
@media (max-width: 992px) {
    .seo-info-section {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 16px;
    }
}

@media (max-width: 576px) {
    .seo-card {
        padding: 24px 16px;
    }
    .faq-trigger {
        padding: 16px 20px;
        font-size: 14px;
    }
    .faq-panel p {
        padding: 0 20px 16px 20px;
    }
}
