
/* ===== CSS Variables (must be first) ===== */
:root {
    --primary-color: #2ecc40;
    --primary-color-rgb: 46, 204, 64;
    --accent-color: #27ae60;
    --highlight-color: #b6f5c7;
    --light-green: #eafaf1;
    --dark-grey: #232f3e;
    --light-grey: #f9f9f9;
    --shadow: 0 10px 30px rgba(46, 204, 64, 0.1);
    --header-grad-1: #1B5E20;
    --header-grad-2: #43A047;
    --premium-grad: linear-gradient(135deg, #2ecc40 0%, #27ae60 100%);
    --card-radius: 20px;
    --font-main: 'Poppins', sans-serif;
}

/* --- Top Categories: Small Circles --- */
.categories-circle-row {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    justify-content: space-evenly; /* Distributed space on Desktop */
    padding: 1.2rem 1rem;
    overflow-x: hidden; /* Hide scroll on desktop */
    background: #fff;
}

.category-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #232f3e;
    width: 60px;
    min-width: 60px;
    margin: 0 0.1rem;
}

.category-circle img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f3f3f3;
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 0.3rem;
    object-fit: cover;
    transition: border 0.18s, box-shadow 0.18s;
}

.category-circle span {
    font-size: 0.82rem;
    color: #232f3e;
    text-align: center;
    margin-top: 0.1rem;
    font-weight: 500;
    line-height: 1.1;
}

.category-circle:hover img {
    border: 2px solid #232f3e;
    box-shadow: 0 4px 12px rgba(254, 189, 105, 0.18);
}

.category-circle:hover span {
    color: var(--primary-color);
}

@media (max-width: 700px) {
    .categories-circle-row {
        display: flex !important;
        width: 100% !important;
        justify-content: flex-start !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 0.8rem !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        box-sizing: border-box !important;
    }
    .categories-circle-row::-webkit-scrollbar { display: none; }
    .category-circle { width: 48px; min-width: 48px; }
    .category-circle img { width: 36px; height: 36px; }
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: var(--light-grey);
    color: var(--dark-grey);
    transition: margin-left 0.3s ease;
}

body.sidebar-visible { margin-left: 0; }

/* --- Header & Navigation --- */
header {
    background: #ffffff;
    border-bottom: 3px solid var(--primary-color);
    padding: 0.8rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.logo-text {
    color: var(--primary-color);
    font-size: 1.85rem;
    font-weight: 800;
}

header nav ul {
    display: none;
}

header nav ul li {
    display: none;
}

header nav ul li a {
    display: none;
}

.cart-link {
    font-size: 1.5rem;
    color: var(--dark-grey);
    text-decoration: none;
    position: relative;
}

#cart-count {
    position: absolute;
    top: -10px;
    right: -12px;
    background: var(--primary-color);
    color: white;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: 600;
}

/* --- Header Icons Container --- */
.header-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* Header search input (larger, easy access) */
.header-search-form {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.header-search-input {
    width: 260px;
    max-width: 42vw;
    padding: 0.6rem 0.9rem;
    border-radius: 30px;
    border: 2px solid #e6efe6;
    background: #fff;
    font-size: 0.95rem;
    transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.header-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 6px 18px rgba(76, 175, 80, 0.08);
}

/* === Top promo bar (keeps existing color variables) === */
.top-promo {
    background: var(--primary-color);
    color: #ffffff;
    text-align: center;
    padding: 0.5rem 0;
    font-weight: 600;
    font-size: 0.98rem;
}

/* Header layout: use grid so search sits centered like the reference */
header .container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "left search icons";
    align-items: center;
    gap: 1rem;
    padding: 0 1rem;
}

.logo-container {
    justify-self: start;
}

.left-header {
    grid-area: left;
}

.header-icons {
    grid-area: icons;
    justify-self: end;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.header-search-form {
    grid-area: search;
    justify-self: center;
    display: flex;
    width: 100%;
    max-width: 760px;
    position: relative;
}

.left-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    justify-self: start;
}

.hamburger-menu {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.hamburger-menu span {
    display: block;
    width: 20px;
    height: 2.5px;
    background: var(--dark-grey);
    margin: 4px 0;
    border-radius: 2px;
}

.hamburger-menu.active span {
    background: var(--primary-color);
}

.header-search-input {
    width: 100%;
    padding: 0.95rem 3.2rem 0.95rem 1.2rem;
    /* leave space for circular button on right */
    border-radius: 999px;
    border: none;
    background: var(--light-green);
    box-shadow: 0 6px 18px rgba(76, 175, 80, 0.06);
    font-size: 1rem;
    transition: box-shadow 160ms ease, transform 160ms ease;
}

.header-search-input:focus {
    box-shadow: 0 10px 26px rgba(76, 175, 80, 0.12);
    transform: translateY(-1px);
}

.header-search-input::placeholder {
    color: rgba(0, 0, 0, 0.45);
}

.header-search-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.12);
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Top categories row below header */
.top-categories {
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.top-categories .container {
    display: flex;
    gap: 2.2rem;
    align-items: center;
    padding: 0.8rem 0;
    overflow-x: auto;
}

.top-categories a {
    color: var(--dark-grey);
    text-decoration: none;
    white-space: nowrap;
    font-weight: 600;
    opacity: 0.95;
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
}

/* Category icon styling */
.top-categories .cat-icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
    align-items: center;
    justify-content: center;
}

