@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');

:root {
    --primary-color: #0579c1;
    --primary-color-hover: #04609b;
    --secondary-color: #ff0000;
    --bg-color: #f5f5f5;
}

/* 
:root {
    --primary-color: #800080;
    --primary-color-hover: #660066;
    --secondary-color: #ff0042;
    --bg-color: #f5f5f5;
}
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: var(--bg-color);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #e0e0e0;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color-hover);
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Main Header */
.main-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Header Top */
.header-top {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo a {
    display: flex;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
}

.buy-tag {
    background-color: var(--secondary-color);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    position: relative;
    transform: rotate(-10deg);
    margin-right: 5px;
    text-transform: uppercase;
}

.abans-text {
    color: var(--primary-color);
    /* Purple */
    font-size: 38px;
    font-weight: 900;
    letter-spacing: -1px;
}

.com-text {
    color: var(--secondary-color);
    /* Red */
    font-size: 38px;
    font-weight: 900;
    letter-spacing: -1px;
}

/* Search Bar */
.search-bar {
    flex: 1;
    max-width: 700px;
    margin: 0 40px;
}

.search-bar form {
    display: flex;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    overflow: hidden;
}

.search-bar input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    outline: none;
    font-size: 14px;
}

.search-bar button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.search-bar button:hover {
    background-color: var(--primary-color-hover);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

.cart-action {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #555;
    font-weight: 500;
    font-size: 15px;
}

.cart-icon {
    position: relative;
}

.cart-icon i {
    font-size: 22px;
    color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: -8px;
    left: -10px;
    background-color: var(--secondary-color);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.user-action {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 15px;
}

.user-action i {
    font-size: 22px;
}

.user-action .divider {
    color: #ccc;
    margin: 0 5px;
}

.user-action a:hover {
    color: var(--secondary-color);
}

.lang-currency {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
}

.lang-currency i.fa-globe {
    font-size: 22px;
}

.lc-text {
    line-height: 1.3;
}

.lc-text i {
    font-size: 10px;
}

/* Header Bottom */
.header-bottom {
    background-color: var(--primary-color);
    color: #fff;
}

.header-bottom-inner {
    display: flex;
    align-items: center;
    height: 50px;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.categories-menu {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 20px;
    cursor: pointer;
    height: 100%;
    transition: background 0.3s;
    position: relative;
}

.categories-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    min-width: 260px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 4px 4px;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s;
    z-index: 1000;
}

.categories-list {
    display: flex;
    flex-direction: column;
    max-height: 50vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.categories-menu:hover .categories-dropdown {
    visibility: visible;
    opacity: 1;
}

.category-item {
    position: static;
    border-bottom: 1px solid #eee;
}

.category-item:last-child {
    border-bottom: none;
}

.category-item a {
    padding: 12px 20px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: background 0.3s;
}

.category-item:hover>a {
    background: #f9f9f9;
    color: var(--primary-color);
}

.category-item a i:first-child {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
    font-size: 16px;
}

.sub-categories-dropdown a {
    transition: all 0.3s;
}

.sub-categories-dropdown a:hover {
    background: #f9f9f9;
    color: var(--primary-color);
    padding-left: 25px;
}

.sub-categories-dropdown {
    position: absolute;
    top: 0;
    left: 100%;
    width: 260px;
    background: #fff;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0 4px 4px 0;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #eee;
    min-height: 100%;
    max-height: 50vh;
    overflow-y: auto;
}

.category-item.has-sub:hover>.sub-categories-dropdown {
    visibility: visible;
    opacity: 1;
}

.categories-menu:hover {
    background-color: var(--primary-color-hover);
}

.categories-menu span i {
    font-size: 11px;
    margin-left: 8px;
}

.main-nav {
    flex: 1;
    margin-left: 0;
    /* Removed 30px margin to bring items flush */
    height: 100%;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
    height: 100%;
}

.main-nav ul li {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
    transition: background 0.3s;
}

.main-nav ul li:hover {
    background-color: var(--primary-color-hover);
}

/* Note: .main-nav ul li.has-mega-menu is intentionally left unstyled (no position: relative) 
   so the mega menu can stretch full width of header-bottom-inner. */

.brands-mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 4px 4px;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s;
    z-index: 1000;
    padding: 20px;
}

.has-mega-menu:hover .brands-mega-menu {
    visibility: visible;
    opacity: 1;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 15px;
}

.brand-item {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 10px;
    transition: all 0.3s;
    background: #fff;
    height: 60px;
}

.brand-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.brand-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.main-nav ul li a {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.3s;
}

.main-nav ul li a:hover {
    opacity: 0.8;
}

.main-nav ul li a i {
    font-size: 11px;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 13px;
    font-weight: 600;
}

.header-contact a {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s;
}

.header-contact a:hover {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 992px) {
    .header-top-inner {
        flex-wrap: wrap;
        gap: 15px;
    }

    .search-bar {
        order: 3;
        flex: 1 1 100%;
        margin: 10px 0 0 0;
        max-width: 100%;
    }

    .header-bottom-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 0;
        gap: 10px;
        justify-content: space-between;
    }

    .main-nav {
        margin-left: 0;
        width: 100%;
        display: none;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
        background-color: var(--primary-color-hover);
        padding: 15px;
        border-radius: 4px;
    }

    .brands-mega-menu {
        position: static;
        display: none;
        visibility: visible;
        opacity: 1;
        padding: 15px 0 0 0;
        box-shadow: none;
        background: transparent;
    }

    .has-mega-menu:hover .brands-mega-menu {
        display: block;
    }

    .brands-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .brand-item {
        height: 50px;
    }

    .header-contact {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .header-actions {
        gap: 15px;
    }

    .action-text,
    .user-action a,
    .user-action .divider,
    .lc-text {
        display: none;
    }

    .cart-action,
    .user-action,
    .lang-currency {
        gap: 0;
    }

    .categories-menu {
        width: 100%;
        justify-content: space-between;
        padding: 10px;
    }

    .sub-categories-dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        background: #f9f9f9;
        border-left: 3px solid var(--primary-color);
        display: none;
        visibility: visible;
        opacity: 1;
    }

    .category-item.has-sub:hover>.sub-categories-dropdown {
        display: flex;
    }

    .logo img {
        max-height: 35px !important;
    }

    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Hero Slider */
.hero-section {
    width: 100%;
}

.hero-swiper {
    width: 100%;
    height: auto;
}

.hero-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.7);
    padding: 30px 20px;
    border-radius: 4px;
}

