/*
Theme Name:   Bootscore Child
Description:  Bootscore Child Theme
Author:       Bootscore
Author URI:   https://bootscore.me
Template:     bootscore
Version:      6.0.1
Requires at least: 5.0
Tested up to: 6.6
Requires PHP: 7.4
License: MIT License
License URI: https://github.com/bootscore/bootscore-child/blob/main/LICENSE
Text Domain:  bootscore
*/

/* All style customizations are in /assets/scss/_bootscore_custom.scss */

/*
-------------------------------------------------------------------------------
1. Global / Base Styles
-------------------------------------------------------------------------------
*/

:root {
    /* Color variables */
    --color-lightgray-bg: #f0f0f0;
    --color-white-text: #fff;
    --color-white-bg: #fff;
    --color-orange-text: var(--bs-primary);
    --color-orange-bg: var(--bs-primary);
    --color-pink-text: #F05765;
    --color-third-button: #FCBCAC;
    --light-grayish-blue-bg: #EDEFF3;
    --light-orange-bg: #e2617d;
    --light-orange-text: #e2617d;
    --hover-third-button-bg: #FFDBD3;
    --color-swiper-arrow: #DADADA;

    /* Font weights */
    --font-weight-thin: 100;
    --font-weight-extra-light: 200;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extra-bold: 800;
    --font-weight-black: 900;

    /* Font sizes */
    --font-size-xxs: 0.5rem;
    /* +- 8px */
    --font-size-xs: 0.6rem;
    /* +- 9.6px */
    --font-size-s: 0.7rem;
    /* +- 12px */
    --font-size-sm: 0.8rem;
    /* +- 12.8px */
    --font-size-md-sm: 0.9rem;
    /* +- 14px */
    --font-size-base: 1rem;
    /* +- 16px */
    --font-size-md: 1.1rem;
    /* +- 18px */
    --font-size-lg: 1.2rem;
    /* +- 20px */
    --font-size-xl-sm: 1.4rem;
    /* +- 22.4px */
    --font-size-xl: 1.5rem;
    /* +- 24px */
    --font-size-xl-lg: 1.6rem;
    /* +- 25.6px */
    --font-size-xxl: 1.75rem;
    /* +- 28px */
    --font-size-2xl: 1.9rem;
    /* +- 30.4px */
    --font-size-3xl: 2rem;
    /* +- 32px */
    --font-size-4xl: 2.3rem;
    /* +- 36px */
    --font-size-5xl: 2.5rem;
    /* +- 40px */
    --font-size-6xl: 3rem;
    /* +- 48px */
    --font-size-7xl: 3.5rem;
    /* +- 56px */
    --font-size-8xl: 4rem;
    /* +- 64px */
    --font-size-9xl: 4.5rem;
    /* +- 72px */

    /* Headline and button text sizes */
    --font-size-headline: 39px;
    --font-size-button-text: 17px;
}

