/* Local Fonts */
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/plus-jakarta-sans-500.woff2') format('woff2');
}

:root {
    --primary: #ea5831;
    --primary-dark: #d04a26;
    --primary-light: #f06b47;
    --secondary: #1d5580;
    --secondary-light: #2a6a9a;
    --accent-green: #059669;
    --accent-green-light: #10B981;
    --bg-warm: #FFFBF7;
    --bg-cream: #FFF8F0;
    --bg-card: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-medium: #4A4A4A;
    --text-light: #717171;
    --border-light: #E8E0D8;
    --shadow-soft: 0 2px 8px rgba(29, 85, 128, 0.06);
    --shadow-medium: 0 4px 20px rgba(29, 85, 128, 0.1);
    --shadow-lift: 0 12px 40px rgba(29, 85, 128, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition-fast: 0.15s ease;
    --transition-medium: 0.25s ease;
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-warm);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Subtle background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(232, 93, 4, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(29, 85, 128, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== PROSE / RICH TEXT ==================== */
.prose {
    color: var(--text-dark);
    line-height: 1.75;
    max-width: 75ch;
}

.prose > * + * {
    margin-top: 1.25em;
}

/* Headings */
.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
    color: var(--secondary);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 2em;
    margin-bottom: 0.75em;
}

.prose h1 {
    font-size: 2.25rem;
    margin-top: 0;
}

.prose h2 {
    font-size: 1.75rem;
    padding-bottom: 0.5em;
    border-bottom: 1px solid var(--border-light);
}

.prose h3 {
    font-size: 1.375rem;
}

.prose h4 {
    font-size: 1.125rem;
}

.prose h5,
.prose h6 {
    font-size: 1rem;
}

/* Paragraphs */
.prose p {
    margin-bottom: 1.25em;
}

.prose > *:first-child {
    margin-top: 0;
}

.prose > *:last-child {
    margin-bottom: 0;
}

/* Links */
.prose a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: var(--transition-fast);
}

.prose a:hover {
    color: var(--primary-dark);
}

/* Lists */
.prose ul,
.prose ol {
    padding-left: 1.75em;
    margin-bottom: 1.25em;
}

.prose ul {
    list-style-type: disc;
}

.prose ol {
    list-style-type: decimal;
}

.prose li {
    margin-bottom: 0.5em;
    padding-left: 0.375em;
}

.prose li::marker {
    color: var(--primary);
}

.prose ul ul,
.prose ol ol,
.prose ul ol,
.prose ol ul {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

/* Blockquotes */
.prose blockquote {
    border-left: 4px solid var(--primary);
    padding: 1em 1.5em;
    margin: 1.5em 0;
    background: var(--bg-cream);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-medium);
}

.prose blockquote p:last-child {
    margin-bottom: 0;
}

/* Code */
.prose code {
    background: var(--bg-cream);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.875em;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    color: var(--primary-dark);
}

.prose pre {
    background: var(--secondary);
    color: #f8f8f2;
    padding: 1.25em 1.5em;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 1.5em 0;
}

.prose pre code {
    background: transparent;
    padding: 0;
    color: inherit;
    font-size: 0.875rem;
}

/* Tables */
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.9375rem;
}

.prose th,
.prose td {
    padding: 0.75em 1em;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.prose th {
    font-weight: 600;
    background: var(--bg-cream);
    color: var(--secondary);
}

.prose tr:hover td {
    background: var(--bg-cream);
}

/* Images */
.prose img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1.5em 0;
}

.prose figure {
    margin: 1.5em 0;
}

.prose figcaption {
    margin-top: 0.75em;
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
}

/* Horizontal rule */
.prose hr {
    border: none;
    height: 1px;
    background: var(--border-light);
    margin: 2.5em 0;
}

/* Strong and emphasis */
.prose strong {
    font-weight: 600;
    color: var(--secondary);
}

.prose em {
    font-style: italic;
}

/* Definition lists */
.prose dl {
    margin: 1.25em 0;
}

.prose dt {
    font-weight: 600;
    color: var(--secondary);
    margin-top: 1em;
}

.prose dd {
    margin-left: 1.5em;
    margin-top: 0.25em;
    color: var(--text-medium);
}

