: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;

    /* iPhone X Safe Area Insets (Apple's Official Method) */
    --safe-area-inset-top: env(safe-area-inset-top, 0px);
    --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-inset-left: env(safe-area-inset-left, 0px);
    --safe-area-inset-right: env(safe-area-inset-right, 0px);

    /* 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;
    margin: 0 !important;
    padding: 0 !important;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    margin: 0 !important;
    padding: 0 !important;
    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;
    /* iOS App Feel: Remove tap highlight */
    -webkit-tap-highlight-color: transparent;
}

/* Skeleton Loading Scrollbar Area Color Fix */
html.skeleton-loading,
body.skeleton-loading {
    background-color: #fdfaf5 !important;
}

/* Remove tap highlight from all interactive elements */
a,
button,
input,
textarea,
select,
.clickable {
    -webkit-tap-highlight-color: transparent;
}

main {
    width: 100%;
    max-width: 100%;
    height: auto !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
}

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 Carousel */
.hero-section {
    width: 100%;
    position: relative;
    padding: 0;
    margin: 0;
    height: 600px;
    overflow: hidden;
    z-index: 1;
}

.hero-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    cursor: pointer;
}

/* Dots Navigation */
.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.hero-dot.active {
    background: #fff;
    width: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}




.hero-section #sec-categories {
    margin-top: auto;
    margin-bottom: 0;
    position: relative;
    z-index: 10;
    background: transparent;
    padding-top: 0;
    padding-bottom: 0;
}



/* 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 {
    opacity: 0.9;
    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;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 1;
}

.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 */




.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;
}

/* 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: 10px;
    width: fit-content;
    margin: 15px auto !important;
    padding: 12px 28px !important;
    background: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    color: var(--brand-green) !important;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none !important;
}

.see-all-btn:hover {
    background: #ffffff !important;
    box-shadow: none !important;
    opacity: 1 !important;
    text-decoration: underline !important;
}

.login-link-btn {
    background: var(--brand-green);
    color: #ffffff !important;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.login-link-btn:hover {
    background: var(--brand-green-dark);
    opacity: 0.85;
}

.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;
}





.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;
}



/* Limit removed to show all products */







/* =========================================
   Ad Carousel
   ========================================= */
/* Ad Carousel Modernized */
.ad-carousel-wrapper {
    width: 100%;
    height: 300px;
    margin: 40px 0;
    overflow: hidden;
    position: relative;
    border-radius: 0;
    box-shadow: var(--shadow-md);
}

.ad-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.ad-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
}

.ad-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(6px);
    border-radius: 20px;
}

.ad-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.ad-dot.active {
    background: #fff;
    width: 16px;
    border-radius: 10px;
}


/* =========================================
   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;
    opacity: 0.9;
    box-shadow: 0 15px 25px rgba(45, 90, 39, 0.3);
}

.modal-actions .add-btn:active {
    opacity: 0.8;
}


/* 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;
}



.modal-desktop-close {
    display: flex;
}



.modal-floating-back:active {
    transform: scale(0.95);
}

/* Media Queries & Responsive Styling */


/* =========================================
   View All Button
   ========================================= */
.view-all {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    padding: 8px 16px;
    border: none !important;
    border-radius: 8px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    background: #fff;
    transition: all 0.2s ease;
}

.view-all:hover {
    color: var(--brand-green);
    background: #f0fdf4;
    opacity: 0.85;
    box-shadow: none !important;
}

/* =========================================
   Product Horizontal Scroll Container (Generic)
   ========================================= */
.product-scroll {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 4px 20px 4px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.product-scroll::-webkit-scrollbar {
    display: none;
}

.product-scroll>* {
    flex-shrink: 0;
    width: 280px;
}

.product-scroll-wrapper {
    position: relative;
    width: 100%;
}

.product-scroll-wrapper .scroll-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0.95;
    font-size: 14px;
}