/* Scrolling animation */
@keyframes scrolling {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Utility classes */
.mobile-flex { display: none; }
.desktop-flex { display: flex; }

/* Focus states */
.review_swiper .swiper-pagination span:focus,
.btn:focus-visible,
.btn-close:focus,
.collanta_default_focus:focus {
    outline: 1px solid #000000;
    border-radius: 0.2rem;
    border: 1px solid var(--color-third-button);
    box-shadow: none;
    outline-offset: 0;
}

.nav-link:focus-visible {
    outline: 1px solid #000000;
    border-radius: 0.2rem;
    border: 1px solid var(--color-third-button);
    outline-offset: 0;
    box-shadow: none;
}

.default-bg-color {
    background-color: var(--color-lightgray-bg);
}

.default_collanta_wrapper {
    padding-bottom: 4em;
}

.btn-primary {
    color: var(--color-white-text);

    &:hover {
        color: var(--color-orange-text);
        background-color: var(--color-white-bg);
    }
}

.btn-primary-light {
    background-color: var(--color-white-bg);
    color: var(--color-pink-text);
    transition: all 0.5s ease;
}

.btn-primary-light:hover {
    background-color: var(--color-pink-text);
    color: var(--color-white-bg);
    transition: all 0.5s ease;
}

.btn-width {
    padding: 0.2em 3em;
    width: fit-content;
}

.default_bg_collanta {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.collanta_image {
    height: auto;
    width: 100%;
    object-fit: cover;
}



/*
-------------------------------------------------------------------------------
2. Layout & Structure
-------------------------------------------------------------------------------
*/

/* Navbar Adjustments */
.navbar-brand {
    margin-right: 0;
    margin-left: 0;
    padding: 0; /* Remove any default padding */
}

.navbar>.container,
.navbar>.container-fluid,
.navbar>.container-sm,
.navbar>.container-md,
.navbar>.container-lg,
.navbar>.container-xl,
.navbar>.container-xxl {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    position: relative;
}

.justify-self-start {
    justify-self: start;
}

.justify-self-center {
    justify-self: center;
}

.justify-self-end {
    justify-self: end;
}

a.navbar-brand img {
    max-width: 28rem; /* Significantly increased for much bigger logo on desktop */
    max-height: 5rem; /* Allow more vertical space on desktop */
    height: auto; /* Maintain aspect ratio */
    object-fit: contain; /* Ensure logo fits within bounds while maintaining ratio */
}

/* Header Adjustments */
.navbar .btn.search-mobile-only {
    display: none;
}

@media(max-width: 425px) {
    a.navbar-brand img {
        max-width: 96%;
    }
}

/* Medium screens - balance between mobile and desktop */
@media(min-width: 426px) and (max-width: 991px) {
    a.navbar-brand img {
        max-width: 16rem; /* Slightly smaller than desktop but bigger than small mobile */
    }
}

@media(max-width: 991px) {
    .navbar .btn.search-mobile-only {
        display: flex;
    }

    .navbar .btn.search-desktop-only {
        display: none;
    }
}

/* Container responsive adjustments */
@media (min-width: 576px) {

    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl {
        max-width: 94%;
    }

    .narrow-container {
        max-width: 1140px;
    }
}

@media (min-width: 992px) {
    .navbar-expand-lg .offcanvas {
        flex-grow: initial;
    }

    .navbar-expand-lg .offcanvas ul {
        padding-right: 0;
    }
}

/*
-------------------------------------------------------------------------------
3. WordPress Core & Plugin Styles
-------------------------------------------------------------------------------
*/

/* Remove points and rewards default info messages */
.woocommerce-info:empty,
.woocommerce-info:not(:has(*)):not(:empty) {
    display: none !important;
}

#spinner_price {
    display: none !important;
}

/* Product Page Specific */
.product-short-description {
    margin-top: 1.5em;
}

/* Hide original tabs */
.woocommerce-tabs .wc-tabs {
    display: none;
}

/* Accordion header */
.accordion-tab-title {
    cursor: pointer;
    width: 100%;
    text-align: right;
    font-weight: bold;
    font-size: 1.25rem;
    padding: 1.5rem 3rem 1.5rem 2rem;
    background: #fff;
    border: 1px solid #eee;
    border-bottom: none;
    position: relative;
    transition: background 0.2s;
}

.accordion-tab-title:last-of-type {
    border-bottom: 1px solid #eee;
}

.accordion-tab-title::before {
    content: '+';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #aaa;
    transition: color 0.2s, content 0.2s;
}

.accordion-tab-title.active::before {
    content: '−';
    color: #222;
}

/* Tab content */
.woocommerce-tabs .panel {
    display: none;
    border: 1px solid #eee;
    border-top: none;
    padding: 1.5rem 2rem;
    background: #fff;
    font-size: 1.15rem;
    color: #222;
}

.woocommerce-tabs .panel.active {
    display: block;
}

/*
-------------------------------------------------------------------------------
4. Homepage Specific Styles
-------------------------------------------------------------------------------
*/



/* Best Sellers - Fix width issue */
@media(max-width: 768px) {
    .best-sellers-section {
        .offers_title {
            text-align: start;
            width: 85%;
            font-size: 1.6rem !important;
        }

        .swiper_quad {
            width: 100% !important;
            /* Force full width */

            .swiper-wrapper {
                .swiper-slide {
                    width: 45% !important;
                    /* 2 items per row like others */
                    margin-right: 2% !important;
                }

                .swiper-slide:nth-child(2n) {
                    margin-right: 0 !important;
                }
            }
        }

        .swiper_big_image_box {
            width: 100%;
            height: auto;
            aspect-ratio: 3 / 4;
        }
    }
}









/*
-------------------------------------------------------------------------------
5. Other Page Templates / Custom Post Types
-------------------------------------------------------------------------------
*/

/* Collanta Page Styles (RTL) */
.collanta-page {
    direction: rtl;
    text-align: right;
}

/* Page title */
.page-header {
    background: #fff;
    padding: 40px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.page-title {
    font-size: 3rem;
    font-weight: bold;
    color: #333;
    margin: 0;
    text-align: center !important;
}

/* Simple 50/50 Split Layout */
.text-image-section {
    display: flex;
    min-height: 70vh;
    width: 100%;
    margin: 0;
    padding: 0;
}

.text-image-section:nth-child(even) {
    background-color: #f8f9fa;
}

.text-image-section:nth-child(odd) {
    background-color: #ffffff;
}

/* Text goes right, image goes left */
.text-image-section.right {
    flex-direction: row-reverse;
}

/* Text goes left, image goes right */
.text-image-section.left {
    flex-direction: row;
}

/* Each half takes exactly 50% */
.text-image-section .text-content,
.text-image-section .image-content {
    flex: 0 0 50%;
    width: 50%;
}

/* Text Content */
.text-content {
    padding: 60px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.text-content h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.2;
}

.text-content .content {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #555;
}

.text-content .content p {
    margin-bottom: 15px;
}

/* Image Content */
.image-content {
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.image-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Full Width Text Section */
.full-width-text {
    padding: 60px 0;
    text-align: center;
    background: #f8f9fa;
}

.full-width-text h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #333;
}

.full-width-text .content {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Logo Section */
.logo-only-section {
    padding: 40px 0;
    background: #fff;
    text-align: center;
}

.brand-logo {
    max-width: 120px;
    height: auto;
    opacity: 0.8;
}

/* Generic Page Banner Fix - Override Homepage Banner CSS */
.generic-page {
    position: relative !important;
}

.generic-page h1.text-black {
    position: absolute !important;
    top: 12px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 10 !important;
    width: auto !important;
}

.generic-page .banner-image {
    position: relative !important;
    height: auto !important;
    aspect-ratio: 3 / 1 !important;
    min-height: unset !important;
    max-height: none !important;
    opacity: 1 !important;
    width: 100% !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    margin-top: 0 !important;
}

/* Mobile adjustments for generic banners */
@media (max-width: 768px) {
    .generic-page .banner-image {
        aspect-ratio: 3 / 1 !important;
        min-height: unset !important;
    }

    .generic-page h1.text-black {
        font-size: 1.8rem !important;
    }
}

/*Checkout fields*/
/* Hide country and state labels and fields completely */
.woocommerce-checkout .form-row label[for="billing_country"],
.woocommerce-checkout .form-row label[for="billing_state"],
.woocommerce-checkout .form-row label[for="shipping_country"],
.woocommerce-checkout .form-row label[for="shipping_state"],
#billing_country_field,
#billing_state_field,
#shipping_country_field,
#shipping_state_field {
    display: none !important;
}

/* Hide any remaining country/state containers */
.woocommerce-checkout .form-row:has(#billing_country),
.woocommerce-checkout .form-row:has(#billing_state),
.woocommerce-checkout .form-row:has(#shipping_country),
.woocommerce-checkout .form-row:has(#shipping_state) {
    display: none !important;
}


/*
-------------------------------------------------------------------------------
6. Components / Modules (Reusable UI Elements)
-------------------------------------------------------------------------------
*/

/* Running Image / Carousel */
.running_image_section {
    padding: 4rem 0 4.5em;
    overflow: hidden;

    .running_image_title {
        font-size: var(--font-size-headline);
        margin-bottom: 2rem;
    }

    .carousel_collanta {
        gap: 20;

        >* {
            flex: 0 0 auto;
        }
    }

    .carousel_group-card {
        min-height: 420px;
        padding-right: 20px;
        will-change: transform;
        animation: scrolling 20s linear infinite;
        gap: 20px;
        display: flex;
        align-items: center;
    }

    .carousel_card-image {
        min-height: 380px;
        max-height: 380px;
        border-radius: 25px;
        width: 300px;
        min-width: 300px;
        max-width: 300px;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        flex-shrink: 0;
        transition: transform 0.3s ease;
        display: block;
        text-decoration: none;
    }

    .carousel_card-image:hover {
        transform: scale(1.02);
    }
}

/* Seamless scrolling animation */
@keyframes scrolling {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Mobile optimization */
@media (max-width: 768px) {
    .running_image_section {
        padding: 2rem 0 3rem;

        .running_image_title {
            margin-bottom: 1.5rem;
            font-size: 1.5rem;
        }

        .carousel_group-card {
            min-height: 280px;
            gap: 15px;
            animation: scrolling 15s linear infinite;
        }

        .carousel_card-image {
            min-height: 250px;
            max-height: 250px;
            width: 200px;
            min-width: 200px;
            max-width: 200px;
            border-radius: 15px;
        }
    }
}

/* Performance optimizations */
.carousel_group-card {
    transform: translateZ(0);
    backface-visibility: hidden;
}

.carousel_card-image {
    transform: translateZ(0);
}

/* Delivery Section */
.delivery-container {
    padding: 2.5rem 0;
    flex-wrap: wrap;
    row-gap: 35px;
    column-gap: 17px;

    .delivery-icon {
        width: 120px;
        height: 127px;
    }

    p {
        margin: 0;
        padding: 0;
    }
}

@media(max-width: 531px) {
    .delivery-container {
        padding: 2.4rem 5rem;
    }
}

@media(max-width: 425px) {
    .delivery-container {
        padding: 2.4rem 1rem;
    }
}

/* Delivery icons - Off white */
.delivery-container {
    background-color: #fafafa !important;
    /* Off white background */
}

/* Banner Image (General) */
.banner-image {
    height: 376px;
    background-position: 30%;
}

@media(max-width: 768px) {
    .banner-image {
        height: 437px;
    }
}

/* Swipers (General) */
.swiper {

    &.swiper_triple,
    &.swiper_quad {
        display: flex;
        flex-direction: column;
        align-items: center;

        .swiper-slide a:focus {
            padding: 1px;
            outline: none;
            border: 2px solid #000000;
            border-radius: 0.2rem;
        }
    }
}

.swiper_triple,
.swiper_quad,
.review_swiper {

    .swiper-pagination,
    .swiper-scrollbar.swiper-scrollbar-horizontal {
        position: unset;
        margin-top: 3em;
        width: 50%;
    }
}

/* Best Sellers Swiper */
/* Note: Most Best Sellers Swiper specific styling is already under Homepage Specific, this is for review pagination */
.review_swiper .swiper-pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    text-align: center !important;
    position: relative !important;
}

.review_swiper .swiper-pagination .swiper-pagination-bullet {
    margin: 0 4px !important;
    display: inline-block !important;
}

.review_swiper .swiper-pagination {
    /* Duplicate for some reason in original, keeping it as is */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    text-align: center !important;
    position: relative !important;
}

.review_swiper .swiper-pagination .swiper-pagination-bullet {
    /* Duplicate for some reason in original, keeping it as is */
    margin: 0 4px !important;
    display: inline-block !important;
}

/* Shop Style */
.shop-style {
    padding-bottom: 7rem;

    .default_bg_collanta {
        background-position: bottom;
    }

    .shop-style-item {
        width: 654px;
        height: 621px;
        padding: 3rem;

        .shop-style_title {
            font-size: var(--font-size-headline);
        }
    }
}

@media(max-width: 768px) {
    .shop-style {
        width: 100%;
        flex-wrap: wrap;
        padding-bottom: 2.75rem;

        .shop-style-item {
            height: 53vh;
        }
    }
}

/* Popup/Modal Accessories */
.modal-acsses {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
}

.modal-acsses-wrapper {
    width: 75%;
    height: 70vh;
    position: relative;
    margin: auto;

    .close-icon {
        position: absolute;
        top: 16px;
        right: 16px;
        cursor: pointer;
        transition: all 0.2s;
    }

    .modal-image-box {
        max-width: 260px;
        width: 100%;
    }

    .modal-text {
        width: 50%;
        align-content: center;
    }

    .btn-primary {
        &:hover {
            border: 1px solid var(--color-orange-bg);
        }
    }
}

@media(max-width: 768px) {
    .modal-acsses-wrapper {
        flex-direction: column-reverse;
        width: 100%;
        height: 90vh;

        .modal-text {
            width: auto;
            height: 50%;
            padding: 1rem;
            overflow-y: scroll;
        }

        .modal-image-box {
            height: 50%;
            width: 100%;
        }
    }
}


/* Header Banner with 3:1 ratio and reduced max height */
.header-banner-container {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 1;
    /* 3:1 ratio for much shorter banner */
    max-height: 432px;
    /* Reduced from 1080px to 40% (432px) */
    overflow: hidden;
}

.banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    /* Ensure centered cropping from all sides */
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.banner-image.active {
    opacity: 1;
    z-index: 2;
    /* Ensure active image is above inactive ones */
}

.homepage-container.site-content { 
    padding: 0 !important; 
}

/* MOBILE HEADER: Make icons much smaller and reduce spacing from logo */
@media (max-width: 991px) {
    /* Reduce padding to left search area - brings elements closer to center */
    .navbar .d-flex:first-child {
        padding-left: 0.25rem !important; /* Reduced from 0.75rem */
    }
    
    /* Reduce padding to right header actions - brings elements closer to center */
    .header-actions {
        margin-left: auto !important;
        gap: 0.125rem !important; /* Minimal spacing between buttons */
        padding-right: 0.25rem !important; /* Reduced from 0.75rem - brings closer to logo */
    }
    
    .header-actions .btn {
        margin: 0 !important;
        padding: 0.25rem !important; /* Much smaller padding */
        min-width: auto !important;
        width: auto !important;
        font-size: 0.875rem !important; /* Smaller icons */
    }
    
    .header-actions .btn i {
        font-size: 1.32em !important; /* Increased by 20% from 1.1em for bigger icons on mobile */
    }
    
    /* Make search button even smaller */
    .header-actions .search-toggler {
        padding: 0.2rem !important;
    }
    
    /* Ensure logo stays perfectly centered */
    .navbar-brand.justify-self-center {
        justify-self: center !important;
    }
}

/* Desktop spacing */
@media (min-width: 992px) {
    .header-actions .btn {
        margin-left: 0.25rem !important;
        margin-right: 0 !important;
    }
}

#header_banner_section,
#header_banner_section_mobile {
    margin: 0 !important;
    padding: 0 !important;
}

/* BANNER: Force 3:1 aspect ratio and fix edge issues */
.header-banner-container {
    aspect-ratio: 3 / 1 !important; /* Force 3:1 ratio always */
    width: 100% !important;
    position: relative !important;
    overflow: hidden !important;
    background: none !important; /* Remove any background bleeding */
}

/* Ensure banner breaks out of container constraints */
.homepage-container #header_banner_section,
.homepage-container #header_banner_section_mobile {
    width: 100vw !important; /* Full viewport width */
    margin-left: calc(-50vw + 50%) !important; 
    margin-right: calc(-50vw + 50%) !important;
    position: relative !important;
}

/* Remove any background from container */
.header-banner-container.default_bg_collanta {
    background: transparent !important;
}

.header-banner-container .banner-image {
    margin: 0 !important;
}

.banner-content {
    position: relative;
    z-index: 10;
    height: 100%;
    justify-content: space-between !important;
    /* Spread content vertically */
    padding: 2rem;
    padding-bottom: 4rem;
    /* Extra space for button at bottom */
}

.header_banner_button {
    /* Override existing positioning - 7% lower on desktop (23% from bottom), horizontally centered */
    position: absolute !important;
    bottom: 23% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 15 !important;
    margin: 0 !important;
    /* Reset margin */
    align-self: unset !important;
    /* Reset align-self */
}

.header_banner_button .btn {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 20;
}

/* Force button visibility */
#header_banner_section .header_banner_button,
#header_banner_section_mobile .header_banner_button {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Mobile - same 3:1 ratio as desktop */
@media (max-width: 768px) {
    .header-banner-container {
        aspect-ratio: 3 / 1;
        /* Same 3:1 ratio on mobile for consistency */
        max-height: 200px;
        /* Reduced proportionally for mobile */
    }

    .banner-content {
        padding: 1rem;
        padding-bottom: 3rem;
    }

    .header_banner_button {
        bottom: 5% !important;
        /* 15% lower on mobile (was 20%, now 5%) */
    }
}

/* Tablet adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    .header-banner-container {
        max-height: 320px;
        /* Reduced proportionally for tablets */
    }
}

.category-title-padding {
    padding-top: 12px;
}



/*
-------------------------------------------------------------------------------
7. Footer Styles
-------------------------------------------------------------------------------
*/

/* General Footer */
.collanta-footer-wrap {
    background-color: var(--color-orange-text);
}

.collanta-footer {
    padding: 2em 0em 3em;
    font-size: var(--font-size-button-text);
    transition: all 0.3s;
}

.footer__container {
    #footer-menu {
        margin-bottom: 2rem;
        padding-right: 0;
        justify-content: space-between;

        .nav-link {
            padding-left: 1rem;
            color: var(--color-white-text);
            text-align: center;

            &:hover {
                color: var(--color-third-button);
            }
        }
    }

    nf-fields-wrap {
        display: flex;

        .email-container {
            padding-left: 1rem;
        }
    }

    .label-left .nf-field-element {
        width: auto;
    }
}

