:root {
    --primary-yellow: #e6be8a;
    /* Soft Cream */
    --brand-green: #2d5a27;
    /* Forest Green */
    --brand-green-dark: #1e3d1a;
    --bg-body: #fdfaf5;
    /* Off-white Parchment */
    --bg-white: #ffffff;
    --text-main: #2c3e50;
    --text-light: #7f8c8d;
    --border-color: #e5e0d8;
    --border-radius: 16px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 12px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --danger-color: #ef4444;

    /* Secondary Vars (Duplicates consolidated in usage if possible, kept for safety) */
    --primary: #2d5a27;
    --accent: #8b4513;
    --brand-yellow: #e6be8a;
    --bg-light: #fdfaf5;
    --text-dark: #2c3e50;
    --text-muted: #7f8c8d;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

@keyframes fadeOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.status-alert {
    padding: 16px 24px;
    margin-bottom: 30px;
    border-radius: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.5s ease;
}

.status-alert.hide {
    animation: fadeOutUp 0.5s forwards;
}

.status-alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.status-alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.status-alert-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fef3c7;
}

.status-alert-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}


/* =========================================
   Reset & Base Styles
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', sans-serif;
}

html.modal-open,
body.modal-open {
    overflow: hidden !important;
    height: 100% !important;
    touch-action: none !important;
    position: fixed !important;
    width: 100% !important;
}

/* Re-allow touch/scroll inside common modal containers */
.modal-open .product-modal,
.modal-open .side-panel,
.modal-open .cart-sidebar,
.modal-open #imagePreviewModal,
.modal-open .address-modal {
    touch-action: auto !important;
    overscroll-behavior: contain !important;
}

html {
    width: 100%;
    height: auto !important;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    padding-bottom: 0;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    width: 100%;
    height: auto !important;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: visible !important;
    position: relative;
}

main {
    width: 100%;
    max-width: 100%;
    height: auto !important;
    overflow: visible !important;
    padding: 0;
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
}

.hidden {
    opacity: 0;
    transform: scale(0);
}

/* =========================================
   Utility / Layout
   ========================================= */
.container {
    max-width: 95%;
    margin: 0 auto;
    padding: 0 12px;
}

/* =========================================
   Hero Section
   ========================================= */
.hero-section {
    margin-top: 0;
    width: 100%;
    position: relative;
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 450px;
    height: auto;
    z-index: 1;
}

.hero-section #sec-categories {
    margin-top: auto;
    margin-bottom: 0;
    position: relative;
    z-index: 10;
    background: transparent;
    padding-top: 0;
    padding-bottom: 0;
}

@media (min-width: 1025px) {
    .hero-section {
        padding-top: 100px;
    }
}

/* Removed static-banner-container and static-hero-img as they are replaced by bg image */

.hero-price {
    font-size: 14px;
    color: #fff;
    background: #0c831f;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.current_updates {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 280px;
    height: auto;
    z-index: 15;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.3s ease;
}

.current_updates:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.current_updates img,
.current_updates video {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
}

/* Category Box Inclusion in Hero */
.hero-section #sec-categories {
    margin-top: 0;
    position: relative;
    z-index: 10;
    background: transparent;
    padding-top: 0;
}

.hero-section #sec-categories .section-header {
    margin-bottom: 15px;
    padding: 0 12px;
}

.hero-section #sec-categories .section-header h2 {
    color: #fff;
    /* Ensure visibility on banner overlap, can be overridden by inline styles */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    /* Enhance contrast */
}

/* Ensure category grid scrolls well over banner */
.hero-section .category-grid {
    padding-top: 5px;
}

/* =========================================
   Top Category Scroller (Overlay)
   ========================================= */
.top-cat-scroller {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    padding: 4px 0;
    border-bottom: none;
    z-index: 20;
    display: flex;
    align-items: center;
}

.fixed-home {
    padding: 0 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    margin-right: 8px;
    flex-shrink: 0;
    position: relative;
    z-index: 22;
}

.cat-scroll-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 0 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.cat-scroll-track::-webkit-scrollbar {
    display: none;
}

.cat-scroll-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    min-width: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.cat-scroll-item:hover {
    color: #ffffff;
}

.cat-icon-box {
    width: 32px;
    height: 32px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.2s;
}

.cat-scroll-item.active .cat-icon-box {
    background: transparent;
    border-color: transparent;
    color: #ffffff;
}