.top-categories .icon {
    width: 20px;
    height: 20px;
    fill: var(--primary-color);
    opacity: 0.95;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.top-categories a:hover .icon {
    transform: translateY(-2px);
    opacity: 1;
}

/* Hero adjustments to match reference layout and keep colors */
.hero {
    background: var(--light-green);
    padding: 6rem 0;
    text-align: left;
}

.hero-pretitle {
    display: inline-block;
    background: rgba(0, 0, 0, 0.03);
    padding: 0.4rem 0.9rem;
    border-radius: 30px;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-title {
    font-size: 4rem;
    line-height: 0.95;
    margin: 0;
    color: var(--dark-grey);
    font-weight: 800;
}

.hero-title .accent {
    color: var(--primary-color);
    display: block;
    font-size: 4rem;
    margin-top: 0.1rem;
}

.hero-sub {
    font-size: 1.2rem;
    color: #546b57;
    max-width: 700px;
    margin-top: 1.2rem;
    margin-bottom: 1.6rem;
}

.hero-cta {
    border-radius: 30px;
    padding: 1rem 2rem;
}

/* === Enhanced visual polish === */
/* Make the promo bar feel elevated */
.top-promo {
    background: linear-gradient(90deg, rgba(76, 175, 80, 1), rgba(56, 142, 60, 0.96));
    color: #fff;
    text-align: center;
    padding: 0.55rem 0;
    font-weight: 700;
    font-size: 0.98rem;
    box-shadow: 0 6px 18px rgba(15, 107, 64, 0.08);
}

/* Header refinement: translucent backdrop with soft shadow */
header {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: none;
    box-shadow: 0 8px 28px rgba(15, 107, 64, 0.06);
}

.left-header .logo-img {
    box-shadow: 0 6px 18px rgba(76, 175, 80, 0.08);
}

/* Search: polished input with inner shadow and animated focus */
.header-search-form {
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.header-search-input {
    background: linear-gradient(180deg, #fbfffb, var(--light-green));
    padding: 0.95rem 3.6rem 0.95rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 107, 64, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.header-search-form:focus-within {
    transform: translateY(-2px);
}

.header-search-btn {
    right: 8px;
    width: 44px;
    height: 44px;
}

.header-search-btn i {
    transform: translateY(-1px);
}

/* Category pills: soft background around icons */
.top-categories a {
    transition: all 160ms ease;
    border-radius: 10px;
    padding: 0.35rem 0.6rem;
}

.top-categories .cat-icon {
    background: rgba(76, 175, 80, 0.08);
    padding: 6px;
    border-radius: 8px;
    margin-right: 10px;
}

.top-categories a:hover {
    background: rgba(76, 175, 80, 0.04);
    transform: translateY(-4px);
}

.top-categories a:hover .icon {
    fill: #fff;
}

.top-categories a:hover .cat-icon {
    background: linear-gradient(135deg, var(--primary-color), #2e8b57);
}

/* Hero: add subtle depth, decorative underline and CTA gradient */
.hero {
    padding: 8.5rem 0 6.5rem 0;
    position: relative;
    overflow: visible;
}

.hero-title {
    text-shadow: 0 6px 18px rgba(15, 107, 64, 0.04);
}

.hero-title .accent {
    background: linear-gradient(90deg, var(--primary-color), #2e8b57);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    color: #4a644f;
}

.hero-cta {
    background: linear-gradient(90deg, var(--primary-color), #2e8b57);
    box-shadow: 0 12px 30px rgba(15, 107, 64, 0.12);
    border: none;
    color: #fff;
}

.hero-cta:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(15, 107, 64, 0.16);
}

/* Small screens: slightly reduce hero spacing and CTA size */
@media (max-width: 480px) {
    .hero {
        padding: 4.5rem 0 3rem 0;
    }

    .hero-cta {
        padding: 0.9rem 1.6rem;
    }

    .top-categories .container {
        padding-left: 0.6rem;
        padding-right: 0.6rem;
    }
}

/* subtle transitions everywhere */
* {
    transition: background-color 140ms ease, color 140ms ease;
}

@media (max-width: 1024px) {

    /* Tablet: make search flexible and centered */
    header .container {
        grid-template-columns: auto 1fr auto;
        grid-template-areas: "left search icons";
    }

    .header-search-form {
        justify-self: center;
        max-width: 760px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-title .accent {
        font-size: 3rem;
    }
}

@media (max-width: 640px) {

    /* Mobile: place search on its own row, full width, with padding */
    header .container {
        grid-template-columns: auto 1fr;
        grid-template-areas: "left icons" "search search";
        align-items: center;
    }

    .header-search-form {
        grid-column: 1 / -1;
        justify-self: stretch;
        width: calc(100% - 2rem);
        margin: 0 1rem;
        margin-top: 0.6rem;
    }

    .top-categories .container {
        gap: 1rem;
    }

    .hero {
        padding: 3.5rem 0;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-title .accent {
        font-size: 2.2rem;
    }
}

.header-search-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.55rem 0.7rem;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.18);
}

.header-search-btn i {
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .header-search-input {
        width: 180px;
    }
}

@media (max-width: 640px) {
    .header-search-input {
        display: none;
    }

    .header-search-btn {
        padding: 0.5rem;
    }
}

.search-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-grey);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.search-btn:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* --- Search Modal --- */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: flex-start;
    padding-top: 100px;
    animation: fadeIn 0.3s ease;
}

.search-modal.active {
    display: flex;
}

.search-modal-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    max-height: 70vh;
    overflow-y: auto;
    position: relative;
}

.search-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s ease;
}

.search-close:hover {
    color: var(--dark-grey);
}

.search-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-submit {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-submit:hover {
    background: #45a049;
    transform: scale(1.05);
}

.search-results {
    display: grid;
    gap: 1rem;
}

.search-result-item {
    background: var(--light-green);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-result-item:hover {
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
    transform: translateX(5px);
}

.search-result-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.search-result-info {
    flex: 1;
}

.search-result-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark-grey);
    margin-bottom: 0.3rem;
}

.search-result-price {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 600;
}

.search-result-category {
    font-size: 0.85rem;
    color: #999;
}

.no-search-results {
    text-align: center;
    padding: 2rem;
    color: #999;
    font-size: 1.1rem;
}

/* --- Hamburger Menu --- */
.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 35px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 2001;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--dark-grey);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-menu.active span {
    background-color: #45a049;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(12.5px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-12.5px) rotate(-45deg);
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(to right, #e8f5e9, var(--light-green));
    color: var(--dark-grey);
    padding: 5rem 0;
    text-align: center;
}

.hero {
    background: var(--light-green);
    padding: 8rem 0 6rem 0;
    text-align: left;
}

.hero-pretitle {
    display: inline-block;
    background: rgba(0, 0, 0, 0.03);
    padding: 0.45rem 1rem;
    border-radius: 30px;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.hero-title {
    font-size: 5rem;
    line-height: 0.92;
    margin: 0;
    color: var(--dark-grey);
    font-weight: 900;
}

.hero-title .accent {
    color: var(--primary-color);
    display: block;
    font-size: 5rem;
    margin-top: 0.15rem;
}

.hero-sub {
    font-size: 1.25rem;
    color: #546b57;
    max-width: 740px;
    margin-top: 1.4rem;
    margin-bottom: 1.8rem;
}

.hero-cta {
    border-radius: 30px;
    padding: 1.1rem 2.2rem;
    font-size: 1.03rem;
}

.btn {
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 30px;
    /* Rounded button */
    font-weight: 600;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.4);
}

.btn:hover {
    background: #45a049;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(76, 175, 80, 0.5);
}

/* Fade-In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
}

/* --- Offer Banner --- */
.offer-banner {
    position: relative;
    background: #4CAF50;
    padding: 3rem;
    margin: 2rem auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 380px;
    max-width: 1200px;
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
    color: white;
}

/* --- Breadcrumb / Back Button --- */
.breadcrumb-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin: 1rem auto;
    padding: 0.5rem 1rem;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.breadcrumb {
    font-size: 0.95rem;
    color: #666;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb .sep {
    margin: 0 0.5rem;
    color: #999;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.15s ease;
}

.back-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .breadcrumb-row {
        flex-direction: column;
        align-items: stretch;
    }

    .back-btn {
        justify-content: center;
    }
}

.offer-badge {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.offer-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 6rem;
    font-weight: 900;
    color: #2c3e50;
    margin: 0;
    z-index: 2;
    white-space: nowrap;
    letter-spacing: 2px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.offer-bottom {
    align-self: flex-start;
    z-index: 2;
    margin-top: auto;
}

.offer-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
}

.offer-description {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.offer-cta {
    background: white;
    color: #4CAF50;
    border: none;
    padding: 0.9rem 2.2rem;
    font-size: 1rem;
    font-weight: 800;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.offer-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: #f1f8e9;
}

.offer-cta:active {
    transform: translateY(-1px);
}

/* Decorative Leaves */
.offer-decoration {
    position: absolute;
    right: -20px;
    top: -20px;
    width: 350px;
    height: 100%;
    opacity: 0.2;
    z-index: 1;
    pointer-events: none;
}

.leaf {
    position: absolute;
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 0 100% 0 100%;
    opacity: 0.4;
}

.leaf-1 {
    top: 10%;
    right: 50px;
    transform: rotate(45deg);
    animation: float 6s ease-in-out infinite;
}

.leaf-2 {
    top: 40%;
    right: 20px;
    width: 80px;
    height: 80px;
    transform: rotate(-30deg);
    animation: float 7s ease-in-out infinite 1s;
}

.leaf-3 {
    top: 60%;
    right: 120px;
    width: 100px;
    height: 100px;
    transform: rotate(60deg);
    animation: float 8s ease-in-out infinite 2s;
}

.leaf-4 {
    top: 80%;
    right: 40px;
    width: 90px;
    height: 90px;
    transform: rotate(-45deg);
    animation: float 6.5s ease-in-out infinite 1.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(45deg);
    }

    50% {
        transform: translateY(-20px) rotate(45deg);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .offer-banner {
        min-height: auto;
        padding: 2rem;
        gap: 2rem;
        align-items: center;
        text-align: center;
    }

    .offer-badge {
        align-self: center;
    }

    .offer-title {
        position: static;
        transform: none;
        font-size: 3.5rem;
        margin: 1rem 0;
    }

    .offer-bottom {
        align-self: center;
        margin-top: 0;
    }
}

/* --- Categories Section --- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: #fff;
    padding: 1rem;
    text-align: center;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--dark-grey);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.category-card img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 3px solid var(--light-green);
}

.category-card h3 {
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* --- Products Section â€” Premium Redesign --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    padding-bottom: 2rem;
}

/* â”€â”€ Card Shell â”€â”€ */
.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.35s cubic-bezier(.22,.68,0,1.2), box-shadow 0.35s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(46,204,64,0.12), 0 6px 20px rgba(0,0,0,0.08);
}
.product-card.pc--oos { opacity: 0.7; }

/* â”€â”€ Image Wrapper â”€â”€ */
.pc-img-wrap {
    position: relative;
    overflow: hidden;
    background: #f0f4f0;
    aspect-ratio: 1 / 1;
}
.pc-img-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}
.pc-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(.22,.68,0,1.2);
}
.product-card:hover .pc-img {
    transform: scale(1.08);
}