.product-scroll-wrapper .scroll-nav-btn:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.product-scroll-wrapper .scroll-nav-btn.prev {
    left: 5px;
}

.product-scroll-wrapper .scroll-nav-btn.next {
    right: 5px;
}

/* =========================================
   Toast Notification
   ========================================= */
.toast-notification {
    position: fixed;
    bottom: 80px;
    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;
}

/* =========================================
   Fullview Page Styles
   ========================================= */
#page-fullview {
    width: 100%;
    max-width: 100%;
}

#page-fullview .ad-container {
    width: 100%;
    padding: 20px;
    background: #f8fafc;
    text-align: center;
}

#page-fullview .fullview-header {
    background: linear-gradient(135deg, #f1f5f9 0%, #ffffff 100%);
    padding: calc(var(--header-height, 4.7rem) + 5px) 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: 700;
    color: #1e293b;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 10px 20px;
    border-radius: 12px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 0;
}

#page-fullview .back-btn:hover {
    opacity: 0.9;
    background: #2d5a27;
    color: #fff !important;
    box-shadow: 0 8px 25px rgba(45, 90, 39, 0.25);
    border-color: transparent;
}

#page-fullview .back-btn:hover i {
    color: #fff !important;
}

#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 .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;
}

#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;
}

#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: 0;
}

#page-fullview .promise-content h2 {
    font-size: 2.2rem;
    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;
    text-align: justify;
}

#page-fullview .promise-description p {
    margin-bottom: 20px;
}

#page-fullview .promise-description p:last-child {
    margin-bottom: 0;
}

#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 {
    opacity: 0.8;
}

#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;
}