.cat-icon-box img,
.cat-icon-box svg {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: all 0.2s;
}

.cat-scroll-item.active .cat-icon-box img,
.cat-scroll-item.active .cat-icon-box svg {
    filter: brightness(0) invert(1);
    stroke-width: 2.5px;
}

.cat-scroll-item.active {
    position: relative;
    font-weight: 800;
}

.cat-scroll-item.active::after {
    content: '';
    display: block;
    width: 32px;
    height: 3px;
    background: #ffffff;
    border-radius: 4px;
    margin-top: 4px;
    position: absolute;
    bottom: -6px;
}

.cat-scroll-item span {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    margin-top: -4px;
}

/* =========================================
   Main Content Sections
   ========================================= */
.section {
    width: 100%;
    padding: 0;
    margin-top: 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
    scroll-margin-top: 110px;
    /* Mobile Fix */
}

.section>* {
    position: relative;
    z-index: 2;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a1a;
    font-family: 'Outfit', sans-serif;
    margin: 0;
}

/* Desktop Spacing Adjustments */
@media (min-width: 1025px) {
    .section {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
        /* Generous down padding */
        margin: 0 !important;
        /* No gaps between sections */
        scroll-margin-top: 90px;
        /* Desktop Fix */
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 100% !important;
        padding-left: 10px !important;
        padding-right: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .section-header {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
    }

    .section-header h2 {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
        margin: 0 !important;
    }

    .section {
        padding: 0 !important;
        margin: 0 !important;
    }

    .see-all-btn {
        margin-top: 0 !important;
        padding: 10px 0 !important;
        font-size: 13px !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
    }

    /* Healthy Living & Why Choose Section Adjustments */
    #sec-healthy-living,
    #sec-healthy-living .container {
        padding: 10px 16px !important;
        margin-top: 0 !important;
    }

    .ad-carousel-section {
        box-shadow: none !important;
    }

    .footer {
        margin-top: 20px !important;
        padding-top: 30px !important;
    }

    .healthy-text-box h2 {
        font-size: 2.2rem !important;
        line-height: 1.1 !important;
    }

    .healthy-living-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .healthy-image-box img {
        border-radius: 20px !important;
        border-width: 6px !important;
    }
}

.section-header h2 {
    font-size: 24px !important;
    font-weight: 700;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.2px;
    position: relative;
    padding-left: 0;
    padding-top: 20px;
    padding-bottom: 20px;
}

.section-header h2::before {
    display: none;
}

/* Section Background Colors */
#sec-cereals {
    background-color: #f0fdf4 !important;
}

#sec-cereal-powder {
    background-color: #fefce8 !important;
}

#sec-cereal-seeds {
    background-color: #eff6ff !important;
}

#sec-fertilizers {
    background-color: #fafaf9 !important;
}

#sec-whole-spices {
    background-color: #fff1f2 !important;
}

#sec-spice-powder {
    background-color: #fff7ed !important;
}

#sec-oils {
    background-color: #fdf4ff !important;
}

#sec-apparels {
    background-color: #ecfeff !important;
}

#sec-bags {
    background-color: #fcf6f5 !important;
}

#sec-top-rated {
    background-color: #fff !important;
}

#sec-best-offers {
    background-color: #fdf2f2 !important;
    position: relative;
    padding-bottom: 60px !important;
    /* Extra padding for the teeth */
}

