/* New Header Design Styles - Version 1.0.0 */

/* Force display of new header elements */
body .top-header-bar-new,
body .header-default-new,
body .main-navigation-bar-new {
    display: block !important;
}

/* Override any existing header styles */
.header-default,
.header-page {
    position: relative;
}

/* Hide old header elements if they exist */
.header-default .logo-default:not(.main-header-logo-new),
.header-default .header-nav-default:not(.header-nav-default-new),
.header-default .flex-wrapper:not(.main-header-content-new):not(.navigation-content-new) {
    display: none !important;
}

/* Ensure new header sections are visible */
.top-header-bar-new {
    display: block !important;
    visibility: visible !important;
}

.header-default-new {
    display: block !important;
    visibility: visible !important;
}

.main-navigation-bar-new {
    display: block !important;
    visibility: visible !important;
}

/* Top Header Bar - Blue Background */
.top-header-bar-new {
    background-color: #1e3a8a;
    color: #ffffff;
    padding: 8px 0;
    font-size: 13px;
}

.top-header-content-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.top-header-left-new,
.top-header-right-new {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.top-header-text-new {
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.top-header-text-new i {
    font-size: 14px;
}

.top-header-text-new a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.top-header-text-new a:hover {
    opacity: 0.8;
}

/* Main Header - White Background */
.header-default-new {
    background-color: #ffffff;
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
}

.main-header-content-new {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 30px;
    width: 100%;
}

/* Logo */
.main-header-logo-new {
    flex-shrink: 0;
    grid-column: 1;
}

.main-header-logo-new img,
.main-header-logo-new .custom-logo,
.main-header-logo-new .site-logo-image {
    max-height: 60px;
    width: auto;
    display: block;
    height: auto;
}

.main-header-logo-new a {
    display: inline-block;
    line-height: 0;
}

.main-header-logo-new .custom-logo-link {
    display: inline-block;
}

.main-header-logo-new .custom-logo-link img {
    max-height: 60px;
    width: auto;
    display: block;
}

.site-logo-text {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(90deg, #1e40af 0%, #dc2626 25%, #16a34a 50%, #fbbf24 75%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Search Bar */
.main-header-search-new {
    grid-column: 2;
    justify-self: center;
    width: 100%;
    max-width: 600px;
}

.search-form-new {
    position: relative;
    display: flex;
    width: 100%;
}

.search-field-new {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    font-size: 14px;
    background-color: #f9fafb;
    transition: border-color 0.3s;
}

.search-field-new:focus {
    outline: none;
    border-color: #f97316;
    background-color: #ffffff;
}

.search-submit-new {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #f97316;
    color: #ffffff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.search-submit-new:hover {
    background: #ea580c;
}

.search-submit-new i {
    font-size: 18px;
}

/* Header Actions */
.main-header-actions-new {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    grid-column: 3;
    justify-self: end;
}

.header-action-icon {
    position: relative;
    width: 45px;
    height: 45px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
    font-size: 20px;
    text-decoration: none;
    transition: background 0.3s;
}

.header-action-icon:hover {
    background: #e5e7eb;
    color: #dc2626;
}

.wishlist-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc2626;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.4;
}

.wishlist-count-badge:empty {
    display: none;
}

.header-action-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
}

/* Cart Dropdown */
.cart-dropdown-wrapper {
    position: relative;
}

.cart-dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    max-height: 500px;
    overflow-y: auto;
}

.cart-dropdown-wrapper:hover .cart-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cart-dropdown-content .list-mini-cart-item {
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
}

.cart-dropdown-content .item-info-cart {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e5e7eb;
}

.cart-dropdown-content .item-info-cart:last-child {
    border-bottom: none;
}

.cart-dropdown-content .product-thumb {
    flex-shrink: 0;
}

.cart-dropdown-content .product-thumb img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-dropdown-content .product-info {
    flex: 1;
}

.cart-dropdown-content .product-title {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 500;
}

.cart-dropdown-content .product-title a {
    color: #333;
    text-decoration: none;
}

.cart-dropdown-content .product-title a:hover {
    color: #f97316;
}

.cart-dropdown-content .mini-cart-qty {
    font-size: 13px;
    color: #666;
}

.cart-dropdown-content .product-delete {
    flex-shrink: 0;
}

.cart-dropdown-content .remove-product {
    color: #dc2626;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.3s;
}

.cart-dropdown-content .remove-product:hover {
    color: #b91c1c;
}

.cart-dropdown-content .mini-cart-total {
    padding: 15px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
}

.cart-dropdown-content .mini-cart-button {
    padding: 15px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 10px;
}

.cart-dropdown-content .mini-cart-button a {
    flex: 1;
    padding: 12px;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.cart-dropdown-content .mini-cart-button .wc-forward:not(.checkout) {
    background: #f3f4f6;
    color: #333;
}

.cart-dropdown-content .mini-cart-button .wc-forward:not(.checkout):hover {
    background: #e5e7eb;
}

.cart-dropdown-content .mini-cart-button .checkout {
    background: #f97316;
    color: #ffffff;
}

.cart-dropdown-content .mini-cart-button .checkout:hover {
    background: #ea580c;
}

.cart-dropdown-content .mini-cart-empty {
    padding: 30px 15px;
    text-align: center;
    color: #666;
}

/* Cart Count Badge */
.cart-button-new {
    position: relative;
}

.cart-count-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ef4444;
    color: #ffffff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    line-height: 1;
    min-width: 20px;
    padding: 0;
}

.cart-button-new {
    background: #f3f4f6;
    color: #333;
}

.cart-button-new:hover {
    background: #e5e7eb;
}

.cart-total-text {
    font-weight: 600;
    color: #333;
}

.login-button-new {
    background: #f97316;
    color: #ffffff;
}

.login-button-new:hover {
    background: #ea580c;
}

.login-button-new i {
    font-size: 14px;
}

.header-user-info-new {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s;
    cursor: pointer;
}

.header-user-info-new:hover {
    color: #f97316;
}

.header-user-info-new i {
    color: #16a34a;
    font-size: 18px;
}

.user-greeting {
    font-weight: 500;
}

/* Navigation Bar - White Background */
.main-navigation-bar-new {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 0;
}

.navigation-content-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

/* Shop By Category Dropdown */
.shop-category-dropdown-new {
    position: relative;
}

.category-toggle-new {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 10px 18px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: all 0.3s;
}

.category-toggle-new:hover {
    border-color: #f97316;
    color: #f97316;
}

.category-toggle-new i:first-child {
    font-size: 16px;
}

.category-toggle-new i:last-child {
    font-size: 12px;
    margin-left: auto;
}

.category-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 250px;
    max-height: 500px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: 5px;
}

