﻿/* =========================================================
   Reset & Base
========================================================= */
* {
    box-sizing: border-box;
}
    /* keep original */
    *, *::before, *::after {
        box-sizing: border-box;
    }

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
    overflow-x: hidden; /* prevent horizontal scroll */
}

a {
    text-decoration: none;
    color: inherit;
}

img, svg, video, canvas {
    max-width: 100%;
    height: auto;
}

/* =========================================================
   Standardized Header Sizing (Desktop and Mobile)
========================================================= */

/* Define base sizes and use clamp() for smooth responsiveness */
/* =========================================================
    Standardized Header Sizing (Desktop and Mobile) - FINAL FIX
========================================================= */

h1, .h1 {
    /* Min: 2rem (32px), Max: 3.5rem (56px), Scales between 320px and 1024px viewport */
    font-size: clamp(2rem, 1.318rem + 3.409vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

h2, .h2 {
    /* Min: 1.5rem (24px), Max: 2.5rem (40px), Scales between 320px and 1024px viewport */
    font-size: clamp(1.5rem, 1.045rem + 2.272vw, 2.5rem);
    font-weight: 600;
    line-height: 1.3;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

h3, .h3 {
    /* The H3 calculation was quite close and should work fine with the original 1200px range, 
       but we'll adjust it to 1024px for consistency: 1.25rem to 1.75rem over 704px range. */
    font-size: clamp(1.25rem, 1.022rem + 1.136vw, 1.75rem);
    font-weight: 500;
    line-height: 1.4;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* Ensure other heading levels are also consistent */
h4, .h4 {
    font-size: 1.2rem;
    font-weight: 500;
}

h5, .h5 {
    font-size: 1rem;
    font-weight: 500;
}

h6, .h6 {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
}

/* Optional: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

.share-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #6c757d;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

    .share-icon:hover {
        color: #007bff;
    }

.share-message {
    position: absolute;
    bottom: 60px;
    right: 10px;
    background: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    animation: fadeInOut 2s ease-in-out;
    z-index: 1000;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    10% {
        opacity: 1;
        transform: translateY(0);
    }

    90% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* =========================================================
   Design Tokens
========================================================= */
:root {
    /* Breakpoints (mobile-first) */
    --bp-xs: 480px;
    --bp-sm: 640px;
    --bp-md: 768px;
    --bp-lg: 1024px;
    --bp-xl: 1280px;
    --bp-xxl: 1440px;
    /* Container widths */
    --container-max: 1500px; /* typical inner page max width */
    --container-max-wide: 1500px; /* for home/landing full content */
    /* Spacing */
    --page-pad: clamp(12px, 3vw, 24px);
    --gutter: 16px;
    --gutter-md: 20px;
    --gutter-lg: 24px;
    /* Sidebar widths */
    --sidebar-w-md: 280px;
    --sidebar-w-lg: 300px;
    --sidebar-w-xl: 320px;
}

/* =========================================================
   Page Content Container
========================================================= */
.pagecontent {
    border: solid thin green;
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-left: max(var(--page-pad), env(safe-area-inset-left));
    padding-right: max(var(--page-pad), env(safe-area-inset-right));
}

.pagecontent--wide {
    max-width: var(--container-max-wide);
}

.pagecontent--narrow {
    max-width: 980px;
}
/* optional narrower pages */

/* Optional: make an element extend edge-to-edge inside .pagecontent */
.fullbleed {
    width: 100%;
    margin-left: 50%;
    transform: translateX(-50%);
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border: 2px solid #ff6b35;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    white-space: nowrap;
}

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(255, 107, 53, 0.4);
        background: linear-gradient(135deg, #f7931e 0%, #ff6b35 100%);
    }

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 12px 26px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.btn-primary,
.btn-secondary {
    font-size: 13px;
    padding: 10px 20px;
}
    .btn-secondary:hover {
        background: white;
        color: #333;
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
    }

.btn-outline-secondary {
}

    .btn-outline-secondary:hover {
        background: white;
        color: #333;
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
    }

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    font-size: 14px;
    width: 100%;
}

/* =========================================================
   Common Responsive Grid for cards/tiles
========================================================= */
.grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: var(--gutter);
}

@media (min-width: var(--bp-sm)) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--gutter-md);
    }
}

@media (min-width: var(--bp-lg)) {
    .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: var(--bp-xl)) {
    .grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: var(--gutter-lg);
    }
}

/* =========================================================
   Two-column layout (content + sidebar)
========================================================= */
.layout {
    display: grid;
    grid-template-columns: 1fr; /* single column on mobile */
    gap: var(--gutter);
    align-items: start;
}

.layout__content {
    min-width: 0;
}
/* prevent overflow */
.layout__sidebar {
    min-width: 0;
}

@media (min-width: var(--bp-md)) {
    .layout--sidebar {
        grid-template-columns: minmax(0, 1fr) var(--sidebar-w-md);
        gap: var(--gutter-md);
    }
}

@media (min-width: var(--bp-lg)) {
    .layout--sidebar {
        grid-template-columns: minmax(0, 1fr) var(--sidebar-w-lg);
        gap: var(--gutter-lg);
    }
}

@media (min-width: var(--bp-xl)) {
    .layout--sidebar {
        grid-template-columns: minmax(0, 1fr) var(--sidebar-w-xl);
    }
}

/* =========================================================
   Utilities
========================================================= */
@media (max-width: calc(var(--bp-md) - 0.02px)) {
    .hide-md-down {
        display: none !important;
    }
}

@media (min-width: var(--bp-md)) {
    .hide-md-up {
        display: none !important;
    }
}

