@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

:root {
    --primary-color: #F36621;
    /* Orange */
    --secondary-color: #2E2E2E;
    /* Dark Grey/Black */
    --light-grey: #f5f5f5;
    --border-color: #e0e0e0;
    --white: #ffffff;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Rubik", sans-serif;
}

html {
    font-size: 15px;
}

body {
    background-color: var(--white);
    color: var(--secondary-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 0;
    font-size: 0.85rem;
    font-weight: 500;
    height: 30px;
    overflow: hidden;
    width: 100%;
}

.top-bar-slider {
    display: flex;
    flex-direction: row;
    width: 300%;
    height: 100%;
    animation: topBarSlide 4.5s infinite ease-in-out;
}

.top-bar-item {
    flex: 0 0 33.3333%;
    width: 33.3333%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

@keyframes topBarSlide {

    0%,
    40% {
        transform: translateX(0);
    }

    50%,
    90% {
        transform: translateX(-33.3333%);
    }

    100% {
        transform: translateX(-66.6666%);
    }
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 80px;
    /* Balanced bar height */
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 75px;
    /* Better fit for 80px navbar */
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-speed);
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a,
.nav-links span.dropdown-toggle {
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    cursor: pointer;
}

.nav-links a:hover,
.nav-links span.dropdown-toggle:hover {
    color: var(--primary-color);
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    position: relative;
    transition: transform 0.2s;
}

.icon-btn:hover {
    transform: scale(1.1);
    color: var(--primary-color);
}

.badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Slider */
.hero-slider {
    width: 100%;
    height: auto;
    /* Auto height based on content */
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    overflow: hidden;
    background: #f0f0f0;
}

.slide {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: auto;
    /* Let image define height */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    visibility: hidden;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    position: relative;
}

.slide img {
    /* Ensure image fills the slide */
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    /* Show full image */
}

/* Remove dedicated media query for slider height since it's now auto */


/* Cart Drawer */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-speed);
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    /* Hidden by default */
    width: 350px;
    height: 100%;
    background: var(--white);
    z-index: 999;
    transition: var(--transition-speed);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.cart-active .cart-overlay {
    opacity: 1;
    visibility: visible;
}

.cart-active .cart-drawer {
    right: 0;
}

.cart-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-body {
    flex: 1;
    padding: 10px 20px;
    overflow-y: auto;
    display: block;
    text-align: left;
}

.cart-drawer-item:last-child {
    border-bottom: none;
}

.cart-qty-selector button:active {
    background: #e0e0e0 !important;
    transform: scale(0.95);
}

.cart-remove-btn {
    transition: 0.3s;
}

.cart-remove-btn:hover {
    background: #ffebeb !important;
    border-color: #f5c6cb !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(231, 76, 60, 0.1);
}

.cart-drawer-item {
    transition: background 0.3s ease;
}

.cart-drawer-item:hover {
    background: #fafafa;
}

.cart-footer {
    padding: 25px 20px 30px;
    border-top: 1px solid var(--border-color);
    background: var(--white);
}

.checkout-btn {
    display: block;
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    padding: 15px;
    text-align: center;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.checkout-btn:hover {
    background: #d64d0d;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    padding-top: 100px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.4s, visibility 0.4s;
}

.search-active .search-overlay {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.search-container {
    width: 90%;
    max-width: 800px;
    position: relative;
}

.search-header {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 12px 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.search-header:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(243, 102, 33, 0.1);
}

.search-icon-large {
    font-size: 1.2rem;
    color: #94a3b8;
    margin-right: 15px;
}

.search-input {
    width: 100%;
    border: none;
    font-size: 1.2rem;
    background: transparent;
    padding: 0;
    outline: none;
    color: #334155;
    font-weight: 400;
}

.search-input::placeholder {
    color: #94a3b8;
}

.search-close {
    position: absolute;
    top: -60px;
    right: 0;
    font-size: 1.8rem;
    background: #f5f5f5;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.search-close:hover {
    background: #eee;
    transform: rotate(90deg);
}

/* Live Search Results */
.live-search-results {
    max-height: 70vh;
    overflow-y: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 10px;
    display: none;
    /* Shown via JS */
}

.live-search-results.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
    border-bottom: 1px solid #f9f9f9;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f8f8f8;
}

.search-result-img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    margin-right: 15px;
    background: #f5f5f5;
}

.search-result-info {
    flex: 1;
}

.search-result-name {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: #111;
    margin-bottom: 2px;
}

.search-result-cat {
    display: block;
    font-size: 0.75rem;
    color: #888;
}

.search-result-price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.search-no-results {
    padding: 30px;
    text-align: center;
    color: #666;
}

.search-loading {
    padding: 20px;
    text-align: center;
    color: #888;
}

.search-view-all {
    display: block;
    text-align: center;
    padding: 15px;
    background: #fdfaf9;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 10px;
    border-radius: 8px;
    transition: 0.3s;
}

.search-view-all:hover {
    background: #fff0ea;
}

/* Categories Section */
.categories-section {
    padding: 40px 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--light-grey);
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    transition: 0.3s;
    cursor: pointer;
}