.ad-script-container {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Image Skeleton & Animations */
@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%;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.product-card.animate-on-scroll:nth-child(1) {
    transition-delay: 0.05s;
}

.product-card.animate-on-scroll:nth-child(2) {
    transition-delay: 0.1s;
}

.product-card.animate-on-scroll:nth-child(3) {
    transition-delay: 0.15s;
}

.product-card.animate-on-scroll:nth-child(4) {
    transition-delay: 0.2s;
}

.product-card.animate-on-scroll:nth-child(5) {
    transition-delay: 0.25s;
}

.product-card.animate-on-scroll:nth-child(6) {
    transition-delay: 0.3s;
}

.product-card.animate-on-scroll:nth-child(7) {
    transition-delay: 0.35s;
}

.product-card.animate-on-scroll:nth-child(8) {
    transition-delay: 0.4s;
}

/* =========================================
   Product Grid Container Styles (Global Definitive)
   ========================================= */
/* Global Scope Variable */
:is(#page-home, #page-fullview, #page-search) .product-grid-container .full-product-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    gap: 24px !important;
    padding-bottom: 30px;
    margin: 0 !important;
}

:is(#page-home, #page-fullview, #page-search) .product-grid-container .full-product-grid>* {
    flex: 0 0 200px !important;
    width: 200px !important;
    max-width: 200px !important;
    margin-left: 15px !important;
}

/* Homepage Sections */
:is(#page-home, #page-fullview, #page-search) .section .product-grid-container {
    position: relative;
}

:is(#page-home, #page-fullview, #page-search) .product-grid-container .product-scroll {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 24px !important;
    justify-content: flex-start !important;
    padding-bottom: 20px;
    margin: 0 !important;
    width: 100%;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

:is(#page-home, #page-fullview, #page-search) .product-grid-container .product-scroll::-webkit-scrollbar {
    display: none;
}

:is(#page-home, #page-fullview, #page-search) .product-grid-container .product-scroll>* {
    flex: 0 0 200px !important;
    width: 200px !important;
    max-width: 200px !important;
    margin-left: 15px !important;
    height: 100%;
}

/* Navigation Buttons override */
:is(#page-home, #page-fullview, #page-search) .scroll-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: #1e293b;
    transition: background 0.2s;
}

:is(#page-home, #page-fullview, #page-search) .scroll-nav-btn:hover {
    background: #f1f5f9;
    box-shadow: none;
    color: #1e293b;
    border-color: #e2e8f0;
}

:is(#page-home, #page-fullview, #page-search) .scroll-nav-btn.prev {
    left: 5px;
}

:is(#page-home, #page-fullview, #page-search) .scroll-nav-btn.next {
    right: 5px;
}


/* =========================================
   Product Card Styles (Global)
   ========================================= */
:is(#page-home, #page-fullview, #page-search) .product-grid-container .product-card {
    width: 100%;
    max-width: 200px !important;
    margin: 0;
    height: auto;
    min-height: auto !important;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    transition: border 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start !important;
    overflow: hidden;
    position: relative;
}

:is(#page-home, #page-fullview, #page-search) .product-grid-container .product-card:hover {
    border: 1px solid rgba(0, 0, 0, 0.06);
}

:is(#page-home, #page-fullview, #page-search) .product-grid-container .product-img-box {
    position: relative;
    width: 100%;
    padding-top: 100%;
    height: 0 !important;
    min-height: 0 !important;
    max-height: none !important;
    flex: none !important;
    overflow: hidden;
    background: #ffffff;
}

:is(#page-home, #page-fullview, #page-search) .product-grid-container .product-img-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
}

:is(#page-home, #page-fullview, #page-search) .product-grid-container .stock-badge,
:is(#page-home, #page-fullview, #page-search) .product-grid-container .delivery-badge {
    position: absolute;
    bottom: 6px;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

:is(#page-home, #page-fullview, #page-search) .product-grid-container .stock-badge {
    left: 6px;
    background: rgba(217, 119, 6, 0.9);
    color: white;
}

:is(#page-home, #page-fullview, #page-search) .product-grid-container .delivery-badge {
    right: 6px;
    background: rgba(255, 255, 255, 0.9);
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

:is(#page-home, #page-fullview, #page-search) .product-grid-container .product-info {
    padding: 0px 6.5px 0 6.5px;

    display: flex;
    flex-direction: column;
    gap: 5px !important;
    justify-content: flex-start;
    min-height: auto;
    flex: 0 0 auto !important;
}

:is(#page-home, #page-fullview, #page-search) .product-grid-container .product-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    height: auto !important;
}

:is(#page-home, #page-fullview, #page-search) .product-grid-container .weight-badge {
    background: #f1f5f9;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: normal;
}

:is(#page-home, #page-fullview, #page-search) .product-grid-container .product-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.2;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    min-height: 0 !important;
}

:is(#page-home, #page-fullview, #page-search) .product-grid-container .discount-badge-ribbon {
    position: absolute;
    top: -6px;
    right: 12px;
    left: auto;
    /* Dynamic Masking for Color Control */
    background-color: var(--ribbon-color, #0cb908);
    -webkit-mask: url('assets/icons/offer_ribbon.svg?v=3') no-repeat center / 100% 100%;
    mask: url('assets/icons/offer_ribbon.svg?v=3') no-repeat center / 100% 100%;
    background-image: none;
    /* Clear old image */

    color: white;
    text-align: center;
    width: 35px;
    height: 35px;
    padding: 7px 2px 7px 2px;
    font-size: 8.5px;
    font-weight: 800;
    line-height: 1.1;
    z-index: 5;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
    overflow: hidden;
}

:is(#page-home, #page-fullview, #page-search) .product-grid-container .discount-badge-ribbon::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -150%;
    width: 200%;
    height: 200%;
    background: linear-gradient(60deg, transparent 0%, transparent 30%, rgba(255, 255, 255, 0.1) 45%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.1) 55%, transparent 70%, transparent 100%);
    transform: rotate(-10deg);
    animation: ribbonShimmer 3s infinite;
    pointer-events: none;
}

:is(#page-home, #page-fullview, #page-search) .product-grid-container .discount-badge-ribbon::before {
    display: none;
}

:is(#page-home, #page-fullview, #page-search) .product-grid-container .price-rating-row {
    display: flex;
    flex-direction: column;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
}

:is(#page-home, #page-fullview, #page-search) .product-grid-container .price-box {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    line-height: 1;
}

:is(#page-home, #page-fullview, #page-search) .product-grid-container .current-price {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
}

:is(#page-home, #page-fullview, #page-search) .product-grid-container .mrp-group {
    display: flex;
    align-items: baseline;
    gap: 3px;
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
    line-height: 1;
}

:is(#page-home, #page-fullview, #page-search) .product-grid-container .mrp {
    text-decoration: line-through;
}

:is(#page-home, #page-fullview, #page-search) .product-grid-container .rating-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #64748b;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    line-height: 1;
}

:is(#page-home, #page-fullview, #page-search) .product-grid-container .stars {
    display: flex;
    color: #fbbf24;
}

:is(#page-home, #page-fullview, #page-search) .product-grid-container .product-actions {
    padding: 4px 6.5px 10px 6.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: auto;
    margin-top: 1px !important;
}

/* Page-specific sizing adjustments only */
:is(#page-home, #page-fullview, #page-search) .product-grid-container .add-btn,
:is(#page-home, #page-fullview, #page-search) .product-grid-container .qty-btn-group {
    width: 64px !important;
    flex: 0 0 64px !important;
}

:is(#page-home, #page-fullview, #page-search) .product-grid-container .qty-btn-group {
    justify-content: space-between;
    padding: 0 2px;
}

:is(#page-home, #page-fullview, #page-search) .product-grid-container .qty-val {
    font-size: 14px;
    font-weight: 700;
    min-width: 15px;
}

:is(#page-home, #page-fullview, #page-search) .product-grid-container .amazon-icon-btn {
    width: 34px;
    height: 34px;
    background: #fff;
    border: 1.5px solid #ff9900;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px;
    transition: all 0.2s ease;
}

:is(#page-home, #page-fullview, #page-search) .product-grid-container .amazon-icon-btn svg {
    width: 100%;
    height: 100%;
}

:is(#page-home, #page-fullview, #page-search) .product-grid-container .amazon-icon-btn:hover {
    background: #fffaf0;
    box-shadow: 0 4px 8px rgba(255, 153, 0, 0.15);
}

:is(#page-home, #page-fullview, #page-search) .product-grid-container .amazon-icon-btn.disabled {
    opacity: 0.3;
    filter: grayscale(1);
    cursor: not-allowed;
}


/* =========================================
   CONSOLIDATED MEDIA QUERIES
   ========================================= */

/* Desktop (min-width: 1025px) */
@media (min-width: 1025px) {
    .section {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
        margin: 0 !important;
        scroll-margin-top: 90px;
    }

    .hero-section {
        padding-top: 100px;
    }

    .product-scroll-wrapper,
    :is(#page-home, #page-fullview, #page-search) .product-scroll-wrapper {
        padding: 0 45px !important;
    }
}

/* Tablet / Laptop (max-width: 1024px) */
@media (max-width: 1024px) {

    .product-scroll,
    .full-product-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    #page-fullview .fullview-header {
        padding-top: 140px;
    }

    :is(#page-home, #page-fullview, #page-search) .scroll-nav-btn {
        display: none !important;
    }

    :is(#page-home, #page-fullview, #page-search) .product-grid-container .product-scroll {
        padding-left: 0 !important;
        gap: 10px !important;
    }

    :is(#page-home, #page-fullview, #page-search) .product-grid-container .product-scroll>*,
    :is(#page-home, #page-fullview, #page-search) .product-grid-container .full-product-grid>* {
        flex: 0 0 180px !important;
        width: 180px !important;
        max-width: 180px !important;
        min-width: 180px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    :is(#page-home, #page-fullview, #page-search) .product-grid-container .product-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {

    /* Layout */
    .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: none !important;
    }

    .footer {
        margin-top: 20px !important;
        padding-top: 30px !important;
    }

    .hero-section {
        height: 500px;
        min-height: 500px;
    }

    .hero-dots {
        bottom: 20px;
    }

    /* Category Grid */
    .category-grid {
        justify-content: flex-start;
        padding-left: 16px;
        padding-right: 16px;
        gap: 12px;
    }

    /* Ad Carousel */
    .ad-carousel-section {
        box-shadow: none !important;
    }

    .ad-carousel-wrapper {
        height: 200px;
        margin: 20px 0;
    }

    .ad-slide img {
        height: 140px;
    }

    .ad-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    /* Healthy Living & Why Choose */
    #sec-healthy-living,
    #sec-healthy-living .container {
        padding: 10px 16px !important;
        margin-top: 0 !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;
    }

    /* Modal Mobile */
    .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;
        bottom: 0;
        background: #fff;
        margin: 0 -24px -24px;
        padding: 16px 24px;
        border-top: 1px solid #f1f5f9;
        z-index: 5;
    }

    .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: none !important;
    }

    #page-fullview .fullview-header {
        padding: calc(var(--header-height, 4.4rem) + 4px) 0 15px 0 !important;
    }

    #page-fullview .header-title-row {
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 0 15px;
        /* Ensure edge spacing */
    }

    #page-fullview .header-text h1 {
        font-size: 1.8rem !important;
        /* Slightly larger, should still fit with smaller back-btn */
        margin-bottom: 5px !important;
        line-height: 1.2 !important;
    }

    #page-fullview .header-text p {
        display: none;
        /* Hide subtitle on mobile if needed to save space, or just make it small? User focused on title/button line. Keeping it clean might act better. Let's keep it but small if space permits, or maybe just let it flow. User said "same line to title". */
    }



    #page-fullview .products-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    #page-fullview .back-btn {
        padding: 8px 12px;
        font-size: 13px;
        white-space: nowrap;
        flex-shrink: 0;
        margin: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(0, 0, 0, 0.05);
        border-radius: 12px;
        font-weight: 700;
        color: #1e293b !important;
    }

    #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: 1.5rem;
    }

    #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;
    }

    /* Product Modal Fullscreen */
    .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;
        display: flex !important;
        flex-direction: column !important;
        background: #fff !important;
    }

    .product-modal.hidden {
        transform: translateY(100%) !important;
        opacity: 1 !important;
    }

    .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;
        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;
        border-radius: 0 !important;
        object-fit: cover;
    }

    .modal-back-btn {
        display: none;
    }

    .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;
        width: 100%;
        justify-content: center;
        z-index: 10;
    }

    /* Product Scroll / Grid / Cards (Mobile Specific) */
    .product-scroll-wrapper .scroll-nav-btn {
        display: none;
    }

    .product-scroll {
        gap: 16px;
    }

    .product-scroll>* {
        width: 180px;
    }

    /* Definitive Product Card Mobile Overrides */
    :is(#page-home, #page-fullview, #page-search) .product-grid-container .product-scroll {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        gap: 5px !important;
        padding-bottom: 15px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    :is(#page-home, #page-fullview, #page-search) .product-grid-container .product-scroll::-webkit-scrollbar {
        display: none;
    }

    :is(#page-home, #page-fullview, #page-search) .product-grid-container .full-product-grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 5px !important;
        padding: 0 2px 20px 2px !important;
        margin: 0 auto !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    :is(#page-home, #page-fullview, #page-search) .product-grid-container .full-product-grid>* {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        flex: none !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }

    :is(#page-home, #page-fullview, #page-search) .product-grid-container .product-card {
        height: auto !important;
        min-height: auto !important;
        justify-content: flex-start !important;
        gap: 0 !important;
        /* Eliminate gap between image, info, and actions */
    }

    :is(#page-home, #page-fullview, #page-search) .product-grid-container .product-scroll .product-card {
        max-width: 990px !important;
        width: 100% !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    :is(#page-home, #page-fullview, #page-search) .product-grid-container .full-product-grid .product-card {
        max-width: 990px !important;
        width: 96% !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    :is(#page-home, #page-fullview, #page-search) .fullview-grid-padding {
        padding: 0 10px 20px 10px !important;
    }

    /* Mobile Inner Card Adjustments - Sync with Desktop */
    :is(#page-home, #page-fullview, #page-search) .product-grid-container .product-img-box {
        width: 100%;
        padding-top: 100%;
        height: 0 !important;
        min-height: 0 !important;
        max-height: none !important;
        position: relative;
    }

    :is(#page-home, #page-fullview, #page-search) .product-grid-container .product-info {
        padding: 0px 4px 0px 4px !important;
        gap: 5px !important;
        min-height: auto !important;
        height: auto !important;
        flex: 0 0 auto !important;
        margin-bottom: 0 !important;
    }

    :is(#page-home, #page-fullview, #page-search) .product-grid-container .product-name {
        font-size: 13px;
        min-height: 0 !important;
        height: auto !important;
        margin: 0 !important;
        line-height: 1.2;
    }

    :is(#page-home, #page-fullview, #page-search) .product-grid-container .current-price {
        font-size: 14px;
    }

    :is(#page-home, #page-fullview, #page-search) .product-grid-container .price-rating-row {
        gap: 4px !important;
        min-height: auto !important;
        margin-bottom: 0 !important;
    }

    :is(#page-home, #page-fullview, #page-search) .product-grid-container .rating-row {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        line-height: 1 !important;
    }

    :is(#page-home, #page-fullview, #page-search) .product-grid-container .product-actions {
        padding: 4px 4px 8px 4px !important;
        min-height: auto !important;
        margin-top: 1px !important;
    }

    :is(#page-home, #page-fullview, #page-search) .product-grid-container .add-btn,
    :is(#page-home, #page-fullview, #page-search) .product-grid-container .qty-btn-group,
    :is(#page-home, #page-fullview, #page-search) .product-grid-container .amazon-icon-btn {
        height: 30px;
        font-size: 11px;
    }

    :is(#page-home, #page-fullview, #page-search) .product-grid-container .add-btn,
    :is(#page-home, #page-fullview, #page-search) .product-grid-container .qty-btn-group {
        width: 62px !important;
        flex: 0 0 62px !important;
    }

    :is(#page-home, #page-fullview, #page-search) .product-grid-container .amazon-icon-btn {
        width: 30px;
        padding: 6px;
    }

    :is(#page-home, #page-fullview, #page-search) .product-grid-container .stock-badge {
        left: 2px;
        padding: 1.5px 4px !important;
        font-size: 8px;
    }

    :is(#page-home, #page-fullview, #page-search) .product-grid-container .delivery-badge {
        right: 2px;
        padding: 1.5px 4px !important;
        font-size: 8px;
        gap: 2px;
    }
}

/* Additional Mobile Adjustments (Restored) */
@media (max-width: 1024px) {
    .hero-section {
        padding-top: 0;
    }
}

@media (max-width: 768px) {
    .cart-sidebar {
        width: 90% !important;
    }

    .hero-banner {
        aspect-ratio: 2/1;
    }
}

/* --- Shared Gallery/Journal Card Styles (From Index.php) --- */
.journal-item {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: border-color 0.4s ease;
}

.journal-item:hover {
    border-color: rgba(45, 90, 39, 0.4);
}

.card-image-wrapper {
    height: 220px;
    position: relative;
    overflow: hidden;
    background: #eee;
}

.card-image-wrapper.cinematic {
    height: 180px;
}

.card-image-wrapper img,
.card-image-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-info-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    font-family: 'Outfit', sans-serif;
}

.card-date,
.card-author {
    font-size: 11px !important;
    font-weight: 400 !important;
    color: #64748b !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.card-sep {
    font-size: 8px;
    color: #cbd5e1;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1a1a1a;
    font-family: 'Outfit', sans-serif;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    opacity: 0.8;
}

/* Studio Gallery Aesthetic for Visual Stories */
.gallery-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    transition: opacity 0.3s ease;
}

.gallery-card-body {
    padding: 12px 0 0 0 !important;
    background: transparent !important;
}

.gallery-card .card-image-wrapper {
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    background: #f1f1f1;
    filter: saturate(0.8) contrast(0.9);
    transition: filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover .card-image-wrapper {
    filter: saturate(1.1) contrast(1.05);
}

.gallery-card .card-title {
    color: #1a1a1a !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.2px;
    margin: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.25;
    flex: 1;
    font-family: 'Outfit', sans-serif;
}

.gallery-card .card-date,
.gallery-card .card-author {
    color: #64748b !important;
}

/* =========================================
   Fullview Page Grid System Overrides
   ========================================= */

/* Desktop: 6 items per row */
#page-fullview .product-grid-container .full-product-grid {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 24px !important;
    padding-bottom: 30px;
}

/* Reset item width constraints */
#page-fullview .product-grid-container .full-product-grid>* {
    width: 100% !important;
    max-width: 100% !important;
    flex: unset !important;
    margin: 0 !important;
}

/* Tablet: 3 items per row */
@media (max-width: 1024px) {
    #page-fullview .product-grid-container .full-product-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
    }
}

/* Mobile: 2 items per row */
@media (max-width: 768px) {
    #page-fullview .product-grid-container .full-product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .main-shop-layout {
        flex-direction: column;
    }

    .shop-sidebar {
        display: none;
        /* Hide sidebar on mobile for now as per minimal request */
    }
}

/* =========================================
   Unified Page Headers (Orders, Cart, FullView)
   ========================================= */

/* Common Row Container */
.page-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    margin-top: 0;
}

/* Common Page Title */
.common-page-title {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.1;
    word-wrap: break-word;
}

/* Common Shop More Button */
.btn-shop-more {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 12px 24px;
    border-radius: 12px;
    color: var(--brand-green, #2d5a27);
    font-weight: 700;
    text-decoration: none;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-shop-more:hover {
    opacity: 0.85;
}

.btn-shop-more:active {
    opacity: 1;
}

.btn-shop-more img {
    display: block;
}

/* =========================================
   Common Quantity Button Group
   ========================================= */

/* Common Add to Cart Button */
.add-btn {
    width: 64px;
    height: 34px;
    background: #ffffff;
    color: #2d5a27;
    border: 1.5px solid #2d5a27;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.add-btn:hover {
    background: #2d5a27;
    color: #ffffff;
    opacity: 0.9;
}

.add-btn:active {
    transform: scale(0.95);
}

/* Quantity Button Container */
.qty-btn-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 64px;
    height: 34px;
    background: #ffffff;
    border: 1.5px solid #2d5a27;
    border-radius: 8px;
    padding: 0 2px;
    white-space: nowrap;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

/* Quantity Buttons (+ and -) */
.qty-btn {
    background: none;
    border: none;
    color: #2d5a27;
    font-size: 14px;
    width: 18px;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: all 0.2s;
}

.qty-btn:hover {
    opacity: 0.7;
}

.qty-btn:active {
    transform: scale(0.95);
}

/* Quantity Value Display */
.qty-val {
    font-weight: 700;
    font-size: 14px;
    color: #2d5a27;
    min-width: 20px;
    text-align: center;
}

/* =========================================
   Common Toast Notification
   ========================================= */

#cart-toast,
#toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1a1a1a;
    color: #fff;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    z-index: 9999;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
    width: auto;
    max-width: 90vw;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    opacity: 0;
}

#cart-toast.show,
#toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Toast icon color */
#cart-toast i.fa-check-circle,
#toast i.fa-check-circle {
    color: #4ade80;
    font-size: 16px;
}