/* Restoring missing Grid Classes */
.wf-container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .wf-container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .wf-container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .wf-container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .wf-container {
        max-width: 1140px;
    }
}

.wf-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.wf-col-12,
.wf-col-lg-2,
.wf-col-lg-3,
.wf-col-lg-4,
.wf-col-lg-6,
.wf-col-lg-8,
.wf-col-lg-9,
.wf-col-lg-12 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.wf-col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 992px) {
    .wf-col-lg-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }

    .wf-col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .wf-col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .wf-col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .wf-col-lg-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }

    .wf-col-lg-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }

    .wf-col-lg-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .wf-d-lg-block {
        display: block !important;
    }

    .wf-d-lg-none {
        display: none !important;
    }
}

.wf-d-none {
    display: none !important;
}

.wf-text-center {
    text-align: center !important;
}

.wf-text-lg-left {
    text-align: left !important;
}

.wf-text-lg-right {
    text-align: right !important;
}

@media (min-width: 992px) {
    .wf-text-lg-left {
        text-align: left !important;
    }

    .wf-text-lg-right {
        text-align: right !important;
    }
}

.align-items-center {
    align-items: center !important;
}

.wf-py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.wf-mr-2 {
    margin-right: 0.5rem !important;
}

/* Header Specific Styles */
.wf_header {
    background: #fff;
    position: relative;
    z-index: 1000;
    width: 100%;
}

/* Ensure blue header topbar is visible on desktop - solid dark blue */
@media (min-width: 992px) {
    body .wf_header-topbar,
    body.header--six .wf_header-topbar {
        display: block !important;
        background-color: #0c193a !important;
        background-image: none !important;
        color: #fff;
        padding: 6px 0;
        font-size: 13px;
        line-height: 1.4;
        min-height: auto;
        height: auto;
    }

    body .wf_header-topbar .wf_header-widget,
    body .wf_header-topbar .af-site-header {
        padding: 0;
        margin: 0;
    }

    body .wf_header-topbar .wf-container {
        padding-top: 0;
        padding-bottom: 0;
    }

    body .wf_header-topbar .wf-row {
        min-height: auto;
        padding: 0;
    }

    body .wf_header-topbar .wf-col-lg-4 {
        padding: 3px 0;
    }
}

/* Override themes.css font-size that makes banner tall */
body .wf_header-topbar,
body.header--six .wf_header-topbar {
    font-size: 13px;
    line-height: 1.4;
}

body .wf_header-topbar .wf_header-widget,
body .wf_header-topbar .af-site-header {
    padding: 0;
    margin: 0;
}

body .wf_header-topbar .wf-container {
    padding-top: 0;
    padding-bottom: 0;
}

body .wf_header-topbar .wf-row {
    min-height: auto;
    padding: 0;
}

body .wf_header-topbar .wf-col-lg-4 {
    padding: 3px 0;
}

/* Topbar logo - constrain size */
.wf_header-topbar .af-topbar-logo {
    display: inline-block;
    line-height: 0;
}
.wf_header-topbar .af-topbar-logo img {
    max-height: 32px;
    width: auto;
    height: auto;
    object-fit: contain;
    vertical-align: middle;
}

.wf_header-topbar a,
.wf_header-topbar .af-header-email,
.wf_header-topbar .af-ship-text {
    color: #fff;
}

/* currency dropdown link color handled in the dropdown section below */

/* Browse Categories Button - Red Background */
.browse-categories-btn {
    background: #e62e04 !important;
    color: #fff !important;
    padding: 12px 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 700;
    min-width: 260px;
}

.browse-categories-btn:hover {
    background: #c42603 !important;
}