/* Keyboard input */
.prose kbd {
    background: var(--bg-cream);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 0.125em 0.375em;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.875em;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Abbreviations */
.prose abbr[title] {
    text-decoration: underline dotted;
    cursor: help;
}

/* Mark/highlight */
.prose mark {
    background: rgba(232, 93, 4, 0.15);
    padding: 0.125em 0.25em;
    border-radius: 2px;
}

/* Small text */
.prose small {
    font-size: 0.875em;
    color: var(--text-light);
}

/* Superscript and subscript */
.prose sup,
.prose sub {
    font-size: 0.75em;
}

/* Content card wrapper */
.content-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-soft);
}

@media (max-width: 768px) {
    .content-card {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .content-card {
        padding: 20px 16px;
    }

    .prose h1 {
        font-size: 1.75rem;
    }

    .prose h2 {
        font-size: 1.375rem;
    }

    .prose h3 {
        font-size: 1.125rem;
    }
}

/* ==================== HEADER ==================== */
.header {
    background: var(--bg-warm);
    position: relative;
    z-index: 1000;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(232, 93, 4, 0.3);
    transition: var(--transition-medium);
}

.logo:hover .logo-icon {
    transform: scale(1.05) rotate(-3deg);
    box-shadow: 0 6px 20px rgba(232, 93, 4, 0.4);
}

.logo-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--primary);
}

.logo-img {
    height: 40px;
    width: auto;
    transition: var(--transition-fast);
}

.logo:hover .logo-img {
    transform: scale(1.02);
}

/* Search Bar */
.search-container {
    flex: 1;
    max-width: 560px;
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: 50px;
    padding: 4px;
    transition: var(--transition-medium);
}

.search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(232, 93, 4, 0.1);
}

.search-bar input {
    flex: 1;
    border: none;
    background: none;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-dark);
    outline: none;
}

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

.search-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-medium);
}

.search-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(232, 93, 4, 0.4);
}

.search-btn svg {
    width: 18px;
    height: 18px;
}

/* Quick Nav */
.quick-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-nav a {
    padding: 8px 16px;
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.quick-nav a:hover {
    color: var(--primary);
    background: rgba(232, 93, 4, 0.08);
}

/* Mobile menu button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    position: relative;
    z-index: 100;
}

.menu-toggle svg {
    width: 28px;
    height: 28px;
    stroke: var(--secondary);
}

/* Mobile buttons container */
.mobile-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Mobile search button */
.mobile-search-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    position: relative;
    z-index: 100;
}

.mobile-search-toggle svg {
    width: 24px;
    height: 24px;
    stroke: var(--secondary);
}

/* Mobile search bar */
.mobile-search-bar {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border-light);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    z-index: 99;
}

.mobile-search-bar.active {
    max-height: 80px;
}

.mobile-search-form {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
}

.mobile-search-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-fast);
}

.mobile-search-form input:focus {
    border-color: var(--primary);
}

.mobile-search-form button {
    background: var(--primary);
    border: none;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-search-form button svg {
    width: 20px;
    height: 20px;
    stroke: white;
    display: block;
}

.mobile-search-form button:hover {
    background: var(--primary-dark);
}

/* ==================== MEGA MENU ==================== */
.mega-menu-wrapper {
    background: var(--secondary);
    position: relative;
    z-index: 100;
}

.mega-menu {
    display: flex;
    align-items: stretch;
}

.menu-item {
    position: relative;
}

.menu-item > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 20px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.menu-item > a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.menu-item > a svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.menu-item:hover > a svg {
    transform: rotate(180deg);
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    max-height: 400px;
    overflow-y: auto;
    background: var(--bg-card);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lift);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-medium);
    z-index: 1001;
}

.menu-item:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-medium);
    font-size: 0.9rem;
    transition: var(--transition-fast);
    border-bottom: 1px solid var(--border-light);
}

.submenu a:last-child {
    border-bottom: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.submenu a:hover {
    background: var(--bg-cream);
    color: var(--primary);
    padding-left: 26px;
}

/* ==================== HERO SECTION ==================== */
.hero {
    padding: 40px 0 32px;
    text-align: center;
}

.hero h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero h1 span {
    color: var(--primary);
}

.hero-text {
    font-size: 1.1rem;
    color: var(--text-medium);
    line-height: 1.7;
    max-width: 750px;
    margin: 0 auto;
}

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

/* ==================== SECTIONS ==================== */
.section {
    padding: 60px 0;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 6px;
}

.view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 0;
    transition: var(--transition-fast);
}

.view-all:hover {
    gap: 10px;
}

.view-all svg {
    width: 18px;
    height: 18px;
    transition: var(--transition-fast);
}

/* ==================== FEATURED CAROUSEL ==================== */
.featured-section {
    background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg-cream) 100%);
}

