/* Header Styles */

/* Top Bar Styles */
.tf-top-bar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1001 !important;
    background-color: #333 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.tf-top-bar_wrap {
    padding: 6px 0px !important;
}

.tf-top-bar_left .d-flex span {
    font-size: 13px !important;
}

.tf-social-icon .box-icon {
    width: 28px !important;
    height: 28px !important;
}

.tf-social-icon .icon {
    font-size: 12px !important;
}

/* Header Layout */
header {
    min-height: auto !important;
    position: fixed !important;
    top: 40px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    background-color: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

body {
    padding-top: 160px !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .tf-top-bar {
        display: none !important;
    }

    .tf-form-search {
        display: none !important;
    }

    .nav-icon {
        display: none !important;
    }

    .nav-notification,
    .nav-cart,
    .nav-search,
    .nav-account,
    .nav-user,
    .nav-wishlist,
    .nav-logout,
    .nav-customer-panel {
        display: none !important;
    }

    .header-bottom {
        display: none !important;
    }

    .main-header {
        min-height: 60px !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        background: white !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    }

    .wrapper-header {
        justify-content: center !important;
        align-items: center !important;
        padding: 10px 0 !important;
        position: relative !important;
    }

    .col-md-4.col-6 {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: auto !important;
    }

    .col-md-4.col-3.tf-lg-hidden {
        display: flex !important;
        align-items: center !important;
        position: absolute !important;
        left: 15px !important;
        z-index: 10 !important;
    }

    .col-md-4.col-3:last-child {
        display: none !important;
    }

    body {
        padding-top: 70px !important;
    }

    .tf-shop-sidebar.d-none.d-md-block {
        display: none !important;
    }

    .wrap-sidebar-mobile.d-none.d-md-block {
        display: none !important;
    }

    .tf-row-flex {
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }

    .tf-shop-sidebar {
        width: 30% !important;
        min-width: 250px !important;
        margin-right: 20px !important;
        margin-bottom: 0 !important;
    }

    .tf-shop-content {
        width: calc(70% - 20px) !important;
        flex: 1 !important;
    }

    @media (max-width: 576px) {
        .tf-row-flex {
            flex-direction: column !important;
        }

        .tf-shop-sidebar {
            width: 100% !important;
            margin-right: 0 !important;
            margin-bottom: 20px !important;
        }

        .tf-shop-content {
            width: 100% !important;
        }
    }

    .mobile-categories-section.d-md-none {
        background: #f8f9fa;
        padding: 20px;
        margin-bottom: 20px;
        border-radius: 8px;
        border: 1px solid #e9ecef;
    }

    .mobile-categories-section .facet-title {
        font-weight: 600;
        font-size: 1.1rem;
        margin-bottom: 15px;
        color: #333;
        text-align: center;
    }

    .mobile-categories-section .list-categories {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin: 0;
        padding: 0;
        list-style: none;
        width: 100%;
    }

    .mobile-categories-section .cate-item {
        margin: 0;
    }

    .mobile-categories-section .cate-item a {
        display: inline-block;
        padding: 8px 12px;
        background: white;
        border: 1px solid #dee2e6;
        border-radius: 4px;
        color: #495057;
        text-decoration: none;
        font-size: 13px;
        font-weight: 500;
        transition: all 0.2s ease;
        text-align: left;
        width: auto;
        min-width: 120px;
        line-height: 1.3;
    }

    .mobile-categories-section .cate-item a:hover {
        background: #f8f9fa;
        color: #333;
        border-color: #adb5bd;
        transform: translateX(3px);
    }

    .mobile-categories-section .cate-item a.active {
        background: #333;
        color: white;
        border-color: #333;
        font-weight: 600;
    }
}

/* Header Structure */
.header-default .wrapper-header {
    min-height: 50px !important;
}

.header-style-2 .wrapper-header {
    min-height: 45px !important;
}

.header-style-2 .header-bottom .wrapper-header {
    min-height: 45px !important;
}

.header-bottom .box-nav-ul .menu-item {
    padding: 12px 0px !important;
}

.header-bottom .box-nav-ul .menu-item>a::after {
    height: 45px !important;
}

#header.header-style-4 .header-bottom .wrapper-header {
    min-height: 55px !important;
}

#header.header-style-4 .header-bottom .menu-item {
    padding: 18px 0px !important;
}

#header.header-style-4 .header-bottom .menu-item>a::after {
    height: 55px !important;
}

.header-default .box-nav-ul {
    gap: 15px !important;
}

#header .box-nav-ul .item-link {
    font-size: 14px !important;
    padding: 8px 10px !important;
}

