:root {
            --primary-yellow: #f04400;
            --dark-grey: #333333;
            --light-grey: #f4f4f4;
            --black: #1a1a1a;
            --red: #e60000;
            --blue-btn: #0062B9; 
            --transition: all 0.3s ease;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background-color: #fff;
            overflow-x: hidden !important;
            padding-bottom: 0; 
        }

        body.no-scroll {
            overflow: hidden;
        }

        a { text-decoration: none; color: inherit; }
        ul { list-style: none; }

        /* --- TOP HEADER --- */
        .top-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 15px 5%;
            border-bottom: 1px solid #ddd;
            background: white;
            position: relative;
            z-index: 1001;
        }

        .logo h2 { font-style: italic; font-weight: 900; white-space: nowrap; }

        /* --- SEARCH BAR STYLES (UPDATED FOR DESKTOP) --- */
        .search-container {
            flex: 1;
            max-width: 700px;
            margin: 0 30px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        /* The white pill container (Icon + Input + Categories) */
        .search-input-group {
            flex: 1;
            display: flex;
            align-items: center;
            border: 2px solid var(--black); /* Black border as per image */
            border-radius: 50px;
            padding: 5px 20px;
            background: white;
            position: relative;
        }

        .search-icon-left {
            color: #666;
            margin-right: 10px;
            font-size: 14px;
        }

        .search-input-group input {
            flex: 1;
            border: none;
            outline: none;
            font-size: 14px;
            padding: 8px 0;
            background: transparent;
        }

        /* Divider between input and categories */
        .search-divider {
            width: 1px;
            height: 25px;
            background-color: #ddd;
            margin: 0 15px;
        }

        /* Category Dropdown inside the search bar */
        .category-select {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            font-weight: 600;
            color: #333;
            cursor: pointer;
            white-space: nowrap;
        }
        
        .category-select i { font-size: 10px; color: #666; }

        /* The Separate Blue Search Button */
        .btn-search-desktop {
            background-color: var(--blue-btn);
            color: white;
            border: none;
            padding: 12px 35px;
            border-radius: 50px;
            font-weight: bold;
            font-size: 14px;
            cursor: pointer;
            transition: var(--transition);
        }
        .btn-search-desktop:hover { background-color: #0055aa; }

        /* Hidden Mobile Search Button (Default) */
        .btn-search-mobile { display: none; }


        /* --- HEADER ACTIONS (Right Side - Modern Premium Design) --- */
        .header-actions {
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .contact-info { text-align: right; }
        .contact-info .phone { font-weight: bold; display: block; }
        .contact-info .email { font-size: 12px; color: #ffffff; }

        .header-action-btn {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 6px 14px;
            border-radius: 50px;
            background: #ffffff;
            border: 1.5px solid #e9ecef;
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
            position: relative;
            user-select: none;
            text-decoration: none;
        }

        .header-action-btn:hover {
            border-color: #0088cc;
            box-shadow: 0 4px 14px rgba(0, 136, 204, 0.12);
            transform: translateY(-2px);
        }

        .header-action-icon {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: #f0f7ff;
            color: #0088cc;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            transition: all 0.25s ease;
            position: relative;
            flex-shrink: 0;
        }

        .header-account-btn:hover .header-action-icon {
            background: #0088cc;
            color: #ffffff;
        }

        .header-cart-btn {
            border-color: #f1f3f5;
        }

        .header-cart-btn .header-action-icon {
            background: #fff5f5;
            color: #e60000;
        }

        .header-cart-btn:hover {
            border-color: #e60000;
            box-shadow: 0 4px 14px rgba(230, 0, 0, 0.12);
        }

        .header-cart-btn:hover .header-action-icon {
            background: #e60000;
            color: #ffffff;
        }

        .header-action-info {
            display: flex;
            flex-direction: column;
            line-height: 1.25;
            text-align: left;
        }

        .header-action-sub {
            font-size: 11px;
            color: #8c98a4;
            font-weight: 500;
            letter-spacing: 0.2px;
        }

        .header-action-main {
            font-size: 13.5px;
            font-weight: 700;
            color: #212529;
            white-space: nowrap;
        }

        .cart-count {
            position: absolute;
            top: -4px;
            right: -6px;
            background: #e60000;
            color: #ffffff;
            font-size: 10px;
            font-weight: 700;
            min-width: 18px;
            height: 18px;
            padding: 0 4px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid #ffffff;
            box-shadow: 0 2px 5px rgba(230, 0, 0, 0.35);
            transition: all 0.2s ease;
        }

        .header-cart-btn:hover .cart-count {
            background: #ffcc00;
            color: #1a1a1a;
        }

        /* Mobile Toggle Icon (Hidden on Desktop) */
        .mobile-menu-toggle {
            display: none;
            font-size: 24px;
            cursor: pointer;
            padding: 5px;
        }

        /* --- NAVIGATION & CATEGORY DROPDOWN --- */
        .main-nav {
            background: var(--blue-btn);
            color: white;
            padding: 0 5%;
            height: 50px;
            display: flex;
            align-items: center;
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .nav-links {
            display: flex;
            height: 100%;
            align-items: center;
        }

        .nav-item {
            padding: 0 18px;
            height: 100%;
            display: flex;
            align-items: center;
            font-size: 13px;
            font-weight: 600;
            text-transform: uppercase;
            cursor: pointer;
            transition: var(--transition);
            position: relative;
        }

        .nav-item:hover { background: rgba(0, 0, 0, 0.15); }

        .dept-nav-item {
            background: #004d99;
            font-weight: 700;
            position: relative;
            user-select: none;
        }

        .dept-nav-item:hover {
            background: #003d7a;
        }

        /* Single column vertical category dropdown */
        .cat-dropdown-menu {
            position: absolute;
            top: 100%;
            left: 0;
            width: 270px;
            background: #ffffff;
            box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
            border-radius: 0 0 8px 8px;
            border: 1px solid #e2e8f0;
            border-top: 3px solid #ffcc00;
            display: none;
            z-index: 1100;
            padding: 6px 0;
            animation: catDropdownAnim 0.2s ease-out;
        }

        .cat-dropdown-menu.show {
            display: block;
        }

        @keyframes catDropdownAnim {
            from { opacity: 0; transform: translateY(6px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .cat-menu-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .cat-menu-item {
            position: relative;
        }

        .cat-menu-link {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 18px;
            color: #2d3748;
            font-size: 13.5px;
            font-weight: 500;
            text-decoration: none;
            text-transform: none;
            transition: all 0.2s ease;
            border-bottom: 1px solid #f7fafc;
        }

        .cat-menu-item:last-child .cat-menu-link {
            border-bottom: none;
        }

        .cat-menu-item:hover > .cat-menu-link {
            background-color: #f0f7ff;
            color: #0088cc;
            padding-left: 22px;
        }

        .cat-arrow {
            font-size: 11px;
            color: #a0aec0;
            transition: transform 0.2s ease;
        }

        .cat-menu-item:hover > .cat-menu-link .cat-arrow {
            color: #0088cc;
            transform: translateX(3px);
        }

        /* FLYOUT SUBMENU ON HOVER */
        .cat-submenu {
            position: absolute;
            top: -7px;
            left: 100%;
            width: 270px;
            background: #ffffff;
            box-shadow: 6px 12px 35px rgba(0, 0, 0, 0.12);
            border-radius: 8px;
            border: 1px solid #e2e8f0;
            border-left: 3px solid #0088cc;
            display: none;
            z-index: 1200;
            padding: 8px 0;
            animation: catSubmenuAnim 0.2s ease-out;
            max-height: 420px;
            overflow-y: auto;
        }

        @keyframes catSubmenuAnim {
            from { opacity: 0; transform: translateX(6px); }
            to { opacity: 1; transform: translateX(0); }
        }

        .cat-menu-item:hover > .cat-submenu {
            display: block;
        }

        .cat-submenu-title {
            padding: 8px 16px;
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            color: #0088cc;
            letter-spacing: 0.5px;
            border-bottom: 1px solid #edf2f7;
            margin-bottom: 4px;
        }

        .cat-submenu-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .cat-submenu-item a {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 9px 16px;
            color: #4a5568;
            font-size: 13px;
            text-decoration: none;
            text-transform: none;
            transition: all 0.2s ease;
        }

        .cat-submenu-item a i {
            font-size: 10px;
            color: #a0aec0;
            transition: transform 0.2s ease;
        }

        .cat-submenu-item a:hover {
            background-color: #f0f7ff;
            color: #0088cc;
            padding-left: 20px;
        }

        .cat-submenu-item a:hover i {
            color: #0088cc;
            transform: translateX(2px);
        }

        .member-badge {
            margin-left: auto;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 12px;
        }
        .status-inactive {
            background: var(--red);
            padding: 2px 8px;
            border-radius: 3px;
            font-weight: bold;
        }

        /* --- DRAWERS (SIDE PANEL) --- */
        .drawer-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(15, 23, 42, 0.6);
            backdrop-filter: blur(4px);
            visibility: hidden;
            opacity: 0;
            z-index: 1250;
            transition: all 0.3s ease;
        }

        .drawer {
            position: fixed;
            top: 0;
            right: -420px;
            width: 380px;
            max-width: 90vw;
            height: 100%;
            background: #ffffff;
            z-index: 1300;
            transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
            padding: 0;
            box-shadow: -8px 0 35px rgba(0,0,0,0.18);
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .drawer.open { transform: translateX(-420px); }
        .drawer-overlay.show { visibility: visible; opacity: 1; }

        .drawer-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #e2e8f0;
            padding: 16px 20px;
            flex-shrink: 0;
            background: #ffffff;
        }
        
        .drawer-scrollable {
            flex: 1;
            overflow-y: auto;
            padding: 15px 20px; 
            scrollbar-width: thin;
            scrollbar-color: #cbd5e1 transparent;
        }
        .drawer-scrollable::-webkit-scrollbar {
            width: 5px;
        }
        .drawer-scrollable::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 4px;
        }
        
        .close-drawer { 
            font-size: 24px; 
            cursor: pointer; 
            color: #64748b; 
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: #f1f5f9;
            transition: all 0.2s ease;
            line-height: 1;
        }
        .close-drawer:hover {
            background: #fee2e2;
            color: #ef4444;
        }

        /* --- MODERN SHOPPING CART DRAWER STYLES --- */
        .cart-drawer-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 20px;
            background: #ffffff;
            border-bottom: 1px solid #e2e8f0;
            flex-shrink: 0;
        }

        .cart-drawer-title-box {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .cart-drawer-icon-wrap {
            width: 38px;
            height: 38px;
            background: #e6f4fa;
            color: #0088cc;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
        }

        .cart-drawer-title {
            font-size: 16px;
            font-weight: 700;
            color: #1e293b;
            margin: 0;
            line-height: 1.2;
        }

        .cart-drawer-items-count {
            font-size: 12px;
            font-weight: 600;
            color: #64748b;
        }

        .cart-drawer-body {
            flex: 1;
            overflow-y: auto;
            padding: 8px 0;
            scrollbar-width: thin;
            scrollbar-color: #cbd5e1 transparent;
        }
        .cart-drawer-body::-webkit-scrollbar {
            width: 5px;
        }
        .cart-drawer-body::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 4px;
        }

        .cart-drawer-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 20px;
            border-bottom: 1px solid #f1f5f9;
            transition: background 0.15s ease;
        }
        .cart-drawer-item:hover {
            background: #f8fafc;
        }

        .cart-item-img {
            width: 60px;
            height: 60px;
            border-radius: 8px;
            border: 1px solid #e2e8f0;
            object-fit: cover;
            background: #ffffff;
            flex-shrink: 0;
        }

        .cart-item-info {
            flex: 1;
            min-width: 0;
        }

        .cart-item-title {
            font-size: 13.5px;
            font-weight: 600;
            color: #1e293b;
            margin: 0 0 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            line-height: 1.3;
        }

        .cart-item-price-row {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 6px;
        }

        .cart-item-unit-price {
            font-size: 13.5px;
            font-weight: 700;
            color: #ef4444;
        }

        .cart-item-total-price {
            font-size: 11.5px;
            color: #94a3b8;
            font-weight: 500;
        }

        .cart-qty-ctrl {
            display: inline-flex;
            align-items: center;
            background: #f1f5f9;
            border: 1px solid #e2e8f0;
            border-radius: 6px;
            overflow: hidden;
            height: 26px;
        }

        .cart-qty-btn {
            width: 24px;
            height: 100%;
            background: transparent;
            border: none;
            color: #475569;
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.15s, color 0.15s;
        }

        .cart-qty-btn:hover {
            background: #e2e8f0;
            color: #0f172a;
        }

        .cart-qty-val {
            min-width: 24px;
            text-align: center;
            font-size: 12px;
            font-weight: 700;
            color: #1e293b;
            padding: 0 4px;
            user-select: none;
        }

        .cart-item-remove-btn {
            background: none;
            border: none;
            color: #94a3b8;
            font-size: 15px;
            cursor: pointer;
            padding: 6px;
            border-radius: 6px;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .cart-item-remove-btn:hover {
            color: #ef4444;
            background: #fee2e2;
            transform: scale(1.1);
        }

        .cart-empty-wrap {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 60px 24px;
            text-align: center;
            height: 100%;
        }

        .cart-empty-icon-box {
            width: 76px;
            height: 76px;
            border-radius: 50%;
            background: #f1f5f9;
            color: #94a3b8;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 32px;
            margin-bottom: 14px;
        }

        .cart-empty-title {
            font-size: 16px;
            font-weight: 700;
            color: #1e293b;
            margin: 0 0 6px;
        }

        .cart-empty-desc {
            font-size: 13px;
            color: #64748b;
            margin: 0 0 18px;
            max-width: 240px;
            line-height: 1.4;
        }

        .cart-empty-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 22px;
            background: #0088cc;
            color: #ffffff;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 700;
            text-decoration: none;
            transition: background 0.2s ease, transform 0.15s ease;
            box-shadow: 0 3px 10px rgba(0, 136, 204, 0.25);
        }
        .cart-empty-btn:hover {
            background: #0070a8;
            transform: translateY(-1px);
            color: #ffffff;
        }

        .cart-footer-modern {
            background: #ffffff;
            border-top: 1px solid #e2e8f0;
            padding: 16px 20px;
            box-shadow: 0 -4px 15px rgba(0,0,0,0.03);
            flex-shrink: 0;
        }

        .cart-subtotal-row {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            margin-bottom: 6px;
        }

        .subtotal-label {
            font-size: 14px;
            font-weight: 600;
            color: #475569;
        }

        .subtotal-amount {
            font-size: 18px;
            font-weight: 800;
            color: #0f172a;
        }

        .cart-shipping-notice {
            font-size: 11.5px;
            color: #64748b;
            margin: 0 0 12px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .cart-shipping-notice i {
            color: #10b981;
        }

        .cart-footer-buttons {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .btn-drawer-checkout {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: 100%;
            padding: 12px;
            background: #0088cc;
            color: #ffffff;
            border-radius: 8px;
            font-size: 13.5px;
            font-weight: 700;
            text-decoration: none;
            transition: all 0.2s ease;
            box-shadow: 0 4px 12px rgba(0, 136, 204, 0.25);
            border: none;
            cursor: pointer;
        }
        .btn-drawer-checkout:hover {
            background: #0070a8;
            transform: translateY(-1px);
            box-shadow: 0 6px 16px rgba(0, 136, 204, 0.35);
            color: #ffffff;
        }

        .btn-drawer-viewcart {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            width: 100%;
            padding: 9px;
            background: #f8fafc;
            color: #334155;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            font-size: 12.5px;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.2s ease;
        }
        .btn-drawer-viewcart:hover {
            background: #f1f5f9;
            color: #0f172a;
            border-color: #cbd5e1;
        }

        @media (max-width: 480px) {
            .drawer {
                width: 100vw;
                right: -100vw;
                max-width: 100vw;
            }
            .drawer.open {
                transform: translateX(-100vw);
            }
        }

        /* --- MOBILE MENU DRAWER CONTENT --- */
        .mobile-menu-tabs {
            display: flex;
            border-bottom: 2px solid #eee;
            margin-bottom: 20px;
            flex-shrink: 0;
        }
        .tab-btn {
            flex: 1;
            padding: 12px;
            text-align: center;
            cursor: pointer;
            font-weight: bold;
            font-size: 14px;
            color: #888;
            transition: var(--transition);
        }
        .tab-btn.active {
            color: var(--black);
            border-bottom: 2px solid var(--primary-yellow);
        }
        .tab-content { display: none; }
        .tab-content.active { display: block; }

        .mobile-list-item {
            display: flex;
            align-items: center;
            justify-content: space-between; 
            padding: 15px 0;
            border-bottom: 1px solid #f5f5f5;
            font-size: 15px;
            font-weight: 500;
            cursor: pointer;
        }
        .mobile-list-item i.icon-left { width: 35px; color: #666; font-size: 18px; }
        
        .sub-menu {
            display: none;
            background: #f9f9f9;
            padding-left: 20px;
            border-bottom: 1px solid #eee;
        }
        .sub-menu.show { display: block; }
        .sub-menu a {
            display: block;
            padding: 10px 0;
            font-size: 14px;
            color: #555;
            border-bottom: 1px solid #eaeaea;
        }
        .sub-menu a:last-child { border-bottom: none; }

        /* --- CART DRAWER STYLES --- */
        .cart-item {
            display: flex;
            gap: 15px;
            margin-bottom: 15px;
            border-bottom: 1px solid #eee;
            padding-bottom: 15px;
        }
        .cart-img {
            width: 70px;
            height: 70px;
            background: #f4f4f4;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 5px;
        }
        .cart-details h4 { font-size: 14px; margin-bottom: 5px; }
        .cart-details p { font-size: 13px; color: #666; }
        .cart-footer {
            border-top: 1px solid #eee;
            padding-top: 15px;
            margin-top: auto; 
        }
        .btn-checkout {
            width: 100%;
            padding: 12px;
            background: var(--black);
            color: white;
            border: none;
            font-weight: bold;
            cursor: pointer;
            margin-top: 10px;
        }

        /* --- ACCOUNT DRAWER STYLES --- */
        .auth-toggle {
            text-align: center;
            margin-bottom: 20px;
            font-size: 14px;
        }
        .auth-toggle span { color: var(--blue-btn); cursor: pointer; font-weight: bold; }
        .auth-form input {
            width: 100%; padding: 12px; margin-bottom: 10px; border: 1px solid #ddd;
        }
        .auth-form button {
            width: 100%; padding: 12px; background: var(--black); color: white; border: none; font-weight: bold; cursor: pointer;
        }

        
        
        /* --- BOTTOM NAVIGATION (MOBILE ONLY) --- */
        .bottom-nav {
            display: none; 
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            background: white;
            box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
            z-index: 1050;
            justify-content: space-around;
            padding: 8px 0;
            border-top: 1px solid #eee;
        }
        
        .b-nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            font-size: 10px;
            color: #666;
            gap: 4px;
            position: relative;
        }
        
        .b-nav-item i { font-size: 20px; color: #444; }
        .b-nav-item.active { color: var(--black); font-weight: bold; }
        .b-nav-item.active i { color: var(--primary-yellow); }

        /* --- RESPONSIVE MOBILE --- */
        @media (max-width: 768px) {
            body { padding-bottom: 60px; }
            
            .top-header {
                padding: 10px 15px;
                display: flex;
                flex-direction: row;
                justify-content: space-between;
                gap: 10px;
            }
            .logo h2 { font-size: 18px; }
            .logo span { display: none; }

            /* --- MOBILE SEARCH OVERRIDES (Reverting to Pill with Button inside) --- */
            .search-container {
                margin: 0;
                max-width: none;
                gap: 0;
            }
            
            /* Change border color to yellow for mobile and adjust padding */
            .search-input-group {
                border: 2px solid var(--primary-yellow); 
                padding: 2px; 
                border-radius: 50px;
            }
            
            .search-input-group input {
                padding: 8px 8px 8px 8px; 
                font-size: 13px;
            }
            
            /* Hide Desktop Specific Elements */
            .search-icon-left { display: none !important; }
            .search-divider { display: none; }
            .category-select { display: none; }
            .btn-search-desktop { display: none; }

            /* Show Mobile Search Button */
            .btn-search-mobile {
                display: flex;
                position: absolute;
                right: 3px;
                top: 50%;
                transform: translateY(-50%);
                width: 32px;
                height: 32px;
                border-radius: 50%;
                padding: 0;
                align-items: center;
                justify-content: center;
                background: var(--blue-btn);
                color: white;
                border: none;
            }
            .btn-search-mobile i { font-size: 14px; }

            .header-actions { display: none; } 
            .main-nav { display: none; } 
            
            .mobile-menu-toggle { display: block; } 
            .bottom-nav { display: flex; } 

           

            .drawer { width: 85%; right: -85%; }
            .drawer.open { transform: translateX(-100%); }
            .dropdown-item-mobile{
                display: flex !important;
                align-items: center;
                gap: 8px;
                font-size: 13px;
                cursor: pointer;
            }
        }
        /* Container for the gift icon and dropdown */
        .language_header_top {
            display: flex;
            align-items: center;
            gap: 10px;
            font-family: Arial, sans-serif;
        }

        /* The Custom Dropdown Container */
        .custom-dropdown {
            position: relative;
        }

        /* The box that shows the currently selected item */
        .dropdown-selected {
            background-color: #fff;
            border: 1px solid #ccc;
            border-radius: 5px;
            padding: 5px 10px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            user-select: none;
        }

        /* The hidden list of options */
        .dropdown-options {
            display: none; /* Hidden by default */
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background-color: #fff;
            border: 1px solid #ccc;
            border-radius: 5px;
            margin-top: 5px;
            z-index: 100;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }

        /* Individual option items */
        .dropdown-item {
            padding: 8px 10px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: background 0.2s;
        }

        .dropdown-item:hover {
            background-color: #f0f0f0;
        }
        .dropdown-item-mobile{
            display: none;
            padding: 8px 10px;
            cursor: pointer;
            align-items: center;
            gap: 8px;
            transition: background 0.2s;
        }

        /* Flag Image Styling */
        .flag-img {
            width: 30px;
            height: 20px;
            object-fit: cover;
            border-radius: 2px;
            border: 1px solid #eee;
        }

        /* Show the list when active */
        .custom-dropdown.active .dropdown-options {
            display: block;
        }

   /* Header Design Finish */

/* --- SCOPED STYLES FOR MAIN SEARCHING SECTION --- */
.main_searchiing_section {
    background-color: #1a1a1a; /* Dark background */
    margin: 10px 5%;
    padding: 20px 0;
    border-radius: 7px;
    font-family: Arial, sans-serif; /* Ensuring basic font reset */
}

.all_departments_header {
    text-align: center;
    margin-bottom: 20px;
}

.all_departments_title2 {
    color: #fff;
    margin: 0;
}

.main_searchiing_container {
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: flex-end; /* Align inputs and button at the bottom */
    gap: 15px; /* Spacing between items */
}

/* --- FLEX SIZING CONTROLS --- */
/* Base item style */
.main_searchiing_item {
    display: flex;
    flex-direction: column;
}

/* Wide items (Inputs and Selects) take up most space */
.item-wide {
    flex: 2; 
}

/* Narrow items (Text Button) take up less space */
.item-narrow {
    flex: 1; 
}

/* Icon item takes up fixed space */
.item-icon {
    flex: 0 0 50px; /* Fixed width for icon button wrapper */
}

/* --- LABELS --- */
.main_searchiing_label {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
    white-space: nowrap;
}

/* --- INPUTS & SELECTS --- */
.main_searchiing_input, 
.main_searchiing_select {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: none;
    border-radius: 0; 
    font-size: 15px;
    color: #333;
    background-color: #fff;
    outline: none;
    box-sizing: border-box; /* Important for padding */
    -webkit-appearance: none;
    appearance: none;
}

.main_searchiing_input::placeholder {
    color: #888;
}

/* --- CUSTOM SELECT ARROW --- */
.main_searchiing_select_wrapper {
    position: relative;
    width: 100%;
}

.main_searchiing_select_wrapper::after {
    content: '\f078'; /* FontAwesome Chevron Down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
    font-size: 12px;
}

/* --- BUTTONS --- */
.main_searchiing_btn {
    width: 100%;
    height: 50px;
    background: linear-gradient(to right, #bf9e7b, #a67c52); /* Gold/Brown */
    color: white;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
    border-radius: 0;
    white-space: nowrap;
}

.main_searchiing_btn:hover {
    opacity: 0.9;
}

/* Specific style for the Icon Button */
.icon-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px; /* Larger icon size */
    padding: 0;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .main_searchiing_container {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    /* On mobile, reset specific widths so everything fills the screen */
    .item-wide, 
    .item-narrow, 
    .item-icon {
        flex: 1;
        width: 100%;
    }
}

/* --- SCOPED STYLES FOR DEPARTMENTS SECTION --- */
.all_departments_container {
    padding: 20px 5%;
    background-color: #fff;
    max-width: 1400px;
    margin: 0 auto;
    font-family: 'Segoe UI', sans-serif;
}

/* Header Section */
.all_departments_header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

.all_departments_title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.all_departments_subtitle {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}
.all_departments_header {
    text-align: center;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.all_departments_title2 {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
}

.all_departments_subtitle2 {
    font-size: 14px;
    color: #fff;
    font-weight: 400;
}

/* Grid Layout */
.all_departments_grid {
    display: grid;
    /* 6 columns as shown in the desktop screenshot */
    grid-template-columns: repeat(6, 1fr); 
    gap: 20px;
    margin-bottom: 20px;
}

/* Card Styles */
.all_departments_card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none; /* For anchor tags */
    height: 100%;
}

.all_departments_card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-color: #ccc;
    transform: translateY(-3px);
}

/* Icon Styles */
.all_departments_icon {
    font-size: 32px;
    color: #333;
    margin-bottom: 5px;
    /* Fixed height to ensure alignment */
    width: 120px;
    height: 120px; 
    display: flex;
    align-items: center;
    justify-content: center;
}
.all_departments_icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Card Label */
.all_departments_label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    line-height: 1.4;
}

/* View More Link */
.all_departments_footer {
    text-align: right;
    margin-top: 10px;
}

.all_departments_view_more {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.all_departments_view_more:hover {
    color: #0088cc; /* Branding blue */
}

/* --- RESPONSIVE MEDIA QUERIES --- */

/* Tablet / Small Desktop (Break down to 3 columns) */
@media (max-width: 1100px) {
    .all_departments_grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablet (Break down to 3 columns) */
@media (max-width: 900px) {
    .all_departments_grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile (Break down to 2 columns) */
@media (max-width: 600px) {
    .all_departments_container {
        padding: 30px 15px;
    }
    .all_departments_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .all_departments_title {
        font-size: 22px;
    }
    .all_departments_card {
        padding: 20px 10px;
    }
    .all_departments_icon {
        font-size: 28px;
    }
}
  
/* --- SCOPED STYLES FOR LATEST PRODUCTS --- */
        .latest_products_section {
            padding: 20px 5%;
            background-color: #f4f6f9; /* Slightly cooler gray for modern feel */
            font-family: 'Segoe UI', sans-serif;
            max-width: 1600px;
            margin: 0 auto;
            position: relative;
        }

        /* Header */
        .latest_products_header { text-align: center; margin-bottom: 40px; }
        .latest_products_title { font-size: 30px; font-weight: 800; color: #1a1a1a; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
        .latest_products_subtitle { font-size: 15px; color: #666; max-width: 600px; margin: 0 auto; }

        /* Grid (5 Desktop / 3 Tablet / 2 Mobile) */
        .latest_products_grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 5px;
        }

        /* --- CARD UI/UX STYLES --- */
        .latest_products_card {
            background: white;
            border-radius: 12px; /* Softer corners */
            /* Removed border, using soft shadow instead for clean look */
            box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
            overflow: hidden;
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smoother transition */
            display: flex;
            flex-direction: column;
            position: relative;
            height: 100%;
        }
        
        /* Hover Effect: Lift up more meaningfully */
        .latest_products_card:hover {
            box-shadow: 0 15px 30px rgba(0,0,0,0.1);
            transform: translateY(-7px);
        }

        /* Image Box */
        .latest_products_img_box {
            background: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
            width: 100%;
            height: 200px;
        }
        .latest_products_img_box img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.4s ease;
        }
        .latest_products_card:hover .latest_products_img_box img { transform: scale(1.05); }

        /* --- QUICK VIEW BUTTON (EYE) - TOP RIGHT POSITION --- */
        .quick_view_btn {
            position: absolute;
            top: 12px; /* Positioning from top */
            right: 12px; /* Positioning from right */
            
            /* Initial state for animation: slightly hidden upwards and transparent */
            transform: translateY(-10px);
            opacity: 0;
            
            background: rgba(255, 255, 255, 0.95);
            color: #333;
            width: 40px; /* Slightly smaller, sleeker */
            height: 40px;
            border-radius: 50%;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            transition: all 0.3s ease;
            z-index: 5;
        }
        .quick_view_btn i { font-size: 16px; }
        
        /* Show on Hover: Slide down into place */
        .latest_products_img_box:hover .quick_view_btn {
            transform: translateY(0);
            opacity: 1;
        }
        
        .quick_view_btn:hover {
            background: #ffcc00;
            color: #1a1a1a;
            box-shadow: 0 6px 15px rgba(255, 204, 0, 0.4); /* Colored shadow on hover */
        }

        /* Badge (Top Left) */
        .latest_products_badge {
            position: absolute; top: 12px; left: 12px; background: #ffcc00; color: #1a1a1a; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; text-transform: uppercase; z-index: 2; box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        .badge-sale { background: #e60000; color: white; }

        /* Content */
        .latest_products_content { padding: 18px; flex: 1; display: flex; flex-direction: column; }
        .latest_products_category { font-size: 12px; color: #999; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }

        /* Title Link */
        .latest_products_name a {
            font-size: 15px; font-weight: 700; color: #333; text-decoration: none; line-height: 1.4;
            display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
            height: 42px; transition: color 0.2s;
        }
        .latest_products_name a:hover { color: #ffcc00; }

        .latest_products_rating { color: #ffcc00; font-size: 12px; margin-bottom: 10px; margin-top: 8px; }
        .latest_products_price { font-size: 18px; font-weight: 800; color: #e60000; margin-bottom: 18px; display: flex; align-items: center; }
        .latest_products_old_price { font-size: 13px; color: #aaa; text-decoration: line-through; font-weight: 400; margin-left: 8px; }

        /* Actions */
        .latest_products_actions { display: flex; gap: 10px; margin-top: auto; }
        .latest_products_btn {
            flex: 1; padding: 10px 0; font-size: 13px; font-weight: 700; border-radius: 6px; /* Softer corners */
            cursor: pointer; text-align: center; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 6px; border: none; white-space: nowrap;
        }
        .latest_products_cart_btn { background-color: #f4f4f4; color: #333; }
        .latest_products_cart_btn:hover { background-color: #e0e0e0; color: #000; }
        
        .latest_products_buy_btn { background-color: #0088cc; color: white; }
        .latest_products_buy_btn:hover { background-color: #08608b; color: #1a1a1a; box-shadow: 0 4px 12px rgba(255, 204, 0, 0.3); }


        /* --- MODAL STYLES (Kept mostly same, just ensured clean UI) --- */
        .product_modal_overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.3s ease; padding: 20px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
        .product_modal_overlay.active { opacity: 1; visibility: visible; }
        .product_modal_content { background: white; width: 950px; max-width: 100%; border-radius: 12px; overflow: hidden; display: flex; position: relative; transform: scale(0.95); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); max-height: 90vh; overflow-y: auto; box-shadow: 0 25px 50px rgba(0,0,0,0.2); }
        .product_modal_overlay.active .product_modal_content { transform: scale(1); }
        .modal_close_btn { position: absolute; top: 20px; right: 20px; font-size: 28px; cursor: pointer; color: #999; z-index: 10; background: none; border: none; transition: color 0.2s; }
        .modal_close_btn:hover { color: #e60000; }
        .modal_left { width: 50%; background: #fff; display: flex; align-items: center; justify-content: center; padding: 40px; border-right: 1px solid #eee; }
        .modal_left img { max-width: 100%; max-height: 450px; object-fit: contain; }
        .modal_right { width: 50%; padding: 50px; display: flex; flex-direction: column; justify-content: center; }
        .modal_title { font-size: 26px; font-weight: 800; margin-bottom: 15px; line-height: 1.2; color: #1a1a1a; }
        .modal_price { font-size: 28px; color: #e60000; font-weight: 800; margin-bottom: 25px; }
        .modal_desc { font-size: 15px; color: #666; line-height: 1.7; margin-bottom: 30px; }
        .modal_meta { font-size: 13px; color: #888; margin-bottom: 8px; }
        .modal_meta span { color: #333; font-weight: 600; }

        /* Responsive Grid & Modal */
        @media (max-width: 1300px) { 
            .latest_products_grid { grid-template-columns: repeat(5, 1fr); } 
            .latest_products_img_box { height: 190px; }
        }
        @media (max-width: 992px) { 
            .latest_products_grid { grid-template-columns: repeat(3, 1fr); } 
            .latest_products_img_box { height: 180px; }
        }
        @media (max-width: 892px) { 
            .product_modal_content { flex-direction: column; width: 550px; }
            .modal_left, .modal_right { width: 100%; border-right: none; }
            .modal_left { padding: 30px; height: 300px; border-bottom: 1px solid #eee; }
            .modal_right { padding: 30px; }
        }
        @media (max-width: 768px) {
            .latest_products_section { padding: 40px 3%; }
            .latest_products_grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
            .latest_products_img_box { height: 170px; }
        }
        @media (max-width: 480px) {
             .latest_products_title { font-size: 24px; }
             .latest_products_img_box { height: 150px; }
             .latest_products_content { padding: 15px; }
             .latest_products_btn { padding: 8px 0; font-size: 12px; }
        }