/* â”€â”€ Image Overlay â”€â”€ */
.pc-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.5) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 1.2rem;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.product-card:hover .pc-img-overlay {
    opacity: 1;
}
.pc-quick-view {
    background: rgba(255,255,255,0.92);
    color: #1a2a1a;
    padding: 0.45rem 1.2rem;
    border-radius: 24px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    backdrop-filter: blur(6px);
    transform: translateY(12px);
    transition: transform 0.35s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.product-card:hover .pc-quick-view {
    transform: translateY(0);
}

/* â”€â”€ Badges â”€â”€ */
.pc-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 0.3rem 0.75rem;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 2;
    line-height: 1.3;
}
.pc-badge--best {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #fff;
}
.pc-badge--top {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}
.pc-badge--deal {
    background: linear-gradient(135deg, #e53e3e, #fc8181);
    color: #fff;
}
.pc-badge--oos {
    background: #555;
    color: #fff;
}

/* â”€â”€ Side Action Buttons â”€â”€ */
.pc-actions {
    position: absolute;
    top: 12px;
    right: -50px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 3;
    transition: right 0.35s cubic-bezier(.22,.68,0,1.2);
}
.product-card:hover .pc-actions {
    right: 12px;
}
.pc-action-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.25s ease;
}
.pc-action-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.15);
    box-shadow: 0 4px 14px rgba(46,204,64,0.3);
}
.pc-action-btn.wishlist-btn:hover {
    background: #e74c3c;
    box-shadow: 0 4px 14px rgba(231,76,60,0.3);
}

/* â”€â”€ Card Body â”€â”€ */
.pc-body {
    padding: 1rem 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Title */
.pc-title-link {
    text-decoration: none;
    color: inherit;
}
.pc-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1a2a1a;
    margin: 0 0 0.45rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}
.pc-title-link:hover .pc-name {
    color: var(--primary-color);
}

/* Rating Row */
.pc-rating {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}
.pc-stars {
    display: flex;
    align-items: center;
    gap: 1px;
    font-size: 0.78rem;
}
.pc-rating-num {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1a2a1a;
    background: #eafaf1;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}
.pc-review-count {
    font-size: 0.78rem;
    color: #888;
}

/* Price Row */
.pc-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
    flex-wrap: wrap;
}
.pc-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1a2a1a;
    letter-spacing: -0.5px;
}
.pc-mrp {
    font-size: 0.85rem;
    color: #aaa;
    text-decoration: line-through;
}
.pc-discount {
    font-size: 0.78rem;
    font-weight: 700;
    color: #27ae60;
}

/* Delivery / Stock */
.pc-delivery {
    font-size: 0.76rem;
    color: #27ae60;
    font-weight: 500;
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.pc-delivery i {
    font-size: 0.72rem;
}
.pc-stock-alert {
    font-size: 0.78rem;
    color: #e74c3c;
    font-weight: 600;
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* â”€â”€ Cart Button â”€â”€ */
.pc-cart-btn, .add-to-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #2ecc40, #27ae60);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    margin-top: auto;
    box-shadow: 0 4px 14px rgba(46,204,64,0.15);
}
.pc-cart-btn:hover, .add-to-cart-btn:hover {
    background: linear-gradient(135deg, #27ae60, #1e8c4f);
    box-shadow: 0 6px 20px rgba(46,204,64,0.25);
    transform: translateY(-2px);
}
.pc-cart-btn:disabled, .add-to-cart-btn:disabled {
    background: #ccc;
    color: #888;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}
.pc-cart-btn i {
    font-size: 0.85rem;
    transition: transform 0.3s;
}
.pc-cart-btn:hover i {
    transform: scale(1.2);
}

.add-to-cart-btn.added {
    background: linear-gradient(135deg, #555, #333);
    cursor: not-allowed;
}

/* --- Orders Section --- */
.orders-section {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    padding: 4rem 2rem;
    margin: 3rem 0;
}

.orders-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-grey);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

/* Orders Tabs */
.orders-tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0 2.5rem 0;
    flex-wrap: wrap;
}

.orders-tabs-modal {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.orders-tab-btn {
    background: white;
    color: var(--dark-grey);
    border: 2px solid #ddd;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.orders-tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.orders-tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* --- Featured Products Modal --- */
.featured-modal-content {
    max-width: 1100px;
    max-height: 90vh;
    overflow-y: auto;
}

.featured-modal-body {
    padding: 2rem 1.5rem;
}

.featured-tabs {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.featured-tab-btn {
    background: white;
    color: var(--dark-grey);
    border: 2px solid #ddd;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.featured-tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.featured-tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.featured-tab-content {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.featured-tab-content.active {
    display: block;
}

.featured-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Tab Content */
.orders-tab-content {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.orders-tab-content.active {
    display: block;
}

/* Orders List */
.orders-list {
    display: grid;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.order-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--primary-color);
    transition: all 0.3s ease;
}

.order-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.order-id {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.order-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-status.pending {
    background: #fff3cd;
    color: #856404;
}

.order-status.delivered {
    background: #d4edda;
    color: #155724;
}

.order-status.cancelled {
    background: #f8d7da;
    color: #721c24;
}

.order-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.order-meta-item {
    display: flex;
    flex-direction: column;
}

.order-meta-label {
    color: #999;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.order-meta-value {
    color: var(--dark-grey);
    font-size: 1.05rem;
    font-weight: 600;
}

.order-items {
    margin-bottom: 1rem;
}

.order-items-label {
    font-weight: 700;
    color: var(--dark-grey);
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    color: #666;
    font-size: 0.95rem;
    border-bottom: 1px dotted #eee;
}

.order-item-row:last-child {
    border-bottom: none;
}

.order-amount {
    font-weight: 600;
    color: var(--primary-color);
}

.order-footer {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.order-btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.order-btn-primary {
    background: var(--primary-color);
    color: white;
}

.order-btn-primary:hover {
    background: #45a049;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.order-btn-secondary {
    background: #f0f0f0;
    color: var(--dark-grey);
}

.order-btn-secondary:hover {
    background: #e0e0e0;
}

.no-data {
    text-align: center;
    padding: 3rem 2rem;
    color: #999;
    font-size: 1.1rem;
    background: white;
    border-radius: 12px;
}

.no-data a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.no-data a:hover {
    text-decoration: underline;
}

/* --- Reviews & Comments Section --- */
.reviews-section {
    background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e9 100%);
    padding: 4rem 2rem;
    margin: 3rem 0;
}

.reviews-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-grey);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.reviews-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Review Form */
.review-form-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--primary-color);
}

.review-form-container h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--dark-grey);
    font-weight: 600;
    font-size: 1rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Star Rating */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.5rem;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 2rem;
    cursor: pointer;
    color: #ddd;
    transition: color 0.2s ease;
    margin: 0;
}

.star-rating input:checked~label,
.star-rating label:hover,
.star-rating label:hover~label {
    color: #ffc107;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), #66BB6A);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

/* Reviews Display */
.reviews-display {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    max-height: 600px;
    overflow-y: auto;
}

.reviews-display h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
    animation: slideUp 0.4s ease-out;
}

.review-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.reviewer-name {
    font-weight: 700;
    color: var(--dark-grey);
    font-size: 1.1rem;
}

.review-rating {
    color: #ffc107;
    font-size: 1rem;
    letter-spacing: 2px;
}

.review-text {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.review-time {
    color: #999;
    font-size: 0.85rem;
    font-style: italic;
}

.no-reviews {
    text-align: center;
    color: #999;
    padding: 2rem;
    font-style: italic;
}


/* --- Footer --- */
footer {
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 3rem;
    background: linear-gradient(135deg, var(--dark-grey) 0%, #1a1a1a 100%);
    color: #f4f4f4;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo-section {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.footer-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.footer-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    background: rgba(76, 175, 80, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.social-link i {
    font-size: 1.3rem;
}

.footer-cta {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.5rem 0;
    color: var(--primary-color);
}

.footer-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 2rem 0;
}

footer p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

/* --- CRT Image Effect --- */
.crt-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
    /* match product image height */
}

.crt-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: contrast(1.05) saturate(0.95) brightness(0.98);
    transform: translateZ(0);
}