.px_15.lg-px_40 {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

@media (min-width: 992px) {
    .px_15.lg-px_40 {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* Logo Styles */
.logo-header img {
    max-height: 60px !important;
    width: auto !important;
}

.logo-header {
    text-decoration: none !important;
    display: inline-block !important;
    transition: transform 0.3s ease !important;
}

.logo-header:hover {
    transform: scale(1.05) !important;
}

.logo-text {
    display: flex !important;
    flex-direction: row !important;
    align-items: baseline !important;
    line-height: 1 !important;
    gap: 8px !important;
}

.logo-primary {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #253D4E !important;
    letter-spacing: -0.5px !important;
    text-transform: uppercase !important;
    font-family: 'Poppins', sans-serif !important;
    background: linear-gradient(135deg, #253D4E 0%, #4A90E2 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.logo-secondary {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #7A8C9A !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    font-family: 'Poppins', sans-serif !important;
}

@media (max-width: 768px) {
    .logo-primary {
        font-size: 24px !important;
    }

    .logo-secondary {
        font-size: 12px !important;
        letter-spacing: 1.5px !important;
    }
}

@media (max-width: 576px) {
    .logo-primary {
        font-size: 20px !important;
    }

    .logo-secondary {
        font-size: 10px !important;
        letter-spacing: 1px !important;
    }
}

/* Search Styles */
.tf-form-search .search-box {
    padding: 8px 12px !important;
}

.tf-form-search .search-box input {
    padding: 6px 10px !important;
    font-size: 14px !important;
}

/* Navigation Icons */
.nav-icon {
    gap: 12px !important;
}

.nav-icon-item {
    padding: 6px 8px !important;
}

#header .header-bottom .box-right .phone {
    font-size: 20px !important;
    line-height: 20px !important;
}

#header .header-bottom .box-right {
    gap: 12px !important;
}

/* Navigation Menu */
.box-navigation {
    padding: 8px 0 !important;
}

.box-navigation .sub-nav {
    margin-top: 1px !important;
    padding: 6px !important;
}

.box-navigation .sub-nav .sub-nav-link {
    padding: 8px 10px !important;
    font-size: 13px !important;
}

.tf-lg-hidden svg {
    width: 20px !important;
    height: 14px !important;
}

/* Modal and Offcanvas Z-index */
.modal {
    z-index: 1050 !important;
}

.modal-backdrop {
    z-index: 1040 !important;
}

.offcanvas {
    z-index: 1055 !important;
}

.offcanvas-backdrop {
    z-index: 1054 !important;
}

#shoppingCart {
    z-index: 1060 !important;
}

#login {
    z-index: 1060 !important;
}

#canvasSearch {
    z-index: 1055 !important;
}

#mobileMenu {
    z-index: 1055 !important;
}

/* Container Padding */
.container {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

@media (min-width: 768px) {
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Maintenance Banner */
.maintenance-banner {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 12px 0;
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
    animation: slideDown 0.5s ease-out;
}

.maintenance-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.maintenance-content i {
    font-size: 16px;
    opacity: 0.9;
}

.maintenance-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    margin-left: 10px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    opacity: 0.8;
}

.maintenance-close:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .maintenance-content {
        font-size: 13px;
        gap: 8px;
    }

    .maintenance-content i {
        font-size: 14px;
    }
}

@media (max-width: 991px) {
    body {
        padding-top: 140px !important;
    }
}

@media (max-width: 767px) {
    body {
        padding-top: 130px !important;
    }
}

/* Navigation Menu Styles */
.box-navigation .menu-item {
    position: relative;
}

.box-navigation .item-link {
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color .2s ease, color .2s ease;
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
    white-space: nowrap;
}

.box-navigation .item-link:hover {
    background-color: #f5f7fa;
    color: #111;
}

.box-navigation .menu-item.has-children>.item-link::after {
    content: "+";
    font-size: 16px;
    margin-left: 8px;
    opacity: .95;
    font-weight: 700;
    display: inline-block;
    width: 18px;
    text-align: center;
    line-height: 1;
}

.box-navigation .menu-item.has-children:hover>.item-link::after {
    content: "−";
}

.box-navigation .sub-nav {
    position: absolute;
    top: 100%;
    margin-top: 2px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    padding: 8px;
    min-width: 220px;
    z-index: 1000;
}

.box-navigation .menu-item.has-children:hover>.sub-nav {
    display: block;
}

.box-navigation .menu-item.has-children .sub-nav:hover {
    display: block;
}

.box-navigation .menu-item.has-children::after {
    content: "";
    position: absolute;
    top: 100%;
    left: -10px;
    right: -10px;
    height: 10px;
}

.box-navigation .sub-nav li {
    list-style: none;
}

.box-navigation .sub-nav .sub-nav-link {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    color: #253D4E;
    white-space: nowrap;
    transition: background-color .2s ease, color .2s ease;
}

.box-navigation .sub-nav .sub-nav-link:hover {
    background: #f1f5f9;
    color: #0f172a;
}

@media (max-width: 991px) {
    .box-navigation .sub-nav {
        position: static;
        display: block;
        box-shadow: none;
        border: 0;
        padding: 4px 0;
        min-width: 0;
    }
}