.footer__subscription {

    #ninja_forms_required_items,
    .nf-field-container {
        margin-bottom: unset;
    }

    .label-left .nf-field-label {
        padding-right: unset;
    }

    .ninja-forms-req-symbol {
        display: none;
    }

    .label-left .field-wrap {
        flex-wrap: unset;
    }

    .email-wrap {
        gap: 1rem;
    }

    .label-left .nf-field-element input[type=email] {
        min-width: 340px;
        height: 31px;
        background: inherit;
        border: 1px solid #fff;
    }

    .label-left .nf-field-element input[type=email]:focus {
        background-color: white;
        outline: 1px solid #000000;
        border-radius: 0.2rem;
        border: 1px solid var(--color-third-button);
    }

    .label-left .nf-field-element input[type=submit] {
        padding: 0 0.75em;
        color: var(--color-orange-text);
        background-color: var(--color-white-bg);
        border: unset;
        cursor: pointer;
        transition: all 0.3s;
        min-height: 31px;

        &:hover {
            background-color: var(--color-third-button);
            color: var(--color-white-text);
        }
    }

    .label-left .nf-field-element input[type=submit]:focus {
        outline: 1px solid #000000;
        border-radius: 0.2rem;
        border: 1px solid var(--color-third-button);
    }
}

.footer__social-link {
    opacity: 0.5;
    transition: all 0.4s;

    &:hover {
        opacity: 0.75;
    }
}