.hero-swiper .swiper-button-next:after,
.hero-swiper .swiper-button-prev:after {
    font-size: 24px;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: var(--primary-color);
}

@media (max-width: 768px) {

    .hero-swiper .swiper-button-next,
    .hero-swiper .swiper-button-prev {
        display: none;
    }
}

/* =========================================
   Floating WhatsApp
========================================= */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    color: #fff;
}

/* =========================================
   Brands Marquee
========================================= */
.footer-brands-marquee {
    background: #fff;
    padding: 15px 0;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    width: 100%;
}

.brands-track {
    display: flex;
    align-items: center;
    gap: 80px;
    animation: scrollBrands 40s linear infinite;
    padding-left: 80px;
    /* match the gap so it loops perfectly */
}

.brands-track:hover {
    animation-play-state: paused;
}

.marquee-brand-item {
    flex: 0 0 auto;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
}

.marquee-brand-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.marquee-brand-item img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
    cursor: pointer;
}

.marquee-brand-item:hover img {
    transform: scale(1.05);
}

@keyframes scrollBrands {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-10%);
    }

    /* Shifts exactly 1 out of 10 sets */
}

/* =========================================
   Authentication (Login/Signup)
========================================= */
.auth-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.auth-box {
    flex: 1;
    min-width: 300px;
}

.auth-box h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 24px;
}