.section {
    padding-block: clamp(12px, 2.5vw, 28px);
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.section--no-border {
    border-bottom: 0;
}

/* =========================================================
   Marquee (legacy + new)
========================================================= */
.top-marquee {
    background: black;
    color: white;
    padding: 5px;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-text {
    display: flex;
    gap: 50px;
    animation: marquee 15s linear infinite;
}

/* Support for both old and new marquee classes */
.top-marquee1 {
    background: black;
    color: white;
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
}

.marquee-text1 {
    display: flex;
    gap: 50px;
    align-items: center;
    animation: scroll 20s linear infinite;
}

    .marquee-text1 span {
        flex-shrink: 0;
    }

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

@keyframes scroll {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* =========================================================
   Header / Search / Icons
========================================================= */
.main-header {
    background: white;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 10px 20px;
}

.logo img {
    width: auto;
}

.search-bar {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    max-width: none; /* remove 800px cap */
    margin: 0; /* remove side margin */
}

    .search-bar input {
        flex: 1;
        border: 1px solid #ccc;
        border-top-left-radius: 4px;
        border-bottom-left-radius: 4px;
        border-top-right-radius: 0px;
        border-bottom-right-radius: 0px;
        font-size: 14px;
        outline: none;
        transition: border-color 0.2s ease;
    }

        .search-bar input:focus {
            border-color: #00b894;
        }

    .search-bar .search-button:not(.clear-x-btn) {
        background: linear-gradient(135deg, #0056b3 0%, #0056b3 100%);
        border-left: 1px solid #0056b3;
        border-top-right-radius: 5px;
        border-bottom-right-radius: 5px;
        color: #fff;
        cursor: pointer;
        transition: background-color .2s ease;
    }




.header-icons {
    display: flex;
    gap: 24px;
    align-items: center;
}

    .header-icons a {
        font-size: 14px;
        font-weight: 500;
        color: #333;
        padding: 8px 0;
        transition: color 0.2s ease;
    }

        .header-icons a:hover {
            color: #00b894;
        }

/* Promo row (both variants kept; last wins) */
.promo-row {
    background: #ff6b6b;
    color: white;
    text-align: center;
    padding: 12px;
    font-weight: bold;
}

.promo-row {
    background: green;
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

/* =========================================================
   Navigation / Megamenu
========================================================= */
.main-nav {
    background: #fff;
    border-bottom: 1px solid #e1e5e9;
    position: relative;
    z-index: 20;
}

.main-nav-container {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 20px;
    overflow: visible;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0 24px;
    display: flex;
    gap: 20px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 16px 12px;
    color: #222;
    text-decoration: none;
    font-weight: 500;
    font-size: 17px;
    transition: color 0.2s;
    border-radius: 4px;
}

/* Main mega menu container */
.megamenu {
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    transform: translateX(-50%);
    background: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border-top: 2px solid #007bff;
    padding: 32px 0 32px 0;
    z-index: 200;
    display: block;
}

.megamenu-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

.megamenu-columns {
    display: flex;
    gap: 32px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.megamenu-col {
    flex: 1 1 0;
    min-width: 180px;
    max-width: 220px;
}

.megamenu-item {
    margin-bottom: 18px;
}

.megamenu-link {
    font-weight: 600;
    color: #222;
    text-decoration: none;
    font-size: 16px;
    display: block;
    margin-bottom: 6px;
    transition: color 0.2s;
}

    .megamenu-link:hover,
    .megamenu-link:focus {
        color: #007bff;
        text-decoration: underline;
    }

.megamenu-sublist {
    list-style: none;
    margin: 0;
    padding: 0 0 0 12px;
}

    .megamenu-sublist li {
        margin-bottom: 4px;
    }

    .megamenu-sublist a {
        color: #555;
        font-size: 15px;
        text-decoration: none;
        transition: color 0.2s;
    }

        .megamenu-sublist a:hover,
        .megamenu-sublist a:focus {
            color: #007bff;
            text-decoration: underline;
        }

.view-all a {
    font-weight: 500;
    color: #007bff;
    font-size: 15px;
}

@media (max-width: 1200px) {
    .megamenu-container {
        padding: 0 12px;
    }

    .megamenu-columns {
        gap: 16px;
    }

    .megamenu-col {
        min-width: 140px;
        max-width: 180px;
    }
}

@media (max-width: 900px) {
    .main-nav-container ul {
        gap: 12px;
        padding: 0 8px;
    }

    .megamenu {
        padding: 16px 0;
    }

    .megamenu-container {
        padding: 0 4px;
    }

    .megamenu-columns {
        gap: 8px;
    }

    .megamenu-col {
        min-width: 120px;
        max-width: 150px;
    }
}

@media (max-width: 700px) {
    .main-nav-container ul {
        flex-wrap: wrap;
        gap: 8px;
        padding: 0 2px;
    }

    .megamenu {
        position: static;
        width: 100%;
        box-shadow: none;
        border-top: 1px solid #e1e5e9;
        padding: 8px 0;
    }

    .megamenu-container {
        padding: 0 2px;
    }

    .megamenu-columns {
        flex-direction: column;
        gap: 0;
    }

    .megamenu-col {
        min-width: 100%;
        max-width: 100%;
        margin-bottom: 12px;
    }
}


/* =========================================================
   Hero
========================================================= */
.hero-banner {
    position: relative;
    text-align: center;
    margin-bottom: 60px;
}

    .hero-banner img {
        width: 100%;
        height: auto;
        display: block;
    }

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    max-width: 600px;
    padding: 0 20px;
}

    .hero-text h1 {
        font-size: 3.5rem;
        font-weight: 700;
        margin: 0 0 16px 0;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
        line-height: 1.1;
    }

    .hero-text p {
        font-size: 1.25rem;
        margin: 0 0 32px 0;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    }

    .hero-text button {
        background: #00b894;
        color: white;
        border: none;
        padding: 16px 32px;
        font-size: 16px;
        font-weight: 600;
        border-radius: 24px;
        cursor: pointer;
        transition: all 0.2s ease;
        box-shadow: 0 4px 12px rgba(0,184,148,0.3);
    }

        .hero-text button:hover {
            background: #00a085;
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(0,184,148,0.4);
        }

.view-more {
    text-align: center;
    margin-top: 48px;
}

.view-more-btn {
    background: white;
    color: #00b894;
    border: 2px solid #00b894;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .view-more-btn:hover {
        background: #00b894;
        color: white;
    }

/* =========================================================
   Featured Categories
========================================================= */
.featured-categories {
    padding: 80px 0;
    background: #f8f9fa;
}

    .featured-categories h2 {
        text-align: center;
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 48px;
        color: #333;
    }

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

    .category-card:hover {
        transform: translateY(-4px);
    }

    .category-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 40px 24px 24px;
    text-align: center;
}

    .category-overlay h3 {
        font-size: 2rem;
        font-weight: 700;
        margin: 0 0 8px 0;
    }

    .category-overlay p {
        font-size: 1rem;
        margin: 0 0 16px 0;
        opacity: 0.9;
    }

.category-link {
    display: inline-block;
    background: #00b894;
    color: white;
    padding: 12px 24px;
    border-radius: 24px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

    .category-link:hover {
        background: #00a085;
    }

.product-card {
    flex: 0 0 280px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .product-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    }

.product-image {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ff6b6b;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}


.badge-pill {
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.1px;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    line-height: 1.2rem;
}

.badge-out-of-stock {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-hot {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: pulse-glow 2s ease-in-out infinite;
}

@@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 0 0 rgba(255, 107, 107, 0.4);
    }

    50% {
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15), 0 0 0 2px rgba(255, 107, 107, 0.2);
    }
}

.product-info {
    padding: 20px;
}

.product-brand {
    font-size: 14px;
    color: #666;
    margin: 0 0 6px 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.current-price {
    font-size: 20px;
    font-weight: 700;
    color: #00b894;
}

.original-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
}


/* =========================================================
   How It Works
========================================================= */
.how-it-works {
    padding: 80px 0;
    background: white;
}

    .how-it-works h2 {
        text-align: center;
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 48px;
        color: #333;
    }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.step {
    text-align: center;
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.step h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #333;
}

.step p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* =========================================================
   Sustainability
========================================================= */
.sustainability {
    padding: 80px 0;
    background: #f8f9fa;
}

.sustainability-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.sustainability-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #333;
}

.sustainability-text p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 32px;
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #00b894;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

.learn-more-btn {
    background: #00b894;
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 24px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .learn-more-btn:hover {
        background: #00a085;
    }

.sustainability-image img {
    width: 100%;
    border-radius: 12px;
}

/* =========================================================
   Clean Out CTA
========================================================= */
.clean-out-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

    .cta-content h2 {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 16px;
    }

    .cta-content p {
        font-size: 1.2rem;
        margin-bottom: 32px;
        opacity: 0.9;
    }

/*.cta-button {
    background: white;
    color: #00b894;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
}*/

/* =========================================================
   Content Pages (Privacy Policy, Terms, About, etc.)
========================================================= */
.content-page {
    background: #fff;
    /* padding: 40px 20px; */
    /* margin: 40px auto; */
    /* border-radius: 8px; */
    /* box-shadow: 0 2px 8px rgba(0,0,0,0.08); */
    /* max-width: 900px; */
}

    .content-page h1, .content-page h2, .content-page h3 {
        margin-top: 1.5em;
        margin-bottom: 0.75em;
        color: #222;
        font-weight: 700;
    }

    .content-page p {
        margin-bottom: 1.25em;
        font-size: 16px;
        color: #444;
        line-height: 1.7;
    }

    .content-page ul {
        margin: 1em 0 1.5em 1.5em;
        padding: 0;
        list-style: disc;
    }

    .content-page li {
        margin-bottom: 0.5em;
        font-size: 16px;
        color: #444;
    }



.section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.info-icon {
    width: 16px;
    height: 16px;
    background: #ccc;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
}

/* =========================================================
   UPDATED DEALS CONTAINER - 7 COLUMNS
========================================================= */
.deals-container {
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    padding: 0 8px;
    overflow: hidden;
    will-change: contents;
    contain: layout style;
}

/* Responsive breakpoints - adjust column count for smaller screens */
@media (max-width: 1400px) {
    .deals-container {
        grid-template-columns: repeat(6, 1fr);
        gap: 10px;
    }
}

@media (max-width: 1200px) {
    .deals-container {
        grid-template-columns: repeat(5, 1fr);
        gap: 12px;
    }
}

@media (max-width: 1000px) {
    .deals-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }
}

@media (max-width: 800px) {
    .deals-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }
}

@media (max-width: 600px) {
    .deals-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
        gap: 5px;
        padding: 0 5px;
    }

        .deals-container .deal-title {
            -webkit-line-clamp: 2;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        /* ensure store section is visible */
        .deals-container .deal-store,
        .deals-container .deal-store-details {
            display: block;
            overflow: visible;
            visibility: visible;
        }
}

@media (max-width: 400px) {
    .deals-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
        padding: 0 5px;
    }
}