/* 4-Column Footer Layout - Final Alignment */
/* Desktop Styles */
.collanta-footer-columns {
    padding-left: 120px;
    padding-right: 120px;
    direction: rtl;
    padding-top: 40px;
    padding-bottom: 40px;
}

.collanta-footer-columns .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.collanta-footer-columns .row {
    margin-left: -5px;
    margin-right: -5px;
}

.footer-column {
    padding-left: 5px;
    padding-right: 5px;
}

.footer-column-title {
    margin-bottom: 15px;
    text-align: right;
    color: inherit;
}

.footer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}

.footer-menu-list li {
    margin-bottom: 5px;
}

.footer-menu-list a {
    color: inherit;
    text-decoration: none;
}

.footer-menu-list a:hover {
    font-weight: 600;
    color: inherit;
    text-decoration: none;
}

.contact-item a:hover {
    font-weight: 600;
    color: inherit;
    text-decoration: none;
}

/* Contact Info RTL */
.contact-info {
    text-align: right;
}

.contact-item {
    margin-bottom: 8px;
    text-align: right;
    direction: rtl;
}

.contact-item a {
    color: inherit;
    text-decoration: underline;
    display: inline;
}

/* Contact Icons */
.contact-icon {
    margin-left: 8px;
    font-size: 16px;
    color: inherit;
    vertical-align: middle;
}