#sec-best-offers::after {
    content: "";
    position: absolute;
    bottom: -14px;
    left: 0;
    width: 100%;
    height: 14px;
    background-image:
        linear-gradient(135deg, #fdf2f2 25%, transparent 25%),
        linear-gradient(225deg, #fdf2f2 25%, transparent 25%),
        linear-gradient(45deg, #fdf2f2 25%, transparent 25%),
        linear-gradient(315deg, #fdf2f2 25%, transparent 25%);
    background-position:
        -7px 0, -7px 0,
        0 0, 0 0;
    background-repeat: repeat-x;
    background-size: 14px 28px;
    z-index: 100;
}

/* Ad Placeholder */
.ad-placeholder-box {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 24px;
    border: none !important;
    border-radius: 0 !important;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    position: relative;
    overflow: hidden;
    left: 0;
}

.ad-placeholder-text {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
    pointer-events: none;
    z-index: 1;
}

/* See All Button */
.see-all-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin-top: 10px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    color: #2c3e50 !important;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: none !important;
}

.see-all-btn:hover {
    background: transparent !important;
    box-shadow: none !important;
    opacity: 0.8;
}

.see-all-btn span {
    color: inherit !important;
    line-height: 1;
    display: flex;
    align-items: center;
}

/* =========================================
   Categories Grid
   ========================================= */
.category-grid {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 10px 10px 20px 10px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-wrap: nowrap;
    justify-content: center;
    /* Center on desktop */
    width: 100%;
    max-width: 100vw;
}

@media (max-width: 768px) {
    .category-grid {
        justify-content: flex-start;
        /* Scroll on mobile */
    }
}

@media (max-width: 768px) {
    .category-grid {
        padding-left: 16px;
        padding-right: 16px;
        gap: 12px;
    }
}

.category-grid::-webkit-scrollbar {
    display: none;
}

.category-item {
    min-width: 100px;
    width: 100px;
    height: 120px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius);
    padding: 0;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.category-item:hover {
    box-shadow: var(--shadow-md);
}

.category-img-box {
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2px;
}

.category-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.category-item:hover .category-img-box img {
    opacity: 0.8;
}

.category-item p {
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    font-size: 14px;
    font-weight: 700;
    color: white;
    text-align: center;
    margin: 0;
    padding: 6px 8px;
    background: transparent;
    line-height: 1.1;
    white-space: normal;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.category-label {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 18.5px;
    font-size: 9px;
    font-weight: 700;
    color: #475569;
    text-align: center;
    margin: 0;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    line-height: 1.1;
    white-space: normal;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px 8px 0 0;
}


/* =========================================
   Product Cards & Grid
   ========================================= */
.product-scroll,
.full-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 20px;
    padding-bottom: 30px;
}

@media (max-width: 768px) {
    .product-scroll {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        gap: 8px !important;
        margin: 0 !important;
        padding-bottom: 15px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        scrollbar-width: none;
    }

    .product-scroll::-webkit-scrollbar {
        display: none;
    }

    .product-scroll .product-card {
        flex: 0 0 160px !important;
        min-width: 160px !important;
    }

    .full-product-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr) !important;
        grid-auto-rows: min-content !important;
        align-items: start !important;
        gap: 8px !important;
        padding-bottom: 20px;
    }
}

/* Limit removed to show all products */
/* .product-scroll .product-card:nth-child(n+8) { display: none; } */



/* Product Actions */






/* =========================================
   Ad Carousel
   ========================================= */
.ad-carousel-section {
    margin: 0;
    overflow: hidden;
    position: relative;
    border-radius: 0;
    box-shadow: var(--shadow-md);
    width: 100%;
}

.ad-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.ad-slide {
    min-width: 100%;
    position: relative;
}

.ad-slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.ad-nav-btn {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-main);
    transition: all 0.2s;
}

.ad-nav-btn:hover {
    background: white;
}

.ad-nav-prev {
    left: 20px;
}

.ad-nav-next {
    right: 20px;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background: var(--bg-white);
    margin-top: 80px;
    padding-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    padding-bottom: 40px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-main);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
    color: var(--text-light);
    font-size: 15px;
    cursor: pointer;
}

.footer-col ul li:hover {
    color: var(--brand-green);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 24px 0;
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
}

/* Consolidated into header.php */

.menu-item.logout i {
    color: #e53e3e;
}

.menu-item.logout:hover {
    background: #fff5f5;
}

/* Location Modal */
.location-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.location-overlay.active {
    display: flex;
    opacity: 1;
}

