/* Header Strip */
.header-strip {
    background: linear-gradient(270deg, #294AFF 0%, #1FD3FF 100%);
    height: 23px;
    display: flex;
    align-items: center;
    width: 100%;
}

.header-strip .welcome-text {
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 12px;
    line-height: 15px;
    margin: 0;
    text-align: center;
}

/* Main Header */
.header-main {
    background: #FFFFFF;
    padding: 30px 20px;
    width: 100%;
    box-sizing: border-box;
}

.header-main-inner {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.site-logo {
    width: 148px;
    height: 62px;
    margin-right: 50px;
    flex-shrink: 0;
}

.header-search {
    flex: 1;
    max-width: 600px;
    margin-right: 30px;
}

/* ===== FIBOSEARCH COMPLETE OVERRIDE ===== */

/* Search wrapper container */
.site-header .header-search {
    flex: 1;
    max-width: 600px;
}

/* FiboSearch main wrapper */
.site-header .header-search .dgwt-wcas-search-wrapp,
.dgwt-wcas-search-wrapp.dgwt-wcas-style-pirx {
    max-width: 100% !important;
    width: 100% !important;
}

/* Remove form margins */
.site-header .header-search .dgwt-wcas-search-form {
    margin: 0 !important;
}

/* Search bar container - with gradient border */
.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp,
.site-header .dgwt-wcas-sf-wrapp,
.dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp {
    /* Gradient border effect */
    background: linear-gradient(#F3F3F3, #F3F3F3) padding-box,
                linear-gradient(270deg, #294AFF 0%, #1FD3FF 100%) border-box !important;
    border: 2px solid transparent !important;
    border-radius: 24px !important;
    height: 42px !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    overflow: visible !important;
}

/* Search Input Field */
.dgwt-wcas-style-pirx input[type="search"].dgwt-wcas-search-input,
.site-header .dgwt-wcas-search-input,
.dgwt-wcas-sf-wrapp input.dgwt-wcas-search-input {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-width: 0 !important;
    color: #333333 !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 400 !important;
    font-size: 12px !important;
    line-height: 15px !important;
    padding: 0 50px 0 30px !important;
    height: 42px !important;
    width: 100% !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Placeholder text */
.dgwt-wcas-style-pirx .dgwt-wcas-search-input::placeholder,
.site-header .dgwt-wcas-search-input::placeholder {
    color: #CACACA !important;
    opacity: 1 !important;
    font-size: 12px !important;
    font-weight: 400 !important;
}

/* Search Submit Button - CENTERED */
.dgwt-wcas-style-pirx button.dgwt-wcas-search-submit,
.site-header .dgwt-wcas-search-submit,
.dgwt-wcas-sf-wrapp button[type="submit"],
.dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit {
    position: absolute !important;
    right: 12px !important;
    left: auto !important;
    top: 60% !important;
    transform: translateY(-40%) !important;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    border-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    cursor: pointer !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Hover state for button */
.dgwt-wcas-style-pirx button.dgwt-wcas-search-submit:hover,
.site-header .dgwt-wcas-search-submit:hover {
    background: none !important;
    background-color: transparent !important;
}

/* Search Icon SVG - #CACACA color */
.dgwt-wcas-style-pirx .dgwt-wcas-ico-magnifier,
.site-header .dgwt-wcas-ico-magnifier,
.dgwt-wcas-search-submit svg,
.dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit svg {
    width: 18px !important;
    height: 18px !important;
    fill: #CACACA !important;
    stroke: #CACACA !important;
    color: #CACACA !important;
    display: block !important;
    margin: 0 !important;
    transition: fill 0.3s ease !important;
}

/* Search Icon SVG path - force color */
.dgwt-wcas-style-pirx .dgwt-wcas-ico-magnifier path,
.dgwt-wcas-search-submit svg path {
    fill: #CACACA !important;
    stroke: none !important;
}

/* Hover state for icon */
.dgwt-wcas-style-pirx .dgwt-wcas-search-submit:hover .dgwt-wcas-ico-magnifier,
.site-header .dgwt-wcas-search-submit:hover .dgwt-wcas-ico-magnifier,
.dgwt-wcas-search-submit:hover svg {
    fill: #999999 !important;
}

.dgwt-wcas-search-submit:hover svg path {
    fill: #999999 !important;
}

/* Active/focus state - icon turns blue */
.dgwt-wcas-style-pirx.dgwt-wcas-is-active .dgwt-wcas-ico-magnifier,
.dgwt-wcas-style-pirx.dgwt-wcas-is-active .dgwt-wcas-ico-magnifier path {
    fill: #294AFF !important;
}

/* Hide unnecessary elements */
.dgwt-wcas-style-pirx .dgwt-wcas-voice-search,
.dgwt-wcas-style-pirx .dgwt-wcas-close,
.dgwt-wcas-search-submit span {
    display: none !important;
}

/* Hide label properly */
.dgwt-wcas-style-pirx label.screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Remove all default borders and shadows */
.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp::after,
.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp::before,
.site-header .dgwt-wcas-sf-wrapp::after,
.site-header .dgwt-wcas-sf-wrapp::before {
    display: none !important;
    content: none !important;
}

/* Preloader positioning */
.dgwt-wcas-style-pirx .dgwt-wcas-preloader,
.site-header .dgwt-wcas-preloader {
    right: 40px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    position: absolute !important;
}

/* Search results dropdown styling */
.dgwt-wcas-style-pirx .dgwt-wcas-suggestions-wrapp {
    border-radius: 12px !important;
    border: 1px solid #E0E0E0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    margin-top: 8px !important;
}

/* Focus states - ensure no unwanted borders */
.dgwt-wcas-style-pirx.dgwt-wcas-search-wrapp:not(.dgwt-wcas-is-active) .dgwt-wcas-sf-wrapp,
.dgwt-wcas-style-pirx.dgwt-wcas-is-active .dgwt-wcas-sf-wrapp {
    box-shadow: none !important;
}

/* Ensure input focus doesn't add unwanted styles */
.dgwt-wcas-style-pirx .dgwt-wcas-search-input:focus,
.site-header .dgwt-wcas-search-input:focus {
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 185px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14.4px;
    line-height: 17px;
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 3.6px;
    width: 152.4px;
    height: 42px;
}

.btn-outline {
    border: 1.2px solid #CACACA;
    color: #CACACA;
    background: transparent;
}

.btn-outline:hover {
    border-color: #999;
    color: #999;
}

.btn-primary {
    background: linear-gradient(270deg, #294AFF 0%, #1FD3FF 100%);
    color: #FFFFFF;
    border: none;
}

.btn-primary:hover {
    opacity: 0.9;
}

/* Cart Button */
.header-cart {
    position: relative;
    margin-left: 20px;
}

.cart-button {
    display: block;
    position: relative;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #294AFF;
    color: #F2F2F2;
    font-size: 9.33px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gradient Divider Line */
.header-divider {
    height: 2px;
    background: linear-gradient(90deg, #1FD3FF 0%, #294AFF 100%);
    width: 100%;
}

/* Navigation */
.header-nav {
    background: #FFFFFF;
    padding: 0;
    position: relative;
    width: 100%;
}

.header-nav .container {
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Main Menu */
.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 33px;
    align-items: center;
}

/* Menu Items */
.main-menu > li {
    position: relative;
}

.main-menu a {
    color: #333333;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 17px;
    text-decoration: none;
    padding: 15px 0;
    display: block;
    position: relative;
    transition: color 0.3s ease;
}

/* Hover state */
.main-menu a:hover {
    color: #1FD3FF;
}

/* Current/Active menu item */
.main-menu .current-menu-item > a,
.main-menu .current_page_item > a,
.main-menu .current-menu-ancestor > a,
.main-menu .current-product-ancestor > a {
    color: #1FD3FF;
    font-weight: 600;
}

/* Active menu underline */
.main-menu > .current-menu-item::after,
.main-menu > .current_page_item::after,
.main-menu > .current-menu-ancestor::after,
.main-menu > .current-product-ancestor::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #20C1FF;
}

/* Dropdown indicator arrow */
.main-menu > li.menu-item-has-children > a::after,
.main-menu .sub-menu .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: transform 0.3s ease;
}

/* For nested items, arrow points right */
.main-menu .sub-menu .menu-item-has-children > a::after {
    margin-left: 8px;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 4px solid currentColor;
    border-right: none;
}

.main-menu > li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

/* Submenu / Dropdown - Level 1 */
.main-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    min-width: 220px;
    padding: 10px 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

/* Show submenu on hover */
.main-menu > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Nested submenu - Level 2+ */
.main-menu .sub-menu .sub-menu {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 5px;
}

/* Show nested submenu on hover */
.main-menu .sub-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Adjust transform for nested submenus */
.main-menu .sub-menu .sub-menu {
    transform: translateX(-10px);
}

/* Submenu items */
.main-menu .sub-menu li {
    position: relative;
}

.main-menu .sub-menu a {
    padding: 12px 20px;
    display: block;
    color: #333333;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.main-menu .sub-menu a:hover {
    background: #F5F5F5;
    color: #1FD3FF;
    padding-left: 25px;
}

/* Nested submenu items - don't double indent */
.main-menu .sub-menu .sub-menu a:hover {
    padding-left: 20px;
}

/* Active submenu item */
.main-menu .sub-menu .current-menu-item > a,
.main-menu .sub-menu .current_page_item > a {
    background: #F0FAFF;
    color: #1FD3FF;
    font-weight: 600;
}

/* For custom menu classes if needed */
.menu-item-home.current-menu-item a,
.menu-item-home.current_page_item a {
    color: #1FD3FF;
    font-weight: 600;
}

/* Active menu underline */
.main-menu .current-menu-item::after,
.main-menu .current_page_item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #20C1FF;
}

/* For custom menu classes if needed */
.menu-item-home.current-menu-item a,
.menu-item-home.current_page_item a {
    color: #1FD3FF;
    font-weight: 600;
}

/* Container and general styles remain the same */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Ensure proper header structure */
.site-header {
    position: relative;
    width: 100%;
    background: #FFFFFF;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.mobile-auth-buttons {
    display: none !important;
}

/* ===== MOBILE RESPONSIVE STYLES ===== */

/* Large Desktop */
@media (min-width: 1201px) {
    .header-main {
        padding: 30px 40px;
    }
    
    .header-main-inner {
        max-width: 1400px;
    }
    
    .site-logo {
        margin-right: 100px;
    }
    
    .header-search {
        margin-right: 60px;
    }
    
    .header-actions {
        gap: 30px;
    }
    
    .header-cart {
        margin-left: 40px;
    }
}

/* Medium Desktop/Tablet */
@media (max-width: 1200px) and (min-width: 768px) {
    .header-main {
        padding: 25px 30px;
    }
    
    .header-main-inner {
        gap: 20px;
    }
    
    .site-logo {
        width: 120px;
        height: 50px;
        margin-right: 30px;
    }
    
    .header-search {
        margin-right: 20px;
        max-width: 400px;
    }
    
    .header-actions {
        gap: 15px;
    }
    
    .btn {
        width: 130px;
        font-size: 13px;
        padding: 10px 20px;
    }
    
    .header-cart {
        margin-left: 15px;
    }
}

/* Small Tablet */
@media (max-width: 1024px) and (min-width: 768px) {
    .header-main {
        padding: 20px 25px;
    }
    
    .site-logo {
        width: 100px;
        height: 42px;
        margin-right: 20px;
    }
    
    .header-search {
        max-width: 300px;
        margin-right: 15px;
    }
    
    .btn {
        width: 120px;
        font-size: 12px;
    }
}

/* Mobile Navigation Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #0A2240;
    margin: 5px 0;
    transition: 0.3s;
}

/* Mobile Styles */
@media (max-width: 767px) {
    /* Header strip */
    .header-strip .welcome-text {
        font-size: 10px;
        line-height: 13px;
    }
    
    /* Main header adjustments */
    .header-main {
        padding: 20px 15px;
    }
    
    .header-main-inner {
        flex-wrap: wrap;
        gap: 15px;
        position: relative;
    }
    
    /* Logo */
    .site-logo {
        width: 120px;
        height: 50px;
        margin-right: auto;
        order: 1;
    }
    
    .site-logo img {
        max-height: 50px;
        width: auto;
    }
    
    /* Header actions - KEEP VISIBLE but modify contents */
    .header-actions {
        display: flex !important;
        gap: 10px;
        order: 2;
        margin-left: auto;
    }
    
    /* Hide only the login/register buttons on mobile */
    .header-actions .btn {
        display: none !important;
    }
    
    /* Cart stays visible */
    .header-cart {
        display: block !important;
        margin-left: 0;
        margin-right: 10px;
    }
    
    /* Mobile menu toggle - ensure it's visible */
    .mobile-menu-toggle {
        display: block !important;
    }
    
    /* Search bar - full width below */
    .header-search {
        width: 100%;
        max-width: 100%;
        margin: 0;
        order: 3;
        flex-basis: 100%;
    }
    
    /* Navigation - Hidden by default on mobile */
    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #FFFFFF;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .header-nav.active {
        display: block;
    }
    
    /* Navigation container for mobile */
    .header-nav .container {
        padding: 0 15px;
        text-align: center;
    }
    
    /* Mobile menu styling */
    .main-menu {
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
        align-items: center;
        text-align: center;
    }
    
    .main-menu > li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #EFEFEF;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .main-menu > li:last-child {
        border-bottom: none;
    }
    
    .main-menu a {
        padding: 15px 20px;
        text-align: center;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    /* Hide dropdown arrow on mobile, replace with + */
    .main-menu > li.menu-item-has-children > a::after,
    .main-menu .sub-menu .menu-item-has-children > a::after {
        content: '+';
        border: none;
        width: auto;
        height: auto;
        margin-left: 10px;
        font-size: 18px;
        font-weight: 700;
        transition: transform 0.3s ease;
    }
    
    .main-menu > li.submenu-open > a::after,
    .main-menu .sub-menu li.submenu-open > a::after {
        content: '−';
        transform: none;
    }
    
    /* Mobile submenu styling - All levels */
    .main-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        background: #F9F9F9;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
        margin: 0;
    }
    
    .main-menu > li.submenu-open > .sub-menu,
    .main-menu .sub-menu li.submenu-open > .sub-menu {
        max-height: 1000px;
        padding: 10px 0;
    }
    
    /* Nested submenu styling - indent further */
    .main-menu .sub-menu .sub-menu {
        background: #EFEFEF;
        margin-left: 0;
    }
    
    .main-menu .sub-menu .sub-menu .sub-menu {
        background: #E5E5E5;
    }
    
    .main-menu .sub-menu a {
        padding: 10px 20px;
        font-size: 13px;
        justify-content: center;
    }
    
    /* Indent nested items */
    .main-menu .sub-menu .sub-menu a {
        padding-left: 30px;
        font-size: 12px;
    }
    
    .main-menu .sub-menu .sub-menu .sub-menu a {
        padding-left: 40px;
    }
    
    .main-menu .sub-menu a:hover {
        padding-left: 20px;
        background: #EFEFEF;
    }
    
    .main-menu .sub-menu .sub-menu a:hover {
        padding-left: 30px;
    }
    
    /* Active menu item underline adjustment */
    .main-menu > .current-menu-item::after,
    .main-menu > .current_page_item::after,
    .main-menu > .current-menu-ancestor::after {
        bottom: 0;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: 60%;
    }
    
    /* Add mobile auth buttons section */
    .header-nav.active .mobile-auth-buttons {
        display: flex !important;
        flex-direction: column;
        gap: 10px;
        padding: 20px;
        border-top: 2px solid #EFEFEF;
    }
    
    .mobile-auth-buttons .btn {
        display: flex !important;
        width: 100%;
        justify-content: center;
    }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
    .header-main {
        padding: 15px 10px;
    }
    
    /* Even smaller logo */
    .site-logo {
        width: 100px;
        height: 42px;
    }
    
    .site-logo img {
        max-height: 42px;
    }
    
    /* Smaller cart icon */
    .cart-button svg {
        width: 30px;
        height: 26px;
    }
    
    /* Mobile toggle smaller */
    .mobile-menu-toggle {
        padding: 5px;
    }
    
    .mobile-menu-toggle span {
        width: 20px;
        height: 2px;
        margin: 4px 0;
    }
    
    /* Smaller buttons in mobile menu */
    .mobile-auth-buttons .btn {
        font-size: 13px;
        padding: 10px 20px;
        height: 38px;
    }
    
    /* Adjust container padding */
    .container {
        padding: 0 10px;
    }
}

/* Landscape mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .header-main {
        padding: 15px;
    }
    
    .header-nav {
        max-height: 70vh;
        overflow-y: auto;
    }
}

/* Fix search bar on very small screens */
@media (max-width: 360px) {
    .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp {
        height: 38px !important;
    }
    
    .dgwt-wcas-style-pirx input[type="search"].dgwt-wcas-search-input {
        font-size: 11px !important;
        height: 38px !important;
        padding: 0 40px 0 20px !important;
    }
    
    .dgwt-wcas-style-pirx button.dgwt-wcas-search-submit {
        width: 16px !important;
        height: 16px !important;
    }
    
    .dgwt-wcas-style-pirx .dgwt-wcas-ico-magnifier {
        width: 16px !important;
        height: 16px !important;
    }
}

/* Accessibility - Focus styles for mobile menu */
.mobile-menu-toggle:focus {
    outline: 2px solid #294AFF;
    outline-offset: 2px;
}

/* Smooth transitions */
.header-nav {
    transition: all 0.3s ease;
}

/* Hamburger menu animation when active */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}