.crt-wrapper::after {
    /* subtle vignette */
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.12) 100%);
}

.crt-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.crt-overlay.scanlines {
    /* thin horizontal scanlines */
    background-image: repeating-linear-gradient(to bottom,
            rgba(0, 0, 0, 0.12) 0,
            rgba(0, 0, 0, 0.12) 1px,
            transparent 1px,
            transparent 4px);
    opacity: 0.28;
}

.crt-overlay.glow {
    background: linear-gradient(180deg, rgba(80, 200, 120, 0.03), rgba(0, 0, 0, 0));
    mix-blend-mode: screen;
    opacity: 0.7;
}

/* small screens: keep images readable */
@media (max-width: 480px) {
    .crt-wrapper {
        height: 160px;
    }
}

/* Top Info Bar (removed) - related CSS removed as HTML no longer present */
/* --- Sidebar Navigation --- */
.sidebar {
    position: fixed;
    left: -300px;
    top: 0;
    width: 300px;
    height: 100vh;
    background: #141b22;
    color: #ffffff;

    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18);
    transition: left 0.3s ease;
    z-index: 2000;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e8f5e9;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    background: linear-gradient(135deg, #2ecc40 0%, #27ae60 100%);
    color: white;
    padding: 1.4rem 1.2rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
    box-shadow: 0 4px 16px rgba(46, 204, 64, 0.35);
    position: relative;
}

.sidebar-header::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(180deg, rgba(46, 204, 64, 0.1), transparent);
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.sidebar-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.sidebar-close:hover {
    transform: rotate(90deg);
}

.sidebar-nav {
    flex: 1;
    padding: 0.5rem 0 1rem;
    overflow-y: auto;
}

.sb-section-title {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #aaa;
    padding: 1rem 1.4rem 0.3rem;
    margin-top: 0.2rem;
}

.sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-nav li {
    margin: 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 1.4rem;
    color: #e2e8f0;

    text-decoration: none;
    font-weight: 600;
    font-size: 0.97rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    border-radius: 0 10px 10px 0;
    margin: 2px 10px 2px 0;
}

.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.05);

    color: #2ecc40;
    border-left-color: #2ecc40;
    padding-left: 1.8rem;
    box-shadow: 0 2px 8px rgba(46, 204, 64, 0.15);
}

.sidebar-nav i {
    font-size: 1.2rem;
    width: 20px;
}

.sidebar-footer {
    background: #f8fdf8;
    padding: 1rem 1.4rem 1.2rem;
    border-top: 1.5px solid #e8f5e9;
}



/* Sidebar Overlay: use opacity so overlay doesn't cover sidebar */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1999;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Sidebar Toggle Button */
.sidebar-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    z-index: 998;
    transition: all 0.3s ease;
    display: none;
}

.sidebar-toggle:hover {
    background: #45a049;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
}

/* Show toggle on smaller screens */
@media (max-width: 768px) {
    body {
        margin-left: 0;
    }

    /* On smaller screens the sidebar should take most of the viewport and slide from -85vw */
    .sidebar {
        left: -85vw;
        width: 85vw;
    }

    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Top-bar mobile rules removed (top-bar markup deleted) */

    /* Offer Banner Mobile */
    .offer-banner {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
        margin: 1.5rem 1rem;
        border-radius: 10px;
    }

    .offer-title {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }

    .offer-subtitle {
        font-size: 1.1rem;
    }

    .offer-description {
        font-size: 0.95rem;
    }

    .offer-cta {
        width: 100%;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }

    .offer-decoration {
        display: none;
    }
}

/* Improve touch targets for small screens */
@media (max-width: 640px) {
    .hamburger-menu {
        width: 44px;
        height: 36px;
    }

    .hamburger-menu span {
        height: 4px;
    }

    .sidebar {
        width: 100vw;
        left: -100vw;
        z-index: 2000;
    }

    .sidebar.active {
        left: 0;
    }
    
    /* Premium Mobile Bottom Navigation */
    body {
        padding-bottom: 70px !important; /* Space for bottom nav */
    }
    
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 65px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
        z-index: 1500;
        justify-content: space-around;
        align-items: center;
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #7f8c8d;
        text-decoration: none;
        font-size: 0.7rem;
        font-weight: 600;
        gap: 4px;
        flex: 1;
        transition: color 0.3s ease, transform 0.2s;
    }
    
    .mobile-nav-item i {
        font-size: 1.3rem;
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    
    .mobile-nav-item:hover, .mobile-nav-item.active {
        color: #2ecc40;
    }
    
    .mobile-nav-item:hover i, .mobile-nav-item.active i {
        transform: scale(1.15) translateY(-2px);
    }
    
    /* Cart Badge for Bottom Nav */
    .mobile-nav-cart-wrapper {
        position: relative;
    }
    
    .mobile-nav-badge {
        position: absolute;
        top: -5px;
        right: -8px;
        background: linear-gradient(135deg, #ff4757, #ff6b81);
        color: white;
        font-size: 0.6rem;
        font-weight: bold;
        min-width: 16px;
        height: 16px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
        box-shadow: 0 2px 5px rgba(255, 71, 87, 0.4);
    }
    
    body.dark-mode .mobile-bottom-nav {
        background: rgba(20, 27, 34, 0.95);
        border-top-color: rgba(255, 255, 255, 0.05);
    }
    
    body.dark-mode .mobile-nav-item {
        color: #a0aec0;
    }
    
    body.dark-mode .mobile-nav-item:hover, body.dark-mode .mobile-nav-item.active {
        color: #2ecc40;
    }
}

/* Hide mobile bottom nav on larger screens */
@media (min-width: 641px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}

/* Overlay when sidebar is open */
.sidebar.active::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* --- Modal Styles --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.3s ease-in;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content {
    background-color: #fff;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, var(--primary-color), #66BB6A);
    color: white;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.modal-close:hover {
    transform: rotate(90deg);
}

.modal-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #eee;
    background-color: #fafafa;
    justify-content: flex-end;
}

/* Cart Items */
.cart-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 15px;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
    margin-bottom: 10px;
    border-radius: 6px;
}

.cart-item-info h4 {
    margin: 0 0 5px 0;
    color: var(--dark-grey);
    font-size: 1rem;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 10px;
}

.qty-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-color);
    padding: 5px 8px;
    transition: all 0.2s;
}

.qty-btn:hover {
    transform: scale(1.2);
}

.remove-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.remove-btn:hover {
    background: #ee5a52;
}

/* Order Items */
.order-item {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    background: #f9f9f9;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.order-header h4 {
    margin: 0;
    color: var(--primary-color);
}

.order-date {
    font-size: 0.9rem;
    color: #666;
}

.order-details p {
    margin: 5px 0;
    color: var(--dark-grey);
}

.order-total {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Cart Summary */
.cart-summary {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 1rem;
}

.summary-row.total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    border-top: 2px solid #ddd;
    padding-top: 12px;
    margin-top: 12px;
}