.location-modal {
    background: white;
    width: 400px;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.close-modal {
    font-size: 24px;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
}

.city-search {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.city-search input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.city-search input:focus {
    border-color: var(--brand-green);
}

.city-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.city-item {
    padding: 12px 24px;
    font-size: 14px;
    color: var(--text-main);
    cursor: pointer;
    transition: background 0.1s;
}

.city-item:hover {
    background: #f4f6fb;
    color: var(--brand-green);
}

.location-box {
    cursor: pointer;
}

.location-box:hover .location-desc {
    color: var(--brand-green);
}

/* Cart Misc */
.cart-footer {
    padding: 20px;
    background: #fff;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

.bill-details {
    background: #f8f8f8;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.bill-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-light);
}

.bill-row.grand-total {
    font-weight: 700;
    color: var(--text-main);
    font-size: 16px;
    margin-top: 12px;
    margin-bottom: 0;
    border-top: 1px solid #ddd;
    padding-top: 8px;
}

.checkout-btn {
    width: 100%;
    background: var(--brand-green);
    color: white;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
}

.amazon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #FF9900;
    color: #fff;
    padding: 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease;
}

.amazon-btn:hover {
    background: #e68a00;
    color: #fff;
}

/* =========================================
   Universal Side Panel (Profile/Cart)
   ========================================= */
.sidebar-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 10000 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.sidebar-overlay.active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.side-panel {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: 400px !important;
    max-width: 90% !important;
    height: 100vh !important;
    background: #fff !important;
    z-index: 10001 !important;
    transform: translateX(100%) !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.1) !important;
}

.side-panel.active {
    transform: translateX(0) !important;
}

.panel-header {
    padding: 20px 24px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.panel-header h3 {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 !important;
}

.close-panel {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: #f1f5f9 !important;
    color: #64748b !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    cursor: pointer !important;
    border: none !important;
    transition: all 0.2s !important;
}

.close-panel:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    transform: rotate(90deg) !important;
}

.panel-body {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 24px !important;
}

.user-info-large {
    text-align: center !important;
    margin-bottom: 32px !important;
    padding: 20px !important;
    background: #f8fafc !important;
    border-radius: 20px !important;
}

.user-info-large img {
    width: 90px !important;
    height: 90px !important;
    border-radius: 50% !important;
    border: 4px solid #fff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    object-fit: cover !important;
    margin-bottom: 16px !important;
}

.user-info-large h4 {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 4px 0 !important;
}

.user-info-large p {
    font-size: 0.85rem !important;
    color: #64748b !important;
    margin: 0 !important;
}

.panel-menu {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.menu-item {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 14px 18px !important;
    border-radius: 12px !important;
    color: #475569 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    transition: all 0.2s !important;
}

.menu-item:hover {
    background: #f1f5f9 !important;
    color: #2d5a27 !important;
}

.menu-item svg {
    width: 20px !important;
    height: 20px !important;
    stroke-width: 2px !important;
    stroke: currentColor !important;
    fill: none !important;
}

.menu-item.logout {
    margin-top: 12px !important;
    color: #ef4444 !important;
    border: 1px solid #fee2e2 !important;
}

.menu-item.logout:hover {
    background: #fef2f2 !important;
    color: #dc2626 !important;
}

/* =========================================
   Product Modal Styles (Global)
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 2000;
    opacity: 1;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.hidden,
.product-modal.hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

.product-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 95%;
    max-width: 1000px;
    background: #ffffff;
    border-radius: 24px;
    z-index: 2001;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    opacity: 1;
    visibility: visible;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-overflow-scrolling: touch;
}

.product-modal.hidden {
    transform: translate(-50%, -45%) scale(0.95);
    opacity: 0;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.modal-body {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
}

.modal-col-left {
    flex: 1;
    min-width: 300px;
    position: relative;
    background: #fafafa;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
}

.modal-col-right {
    flex: 1.2;
    min-width: 300px;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

/* Carousel */
.carousel-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease-out;
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    margin: 0;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.5);
    /* Semitransparent white */
    border-radius: 50%;
    /* Circle default */
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.carousel-dot.active {
    background: var(--primary);
    /* Using var for safety or explicit if needed */
    background: #2d5a27;
    /* Fallback based on global var */
    /* Wait, original used brand-purple which might not be defined globally or only in mobile?
       Let's check the original code: var(--brand-purple).
       It was used in mobile only block. Is it defined in :root?
       Let's assume yes or use a safe color.
       style.css line 1-27 shows --brand-yellow, --brand-green. No purple.
       Wait, if --brand-purple is not defined, it won't work.
       Let's check if --brand-purple is defined somewhere.
       I didn't see it in :root.
       Maybe it's hardcoded somewhere or I missed it.
       If it was only working in mobile, maybe it was defined in mobile?
       I didn't see it defined in mobile.
       I'll substitute with var(--brand-green) or hardcoded purple for now to be safe, or just stick to what was there.
       Original code: background: var(--brand-purple);
       I'll use var(--brand-green) which I know exists as main brand color.
    */
    background: var(--brand-green);
    width: 20px;
    border-radius: 10px;
}


/* Modal Details */
.modal-product-header {
    margin-bottom: 20px;
}

.modal-badge-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.modal-veg-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    background: #fff;
    padding: 4px 8px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.modal-stock {
    font-size: 12px;
    font-weight: 700;
    color: #10b981;
    background: #ecfdf5;
    padding: 4px 8px;
    border-radius: 4px;
}

.modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.2;
    margin-bottom: 8px;
}

