/*
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 editing is done via /assets/scss/_bootscore_custom.scss
*/

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

:root {
    --color-lightgray-bg: #f0f0f0;
    --color-white-text: #fff;
    --color-white-bg: #fff;
    --color-orange-text: #e34266;
    --color-orange-bg: #e34266;
    --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-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-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 */

    --font-size-headline: 39px;
    --font-size-button-text: 17px;
}

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

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

/* Default Classes / Utilities */
.mobile-flex {
    display: none;
}

.desktop-flex {
    display: flex;
}

.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;
}

.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: 14rem;
}

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

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

@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
-------------------------------------------------------------------------------
*/

/* --- 4.1. Categories Section (This is the section that contains swiper_small_image_box) --- */
.default_offers_section {
    .offers_title {
        font-size: var(--font-size-headline);
        font-weight: var(--font-weight-bold);
        margin-bottom: 10px;
    }

    .offers_subtitle {
        opacity: 0.9;
        margin-bottom: 2.5rem;
    }

    .swiper_triple {
        width: 795px;
    }

    .swiper_quad {
        width: 1058px;
    }

    .swiper_small_image_box {
        width: 245px;
        height: 245px;
        border-radius: 12px;
    }

    .swiper_big_image_box {
        width: 242px;
        height: 359px;
        border-radius: 12px;
    }

    .slide_title {
        margin-top: 1.25rem;
        color: #333;
        font-size: 1.2rem !important
    }
}

/* Categories Section - Square images (1:1) */
.swiper_small_image_box {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    /* Apply square ratio on all devices */
}

.swiper_small_image_box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media(max-width: 1440px) {
    .default_offers_section {
        .swiper_quad {
            width: 768px;
        }
    }
}

@media(max-width: 1024px) {
    .default_offers_section {
        .swiper_quad {
            width: 514px;
        }

        .swiper_triple {
            width: 520px;
        }
    }
}