/* Empty states */
.empty-cart,
.no-orders {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 1.1rem;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #66BB6A);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: #f0f0f0;
    color: var(--dark-grey);
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* Modal Buttons Container */
.modal-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
}

.modal-buttons .btn {
    flex: 1;
}

/* Mobile responsive modals */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .modal-header {
        padding: 15px;
    }

    .modal-body {
        padding: 15px;
    }

    .modal-footer {
        padding: 15px;
        flex-direction: column;
        gap: 8px;
    }

    .cart-item {
        grid-template-columns: 1fr auto;
        gap: 10px;
    }

    .remove-btn {
        grid-column: 1 / -1;
    }

    .modal-buttons {
        flex-direction: column;
    }

    /* Orders Section Mobile */
    .orders-section {
        padding: 2rem 1rem;
    }

    .orders-section h2 {
        font-size: 2rem;
    }

    .orders-tabs {
        gap: 0.5rem;
    }

    .orders-tab-btn {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }

    .order-card {
        padding: 1rem;
    }

    .order-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .order-meta {
        grid-template-columns: 1fr;
    }

    .order-footer {
        flex-direction: column;
        justify-content: stretch;
    }

    .order-btn {
        width: 100%;
    }

    /* Reviews Section Mobile */
    .reviews-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .reviews-section {
        padding: 2rem 1rem;
    }

    .reviews-section h2 {
        font-size: 2rem;
    }

    .review-form-container,
    .reviews-display {
        padding: 1.5rem;
    }

    .star-rating label {
        font-size: 1.5rem;
    }

    .reviews-display {
        max-height: 500px;
    }

    /* --- Mobile Responsiveness (480px and below) --- */

    /* Header Mobile */
    header .container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .logo-container {
        flex: 1;
    }

    .header-icons {
        gap: 1rem;
    }

    .search-btn,
    .cart-link {
        font-size: 1.3rem;
    }

    /* Search Modal Mobile */
    .search-modal {
        padding-top: 50px;
        align-items: flex-start;
    }

    .search-modal-content {
        width: 95%;
        max-width: 100%;
        padding: 1.5rem 1rem;
        margin: 0 auto;
        max-height: 80vh;
        border-radius: 12px;
    }

    .search-input {
        padding: 0.6rem 0.8rem;
        font-size: 1rem;
    }

    .search-result-item {
        padding: 0.8rem;
        gap: 0.8rem;
        flex-wrap: wrap;
    }

    .search-result-img {
        width: 50px;
        height: 50px;
    }

    .search-result-name {
        font-size: 1rem;
    }

    .search-result-price,
    .search-result-category {
        font-size: 0.85rem;
    }

    /* Featured Products Modal Mobile */
    .featured-modal-content {
        max-width: 100%;
        width: 95%;
        max-height: 85vh;
    }

    .featured-tabs {
        gap: 0.5rem;
    }

    .featured-tab-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .featured-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    /* Cart Modal Mobile */
    .modal-content {
        width: 95%;
        max-width: 100%;
        margin: 20px auto;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .cart-items-list {
        max-height: 50vh;
    }

    .cart-item {
        padding: 0.8rem;
        gap: 0.8rem;
    }

    .product-image {
        width: 50px;
        height: 50px;
    }

    .product-details {
        min-width: 0;
    }

    .product-name {
        font-size: 0.9rem;
        white-space: normal;
        word-break: break-word;
    }

    .product-price {
        font-size: 0.85rem;
    }

    .qty-controls {
        gap: 0.4rem;
    }

    .qty-btn {
        padding: 4px 6px;
        font-size: 1rem;
    }

    .remove-btn {
        padding: 4px 8px;
        font-size: 0.75rem;
    }

    /* Cart Summary Mobile */
    .cart-summary {
        padding: 1rem;
    }

    .summary-row {
        font-size: 0.9rem;
        padding: 6px 0;
    }

    .summary-row.total {
        font-size: 1.1rem;
    }

    .modal-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }

    .btn {
        padding: 0.8rem;
        font-size: 0.95rem;
        width: 100%;
    }

    /* Orders Modal Mobile */
    .orders-tabs-modal {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .orders-tab-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .order-card {
        padding: 1rem;
        border-left-width: 4px;
    }

    .order-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .order-id {
        font-size: 1rem;
    }

    .order-status {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    .order-meta {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .order-meta-item {
        font-size: 0.85rem;
    }

    .order-item {
        padding: 0.8rem;
    .order-footer {
        flex-direction: column;
        gap: 0.5rem;
    }

    .order-btn {
        width: 100%;
        padding: 0.6rem;
        font-size: 0.85rem;
    }

    /* Product Cards Mobile â€” Premium */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.9rem;
    }
    .pc-name {
        font-size: 0.88rem;
    }
    .pc-price {
        font-size: 1.05rem;
    }
    .pc-cart-btn, .add-to-cart-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    /* Always show action buttons on touch devices */
    .pc-actions {
        right: 8px;
    }
    .pc-rating-num {
        display: none;
    }
    .pc-mrp, .pc-discount {
        font-size: 0.72rem;
    }

    /* Category Grid Mobile */
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.8rem;
    }

    .category-card {
        padding: 0.8rem;
        border-radius: 8px;
    }

    .category-card img {
        max-height: 80px;
    }

    .category-card h3 {
        font-size: 0.85rem;
        margin: 0.5rem 0;
    }

    /* Sidebar Mobile */
    .sidebar {
        width: 85vw;
        max-width: 280px;
    }

    .sidebar-header h3 {
        font-size: 1.3rem;
    }

    .sidebar-nav ul li a {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .sidebar-footer {
        padding: 1rem;
    }

    .sidebar-email,
    .sidebar-subscribe {
        font-size: 0.85rem;
        padding: 0.6rem;
    }

    /* Hero Section Mobile */
    .hero {
        padding: 2rem 1rem;
        text-align: center;
    }

    .hero h2 {
        font-size: 1.8rem;
        margin: 1rem 0;
    }

    .hero p {
        font-size: 0.95rem;
        margin: 0.8rem 0;
    }

    .hero .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Offer Banner Mobile */
    .offer-banner {
        padding: 1.5rem;
        min-height: auto;
        flex-direction: column;
    }

    .offer-content {
        text-align: center;
        padding: 1.5rem 0;
    }

    .offer-badge {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    .offer-title {
        font-size: 2rem;
        margin: 0.5rem 0;
    }

    .offer-subtitle {
        font-size: 1rem;
        margin: 0.3rem 0;
    }

    .offer-description {
        font-size: 0.85rem;
        margin: 0.5rem 0;
    }

    .offer-cta {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    .offer-decoration {
        display: none;
    }

    /* Top Bar Mobile */
    /* Top-bar mobile rules removed (top-bar markup deleted) */

    /* Section Container Mobile */
    .container {
        width: 95%;
        padding: 0 0.5rem;
    }

    h2 {
        font-size: 1.5rem;
        margin-top: 1.5rem;
        margin-bottom: 1rem;
    }

    /* Review Section Mobile */
    .reviews-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .review-form-container,
    .reviews-display {
        padding: 1rem;
    }

    .review-form-container h3 {
        font-size: 1.1rem;
    }

    .form-group {
        margin-bottom: 0.8rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.9rem;
        padding: 0.6rem;
    }

    .star-rating {
        flex-wrap: wrap;
    }

    .star-rating label {
        font-size: 1.3rem;
    }

    .submit-review-btn {
        width: 100%;
        padding: 0.8rem;
        font-size: 0.95rem;
    }

    .review-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .reviewer-name {
        font-size: 0.95rem;
    }

    .review-date {
        font-size: 0.75rem;
    }

    .review-rating {
        font-size: 0.8rem;
    }

    .review-text {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    /* Footer Mobile */
    footer {
        padding: 1.5rem 1rem;
        font-size: 0.85rem;
    }

    /* General Mobile Adjustments */
    body {
        font-size: 14px;
    }

    button {
        min-height: 44px;
    }

    input,
    textarea {
        min-height: 44px;
    }

    /* Animations - Subtle on Mobile */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation: none !important;
            transition: none !important;
        }
    }
}

/* === PREMIUM VIDEO SECTION === */
.premium-video-section {
    background: #e8f5e9;
    padding: 4rem 0;
    margin: 2rem 0;
}

.premium-video-section .section-title {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 3rem;
}

.video-showcase {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.video-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(76, 175, 80, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #c8e6c9;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(76, 175, 80, 0.25);
}

.featured-video {
    grid-row: 1 / 3;
}

.video-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.video-card h3 {
    font-size: 1.5rem;
    padding: 1rem 1.5rem 0.5rem;
    margin: 0;
    color: #2e7d32;
}

.video-card p {
    padding: 0 1.5rem 1.5rem;
    color: #558b2f;
    margin: 0;
}

/* === GIF SHOWCASE SECTION === */
.gif-showcase-section {
    padding: 4rem 0;
    background: #e8f5e9;
    margin: 2rem 0;
}

.gif-showcase-section .section-title {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #7cb342 0%, #9ccc65 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 3rem;
}

.gif-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.gif-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: 0 15px 50px rgba(76, 175, 80, 0.15);
    transition: transform 0.3s ease;
    border: 2px solid #c8e6c9;
}

.gif-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(76, 175, 80, 0.25);
}

.gif-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gif-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gif-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(46, 125, 50, 0.9), transparent);
    padding: 2rem 1.5rem 1.5rem;
    color: white;
    transform: translateY(30px);
    transition: transform 0.3s ease;
}