.modal-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #64748b;
    font-size: 14px;
}

.modal-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #f59e0b;
    font-weight: 600;
}

.modal-price-box {
    margin: 24px 0;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid #f1f5f9;
}

.modal-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.modal-price {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a2e;
}

.modal-mrp {
    font-size: 16px;
    color: #94a3b8;
    text-decoration: line-through;
}

.modal-discount {
    background: #fee2e2;
    color: #ef4444;
    font-weight: 700;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
}

.modal-desc-box {
    margin-bottom: 30px;
}

.modal-desc-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.modal-desc-text {
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
}



/* Standardized Modal Actions */
.modal-actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.modal-actions .add-btn {
    flex: 1;
    height: 52px;
    background: var(--brand-green, #2d5a27);
    color: white;
    border: none;
    border-radius: 14px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(45, 90, 39, 0.2);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-actions .add-btn:hover {
    background: #24491f;
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(45, 90, 39, 0.3);
}

.modal-actions .add-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
    }

    .modal-col-left {
        padding: 20px;
        border-radius: 16px 16px 0 0;
    }

    .modal-col-right {
        padding: 24px;
    }

    .modal-actions {
        position: sticky;
        /* Sticky bottom actions on mobile modal */
        bottom: 0;
        background: #fff;
        margin: 0 -24px -24px;
        padding: 16px 24px;
        border-top: 1px solid #f1f5f9;
        z-index: 5;
    }

    .carousel-slide img {
        max-height: 250px;
    }
}

/* Modal Scrollbar Hiding */
.product-modal {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.product-modal::-webkit-scrollbar {
    display: none;
}

/* App-Style Floating Back Button (Mobile only) */
.modal-floating-back {
    display: none;
}

@media (max-width: 768px) {
    .modal-floating-back {
        position: absolute;
        top: 15px;
        left: 15px;
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.4);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 20;
        border: none;
        backdrop-filter: blur(4px);
        font-size: 18px;
        transition: transform 0.2s;
    }
}

.modal-desktop-close {
    display: flex;
}

@media (max-width: 768px) {
    .modal-desktop-close {
        display: none !important;
    }
}

.modal-floating-back:active {
    transform: scale(0.95);
}

/* Media Queries & Responsive Styling */
@media (max-width: 1024px) {

    /* Product Grid: Max 5 tiles */
    .product-scroll,
    .full-product-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    /* .product-scroll .product-card:nth-child(n+6) {
        display: none !important;
    } */

    /* Header Mobile Styles moved to header.php */
    .hero-section {
        padding-top: 200px;
    }
}

/* Tablet Ad Carousel */
@media (max-width: 768px) {
    .ad-slide img {
        height: 140px;
    }

    .ad-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .ad-nav-prev {
        left: 10px;
    }

    .ad-nav-next {
        right: 10px;
    }

    .hero-banner {
        aspect-ratio: 2/1;
    }

    .cart-sidebar {
        width: 90%;
    }

    .container {
        padding: 0 8px 30px 8px;
        /* Added bottom padding in mobile */
    }

    .product-scroll {
        gap: 10px;
    }
}

