/*--------------------------------------------------------------
    Searchanise Customisation
    Custom styles for adjusting PLP appearance after Smart Navigation.
--------------------------------------------------------------*/

/* Hide Searchanise result count */
.snize-main-panel-collection-results-found {
    display: none !important;
}

/****** Archive Layout ******/

/* Prevent horizontal overflow from full-width sections */
.archive-wrapper {
    overflow: hidden;
}

/* Main archive content container */
.archive-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 15px 24px;
}

/* WooCommerce breadcrumb */
.archive-wrapper .woocommerce-breadcrumb,
.archive-wrapper .woocommerce-breadcrumb a {
    font-size: 12px;
    line-height: 1.45;
		font-weight: 400;
    color: #707070;
}

.woocommerce-breadcrumb a {
    margin-right: 5px;
}


/****** Archive Heading ******/

/* Product archive title */
.woocommerce-products-header h1 {
    text-align: center;
    margin-bottom: 8px;
}


/****** Shop Toggle ******/

.archive-inner .shop-toggle-wrapper {
    display: flex;
    border-bottom: 1px solid #E0E0E0;
}

.archive-inner .shop-toggle-wrapper button {
    min-width: 200px;
    padding: 15px 32px;
    background: transparent;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    border-radius: 0;
    color: #2B2E31;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    text-transform: capitalize;
}

/* Active and hover states */
.archive-inner .shop-toggle-wrapper button.active,
.archive-inner .shop-toggle-wrapper button:hover,
.archive-inner .shop-toggle-wrapper button:focus {
    background: none;
    border-bottom-color: #12246A !important;
    color: #12246A;
    font-weight: 500 !important;
}


/****** Term Description ******/

.term-description {
    display: none;
    max-width: 976px;
    margin: 40px auto;
}

.term-description h2 {
    margin-bottom: 40px;
    color: #000;
    font-family: 'Poppins';
    font-size: 32px;
    font-weight: 500;
    line-height: 1.2;
    text-transform: capitalize;
}

.term-description h3 {
    margin-bottom: 17px;
    color: #12246A;
    font-size: 22px;
    font-weight: 500;
    line-height: 28px;
}

.term-description p,
.term-description a {
    color: #1F1F1F;
    font-size: 16px;
    line-height: 1.625;
}

.term-description p {
    margin-bottom: 18px;
}

.term-description p strong {
    font-weight: 500;
}

.term-description a {
    color: #1F1F1F !important;
    font-size: 16px !important;
    font-weight: 400 !important;
}


/****** Popular Brands ******/

.popular-brands-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    background: #F2F5F9;
}

/* Extend background beyond the main container */
.popular-brands-wrapper::before,
.popular-brands-wrapper::after {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background: #F2F5F9;
    content: '';
}

.popular-brands-wrapper::before {
    left: 100%;
}

.popular-brands-wrapper::after {
    right: 100%;
}

.popular-brands-wrapper > * {
    z-index: 1;
}


/****** Popular Brands Heading ******/

.popular-brands-wrapper .pb-heading {
    color: #12246A;
    font-family: 'Poppins';
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0;
    text-transform: capitalize;
}


/****** Popular Brands Menu ******/

.popular-brands-wrapper .popular-brands-menu .pb:has(.ekit-dropdown-open-onclick) > a {
    border-color: var(--e-global-color-primary) !important;
}

.popular-brands-menu {
    overflow: auto;
}


/****** Popular Brands List ******/

.popular-brands-wrapper .popular-brands-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 16px;
    padding: 0;
    margin: 0;
    list-style: none;
    scrollbar-width: none;
}

/* Hide scrollbar in WebKit browsers */
.popular-brands-wrapper .popular-brands-list::-webkit-scrollbar {
    display: none;
}

/* Prevent menu items from shrinking */
.popular-brands-wrapper .popular-brands-list .menu-item {
    flex: 0 0 auto;
}