.shop-category-dropdown-new:hover .category-dropdown-menu {
    display: block;
}

.category-dropdown-list {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.category-dropdown-item {
    position: relative;
}

.category-dropdown-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}

.category-dropdown-item > a:hover {
    background: #f3f4f6;
}

.category-dropdown-item.has-submenu > a i {
    font-size: 12px;
    color: #999;
}

.subcategory-dropdown-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f9fafb;
    display: none;
}

.category-dropdown-item.has-submenu:hover .subcategory-dropdown-list {
    display: block;
}

.subcategory-dropdown-list li a {
    display: block;
    padding: 10px 18px 10px 35px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.3s;
}

.subcategory-dropdown-list li a:hover {
    background: #f3f4f6;
    color: #f97316;
}

/* Navigation Menu */
.nav-right-new {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.default-menu-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.default-menu-links a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.default-menu-links a:hover {
    color: #f97316;
}

.header-nav-default-new {
    display: flex;
    align-items: center;
}

.bzotech-navbar-nav-new {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
    align-items: center;
}

.bzotech-navbar-nav-new li {
    position: relative;
}

.bzotech-navbar-nav-new li a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 0;
}

.bzotech-navbar-nav-new li a:hover {
    color: #f97316;
}

.toggle-mobile-menu {
    display: none;
    color: #333;
    font-size: 24px;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-header-content-new {
        grid-template-columns: auto 1fr auto;
        gap: 15px;
    }
    
    .main-header-search-new {
        max-width: 100%;
    }
    
    .main-header-actions-new {
        gap: 8px;
    }
    
    .header-action-button {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .cart-dropdown-content {
        width: 320px;
        right: -50px;
    }
}

@media (max-width: 768px) {
    /* Hide top header bar on mobile for cleaner look */
    .top-header-bar-new {
        display: none !important;
    }
    
    .top-header-content-new {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .top-header-left-new,
    .top-header-right-new {
        gap: 15px;
    }
    
    .main-header-content-new {
        grid-template-columns: auto 1fr auto !important;
        gap: 10px !important;
        align-items: center !important;
    }
    
    .main-header-logo-new {
        flex-shrink: 0 !important;
    }
    
    .main-header-logo-new img {
        max-height: 40px !important;
        width: auto !important;
    }
    
    .site-logo-text {
        font-size: 20px !important;
    }
    
    .main-header-search-new {
        flex: 1 !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }
    
    .search-field-new {
        font-size: 13px !important;
        padding: 8px 12px !important;
    }
    
    .main-header-actions-new {
        gap: 6px !important;
        flex-shrink: 0 !important;
    }
    
    .header-action-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
        padding: 0 !important;
    }
    
    .header-action-button {
        padding: 8px 10px !important;
        font-size: 11px !important;
        min-width: auto !important;
    }
    
    .cart-button-new {
        padding: 8px 10px !important;
    }
    
    .cart-total-text {
        display: none !important;
    }
    
    .login-button-new {
        display: none !important;
    }
    
    .header-user-info-new {
        display: none !important;
    }
    
    /* Cart dropdown on mobile - show on click instead of hover */
    .cart-dropdown-content {
        width: calc(100vw - 40px);
        max-width: 350px;
        right: 0;
        left: auto;
        position: fixed;
        top: auto;
        margin-top: 0;
    }
    
    .cart-dropdown-wrapper.active .cart-dropdown-content {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .user-greeting {
        display: none;
    }
    
    .navigation-content-new {
        flex-wrap: wrap;
    }
    
    .nav-right-new {
        width: 100%;
        margin-top: 10px;
    }
    
    .toggle-mobile-menu {
        display: block;
    }
    
    .bzotech-menu-inner {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 4px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        padding: 15px;
        margin-top: 5px;
        z-index: 1000;
    }
    
    .bzotech-menu-inner.active {
        display: block;
    }
    
    .bzotech-navbar-nav-new {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    
    .bzotech-navbar-nav-new li {
        width: 100%;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .bzotech-navbar-nav-new li:last-child {
        border-bottom: none;
    }
    
    .bzotech-navbar-nav-new li a {
        display: block;
        padding: 12px 0;
    }
    
    .default-menu-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .top-header-text-new {
        font-size: 11px;
    }
    
    .cart-total-text {
        display: none;
    }
    
    .user-greeting {
        display: none;
    }
}