/* Mobile Strict (Max 780px/600px - Merged logic) */
@media (max-width: 780px) {
    .container {
        padding: 0 12px !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .section {
        margin-top: 4px;
        width: 100%;
        padding-top: 0;
    }

    .section-header {
        padding: 0;
        margin-bottom: 12px;
    }

    .section-header h2 {
        font-size: 16px;
    }

    /* Product Grid: 3 Items Exact */
    .product-scroll,
    .full-product-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        /* Force override */
        gap: 4px;
        padding: 0 0 16px 0;
        width: 100%;
    }

    /* .product-scroll .product-card:nth-child(n+4) {
        display: none !important;
    } */

    .product-card {
        min-width: 33.333vw;
        max-width: 33.333vw;
        border: 0.5px solid #eee;
    }

    .product-img-box {
        height: 140px;
    }

    .product-info {
        padding: 8px 6px;
        height: 175px;
        display: flex !important;
        flex-direction: column !important;
    }

    .product-name {
        font-size: 12px;
        height: 32px;
        min-height: 32px;
        line-height: 1.3;
        margin-bottom: 2px;
        margin-top: 2px;
        display: block !important;
        visibility: visible !important;
        overflow: hidden;
        text-overflow: ellipsis;
        word-wrap: break-word;
        position: relative;
        z-index: 1;
    }

    .product-weight {
        font-size: 9px;
        height: 12px;
        margin-bottom: 6px;
    }

    .current-price {
        font-size: 11px;
    }

    .mrp {
        font-size: 9px;
    }





    /* Mobile Fullscreen Modal (Sheet style) */
    @media (max-width: 768px) {
        .product-modal {
            width: 100% !important;
            height: 100% !important;
            max-width: 100% !important;
            max-height: 100dvh !important;
            border-radius: 0 !important;
            top: 0 !important;
            left: 0 !important;
            transform: translateY(0) !important;
            /* Slide handled differently on mobile maybe? */
            display: flex !important;
            flex-direction: column !important;
            background: #fff !important;
            opacity: 1 !important;
            visibility: visible !important;
            transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
        }

        .product-modal.hidden {
            transform: translateY(100%) !important;
            opacity: 1 !important;
            /* Keep opacity for slide out */
        }

        .modal-body {
            flex: 1;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            padding-bottom: 90px;
            display: block !important;
            position: relative;
        }

        .modal-col-left {
            padding: 0 !important;
            background: #f8fafc;
            border-radius: 0;
            position: relative;
            min-height: 350px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-col-right {
            padding: 30px 24px 24px 24px;
            background: #fff;
            border-radius: 30px 30px 0 0;
            margin-top: -30px;
            position: relative;
            z-index: 5;
            min-height: 50vh;
            box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
        }


        .modal-actions {
            position: fixed !important;
            bottom: 0 !important;
            left: 0 !important;
            width: 100% !important;
            padding: 16px !important;
            background: white !important;
            border-top: 1px solid #eee !important;
            margin: 0 !important;
            box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05) !important;
            z-index: 50 !important;
            display: flex;
            gap: 12px;
        }

        .modal-close {
            top: 15px !important;
            right: 15px !important;
            z-index: 60 !important;
            width: 40px !important;
            height: 40px !important;
            background: rgba(0, 0, 0, 0.4) !important;
            color: white !important;
            border-radius: 50% !important;
            backdrop-filter: blur(4px);
            border: none;
        }

        .hero-section #sec-categories {
            margin-top: auto !important;
            margin-bottom: 20px !important;
        }

        .carousel-slide img {
            max-height: 350px !important;
            /* Taller image on mobile */
            border-radius: 0 !important;
            object-fit: cover;
            /* Cover for immersive feel */
        }

        .modal-back-btn {
            display: none;
        }

        /* Hide bottom back button on mobile */
    }

    /* Final Mobile Carousel Overrides */
    @media (max-width: 768px) {
        .carousel-container {
            max-width: 100% !important;
            width: 100% !important;
            border-radius: 0 !important;
            margin: 0 !important;
        }

        .carousel-slide {
            width: 100% !important;
        }

        .carousel-slide img {
            width: 100% !important;
            max-width: 100% !important;
            height: auto !important;
            max-height: 450px !important;
            object-fit: cover !important;
            border-radius: 0 !important;
            display: block;
        }

        .carousel-dots {
            bottom: 30px !important;
            /* Inside image area */
            width: 100%;
            justify-content: center;
            z-index: 10;
        }
    }
}

/* Full View Back Button */
.view-all {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    background: #fff;
    transition: all 0.2s ease;
}

.view-all:hover {
    border-color: var(--brand-green);
    color: var(--brand-green);
    background: #f0fdf4;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 80px;
    /* Above bottom nav/footer */
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1e293b;
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    z-index: 3000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.toast-notification i {
    color: #4ade80;
    /* Green check */
}

/* =========================================
   Fullview Page Styles (Clean Structure)
   ========================================= */

/* Page Wrapper */
#page-fullview {
    width: 100%;
    max-width: 100%;
}

/* Ad Container */
#page-fullview .ad-container {
    width: 100%;
    padding: 20px;
    background: #f8fafc;
    text-align: center;
}