.contact-hours {
    margin-top: 15px;
    text-align: right;
    color: inherit;
}

/* Collapsible Menu - Hidden on Desktop */
.collapsible-toggle {
    display: none;
}

/* Separator Line */
.footer-separator {
    padding: 0;
    padding-left: 120px;
    padding-right: 120px;
}

.footer-separator .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.footer-line {
    border: none;
    border-top: 1px solid #ddd;
    margin: 20px 0;
    opacity: 0.5;
}

/* Footer Bottom */
.footer-bottom {
    padding: 15px 0;
    padding-left: 120px;
    padding-right: 120px;
}

.footer-bottom .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.footer__social-media {
    direction: ltr;
}

.footer__social-link {
    color: inherit;
    font-size: 24px;
    transition: opacity 0.3s ease;
}

.footer__social-link:hover {
    opacity: 0.7;
}

.copyright-text {
    color: inherit;
}

/* Media Footer */
@media(max-width: 1024px) {
    .collanta-footer {
        flex-direction: column;
        align-items: center;
        gap: 1em;
        padding: 2em 0 5em;
    }
}

@media(max-width: 768px) {
    .mobile-flex {
        display: flex;
    }

    .desktop-flex {
        display: none;
    }

    .collanta-footer {
        #footer-menu {
            flex-direction: column;
        }

        .footer__subscription {
            display: none;
        }
    }

    /* Mobile Footer Columns */
    .collanta-footer-columns {
        padding-left: 20px;
        padding-right: 20px;
        text-align: center;
    }

    .collanta-footer-columns .row {
        margin-left: 0;
        margin-right: 0;
        flex-direction: column;
    }

    .footer-column {
        padding: 0;
        margin-bottom: 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .footer-column:last-child {
        border-bottom: none;
        margin-bottom: 30px;
    }

    .footer-column-title {
        text-align: center;
        margin-bottom: 15px;
        font-size: 18px;
        font-weight: bold;
        position: relative;
        cursor: pointer;
        color: inherit;
    }

    .footer-menu-list {
        text-align: center;
    }

    .footer-menu-list li {
        margin-bottom: 8px;
    }

    /* Collapsible Toggle - Show on Mobile */
    .collapsible-toggle {
        display: inline-block;
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 24px;
        height: 24px;
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        color: inherit;
        font-size: 18px;
        font-weight: bold;
        cursor: pointer;
        transition: transform 0.3s ease;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .collapsible-toggle.expanded {
        transform: translateY(-50%) rotate(45deg);
    }

    /* Collapsible Menu Functionality */
    .footer-column:not(.contact-column) .footer-menu-list {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .footer-column:not(.contact-column) .footer-menu-list.expanded {
        max-height: 300px;
    }

    /* Contact Info Mobile */
    .contact-info {
        text-align: center;
    }

    .contact-item {
        text-align: center;
        margin-bottom: 10px;
    }

    .contact-hours {
        text-align: center;
        margin-top: 10px;
    }

    /* Mobile Separator */
    .footer-separator {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Mobile Footer Bottom - Icons ABOVE Copyright */
    .footer-bottom {
        padding-left: 20px;
        padding-right: 20px;
        text-align: center;
    }

    .footer-bottom .container {
        text-align: center;
        display: flex;
        flex-direction: column;
    }

    .footer__social-media {
        justify-content: center;
        margin-bottom: 15px;
        order: 1;
        /* Icons first */
    }

    .copyright-text {
        text-align: center;
        line-height: 1.4;
        order: 2;
        /* Copyright second */
    }
}

/* Fix contact column alignment */
.footer-column.contact-column .contact-info {
    text-align: right;
    padding-right: 0;
}

.footer-column.contact-column .contact-item {
    text-align: right;
    justify-content: flex-end;
}

.footer-column.contact-column .contact-hours {
    text-align: right;
}

/* For mobile - keep centered */
@media (max-width: 768px) {

    .footer-column.contact-column .contact-info,
    .footer-column.contact-column .contact-item,
    .footer-column.contact-column .contact-hours {
        text-align: center;
        justify-content: center;
    }
}

/* Footer Background - Gray like icons */
.collanta-footer-columns,
.footer-separator,
.footer-bottom {
    background-color: #f5f5f5;
    /* Light gray background */
}

/* Desktop - Ensure columns match separator width exactly */
@media (min-width: 769px) {
    .footer-separator {
        padding-left: 80px !important;
        padding-right: 80px !important;
    }

    .footer-bottom {
        padding-left: 80px !important;
        padding-right: 80px !important;
    }

    .collanta-footer-columns {
        padding-left: 80px !important;
        padding-right: 80px !important;
    }
}

/* Add separator between delivery banner and newsletter */
.delivery-banner {
    border-bottom: 2px solid #ddd;
    margin-bottom: 0;
}

.newsletter-section {
    padding-top: 30px;
    padding-bottom: 30px;
}

/* Make main separator darker and thicker */
.footer-line {
    border: none;
    border-top: 2px solid #ccc;
    /* Thicker and darker */
    margin: 20px 0;
    opacity: 0.8;
    /* More visible */
}

/*
-------------------------------------------------------------------------------
8. Font Imports
-------------------------------------------------------------------------------
*/

/* Import Hebrew font */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;700&display=swap');


.woocommerce-shipping-methods li {
    position: relative !important;
    padding-right: 40px !important;
    /* Make space for radio button */
}

.woocommerce-shipping-methods input[type="radio"] {
    position: absolute !important;
    right: 10px !important;
    top: 0 !important;
    margin: 0 !important;
    border: 1px solid #ccc !important;
    cursor: pointer !important;
}

.woocommerce-shipping-methods label {
    display: block !important;
    width: calc(100% - 40px) !important;
    /* Leave space for radio button */
    cursor: pointer !important;
}

/* Hide the hub offers section */
#primary>section.hub_offers_section.triple-hub.default-bg-color.d-flex.justify-content-center {
    display: none !important;
}

.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
    background-color: #157a8a !important;
    color: white !important;
}



/* Clean shipping section - single column layout */
#order_review>table>tfoot>tr.woocommerce-shipping-totals.shipping {
    display: block !important;
    width: 100% !important;
    border-top: 1px solid #eee !important;
    background: transparent !important;
}

