



.product-price {
            color: #2EB7EB;
            font-weight: 600;
        }
        .was-price {
            text-decoration: line-through;
            color: #999;
            font-size: 0.7em;
        }
        .free-shipping {
            color: #14A44D;
            font-size: 0.85em;
        }
        .badge-stock {
            font-size: 0.75em;
            padding: 3px 8px;
        }
        .quantity-input {
            max-width: 70px;
        }
        
        /* Mobile header styles */
        @media (max-width: 991px) {
            .mobile-topbar {
                display: flex !important;
                background: #f8f8f8;
                border-bottom: 1px solid #ebebeb;
                padding: 8px 0;
                min-height: 40px;
                align-items: center;
            }
            .mobile-topbar .container {
                display: flex;
                justify-content: space-between;
                align-items: center;
                width: 100%;
                padding: 0 15px;
            }
            .mobile-topbar .header-left,
            .mobile-topbar .header-right {
                flex: 1;
                display: flex;
                align-items: center;
            }
            .mobile-topbar .header-left {
                justify-content: flex-start;
            }
            .mobile-topbar .header-right {
                justify-content: flex-end;
            }
            .mobile-topbar a {
                color: #333;
                font-size: 13px;
                text-decoration: none;
                display: flex;
                align-items: center;
                white-space: nowrap;
            }
            .mobile-topbar a:hover {
                color: #2EB7EB;
            }
            
            .mobile-topbar .top-menu {
                margin: 0;
                padding: 0;
                list-style: none;
                display: flex;
                align-items: center;
                justify-content: flex-end;
            }
            .mobile-topbar .top-menu > li {
                position: relative;
                margin: 0;
            }
            .mobile-topbar .top-menu > li > a {
                padding: 5px 8px;
                display: flex;
                align-items: center;
            }
            .mobile-topbar .top-menu > li > ul {
                position: absolute;
                top: 100%;
                right: 0;
                background: white;
                border: 1px solid #ebebeb;
                box-shadow: 0 5px 25px rgba(0,0,0,0.1);
                border-radius: 8px;
                min-width: 220px;
                z-index: 1000;
                padding: 10px 0;
                margin-top: 5px;
                display: none;
            }
            .mobile-topbar .top-menu > li:hover > ul {
                display: block !important;
            }
            .header-top {
                display: none !important;
            }
            
            /* Mobile search bar */
            .mobile-search-bar {
                display: block;
                padding: 12px 0;
                background: #fff;
                border-bottom: 1px solid #ebebeb;
            }
            .mobile-search-bar .container {
                padding: 0 15px;
            }
            .mobile-search-wrapper {
                position: relative;
                display: flex;
                align-items: center;
            }
            .mobile-search-wrapper input {
                width: 100%;
                height: 42px;
                border: 1px solid #ebebeb;
                border-radius: 21px;
                padding: 0 50px 0 15px;
                font-size: 14px;
            }
            .mobile-search-wrapper button {
                position: absolute;
                right: 5px;
                top: 5px;
                background: #2EB7EB;
                color: white;
                border: none;
                border-radius: 50%;
                width: 32px;
                height: 32px;
                display: flex;
                align-items: center;
                justify-content: center;
            }
            
            /* Mobile scroll up button */
.mobile-scroll-top {
    position: fixed;
    bottom: 70px;
    right: 10px;   /* FIXED */
    width: 45px;
    height: 45px;
    background: #2EB7EB;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* SHOW */
.mobile-scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

/* EXTRA SAFETY (VERY IMPORTANT) */
@media (max-width: 768px){
    .mobile-scroll-top {
        right: 10px;
    }
}


            
            /* Improved header middle alignment for mobile */
            .header-middle {
                padding: 10px 0;
            }
            .header-middle .container {
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding: 0 15px;
            }
            .header-middle .header-left {
                display: flex;
                align-items: center;
                flex: 0 0 auto;
            }
            .header-middle .header-right {
                display: flex;
                align-items: center;
                flex: 0 0 auto;
            }
            .header-middle .logo {
                margin: 0 15px;
            }
            .header-middle .logo img {
                /*width: auto;*/
            }
            
            /* Improved cart and wishlist icons alignment */
            .wishlist, .cart-dropdown {
                margin-left: 10px;
            }
            .wishlist a, .cart-dropdown a {
                display: flex;
                flex-direction: column;
                align-items: center;
                padding: 5px;
            }
            .wishlist .icon, .cart-dropdown .icon {
                position: relative;
                display: flex;
                align-items: center;
                justify-content: center;
            }
        }
        @media (min-width: 992px) {
            .mobile-topbar {
                display: none !important;
            }
            .mobile-search-bar {
                display: none !important;
            }
            .mobile-scroll-top {
                display: none !important;
            }
        }
        
        /* ==================== IMPROVED HORIZONTAL CATEGORIES NAVIGATION ==================== */
        .horizontal-categories-nav {
            background: linear-gradient(135deg, #2EB7EB 0%, #1072BD 100%);
            border: none;
            padding: 0;
            position: relative;
            z-index: 1000; /* FIXED: Added z-index */
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        }
        
        .horizontal-categories-nav .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
            position: relative;
        }
        
        .categories-nav-list {
            display: flex;
            flex-wrap: nowrap;
            align-items: center;
            justify-content: flex-start;
            margin: 0;
            padding: 0;
            list-style: none;
            position: relative;
        }
        
        .categories-nav-list > li {
            flex: 0 0 auto;
            margin: 0;
            position: relative;
        }
        
        .categories-nav-list > li > a {
            display: flex;
            align-items: center;
            padding: 12px 15px;
            color: white;
            text-decoration: none;
            font-weight: 400;
            font-size: 13px;
            white-space: nowrap;
            transition: all 0.3s ease;
            position: relative;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            background: transparent;
        }
        
        .categories-nav-list > li > a:hover {
            background: rgba(255, 255, 255, 0.15);
            color: white;
        }
        
        .categories-nav-list > li > a .dropdown-arrow {
            margin-left: 8px;
            font-size: 12px;
            opacity: 0.8;
            transition: transform 0.3s ease;
        }
        
        .categories-nav-list > li:hover > a .dropdown-arrow {
            transform: rotate(180deg);
        }
        
        /* Active category indicator */
        .categories-nav-list > li > a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 20px;
            right: 20px;
            height: 3px;
            background: #FFD700;
            transform: scaleX(0);
            transition: transform 0.3s ease;
            border-radius: 3px 3px 0 0;
        }
        
        .categories-nav-list > li:hover > a::after,
        .categories-nav-list > li.active > a::after {
            transform: scaleX(1);
        }
        
        /* ==================== IMPROVED MEGA DROPDOWN MENU ==================== */
        .category-dropdown-menu {
            position: absolute;
            top: 100%;
            left: 0;
            z-index: 999; /* FIXED: Reduced from 9999 to 999 */
            width: 900px;
            max-width: calc(100vw - 30px);
            padding: 0;
            background: white;
            border: none;
            box-shadow: 0 20px 40px rgba(0,0,0,0.15);
            border-radius: 0 0 12px 12px;
            display: none;
            overflow: hidden;
        }
        
        /* Dropdown header with category image */
        .dropdown-header {
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            padding: 20px 25px;
            border-bottom: 1px solid #eaeaea;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        
        .dropdown-category-title {
            font-size: 18px;
            font-weight: 600;
            color: #2d3748;
            margin: 0;
        }
        
        .dropdown-category-image {
            width: 60px;
            height: 60px;
            border-radius: 8px;
            object-fit: cover;
            border: 3px solid white;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }
        
        .dropdown-content {
            display: flex;
            padding: 25px;
            gap: 30px;
            background: white;
            flex-wrap: wrap;
        }
        
        .dropdown-column {
            flex: 1;
            min-width: 200px;
            max-width: 220px;
        }
        
        .dropdown-column h4 {
            font-size: 12px;
            font-weight: 700;
            color: #2d3748;
            margin: 0 0 18px 0;
            padding-bottom: 12px;
            border-bottom: 2px solid #2EB7EB;
            position: relative;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .dropdown-column h4::before {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 40px;
            height: 2px;
            background: #FFD700;
        }
        
        .dropdown-column h4 a {
            color: #2d3748;
            text-decoration: none;
            transition: color 0.3s ease;
            display: block;
        }
        
        .dropdown-column h4 a:hover {
            color: #2EB7EB;
        }
        
        .dropdown-column ul {
            list-style: none;
            margin: 0;
            padding: 0;
        }
        
        .dropdown-column ul li {
            margin-bottom: 12px;
            position: relative;
        }
        
        .dropdown-column ul li a {
            display: flex;
            align-items: center;
            color: #4a5568;
            text-decoration: none;
            font-size: 14px;
            padding: 0px 0;
            padding-left: 12px;
            transition: all 0.3s ease;
            border-left: 3px solid transparent;
            border-radius: 4px;
        }
        
        .dropdown-column ul li a:hover {
            color: #2EB7EB;
            background: #f7fafc;
            padding-left: 15px;
            border-left-color: #2EB7EB;
        }
        
        .dropdown-column ul li a::before {
            content: '→';
            margin-right: 10px;
            opacity: 0;
            transform: translateX(-5px);
            transition: all 0.3s ease;
            color: #2EB7EB;
        }
        
        .dropdown-column ul li a:hover::before {
            opacity: 1;
            transform: translateX(0);
        }
        
        /* Child categories (level 3) with special styling */
        .child-categories {
            margin-top: 8px;
            padding-left: 15px;
            border-left: 2px dashed #e2e8f0;
        }
        
        .child-categories li {
            margin-bottom: 6px !important;
        }
        
        .child-categories a {
            font-size: 13px !important;
            color: #718096 !important;
            padding: 4px 0 !important;
            padding-left: 10px !important;
            border-left: 2px solid transparent !important;
        }
        
        .child-categories a:hover {
            color: #2EB7EB !important;
            background: #f7fafc !important;
            border-left-color: #2EB7EB !important;
        }
        
        /* Dropdown footer */
        .dropdown-footer {
            background: #f8fafc;
            padding: 20px 25px;
            border-top: 1px solid #eaeaea;
            text-align: center;
        }
        
        .view-all-link {
            display: inline-flex;
            align-items: center;
            color: #2EB7EB;
            font-weight: 800;
            text-decoration: none;
            font-size: 12px;
            padding: 2px 18px;
            background: white;
            border-radius: 8px;
            border: 1px solid #2EB7EB;
            transition: all 0.3s ease;
        }
        
        .view-all-link:hover {
            background: #2EB7EB;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(59, 113, 254, 0.3);
        }
        
        .view-all-link i {
            margin-left: 8px;
            transition: transform 0.3s ease;
        }
        
        .view-all-link:hover i {
            transform: translateX(4px);
        }

        .product-price {
            color: #2EB7EB;
            font-weight: 600;
        }
        .was-price {
            text-decoration: line-through;
            color: #999;
            font-size: 0.7em;
        }
        .free-shipping {
            color: #14A44D;
            font-size: 0.85em;
        }
        .badge-stock {
            font-size: 0.75em;
            padding: 3px 8px;
        }
        .quantity-input {
            max-width: 70px;
        }
        
        /* Mobile header styles - IMPROVED ALIGNMENT */
        @media (max-width: 991px) {
            .mobile-topbar {
                display: flex !important;
                background: #f8f8f8;
                border-bottom: 1px solid #ebebeb;
                padding: 8px 0;
                min-height: 40px;
                align-items: center;
            }
            .mobile-topbar .container {
                display: flex;
                justify-content: space-between;
                align-items: center;
                width: 100%;
                padding: 0 15px;
            }
            .mobile-topbar .header-left,
            .mobile-topbar .header-right {
                flex: 1;
                display: flex;
                align-items: center;
            }
            .mobile-topbar .header-left {
                justify-content: flex-start;
            }
            .mobile-topbar .header-right {
                justify-content: flex-end;
            }
            .mobile-topbar a {
                color: #333;
                font-size: 13px;
                text-decoration: none;
                display: flex;
                align-items: center;
                white-space: nowrap;
            }
            .mobile-topbar a:hover {
                color: #2EB7EB;
            }
            
            /* Improved mobile top menu alignment */
            .mobile-topbar .top-menu {
                margin: 0;
                padding: 0;
                list-style: none;
                display: flex;
                align-items: center;
                justify-content: flex-end;
            }
            .mobile-topbar .top-menu > li {
                position: relative;
                margin: 0;
            }
            .mobile-topbar .top-menu > li > a {
                padding: 5px 8px;
                display: flex;
                align-items: center;
            }
            .mobile-topbar .top-menu > li > ul {
                position: absolute;
                top: 100%;
                right: 0;
                background: white;
                border: 1px solid #ebebeb;
                box-shadow: 0 5px 25px rgba(0,0,0,0.1);
                border-radius: 8px;
                min-width: 220px;
                z-index: 1000;
                padding: 10px 0;
                margin-top: 5px;
                display: none;
            }
            .mobile-topbar .top-menu > li:hover > ul {
                display: block !important;
            }
            .header-top {
                display: none !important;
            }
            
            /* Mobile search bar */
            .mobile-search-bar {
                display: block;
                padding: 12px 0;
                background: #fff;
                border-bottom: 1px solid #ebebeb;
            }
            .mobile-search-bar .container {
                padding: 0 15px;
            }
            .mobile-search-wrapper {
                position: relative;
                display: flex;
                align-items: center;
            }
            .mobile-search-wrapper input {
                width: 100%;
                height: 42px;
                border: 1px solid #ebebeb;
                border-radius: 21px;
                padding: 0 50px 0 15px;
                font-size: 14px;
            }
            .mobile-search-wrapper button {
                position: absolute;
                right: 5px;
                top: 5px;
                background: #2EB7EB;
                color: white;
                border: none;
                border-radius: 50%;
                width: 32px;
                height: 32px;
                display: flex;
                align-items: center;
                justify-content: center;
            }
            
         
            
            /* Improved header middle alignment for mobile */
            .header-middle {
                padding: 10px 0;
            }
            .header-middle .container {
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding: 0 15px;
            }
            .header-middle .header-left {
                display: flex;
                align-items: center;
                flex: 0 0 auto;
            }
            .header-middle .header-right {
                display: flex;
                align-items: center;
                flex: 0 0 auto;
            }
            .header-middle .logo {
                margin: 0 15px;
            }
            .header-middle .logo img {
                max-height: 80px;
                width: auto;
                max-width: 180px;
            }
            
            /* Improved cart and wishlist icons alignment */
            .wishlist, .cart-dropdown {
                margin-left: 10px;
            }
            .wishlist a, .cart-dropdown a {
                display: flex;
                flex-direction: column;
                align-items: center;
                padding: 5px;
            }
            .wishlist .icon, .cart-dropdown .icon {
                position: relative;
                display: flex;
                align-items: center;
                justify-content: center;
            }
        }
        @media (min-width: 992px) {
            .mobile-topbar {
                display: none !important;
            }
            .mobile-search-bar {
                display: none !important;
            }
            .mobile-scroll-top {
                display: none !important;
            }
        }
        
        /* Slider full width on mobile */
        @media (max-width: 767px) {
            .intro-slide {
                background-size: cover !important;
                background-position: center !important;
                height: 200px !important;
                border-radius: 8px;
                margin: 0 15px;
                width: calc(100% - 30px) !important;
            }
            .intro-content {
                display: none !important;
            }
            .intro-slider-container {
                padding: 0 15px;
            }
        }
        
        /* Category products row layout */
        .category-products {
            margin-bottom: 40px;
        }
        .category-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            border-bottom: 1px solid #ebebeb;
            padding-bottom: 10px;
        }
        .category-title {
            font-size: 18px;
            font-weight: 600;
            margin: 0;
        }
        .view-all-link {
            color: #2EB7EB;
            font-weight: 500;
        }
        .products-row {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
        }
        @media (min-width: 768px) {
            .products-row {
                grid-template-columns: repeat(4, 1fr);
            }
        }
        @media (min-width: 992px) {
            .products-row {
                grid-template-columns: repeat(5, 1fr);
            }
        }
        
        /* Product action buttons - REMOVED ADD TO CART */
        .product-action {
            position: absolute;
            left: 0;
            right: 0;
            bottom: -30px;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: all 0.3s;
            z-index: 10;
        }
        .product:hover .product-action {
            opacity: 1;
            bottom: 30px;
        }
        .btn-product {
            background: #2EB7EB;
            color: white;
            border: none;
            border-radius: 4px;
            padding: 10px 15px;
            font-size: 13px;
            transition: all 0.3s;
        }
        .btn-product:hover {
            background: #2a5fd8;
            color: white;
        }
        
        /* Discount label style */
        .product-label.label-sale {
            background: #FF5252;
            color: white;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 14px;
        }
        
        /* Footer mobile optimization */
        @media (max-width: 767px) {
            .footer-middle .row > div {
                margin-bottom: 30px;
            }
            .footer-copyright {
                text-align: center;
                margin-bottom: 15px;
            }
            .footer-payments {
                text-align: center;
            }
        }
        
        /* Brand logo animation */
        .brand img {
            transition: all 0.5s ease;
            filter: grayscale(100%);
            opacity: 0.7;
            max-height: 40px;
            width: auto;
        }
        .brand:hover img {
            filter: grayscale(0%);
            opacity: 1;
            transform: scale(1.1);
        }
        
        /* Fix for mobile single click */
        .product-media {
            position: relative;
        }
        
        .product-image {
            width: 100%;
            height: auto;
            display: block;
        }
        
        /* Make entire product card clickable */
        .product-2 {
            position: relative;
            cursor: pointer;
            transition: transform 0.2s ease;
        }
        
        .product-2:hover {
            transform: translateY(-2px);
        }
        
        .product-link-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 5;
            display: block;
        }
        
        /* Position action buttons properly */
        .product-action-vertical {
            position: absolute;
            top: 10px;
            right: 10px;
            z-index: 10;
            display: flex;
            flex-direction: column;
            gap: 5px;
        }
        
        .btn-product-icon {
            width: 36px;
            height: 36px;
            background: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
            z-index: 20;
            position: relative;
        }
        
        .btn-product-icon:hover {
            background: #2EB7EB;
            color: white;
            transform: scale(1.1);
        }
        
        /* Loading optimization */
        .lazy-load {
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .lazy-load.loaded {
            opacity: 1;
        }

        /* User Account Dropdown Styles */
        .account-dropdown {
            position: relative;
        }
        
        .account-dropdown .dropdown-menu {
            min-width: 240px;
            padding: 15px 0;
            border: 1px solid #ebebeb;
            box-shadow: 0 5px 25px rgba(0,0,0,0.1);
            border-radius: 8px;
        }
        
        .account-dropdown .dropdown-item {
            padding: 10px 20px;
            color: #333;
            font-size: 14px;
            display: flex;
            align-items: center;
            transition: all 0.3s ease;
        }
        
        .account-dropdown .dropdown-item:hover {
            background-color: #f8f9fa;
            color: #2EB7EB;
        }
        
        .account-dropdown .dropdown-item i {
            margin-right: 10px;
            width: 20px;
            text-align: center;
            font-size: 16px;
        }
        
        .account-dropdown .dropdown-divider {
            margin: 8px 0;
        }
        
        .account-header {
            padding: 10px 20px;
            background: #f8f9fa;
            border-bottom: 1px solid #ebebeb;
            margin-bottom: 10px;
        }
        
        .account-header .user-name {
            font-weight: 600;
            color: #333;
            margin-bottom: 2px;
        }
        
        .account-header .user-email {
            font-size: 12px;
            color: #666;
        }
        
        .orders-badge {
            background: #2EB7EB;
            color: white;
            border-radius: 10px;
            padding: 2px 8px;
            font-size: 11px;
            margin-left: auto;
        }

    /* Toast Notification System - Larger Font Sizes */
    .toast {
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 9999;
        background: white;
        border-radius: 12px;
        box-shadow: 0 8px 30px rgba(0,0,0,0.12);
        padding: 22px 28px;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        animation: toastSlideIn 0.4s cubic-bezier(0.21, 1.02, 0.73, 1) forwards;
        border-left: 5px solid #14A44D;
        max-width: 450px;
        min-width: 350px;
        transition: all 0.3s ease;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }
    
    .toast.error {
        border-left-color: #DC4C64;
        background: linear-gradient(135deg, #fff 0%, #fef7f8 100%);
    }
    
    .toast.warning {
        border-left-color: #E4A11B;
        background: linear-gradient(135deg, #fff 0%, #fffbf0 100%);
    }
    
    .toast.info {
        border-left-color: #2EB7EB;
        background: linear-gradient(135deg, #fff 0%, #f0f5ff 100%);
    }
    
    .toast-icon {
        margin-right: 18px;
        font-size: 1.8rem; /* Increased from 1.5rem */
        width: 32px; /* Increased from 24px */
        height: 32px; /* Increased from 24px */
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        flex-shrink: 0;
    }
    
    .toast.success .toast-icon {
        background: #14A44D;
        color: white;
    }
    
    .toast.error .toast-icon {
        background: #DC4C64;
        color: white;
    }
    
    .toast.warning .toast-icon {
        background: #E4A11B;
        color: white;
    }
    
    .toast.info .toast-icon {
        background: #2EB7EB;
        color: white;
    }
    
    .toast-content {
        flex: 1;
    }
    
    .toast-title {
        font-size: 1.4rem; /* Increased from 1.1rem */
        font-weight: 700; /* Made bolder */
        margin: 0 0 8px 0; /* Increased spacing */
        color: #2D3748;
        line-height: 1.3;
        letter-spacing: -0.2px;
    }
    
    .toast-message {
        font-size: 1.15rem; /* Increased from 0.95rem */
        margin: 0;
        color: #4A5568;
        line-height: 1.5; /* Increased line height */
        font-weight: 500; /* Made medium weight */
        letter-spacing: -0.1px;
    }
    
    .toast-close {
        background: none;
        border: none;
        color: #A0AEC0;
        font-size: 1.6rem; /* Increased from 1.2rem */
        cursor: pointer;
        margin-left: 20px; /* Increased spacing */
        padding: 0;
        width: 28px; /* Increased from 20px */
        height: 28px; /* Increased from 20px */
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.2s ease;
        flex-shrink: 0;
        font-weight: 300;
    }
    
    .toast-close:hover {
        background: #EDF2F7;
        color: #718096;
        transform: scale(1.1);
    }
    
    /* Toast container for multiple toasts */
    .toast-container {
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 9999;
        display: flex;
        flex-direction: column;
        gap: 18px; /* Increased gap */
    }
    
    /* Animations */
    @keyframes toastSlideIn {
        from {
            transform: translateX(100%);
            opacity: 0;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }
    
    @keyframes toastSlideOut {
        from {
            transform: translateX(0);
            opacity: 1;
        }
        to {
            transform: translateX(100%);
            opacity: 0;
        }
    }
    
    .toast.hiding {
        animation: toastSlideOut 0.3s ease forwards;
    }
    
    /* Progress bar for toast */
    .toast-progress {
        position: absolute;
        bottom: 0;
        left: 0;
        height: 4px; /* Increased from 3px */
        background: #14A44D;
        width: 100%;
        border-radius: 0 0 12px 12px;
        animation: toastProgress 5s linear forwards;
        transform-origin: left;
    }
    
    .toast.error .toast-progress {
        background: #DC4C64;
    }
    
    .toast.warning .toast-progress {
        background: #E4A11B;
    }
    
    .toast.info .toast-progress {
        background: #2EB7EB;
    }
    
    @keyframes toastProgress {
        from {
            transform: scaleX(1);
        }
        to {
            transform: scaleX(0);
        }
    }
    
    /* Responsive design with larger base sizes */
    @media (max-width: 768px) {
        .toast {
            top: 15px;
            right: 15px;
            left: 15px;
            max-width: none;
            min-width: auto;
            margin-bottom: 12px;
            padding: 20px 24px; /* Slightly reduced but still large */
        }
        
        .toast-container {
            top: 15px;
            right: 15px;
            left: 15px;
            gap: 15px;
        }
        
        .toast-title {
            font-size: 1.3rem; /* Still larger than original */
        }
        
        .toast-message {
            font-size: 1.1rem; /* Still larger than original */
        }
        
        .toast-icon {
            font-size: 1.6rem;
            width: 28px;
            height: 28px;
            margin-right: 16px;
        }
        
        .toast-close {
            font-size: 1.4rem;
            width: 24px;
            height: 24px;
        }
    }
    
    @media (max-width: 480px) {
        .toast {
            padding: 18px 22px;
            top: 10px;
            right: 10px;
            left: 10px;
        }
        
        .toast-title {
            font-size: 1.2rem; /* Still very readable */
        }
        
        .toast-message {
            font-size: 1.05rem; /* Still very readable */
        }
        
        .toast-icon {
            font-size: 1.5rem;
            width: 26px;
            height: 26px;
            margin-right: 14px;
        }
        
        .toast-close {
            font-size: 1.3rem;
            width: 22px;
            height: 22px;
            margin-left: 16px;
        }
    }
    
    @media (max-width: 360px) {
        .toast {
            padding: 16px 20px;
        }
        
        .toast-title {
            font-size: 1.15rem;
        }
        
        .toast-message {
            font-size: 1rem;
        }
    }

    /* Custom scrollbar for cart dropdown */
.dropdown-cart-products::-webkit-scrollbar {
    width: 6px;
}

.dropdown-cart-products::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.dropdown-cart-products::-webkit-scrollbar-thumb {
    background: #2EB7EB;
    border-radius: 3px;
}

.dropdown-cart-products::-webkit-scrollbar-thumb:hover {
    background: #2a5fd8;
}

/* Mobile Top Bar Dropdown Styles */
.mobile-topbar .top-menu > li:hover > ul {
    display: block !important;
}

.mobile-topbar .top-menu a:hover {
    color: #2EB7EB;
    background-color: #f8f9fa;
}

/* Ensure mobile top bar is visible */
.mobile-topbar.d-lg-none {
    display: flex !important;
}

.header-top {
    display: none !important;
}

@media (min-width: 992px) {
    .mobile-topbar.d-lg-none {
        display: none !important;
    }
    .header-top {
        display: block !important;
    }
}

/* Improved mobile menu item alignment */
.mobile-topbar .top-menu > li > ul li {
    list-style: none;
    margin: 0;
}

.mobile-topbar .top-menu > li > ul li a {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.mobile-topbar .top-menu > li > ul li a:hover {
    background-color: #f8f9fa;
    color: #2EB7EB;
}

/* Mobile header middle improved spacing */
@media (max-width: 991px) {
    .header-middle .header-left {
        flex: 0 0 60px;
    }
    
    .header-middle .header-right {
        flex: 0 0 120px;
    }
    
    .header-middle .logo {
        flex: 1;
        text-align: center;
        margin: 0;
    }
    
    .mobile-menu-toggler {
        margin-right: 10px;
    }
}

/* Category Mega Menu Styles */
.megamenu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    float: left;
    min-width: 800px;
    padding: 20px;
    margin: 2px 0 0;
    font-size: 14px;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.megamenu.show {
    display: block;
}

.megamenu-container {
    display: flex;
    flex-wrap: wrap;
}

.menu-col {
    padding: 10px;
    flex: 1;
}

.menu-title {
    padding: 8px 0;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.menu-title a {
    color: #333;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: block;
    transition: color 0.3s;
}

.menu-title a:hover {
    color: #2EB7EB;
}

.submenu {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.submenu li {
    margin-bottom: 8px;
}

.submenu li a {
    color: #666;
    font-size: 14px;
    text-decoration: none;
    display: block;
    padding: 5px 0;
    transition: all 0.3s;
    border-left: 2px solid transparent;
    padding-left: 10px;
}

.submenu li a:hover {
    color: #2EB7EB;
    border-left-color: #2EB7EB;
    padding-left: 15px;
}

.no-child-categories {
    padding: 10px 0;
    font-style: italic;
}

/* Make sure category dropdown works on hover */
.dropdown.category-dropdown:hover .dropdown-menu {
    display: block;
}

/* Add arrow to parent categories */
.menu-vertical li.megamenu-container > a .icon-angle-right {
    float: right;
    margin-left: 10px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .megamenu {
        min-width: 100%;
        position: static;
        box-shadow: none;
        border: none;
        padding: 10px;
    }
    
    .megamenu-container {
        flex-direction: column;
    }
    
    .menu-col {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .header-bottom {
        display: none !important;
    }
}

/* Close button for mobile dropdowns */
.dropdown-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    z-index: 100000;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.dropdown-close-btn:hover {
    background: #f8f9fa;
    color: #333;
}

/* Dropdown background overlay for mobile */
.dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99990;
    display: none;
}

/* ==================== FIX ACCOUNT DROPDOWN Z-INDEX ==================== */
/* Fix header-top to be above categories */
.header-top {
    position: relative;
    z-index: 1001 !important;
}

/* Make account dropdown appear above everything */
.account-dropdown {
    position: relative;
    z-index: 1005;
}

.account-dropdown .dropdown-menu {
    z-index: 9999 !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2) !important;
    position: absolute;
    transform: translate3d(0, 0, 0);
}

/* Make top menu dropdowns appear above categories */
.top-menu > li > ul {
    z-index: 9999 !important;
}

/* Keep dropdown visible */
.account-dropdown:hover .dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}


/* ===============================
   FINAL DARAZ MEGA MENU FIX
================================ */

/* RESET DROPDOWN */
.category-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: auto !important;

    min-width: 900px;
    max-width: calc(100vw - 40px);

    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.25s ease;

    border-radius: 16px !important;
    box-shadow: 0 25px 70px rgba(0,0,0,0.18) !important;
    overflow: hidden;
    z-index: 9999;
}

/* SHOW */
.categories-nav-list > li:hover .category-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* FORCE RIGHT FOR LAST ITEMS */
.categories-nav-list > li:nth-last-child(-n+3) .category-dropdown-menu {
    left: auto !important;
    right: 0 !important;
}

/* PREVENT LEFT OVERFLOW */
.horizontal-categories-nav {
    overflow: visible !important;
}

/* ===============================
   NAV ITEM PREMIUM
================================ */
.categories-nav-list > li > a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 14px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* HOVER EFFECT */
.categories-nav-list > li:hover > a {
    background: rgba(255,255,255,0.15);
}

/* ICON STYLE */
.menu-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
}

/* ICON HOVER */
.categories-nav-list > li:hover .menu-icon {
    background: #FFD700;
    color: #000;
}

/* ===============================
   DROPDOWN CONTENT FIX
================================ */
.dropdown-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 25px;
}

/* COLUMN */
.dropdown-column {
    flex: 1;
    min-width: 200px;
}

/* TITLE */
.dropdown-column h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
    border-bottom: 2px solid #2EB7EB;
}

/* LINKS */
.dropdown-column ul li a {
    font-size: 13px;
    padding: 6px 8px;
    border-radius: 6px;
    transition: all 0.25s ease;
}

/* LINK HOVER */
.dropdown-column ul li a:hover {
    background: #f3f7ff;
    color: #1a73e8;
    padding-left: 14px;
}

/* ===============================
   SMOOTH ANIMATION FIX
================================ */
.category-dropdown-menu {
    will-change: transform, opacity;
}


/* ============================================================
   MYsouq FINAL HEADER / NAVIGATION OVERRIDE
   ------------------------------------------------------------
   Safe compatibility layer for the existing header markup.
   Keeps the original CSS above intact and fixes:
   - MySouq blue category gradient
   - desktop category navigation
   - mobile-only category rail
   - 320px–991px header sizing
   - horizontal overflow
   - search / logo / wishlist / cart alignment
   - mega-menu layering
   ============================================================ */

:root {
    --msq-blue: #2EB7EB;
    --msq-blue-dark: #1072BD;
    --msq-blue-gradient: linear-gradient(135deg, #2EB7EB 0%, #1072BD 100%);
    --msq-border: #e7edf3;
    --msq-text: #172033;
}

/* Global safety */
html,
body {
    max-width: 100%;
}

body {
    overflow-x: hidden;
}

.page-wrapper {
    max-width: 100%;
    overflow-x: clip;
}

/* ============================================================
   DESKTOP CATEGORY NAV
   ============================================================ */
@media (min-width: 992px) {
    .horizontal-categories-nav {
        display: block !important;
        width: 100% !important;
        position: relative !important;
        z-index: 10000 !important;
        overflow: visible !important;
        background: var(--msq-blue-gradient) !important;
        border: 0 !important;
        box-shadow: 0 5px 18px rgba(16,114,189,.18) !important;
    }

    .horizontal-categories-nav .container {
        width: 100% !important;
        max-width: 1200px !important;
        margin: 0 auto !important;
        padding: 0 12px !important;
    }

    .horizontal-categories-nav .categories-nav-list {
        width: 100% !important;
        display: flex !important;
        align-items: stretch !important;
        flex-wrap: nowrap !important;
        gap: 0 !important;
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .horizontal-categories-nav .categories-nav-list > li {
        flex: 0 0 auto !important;
        position: relative !important;
        margin: 0 !important;
    }

    .horizontal-categories-nav .categories-nav-list > li > a {
        min-height: 54px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        padding: 0 15px !important;
        color: #fff !important;
        background: transparent !important;
        border: 0 !important;
        border-bottom: 3px solid transparent !important;
        border-radius: 0 !important;
        text-decoration: none !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        letter-spacing: .15px !important;
        text-transform: none !important;
        white-space: nowrap !important;
        text-shadow: 0 1px 1px rgba(0,0,0,.08);
        transition: background .2s ease, border-color .2s ease !important;
    }

    .horizontal-categories-nav .categories-nav-list > li > a:hover,
    .horizontal-categories-nav .categories-nav-list > li:hover > a,
    .horizontal-categories-nav .categories-nav-list > li.active > a {
        color: #fff !important;
        background: rgba(255,255,255,.14) !important;
        border-bottom-color: #FFD84D !important;
    }

    .horizontal-categories-nav .menu-icon {
        width: 28px !important;
        height: 28px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 9px !important;
        color: #fff !important;
        background: rgba(255,255,255,.14) !important;
        font-size: 14px !important;
        flex: 0 0 auto !important;
    }

    .horizontal-categories-nav .categories-nav-list > li:hover .menu-icon {
        color: #0d5f9e !important;
        background: #FFD84D !important;
    }

    .horizontal-categories-nav .dropdown-arrow {
        color: rgba(255,255,255,.9) !important;
        font-size: 10px !important;
        margin-left: 1px !important;
    }

    /* Old navigation must never cover the new navigation on desktop */
    .horizontal-categories-nav .mobile-categories-nav {
        display: none !important;
    }
}

/* ============================================================
   DESKTOP MEGA MENU
   ============================================================ */
@media (min-width: 992px) {
    .horizontal-categories-nav .category-dropdown-menu,
    .horizontal-categories-nav .megamenu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: auto !important;
        z-index: 100000 !important;
        width: min(980px, calc(100vw - 30px)) !important;
        min-width: 0 !important;
        max-width: calc(100vw - 30px) !important;
        max-height: calc(100vh - 90px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        background: #fff !important;
        border: 1px solid #e4ebf2 !important;
        border-top: 3px solid var(--msq-blue) !important;
        border-radius: 0 0 16px 16px !important;
        box-shadow: 0 24px 60px rgba(15,23,42,.20) !important;
    }

    .horizontal-categories-nav .category-dropdown-menu {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translateY(8px) !important;
        transition: opacity .18s ease, transform .18s ease, visibility .18s ease !important;
    }

    .horizontal-categories-nav .categories-nav-list > li:hover > .category-dropdown-menu,
    .horizontal-categories-nav .categories-nav-list > li:focus-within > .category-dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }

    .horizontal-categories-nav .dropdown-header {
        padding: 18px 22px !important;
        background: linear-gradient(135deg,#f4fbff,#fff) !important;
    }

    .horizontal-categories-nav .dropdown-content {
        display: grid !important;
        grid-template-columns: repeat(4,minmax(0,1fr)) !important;
        gap: 0 !important;
        padding: 20px 22px !important;
    }

    .horizontal-categories-nav .dropdown-column {
        min-width: 0 !important;
        max-width: none !important;
        padding: 0 18px !important;
        border-right: 1px solid #edf1f5 !important;
    }

    .horizontal-categories-nav .dropdown-column:first-child {
        padding-left: 0 !important;
    }

    .horizontal-categories-nav .dropdown-column:last-child {
        padding-right: 0 !important;
        border-right: 0 !important;
    }

    .horizontal-categories-nav .dropdown-column h4 {
        color: var(--msq-text) !important;
        font-size: 12px !important;
        margin: 0 0 9px !important;
        padding-bottom: 8px !important;
        border-bottom: 2px solid var(--msq-blue) !important;
    }

    .horizontal-categories-nav .dropdown-column ul li {
        margin-bottom: 3px !important;
    }

    .horizontal-categories-nav .dropdown-column ul li a {
        min-height: 28px !important;
        display: flex !important;
        align-items: center !important;
        padding: 5px 7px !important;
        border-left: 2px solid transparent !important;
        border-radius: 6px !important;
        color: #64748b !important;
        font-size: 12px !important;
    }

    .horizontal-categories-nav .dropdown-column ul li a:hover {
        color: var(--msq-blue-dark) !important;
        background: #f3f9fd !important;
        border-left-color: var(--msq-blue) !important;
    }

    .horizontal-categories-nav .dropdown-footer {
        padding: 13px 20px !important;
        background: #f8fafc !important;
    }
}

/* ============================================================
   MOBILE: NEVER SHOW DESKTOP HORIZONTAL NAV
   ============================================================ */
@media (max-width: 991px) {
    .horizontal-categories-nav {
        display: none !important;
    }

    /* Hide legacy duplicate mobile navigation if the new rail exists */
    .mobile-categories-nav {
        display: none !important;
    }

    .mysouq-category-nav {
        display: none !important;
    }

    .mysouq-mobile-category-nav {
        display: block !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow: hidden !important;
        background: var(--msq-blue-gradient) !important;
        border: 0 !important;
        box-shadow: 0 3px 14px rgba(16,114,189,.18) !important;
    }

    .mysouq-mobile-category-scroll {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        gap: 7px !important;
        padding: 8px 10px !important;
        margin: 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior-x: contain !important;
    }

    .mysouq-mobile-category-scroll::-webkit-scrollbar {
        display: none !important;
    }

    .mysouq-mobile-chip {
        flex: 0 0 auto !important;
        min-height: 36px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        padding: 7px 12px !important;
        border: 1px solid rgba(255,255,255,.35) !important;
        border-radius: 999px !important;
        background: rgba(255,255,255,.13) !important;
        color: #fff !important;
        text-decoration: none !important;
        font-size: 11px !important;
        font-weight: 800 !important;
        white-space: nowrap !important;
        box-shadow: 0 2px 8px rgba(0,0,0,.06) !important;
        backdrop-filter: blur(7px);
        -webkit-backdrop-filter: blur(7px);
    }

    .mysouq-mobile-chip i {
        color: currentColor !important;
        font-size: 13px !important;
    }

    .mysouq-mobile-chip.mysouq-mobile-shop {
        color: var(--msq-blue-dark) !important;
        background: #fff !important;
        border-color: #fff !important;
    }

    /* Mobile header cannot create a wider layout */
    .header,
    .header.header-4,
    .header-middle,
    .header-middle .container,
    .mobile-topbar,
    .mobile-search-bar {
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }

    .header-middle .container {
        min-height: 62px !important;
        padding: 6px 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 7px !important;
    }

    .header-middle .header-left {
        min-width: 0 !important;
        flex: 0 0 auto !important;
        display: flex !important;
        align-items: center !important;
    }

    .header-middle .header-right {
        min-width: 0 !important;
        flex: 0 0 auto !important;
        display: flex !important;
        align-items: center !important;
        gap: 3px !important;
    }

    .header-middle .logo {
        min-width: 0 !important;
        flex: 1 1 auto !important;
        margin: 0 !important;
        text-align: center !important;
    }

    .header-middle .logo img {
        width: auto !important;
        height: auto !important;
        max-width: 132px !important;
        max-height: 52px !important;
    }

    .mobile-menu-toggler {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        margin: 0 3px 0 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .wishlist,
    .cart-dropdown {
        margin-left: 0 !important;
    }

    .wishlist a,
    .cart-dropdown a {
        min-width: 39px !important;
        padding: 3px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .wishlist .icon,
    .cart-dropdown .icon,
    .header-right .icon {
        width: 31px !important;
        height: 31px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .wishlist .icon i,
    .cart-dropdown .icon i,
    .header-right .icon i {
        font-size: 18px !important;
    }

    .wishlist p,
    .cart-dropdown p,
    .header-right p {
        margin: 0 !important;
        font-size: 9px !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
    }

    .wishlist-count,
    .cart-count,
    .header-right .wishlist-count,
    .header-right .cart-count {
        min-width: 15px !important;
        height: 15px !important;
        padding: 1px 4px !important;
        top: -2px !important;
        right: -3px !important;
        font-size: 8px !important;
        line-height: 13px !important;
    }

    /* Topbar */
    .mobile-topbar {
        min-height: 48px !important;
        padding: 5px 0 !important;
        background: #fff !important;
        border-bottom: 1px solid #edf1f5 !important;
        overflow: hidden !important;
    }

    .mobile-topbar .container {
        width: 100% !important;
        max-width: 100vw !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }

    .mobile-top-row {
        width: 100% !important;
        min-width: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 6px !important;
    }

    .whatsapp-contact-mobile,
    .mobile-account-container {
        min-width: 0 !important;
    }

    .whatsapp-contact-mobile {
        flex: 1 1 auto !important;
        overflow: hidden !important;
    }

    .mobile-account-container {
        flex: 0 0 auto !important;
        max-width: 135px !important;
    }

    .mobile-whatsapp-label,
    .mobile-whatsapp-number,
    .account-label,
    .account-name {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Search */
    .mobile-search-bar {
        display: block !important;
        padding: 7px 0 !important;
        background: #fff !important;
        border-bottom: 1px solid #edf1f5 !important;
    }

    .mobile-search-bar .container {
        padding: 0 10px !important;
    }

    .mobile-search-wrapper {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 40px !important;
        border-radius: 999px !important;
        overflow: hidden !important;
    }

    .mobile-search-wrapper input,
    #mobileSearchInput {
        min-width: 0 !important;
        width: 100% !important;
        height: 40px !important;
        padding: 0 45px 0 14px !important;
        font-size: 12px !important;
        box-sizing: border-box !important;
    }

    .mobile-search-wrapper button {
        width: 34px !important;
        height: 34px !important;
        right: 3px !important;
        top: 3px !important;
    }

    /* Product content must not push the page wider */
    .product,
    .product-2,
    .products-row,
    .row,
    .container {
        max-width: 100%;
    }
}

/* ============================================================
   VERY SMALL PHONES
   ============================================================ */
@media (max-width: 359px) {
    .header-middle .container {
        padding-left: 7px !important;
        padding-right: 7px !important;
        gap: 4px !important;
    }

    .header-middle .logo img {
        max-width: 112px !important;
        max-height: 46px !important;
    }

    .mobile-menu-toggler {
        width: 36px !important;
        min-width: 36px !important;
    }

    .wishlist a,
    .cart-dropdown a {
        min-width: 35px !important;
    }

    .mysouq-mobile-chip {
        min-height: 34px !important;
        padding: 6px 10px !important;
        font-size: 10px !important;
    }

    .mobile-search-wrapper input,
    #mobileSearchInput {
        font-size: 11px !important;
    }
}

/* ============================================================
   TABLETS 768–991
   ============================================================ */
@media (min-width: 768px) and (max-width: 991px) {
    .header-middle .logo img {
        max-width: 145px !important;
    }

    .mysouq-mobile-chip {
        min-height: 39px !important;
        padding-left: 13px !important;
        padding-right: 13px !important;
        font-size: 12px !important;
    }
}

/* ============================================================
   TOASTS — MOBILE SAFE
   ============================================================ */
@media (max-width: 480px) {
    .toast,
    .toast-container {
        left: 10px !important;
        right: 10px !important;
        max-width: calc(100vw - 20px) !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .toast {
        padding: 14px 16px !important;
    }

    .toast-title {
        font-size: 15px !important;
    }

    .toast-message {
        font-size: 13px !important;
    }
}

/* ============================================================
   SCROLL-TOP
   ============================================================ */
@media (max-width: 991px) {
    .mobile-scroll-top {
        right: 10px !important;
        bottom: 68px !important;
        width: 42px !important;
        height: 42px !important;
        z-index: 99990 !important;
    }
}


/* ============================================================
   MY SOUQ FINAL MOBILE CATEGORY VISIBILITY FIX
   IMPORTANT: this block intentionally comes LAST so it wins
   over Bootstrap/theme/legacy navigation rules.
   ============================================================ */

/* Mobile: NEVER render desktop category navigation */
@media screen and (max-width: 991px) {
    html, body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    /* Both current and legacy desktop category bars */
    .mysouq-category-nav,
    .horizontal-categories-nav,
    .categories-nav-list,
    .megamenu,
    .category-dropdown-menu {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* Legacy mobile navigation is also disabled.
       We use ONE mobile rail only. */
    .mobile-categories-nav {
        display: none !important;
        visibility: hidden !important;
    }

    /* The single mobile category rail */
    .mysouq-mobile-category-nav {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 48px !important;
        margin: 0 !important;
        padding: 0 !important;
        background: linear-gradient(135deg, #2EB7EB 0%, #1072BD 100%) !important;
        border: 0 !important;
        box-shadow: 0 3px 12px rgba(16,114,189,.16) !important;
        overflow: hidden !important;
        z-index: 8999 !important;
    }

    .mysouq-mobile-category-scroll {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 48px !important;
        margin: 0 !important;
        padding: 7px 10px !important;
        gap: 7px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        box-sizing: border-box !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior-x: contain !important;
    }

    .mysouq-mobile-category-scroll::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    .mysouq-mobile-chip {
        flex: 0 0 auto !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        height: 34px !important;
        min-height: 34px !important;
        padding: 0 11px !important;
        margin: 0 !important;
        border: 1px solid rgba(255,255,255,.42) !important;
        border-radius: 18px !important;
        background: rgba(255,255,255,.12) !important;
        color: #fff !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        text-decoration: none !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .mysouq-mobile-chip i {
        font-size: 12px !important;
        line-height: 1 !important;
        color: #fff !important;
    }

    .mysouq-mobile-chip:hover,
    .mysouq-mobile-chip:focus,
    .mysouq-mobile-chip:active {
        color: #fff !important;
        background: rgba(255,255,255,.20) !important;
        border-color: rgba(255,255,255,.65) !important;
        text-decoration: none !important;
    }

    .mysouq-mobile-shop {
        background: #fff !important;
        color: #1072BD !important;
        border-color: #fff !important;
        box-shadow: 0 2px 8px rgba(0,0,0,.10) !important;
    }

    .mysouq-mobile-shop i {
        color: #1072BD !important;
    }

    /* Kill any accidental dropdown/mega-menu generated inside mobile rail */
    .mysouq-mobile-category-nav .category-dropdown-menu,
    .mysouq-mobile-category-nav .megamenu,
    .mysouq-mobile-category-nav .dropdown-menu {
        display: none !important;
    }

    /* Prevent old theme wrappers from creating a second row */
    .mysouq-category-nav + .mobile-categories-nav,
    .horizontal-categories-nav + .mobile-categories-nav {
        display: none !important;
    }
}

/* Very small phones */
@media screen and (max-width: 374px) {
    .mysouq-mobile-category-scroll {
        padding-left: 8px !important;
        padding-right: 8px !important;
        gap: 6px !important;
    }

    .mysouq-mobile-chip {
        height: 32px !important;
        min-height: 32px !important;
        padding: 0 9px !important;
        font-size: 10px !important;
        gap: 5px !important;
    }

    .mysouq-mobile-chip i {
        font-size: 11px !important;
    }
}

/* Desktop: mobile rail must NEVER appear */
@media screen and (min-width: 992px) {
    .mysouq-mobile-category-nav,
    .mobile-categories-nav {
        display: none !important;
        visibility: hidden !important;
    }

    .mysouq-category-nav {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}