/* Fullview Header Section */
#page-fullview .fullview-header {
    background: linear-gradient(135deg, #f1f5f9 0%, #ffffff 100%);
    padding: calc(var(--header-height, 80px) + 70px) 20px 60px 20px;
    position: relative;
}

#page-fullview .fullview-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(45, 90, 39, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

#page-fullview .header-content {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

#page-fullview .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #64748b;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
    padding: 10px 20px;
    border-radius: 99px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: calc(var(--header-height, 80px) + 12px);
    left: 30px;
    z-index: 990;
    margin: 0;
}

#page-fullview .back-btn:hover {
    border-color: #cbd5e1;
    color: #1e293b;
    background: #f8fafc;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

#page-fullview .header-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

#page-fullview .header-text h1 {
    font-size: 3.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 15px 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

#page-fullview .header-text p {
    color: #64748b;
    font-size: 1.15rem;
    max-width: 600px;
    line-height: 1.6;
    margin: 0;
}

#page-fullview .header-icon {
    width: 100px;
    height: 100px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#page-fullview .header-icon i {
    font-size: 40px;
    background: -webkit-linear-gradient(45deg, #2d5a27, #4ade80);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Products Section */
#page-fullview .fullview-products {
    padding: 60px 20px;
    background: #fff;
}

#page-fullview .products-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

/* Empty State */
#page-fullview .empty-state {
    grid-column: 1/-1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    background: #f8fafc;
    border-radius: 24px;
}

#page-fullview .empty-icon {
    width: 80px;
    height: 80px;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

#page-fullview .empty-icon i {
    font-size: 32px;
    color: #94a3b8;
}

#page-fullview .empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

#page-fullview .empty-state p {
    color: #64748b;
    max-width: 400px;
    margin: 0;
}

/* Promise Section */
#page-fullview .fullview-promise {
    padding: 80px 20px;
    background: #fff;
    text-align: center;
    position: relative;
    border-top: 1px solid #f1f5f9;
}

#page-fullview .fullview-promise::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(45, 90, 39, 0.03) 0%, transparent 70%);
    border-radius: 50%;
}

#page-fullview .promise-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

#page-fullview .promise-content h2 {
    font-size: 2.5rem;
    color: #1e293b;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 15px;
}

#page-fullview .promise-content .brand-highlight {
    color: #2d5a27;
}

#page-fullview .promise-content h4 {
    font-size: 1.25rem;
    color: #64748b;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 30px;
}

#page-fullview .promise-description {
    line-height: 1.8;
    color: #475569;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 50px;
}

#page-fullview .promise-description p {
    margin-bottom: 20px;
}

#page-fullview .promise-description p:last-child {
    margin-bottom: 0;
}

/* Promise Badges */
#page-fullview .promise-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

#page-fullview .badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s ease;
}

#page-fullview .badge-item:hover {
    transform: translateY(-5px);
}

#page-fullview .badge-icon {
    width: 64px;
    height: 64px;
    background: #e0f2fe;
    color: #0284c7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

#page-fullview .badge-icon.green {
    background: #dcfce7;
    color: #16a34a;
}

#page-fullview .badge-icon.amber {
    background: #fef3c7;
    color: #d97706;
}

#page-fullview .badge-icon.blue {
    background: #e0f2fe;
    color: #0284c7;
}

#page-fullview .badge-label {
    font-weight: 700;
    color: #334155;
    font-size: 1rem;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    #page-fullview .fullview-header {
        padding-top: 140px;
    }
}

@media (max-width: 768px) {
    #page-fullview .fullview-header {
        padding: calc(var(--header-height, 110px) + 70px) 0 30px 0 !important;
    }

    #page-fullview .header-text h1 {
        font-size: 2.2rem;
    }

    #page-fullview .header-icon {
        width: 64px;
        height: 64px;
    }

    #page-fullview .header-icon i {
        font-size: 24px;
    }

    #page-fullview .products-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    #page-fullview .back-btn {
        padding: 4px 10px;
        font-size: 11px;
        margin: 0;
        position: fixed;
        top: calc(var(--header-height, 110px) + 12px);
        left: 15px;
        z-index: 999;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(4px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border-radius: 20px;
    }

    #page-fullview .fullview-products {
        padding: 10px 0 !important;
    }

    #page-fullview .full-product-grid,
    .similar-section .full-product-grid {
        row-gap: 16px !important;
    }

    #page-fullview .fullview-promise {
        padding: 60px 20px;
    }

    #page-fullview .promise-content h2 {
        font-size: 2rem;
    }

    #page-fullview .promise-badges {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    #page-fullview .badge-item {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        gap: 20px;
    }

    #page-fullview .badge-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}