/* Shipping title - aligned like other table headers */
#order_review>table>tfoot>tr.woocommerce-shipping-totals.shipping>th {
    display: block !important;
    width: 100% !important;
    text-align: right !important;
    padding: 15px 15px 10px 0 !important;
    border: none !important;
    background: transparent !important;
    font-weight: bold !important;
}

/* Shipping methods container - pushed right to match content */
#order_review>table>tfoot>tr.woocommerce-shipping-totals.shipping>td {
    display: block !important;
    width: 100% !important;
    padding: 0 15px 0 0 !important;
    border: none !important;
    background: transparent !important;
}

/* Clean shipping methods list */
#order_review>table>tfoot>tr.woocommerce-shipping-totals.shipping #shipping_method {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Simple shipping method items - no borders, clean layout */
#order_review>table>tfoot>tr.woocommerce-shipping-totals.shipping #shipping_method li {
    display: block !important;
    width: 100% !important;
    margin-bottom: 8px !important;
    padding: 12px 0 !important;
    border: none !important;
    background: transparent !important;
    text-align: right !important;
    direction: rtl !important;
    position: relative !important;
}

/* Clean radio button styling */
#order_review>table>tfoot>tr.woocommerce-shipping-totals.shipping .woocommerce-shipping-methods input[type="radio"] {
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
}