.gif-card:hover .gif-overlay {
    transform: translateY(0);
}

.gif-overlay h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.gif-overlay p {
    margin: 0;
    font-size: 0.9rem;
}

/* === PREMIUM ADS SECTION === */
.premium-ads-section {
    padding: 4rem 0;
    background: #e8f5e9;
    margin: 2rem 0;
}

.ad-banner-primary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: white;
    border-radius: 25px;
    padding: 3rem;
    margin-bottom: 3rem;
    align-items: center;
    box-shadow: 0 20px 70px rgba(76, 175, 80, 0.2);
    border: 3px solid #c8e6c9;
}

.ad-content {
    color: var(--dark-grey);
}

.ad-badge {
    display: inline-block;
    background: linear-gradient(135deg, #7cb342 0%, #9ccc65 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.ad-content h2 {
    font-size: 2.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    text-align: left;
    color: #2e7d32;
}

.ad-content p {
    font-size: 1.1rem;
    color: #558b2f;
    margin-bottom: 1.5rem;
}

.ad-cta-btn {
    background: linear-gradient(135deg, #7cb342 0%, #9ccc65 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(124, 179, 66, 0.4);
}

.ad-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(124, 179, 66, 0.6);
}

.ad-visual {
    width: 100%;
}

.ad-banners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.mini-ad-banner {
    padding: 2rem;
    border-radius: 15px;
    color: white;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.2);
}

.mini-ad-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(76, 175, 80, 0.3);
}

.mini-ad-banner h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
}

.mini-ad-banner p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.95;
}

