/*
 * Doudoudis header and mega-menu visual corrections.
 * Loaded after the main storefront styles so Woodmart defaults cannot override it.
 */

/* --------------------------------------------------------------------------
 * MAIN HEADER — dark desktop row
 * -------------------------------------------------------------------------- */

@media (min-width: 1025px) {
    .whb-general-header,
    .doudoudis-main-header {
        background: var(--dou-navy-900) !important;
        border-bottom-color: rgba(255, 255, 255, 0.08) !important;
    }

    .whb-general-header .whb-row,
    .whb-general-header .whb-column,
    .whb-general-header .whb-col-left,
    .whb-general-header .whb-col-center,
    .whb-general-header .whb-col-right {
        align-items: center !important;
    }

    .whb-general-header .whb-col-right {
        display: flex !important;
        justify-content: flex-end !important;
        gap: 8px !important;
    }

    .whb-general-header .wd-logo,
    .whb-general-header .wd-logo a {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        min-width: 92px !important;
    }

    .whb-general-header .wd-logo img {
        width: 92px !important;
        min-width: 92px !important;
        max-width: 92px !important;
        max-height: 60px !important;
        object-fit: contain !important;
    }

    .whb-general-header .wd-tools-element,
    .whb-general-header .wd-header-my-account,
    .whb-general-header .wd-header-wishlist,
    .whb-general-header .wd-header-cart {
        display: inline-flex !important;
        align-items: center !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .whb-general-header .wd-tools-element > a,
    .whb-general-header .wd-header-my-account > a,
    .whb-general-header .wd-header-wishlist > a,
    .whb-general-header .wd-header-cart > a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 7px !important;
        min-width: 46px !important;
        min-height: 46px !important;
        padding: 6px 9px !important;
        border: 1px solid transparent !important;
        border-radius: 12px !important;
        color: #ffffff !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .whb-general-header .wd-tools-element > a:hover,
    .whb-general-header .wd-header-my-account > a:hover,
    .whb-general-header .wd-header-wishlist > a:hover,
    .whb-general-header .wd-header-cart > a:hover {
        border-color: rgba(255, 255, 255, 0.12) !important;
        background: rgba(255, 255, 255, 0.08) !important;
        color: var(--dou-amber-400) !important;
    }

    .whb-general-header .wd-tools-icon,
    .whb-general-header .wd-tools-icon::before,
    .whb-general-header .wd-tools-text,
    .whb-general-header .wd-tools-text span {
        display: inline-flex !important;
        align-items: center !important;
        color: currentColor !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .whb-general-header .wd-tools-icon {
        justify-content: center !important;
        min-width: 24px !important;
        min-height: 24px !important;
        font-size: 22px !important;
        line-height: 1 !important;
    }

    .whb-general-header .wd-tools-text {
        font-family: Inter, "Segoe UI", Arial, sans-serif !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        line-height: 1.15 !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
    }

    .whb-general-header .wd-cart-number,
    .whb-general-header .wd-tools-count {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 16px !important;
        height: 16px !important;
        padding: 0 4px !important;
        border: 2px solid var(--dou-navy-900) !important;
        border-radius: 999px !important;
        background: var(--dou-amber-500) !important;
        color: var(--dou-navy-950) !important;
        font-size: 9px !important;
        font-weight: 900 !important;
        line-height: 1 !important;
    }

    .whb-general-header .wd-header-text,
    .whb-general-header .wd-header-text a {
        color: #ffffff !important;
    }
}

/* --------------------------------------------------------------------------
 * MEGA MENU — typography and true vertical centering
 * -------------------------------------------------------------------------- */

.doudoudis-mega-menu,
.doudoudis-mega-menu * {
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

.doudoudis-mega-menu-links li {
    display: flex !important;
    align-items: stretch !important;
    min-height: 44px !important;
}

.doudoudis-mega-menu-links a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-height: 44px !important;
    height: 44px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1.1 !important;
    font-size: 13px !important;
    font-weight: 650 !important;
}

.doudoudis-mega-menu-links a::before {
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.doudoudis-mega-menu-links a:hover::before,
.doudoudis-mega-menu-links a:focus-visible::before {
    transform: translateY(-50%) scale(1.55) !important;
}

.doudoudis-mega-menu-brand {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 52px !important;
    height: 52px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1 !important;
}

.doudoudis-mega-menu-all-brands,
.doudoudis-mega-menu-footer a,
.doudoudis-mega-menu-cta .doudoudis-site-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.1 !important;
}

.doudoudis-mega-menu-title {
    font-weight: 800 !important;
    line-height: 1.15 !important;
}

.doudoudis-mega-menu-cta h3 {
    font-family: Inter, "Segoe UI", Arial, sans-serif !important;
    font-weight: 800 !important;
    line-height: 1.08 !important;
}

.doudoudis-mega-menu-cta p {
    font-family: Inter, "Segoe UI", Arial, sans-serif !important;
    font-weight: 400 !important;
}

/* --------------------------------------------------------------------------
 * MOBILE HEADER — balanced logo, menu/cart icons and compact search row
 * -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .whb-general-header,
    .doudoudis-main-header {
        min-height: 64px !important;
        height: 64px !important;
        padding: 0 !important;
        border: 0 !important;
        background: #142142 !important;
        box-shadow: none !important;
    }

    .whb-general-header > .container,
    .whb-general-header .whb-flex-row,
    .whb-general-header .whb-row,
    .whb-general-header .whb-column,
    .whb-general-header .whb-col-left,
    .whb-general-header .whb-col-center,
    .whb-general-header .whb-col-right {
        min-height: 64px !important;
        height: 64px !important;
        margin: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        align-items: center !important;
    }

    .whb-general-header .whb-col-left,
    .whb-general-header .whb-mobile-left {
        display: flex !important;
        flex: 0 0 52px !important;
        min-width: 52px !important;
        justify-content: flex-start !important;
    }

    .whb-general-header .whb-col-center,
    .whb-general-header .whb-mobile-center {
        display: flex !important;
        flex: 1 1 auto !important;
        justify-content: center !important;
        min-width: 0 !important;
    }

    .whb-general-header .whb-col-right,
    .whb-general-header .whb-mobile-right {
        display: flex !important;
        flex: 0 0 auto !important;
        justify-content: flex-end !important;
        gap: 2px !important;
    }

    .whb-general-header .wd-logo,
    .whb-general-header .wd-logo a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        min-width: 96px !important;
    }

    .whb-general-header .wd-logo img {
        width: 104px !important;
        min-width: 96px !important;
        max-width: 104px !important;
        max-height: 42px !important;
        object-fit: contain !important;
    }

    .whb-general-header .wd-header-mobile-nav,
    .whb-general-header .mobile-nav-icon,
    .whb-general-header .wd-header-cart,
    .whb-general-header .wd-header-my-account,
    .whb-general-header .wd-tools-element {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .whb-general-header .wd-header-mobile-nav > a,
    .whb-general-header .mobile-nav-icon > a,
    .whb-general-header .wd-header-cart > a,
    .whb-general-header .wd-header-my-account > a,
    .whb-general-header .wd-tools-element > a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 42px !important;
        min-width: 42px !important;
        height: 42px !important;
        min-height: 42px !important;
        padding: 0 !important;
        border-radius: 11px !important;
        color: #ffffff !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .whb-general-header .wd-tools-icon,
    .whb-general-header .wd-tools-icon::before,
    .whb-general-header .mobile-nav-icon::before,
    .whb-general-header .wd-header-mobile-nav .wd-tools-icon::before {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #ffffff !important;
        font-size: 23px !important;
        line-height: 1 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .whb-general-header .wd-tools-text {
        display: none !important;
    }

    .whb-general-header .wd-cart-number,
    .whb-general-header .wd-tools-count {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 17px !important;
        height: 17px !important;
        padding: 0 4px !important;
        border: 2px solid #142142 !important;
        border-radius: 999px !important;
        background: #f59e0b !important;
        color: #0b1530 !important;
        font-size: 9px !important;
        font-weight: 900 !important;
        line-height: 1 !important;
    }

    .whb-header-bottom,
    .doudoudis-mobile-search-row {
        min-height: 68px !important;
        height: auto !important;
        padding: 10px 14px 14px !important;
        border: 0 !important;
        background: #f1f5f9 !important;
        box-shadow: none !important;
    }

    .whb-header-bottom .whb-column,
    .whb-header-bottom .whb-col-left,
    .whb-header-bottom .whb-col-center,
    .whb-header-bottom .whb-col-right {
        min-height: 44px !important;
        height: auto !important;
        padding: 0 !important;
    }

    .whb-header-bottom .wd-header-search-form,
    .whb-header-bottom .searchform,
    .whb-header-bottom form.searchform {
        width: 100% !important;
        min-height: 44px !important;
        height: 44px !important;
        margin: 0 !important;
        border: 1px solid #dbe3ee !important;
        border-radius: 999px !important;
        background: #ffffff !important;
        overflow: hidden !important;
    }

    .whb-header-bottom .searchform input[type="text"],
    .whb-header-bottom .searchform input[type="search"] {
        min-height: 42px !important;
        height: 42px !important;
        padding: 0 58px 0 16px !important;
        font-size: 14px !important;
        line-height: 42px !important;
    }

    .whb-header-bottom .searchsubmit {
        top: 0 !important;
        right: 0 !important;
        width: 44px !important;
        height: 44px !important;
        border-radius: 0 999px 999px 0 !important;
        background: #f59e0b !important;
        color: #ffffff !important;
    }

    .doudoudis-mega-menu-links a,
    .doudoudis-mega-menu-brand {
        min-height: 46px !important;
        height: auto !important;
    }
}