.category-card:hover {
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .nav-links {
        display: none !important;
    }

    .menu-toggle {
        display: block;
    }

    .cart-drawer {
        width: 100%;
        /* Full width on mobile */
    }

    .logo {
        font-size: 1.35rem;
    }
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 101;
    padding: 10px 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
    position: relative;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--secondary-color);
    font-size: 0.95rem;
    transition: all 0.2s;
    border-bottom: 1px solid #f9f9f9;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background: #fff5f0;
    color: var(--primary-color);
    padding-left: 25px;
}

/* Submenu / Second Level */
.dropdown-menu .submenu {
    position: absolute;
    top: 0;
    left: 100%;
    background: var(--white);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.08);
    border-left: 1px solid #eee;
    width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(15px);
    transition: all 0.3s ease;
    z-index: 102;
    padding: 10px 0;
    min-height: 100%;
}

.dropdown-menu li:hover>.submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.dropdown-menu .submenu li a {
    padding: 8px 25px;
    font-size: 0.9rem;
}


/* Force FontAwesome Font Family */
.fas,
.far {
    font-family: 'Font Awesome 6 Free' !important;
}

.fab {
    font-family: 'Font Awesome 6 Brands' !important;
}

.fas,
.fab {
    font-weight: 900 !important;
}

.far {
    font-weight: 400 !important;
}

/* Product Grid & Cards V2 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.product-card-v2 {
    background: #fdfaf9;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.product-card-v2:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.product-img-wrapper {
    background: white;
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 12px;
    position: relative;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.discount-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #004a8c;
    color: white;
    padding: 4px 12px;
    border-radius: 5px 0 10px 0;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
}

.product-title-v2 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price-v2 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.old-price-v2 {
    text-decoration: line-through;
    color: #888;
    font-size: 0.85rem;
}

.current-price-v2 {
    font-weight: 700;
    color: #111;
    font-size: 1.1rem;
}

.add-btn-v2 {
    background: #444;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 auto;
    transition: all 0.22s;
}

.add-btn-v2:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card-v2 {
        padding: 10px;
    }

    .product-img-wrapper {
        height: 140px;
    }

    .product-title-v2 {
        font-size: 0.85rem;
    }
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #333;
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    animation: slideIn 0.4s ease forwards;
}

.toast-notification.error {
    background: #e74c3c;
}

.toast-notification.success {
    background: #27ae60;
}

.toast-notification.fade-out {
    animation: slideOut 0.4s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.view-cart-btn:hover {
    background: #f5f5f5;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

.checkout-btn-v3 {
    background: var(--primary-color) !important;
    color: white !important;
    border-radius: 40px;
    font-weight: 500;
    text-transform: uppercase;
    transition: 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-btn-v3:hover {
    background: #e65100 !important;
    /* Slightly darker orange for better contrast on hover */
    color: white !important;
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(243, 102, 33, 0.3);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

/* Minimum Order Notification Bar */
.min-order-wrapper {
    background: #fdfaf9;
    border-top: 1px solid #f0f0f0;
    padding: 10px 5% 12px;
    transition: all 0.3s ease;
}