#order_review>table>tfoot>tr.woocommerce-shipping-totals.shipping .woocommerce-shipping-methods label {
    display: block !important;
    width: calc(100% - 25px) !important;
    padding-right: 25px !important;
    cursor: pointer !important;
    text-align: right !important;
    line-height: 1.4 !important;
}

/* Small border for specific elements */
#shipping_method_0_shipos_delivery2,
#terms {
    border: 1px solid #ccc !important;
    border-radius: 3px !important;
    padding: 5px !important;
}

/* Give left column 5% more width in the rest of the table */
#order_review>table>thead>tr>th.product-name,
#order_review>table>tbody>tr>td.product-name {
    width: 70% !important;
    /* Increased from ~65% */
}

#order_review>table>thead>tr>th.product-total,
#order_review>table>tbody>tr>td.product-total {
    width: 30% !important;
    /* Decreased from ~35% */
}

/* Also apply to tfoot rows (except shipping which is full width) */
#order_review>table>tfoot>tr:not(.woocommerce-shipping-totals)>th {
    width: 70% !important;
}

#order_review>table>tfoot>tr:not(.woocommerce-shipping-totals)>td {
    width: 30% !important;
}

/* Hide only the YaadPay radio button, keep the method visible */
#payment_method_yaadpay {
    display: none !important;
}

/* Hide category title when background image exists - keeps SEO */
.shop-page-banner[style*="background-image"] h1.category-title-padding {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Fix shipping separator - extend across full width between title and options */
.woocommerce-checkout-review-order .shop_table tr.woocommerce-shipping-totals th {
    border-bottom: 1px solid #eee !important;
    width: 100% !important;
}

/* Keep the bolder line above total */
.woocommerce-checkout-review-order .shop_table tfoot .order-total {
    border-top: 2px solid #c0c0c0 !important; /* Less bold than original #999 */
}


/* Product Page Tips Section Banner - Mobile 9:16 Ratio */
@media (max-width: 768px) {
    .wc-single-static .tips-section-banner.mobile-flex {
        width: 100vw !important;
        aspect-ratio: 9 / 16 !important;
        height: auto !important;
        min-height: 0 !important;
        min-width: 0 !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;
        background-position: center center !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        overflow: hidden !important;
        margin: 0 auto !important;
        padding: 0 !important;
        position: relative !important;
    }
    
    .wc-single-static {
        width: 100vw !important;
        max-width: 100vw !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .wc-single-static .tips-section-banner.mobile-flex .info-block {
        position: absolute !important;
        right: 5% !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        max-width: 45% !important;
        margin: 0 !important;
        text-align: center !important;
        z-index: 10 !important;
    }
    
    .wc-single-static .tips-section-banner.mobile-flex .info-title {
        font-size: 1.4rem !important;
    }
    
    .wc-single-static .tips-section-banner.mobile-flex .info-description {
        font-size: 0.85rem !important;
    }
    
    .wc-single-static .tips-section-banner.mobile-flex .btn {
        width: auto !important;
        padding: 6px 16px !important;
        white-space: nowrap !important;
        font-size: 0.85rem !important;
    }
}

/* Categories Grid Layout for Best Sellers Section */
.best-sellers-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
    
    /* Tighten spacing around the section title */
    .offers_title {
        margin-top: 0 !important;
        margin-bottom: 0.75rem !important;
    }

    .categories-grid-container {
        width: 100%;
        margin: 0 auto;
        padding: 2rem 1.5rem; /* reduced from 4rem */
    }

    .categories-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 5px 5px;
        row-gap: 2rem;
        width: 100%;
    }

    .category-item {
        width: calc(49.5% - 2.5px);
        flex: 0 0 calc(49.5% - 2.5px);
    }



    .category-link {
        display: block;
        text-decoration: none;
        color: inherit;
        transition: transform 0.3s ease;

        &:hover {
            transform: translateY(-2px);
            text-decoration: none;
            color: inherit;
        }
        
        /* Mobile optimization: reduce expensive transforms */
        @media (max-width: 768px) {
            transition: none;
            
            &:hover {
                transform: none;
            }
            
            &:active {
                opacity: 0.7;
            }
        }
    }

    .category-image-box {
        width: 100%;
        aspect-ratio: 1 / 1;
        overflow: hidden;
        border-radius: 12px;
        position: relative;
    }

    .category-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transition: transform 0.3s ease;
    }

    .category-link:hover .category-image {
        transform: scale(1.05);
    }

    .category-title {
        margin-bottom: 1rem;
        text-align: center;
        color: #333;
        font-size: 1.3rem;
        font-weight: 500;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .best-sellers-section {
        padding-top: 1rem; /* reduced */
        padding-bottom: 1.5rem;
        
        .offers_title {
            text-align: center !important;
            margin-bottom: 0.5rem !important; /* reduced */
        }
        
        .categories-grid-container {
            max-width: 100%;
            padding: 2rem 1rem; /* reduced */
        }

        .categories-grid {
            gap: 4px 4px;
            row-gap: 1.5rem;
        }

        .category-item {
            width: calc(49.75% - 2px);
            flex: 0 0 calc(49.75% - 2px);
        }

        .category-title {
            font-size: 1.2rem;
            margin-bottom: 0.75rem;
        }
    }
}





