:root {
    --primary-color: #C02424;
    --text-color: #333;
    --main-menu-bg: transparent;
    --main-menu-color: #000;
    --link-color: #C02424;
    --price-color: #C02424;
}

/* Header Center Styles */
.header-center {
    padding-top: 20px;
}

.header-center__wrap {
    padding-bottom: 20px;
}

.header-search {
    flex-basis: 32%;
}

.header-search .form-control {
    background: transparent;
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid #1B1B1B;
    padding: 0;
    height: 32px;
    font-size: 14px;
}

.header-search .btn-submit {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0;
    background: transparent;
    border: none;
}

.header-tools {
    flex-basis: 32%;
}

.header-tools a {
    color: #931D36 !important;
    font-size: 14px;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-tools img {
    margin-right: 5px;
    width: 20px;
}

.header-tools .bar {
    width: 2px;
    height: 12px;
    background: #931D36;
    display: block;
    margin: 0px 20px;
}

.logo-wrapper {
    flex-basis: 32%;
    text-align: center;
}

/* Mini Cart Popup */
.mini-cart {
    position: relative;
}

.top-cart-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 340px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 1100;
    padding: 0;
    border: 1px solid #eee;
}

.mini-cart:hover .top-cart-content {
    display: block;
}

.list-item-cart {
    max-height: 400px;
    overflow-y: auto;
    padding: 0;
    margin: 0;
}

.list-item-cart .item {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #f1f1f1;
}

.list-item-cart .item:last-child {
    border-bottom: none;
}

.list-item-cart .image_drop {
    width: 70px;
    flex-shrink: 0;
}

.list-item-cart .detail-item {
    flex: 1;
    padding-left: 15px;
    position: relative;
}

.list-item-cart .product-name {
    margin: 0 0 5px;
    padding-right: 20px;
}

.list-item-cart .product-name a {
    color: #333;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-item-cart .remove-item-cart {
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
    color: #999;
}

.list-item-cart .remove-item-cart:hover {
    color: var(--primary-color);
}

.list-item-cart .price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 14px;
}

.list-item-cart .quanlity {
    font-size: 12px;
    color: #666;
    margin-left: 5px;
}

.top-cart-content .pd {
    padding: 15px;
    border-top: 1px solid #eee;
}

.top-subtotal {
    font-weight: 500;
    text-align: center;
    margin-bottom: 15px;
    font-size: 14px;
}

.top-subtotal .price_big {
    color: var(--primary-color);
    font-weight: bold;
}

.top-cart-content .btn-white {
    background: #000;
    color: #fff;
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
}

.top-cart-content .btn-white:hover {
    background: #222;
}