/* Ad Script Container */
.ad-script-container {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* =========================================
   Skeleton Loader 
   ========================================= */
/* =========================================
   Premium Skeleton Loader 
   ========================================= */
#app-skeleton {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    z-index: 2147483647;
    /* Max Z-Index */
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.5s ease;
}

#app-skeleton.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Shimmer Animation */
@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.sk-nav,
.sk-hero,
.sk-cat-circle,
.sk-cat-text,
.sk-card,
.sk-line,
.sk-btn,
.sk-search-bar,
.sk-logo,
.sk-icon {
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
    /* Base color */
}

.sk-nav::after,
.sk-hero::after,
.sk-cat-circle::after,
.sk-card::after,
.sk-search-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shimmer 1.5s infinite;
}

/* Nav */
.sk-nav {
    height: 60px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.sk-nav-left,
.sk-nav-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

.sk-logo {
    width: 100px;
    height: 30px;
    border-radius: 4px;
}

.sk-nav-mid {
    flex: 1;
    margin: 0 20px;
    display: none;
}

/* Hidden on mobile */
.sk-search-bar {
    width: 100%;
    height: 36px;
    border-radius: 8px;
}

.sk-icon.circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

/* Hero */
.sk-hero {
    width: 100%;
    height: 450px;
    /* Mobile Hero Height */
    background: #e2e8f0;
    flex-shrink: 0;
}

/* Categories */
.sk-cat-row {
    display: flex;
    gap: 15px;
    padding: 20px;
    overflow-x: hidden;
}

.sk-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.sk-cat-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.sk-cat-text {
    width: 50px;
    height: 8px;
    border-radius: 4px;
}

/* Grid */
.sk-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 15px 30px 15px;
}

.sk-card {
    border-radius: 12px;
    background: #fff;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    height: 240px;
}

.sk-card-img {
    height: 140px;
    background: #f1f5f9;
}

.sk-card-content {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sk-line {
    height: 10px;
    border-radius: 4px;
    background: #e2e8f0;
}

.sk-line.w-80 {
    width: 80%;
}

.sk-line.w-40 {
    width: 40%;
}

.sk-line.w-30 {
    width: 30%;
}

.sk-card-ft {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.sk-btn {
    width: 60px;
    height: 24px;
    border-radius: 6px;
    background: #e2e8f0;
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .sk-nav {
        height: 70px;
        padding: 0 40px;
    }

    .sk-nav-mid {
        display: block;
        max-width: 500px;
    }

    .sk-hero {
        height: 400px;
        width: 95%;
        margin: 20px auto;
        border-radius: 20px;
    }

    .sk-cat-row {
        justify-content: center;
    }

    .sk-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 24px;
        padding: 0 40px 40px 40px;
        width: 95%;
        margin: 0 auto;
    }
}

/* =========================================
   Universal Image Skeleton & Placeholder
   ========================================= */
@keyframes skeleton-shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.img-skeleton {
    background: #f1f5f9 !important;
    position: relative !important;
    overflow: hidden !important;
    border-radius: inherit !important;
    min-height: 50px;
    max-width: 100% !important;
    max-height: 100% !important;
}

.img-skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.6) 50%,
            rgba(255, 255, 255, 0) 100%);
    animation: skeleton-shimmer 1.2s infinite ease-in-out;
}

.image-placeholder-text {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-align: center !important;
    padding: 10px !important;
    border-radius: inherit !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    min-height: 100px;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    overflow: hidden !important;
}

img {
    transition: opacity 0.3s ease-in-out;
    max-width: 100%;
    max-height: 100%;
}

/* =========================================
   Apple-style Scroll Animations
   ========================================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delay for grids if needed (optional refinement) */
.product-card.animate-on-scroll:nth-child(2) {
    transition-delay: 0.1s;
}

.product-card.animate-on-scroll:nth-child(3) {
    transition-delay: 0.2s;
}

.product-card.animate-on-scroll:nth-child(4) {
    transition-delay: 0.3s;
}