.min-order-content {
    max-width: 1200px;
    margin: 0 auto;
}

.min-order-status {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: #444;
}

.min-order-status i {
    color: var(--primary-color);
}

.min-order-text strong {
    color: #111;
}

.progress-container {
    height: 4px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #F36621, #ff8c52);
    width: 0;
    transition: width 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (max-width: 768px) {
    .min-order-status {
        justify-content: center;
        font-size: 0.8rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .navbar {
        padding: 17px 5%;
        height: auto;
        min-height: 60px;
    }
}

/* Subcategory Navigation Boxes */
.subcategory-list {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 10px 0 15px;
    margin-bottom: 25px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f0f0f0;
    -webkit-overflow-scrolling: touch;
}

.subcategory-list::-webkit-scrollbar {
    height: 4px;
}

.subcategory-list::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.subcategory-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.subcategory-box {
    flex: 0 0 auto;
    padding: 6px 15px;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 500;
    background: white;
    transition: all 0.2s;
    white-space: nowrap;
}

.subcategory-box:hover,
.subcategory-box.active {
    background: var(--primary-color);
    color: white;
}

/* Mobile Menu Drawer Styles */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.mobile-menu-drawer {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100%;
    background: var(--white);
    z-index: 9999;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.menu-active {
    overflow: hidden;
}

.menu-active .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
}

.menu-active .mobile-menu-drawer {
    left: 0;
}

.mobile-menu-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.close-menu {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #333;
    cursor: pointer;
}

.mobile-menu-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
}

.mobile-nav-list li {
    border-bottom: 1px solid #f9f9f9;
}

.mobile-nav-list li a {
    display: block;
    padding: 15px 25px;
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.2s;
}

.mobile-nav-list li a:active,
.mobile-nav-list li a.active {
    background: #fff5f0;
    color: var(--primary-color);
}

.mobile-has-submenu .submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-has-submenu i {
    padding: 15px 25px;
    cursor: pointer;
    transition: transform 0.3s;
}

.mobile-has-submenu.open i {
    transform: rotate(180deg);
}

.mobile-submenu {
    display: none;
    list-style: none;
    padding: 0;
    background: #fdfdfd;
}

.mobile-has-submenu.open>.mobile-submenu {
    display: block;
}

.mobile-submenu li a {
    padding-left: 45px;
    font-size: 0.9rem;
    color: #666;
}

/* Category Slider Styles */
.category-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.category-track {
    display: flex;
    gap: 30px;
    /* Increased gap for cleaner look */
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px;
    scrollbar-width: none;
}

.category-track::-webkit-scrollbar {
    display: none;
}

.category-slide {
    text-decoration: none;
    color: inherit;
    flex: 0 0 auto;
    width: 140px;
    /* Mobile default */
}

@media (min-width: 992px) {
    .category-slide {
        width: calc((100% - 120px) / 5);
        /* 5 items with 30px gap (4 gaps = 120px) */
    }
}

.category-card-slide {
    background: transparent;
    /* Transparent background */
    padding: 0;
    /* Removing padding */
    border-radius: 0;
    box-shadow: none;
    /* No shadow */
    text-align: center;
    transition: transform 0.3s ease;
    border: none;
    /* No border */
    height: auto;
}

.category-card-slide:hover {
    transform: translateY(-5px);
    box-shadow: none;
    border-color: transparent;
}

.cat-img-box {
    width: 100%;
    height: 220px;
    /* further increased height */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.cat-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
    /* Add shadow to image directly */
}

.category-card-slide h3 {
    font-size: 0.95rem;
    /* Slightly larger text */
    font-weight: 600;
    color: #111;
    /* Darker text */
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    /* Hidden by default */
    visibility: hidden;
    transition: all 0.3s ease;
}

.category-slider-container:hover .slider-arrow {
    opacity: 1;
    visibility: visible;
}

.prev-arrow {
    left: 10px;
}

.next-arrow {
    right: 10px;
}

.slider-arrow:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Mobile Category Grid */
@media (max-width: 768px) {
    .section-title {
        display: none !important;
        /* Hide title on mobile */
    }

    .category-slider-container {
        padding: 5px;
    }

    .category-track {
        display: grid;
        grid-template-columns: repeat(3, 1fr) !important;
        /* 3 Columns */
        gap: 10px;
        overflow: visible;
        /* Disable scroll */
        padding: 0;
    }

    /* Disable slider JS effects via CSS overrides where possible */
    .category-slide {
        width: 100% !important;
        /* Override JS/Desktop width */
        flex: none;
        margin: 0 !important;
    }

    .category-card-slide {
        background: #FFF5F0;
        /* Light peach/pink background */
        border-radius: 8px;
        padding: 10px;
        border: none;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
    }

    .cat-img-box {
        height: 80px;
        /* Smaller height for mobile */
        margin-bottom: 5px;
        width: 100% !important;
    }

    .category-card-slide h3 {
        font-size: 0.8rem;
        white-space: normal;
        /* Allow text wrap */
        line-height: 1.2;
        color: #333;
    }

    /* Hide arrows on mobile */
    .slider-arrow {
        display: none !important;
    }
}

/* --- Home Showcase Banners --- */
.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 10px;
}