/****** Popular Brand Links ******/

.popular-brands-wrapper .popular-brands-list .menu-item > a {
    display: block;
    min-width: 160px;
    height: 51px;
    background-color: #FFF !important;
    border: 1px solid #CCC;
    border-radius: 5px;
    font-size: 0 !important;
}

/* Brand link hover */
.popular-brands-wrapper .popular-brands-list .menu-item > a:hover {
    background-color: transparent;
    border-color: var(--e-global-color-primary) !important;
}


/****** Popular Brand Logos ******/

/* Shared logo styling */
.popular-brands-wrapper .popular-brands-list .menu-item:nth-child(-n + 6) > a {
    background-repeat: no-repeat;
    background-position: center;
    line-height: 0;
}

/* Acuvue */
.popular-brands-wrapper .popular-brands-list .menu-item:nth-child(1) > a {
    background-image: url('/wp-content/uploads/2024/05/acuvue.png');
    background-size: 88px;
}

/* Dailies */
.popular-brands-wrapper .popular-brands-list .menu-item:nth-child(2) > a {
    background-image: url('/wp-content/uploads/2024/05/Dailies.png');
    background-size: 85px;
}

/* Precision */
.popular-brands-wrapper .popular-brands-list .menu-item:nth-child(3) > a {
    background-image: url('/wp-content/uploads/2025/09/precision-logo.png');
    background-size: 102px;
}

/* Total30 */
.popular-brands-wrapper .popular-brands-list .menu-item:nth-child(4) > a {
    background-image: url('/wp-content/uploads/2026/07/Total30.svg');
    background-size: 97px;
}

/* Precision */
.popular-brands-wrapper .popular-brands-list .menu-item:nth-child(5) > a {
    background-image: url('/wp-content/uploads/2026/07/precision.svg');
    background-size: 132px;
}

/* Biofinity */
.popular-brands-wrapper .popular-brands-list .menu-item:nth-child(6) > a {
    background-image: url('/wp-content/uploads/2024/05/biofinity.png');
    background-size: 85px;
}


/****** All Products Link ******/

/* Last menu item contains the "All Products" link */
.popular-brands-wrapper .popular-brands-list .menu-item:last-child {
    margin-right: 0 !important;
    font-size: 16px !important;
    line-height: 24px;
    color: #2040BB !important;
}

.popular-brands-wrapper .popular-brands-list .menu-item:last-child > a {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px !important;
}


/****** All Product Links ******/

.popular-brands-wrapper .all-product-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    list-style: none;
}

.popular-brands-wrapper .all-product-links ul li {
    flex: 0 1 calc(33.33% - 20px);
}

.popular-brands-wrapper .all-product-links ul li a {
    display: block;
    padding: 9px 0;
    color: #3F4D4C;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
}

.popular-brands-wrapper .all-product-links ul li a:hover {
    color: #12246A;
}


/****** Searchanise Navigation ******/

.snize-navigation-wrapper {
    margin-top: 50px !important;
}


/****** Mobile ******/

@media screen and (max-width: 810px) {

    /* Horizontal page padding */
    .py-16 {
        padding-right: 16px;
        padding-left: 16px;
    }

    .archive-wrapper .woocommerce-breadcrumb {
        padding: 0 16px;
    }

    /* Remove right padding so the brand list can scroll to the edge */
    .popular-brands-wrapper {
        padding-right: 0 !important;
    }

    /* Hide brands heading on mobile */
    .popular-brands-wrapper .pb-heading {
        display: none;
    }

    .archive-inner {
        padding: 16px 0;
    }

    .woocommerce-products-header h1 {
        font-weight: 500;
        letter-spacing: 0;
    }

    .snize-navigation-wrapper {
        margin-top: 0 !important;
    }

    .term-description h2 {
        margin-bottom: 22px;
        font-size: 24px;
    }

    .shop-toggle-wrapper button {
        padding: 7px 28px;
    }
}