.carousel-container {
    position: relative;
}

.carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 8px 20px;
}

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

.carousel-item {
    flex: 0 0 260px;
    scroll-snap-align: start;
}

.flyer-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg); 
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-slow);
    text-decoration: none;
    display: block;
    position: relative;
}

.flyer-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lift);
}

.flyer-card-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #ebebeb 100%);
}

.flyer-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.flyer-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent-green);
    color: white;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.4);
}

.flyer-badge.expiring {
    background: var(--primary);
    box-shadow: 0 2px 8px rgba(232, 93, 4, 0.4);
}

.flyer-card-content {
    padding: 16px;
}

.flyer-store {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.flyer-title {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 8px;
}

.flyer-dates {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.flyer-dates svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-medium);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-medium);
    z-index: 10;
}

.carousel-nav:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav svg {
    width: 24px;
    height: 24px;
}

.carousel-nav.prev {
    left: -24px;
}

.carousel-nav.next {
    right: -24px;
}

/* ==================== FEATURED STORES ==================== */
.stores-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.store-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    text-align: center;
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-slow);
    border: 2px solid transparent;
}

.store-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
    border-color: var(--primary);
}

.store-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-logo img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.store-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

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

/* ==================== LATEST FLYERS GRID ==================== */
.flyers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.flyer-card-large {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-slow);
    text-decoration: none;
    display: block;
}

.flyer-card-large:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
}

.flyer-card-large .flyer-card-image {
    aspect-ratio: 4/5;
}

/* ==================== PAGINATION ==================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--text-medium);
    text-decoration: none;
    transition: var(--transition-fast);
}

.page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

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

.page-btn svg {
    width: 20px;
    height: 20px;
}

.page-ellipsis {
    color: var(--text-light);
    padding: 0 8px;
}

/* ==================== NEWSLETTER ==================== */
.newsletter-section {
    background: var(--secondary);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(232, 93, 4, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    position: relative;
    padding: 60px 0;
}

.newsletter-text {
    flex: 1;
}

.newsletter-text h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.newsletter-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
}