@media(max-width: 767px) {
    .default_offers_section {
        --font-size-headline: 1.6rem !important;

        .offers_title {
            font-size: 1.6rem !important;
        }

        .offers_subtitle {
            font-size: 1.2rem !important;
        }

        .swiper_triple,
        .swiper_quad,
        .review_swiper {

            .swiper-pagination,
            .swiper-scrollbar.swiper-scrollbar-horizontal {
                width: 100%;
            }
        }

        .default_collanta_wrapper {
            width: 100%;
            padding: 0 1rem 4em;
            /* Reduced padding */
        }

        .swiper_quad,
        .swiper_triple {
            width: 100% !important;
            /* Force full width instead of fixed 325px */
        }

        .swiper_triple {
            .swiper-wrapper {
                .swiper-slide {
                    width: 45% !important;
                    /* Slightly smaller to ensure fit */
                    margin-right: 2% !important;
                }

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

        .swiper_small_image_box {
            width: 100%;
            height: auto;
            aspect-ratio: 1 / 1;
        }

        .swiper_big_image_box {
            width: 100%;
        }

        /* Categories Section Bottom */
        &.blog-offers-section {
            .offers_title {
                font-size: 1.6rem !important;
            }

            .offers_subtitle {
                font-size: 1.2rem !important;
            }

            .swiper_triple {
                .swiper-wrapper {
                    .swiper-slide {
                        width: 45% !important;
                        /* Match top section */
                        margin-right: 2% !important;
                    }

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

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

@media(max-width: 425px) {
    .default_offers_section {
        --font-size-headline: 1.6rem !important;

        .offers_title {
            font-size: 1.6rem !important;
        }

        .offers_subtitle {
            font-size: 1.2rem !important;
        }

        .swiper_triple,
        .swiper_quad {
            width: 100% !important;
        }

        .swiper_triple {
            .swiper-wrapper {
                .swiper-slide {
                    width: 45% !important;
                    margin-right: 2% !important;
                }

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

        .swiper_small_image_box,
        .swiper_big_image_box {
            width: 100%;
            height: auto;
        }

        .swiper_small_image_box {
            aspect-ratio: 1 / 1;
        }

        /* Categories Section Bottom */
        &.blog-offers-section {
            .offers_title {
                font-size: 1.6rem !important;
            }

            .offers_subtitle {
                font-size: 1.2rem !important;
            }

            .swiper_triple {
                .swiper-wrapper {
                    .swiper-slide {
                        width: 45% !important;
                        margin-right: 2% !important;
                    }

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

            .swiper_small_image_box {
                aspect-ratio: 3 / 4;
            }
        }
    }
}

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

/* --- 4.3. Tips Section --- */
.tips-section-banner {
    min-height: 700px;

    /* Desktop min-height */
    .info-block {
        max-width: 20vw;
        margin-left: auto;
        margin-right: 13vw;
    }

    /* Title styling for all screens */
    .info-title {
        font-size: 2.2rem !important;
        font-weight: 700 !important;
        margin-top: -20px !important;
        margin-bottom: 25px !important;
    }
}


/* --- 4.3. Tips Section --- */
.tips-section-banner {
    aspect-ratio: 2 / 1;
    /* Desktop 3:1 ratio */
    min-height: unset;

    /* Remove fixed height */
    .info-block {
        max-width: 25vw;
        /* Wider from 20vw */
        margin-left: auto;
        margin-right: 13vw;
    }

    /* Title styling for all screens */
    .info-title {
        font-size: 2.64rem !important;
        /* 20% larger from 2.2rem */
        font-weight: 700 !important;
        margin-top: -20px !important;
        margin-bottom: 25px !important;
    }
}

/* Desktop only - black description */
@media (min-width: 769px) {
    .tips-section-banner.desktop-flex {
        .info-description {
            color: #000 !important;
        }
    }
}

@media (max-width: 1024px) {
    .tips-section-banner {
        .info-block {
            max-width: 40%;
        }
    }
}

@media (max-width: 768px) {
    .tips-section-banner.mobile-flex {
        position: relative;
        aspect-ratio: 2 / 1.2 !important;
        min-height: unset !important;
        background-size: cover !important;
        background-position: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        padding: 0 !important;
        margin-bottom: 0 !important;

        .info-block {
            position: absolute;
            right: 5%;
            top: 50%;
            transform: translateY(-50%);
            max-width: 45% !important;
            margin: 0 !important;
            text-align: center !important;

            .info-title {
                font-size: 1.4rem !important;
            }

            .info-description {
                font-size: 0.85rem !important; // Add smaller description
            }

            .btn {
                width: auto;
                padding: 6px 16px;
                white-space: nowrap;
                font-size: 0.85rem; // Smaller from 0.95rem
            }
        }
    }

    .tips-section-banner.desktop-flex {
        display: none !important;
    }
}



/* --- 4.4. Categories Section Bottom (This is the section for hub_offers_section) --- */
.hub_offers_section {
    padding: 7em 0;
    gap: 0.5rem;

    .hub_section_wrapper {
        max-width: 1355px;
        gap: 0.5rem;
    }
}

.hub_item_image {
    height: 422px;
    padding: 0 3em 3em 3rem;
    border-radius: 12px;
    position: relative;
    transition: all 1s ease;
    width: 441px;

    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        border-radius: 12px;
        transition: background-color 0.5s ease;
    }

    &:hover::before {
        background-color: rgba(0, 0, 0, 0.2);
    }

    .hub_item_title {
        font-size: var(--font-size-lg);
        z-index: 2;
        display: none;
        /* Hide the excerpt */
    }

    .btn-primary-light,
    .text-white {
        z-index: 2;
    }

    /* Make the title bigger */
    .text-white:first-child {
        font-size: 1.5rem;
        font-weight: 600;
    }
}

@media(max-width: 1024px) {
    .hub_item_image {
        padding: 1em;
    }
}

@media(max-width: 768px) {
    .hub_offers_section {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 1rem;

        .hub_item_image {
            padding: 1.5em;
            width: 45%;
            height: 250px;

            /* Make text 20% smaller on mobile */
            .text-white:first-child {
                font-size: 1.2rem;
                /* 20% smaller than 1.5rem */
            }

            /* Make button text smaller on mobile */
            .btn-primary-light {
                font-size: 0.9rem;
                padding: 8px 16px;
            }

            /* Hide third item */
            &:nth-child(3) {
                display: none !important;
            }
        }
    }

    .homepage-container .hub_offers_section {
        &.triple-hub {
            padding-top: 1rem;
            padding-bottom: 3rem;
        }
    }
}

/* --- 4.5. Invite Section --- */
/* Desktop Invite Section */
.invite-section-desktop {
    position: relative;
    min-height: 450px;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0;
}

.invite-content-overlay {
    position: absolute;
    left: 7%;
    top: 75%;
    transform: translateY(-50%);
    background: transparent !important;
    /* Remove black background */
    padding: 0 !important;
    /* Remove padding */
    max-width: 350px;
    border-radius: 0;
    /* Remove border radius */
    color: white;
    z-index: 10;
}

.invite-content-overlay .invite-title {
    display: none !important;
    /* Hide title */
}

.invite-content-overlay .invite-description {
    display: none !important;
    /* Hide description */
}

.invite-content-overlay .btn {
    font-size: 0.9rem;
    height: 110%;
    /* 10% taller */
    padding-top: calc(0.375rem * 1.1);
    padding-bottom: calc(0.375rem * 1.1);
}

/* Hide desktop invite on mobile */
@media (max-width: 768px) {
    .invite-section-desktop {
        display: none !important;
    }
}

/* Hide mobile invite on desktop */
@media (min-width: 769px) {
    .invite-section.mobile-flex {
        display: none !important;
    }
}

/* Membership invite section (mobile) */
@media (max-width: 768px) {
    .invite-section.mobile-flex {
        min-height: 320px;
        /* Lowered by 30% (was 400px) */
        justify-content: flex-start !important;
        /* Changed to flex-start for left alignment */
        align-items: center !important;
        /* Center vertically */
        padding-left: 5%;
        /* Pushed more to the left (was 8%) */
        padding-right: 50%;
        /* Narrowed by 5% - now left 50% (was 45%) */
        padding-top: 10px;
        background-size: cover !important;
        background-position: center !important;
        direction: rtl;

        /* RTL text direction */
        .invite-info {
            max-width: 100%;
            /* Use full available width within the 50% constraint */
            margin: 0;
            text-align: right;
            /* Right align for RTL */
            height: auto;
            /* Reset height */
            justify-content: center !important;
            background: rgba(0, 0, 0, 0.7);
            /* Match desktop overlay */
            padding: 1.5rem;
            /* Add padding like desktop */
            border-radius: 8px;
            /* Match desktop border radius */
            color: white;
            /* Ensure white text */
        }

        .invite-title {
            font-size: 1.6rem !important;
            /* Smaller than desktop but readable */
            font-weight: 700;
            margin-bottom: 1rem !important;
            /* Match desktop spacing */
            line-height: 1.2;
        }

        .invite-description {
            font-size: 0.9rem !important;
            /* Smaller for mobile but readable */
            margin-bottom: 1.5rem !important;
            /* Match desktop spacing */
            line-height: 1.4;
        }

        .btn {
            font-size: 0.85rem;
            /* Match desktop button size */
            width: auto;
            padding: 8px 20px;
            /* Better padding */
            white-space: nowrap;
            margin-top: 0;
            direction: ltr;
            /* Keep button LTR as requested */
        }
    }
}

.shop-style {
    margin: 1em !important;
    padding: 1em !important;
}



/*
-------------------------------------------------------------------------------
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 16:6.7 ratio and max height */
.header-banner-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 6.7;
    /* 16:6.7 ratio */
    max-height: 1080px;
    /* Cap the height */
    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 */
}

.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 - different ratio and constraints */
@media (max-width: 768px) {
    .header-banner-container {
        aspect-ratio: 1 / 1;
        /* Square ratio on mobile */
        max-height: 500px;
        /* Smaller max height on 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: 800px;
        /* Intermediate max height 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');
/* Duplicate imports for Heebo in original, keeping them as is */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;700&display=swap');



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

.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: #e34266 !important;
    color: white !important;
}

.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;
}

/* Make the shipping row single column layout */
#order_review>table>tfoot>tr.woocommerce-shipping-totals.shipping {
    display: block !important;
    width: 100% !important;
}

/* Make the shipping header (th) full width */
#order_review>table>tfoot>tr.woocommerce-shipping-totals.shipping>th {
    display: block !important;
    width: 100% !important;
    text-align: right !important;
    /* Since you're using Hebrew */
    padding-bottom: 10px !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

/* Hide or reposition the td content, move it under the th */
#order_review>table>tfoot>tr.woocommerce-shipping-totals.shipping>td {
    display: block !important;
    width: 100% !important;
    padding-top: 15px !important;
}

/* Make shipping methods display vertically (1 per row) */
#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;
}

/* Style each shipping method item - vertically stacked, no background */
#order_review>table>tfoot>tr.woocommerce-shipping-totals.shipping #shipping_method li {
    display: block !important;
    width: 100% !important;
    margin-bottom: 10px !important;
    padding: 10px !important;
    border: 1px solid #ddd !important;
    border-radius: 5px !important;
    /* Removed background */
}

/* Update your existing radio button styles for this context */
#order_review>table>tfoot>tr.woocommerce-shipping-totals.shipping .woocommerce-shipping-methods input[type="radio"] {
    position: absolute !important;
    right: 10px !important;
    top: 10px !important;
    margin: 0 !important;
}

#order_review>table>tfoot>tr.woocommerce-shipping-totals.shipping .woocommerce-shipping-methods label {
    display: block !important;
    width: calc(100% - 30px) !important;
    padding-right: 30px !important;
    cursor: pointer !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;
}