.gradient-1 {
    background: linear-gradient(135deg, #1b5e20 0%, #81c784 100%);
}

.gradient-2 {
    background: linear-gradient(135deg, #2e7d32 0%, #a5d6a7 100%);
}

.gradient-3 {
    background: linear-gradient(135deg, #1b5e20 0%, #c8e6c9 100%);
}

/* Responsive Video Section */
@media (max-width: 1024px) {
    .video-showcase {
        grid-template-columns: 1fr 1fr;
    }

    .featured-video {
        grid-column: 1 / -1;
        grid-row: auto;
    }
}

@media (max-width: 768px) {

    .premium-video-section .section-title,
    .gif-showcase-section .section-title {
        font-size: 1.8rem;
    }

    .ad-banner-primary {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .ad-content h2 {
        font-size: 1.8rem;
    }

    .gif-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
}

/* --- Footer Bottom --- */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: 2rem;
    font-size: 0.95rem;
    color: var(--dark-grey);
}

.footer-bottom-links {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.footer-bottom-links li a {
    color: var(--dark-grey);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.18s ease, text-decoration 0.18s ease;
}

.footer-bottom-links li a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom .copyright {
    margin: 0;
    opacity: 0.9;
}

@media (max-width: 640px) {
    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* --- Newsletter Band (top of footer) --- */
.emoji,
[role="img"],
.cat-icon svg {
    color: initial !important;
    filter: none !important;
}

.newsletter-band {
    background: linear-gradient(90deg, #138033 0%, #15843a 50%, #1b8a3f 100%);
    color: #fff;
    padding: 2rem 0.8rem;
}

.newsletter-inner {
    display: flex;
    gap: 1rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.newsletter-inner .newsletter-copy {
    flex: 1 1 45%;
}

.newsletter-inner .newsletter-copy h3 {
    margin: 0 0 0.35rem 0;
    font-size: 1.9rem;
    font-weight: 800;
    color: #fff;
}

.newsletter-inner .newsletter-copy p {
    margin: 0;
    opacity: 0.95;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex: 1 1 55%;
}

.newsletter-input {
    flex: 1;
    padding: 0.9rem 1.25rem;
    border-radius: 999px;
    border: none;
    background: #ffffff;
    color: #0b3f23;
    font-size: 1rem;
    box-shadow: 0 8px 20px rgba(11, 63, 35, 0.12);
}

.newsletter-input::placeholder {
    color: #2b6b44;
}

.newsletter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #ffffff;
    color: #0b5a2b;
    border-radius: 18px;
    padding: 0.7rem 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(11, 63, 35, 0.12);
}

.newsletter-btn .btn-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(11, 63, 35, 0.06);
}

@media (max-width: 820px) {
    .newsletter-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .newsletter-form {
        width: 100%;
    }
}

/* --- Dark Footer --- */
.site-footer {
    background: #072415;
    /* deep green-black */
    color: rgba(255, 255, 255, 0.9);
    padding: 3rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    align-items: start;
}

.footer-col h4 {
    color: #ffffff;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 800;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin: 0.65rem 0;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    opacity: 0.95;
}

.footer-col ul li a:hover {
    text-decoration: underline;
    opacity: 1;
}

.footer-col.connect {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.connect-icons {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.connect-icons .icon-link {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    text-decoration: none;
}

.connect .contact-line {
    color: rgba(255, 255, 255, 0.88);
    margin: 0.35rem 0;
}

.container.footer-bottom {
    padding-top: 1.25rem;
}

@media (max-width: 980px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .site-footer {
        padding: 2rem 0 1.2rem;
    }
}

/* =====================================================
   COMPREHENSIVE MOBILE RESPONSIVENESS OVERRIDES
   Added for full mobile compatibility
   ===================================================== */

/* --- Amazon Header: Full Mobile Overhaul --- */
@media (max-width: 768px) {
    .amazon-header-inner {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
        align-items: center;
    }

    .amazon-header-left {
        flex: 1;
        min-width: 0;
        gap: 0.5rem;
    }

    .amazon-header-right {
        gap: 0.8rem;
    }

    .amazon-header .header-account,
    .amazon-header .header-orders {
        display: none;
        /* hide on mobile to save space */
    }

    .amazon-header .header-search-form {
        flex: 0 0 100%;
        order: 3;
        margin: 0;
        width: 100%;
    }

    .amazon-header .logo-text {
        font-size: 1.2rem;
    }

    .amazon-header .logo-img {
        width: 32px;
        height: 32px;
    }

    .amazon-main-nav ul {
        gap: 0.3rem;
        padding: 0.4rem 0.5rem;
        font-size: 0.85rem;
    }

    .amazon-main-nav ul li a {
        font-size: 0.82rem;
        padding: 0.25rem 0.5rem;
    }
}

/* --- Hero Section: Scale down for mobile --- */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 0 2.5rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.4rem !important;
        line-height: 1.05;
    }

    .hero-title .accent {
        font-size: 2.4rem !important;
    }

    .hero-sub {
        font-size: 1rem;
        margin: 0.8rem auto 1.2rem;
    }

    .hero-cta {
        padding: 0.8rem 1.8rem;
        font-size: 0.95rem;
    }

    .hero .container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.9rem !important;
    }

    .hero-title .accent {
        font-size: 1.9rem !important;
    }

    .hero-sub {
        font-size: 0.9rem;
    }
}

/* --- Product Grid: 2 columns on mobile --- */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .product-card img,
    .crt-wrapper {
        height: 140px !important;
    }

    .product-card h3 {
        font-size: 0.85rem;
        padding: 0 0.7rem;
        margin-top: 0.7rem;
    }

    .product-card .price {
        font-size: 0.9rem;
        padding: 0 0.7rem;
    }

    .add-to-cart-btn {
        width: calc(100% - 1.4rem);
        margin: 0.6rem 0.7rem;
        padding: 0.5rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 380px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

/* --- Category Grid: 3-4 per row on mobile --- */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .category-card img {
        width: 70px;
        height: 70px;
    }

    .category-card h3 {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }

    .category-card {
        padding: 0.5rem 0.3rem;
    }

    .category-card img {
        width: 55px;
        height: 55px;
    }

    .category-card h3 {
        font-size: 0.7rem;
        margin-top: 0.4rem;
    }
}

/* --- Video Showcase: single column on phones --- */
@media (max-width: 640px) {
    .video-showcase {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .featured-video {
        grid-column: auto;
        grid-row: auto;
    }

    .premium-video-section {
        padding: 2rem 0;
    }

    .premium-video-section .section-title,
    .gif-showcase-section .section-title {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    .video-card h3 {
        font-size: 1.1rem;
        padding: 0.7rem 1rem 0.3rem;
    }

    .video-card p {
        font-size: 0.85rem;
        padding: 0 1rem 1rem;
    }
}

/* --- GIF Showcase: smaller min-width for phones --- */
@media (max-width: 640px) {
    .gif-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gif-showcase-section {
        padding: 2rem 0;
    }

    .gif-card {
        aspect-ratio: 16/9;
    }
}

/* --- Ad Banner: compact layout on phones --- */
@media (max-width: 640px) {
    .ad-banner-primary {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.5rem;
        border-radius: 15px;
    }

    .ad-content h2 {
        font-size: 1.5rem;
        text-align: center;
    }

    .ad-content p {
        font-size: 0.9rem;
        text-align: center;
    }

    .ad-badge {
        display: block;
        text-align: center;
        margin: 0 auto 0.75rem;
    }

    .ad-cta-btn {
        display: block;
        width: 100%;
        text-align: center;
    }

    .ad-banners-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .mini-ad-banner {
        padding: 1.2rem;
    }

    .mini-ad-banner h3 {
        font-size: 1.1rem;
    }

    .premium-ads-section {
        padding: 2rem 0;
    }
}

/* --- Offer Banner improvement --- */
@media (max-width: 640px) {
    .offer-banner {
        margin: 1rem 0.75rem;
        padding: 1.5rem 1rem;
    }

    .offer-title {
        font-size: 2.2rem;
    }
}

/* --- Section titles ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â consistent mobile sizes --- */
@media (max-width: 640px) {
    .section-title {
        font-size: 1.4rem !important;
        margin-bottom: 1.2rem;
    }

    h2.section-title {
        margin-top: 1.5rem !important;
    }
}

/* --- Featured Products Modal --- */
@media (max-width: 640px) {
    .featured-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .featured-modal-body {
        padding: 1rem 0.75rem;
    }

    .featured-tab-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.78rem;
        border-radius: 20px;
    }
}

/* --- Reviews section: proper single column on all phones --- */
@media (max-width: 640px) {
    .reviews-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .reviews-section {
        padding: 2rem 0.75rem;
    }
}

/* --- Social Links: wrap better on phone --- */
@media (max-width: 640px) {
    .social-links {
        gap: 0.75rem;
        flex-direction: column;
        align-items: center;
    }

    .social-link {
        width: 80%;
        justify-content: center;
    }
}

/* --- Container: full width with small padding on phones --- */
@media (max-width: 480px) {
    .container {
        width: 100%;
        padding: 0 0.75rem;
        box-sizing: border-box;
        overflow: visible;
    }
}

/* --- Top categories row: horizontal scrolling stays clean --- */
@media (max-width: 480px) {
    .categories-circle-row {
        gap: 0.35rem;
        padding: 0.5rem 0.4rem;
        justify-content: flex-start;
    }

    .category-circle {
        width: 55px;
        min-width: 55px;
    }

    .category-circle img {
        width: 38px;
        height: 38px;
    }

    .category-circle span {
        font-size: 0.65rem;
    }
}

/* --- Prevent horizontal overflow on body --- */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* --- Buttons: Minimum tap-target height --- */
@media (max-width: 768px) {

    .add-to-cart-btn,
    .offer-cta,
    .ad-cta-btn,
    .btn-submit,
    .orders-tab-btn,
    .featured-tab-btn {
        min-height: 40px;
    }

    /* Ensure input/textarea are comfortably tappable */
    input:not([type="radio"]):not([type="checkbox"]),
    textarea,
    select {
        font-size: 16px !important;
        /* prevents iOS zoom on focus */
    }
}

/* --- Footer: responsive social icons --- */
@media (max-width: 480px) {
    footer {
        padding: 1.5rem 1rem;
    }

    .footer-logo-section {
        gap: 0.5rem;
    }

    .footer-brand {
        font-size: 1.4rem;
    }

    footer p {
        font-size: 0.85rem;
    }
}

/* --- Modal: full-screen on very small phones --- */
@media (max-width: 400px) {
    .modal-content {
        width: 100%;
        border-radius: 0;
        margin: 0;
        max-height: 100vh;
    }

    .featured-modal-content {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
}

/* --- Gif overlay always visible on touch (no hover) --- */
@media (hover: none) {
    .gif-overlay {
        transform: translateY(0);
    }
}

/* === END MOBILE RESPONSIVE ADDITIONS === */

/* === CART PAGE STYLES (modern-cart) === */
.cart-main {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.cart-title {
    font-size: 2rem;
    color: var(--dark-grey);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cart-page-content.modern-cart {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(46, 204, 64, 0.10);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.cart-items-list.modern-cart-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 60px;
    max-height: 40vh;
    overflow-y: auto;
    margin-bottom: 0.8rem;
    padding-right: 4px;
}

.cart-summary.modern-cart-summary {
    background: var(--light-green);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
}

.summary-row.mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 0;
    font-size: 0.85rem;
    color: #666;
}

.modal-buttons.modern-cart-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.related-products-section.modern-related-section {
    margin-top: 2rem;
}

.related-products-list.modern-related-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1rem;
}

.empty-cart-notice {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #bbb;
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
}

/* Mobile cart page */
@media (max-width: 640px) {
    .cart-main {
        padding: 0 0.5rem;
        margin: 1rem auto;
    }

    .cart-title {
        font-size: 1.4rem;
    }

    .cart-page-content.modern-cart {
        padding: 1rem 0.75rem;
        border-radius: 10px;
    }

    .modal-buttons.modern-cart-buttons {
        flex-direction: column;
    }

    .related-products-list.modern-related-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* === END CART PAGE STYLES === */

/* ================================================
   NEW FEATURES ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â activity.js / mobile-nav.js
   ================================================ */

/* ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚ÂÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚ÂÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ Scroll Reveal ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚ÂÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚ÂÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ */
.scroll-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: none;
}

/* ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚ÂÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚ÂÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ Hero Carousel nav ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚ÂÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚ÂÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ */
.hero-carousel-nav {
    position: absolute;
    bottom: 1.4rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    z-index: 10;
}

.hero-dots {
    display: flex;
    gap: 0.5rem;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    padding: 0;
}

.hero-dot.active {
    background: #fff;
    transform: scale(1.3);
}

.hero-arrow {
    background: rgba(255, 255, 255, 0.18);
    border: none;
    color: #fff;
    font-size: 1.8rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.32);
}

/* ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚ÂÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚ÂÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ Flash Deal Countdown ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚ÂÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚ÂÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ */
#flash-deals {
    padding: 2.5rem 0;
}

.flash-deals-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.flash-deals-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #222;
    margin: 0;
}

#countdownTimer {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: #222;
    padding: 0.5rem 1rem;
    border-radius: 10px;
}

.cd-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cd-num {
    color: #2ecc40;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1;
}

.cd-label {
    color: #aaa;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.cd-sep {
    color: #2ecc40;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

/* ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚ÂÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚ÂÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ "Just Sold" Toast ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚ÂÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚ÂÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ */
#justSoldToast {
    position: fixed;
    bottom: 90px;
    left: 1rem;
    background: #fff;
    border-left: 4px solid #2ecc40;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 0.8rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    z-index: 8888;
    max-width: 280px;
    transform: translateX(-120%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: 'Poppins', sans-serif;
}

#justSoldToast.show {
    transform: translateX(0);
}

.jsold-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.jsold-text {
    font-size: 0.78rem;
    line-height: 1.4;
    color: #333;
}

.jsold-text strong {
    color: #2ecc40;
}

.jsold-text em {
    font-style: normal;
    font-weight: 600;
}

/* ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚ÂÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚ÂÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ Deal badge pulse ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚ÂÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚ÂÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ */
.deal-badge {
    display: inline-block;
    background: linear-gradient(90deg, #e74c3c, #ff6b6b);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4);
    }

    50% {
        transform: scale(1.06);
        box-shadow: 0 0 0 6px rgba(231, 76, 60, 0);
    }
}

/* ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚ÂÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚ÂÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ Flash Deals product row ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚ÂÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚ÂÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ */
.flash-deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.flash-deal-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.22s, box-shadow 0.22s;
    position: relative;
}

.flash-deal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.flash-deal-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
}