.no-item {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Account Dropdown */
.account-action {
    position: absolute;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    z-index: 1000;
    padding: 10px 0;
    transition: all 0.3s;
}

.header-icon:hover .account-action {
    opacity: 1;
    visibility: visible;
}

.account-action a {
    display: block;
    padding: 8px 15px;
    color: #333;
    font-size: 14px;
    text-decoration: none;
}

.account-action a:hover {
    background: #f5f5f5;
    color: var(--primary-color);
}

/* Header Wrap / Navigation */
.header-wrap {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: relative;
}

.navigation-horizontal {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navigation .menu-item {
    position: static; /* Let mega menu align with .header-wrap */
    border: none;
    background: transparent;
    padding: 0;
}

.navigation .menu-item:has(.submenu.default) {
    position: relative; /* Keep dropdowns aligned with parent */
}

.navigation .menu-item > a {
    display: flex;
    align-items: center;
    padding: 20px 12px;
    font-size: 13px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s;
}

.navigation .menu-item > a:hover {
    color: var(--primary-color);
}

/* Mega Menu & Submenu */
.megamenu-sub, .submenu.default {
    display: none;
    position: absolute;
    top: 100%;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 1000;
    border-top: 2px solid var(--primary-color);
}

.menu-item:hover > .megamenu-sub, 
.menu-item:hover > .submenu.default {
    display: block;
}

.megamenu-sub {
    width: 100%;
    left: 0;
    padding: 40px 0;
}

.megamenu-sub-wrap {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    list-style: none;
}

.megamenu-sub .item {
    flex: 1;
    padding: 0 15px;
}

.megamenu-sub .mega-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    margin-bottom: 15px;
    text-decoration: none;
}

.megamenu-sub .mega-title:hover {
    color: var(--primary-color);
}

.megamenu-sub-level2 {
    list-style: none;
    padding: 0;
    margin: 0;
}

.megamenu-sub-level2 li {
    margin-bottom: 8px;
}

.megamenu-sub-level2 li a {
    color: #666;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s;
}

.megamenu-sub-level2 li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.submenu.default {
    width: 250px;
    left: 0;
    padding: 15px 0;
}

/* Navigation Arrows */
.navigation-arrows {
    display: flex;
    align-items: center;
    margin-left: 15px;
    gap: 10px;
}

.navigation-arrows i {
    cursor: pointer;
    font-size: 14px;
    color: #000;
}

/* Gift Icons */
.gift-icon {
    width: 18px;
    margin-right: 10px;
}

@media (max-width: 991px) {
    .header-center { display: none; }
    
    .topbar-tools-mobile {
        background: #fff;
        border-bottom: 1px solid #f8f8f8;
        padding: 8px 0;
    }

    .topbar-tools-mobile .header-tools {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .topbar-tools-mobile .header-tools a {
        font-size: 11px;
        color: #931D36 !important;
        font-weight: 500;
        text-transform: none;
    }

    .topbar-tools-mobile .header-tools .bar {
        margin: 0 10px;
        height: 10px;
        background: #ccc;
    }

    .header-wrap {
        padding: 12px 0;
        background: #fff;
    }

    .logo-mobile-wrapper {
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .logo-mobile-wrapper img {
        max-height: 40px;
        width: auto;
    }

    .header-right-mobile {
        display: flex;
        gap: 15px;
        align-items: center;
        justify-content: flex-end;
    }

    .header-right-mobile .header-icon {
        font-size: 20px;
        color: #000;
        text-decoration: none;
    }

    .header-right-mobile .count_item {
        top: -5px;
        right: -8px;
        width: 16px;
        height: 16px;
        font-size: 10px;
    }

    .toggle-nav {
        cursor: pointer;
        padding: 5px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 25px;
        height: 18px;
    }

    .toggle-nav .bar {
        display: block;
        width: 100%;
        height: 2px;
        background: #000;
        border-radius: 2px;
    }

    /* Mobile Sidebar Styles */
    .mobile-sidebar {
        position: fixed;
        top: 0;
        left: -320px;
        width: 280px;
        height: 100%;
        background: #fff;
        z-index: 9999;
        transition: left 0.3s ease;
        display: flex;
        flex-direction: column;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    }

    .mobile-sidebar.active {
        left: 0;
    }

    .user-menu-header {
        background: #931D36;
        color: #fff;
        padding: 20px 15px;
    }

    .user-menu-header i {
        font-size: 32px;
    }

    .user-menu-header .user-info a {
        color: #fff;
        font-weight: 600;
        text-decoration: none;
        font-size: 16px;
    }

    .user-menu-header .user-info small a {
        color: rgba(255,255,255,0.8);
        font-size: 13px;
    }

    .mobile-menu-body {
        flex: 1;
        overflow-y: auto;
    }

    .mobile-nav-list li {
        border-bottom: 1px solid #f1f1f1;
    }

    .mobile-nav-list li a {
        display: block;
        padding: 15px;
        color: #333;
        font-weight: 500;
        text-transform: uppercase;
        font-size: 14px;
        text-decoration: none;
    }

    .mobile-nav-list li a i {
        color: #ccc;
        font-size: 12px;
        margin-top: 3px;
    }

    .mobile-menu-footer {
        border-top: 1px solid #eee;
    }

    .mobile-menu-footer .footer-btn {
        flex: 1;
        padding: 12px;
        text-align: center;
        color: #931D36;
        font-weight: 500;
        text-decoration: none;
        font-size: 14px;
    }

    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 9998;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .menu-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }
}
