/* 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%;
}

/* Header Specific Styles - UPDATED TO MATCH REFERENCE */
/* Ensure blue header topbar is visible on desktop */
@media (min-width: 992px) {
    body .wf_header-topbar,
    body.header--six .wf_header-topbar {
        display: block;
        background-color: #0c193a;
        /* Dark Blue from reference */
        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;
}

.wf_header-topbar a,
.wf_header-topbar .af-header-email,
.wf_header-topbar .af-ship-text {
    color: #fff;
}

.wf_header-topbar .af-currency-switcher .af-currency-list a {
    color: #0a1027;
}

/* Browse Categories Button - Red Background */
.browse-categories-btn {
    background: #e62e04 !important;
    /* Red */
    color: #fff !important;
    padding: 12px 20px;
    border-radius: 4px;
    /* Less rounded */
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 700;
    /* Bolder */
    min-width: 260px;
    /* Wider */
}

.browse-categories-btn:hover {
    background: #c42603 !important;
}

/* Search Button & Flash Sale - Red Accents */
.search-btn,
.af-flash-sale-btn {
    background-color: #e62e04 !important;
    /* Red */
    color: #fff !important;
}

/* Navigation Links */
.wf_navbar-mainmenu ul li a {
    color: #333;
    font-weight: 600;
    text-transform: capitalize;
    /* "Home" not "HOME" */
    font-size: 15px;
}

.wf_navbar-mainmenu ul li a:hover {
    color: #e62e04;
    /* Red hover */
}

/* 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 - Ensure visibility when active */
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 */
.wf_navbar,
.wf_header-inner {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Fix for unstyled list in header (exclude currency dropdown) */
.wf_header-topbar ul:not(#af-currency-dropdown):not(.af-currency-list),
.widget_social ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
}

/* Currency dropdown reset inside topbar */
.wf_header-topbar #af-currency-dropdown,
.wf_header-topbar .af-currency-list {
    display: none;
    list-style: none;
    margin: 8px 0 0;
    padding: 6px 0;
    gap: 0;
    flex-direction: column;
    align-items: stretch;
}

.wf_header-topbar .af-currency-switcher.is-open #af-currency-dropdown,
.wf_header-topbar .af-currency-switcher.is-open .af-currency-list {
    display: block;
}

.af-promo-text {
    font-weight: 600;
}

.af-header-email {
    display: inline-flex;
    align-items: center;
}

/* Track Order link legibility */
.wf_navbar-mainmenu a[href*="track-order"],
.wf_navbar-mainmenu a[href*="track"] {
    font-weight: 700;
    color: #0a1a44;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Track My Order link in topbar (header info) */
.wf_header-topbar a[href*="track-order"],
.wf_header-topbar a[href*="track"] {
    color: #ffffff;
}

.wf_navbar-mainmenu a[href*="track-order"]:hover,
.wf_navbar-mainmenu a[href*="track"]:hover {
    color: #e62e04;
}

/* Fix Mobile Header Button "Shop Now - Free Delivery" Wrapping */
@media (max-width: 991px) {

    .wf_navbar-button-item .wf-btn,
    .mobile-header-promo-btn {
        white-space: nowrap !important;
        font-size: 11px !important;
        padding: 6px 10px !important;
        max-width: 95vw !important;
        text-overflow: ellipsis !important;
        overflow: hidden !important;
        display: inline-block !important;
    }
}

/* --- Live Search Dropdown --- */
.af-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 600px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    max-height: 500px;
    overflow-y: auto;
}

.af-search-results.active {
    display: block;
}

.af-search-split-container {
    display: flex;
    border-bottom: 1px solid #eee;
}

/* Left Col: Suggestions */
.af-search-col-suggestions {
    width: 35%;
    background: #f9f9f9;
    padding: 20px;
    border-right: 1px solid #eee;
}

.af-search-group-title {
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

ul.af-suggestions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.af-suggestions-list li {
    margin-bottom: 10px;
}

ul.af-suggestions-list li a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    display: block;
}

ul.af-suggestions-list li a strong {
    font-weight: 700;
    color: #000;
}

ul.af-suggestions-list li a:hover {
    color: #006400;
}

/* Right Col: Products */
.af-search-col-products {
    width: 65%;
    padding: 20px;
    background: #fff;
}

.af-search-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    transition: background 0.2s;
}

.af-search-item:last-child {
    border-bottom: none;
}

.af-search-item:hover {
    background: #fdfdfd;
}

.af-search-thumb {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #f0f0f0;
}

.af-search-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.af-search-item-info {
    flex: 1;
}

.af-product-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

/* View All Link */
.af-view-all {
    display: block;
    padding: 15px 20px;
    background: #fff;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    border-top: 1px solid #eee;
}

.af-view-all:hover {
    color: #006400;
}

/* Mobile Search */
@media (max-width: 768px) {
    .af-search-results {
        width: 100vw;
        position: fixed;
        top: 60px;
        /* Below header */
        left: 0;
        height: calc(100vh - 60px);
        max-height: none;
        border-radius: 0;
        border: none;
    }

    .af-search-split-container {
        flex-direction: column;
    }

    .af-search-col-suggestions,
    .af-search-col-products {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .af-search-col-suggestions {
        padding: 15px;
    }
}