/* --- BASE & TYPOGRAPHY --- */
        :root {
            --primary: #004c99;
            --primary-dark: #003366;
            --secondary: #28a745;
            --secondary-dark: #1f8b3b;
            --danger: #dc3545;
            --danger-dark: #b52a37;
            --light-gray: #f8f8f8;
            --medium-gray: #e0e0e0;
            --dark-gray: #6a6a6a;
            --text: #333;
            --text-light: #f8f8f8;
            --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            --radius: 12px;
        }

        * {
            box-sizing: border-box;
        }

        body {
            font-family: 'Roboto', sans-serif;
            margin: 0;
            background-color: var(--light-gray);
            color: var(--text);
            line-height: 1.6;
            overflow-x: hidden;
            width: 100%;
        }

        html {
            overflow-x: hidden;
            width: 100%;
        }

        h1,
        h2,
        h3 {
            font-family: 'Roboto', serif;
            font-weight: 700;
            color: #212529;
            margin-top: 0;
            transition: color 0.3s ease;
        }

        h1:hover,
        h2:hover,
        h3:hover {
            color: #ff6b00;
            /* Added this block */
        }

        /* Option 3: Background highlight */
        /* Option 3: Background highlight - Separate colors */
        h1.highlight-bg {
            background-color: #ff4444;
            /* Red for h1 */
            color: #ffffff;
            display: inline-block;
            padding: 4px 12px;
            border-radius: 6px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        h2.highlight-bg {
            background: linear-gradient(135deg, #076ead, #7b8587);
            color: #fdcb6e;
            display: inline-block;
            padding: 10px 20px;
            border-radius: 10px;
            box-shadow:
                0 3px 20px rgba(0, 0, 0, 0.2),
                0 2px 4px rgba(0, 0, 0, 0.1);
            font-weight: 1200;
            font-size: 1.1rem;
            letter-spacing: 0.1px;
            position: relative;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: 2px solid #636e72;
            margin: 15px 0px;
            min-width: 180px;
            text-align: center;
        }

        /* Accent line */
        h2.highlight-bg::before {
            content: '';
            position: absolute;
            left: 0;
            top: 10%;
            height: 80%;
            width: 4px;
            background: linear-gradient(to bottom, #fdcb6e, #e17055);
            border-radius: 2px;
        }

        h2.highlight-bg:hover {
            transform: translateY(-3px);
            box-shadow:
                0 6px 25px rgba(0, 0, 0, 0.3),
                0 3px 8px rgba(0, 0, 0, 0.15);
            border-color: #fdcb6e;
            color: #fdcb6e;
        }

        /* Add subtle pulse animation */
        @keyframes subtle-pulse {

            0%,
            100% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.02);
            }
        }

        h2.highlight-bg {
            animation: subtle-pulse 3s ease-in-out infinite;
        }

        h3.highlight-bg {
            background-color: #2196F3;
            /* Blue for h3 */
            color: #ffffff;
            display: inline-block;
            padding: 4px 12px;
            border-radius: 6px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        h1 {
            font-size: 2.5rem;
        }

        h2 {
            font-size: 1.8rem;
            margin-top: 25px;
        }

        h3 {
            font-size: 1.3rem;
        }

        /* --- HEADER --- */
        .header {
            background-color: var(--primary);
            color: white;
            padding: 25px 15px 15px;
            position: relative;
            box-shadow: var(--shadow);
            width: 100%;
        }

        /* --- CATEGORY DASHBOARD & FOCUS MODE --- */
        .product-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            padding: 15px;
            max-width: 1200px;
            margin: 0 auto;
            transition: all 0.4s ease;
        }

        /* Dashboard Tile Style */
        .category-section {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 10px rgba(0,0,0,0.08);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            border: 1px solid #eee;
            height: fit-content;
            display: flex;
            flex-direction: column;
            scroll-margin-top: 20px;
        }

        .category-header {
            padding: 20px 15px;
            margin: 0 !important;
            font-size: 1.1rem;
            text-align: center;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white !important;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            width: 100%;
            cursor: pointer;
            transition: background 0.3s;
        }

        .category-header::after {
            content: "→" !important;
            font-size: 1.2rem;
            transform: none !important;
            opacity: 0.7;
        }

        /* Focus Mode Transitions */
        .product-list.focus-mode {
            grid-template-columns: 1fr;
            padding: 10px;
            gap: 0;
        }

        .category-section.hidden {
            display: none;
            opacity: 0;
            transform: scale(0.95);
        }

        .category-section.focused {
            grid-column: 1 / -1;
            width: 100%;
            border-radius: 0;
            box-shadow: none;
            border: none;
            background: transparent;
        }

        .category-section.focused .category-header {
            position: sticky;
            top: 0;
            z-index: 100;
            border-radius: 8px;
            margin-bottom: 20px !important;
            background: #333; /* Dark header when focused */
        }

        .category-section.focused .category-header::after {
            content: "✕" !important; /* Back button icon */
            font-weight: bold;
        }

        .category-section.focused .category-products {
            max-height: none !important;
            display: grid !important;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
            padding-bottom: 50px;
        }

        @media (max-width: 480px) {
            .product-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
                padding: 10px;
            }
            .category-header {
                font-size: 0.95rem;
                padding: 15px 10px;
            }
            .category-section.focused .category-products {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }
            .category-section.focused .category-header {
                font-size: 1.1rem;
                padding: 12px;
            }
        }
        #view-cart-btn {
            position: fixed !important;
            bottom: 25px !important;
            right: 25px !important;
            top: auto !important;
            left: auto !important;
            background: var(--secondary) !important;
            color: white !important;
            border: none !important;
            padding: 10px !important;
            border-radius: 50% !important;
            cursor: pointer;
            font-weight: 700;
            font-size: 1rem;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            z-index: 2000 !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 8px;
            width: 56px !important;
            height: 56px !important;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        #view-cart-btn:hover {
            transform: translateY(-5px) scale(1.05);
            background: var(--secondary-dark);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        }

        #view-cart-btn .cart-count {
            background: white;
            color: var(--secondary);
            border-radius: 50%;
            height: 24px;
            min-width: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.85rem;
            padding: 0 6px;
        }

        @media (max-width: 600px) {
            #view-cart-btn {
                bottom: 20px;
                right: 20px;
                padding: 10px 18px;
                font-size: 0.9rem;
            }
        }

        .header-content {
            max-width: 1200px;
            margin: 0 auto;
            text-align: center;
        }

        .header p {
            font-weight: 300;
            font-size: 1.1rem;
            opacity: 0.9;
            margin-bottom: 15px;
        }

        /* --- LOADING INDICATOR --- */
        .loading {
            text-align: center;
            padding: 40px 20px;
            color: var(--dark-gray);
        }

        .loading-spinner {
            display: inline-block;
            width: 50px;
            height: 50px;
            border: 5px solid #f3f3f3;
            border-top: 5px solid var(--primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-bottom: 20px;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        /* --- SEARCH --- */
        .search-container {
            padding: 0 15px 15px;
            max-width: 600px;
            margin: 0 auto;
        }

        .search-container input {
            width: 100%;
            padding: 14px 18px;
            border: none;
            border-radius: 8px;
            font-size: 1rem;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            transition: box-shadow 0.3s;
        }

        .search-container input:focus {
            outline: none;
            box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
        }

        /* --- ANNOUNCEMENT BAR --- */
        .announcement-container {
            background: linear-gradient(90deg,
                    #ff4500, #ff6b00, #ff8c42, #ff6b00, #ff4500);
            background-size: 300% 100%;
            animation: gradient-shift 3s ease infinite;
            color: white;
            padding: 15px 0;
            margin: 15px 0 25px 0;
            border-radius: 10px;
            overflow: hidden;
            position: relative;
            box-shadow:
                0 4px 15px rgba(255, 69, 0, 0.4),
                0 0 0 2px rgba(255, 255, 255, 0.2),
                inset 0 0 20px rgba(255, 255, 255, 0.1);
            min-height: 45px;
            font-weight: 1500;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
            border: 3px solid rgba(255, 255, 255, 0.3);
        }

        /* Animated gradient background */
        @keyframes gradient-shift {
            0% {
                background-position: 0% 50%;
            }

            50% {
                background-position: 100% 50%;
            }

            100% {
                background-position: 0% 50%;
            }
        }

        /* Optional: Add floating particles effect */
        .announcement-container::before {
            content: '';
            position: absolute;
            top: -10px;
            left: -10px;
            right: -10px;
            bottom: -10px;
            background:
                radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.2) 2px, transparent 3px),
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.2) 1px, transparent 2px),
                radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.2) 3px, transparent 4px);
            background-size: 50px 50px;
            animation: float 20s linear infinite;
            z-index: 0;
            pointer-events: none;
        }

        @keyframes float {
            0% {
                background-position: 0 0, 0 0, 0 0;
            }

            100% {
                background-position: 100px 100px, 50px 50px, 75px 75px;
            }
        }

        /* Ensure text stays on top */
        .announcement-container>* {
            position: relative;
            z-index: 1;
        }

        /* Optional: Add a subtle pulse animation */
        @keyframes subtle-pulse {

            0%,
            100% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.01);
            }
        }

        .announcement-container {
            animation:
                gradient-shift 3s ease infinite,
                subtle-pulse 4s ease-in-out infinite;
        }

        .announcement-wrapper {
            width: 100%;
            overflow: hidden;
            position: relative;
        }

        .announcement-track {
            display: inline-flex;
            white-space: nowrap;
            padding-left: 100%;
            /* Start off-screen to the right */
            animation: scrollAnnouncements 20s linear infinite;
            will-change: transform;
        }

        .announcement-item {
            display: inline-flex;
            align-items: center;
            padding: 0 50px;
            font-weight: 600;
            font-size: 1.85rem;
            flex-shrink: 0;
            white-space: nowrap;
        }

        .announcement-separator {
            margin: 0 25px;
            color: white;
            opacity: 0.7;
            font-size: 1.5rem;
            flex-shrink: 0;
        }

        .announcement-container:hover .announcement-track {
            animation-play-state: paused;
        }

        /* Keyframes for smooth continuous scroll */
        @keyframes scrollAnnouncements {
            0% {
                transform: translateX(0);
            }

            100% {
                transform: translateX(-100%);
            }
        }

        /* Mobile adjustments */
        @media (max-width: 768px) {
            .announcement-container {
                margin: 8px 0 15px 0;
                padding: 10px 0;
                min-height: 36px;
                width: calc(100% - 20px);
                margin-left: auto;
                margin-right: auto;
            }

            .announcement-item {
                padding: 0 30px;
                font-size: 1.85rem;
            }

            .announcement-separator {
                margin: 0 15px;
            }

            .announcement-track {
                animation: scrollAnnouncements 30s linear infinite;
            }
        }

        /* --- GROUP BANNER --- */
        .group-banner {
            background: linear-gradient(135deg, #ff8400, #ff8400);
            color: white;
            padding: 10px 0;
            position: relative;
            width: 100%;
        }

        .group-banner-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
            gap: 15px;
            text-align: center;
        }

        .group-banner-info {
            display: flex;
            align-items: center;
            gap: 15px;
            flex: 1;
            min-width: 250px;
            justify-content: center;
        }

        .group-logo {
            width: 45px;
            height: 45px;
            object-fit: contain;
            border-radius: 50%;
            background: white;
            padding: 3px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }

        .group-title {
            font-weight: bold;
            font-size: 1.05em;
            line-height: 1.2;
        }

        .group-subtitle {
            font-size: 0.8em;
            opacity: 0.9;
            line-height: 1.3;
        }

        .group-visit-btn {
            color: white;
            text-decoration: none;
            background: rgba(255, 255, 255, 0.15);
            padding: 8px 15px;
            border-radius: 4px;
            font-size: 0.9em;
            transition: all 0.3s;
            border: 1px solid rgba(255, 255, 255, 0.3);
            white-space: nowrap;
            flex-shrink: 0;
        }

        .group-visit-btn:hover {
            background: rgba(255, 255, 255, 0.25);
            transform: translateY(-1px);
        }

        /* MOBILE FIXES */
        @media (max-width: 600px) {
            .group-banner-container {
                flex-direction: column;
                gap: 12px;
            }

            .group-banner-info {
                min-width: unset;
                width: 100%;
            }

            h2.highlight-bg {
                min-width: calc(50% - 15px);
                font-size: 0.95rem;
                padding: 8px 12px;
                margin: 5px;
                height: fit-content;
                align-self: flex-start;
            }

            .category-section {
                text-align: center;
                display: flex;
                flex-direction: column;
                align-items: center;
            }
            
            .product-grid {
                grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
                align-items: start;
            }
            
            .product-card {
                padding: 15px;
            }
        }

        /* --- PROFESSIONAL & CRISP PRODUCT GRID --- */
        :root {
            --primary: #111827;
            /* Deep Slate/Black */
            --accent: #2563eb;
            /* Clean Blue for actions */
            --text-main: #1f2937;
            --text-muted: #6b7280;
            --border-color: #e5e7eb;
            --card-bg: #ffffff;
            --input-bg: #f9fafb;
            --radius-sm: 4px;
            /* Crisper, tighter corners */
        }

        .product-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            gap: 1px;
            /* Creates a clean "grid line" look */
            background: var(--border-color);
            /* The gap acts as the border */
            border: 1px solid var(--border-color);
            max-width: 1200px;
            margin: 0 auto;
            align-items: start;
        }

        .product-card {
            background: var(--card-bg);
            padding: 24px;
            display: flex;
            flex-direction: column;
            height: 100%;
            position: relative;
            transition: background 0.2s ease;
        }

        .product-card:hover {
            background: #fcfcfc;
            z-index: 1;
            /* Ensures slight overlap or shadow stays on top */
            outline: 1px solid var(--accent);
            /* Crisp highlight instead of heavy shadow */
        }

        /* --- IMAGE SECTION --- */
        .product-card img {
            width: 100%;
            height: 180px;
            object-fit: contain;
            margin-bottom: 20px;
            mix-blend-mode: multiply;
            /* Blends white backgrounds perfectly */
        }

        /* --- PRODUCT DETAILS --- */
        .product-info {
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }

        .product-card h3 {
            font-size: 0.95rem;
            font-weight: 600;
            color: var(--text-main);
            margin: 0 0 8px;
            letter-spacing: -0.01em;
            line-height: 1.4;
            min-height: 2.8em;
        }

        .price {
            font-size: 1.1rem;
            color: var(--text-main);
            font-family: 'Inter', -apple-system, sans-serif;
            font-weight: 700;
            margin-bottom: 12px;
        }

        .details {
            font-size: 0.85rem;
            color: var(--text-muted);
            line-height: 1.5;
            margin-bottom: 20px;
        }

        /* --- VARIATIONS (CRISP TAGS) --- */
        .variation-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            margin-bottom: 14px;
            padding-bottom: 14px;
            border-bottom: 2px solid #e5e7eb;
        }

        .variation-grid:last-of-type {
            border-bottom: none;
            margin-bottom: 20px;
        }

        .variation-btn {
            padding: 4px 10px;
            border: 1px solid var(--border-color);
            border-radius: var(--radius-sm);
            cursor: pointer;
            background: white;
            font-size: 0.75rem;
            font-weight: 500;
            color: var(--text-main);
            text-transform: uppercase;
            /* Professional look */
            letter-spacing: 0.03em;
        }

        .variation-btn.active {
            background-color: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        /* Distinct colors for different selection types */
        .size-grid .variation-btn.active {
            background-color: #007bff; /* Bright Blue */
            border-color: #007bff;
        }

        .gsm-grid .variation-btn.active {
            background-color: #28a745; /* Green */
            border-color: #28a745;
        }

        /* --- COMPARISON BOX (BASIC) --- */
        .comparison-box {
            margin-top: 15px;
            padding: 10px;
            background: #fff8e1;
            border: 1px dashed #ffc107;
            border-radius: 8px;
            display: none;
        }

        .comparison-title {
            font-size: 1.1rem;
            font-weight: 800;
            color: #856404;
            text-transform: uppercase;
            margin-bottom: 8px;
            display: block;
        }

        .alt-list {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .alt-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 6px 10px;
            background: white;
            border-radius: 4px;
            text-decoration: none;
            color: var(--text-main);
            font-size: 0.85rem;
            border: 1px solid #eee;
            transition: all 0.2s;
        }

        .alt-item:hover {
            border-color: var(--accent);
            background: #f0f7ff;
        }

        .alt-price {
            font-weight: 700;
            color: var(--accent);
        }

        @media (max-width: 480px) {
            .alt-item {
                font-size: 0.8rem;
                padding: 4px 8px;
            }
        }

        /* --- ACTION ROW --- */
        .qty-row {
            margin-top: auto;
            padding-top: 15px;
            border-top: 1px solid #f3f4f6;
            display: flex;
            gap: 8px;
        }

        .qty-input {
            width: 55px;
        }

        .qty-row input {
            width: 100%;
            padding: 8px;
            border: 1px solid var(--border-color);
            border-radius: var(--radius-sm);
            background: var(--input-bg);
            font-size: 0.9rem;
            color: var(--text-main);
        }

        .btn-cart {
            background-color: var(--accent);
            color: white;
            border: none;
            padding: 10px 16px;
            border-radius: var(--radius-sm);
            cursor: pointer;
            font-weight: 600;
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            flex-grow: 1;
            transition: opacity 0.2s;
        }

        .btn-cart:hover {
            background-color: var(--primary);
        }

        .btn-cart:disabled {
            background-color: #ccc;
            cursor: not-allowed;
            opacity: 0.7;
        }

        /* --- BLINK HIGHLIGHT (REWORKED FOR MAXIMUM VISIBILITY) --- */
        @keyframes blink-orange {
            0% { background-color: #ffffff; }
            20% { background-color: #ff9800; } /* Strong Orange */
            40% { background-color: #ffffff; }
            60% { background-color: #ff9800; }
            80% { background-color: #ffffff; }
            100% { background-color: #ff9800; }
        }

        .product-card.blink-highlight {
            animation: blink-orange 1s ease-in-out 5 !important;
            border: 3px solid #ff9800 !important;
            box-shadow: 0 0 25px rgba(255, 152, 0, 0.8) !important;
            transition: none !important; /* Disable smooth transitions to make it "pop" */
            z-index: 9999 !important;
        }

        /* --- CART CONTAINER (MOBILE-FIRST) --- */
        #cart-container {
            position: fixed;
            top: 0;
            right: -100%;
            width: 100%;
            height: 100%;
            background: white;
            border-left: 1px solid var(--medium-gray);
            box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
            z-index: 2000;
            transition: right 0.3s ease;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        #cart-container.active {
            right: 0;
        }

        .cart-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px;
            border-bottom: 1px solid var(--medium-gray);
            background: var(--primary);
            color: white;
        }

        .cart-header h3 {
            margin: 0;
            color: white;
        }

        #cart-close-btn {
            background: rgba(255, 255, 255, 0.2);
            color: white;
            border: none;
            border-radius: 50%;
            width: 36px;
            height: 36px;
            font-size: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .cart-content {
            flex: 1;
            overflow-y: auto;
            padding: 20px;
        }

        #cart-items {
            margin-bottom: 20px;
        }

        .cart-item {
            border-bottom: 1px dashed var(--medium-gray);
            padding: 15px 0;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            font-size: 0.95em;
        }

        .cart-item:last-child {
            border-bottom: none;
        }

        .cart-item-details {
            flex: 1;
            padding-right: 10px;
        }

        .cart-item-actions {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .remove-btn {
            background: var(--danger);
            color: white;
            border: none;
            padding: 5px 10px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 0.85em;
            white-space: nowrap;
        }

        .cart-footer {
            padding: 20px;
            border-top: 1px solid var(--medium-gray);
            background: #f9f9f9;
        }

        .cart-total {
            font-weight: 700;
            margin-bottom: 20px;
            font-size: 1.3em;
            color: var(--primary);
            text-align: center;
        }

        .checkout-btn {
            width: 100%;
            padding: 16px;
            font-family: 'Roboto', sans-serif !important;
            background: var(--primary);
            color: #fff;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 1.1em;
            font-weight: 700;
            transition: background-color 0.2s;
        }

        .checkout-btn:hover {
            background-color: var(--primary-dark);
        }

        /* --- CHECKOUT MODAL --- */
        #checkout-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 3000;
            display: none;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        #checkout-modal.active {
            display: flex;
        }

        #checkout-modal>div {
            background: #fff;
            width: 100%;
            max-width: 900px;
            padding: 25px;
            border-radius: var(--radius);
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
        }

        .checkout-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid var(--primary);
        }

        .checkout-close-btn {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: var(--dark-gray);
        }

        .input-group {
            margin-bottom: 20px;
        }

        .input-group label {
            display: block;
            font-weight: 700;
            margin-bottom: 8px;
            color: #555;
            font-size: 0.95em;
        }

        #checkout-modal input,
        #checkout-modal #delivery-address {
            width: 100%;
            padding: 14px;
            border: 1px solid var(--medium-gray);
            border-radius: 6px;
            box-sizing: border-box;
            font-size: 1em;
            transition: border-color 0.2s;
        }

        #checkout-modal input:focus {
            border-color: var(--primary);
            outline: none;
            box-shadow: 0 0 0 2px rgba(0, 76, 153, 0.1);
        }

        /* Shipping Buttons */
        .shipping-options {
            display: flex;
            gap: 10px;
            margin-top: 15px;
        }

        .shipping-option-btn {
            flex: 1;
            padding: 15px 10px;
            border: 2px solid var(--medium-gray);
            border-radius: 8px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
            background: #fff;
            position: relative;
        }

        .shipping-option-btn input[type="radio"] {
            position: absolute;
            opacity: 0;
            width: 0;
            height: 0;
        }

        .shipping-option-btn.active {
            border-color: var(--secondary);
            background-color: rgba(40, 167, 69, 0.1);
            color: var(--secondary);
        }

        .shipping-option-btn span {
            display: block;
            font-size: 0.85em;
            margin-top: 5px;
            font-weight: 500;
        }

        /* Payment Options - Same style as shipping */
        .payment-options {
            display: flex;
            gap: 10px;
            margin-top: 15px;
            margin-bottom: 20px;
        }

        .payment-option-btn {
            flex: 1;
            padding: 15px 10px;
            border: 2px solid var(--medium-gray);
            border-radius: 8px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
            background: #fff;
            position: relative;
        }

        .payment-option-btn input[type="radio"] {
            position: absolute;
            opacity: 0;
            width: 0;
            height: 0;
        }

        .payment-option-btn.active {
            border-color: var(--secondary);
            background-color: rgba(40, 167, 69, 0.1);
            color: var(--secondary);
        }

        .payment-option-btn span {
            display: block;
            font-size: 0.85em;
            margin-top: 5px;
            font-weight: 500;
        }

        /* Order Summary */
        #checkout-summary-box {
            background: #f7f7f7;
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 20px;
        }

        #checkout-summary-box h4 {
            margin-top: 0;
            border-bottom: 1px solid #ddd;
            padding-bottom: 10px;
            margin-bottom: 15px;
            font-size: 1.2rem;
        }

        .summary-line {
            display: flex;
            justify-content: space-between;
            padding: 8px 0;
            font-size: 0.95em;
        }

        .summary-total {
            border-top: 2px solid #ddd;
            margin-top: 15px;
            padding-top: 15px;
            font-size: 1.4em;
            font-weight: 700;
            color: var(--primary);
        }

        /* WhatsApp Button */
        .whatsapp-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #25D366;
            color: white;
            padding: 16px;
            border: none;
            border-radius: 8px;
            margin-top: 20px;
            cursor: pointer;
            font-size: 1.1em;
            font-weight: 700;
            transition: background-color 0.2s;
            width: 100%;
        }

        .whatsapp-btn:hover {
            background-color: #1DA851;
        }

        .whatsapp-icon {
            margin-right: 10px;
            font-size: 1.2em;
        }

        /* Cancel Button */
        .modal-btn-close {
            background-color: #6c757d;
            color: white;
            padding: 12px;
            margin-top: 15px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 1em;
            width: 100%;
            transition: background-color 0.2s;
        }

        .modal-btn-close:hover {
            background-color: #5a6268;
        }

        /* Brand button specific styling */
        .variation-btn.brand-btn {
            min-width: 80px;
            /* Minimum width for brand buttons */
            white-space: normal;
            /* Allow text to wrap to next line */
            height: auto;
            /* Allow height to adjust */
            padding: 8px 6px;
            /* Adjust padding for wrapped text */
            line-height: 1.2;
            /* Tighter line spacing */
            font-size: 0.8em;
            /* Slightly smaller text */
            word-break: break-word;
            /* Break long words if needed */
        }

        /* --- PRODUCT BADGES --- */
        .product-badge {
            position: absolute;
            top: 10px;
            right: 10px;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 0.7em;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            z-index: 10;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
            animation: pulse 0.5s infinite ease-in-out;
        }

        .badge-discounted {
            background: linear-gradient(45deg, #ff0000, #ff4444);
            color: white;
            border: 2px solid #ff0000;
        }

        .badge-new {
            background: linear-gradient(45deg, #00cc00, #44ff44);
            color: white;
            border: 2px solid #00aa00;
        }

        @keyframes pulse {
            0% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.05);
            }

            100% {
                transform: scale(1);
            }
        }

        /* Product card needs relative positioning for absolute badges */
        .product-card {
            position: relative;
            /* Add this to existing .product-card */
        }

        /* Badges on buttons */
        .badge-on-btn {
            position: absolute;
            top: -8px;
            right: -8px;
            padding: 2px 6px;
            border-radius: 10px;
            font-size: 0.6em;
            font-weight: 900;
            z-index: 20;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
            animation: bounce 0.5s infinite;
        }

        /* Brand button needs relative positioning */
        .variation-btn.brand-btn {
            position: relative;
            /* Add this */
            /* ... rest of your existing brand-btn styles ... */
        }

        /* ================================
   MOBILE OPTIMIZATION - PRODUCT GRID
   ================================ */

        /* Global variables for consistency */
        :root {
            --font-xs: 0.7rem;
            --font-sm: 0.75rem;
            --font-md: 0.9rem;
            --font-lg: 1.3rem;
            --font-xl: 1.4rem;
            --gap-xs: 4px;
            --gap-sm: 6px;
            --gap-md: 10px;
            --gap-lg: 12px;
        }

        /* Shared rules */
        .category-products,
        .category-header {
            grid-column: 1 / -1;
            text-align: center;
            /* center for balance */
            line-height: 1.1;
            /* tighter line height for wrapping */
            white-space: normal;
            /* allow wrapping if needed */
            word-break: break-word;
            /* break long words gracefully */
            max-width: 100%;
            box-sizing: border-box;
        }

        /* Prevent sideways scroll globally */
        body {
            overflow-x: visible;
        }

        /* --- TABLET & MOBILE (≤768px) --- */
        @media (max-width: 768px) {

            /* Header adjustments */
            .header {
                padding: 15px 10px 10px;
            }

            .header h1 {
                font-size: clamp(1.3rem, 4vw, 1.8rem);
                margin-bottom: 5px;
            }

            .header p {
                font-size: 1rem;
                margin-bottom: 10px;
            }

            /* Product grid */
            #product-list.product-grid {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: var(--gap-lg);
                padding: 15px 10px;
                box-sizing: border-box;
                min-width: min-content;
            }

            .category-products {
                display: block;
            }

            .product-card {
                width: 100%;
                min-width: 0;
                padding: 12px;
                height: auto;
                box-sizing: border-box;
            }

            .product-card img {
                max-height: 80px;
                width: 100%;
                object-fit: contain;
            }

            .product-card h3 {
                font-size: 0.95rem;
                line-height: 1.2;
                margin: 3px 0 6px;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                overflow: hidden;
            }

            .price {
                font-size: 1.1rem;
                margin: 3px 0;
            }

            .details {
                font-size: var(--font-sm);
                line-height: 1.2;
                margin-bottom: 5px;
            }

            /* Variation buttons */
            .variation-grid {
                display: flex;
                flex-wrap: wrap;
                gap: var(--gap-xs);
                margin-bottom: 8px;
            }

            .variation-btn:not(.brand-btn) {
                padding: 6px 8px;
                font-size: var(--font-sm);
                min-height: 36px;
                flex: 1 1 auto;
                min-width: 0;
                max-width: 100%;
                text-overflow: ellipsis;
                overflow: hidden;
                white-space: nowrap;
                text-align: center;
                box-sizing: border-box;
            }

            .variation-btn.brand-btn {
                min-width: 60px;
                font-size: var(--font-sm);
                padding: 6px 4px;
            }

            .variation-grid.size-grid .variation-btn,
            .variation-grid:first-of-type .variation-btn {
                flex: 1 1 48%;
            }

            /* Quantity & cart */
            .qty-row {
                gap: var(--gap-sm);
                margin-top: 8px;
            }

            .qty-input {
                width: 60px;
            }

            .qty-row input {
                padding: 8px;
                font-size: 0.9rem;
                height: 36px;
                box-sizing: border-box;
            }

            .btn-cart {
                padding: 8px 10px;
                font-size: 0.85rem;
                height: 36px;
                box-sizing: border-box;
            }

            /* Category headers */
            .category-header {
                font-size: clamp(1.1rem, 3.5vw, var(--font-xl));
                margin-top: 20px;
                margin-bottom: 8px;
            }

            /* Removed old cart button override */
        }

        /* --- SMALL PHONES (≤480px) --- */
        @media (max-width: 480px) {
            #product-list.product-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: var(--gap-md);
                padding: 12px 8px;
                box-sizing: border-box;
                min-width: min-content;
            }

            .category-products {
                display: block;
            }

            .product-card {
                padding: 10px;
                min-width: 0;
                box-sizing: border-box;
            }

            .product-card img {
                max-height: 80px;
                width: 100%;
                object-fit: contain;
            }

            .product-card h3 {
                font-size: var(--font-md);
            }

            .price {
                font-size: 1rem;
            }

            .details {
                display: block;
                font-size: var(--font-xs);
                line-height: 1.2;
                margin-bottom: 4px;
            }

            /* Variation buttons */
            .variation-grid {
                display: flex;
                flex-wrap: wrap;
                gap: 3px;
                margin-bottom: 6px;
            }

            .variation-btn:not(.brand-btn) {
                padding: 5px 6px;
                font-size: var(--font-xs);
                min-height: 34px;
                flex: 1 1 auto;
                min-width: 0;
                max-width: 100%;
                text-overflow: ellipsis;
                overflow: hidden;
                white-space: nowrap;
                text-align: center;
                box-sizing: border-box;
            }

            .variation-btn.brand-btn {
                min-width: 60px;
                font-size: var(--font-sm);
                padding: 6px 4px;
            }

            .variation-grid.size-grid .variation-btn,
            .variation-grid:first-of-type .variation-btn {
                flex: 1 1 48%;
            }

            .btn-cart {
                font-size: 0.8rem;
                padding: 6px 8px;
                height: 34px;
                box-sizing: border-box;
            }

            .qty-row input {
                padding: 6px;
                font-size: 0.85rem;
                height: 34px;
                box-sizing: border-box;
            }

            /* Category headers */
            .category-header {
                font-size: clamp(1rem, 3.5vw, var(--font-lg));
                margin-top: 15px;
                margin-bottom: 6px;
            }

            /* Removed old cart button mobile override */
        }

        /* --- TABLET (PORTRAIT) --- */
        @media (min-width: 769px) and (max-width: 1024px) {
            #product-list.product-grid {
                grid-template-columns: repeat(3, 1fr) !important;
                gap: 15px !important;
                padding: 20px 15px !important;
            }
        }

        /* --- LANDSCAPE ORIENTATION --- */
        @media (max-width: 768px) and (orientation: landscape) {
            #product-list.product-grid {
                grid-template-columns: repeat(3, 1fr) !important;
                gap: 10px !important;
                padding: 10px !important;
            }

            .product-card img {
                height: 80px !important;
            }

            .product-card h3 {
                font-size: 0.85rem !important;
                -webkit-line-clamp: 1 !important;
            }
        }

        /* --- UTILITY CLASSES --- */
        .no-results {
            text-align: center;
            padding: 50px 20px;
            color: var(--dark-gray);
            font-size: 1.1em;
            grid-column: 1 / -1;
        }

        .category-header {
            grid-column: 1 / -1;
            margin-top: 30px;
            margin-bottom: 10px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--primary);
        }

        /* --- ANIMATIONS --- */
        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        .spinner-small {
            display: inline-block;
            width: 14px;
            height: 14px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-top-color: white;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            margin-right: 8px;
            vertical-align: middle;
        }

        /* --- HIGHLIGHT FOR PRICE CHANGES --- */
        @keyframes flashHighlight {
            0% {
                background-color: transparent;
            }

            30% {
                background-color: rgba(255, 165, 0, 0.3);
                border-color: orange;
            }

            100% {
                background-color: transparent;
            }
        }

        .highlight-change {
            animation: flashHighlight 2s ease-out;
            border: 1px solid orange !important;
            border-radius: 8px;
        }

        .product-card {
            animation: slideIn 0.3s ease-out;
        }

        /* --- SCROLLBAR STYLING --- */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        ::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb {
            background: var(--primary);
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--primary-dark);
        }

        /* Collapsible category arrows */
        .category-header {
            cursor: pointer;
            /* Makes it clickable */
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .category-header::after {
            content: "▶";
            /* Closed state arrow */
            font-size: 0.8em;
            margin-left: 10px;
            transition: transform 0.3s;
        }

        .category-header.expanded::after {
            content: "▼";
            /* Open state arrow */
            transform: rotate(90deg);
        }

        .category-products {
            transition: max-height 0.3s ease-out;
            overflow: hidden;
            max-height: 0;
        }

        /* ===== TWO-COLUMN CHECKOUT LAYOUT ===== */
        .checkout-two-column {
            display: flex;
            flex-wrap: wrap;
            gap: 30px;
            margin-top: 10px;
        }

        .checkout-left {
            flex: 1;
            min-width: 300px;
        }

        .checkout-right {
            flex: 1;
            min-width: 300px;
            display: flex;
            flex-direction: column;
        }

        /* Adjust summary box for new layout */
        #checkout-summary-box {
            background: #f7f7f7;
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 20px;
            flex-grow: 1;
        }

        .summary-line {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
            font-size: 0.95rem;
        }

        .summary-total {
            display: flex;
            justify-content: space-between;
            margin-top: 15px;
            padding-top: 15px;
            border-top: 2px solid #ddd;
            font-size: 1.25rem;
            font-weight: 800;
            color: var(--primary-dark);
        }

        /* Ensure buttons fill width in right column */
        .checkout-right .whatsapp-btn,
        .checkout-right .modal-btn-close {
            width: 100%;
            margin-top: 10px;
        }

        /* Mobile responsiveness */
        @media (max-width: 768px) {
            .checkout-two-column {
                flex-direction: column;
                gap: 20px;
            }

            .checkout-left,
            .checkout-right {
                min-width: 100%;
            }
        }

        /* ===== FEATURE 9: PRICE CHANGE NOTIFICATION BANNER ===== */
        #price-change-banner {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 99999;
            background: linear-gradient(90deg, #e65100, #ff8f00);
            color: white;
            padding: 12px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 15px;
            box-shadow: 0 4px 20px rgba(200, 80, 0, 0.45);
            transform: translateY(-110%);
            transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
            font-size: 0.9rem;
        }

        #price-change-banner.visible {
            transform: translateY(0);
        }

        .price-banner-content {
            display: flex;
            align-items: center;
            gap: 12px;
            flex: 1;
            min-width: 0;
        }

        .price-banner-icon {
            font-size: 1.5rem;
            flex-shrink: 0;
        }

        .price-banner-text strong {
            display: block;
            font-size: 0.95rem;
            line-height: 1.3;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .price-banner-text small {
            opacity: 0.92;
            font-size: 0.8rem;
            display: block;
        }

        .price-banner-close {
            background: rgba(255, 255, 255, 0.25);
            border: none;
            color: white;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: background 0.2s;
            padding: 0;
            line-height: 1;
        }

        .price-banner-close:hover {
            background: rgba(255, 255, 255, 0.45);
        }

        /* ===== FEATURE 10: CART QUANTITY CONTROLS ===== */
        .cart-qty-controls {
            display: flex;
            align-items: center;
            gap: 5px;
            margin-top: 9px;
        }

        .cart-qty-btn {
            width: 27px;
            height: 27px;
            border-radius: 50%;
            border: 1.5px solid #ccc;
            background: white;
            color: #333;
            font-size: 17px;
            font-weight: 700;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
            flex-shrink: 0;
            transition: all 0.15s ease;
            padding: 0;
        }

        .cart-qty-btn:hover {
            background: #2563eb;
            color: white;
            border-color: #2563eb;
        }

        .cart-qty-num-input {
            width: 50px;
            text-align: center;
            border: 1.5px solid #ccc;
            border-radius: 6px;
            padding: 3px 4px;
            font-size: 0.88rem;
            font-weight: 600;
            color: #333;
            -moz-appearance: textfield;
        }

        .cart-qty-num-input::-webkit-outer-spin-button,
        .cart-qty-num-input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        .cart-qty-num-input:focus {
            outline: none;
            border-color: #2563eb;
        }

        /* Override cart item actions to stack vertically */
        .cart-item-actions {
            display: flex !important;
            flex-direction: column !important;
            align-items: flex-end !important;
            gap: 6px !important;
        }
    


            @media (max-width: 768px) {
                #groupBanner>div {
                    flex-direction: row;
                    justify-content: space-between;
                    gap: 10px;
                    padding: 0 10px;
                }

                #groupBanner img {
                    width: 35px !important;
                    height: 35px !important;
                }

                #groupBanner>div>div:first-child {
                    min-width: auto;
                    flex: 1;
                    justify-content: flex-start;
                    text-align: left;
                    gap: 10px !important;
                }

                #groupBanner>div>div:first-child>div:last-child div:first-child {
                    font-size: 0.95em !important;
                }

                #groupBanner>div>div:first-child>div:last-child div:last-child {
                    font-size: 0.75em !important;
                }

                #groupBanner a {
                    padding: 6px 12px !important;
                    font-size: 0.85em !important;
                }
            }

            @media (max-width: 480px) {
                #groupBanner>div {
                    flex-direction: column;
                    gap: 2px;
                    /* Even smaller gap */
                    padding: 1px 0 !important;
                    /* Add this to slim overall banner */
                }

                #groupBanner>div>div:first-child {
                    justify-content: center;
                    text-align: center;
                    gap: 4px !important;
                    /* Even smaller gap */
                }

                #groupBanner a {
                    width: 90%;
                    text-align: center;
                    padding: 2px 4px !important;
                    /* Even slimmer button */
                    font-size: 0.8em !important;
                    /* Optional: smaller text */
                }
            }

/* --- MINIMAL HORIZONTAL FOOTER --- */
.site-footer {
    background-color: var(--primary);
    color: white;
    padding: 30px 20px;
    margin-top: 60px;
    border-top: 4px solid var(--secondary);
    text-align: center;
    width: 100%;
}

.footer-container {
    max-width: 800px;
    margin: 0 auto;
}

.footer-links-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-link:hover {
    opacity: 1;
    color: var(--secondary);
}

.footer-divider {
    opacity: 0.6;
    font-size: 0.8rem;
}

.footer-bottom {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    font-size: 0.8rem;
    opacity: 0.4;
    margin: 0;
}

/* Mobile: Adjust spacing */
@media (max-width: 500px) {
    .footer-links-row {
        gap: 15px;
    }
    .footer-divider {
        display: none; /* Stack/wrap naturally on small screens */
    }
}