.newsletter-form {
    flex: 1;
    max-width: 480px;
    display: flex;
    gap: 12px;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
    transition: var(--transition-fast);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-form button {
    background: var(--primary);
    border: none;
    border-radius: 50px;
    padding: 16px 32px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-medium);
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--primary-light);
    transform: scale(1.05);
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 280px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand .logo-img {
    height: 36px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: white;
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

.footer-column h4 {
    color: white;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-column a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

/* ==================== PAGE HEADER ==================== */
.page-header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    padding: 48px 0;
    color: white;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb > span:last-child {
    color: white;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.breadcrumb > span:not(:last-child) {
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

/* ==================== STORE SINGLE PAGE ==================== */
.store-header {
    display: flex;
    align-items: center;
    gap: 24px;
}

.store-header-logo {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.store-header-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.store-header-info h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.store-header-info p {
    color: rgba(255, 255, 255, 0.7);
}

/* ==================== FLYER SINGLE PAGE ==================== */
.flyer-viewer {
    background: var(--bg-cream);
    padding: 40px 0;
}

.flyer-viewer-container {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
}

.flyer-main-image {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.flyer-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.flyer-sidebar {
    position: sticky;
    top: 24px;
}

.flyer-info-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 24px;
}

.flyer-info-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 16px;
}

.flyer-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.flyer-meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.flyer-meta-item svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

/* View Toggle */
.flyer-view-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: white;
    padding: 6px;
    border-radius: var(--radius-lg);
    width: fit-content;
    box-shadow: var(--shadow-soft);
}

.view-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    background: transparent;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-medium);
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-toggle-btn svg {
    width: 18px;
    height: 18px;
}

.view-toggle-btn:hover {
    color: var(--primary);
    background: rgba(224, 64, 27, 0.05);
}

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

/* Stacked View */
.flyer-pages-stacked {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.flyer-page-item {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    position: relative;
}

.flyer-page-item img {
    width: 100%;
    height: auto;
    display: block;
}

.flyer-page-item .page-number {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
}

.flyer-page-content,
.flyer-page-content-paged {
    padding: 16px 20px;
    background: var(--bg-light);
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-medium);
}

/* Paged View */
.flyer-pages-paged {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
    max-width: 100%;
    overflow-x: hidden;
}

.flyer-paged-container {
    position: relative;
    max-width: 100%;
}

.flyer-page {
    width: 100%;
    max-width: 100%;
}

.flyer-page img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

.flyer-paged-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.page-nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid var(--primary);
    background: white;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-nav-btn svg {
    width: 18px;
    height: 18px;
}

.page-nav-btn:hover:not(:disabled) {
    background: var(--primary);
    color: white;
}

.page-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-indicator {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary);
    min-width: 80px;
    text-align: center;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Only hide elements when JS is loaded to prevent flicker (except search results) */
.js-loaded .store-card:not(#resultsGrid *),
.js-loaded .flyer-card-large:not(#resultsGrid *) {
    opacity: 0;
}

/* Animate when in view */
.animate-in {
    animation: fadeInUp 0.5s ease-out forwards;
}

.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.1s; }
.delay-3 { animation-delay: 0.15s; }
.delay-4 { animation-delay: 0.2s; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .stores-grid {
        grid-template-columns: repeat(4, 1fr);
    }

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

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

    .flyer-viewer-container {
        grid-template-columns: 1fr;
    }

    .flyer-sidebar {
        position: static;
    }
}

@media (max-width: 992px) {
    .quick-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .mobile-search-toggle {
        display: block;
    }

    .mobile-search-bar {
        display: block;
    }

    .mega-menu-wrapper {
        display: none;
    }

    .hero {
        padding: 32px 0 24px;
    }

    .hero h1 {
        font-size: 1.85rem;
    }

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

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

    .carousel-container {
        margin: 0 -24px;
    }

    .carousel {
        padding: 8px 24px;
        scroll-padding-left: 24px;
    }

    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .carousel-container {
        margin: 0 -16px;
    }

    .carousel {
        padding: 8px 16px;
        scroll-padding-left: 16px;
    }

    .header-main {
        padding: 12px 0;
    }

    .search-container {
        display: none;
    }

    .mobile-search-toggle {
        display: block;
    }

    .mobile-search-bar {
        display: block;
    }

    .hero {
        padding: 28px 0 20px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .section {
        padding: 40px 0;
    }

    .stores-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .store-card {
        padding: 16px 12px;
    }

    .store-logo {
        width: 60px;
        height: 60px;
    }

    .flyers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .carousel-nav {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-brand {
        max-width: 100%;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }

    .page-header {
        padding: 32px 0;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .breadcrumb {
        font-size: 0.8rem;
        gap: 6px;
        margin-bottom: 12px;
    }

    .breadcrumb a {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .store-header {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 24px 0 16px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-text {
        font-size: 0.95rem;
    }

    .carousel-item {
        flex: 0 0 200px;
    }

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

    .footer {
        padding: 40px 0 24px;
    }

    .footer-grid {
        gap: 24px;
        margin-bottom: 32px;
    }

    .page-header {
        padding: 24px 0;
    }

    .page-header h1 {
        font-size: 1.3rem;
    }

    .breadcrumb {
        font-size: 0.75rem;
        gap: 4px;
        margin-bottom: 10px;
    }

    .breadcrumb a {
        max-width: 100px;
    }

    .breadcrumb > span:last-child {
        max-width: 200px;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .search-btn span {
        display: none;
    }
}

/* Mobile menu overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary);
    z-index: 2000;
    padding: 24px;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.4s;
    visibility: hidden;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.mobile-menu-header .logo svg path.logo-text {
    fill: white !important;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    padding: 8px;
    cursor: pointer;
}

.mobile-menu-close svg {
    width: 28px;
    height: 28px;
}

.mobile-search {
    margin-bottom: 32px;
}

.mobile-search .search-bar {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.mobile-search .search-bar input {
    color: white;
}

.mobile-search .search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.mobile-nav a {
    display: block;
    padding: 16px 0;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Mobile nested navigation */
.mobile-nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 0;
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    text-align: left;
}

.mobile-nav-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.mobile-nav-item.open .mobile-nav-toggle svg {
    transform: rotate(180deg);
}

.mobile-submenu {
    display: none;
    padding-left: 16px;
    padding-bottom: 8px;
}

.mobile-nav-item.open .mobile-submenu {
    display: block;
}

.mobile-submenu a {
    padding: 12px 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-submenu a:last-child {
    border-bottom: none;
}

.mobile-submenu a:first-child {
    font-weight: 600;
    color: var(--primary-light);
}

.mobile-submenu a:hover {
    color: white;
}

.mobile-nav-link {
    display: block;
    padding: 16px 0;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-link:hover {
    color: var(--primary-light);
}