.deal-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: all 0.2s ease;
    border: 1px solid #e5e5e5;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}


.deal-header {
    padding: 6px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 32px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.deal-author-section {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: #666;
    min-width: 0;
}

.author-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ddd;
    flex-shrink: 0;
}

.author-info {
    min-width: 0;
    overflow: hidden;
}

.found-by {
    color: #666;
    font-size: 9px;
}

.deal-author {
    color: #0066cc;
    text-decoration: none;
    font-size: 9px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.deal-time {
    color: #999;
    font-size: 9px;
    white-space: nowrap;
}

.for-you-badge {
    background: #f0f0f0;
    color: #666;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 500;
    flex-shrink: 0;
}

.deal-body {
    padding: 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.deal-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
    flex-shrink: 0;
    aspect-ratio: 1;
}

.deal-discount {
    font-weight: 600;
    font-size: 14px;
    color: green;
    line-height: 1;
    margin-left: 3px;
}

/* Adjust image height for smaller screens to fit better */
@media (max-width: 1200px) {
    .deal-image {
        height: 160px;
    }
}

@media (max-width: 800px) {
    .deal-image {
        height: 150px;
    }
}

@media (max-width: 600px) {
    .deal-image {
        height: 140px;
    }
}

.deal-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
    text-decoration: none;
    overflow: hidden;
    height: 58px;
    display: -webkit-box;
    max-height: 63px;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

    .deal-title:hover {
        color: #0066cc;
    }

/* Adjust title font size for better readability on smaller screens */
@media (max-width: 1200px) {
    .deal-title {
        font-size: 12px;
        height: 39px;
    }
}

@media (max-width: 800px) {
    .deal-title {
        font-size: 13px;
        height: 42px;
    }
}

.deal-price-section {
    margin-bottom: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.deal-price {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    color: #333;
}

.deal-original-price {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    color: #e00c0c;
    text-decoration: line-through;
}

/* Adjust price font sizes for smaller screens */
@media (max-width: 1200px) {
    .deal-price {
        font-size: 18px;
    }

    .deal-original-price {
        font-size: 14px;
    }
}

.deal-store {
    color: #666;
    font-size: 12px;
    line-height: 1.3;
    margin-bottom: 4px;
    flex-shrink: 0;
}

    .deal-store a {
        color: #0066cc;
        text-decoration: none;
    }

        .deal-store a:hover {
            text-decoration: underline;
        }

.deal-store-details {
    color: #666;
    font-size: 10px;
    line-height: 1.3;
    margin-bottom: 4px;
    flex-shrink: 0;
}

/* Adjust store details font size for better readability */
@media (max-width: 1200px) {
    .deal-store {
        font-size: 13px;
    }

    .deal-store-details {
        font-size: 11px;
    }
}

@media (max-width: 800px) {
    .deal-store {
        font-size: 14px;
    }

    .deal-store-details {
        font-size: 12px;
    }
}

.deal-footer {
    padding: 6px 8px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

    .deal-footer .action-buttons {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .deal-footer .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }

    .deal-footer .btn-outline-secondary {
        border-color: #dee2e6;
    }

        .deal-footer .btn-outline-secondary:hover {
            background-color: #f8f9fa;
            border-color: #ced4da;
        }

.deal-stats {
    display: flex;
    align-items: center;
    gap: 1px;
    flex: 1;
    font-size: 12px;
}

.stat-item.ml-auto {
    margin-left: auto;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 2px;
}

.share-icon {
    background: none;
    border: none;
    color: #999;
    font-size: 10px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

    .share-icon:hover {
        color: #666;
        background: #f0f0f0;
    }

/* Adjust card heights for better proportions on smaller screens */
@media (max-width: 1200px) {
    .deal-card {
    }
}

@media (max-width: 800px) {
    .deal-card {
    }
}

@media (max-width: 600px) {
    .deal-card {
    }
}

/* =========================================================
   Footer
========================================================= */
.footer {
    background-color: #333;
    color: #ffffff;
    padding: 60px 0 40px 0;
    margin-top:10px;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section.company-info {
    grid-column: span 2;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section ul {
    list-style: none;
}

    .footer-section ul li {
        margin-bottom: 12px;
    }

        .footer-section ul li a {
            color: #d4d4d4;
            text-decoration: none;
            font-size: 14px;
            transition: color 0.3s ease;
        }

            .footer-section ul li a:hover {
                color: #ffffff;
                text-decoration: underline;
            }

.newsletter-section {
    background-color: #111111;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
}

    .newsletter-section h3 {
        font-size: 20px;
        margin-bottom: 15px;
        color: #ffffff;
    }

    .newsletter-section p {
        color: #d4d4d4;
        margin-bottom: 20px;
        font-size: 14px;
        line-height: 1.5;
    }

.newsletter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

    .newsletter-form input[type="email"] {
        flex: 1;
        min-width: 250px;
        padding: 12px 16px;
        border: 1px solid #666;
        border-radius: 4px;
        background-color: #ffffff;
        font-size: 14px;
    }

    .newsletter-form button {
        padding: 12px 24px;
        background-color: #00b894;
        color: white;
        border: none;
        border-radius: 4px;
        font-weight: 600;
        cursor: pointer;
        transition: background-color 0.3s ease;
        font-size: 14px;
    }

        .newsletter-form button:hover {
            background-color: #00a085;
        }

.social-section {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #666;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

    .social-icons a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background-color: #666;
        border-radius: 50%;
        color: white;
        text-decoration: none;
        transition: all 0.3s ease;
        font-size: 20px;
    }

        .social-icons a:hover {
            background-color: #00b894;
            transform: translateY(-2px);
        }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: #b0b0b0;
}

.footer-legal {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

    .footer-legal a {
        color: #b0b0b0;
        text-decoration: none;
    }

        .footer-legal a:hover {
            color: #ffffff;
        }

.gearchase-logo {
    font-size: 28px;
    font-weight: bold;
    color: #00b894;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

/* =========================================================
   Sub Navigation Rows (Trending / Sponsored)
========================================================= */
main-sub-nav {
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
    overflow: hidden;
}

/* Trending Row */
.trending-nav {
    background: #4b4b4b;
    color: white;
    padding: 8px 0;
    position: relative;
    overflow-x: auto; /* CHANGED from hidden */
    overflow-y: hidden;
}

    .trending-nav::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        /* decorative gradient image intentionally commented out */
        pointer-events: none;
    }

.trending-content {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
    overflow-x: visible; /* CHANGED from hidden if present */
}

.trending-label {
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 12px;
    flex-shrink: 0; /* Don't compress */
    display: flex;
    align-items: center;
    gap: 4px;
}

    .trending-label::before {
        content: '🔥';
        font-size: 10px;
    }

.trending-items {
    display: flex;
    gap: 24px;
    overflow-x: visible; /* CHANGED from hidden */
    flex: 1;
    flex-wrap: nowrap; /* ADD: prevent wrapping */
}

    .trending-items a {
        color: white;
        text-decoration: none;
        font-size: 13px;
        font-weight: 500;
        white-space: nowrap;
        padding: 4px 8px;
        border-radius: 4px;
        transition: all 0.2s ease;
        position: relative;
    }

        .trending-items a:hover {
            background: rgba(255, 255, 255, 0.15);
            transform: translateY(-1px);
        }

        .trending-items a::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 50%;
            width: 0;
            height: 2px;
            background: white;
            transition: all 0.2s ease;
            transform: translateX(-50%);
        }

        .trending-items a:hover::after {
            width: 100%;
        }

/* Sponsored Row */
.sponsored-nav {
    background: #fff;
    border-bottom: 2px solid #f0f0f0;
    padding: 8px 0;
    box-shadow: inset 0 -1px 0 #e5e7eb;
}

.sponsored-content {
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.sponsored-label {
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
    background: #f3f4f6;
    padding: 3px 6px;
    border-radius: 8px;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
}

.sponsored-items {
    display: flex;
    gap: 20px;
    overflow: hidden;
    flex: 1;
    align-items: center;
}

    .sponsored-items a {
        color: #374151;
        text-decoration: none;
        font-size: 12px;
        font-weight: 500;
        white-space: nowrap;
        padding: 4px 8px;
        border-radius: 4px;
        transition: all 0.2s ease;
        position: relative;
        border: 1px solid transparent;
    }

        .sponsored-items a:hover {
            color: #1f2937;
            background: #f9fafb;
            border-color: #e5e7eb;
            transform: translateY(-1px);
        }

        .sponsored-items a.featured {
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
            color: #92400e;
            border-color: #f59e0b;
            font-weight: 600;
        }

            .sponsored-items a.featured:hover {
                background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
                color: #78350f;
            }



/* Badges */
.deal-badge {
    background: #ef4444;
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 4px;
    border-radius: 4px;
    margin-left: 4px;
    text-transform: uppercase;
}

.hot-badge {
    background: #f59e0b;
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 4px;
    border-radius: 4px;
    margin-left: 5px;
    text-transform: uppercase;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Scrolling animation for trending items */
.trending-scroll {
    animation: trendingScroll 25s linear infinite;
}

@keyframes trendingScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* =========================================================
   Accessibility / Misc
========================================================= */

/* Focus styles for accessibility */
button:focus, input:focus, a:focus {
}

/* Smooth transitions for interactive elements */
button, .product-card, .category-card {
    transition: all 0.2s ease;
}

/* =========================================================
   Header Disclaimer + Themes
========================================================= */
.gcHeader_disclaimer {
    display: block;
    width: 100%;
    background: #111111;
    color: #ecf0f1;
    font-size: 11px;
    font-weight: 400; /* font-style: italic; */
    line-height: 1.0;
    text-align: center;
    padding: 8px 20px;
    margin: 0;
    border-bottom: 1px solid #34495e;
    position: relative;
    z-index: 1001;
}
    /* Alternative styling - lighter background */
    .gcHeader_disclaimer.light-theme {
        background: #f8f9fa;
        color: #6c757d;
        border-bottom: 1px solid #dee2e6;
    }
    /* Alternative styling - warning style */
    .gcHeader_disclaimer.warning-theme {
        background: #fff3cd;
        color: #856404;
        border-bottom: 1px solid #ffeaa7;
    }
    /* Alternative styling - minimal style */
    .gcHeader_disclaimer.minimal-theme {
        background: transparent;
        color: #666;
        border-bottom: 1px solid #eee;
        font-size: 10px;
        padding: 6px 20px;
    }

/* =========================================================
   Responsive Design
========================================================= */

/* <= 1024px (footer grid adjust) */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .footer-section.company-info {
        grid-column: span 3;
        text-align: center;
        margin-bottom: 20px;
    }
}

/* <= 768px */
@media (max-width: 768px) {
    .dropdown-menu {
        display: none;
    }
    /* Optionally, show a mobile menu button */
    .mobile-nav-toggle {
        display: block;
    }

    .header-container {
        flex-direction: column;
        gap: 16px;
        padding: 16px 20px;
    }

    .search-bar {
        width: 100%;
        max-width: none;
        margin: 0;
    }


    .search-input {
        grid-column: 1 / -1;
        border: 1px solid #e1e5e9;
        border-radius: 8px;
        padding-right: 44px; /* keep room for clear */
    }


    .clear-search-btn {
        right: 12px;
    }

    .search-button {
        padding: 10px 14px;
    }

    .header-icons {
        order: 2;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .category-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .sustainability-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .impact-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .featured-categories h2,
    .how-it-works h2,
    .sustainability-text h2,
    .cta-content h2 {
        font-size: 2rem;
    }

    .content-page {
        padding: 24px 16px;
        margin: 20px auto;
    }

    /* Trending/Sponsored tweaks */
    .trending-content, .sponsored-content {
        padding: 0 16px;
        gap: 12px;
    }

    .trending-items, .sponsored-items {
        gap: 16px;
    }

        .trending-items a, .sponsored-items a {
            font-size: 12px;
        }

    .trending-label, .sponsored-label {
        font-size: 10px;
        padding: 3px 6px;
    }

    /* Footer stack */
    .footer {
        padding: 40px 0 30px 0;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .footer-section.company-info {
        grid-column: span 2;
        text-align: center;
    }

    /* Keep Categories, Resources, and Support sections in 2 columns on mobile */
    .footer-section:not(.company-info) {
        grid-column: span 1;
    }

    /* Center social icons on mobile */
    .social-icons {
        justify-content: center !important;
    }

    .newsletter-section {
        padding: 25px 20px;
    }

    .newsletter-form {
        flex-direction: column;
        align-items: stretch;
    }

        .newsletter-form input[type="email"] {
            min-width: 100%;
            margin-bottom: 15px;
        }

        .newsletter-form button {
            width: 100%;
            padding: 14px 24px;
        }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-legal {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    /* Disclaimer */
    .gcHeader_disclaimer {
        font-size: 10px;
        padding: 6px 16px;
        line-height: 1.3;
    }
}

/* <= 480px */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .main-nav a {
        padding: 12px 12px;
        font-size: 14px;
    }

    .category-overlay h3 {
        font-size: 1.5rem;
    }
    /* Second variant (kept) */
    .hero-text h1 {
        font-size: 1.8rem;
    }

    /* Footer compact - maintain 2 columns for Categories, Resources, Support */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .footer-section.company-info {
        grid-column: span 2;
    }

    /* Keep other footer sections in 2 columns */
    .footer-section:not(.company-info) {
        grid-column: span 1;
    }

    /* Center social icons on mobile */
    .social-icons {
        justify-content: center;
    }

    .container {
        padding: 0 15px;
    }

    .footer-section h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .social-icons {
        gap: 15px;
    }

        .social-icons a {
            width: 40px;
            height: 40px;
            font-size: 18px;
        }

    .gearchase-logo {
        font-size: 24px;
    }

    /* Trending/Sponsored visibility trims */
    .trending-content, .sponsored-content {
        padding: 0 12px;
        gap: 8px;
    }

    .trending-items, .sponsored-items {
        gap: 12px;
    }

        .trending-items a, .sponsored-items a {
            font-size: 11px;
            padding: 3px 6px;
        }

    /* Disclaimer */
    .gcHeader_disclaimer {
        font-size: 9px;
        padding: 5px 12px;
    }
}

/* =========================================================
   Skeleton Loading Animation
========================================================= */

/* Simple skeleton shimmer */
.skeleton {
    position: relative;
    overflow: hidden;
    min-height: 450px;
    border-radius: 8px;
    background: #f0f0f0;
}

    .skeleton::after {
        content: "";
        position: absolute;
        inset: 0;
        transform: translateX(-100%);
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
        animation: shimmer 1.2s infinite;
    }

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Make images scale nicely */
.deal-image {
    width: 100%;
    height: auto;
    display: block;
}

/* === Deals: mobile-safe overrides === */
.deals-container .deal-image {
    display: block;
    width: 100%;
    height: auto; /* let width drive size */
    aspect-ratio: 4 / 4; /* consistent box across merchants */
    object-fit: contain; /* no cropping; shrink if needed */
    /*max-height: clamp(120px, 45vw, 240px);*/
    max-height: clamp(120px, 45vw, 320px);
}

/* Allow content to flow; avoid hidden text below the image */
@media (max-width: 600px) {
    .deals-container .deal-card {
        height: auto;
    }
    /* was fixed 380–450px */
    .deals-container .deal-body {
        min-height: 0;
    }

    .deals-container .deal-title {
        height: auto;
        max-height: none;
        -webkit-line-clamp: 2; /* tighter titles on phones */
    }
}

/* Optional: slightly smaller image on mid sizes */
@media (max-width: 800px) {
    .deals-container .deal-image {
        max-height: clamp(130px, 38vw, 220px);
    }
}

/* — Deals: unclip content on small screens — */
.deals-container .deal-card {
    display: flex;
    flex-direction: column;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.deals-container .deal-body {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    flex: 1 1 auto;
    min-height: 0; /* allow children to shrink */
    overflow: visible !important;
}

/* keep footer pushed to the bottom without absolute positioning */
.deals-container .deal-footer {
    margin-top: auto;
    position: static !important;
    overflow: visible;
}

/* image stays responsive and never forces a tall card */
.deals-container .deal-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: contain;
    max-height: clamp(120px, 45vw, 240px);
}

/* prevent any min-heights from clipping nested items */
.deals-container .deal-card * {
    min-height: 0;
}

/* mobile layout: single column, rows auto-sized */


.deals-container .deal-title {
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* ensure store section is visible */
.deals-container .deal-store,
.deals-container .deal-store-details {
    display: block;
    overflow: visible;
    visibility: visible;
}



.search-input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    padding: 12px 44px 12px 16px; /* room for clear X */
    border: 0;
    font-size: 16px;
    outline: none;
}

    .search-input:focus {
        border-color: #007bff;
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    }

.search-button {
    flex: 0 0 auto; /* stay on the same row */
    white-space: nowrap; /* don't wrap text */
    padding: 12px 16px;
    background: #007bff;
    color: #fff;
    border: 0;
    border-left: 1px solid #e1e5e9;
}

    .search-button:hover {
        background: #007bff;
    }

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 20px;
    right: 100px; /* CHANGED: exclude search button width */
    background: white;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 0;
}
    /* Scrollbar styling for suggestions */
    .search-suggestions::-webkit-scrollbar {
        width: 8px;
    }

    .search-suggestions::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    .search-suggestions::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 4px;
    }

        .search-suggestions::-webkit-scrollbar-thumb:hover {
            background: #a8a8a8;
        }


.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
    color: #333;
}

    .suggestion-item:last-child {
        border-bottom: none;
    }

    .suggestion-item:hover,
    .suggestion-item.selected {
        background-color: #f5f5f5;
    }

.suggestion-text {
    flex: 1;
}

.suggestion-item .highlight {
    font-weight: 600;
    color: #000;
    background: transparent;
}

/* Ensure proper layering */
.main-header {
    position: relative;
    z-index: 100;
}

.clear-search-btn {
    position: absolute;
    right: 110px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    font-size: 18px;
    color: #888;
    cursor: pointer;
    padding: 0 6px;
    height: auto;
    z-index: 2; /* ensure above input text */
    pointer-events: auto;
}

    .clear-search-btn:hover {
        color: #007bff;
    }

/* Dropdown hover logic for mega menu */
.nav-item.dropdown {
    position: static;
}

    .nav-item.dropdown .dropdown-menu {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        display: none;
        /* visual */
        background: #fff;
        border-top: 2px solid #007bff;
        box-shadow: 0 8px 32px rgba(0,0,0,.12);
        padding: 24px 0;
    }

/* inner container matches main width and centers */
.dropdown-menu .dropdown-inner {
    max-width: 1500px; /* keep in sync with .main-nav-container */
    margin: 0 auto;
    padding: 0 20px;
}

/* 4 columns for children; grandchildren under each child */
.dropdown-menu .columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 24px;
}

.dropdown-menu .child {
    min-width: 0;
}

    .dropdown-menu .child > .child-title {
        font-weight: 700;
        font-size: 16px;
        color: #222;
        margin: 0 0 8px;
    }


/* Grandchildren vertical layout */
.dropdown-menu .grandchildren {
    display: flex;
    flex-direction: column;
    gap: 2px;
    list-style: none;
    margin: 4px 0 0 0;
    padding: 0;
}

    /* Links compact and readable */
    .dropdown-menu .grandchildren li a {
        display: block;
        font-size: 14px;
        line-height: 1.3;
        padding: 2px 0;
        color: #444;
        text-decoration: none;
        transition: color 0.15s ease;
    }


/* mobile: stack content and keep accessible */
@media (max-width: 900px) {
    .nav-item.dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        border-top: 1px solid #e1e5e9;
        padding: 12px 0;
    }

    .dropdown-menu .columns {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.nav-item.dropdown .dropdown-menu {
    display: none;
}

    .nav-item.dropdown .dropdown-menu.show {
        display: block;
    }


/* Desktop: make the INPUT consume all remaining width inside the wrapper */
.search-input-wrapper {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0; /* no visual gap between input and button */
    padding: 0 20px;
    position: relative; /* anchors absolute clear button */
    width: 100%;
}

.search-input {
    flex: 1 1 0% !important; /* grow fully */
    min-width: 0;
    width: auto;
    border: 0; /* wrapper supplies border */
    padding: 12px 44px 12px 16px; /* room for the clear “X” */
}

.search-button {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 12px 16px;
    border-left: 1px solid #e1e5e9;
}

/* Mobile: keep input and button on ONE row (stop the grid stack) */
@media (max-width: 768px) {
    .search-input-wrapper {
        display: flex !important; /* override prior grid rule */
        flex-wrap: nowrap;
        gap: 0;
        border-radius: 8px;
        padding: 0;
    }

    .search-input {
        padding-right: 44px; /* keep room for clear */
    }

    .search-button {
        padding: 10px 14px; /* slightly smaller, same row */
        border-top: 2px solid #0056b3;
        border-bottom: 2px solid #0056b3;
    }
}

/* Optional: if the logo steals too much space on narrow widths,
   let the search bar win available space */
.header-container {
    display: flex;
    align-items: center;
}

.search-bar {
    flex: 1 1 auto;
    min-width: 0;
}

/* =========================================================
   Hamburger Menu Button
========================================================= */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: all 0.3s ease;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn:hover .hamburger-line {
    background-color: #007bff;
}

/* =========================================================
   Mobile Menu Overlay
========================================================= */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1099;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .mobile-menu-overlay.active {
        opacity: 1;
    }

/* =========================================================
   Mobile Sidebar Menu
========================================================= */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100%;
    background: white;
    z-index: 1100;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
}

    .mobile-menu.open {
        left: 0;
    }

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e1e5e9;
    background: #f8f9fa;
}

    .mobile-menu-header h2 {
        margin: 0;
        font-size: 20px;
        font-weight: 700;
        color: #333;
    }

.close-menu-btn {
    background: transparent;
    border: none;
    font-size: 36px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

    .close-menu-btn:hover {
        color: #007bff;
    }

/* =========================================================
   Mobile Menu Content
========================================================= */
.mobile-menu-content {
    padding: 0;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-item {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-link {
    display: block;
    padding: 16px 20px;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

    .mobile-menu-link:hover {
        background-color: #f8f9fa;
        color: #007bff;
    }

.mobile-menu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .mobile-menu-toggle:hover {
        background-color: #f8f9fa;
    }

.toggle-icon {
    font-size: 24px;
    font-weight: 300;
    color: #666;
    transition: transform 0.3s ease;
    display: inline-block;
}

    .toggle-icon.open {
        transform: rotate(90deg);
    }

/* =========================================================
   Mobile Submenu
========================================================= */
.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    background: #f8f9fa;
    transition: max-height 0.3s ease;
}

    .mobile-submenu.open {
        max-height: 2000px;
    }

.mobile-submenu-section {
    padding: 12px 20px;
    border-bottom: 1px solid #e1e5e9;
}

    .mobile-submenu-section:last-child {
        border-bottom: none;
    }

.mobile-submenu-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #007bff;
    margin-bottom: 8px;
    text-decoration: none;
    padding: 4px 0;
}

    .mobile-submenu-title:hover {
        text-decoration: underline;
    }

.mobile-submenu-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .mobile-submenu-links li {
        margin-bottom: 4px;
    }

    .mobile-submenu-links a {
        display: block;
        padding: 6px 0;
        font-size: 14px;
        color: #555;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .mobile-submenu-links a:hover {
            color: #007bff;
        }

/* =========================================================
   Desktop Navigation Visibility
========================================================= */
.desktop-only {
    display: block;
}

/* =========================================================
   Mobile Responsive (768px and below)
========================================================= */
@media (max-width: 768px) {
    /* Prevent horizontal overflow on mobile */
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    /* Ensure all containers respect viewport width */
    * {
        max-width: 100vw;
    }

    .container,
    .deals-container,
    .main-header,
    .main-nav,
    .main-sub-nav {
        max-width: 100%;
    }

    /* Show hamburger button */
    .hamburger-btn {
        display: flex;
    }

    /* Show mobile menu overlay when active */
    .mobile-menu-overlay.active {
        display: block;
    }

    /* Hide desktop navigation */
    .desktop-only {
        display: none !important;
    }

    /* Adjust header container for mobile */
    .header-container {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "hamburger logo"
            "search search";
        gap: 12px;
        padding: 12px 16px;
        align-items: center;
    }

    .hamburger-btn {
        grid-area: hamburger;
        align-self: center;
    }

    .logo {
        grid-area: logo;
        justify-self: start;
    }

    .search-bar {
        grid-area: search;
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .header-icons {
        display: none;
    }
}

/* =========================================================
   Smaller Mobile (480px and below)
========================================================= */
@media (max-width: 480px) {
    .mobile-menu {
        width: 280px;
        left: -280px;
    }

    .mobile-menu-header {
        padding: 16px;
    }

        .mobile-menu-header h2 {
            font-size: 18px;
        }

    .close-menu-btn {
        font-size: 32px;
        width: 28px;
        height: 28px;
    }

    .mobile-menu-link,
    .mobile-menu-toggle {
        padding: 14px 16px;
        font-size: 15px;
    }

    .mobile-submenu-section {
        padding: 10px 16px;
    }

    .mobile-submenu-title {
        font-size: 14px;
    }

    .mobile-submenu-links a {
        font-size: 13px;
        padding: 5px 0;
    }
}

/* =========================================================
   Prevent body scroll when menu is open
========================================================= */
body.mobile-menu-open {
    overflow: hidden;
}

/* =========================================================
   Animation improvements for smooth experience
========================================================= */
@media (prefers-reduced-motion: no-preference) {
    .mobile-menu,
    .mobile-menu-overlay,
    .mobile-submenu,
    .toggle-icon {
        transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* =========================================================
   Accessibility improvements
========================================================= */
.hamburger-btn:focus,
.close-menu-btn:focus,
.mobile-menu-toggle:focus,
.mobile-menu-link:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hamburger-line {
        background-color: #000;
    }

    .mobile-menu {
        border-right: 2px solid #000;
    }

    .mobile-menu-item {
        border-bottom: 2px solid #000;
    }
}

/* Ensure back to top button is visible on ALL devices */
.back-to-top {
    position: fixed;
    background: linear-gradient(135deg, #0056b3 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    line-height: 2rem;
    text-align: top;
    border-radius: 999px;
    z-index: 2147483647 !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    -webkit-tap-highlight-color: transparent;
}

    .back-to-top.visible {
        opacity: 1;
        pointer-events: auto;
    }

    .back-to-top:hover {
        transform: translateY(-3px);
    }

    .back-to-top:active {
        transform: translateY(-1px);
        z-index: 2147483647 !important;
    }

/* Mobile optimizations */
@media (max-width: 768px) {
    .back-to-top {
        position: fixed;
        bottom: 1.5rem;
        right: 1.5rem;
        width: 3rem;
        height: 3rem;
        line-height: 3rem;
        text-align: center;
        border-radius: 999px;
        z-index: 2147483647 !important;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }
        /* Ensure it appears above mobile menus */
        .back-to-top.visible {
            opacity: 1;
            pointer-events: auto;
        }
}

/* Even smaller screens */
@media (max-width: 480px) {
    .back-to-top {
        position: fixed;
        bottom: 1.5rem;
        right: 1.5rem;
        width: 3rem;
        height: 3rem;
        line-height: 3rem;
        text-align: center;
        border-radius: 999px;
        z-index: 2147483647 !important;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }
}

/* Newsletter subscription message styles */
.subscription-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    animation: fadeIn 0.3s ease-in;
}

    .subscription-message.success {
        background-color: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
    }

    .subscription-message.error {
        background-color: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*Breadcrumb*/
/* Breadcrumb Optimization Styles */
@media (max-width: 575.98px) {
    /* 1. Reduce the overall font size for the breadcrumb on mobile */
    .breadcrumb-nav .breadcrumb {
        font-size: 0.8rem; /* Use a smaller relative font size */
        padding-left: 0; /* Ensures it starts right at the edge of the container */
    }

    /* 2. Truncation for Intermediate Items (Keeps them from wrapping) */
    /* Target all breadcrumb items *except* 'Home' and the 'Active' item */
    .breadcrumb .breadcrumb-item:not(:first-child):not(.active) {
        max-width: 100px; /* Limits the width */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* 3. Optional: Make the overall spacing a little tighter */
    .breadcrumb-item + .breadcrumb-item::before {
        padding-right: 0.25rem; /* Reduce the space after the separator */
    }
}

.breadcrumb-item-mobile-truncate {
    /* Prevent the breadcrumb items from wrapping onto new lines */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Optional: Hide the chevron separator for truncated items */
}

/* Apply truncation only on mobile/small screens (Bootstrap's typical breakpoint) */
@media (max-width: 575.98px) {
    /* Target all breadcrumb items *except* the active (last) one */
    .breadcrumb .breadcrumb-item:not(.active) {
        max-width: 150px; /* Adjust this value as needed for your layout */
    }

    /* Apply truncation styles to all items except 'Home' and the 'active' one */
    .breadcrumb .breadcrumb-item:not(:first-child):not(.active) {
        max-width: 100px; /* Make intermediate links shorter */
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Optional: Hide intermediate text entirely on very small screens */
    .breadcrumb .breadcrumb-item:nth-last-child(n+3) {
        max-width: 50px; /* Make links before the current category very short */
    }
}

/* Horizontal Scrolling Breadcrumb for Mobile */
@media (max-width: 575.98px) {
    .breadcrumb-scroll {
        /* Enable horizontal scrolling for the wrapper */
        overflow-x: auto;
        /* Hide the vertical scrollbar, but keep horizontal scrolling */
        overflow-y: hidden;
        /* Optional: Add some padding to make the scrolling easier on the eyes */
        padding-left: 1rem;
        padding-right: 1rem;
        /* Remove the negative margin inherited by the container's padding */
        margin-left: -1rem;
        margin-right: -1rem;
        -ms-overflow-style: none; /* IE and Edge */
        scrollbar-width: none; /* Firefox */
    }
        .breadcrumb-scroll::-webkit-scrollbar {
            display: none;
        }

        /* Ensure the items are tightly packed and use small text for more space */
        .breadcrumb-scroll .breadcrumb {
            font-size: 0.8rem;
            padding-left: 0;
            margin-bottom: 0; /* Important for single-line fit */
        }
}





/*Skeleton Deal Cards*/
/* Skeleton loading styles */
.deal-card.skeleton {
    pointer-events: none;
    user-select: none;
}

.skeleton-element {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.skeleton-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.skeleton-text {
    height: 12px;
    flex: 1;
    max-width: 150px;
}

.skeleton-badge {
    width: 60px;
    height: 24px;
    margin-left: auto;
}

.skeleton-image {
    width: 100%;
    height: 300px;
    margin-bottom: 16px;
}

.skeleton-title {
    height: 16px;
    width: 85%;
    margin-bottom: 8px;
}

.skeleton-title-short {
    height: 16px;
    width: 60%;
    margin-bottom: 16px;
}

.skeleton-price {
    height: 24px;
    width: 120px;
    margin-bottom: 12px;
}

.skeleton-discount {
    height: 20px;
    width: 80px;
    margin-bottom: 12px;
}

.skeleton-store {
    height: 14px;
    width: 100px;
    margin-bottom: 16px;
}

.skeleton-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.skeleton-stats {
    display: flex;
    gap: 16px;
    flex: 1;
}

.skeleton-stat {
    height: 14px;
    width: 40px;
}

.skeleton-share {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

@media (max-width: 480px) {
    .skeleton-image {
        height: 250px;
    }
}