/* Hide billing address checkbox */
.wc-block-components-checkbox.wc-block-checkout__use-address-for-billing {
    display: none !important;
}

/* Hide billing address fieldset */
.wc-block-checkout__billing-fields,
.wp-block-woocommerce-checkout-billing-address-block {
    display: none !important;
}
/* Hide shipping option checkbox */
.wc-block-checkout__shipping-option,
.wp-block-woocommerce-checkout-shipping-methods-block {
    display: none !important;

}


#shipping-country, #billing-country,
.wc-blocks-components-select__container:has(#shipping-country),
.wc-blocks-components-select__container:has(#billing-country) {
    display: none !important;
}


/* Footer Mobile Collapsible Styles */
@media (max-width: 768px) {
    /* Footer column title with toggle button */
    .footer-column-title {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        position: relative;
    }

    /* Collapsible toggle button - Show on Mobile */
    .collapsible-toggle {
        display: inline-block;
        width: 24px;
        height: 24px;
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        color: inherit;
        font-size: 18px;
        font-weight: bold;
        cursor: pointer;
        transition: transform 0.3s ease;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .collapsible-toggle.expanded {
        transform: rotate(45deg);
    }

    /* Collapsible Menu Functionality */
    .footer-column:not(.contact-column) .footer-menu-list {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .footer-column:not(.contact-column) .footer-menu-list.expanded {
        max-height: 300px;
    }

    /* Contact column always visible */
    .footer-column.contact-column .footer-menu-list,
    .footer-column.contact-column .contact-info {
        max-height: none !important;
        overflow: visible !important;
    }

    /* Footer column styling for mobile */
    .footer-column {
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .footer-column:last-child {
        border-bottom: none;
        margin-bottom: 30px;
    }

    .footer-column-title {
        text-align: center;
        margin-bottom: 15px;
        font-size: 18px;
        font-weight: bold;
    }

    .footer-menu-list {
        text-align: center;
    }

    .footer-menu-list li {
        margin-bottom: 8px;
    }
}

/* Desktop - NO toggle functionality */
@media (min-width: 769px) {
    .footer-column:not(.contact-column) .footer-menu-list {
        display: block !important;
        max-height: none !important;
        overflow: visible !important;
    }
    
    .collapsible-toggle {
        display: none !important;
    }
}


/* Method 1: Remove crosses from disabled swatches */
.swatchly-swatch.swatchly-disabled::before,
.swatchly-swatch.swatchly-disabled::after {
    display: none !important;
}

/* Method 2: Remove crosses from out-of-stock items */
.swatchly-swatch.out-of-stock::before,
.swatchly-swatch.out-of-stock::after {
    display: none !important;
}


/* Add black border to all swatches */
.swatchly-swatch {
    border: 2px solid #000 !important;
    box-sizing: border-box;
}

/* Optional: Different border for selected swatch */
.swatchly-swatch.swatchly-selected {
    border-color: #000 !important;
}

/* Optional: Hover effect */
.swatchly-swatch:hover {
    border-color: #333 !important;
}



/* Remove crosses from disabled and out-of-stock swatches */
.swatchly-swatch.swatchly-disabled::before,
.swatchly-swatch.swatchly-disabled::after,
.swatchly-swatch.out-of-stock::before,
.swatchly-swatch.out-of-stock::after {
    display: none !important;
}