.showcase-item {
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.showcase-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.showcase-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.small-showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 10px;
}

/* --- Product Scroll Slider --- */
.product-slider-wrapper {
    position: relative;
    padding: 0 10px;
}

.product-slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 15px;
    padding: 10px 5px;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.product-slider::-webkit-scrollbar {
    display: none;
}

.product-card-slide {
    flex: 0 0 calc(12.5% - 14px);
    /* 8 items per row */
    min-width: calc(12.5% - 14px);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 10px;
    text-align: center;
    position: relative;
    transition: transform 0.2s;
    border: 1px solid #eee;
}

.product-card-slide:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.product-img-box {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.product-img-box img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.product-title-sm {
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 5px;
    height: 32px;
    /* 2 lines */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price-sm {
    font-size: 0.9rem;
    font-weight: bold;
    color: #333;
}

.add-btn-sm {
    background: #333;
    color: #fff;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    font-size: 0.7rem;
    cursor: pointer;
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.add-btn-sm:hover {
    background: var(--primary-color);
}

/* Slider Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #eee;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
    opacity: 0;
    /* Hidden by default */
    transition: opacity 0.3s, background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-slider-wrapper:hover .slider-btn {
    opacity: 1;
    /* Show on hover */
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

.slider-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

@media (max-width: 768px) {
    .product-card-slide {
        flex: 0 0 calc(50% - 14px);
        /* 2 items per row */
        min-width: calc(50% - 14px);
    }

    .slider-btn {
        display: none !important;
        /* Hide arrows on mobile */
    }
}

@media (max-width: 768px) {

    .showcase-grid,
    .small-showcase-grid {
        grid-template-columns: 1fr;
    }
}

/* Update Beverages CSS to match Breakfast Corner (V2) */
.product-card-slide {
    background: #fdfaf9 !important;
    border: 1px solid #f0f0f0 !important;
    border-radius: 12px !important;
    padding: 12px !important;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-img-box {
    height: 160px !important;
    background: white;
    border-radius: 8px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.product-title-sm {
    font-size: 0.95rem !important;
    height: 40px !important;
    font-weight: 600 !important;
    margin-bottom: 5px;
}

.product-price-sm {
    font-size: 1rem !important;
    margin-bottom: 10px;
}

.add-btn-sm {
    width: 35px !important;
    height: 35px !important;
    background: #444 !important;
    border-radius: 50% !important;
    margin: 0 auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.add-btn-sm:hover {
    background: var(--primary-color) !important;
    transform: scale(1.1);
}

/* Global Product Card Styles (Standardized to Match Beverages Corner) */
.product-card-slide,
.product-card-v2,
.product-card {
    background: #fdfaf9 !important;
    border: 1px solid #f0f0f0 !important;
    border-radius: 12px !important;
    padding: 12px !important;
    min-height: 320px !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: none;
    position: relative;
    text-decoration: none;
    flex: 0 0 auto;
}

/* Specific flex basis for slider */
.product-card-slide {
    flex: 0 0 calc(12.5% - 14px);
    /* 8 items per row */
    min-width: calc(12.5% - 14px);
}

.product-card-slide:hover,
.product-card-v2:hover,
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Image Wrappers */
.product-img-box,
.product-img-wrapper {
    height: 160px !important;
    background: white;
    border-radius: 8px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    width: 100%;
}

.product-img-box img,
.product-img-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Titles */
.product-title-sm,
.product-title-v2,
.product-title {
    font-size: 0.95rem !important;
    height: 40px !important;
    font-weight: 600 !important;
    margin-bottom: 5px;
    color: #333;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-decoration: none;
}

/* Prices */
.product-price-sm,
.product-price-v2,
.product-price {
    font-size: 1rem !important;
    font-weight: bold;
    color: #111;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* Add Buttons */
.add-btn-sm,
.add-btn-v2,
.add-btn {
    width: 35px !important;
    height: 35px !important;
    background: #444 !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    margin: 0 auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.add-btn-sm:hover,
.add-btn-v2:hover,
.add-btn:hover {
    background: var(--primary-color) !important;
    transform: scale(1.1);
}

/* Mobile Responsive Overrides */
@media (max-width: 768px) {
    .product-card-slide {
        flex: 0 0 calc(50% - 14px);
        min-width: calc(50% - 14px);
    }

    /* Ensure Product Grid is 2 columns on mobile */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .product-card-v2,
    .product-card {
        min-height: 300px !important;
    }

    .product-img-box,
    .product-img-wrapper {
        height: 140px !important;
    }
}


/* Global Product Card Styles (Matches User Provided CSS) */
.product-card-slide,
.product-card-v2,
.product-card {
    text-align: center;
    background-color: #f9f5f5 !important;
    border-radius: 16px !important;
    padding: 8px !important;
    margin: 6px 0;
    position: relative;
    box-shadow: none !important;
    border: 1px solid rgb(239, 239, 239) !important;
    min-height: 350px !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    text-decoration: none;
    flex: 0 0 auto;
}

/* Hover Effect (Optional - keeping subtle lift) */
.product-card-slide:hover,
.product-card-v2:hover,
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05) !important;
    background-color: #fff !important;
}

/* Specific flex basis for slider - 5 Items per row */
.product-card-slide {
    flex: 0 0 calc(20% - 14px);
    min-width: calc(20% - 14px);
}

/* Image Wrappers */
.product-img-box,
.product-img-wrapper {
    height: 180px !important;
    /* Balanced for 350px card */
    background: white;
    border-radius: 12px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    width: 100%;
}

.product-img-box img,
.product-img-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Titles */
.product-title-sm,
.product-title-v2,
.product-title {
    font-size: 1rem !important;
    height: 44px !important;
    font-weight: 600 !important;
    margin-bottom: 8px;
    color: #333;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-decoration: none;
    line-height: 1.3;
}

/* Prices */
.product-price-sm,
.product-price-v2,
.product-price {
    font-size: 1.1rem !important;
    font-weight: bold;
    color: #111;
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* Add Buttons */
.add-btn-sm,
.add-btn-v2,
.add-btn {
    width: 40px !important;
    height: 40px !important;
    background: #444 !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    margin: 0 auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem !important;
}

.add-btn-sm:hover,
.add-btn-v2:hover,
.add-btn:hover {
    background: var(--primary-color) !important;
    transform: scale(1.1);
}

/* User's Mobile Media Query Logic */
@media only screen and (max-width: 1200px) {

    .product-card-slide,
    .product-card-v2,
    .product-card {
        min-height: 290px !important;
    }
}

/* Mobile Responsive Overrides */
@media (max-width: 768px) {
    .product-card-slide {
        flex: 0 0 calc(50% - 14px);
        min-width: calc(50% - 14px);
    }

    /* Ensure Product Grid is 2 columns on mobile */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .product-card-v2,
    .product-card {
        padding: 8px !important;
    }

    .product-img-box,
    .product-img-wrapper {
        height: 140px !important;
        padding: 5px;
    }

    .add-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.9rem !important;
    }

    .navbar {
        height: 55px !important;
    }

    .logo-img {
        height: 100px !important;
        margin: -22.5px 0 !important;
    }
}

/* Container Max Width to prevent zoom-out stretching */
.container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Ensure Desktop Product Grid is 5 Columns */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-top: 20px;
}


/* Specific flex basis for slider - 8 Items per row for Beverages Corner */
.product-card-slide {
    flex: 0 0 calc(12.5% - 14px);
    /* Back to 8 items per row */
    min-width: calc(12.5% - 14px);
}


/* Global Product Card Styles (Matches User Provided CSS - Compact) */
.product-card-slide,
.product-card-v2,
.product-card {
    text-align: center;
    background-color: #f9f5f5 !important;
    border-radius: 16px !important;
    padding: 10px !important;
    margin: 6px 0;
    position: relative;
    box-shadow: none !important;
    border: 1px solid rgb(239, 239, 239) !important;
    min-height: 290px !important;
    /* Compact Height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    text-decoration: none;
    flex: 0 0 auto;
}

/* Hover Effect (Optional - keeping subtle lift) */
.product-card-slide:hover,
.product-card-v2:hover,
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05) !important;
    background-color: #fff !important;
}

/* Specific flex basis for slider - 8 Items per row for Beverages Corner */
.product-card-slide {
    flex: 0 0 calc(12.5% - 14px);
    min-width: calc(12.5% - 14px);
}

/* Image Wrappers */
.product-img-box,
.product-img-wrapper {
    height: 140px !important;
    /* Smaller Image Box */
    background: white;
    border-radius: 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    width: 100%;
}

.product-img-box img,
.product-img-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Titles */
.product-title-sm,
.product-title-v2,
.product-title {
    font-size: 0.9rem !important;
    height: 25px !important;
    /* Reduced height for single line */
    font-weight: 600 !important;
    margin-bottom: 6px;
    color: #333;
    overflow: hidden;
    white-space: nowrap;
    /* Force single line */
    text-overflow: ellipsis;
    /* Add ... if text overflows */
    display: block;
    /* Required for text-overflow to work */
    text-decoration: none;
    line-height: 1.3;
    padding: 0 5px;
    /* Add slight padding */
}

/* Prices */
.product-price-sm,
.product-price-v2,
.product-price {
    font-size: 0.95rem !important;
    font-weight: bold;
    color: #111;
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* Add Buttons */
.add-btn-sm,
.add-btn-v2,
.add-btn {
    width: 35px !important;
    /* Compact Button */
    height: 35px !important;
    background: #444 !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    margin: 0 auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem !important;
}

.add-btn-sm:hover,
.add-btn-v2:hover,
.add-btn:hover {
    background: var(--primary-color) !important;
    transform: scale(1.1);
}


/* Refinement: Wider Container for slightly wider cards + Reduced Height */
.container {
    max-width: 1650px !important;
    /* Widen container to give cards more breathing room */
    width: 98% !important;
}

.product-card-slide,
.product-card-v2,
.product-card {
    min-height: 260px !important;
    /* Reduced Height further */
}

.product-img-box,
.product-img-wrapper {
    height: 120px !important;
    /* Slightly smaller image to match reduced height */
}

/* Exact Dimensions Fix: 144px width x 260px height */
.product-card-slide {
    width: 144px !important;
    max-width: 144px !important;
    min-width: 144px !important;
    /* Force exact width */
    min-height: 260px !important;
    flex: 0 0 144px !important;
    /* Override percentage flex */
    padding: 5px !important;
    /* Reduced padding for narrow card */
}

/* Adjust image to fit narrow card */
.product-card-slide .product-img-box,
.product-card-slide .product-img-wrapper {
    height: 120px !important;
    padding: 2px !important;
}

/* Adjust title font for narrow card */
.product-card-slide .product-title-sm {
    font-size: 0.85rem !important;
}

/* Restore container to standard width to avoid excessive whitespace */
.container {
    max-width: 1280px !important;
    /* Standard width aligns better with small cards */
}


/* Mobile Fixes for Beverages Corner & Arrows */
@media (max-width: 768px) {
    .section-title {
        display: block !important;
        text-align: left;
        padding-left: 10px;
        margin-bottom: 15px;
    }

    .slider-arrow,
    .slider-btn {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        width: 35px;
        height: 35px;
        background: rgba(255, 255, 255, 0.95);
        color: #333;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        border-radius: 50%;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 50;
        align-items: center;
        justify-content: center;
    }

    .prev-btn {
        left: 5px;
    }

    .next-btn {
        right: 5px;
    }
}

/* Product Grid for Category Pages */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-top: 20px;
}

/* Reset individual card widths in grid to allow grid to control them */
.product-grid .product-card-v2 {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: none !important;
    margin: 6px 0 !important;
    min-height: 350px !important;
    padding: 8px !important;
}

/* Adjust image box to fit taller card */
.product-grid .product-card-v2 .product-img-wrapper {
    height: 180px !important;
}

@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Subcategory List Styles */
.subcategory-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 5px;
    margin-bottom: 25px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.subcategory-list::-webkit-scrollbar {
    display: none;
}

.subcategory-box {
    padding: 10px 20px;
    background: #fff;
    border: 1px solid var(--primary-color);
    /* Orange border like image */
    border-radius: 4px;
    /* Square/slightly rounded like image */
    text-decoration: none;
    color: var(--primary-color);
    /* Orange text like image */
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subcategory-box:hover,
.subcategory-box.active {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(243, 102, 33, 0.2);
}

.subcategory-box.active {
    background: #2b67d5 !important;
    /* Blue background like the user image for active state */
    border-color: #2b67d5 !important;
    color: #fff !important;
}

/* Product Image Zoom */
.zoom-container {
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
}

.zoom-image {
    transition: transform 0.3s ease-out;
    pointer-events: none;
}

.zoom-container:hover .zoom-image {
    transform: scale(2);
}

/* Sales Notifications */
.sales-notification {
    position: fixed;
    bottom: 110px;
    left: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 15px;
    width: 320px;
    z-index: 9999;
    animation: sn-slide-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
}

.sn-content {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.sn-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sn-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.sn-text {
    flex: 1;
}

.sn-buyer {
    font-size: 0.85rem;
    color: #555;
    margin: 0;
}

.sn-product {
    font-size: 0.9rem;
    color: #111;
    margin: 2px 0;
    line-height: 1.2;
}

.sn-time {
    font-size: 0.75rem;
    color: #888;
    margin: 0;
}

.sn-close {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
    color: #ccc;
    font-size: 1.2rem;
}

.sn-close:hover {
    color: #666;
}

.sn-fade-out {
    animation: sn-fade-out 0.5s forwards;
}

@keyframes sn-slide-in {
    from {
        transform: translateX(-120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes sn-fade-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(-20px);
        opacity: 0;
    }
}
/* Search Page Refinement */
.search-page-header { margin-bottom: 40px; }
.search-page-bar-wrapper { max-width: 600px; margin: 0 auto; position: relative; }
.search-page-form { position: relative; display: flex; align-items: center; }
.search-page-input { width: 100%; padding: 15px 50px 15px 25px; border: 1.5px solid #ddd; border-radius: 40px; font-size: 1.1rem; outline: none; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
.search-page-input:focus { border-color: var(--primary-color); box-shadow: 0 4px 20px rgba(243, 102, 33, 0.1); }
.search-page-submit { position: absolute; right: 20px; background: none; border: none; font-size: 1.2rem; color: #888; cursor: pointer; transition: color 0.3s; }
.search-page-submit:hover { color: var(--primary-color); }

/* Responsive Notifications */
@media (max-width: 768px) {
    .sales-notification { width: 260px; padding: 10px; bottom: 100px; left: 10px; }
    .sn-image { width: 45px; height: 45px; }
    .sn-buyer { font-size: 0.75rem; }
    .sn-product { font-size: 0.8rem; }
    .sn-time { font-size: 0.65rem; }
    .sn-close { font-size: 1rem; top: 2px; right: 8px; }
}