.auth-box p {
    color: #666;
    margin-bottom: 25px;
    font-size: 14px;
}

.auth-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2px;
    background: #eee;
    position: relative;
}

.auth-divider span {
    background: #fff;
    padding: 10px 0;
    color: #999;
    font-weight: bold;
    font-size: 12px;
    position: absolute;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group.half {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.terms-group {
    margin-top: 10px;
}

.terms-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
    cursor: pointer;
}

.terms-label a {
    color: var(--primary-color);
    text-decoration: underline;
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.auth-btn:hover {
    background: var(--primary-color-hover);
}

.signup-btn {
    background: var(--secondary-color);
}

.signup-btn:hover {
    background: #e65c00;
}

.alert {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

@media (max-width: 768px) {
    .auth-wrapper {
        flex-direction: column;
        padding: 20px;
    }

    .auth-divider {
        width: 100%;
        height: 2px;
        margin: 20px 0;
    }

    .auth-divider span {
        padding: 0 10px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* =========================================
   Super Footer Styles
========================================= */
.super-footer {
    background-color: #1a1a2e;
    color: #fff;
    margin-top: 50px;
    font-family: 'Roboto', sans-serif;
}

/* Newsletter Section */
.footer-newsletter {
    background: linear-gradient(90deg, var(--primary-color) 0%, #a020a0 100%);
    padding: 30px 0;
}

.newsletter-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.newsletter-text h3 {
    font-size: 24px;
    margin-bottom: 5px;
    font-weight: 700;
}

.newsletter-text p {
    font-size: 15px;
    opacity: 0.9;
}

.newsletter-form form {
    display: flex;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    width: 400px;
    max-width: 100%;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    outline: none;
    font-size: 14px;
    color: #333;
}

.newsletter-form button {
    background: var(--secondary-color);
    color: #fff;
    border: none;
    padding: 0 25px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: #e6003b;
}

/* Main Footer */
.footer-main {
    padding: 60px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 30px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
}

.brand-desc {
    color: #b0b0c0;
    font-size: 14px;
    line-height: 1.6;
    margin: 20px 0;
}

.contact-info p {
    color: #b0b0c0;
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    color: var(--secondary-color);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #b0b0c0;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: #fff;
    transform: translateX(5px);
    /* Micro-animation: slide right */
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    /* Micro-animation: move up */
    box-shadow: 0 5px 15px rgba(255, 0, 66, 0.4);
    /* Glow effect */
}

.app-downloads {
    display: flex;
    flex-direction: column;
}

/* Footer Bottom */
.footer-bottom {
    padding: 20px 0;
    background-color: #121220;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    color: #888;
    font-size: 13px;
}

.payment-methods {
    display: flex;
    gap: 15px;
    font-size: 24px;
    color: #888;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .newsletter-inner {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form form {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom-inner {
        justify-content: center;
        text-align: center;
    }
}

/* Admin Action Buttons */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.btn-edit {
    background-color: #f0f7fd;
    color: var(--primary-color);
    border: 1px solid rgba(5, 121, 193, 0.2);
}
.btn-edit:hover {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 8px rgba(5, 121, 193, 0.2);
}
.btn-delete {
    background-color: #fff0f4;
    color: #ff0042;
    border: 1px solid rgba(255, 0, 66, 0.2);
}
.btn-delete:hover {
    background-color: #ff0042;
    color: #fff;
    box-shadow: 0 4px 8px rgba(255, 0, 66, 0.2);
}
.btn-view {
    background-color: #f0fdf4;
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}
.btn-view:hover {
    background-color: #28a745;
    color: #fff;
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.2);
}

/* Mobile Navigation JS Overrides */
@media (max-width: 992px) {
    /* Hide redundant elements on mobile (moved to bottom nav) */
    .header-actions { display: none !important; }
    .header-contact { display: none !important; }
    .main-nav > ul > li > a { display: none !important; } /* Hide inline Brands trigger */
    
    /* Make Categories menu toggle UI hidden on mobile, replaced by .mobile-nav-toggle. 
       Do NOT use display:none on the parent because it contains .categories-dropdown! */
    .categories-menu > i,
    .categories-menu > span {
        display: none !important;
    }
    .categories-menu {
        display: block !important;
        position: static !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 0 !important;
        height: 0 !important;
        background: transparent !important;
    }
    
    .mobile-nav-toggle {
        display: block !important;
        font-size: 28px;
        color: var(--primary-color);
        padding: 5px;
        margin-left: auto;
    }

    .main-header {
        position: relative;
    }
    .header-bottom {
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        height: 0 !important;
        background: transparent !important;
    }
    .header-bottom-inner {
        padding: 0 !important;
        height: 0 !important;
        min-height: 0 !important;
    }

    .main-nav,
    .main-nav ul,
    .main-nav ul li {
        display: block !important;
        position: static !important;
        height: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        border: none !important;
    }
    
    .categories-dropdown {
        display: none !important;
    }
    
    @keyframes slideInLeft {
        from { transform: translateX(-100%); }
        to { transform: translateX(0); }
    }

    .categories-dropdown.active-mobile,
    .brands-mega-menu.active-mobile {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100vw !important;
        height: 100vh;
        z-index: 10050; /* Ensure it covers WhatsApp button (z-index 10000) */
        background: #fff;
        overflow-y: auto;
        padding: 20px;
        box-sizing: border-box;
        margin: 0;
        box-shadow: none !important;
        border: none;
        animation: slideInLeft 0.3s ease forwards;
    }
    .categories-menu:hover .categories-dropdown:not(.active-mobile) {
        display: none !important;
    }

    .sub-categories-dropdown {
        display: none !important;
    }
    .sub-categories-dropdown.active-mobile {
        display: flex !important;
        flex-direction: column;
        position: static;
        width: 100%;
        box-shadow: none;
        background: #f9f9f9;
        border-left: 3px solid var(--primary-color);
        padding: 10px;
    }
    .category-item.has-sub:hover > .sub-categories-dropdown:not(.active-mobile) {
        display: none !important;
    }

    .brands-mega-menu {
        display: none !important;
    }
    .brands-mega-menu.active-mobile {
        display: block !important;
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 10000;
        background: #fff;
        overflow-y: auto;
        padding: 20px;
        box-sizing: border-box;
        margin: 0;
        box-shadow: none;
    }
    .has-mega-menu:hover .brands-mega-menu:not(.active-mobile) {
        display: none !important;
    }

    .mobile-menu-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 0 0 15px 0;
        border-bottom: 1px solid #eee;
        margin-bottom: 15px;
    }
    .mobile-menu-header h3 {
        margin: 0;
        font-size: 18px;
        color: var(--primary-color);
    }
    .close-mobile-menu {
        background: none;
        border: none;
        font-size: 24px;
        color: #999;
        cursor: pointer;
    }
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 65px; /* Space for the bottom nav */
    }
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        justify-content: space-around;
        padding: 10px 0 8px 0;
        border-top: 1px solid #f0f0f0;
    }
    .mobile-bottom-nav .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #777;
        font-size: 11px;
        font-weight: 500;
        gap: 5px;
        flex: 1;
        transition: all 0.3s ease;
    }
    .mobile-bottom-nav .nav-item i {
        font-size: 20px;
    }
    .mobile-bottom-nav .nav-item.active {
        color: var(--primary-color);
    }
    .mobile-bottom-nav .nav-item.active i {
        color: var(--primary-color);
    }
    .cart-icon-wrapper {
        position: relative;
    }
    .mobile-cart-count {
        position: absolute;
        top: -6px;
        right: -8px;
        background-color: var(--secondary-color);
        color: #fff;
        font-size: 10px;
        font-weight: bold;
        width: 16px;
        height: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }
    
    .floating-whatsapp {
        bottom: 80px !important;
        right: 15px !important;
        width: 45px !important;
        height: 45px !important;
        font-size: 24px !important;
    }
}