.flash-deal-body {
    padding: 0.7rem;
}

.flash-deal-name {
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flash-deal-price {
    font-size: 0.9rem;
    font-weight: 800;
    color: #2ecc40;
    margin-top: 0.2rem;
}

.flash-deal-discount {
    font-size: 0.72rem;
    color: #e74c3c;
    font-weight: 700;
}

/* ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚ÂÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚ÂÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ Recently Viewed section ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚ÂÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚ÂÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ */
.recently-section {
    padding: 2rem 0;
}

.recently-viewed-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.recently-viewed-scroll::-webkit-scrollbar {
    height: 4px;
}

.recently-viewed-scroll::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

.rec-card {
    flex: 0 0 140px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    scroll-snap-align: start;
    transition: transform 0.2s;
}

.rec-card:hover {
    transform: translateY(-4px);
}

.rec-img-wrap {
    height: 110px;
    overflow: hidden;
    background: #f5f5f5;
}

.rec-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rec-body {
    padding: 0.55rem 0.65rem;
}

.rec-name {
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rec-price {
    font-size: 0.78rem;
    color: #2ecc40;
    font-weight: 700;
    margin-top: 0.1rem;
}

/* ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚ÂÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚ÂÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ Bottom Mobile Nav ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚ÂÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚ÂÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ */
#mobileBottomNav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 9990;
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

@media (max-width: 768px) {
    #mobileBottomNav {
        display: flex;
    }

    body {
        padding-bottom: 70px;
    }
}

.mb-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.22rem;
    text-decoration: none;
    color: #888;
    font-size: 0.65rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    padding: 0.6rem 0;
    position: relative;
    transition: color 0.18s;
}

.mb-nav-item i {
    font-size: 1.25rem;
    transition: transform 0.18s;
}

.mb-nav-item.active {
    color: #2ecc40;
}

.mb-nav-item.active i {
    transform: scale(1.15);
}

.mb-badge {
    position: absolute;
    top: 0.3rem;
    right: 18%;
    background: #e74c3c;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

/* ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚ÂÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚ÂÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ PWA Install Banner ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚ÂÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚ÂÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ */
#pwaInstallBanner {
    position: fixed;
    bottom: 75px;
    left: 0.8rem;
    right: 0.8rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
    z-index: 9980;
    transform: translateY(120%);
    transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
    border-left: 4px solid #2ecc40;
}

#pwaInstallBanner.show {
    transform: translateY(0);
}

.pwa-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.pwa-text {
    flex: 1;
}

.pwa-text strong {
    display: block;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #222;
}

.pwa-text span {
    font-size: 0.75rem;
    color: #888;
    font-family: 'Poppins', sans-serif;
}

.pwa-install-btn {
    background: #2ecc40;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    flex-shrink: 0;
}

.pwa-dismiss-btn {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.2rem;
    flex-shrink: 0;
}
 
}

.recently-viewed-scroll::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

.rec-card {
    flex: 0 0 140px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    scroll-snap-align: start;
    transition: transform 0.2s;
}

.rec-card:hover {
    transform: translateY(-4px);
}

.rec-img-wrap {
    height: 110px;
    overflow: hidden;
    background: #f5f5f5;
}

.rec-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rec-body {
    padding: 0.55rem 0.65rem;
}

.rec-name {
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rec-price {
    font-size: 0.78rem;
    color: #2ecc40;
    font-weight: 700;
    margin-top: 0.1rem;
}

/* â”€â”€â”€ Bottom Mobile Nav â”€â”€â”€ */
#mobileBottomNav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 9990;
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

@media (max-width: 768px) {
    #mobileBottomNav {
        display: flex;
    }

    body {
        padding-bottom: 70px;
    }
}

.mb-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.22rem;
    text-decoration: none;
    color: #888;
    font-size: 0.65rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    padding: 0.6rem 0;
    position: relative;
    transition: color 0.18s;
}

.mb-nav-item i {
    font-size: 1.25rem;
    transition: transform 0.18s;
}

.mb-nav-item.active {
    color: #2ecc40;
}

.mb-nav-item.active i {
    transform: scale(1.15);
}

.mb-badge {
    position: absolute;
    top: 0.3rem;
    right: 18%;
    background: #e74c3c;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

/* â”€â”€â”€ PWA Install Banner â”€â”€â”€ */
#pwaInstallBanner {
    position: fixed;
    bottom: 75px;
    left: 0.8rem;
    right: 0.8rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
    z-index: 9980;
    transform: translateY(120%);
    transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
    border-left: 4px solid #2ecc40;
}

#pwaInstallBanner.show {
    transform: translateY(0);
}

.pwa-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.pwa-text {
    flex: 1;
}

.pwa-text strong {
    display: block;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #222;
}

.pwa-text span {
    font-size: 0.75rem;
    color: #888;
    font-family: 'Poppins', sans-serif;
}

.pwa-install-btn {
    background: #2ecc40;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    flex-shrink: 0;
}

.pwa-dismiss-btn {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.2rem;
    flex-shrink: 0;
}
 

/* Sidebar Overrides removed to support dynamic theming */


/* --- Darker Premium Hero Banner Overrides --- */
.hero { background: linear-gradient(135deg, #1B5E20 0%, #024b13 100%) !important; color: #ffffff !important; }
.hero-pretitle { background: rgba(255, 255, 255, 0.15) !important; color: #e8fffe !important; border-color: rgba(255, 255, 255, 0.2) !important; }
    --header-grad-1: #003366;
    --header-grad-2: #0056b3;
}
body.theme-purple {
    --primary-color: #9c27b0;
    --primary-color-rgb: 156, 39, 176;
    --accent-color: #7b1fa2;
    --highlight-color: #e1bee7;
    --light-green: #f8eafc;
    --header-grad-1: #4a148c;
    --header-grad-2: #8e24aa;
}
body.theme-dark {
    --primary-color: #1e293b;
    --primary-color-rgb: 30, 41, 59;
    --accent-color: #334155;
    --highlight-color: #38bdf8;
    --light-green: #0f172a;
    --dark-grey: #ffffff;
    --light-grey: #020617;
    --header-grad-1: #020617;
    --header-grad-2: #1e293b;
}