/* Browse Categories Dropdown - Responsive */
.product-categories {
    position: relative;
}
.product-categories .wf_navbar-nav,
.product-categories .dropdown-menu,
.product-categories .vertical-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    display: none;
    max-height: 70vh;
    overflow-y: auto;
}
.product-categories.active .wf_navbar-nav,
.product-categories.active .dropdown-menu,
.product-categories.active .vertical-menu {
    display: block !important;
}
@media (max-width: 991px) {
    .browse-categories-btn {
        min-width: 100%;
        max-width: 100%;
        width: 100%;
    }
    .product-categories .wf_navbar-nav,
    .product-categories .dropdown-menu {
        left: 0;
        right: 0;
        width: 100%;
    }

    /* Blue promo strip inside “Browse categories” sheet (mobile only) */
    .product-categories .wf_navbar-nav .af-mobile-blue-header {
        background: #0c193a;
        color: #fff;
        margin: 0 0 12px;
        padding: 14px 12px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .product-categories .wf_navbar-nav .af-mobile-blue-header a,
    .product-categories .wf_navbar-nav .af-mobile-blue-header .af-header-email,
    .product-categories .wf_navbar-nav .af-mobile-blue-header .af-ship-text {
        color: #fff !important;
    }

    .product-categories .wf_navbar-nav .af-mobile-blue-header .widget_social a {
        color: #fff !important;
    }

    /* Mobile: hide browse-categories strip (desktop browse remains in header layout). */
    .af-mobile-bcat-bar {
        display: none !important;
    }
}

/* Search Button & Flash Sale - Red Accents */
.search-btn,
.af-flash-sale-btn {
    background-color: #e62e04 !important;
    color: #fff !important;
}

/* Navigation Links */
.wf_navbar-mainmenu ul li a {
    color: #333;
    font-weight: 600;
    text-transform: capitalize;
    font-size: 15px;
}

.wf_navbar-mainmenu ul li a:hover {
    color: #e62e04;
}

/* Mobile Header */
@media (max-width: 991px) {
    .wf_header-navwrapper {
        border-bottom: 1px solid #eee;
    }
}

@media (min-width: 992px) {
    .wf_header-navwrapper .wf_mobilenav-mainmenu-toggle,
    .af-mobile-bottom-nav {
        display: none !important;
    }
}

/* Mobile Toggle Style */
@media (max-width: 991px) {
    .wf_mobilenav-mainmenu-toggle {
        color: #333;
        font-size: 24px;
        background: none;
        border: none;
        padding: 10px;
    }
}

/* Mobile Side Nav */
body.wf_mobilenav-mainmenu--active {
    overflow: hidden;
}

body.wf_mobilenav-mainmenu--active .wf_mobilenav-mainmenu-content,
.wf_mobilenav-mainmenu-content.active,
.wf_mobilenav-mainmenu-content.wf_mobilenav-mainmenu--active {
    display: block;
}

.wf_mobilenav-mainmenu-inner {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/*
 * Fix Visibility (desktop only).
 * Do NOT force .wf_navbar to display:block on mobile — it must stay hidden
 * below the lg breakpoint (wf-d-none wf-d-lg-block); otherwise the full desktop
 * header (search, nav, categories) stacks on small screens.
 */
@media (min-width: 992px) {

    .wf_navbar,
    .wf_header-inner {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Fix for unstyled list in header */
.wf_header-topbar ul:not(#af-currency-dropdown):not(.af-currency-list),
/* Blue banner - ensure social icons display (fix broken/deprecated Font Awesome icons) */
.wf_header-topbar .widget_social ul li,
.wf_header-topbar .widget_social ul li a,
.wf_header-topbar .widget_social ul li a i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.wf_header-topbar .widget_social ul li a i {
    font-size: 1em !important;
    width: auto !important;
    height: auto !important;
}

.widget_social ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
}

/* Currency dropdown inside topbar */
.wf_header-topbar #af-currency-dropdown,
.wf_header-topbar .af-currency-list {
    display: none;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 10010;
    max-height: 50vh;
    overflow-y: auto;
}

.wf_header-topbar .af-currency-switcher.is-open #af-currency-dropdown,
.wf_header-topbar .af-currency-switcher.is-open .af-currency-list {
    display: block;
}

.wf_header-topbar .af-currency-list li a {
    display: block;
    padding: 8px 16px;
    color: #333 !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s;
}

.wf_header-topbar .af-currency-list li a:hover {
    background: #f5f5f5;
    color: #fe4322 !important;
}

.af-promo-text {
    font-weight: 600;
}

.af-header-email {
    display: inline-flex;
    align-items: center;
}

/* Mobile: desktop topbar is hidden; collapsible topbar repeats promo — hide duplicate logo (logo stays in main mobile bar). */
@media (max-width: 991.98px) {
    .wf_mobilenav-topbar .af-site-header .af-topbar-logo {
        display: none !important;
    }
    .wf_mobilenav-topbar .af-site-header .widget--left {
        justify-content: center;
    }
}

/* Desktop: wider product search (parent theme used 70% input + 30% category — feels tiny). */
@media (min-width: 992px) {
    .wf_navbar-list-right .wf_navbar-search-form {
        flex: 1 1 auto;
        min-width: 0;
        max-width: none;
        width: 100%;
        /* Nudge right: logo + optional left slot read heavier than contact/CTA on the right */
        margin-left: 2.25rem;
    }

    .wf_navbar-list-right .wf_navbar-search-form .header-search-form.product-search {
        max-width: none;
        width: 100%;
    }

    .header-search-form.product-search form[name="product-search"] {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        width: 100%;
    }

    .header-search-form .search-wrapper {
        flex: 1 1 auto;
        min-width: 0;
    }

    .header-search-form input.header-search-input {
        width: 100% !important;
        float: none !important;
        min-height: 48px;
        font-size: 16px;
        box-sizing: border-box;
    }

    .header-search-form .header-search-select-wrapper {
        width: 200px !important;
        max-width: 34%;
        flex: 0 0 200px !important;
        float: none !important;
        box-sizing: border-box;
    }
}
