/* ─── General Resets and Utility Classes ───────────────────── */
.header-action-2 .header-action-icon-2 > a {
    line-height: 1;
}

.modal-open {
    overflow: hidden !important;
    height: 100vh !important;
}

.hover-overlay {
    display: none !important;
}

.max-screen-width {
    width: 100%;
}

/* ─── Typography and Text Styling ─────────────────────────── */
.category-name,
.product-content-title,
.top,
.total-product-counter,
.attribute-section h6,
.attribute-section .form-check-category,
.sub-category-name,
.filter-text {
    font-family: 'Nunito Sans', sans-serif;
    font-style: normal;
}

.total-product-counter {
    padding: 7px 16px;
}

.btn-filter {
    box-sizing: border-box;
    display: flex;
    background: #FFFFFF;
    border: 1px solid #A8A8A8;
    border-radius: 4px;
    font-family: 'Nunito Sans';
    font-style: normal;
    font-weight: 600;
    font-size: 15px;
    line-height: 16px;
    color: #242424;
    padding: 13px 28px;
    transform: rotate(-0.22deg);
    gap: 5px;
}

.mage--filter {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%230d0d0d' stroke-linecap='round' stroke-miterlimit='10' stroke-width='1.5' d='M21.25 12H8.895m-4.361 0H2.75m18.5 6.607h-5.748m-4.361 0H2.75m18.5-13.214h-3.105m-4.361 0H2.75m13.214 2.18a2.18 2.18 0 1 0 0-4.36a2.18 2.18 0 0 0 0 4.36Zm-9.25 6.607a2.18 2.18 0 1 0 0-4.36a2.18 2.18 0 0 0 0 4.36Zm6.607 6.608a2.18 2.18 0 1 0 0-4.361a2.18 2.18 0 0 0 0 4.36Z'/%3E%3C/svg%3E");
    margin-top: -4px;
}

.category-name {
    font-weight: 800;
    font-size: 36px;
    line-height: 49px;
    color: #173D2C;
    display: flex;
    align-items: center;
    text-align: center;
}

.product-content-title {
    font-weight: 700;
    font-size: 15px;
    line-height: 17px;
    color: #000000;
}

.product-content-price {
    font-weight: 700;
    font-size: 18px;
    line-height: 22px;
    color: #3AB47C;
}

.product-content-price .discounted-price {
    color: #E7A01C;
}

.product-content-price .old-price {
    font-size: 12px;
    margin-top: -5px;
    color: #B7B7B7;
}

.top {
    background-color: #3AB47C;
    font-weight: 800;
    font-size: 17px !important;
    line-height: 19px !important;
    color: #FFFFFF !important;
}

/* ─── Layout Containers ───────────────────────────────────── */
.top-line-container {
    align-items: center;
    gap: 15px;
}

.total-product-div {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    background-color: #D9D9D9;
    border-radius: 5px;
}

.attribute-section {
    border-radius: 5px;
    background: #FFFFFF;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    padding: 17px 22px;
}

.section-last-view-products,
.section-title-last {
    /* Optional layout constraints */
}

/* ─── Product and Image Styling ───────────────────────────── */
.product-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img a,
.product-img img {
    width: 100%;
    height: 100%;
}

.product-img img {
    object-fit: cover;
}

.product-img-action-wrap {
    height: fit-content;
}

.product-content-add-container {
    position: relative;
    top: 3em;
}

.product-content-add {
    background-color: #173D2C;
    border-radius: 10px;
    font-weight: 800;
    font-size: 15px;
    line-height: 20px;
    padding: 12px 28px;
    color: #FFFFFF;
}

.product-content-add:hover {
    background-color: #FDC040 !important;
}

.product-cart-wrap,
.slick-list {
    overflow: unset !important;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(128, 128, 128, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #FFFFFF;
    font-family: 'Nunito Sans';
    font-style: normal;
    font-weight: 800;
    font-size: 20px;
    line-height: 27px;
    pointer-events: auto; /* IMPORTANT: allows this to block clicks */
    z-index: 2; /* Higher than other elements */
    border-radius: 10px;
}

/* ─── Favourite Icons ─────────────────────────────────────── */
.favourite-icon,
.favourite-icon-full {
    left: 88% !important;
    top: 5% !important;
    transition: transform 0.3s ease-in-out;
}

.favourite-icon:hover,
.favourite-icon-full:hover {
    cursor: pointer;
    transform: scale(1.1);
}

/* ─── Filter & Attribute Styling ──────────────────────────── */
.filter-checkbox {
    appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    border: 2px solid #4CAF50;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    vertical-align: middle;
}

.filter-checkbox:checked {
    background-color: #4CAF50 !important;
    border: 2px solid #4CAF50 !important;
}

.filter-checkbox:checked::after {
    content: '✓';
    font-size: 14px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
}

.filter-checkbox + .form-check-label {
    font-size: 16px;
    color: #333;
    font-weight: normal;
    margin-left: 8px;
    cursor: pointer;
}

.filter-checkbox:hover {
    border-color: #388E3C;
}

.filter-checkbox:focus {
    outline: none;
    box-shadow: 0 0 3px #4CAF50;
}

/* ─── Range Slider ───────────────────────────────────────── */
.range-slider-container {
    position: relative;
    width: 100%;
    height: 40px;
}

/* Actual slider track between thumbs */
.slider-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 8px;
    right: 8px;
    height: 6px;
    background: #4CAF50;
    border-radius: 5px;
    z-index: 1;
}

/* Sliders */
.price-slider {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 6px;
    appearance: none;
    background: transparent;
    pointer-events: none;
    z-index: 2;
    border: none;
    padding-left: 0 !important;
}

/* WebKit thumbs */
.price-slider::-webkit-slider-thumb {
    pointer-events: auto;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #173D2C;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    z-index: 3;
}

/* Firefox thumbs */
.price-slider::-moz-range-thumb {
    pointer-events: auto;
    width: 16px;
    height: 16px;
    background: #173D2C;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
}

/* ─── Splide & Slick Carousel ────────────────────────────── */
.splide__track {
    cursor: grab;
    height: 100%;
}

.splide__track:active {
    cursor: grabbing;
}

.splide__slide {
    max-height: 450px;
}

.splide__list {
    height: fit-content;
}

.splide__arrow {
    position: absolute;
    top: 20% !important;
    transform: translateY(-50%);
    background-color: transparent !important;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.splide__arrow::before {
    content: '';
    display: block;
    width: 14px;
    height: 14px;
    border-right: 2px solid #1f402f;
    border-bottom: 2px solid #1f402f;
    transform: rotate(-45deg);
}

.splide__arrow--prev {
    left: -2rem !important;
}

.splide__arrow--prev::before {
    transform: rotate(135deg);
}

.splide__arrow--next {
    right: -2rem !important;
}

/* ─── Decorative Lines ───────────────────────────────────── */
.lines-right {
    position: relative;
    text-align: right;
    margin-top: 50px;
    display: grid;
    justify-content: right;
    align-items: center;
}

.lines-right::after {
    content: '';
    display: block;
    background-color: #B5E0CC;
    height: 0.3em;
    width: 40vw;
    margin: 1em 0;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    margin-left: auto;
}

.lines-right .line-right {
    display: block;
    background-color: #B5E0CC;
    height: 0.6em;
    width: 60vw;
    margin: 0.5em 0;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    margin-left: auto;
}

/* ─── Responsive Media Queries ───────────────────────────── */
@media only screen and (max-width: 1200px) {
    .favourite-icon, .favourite-icon-full {
        left: 82% !important;
    }
}

@media only screen and (max-width: 991px) {
    .product-cart-wrap .product-img-action-wrap .product-img {
        max-height: 200px;
    }
}

@media only screen and (max-width: 768px) {
    .product-content-add {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }

    .category-name {
        font-size: 26px;
        line-height: 32px;
    }

    .price-slider {
        top: 55%;
    }

    .slider-track {
        transform: translate(5%);
        width: 95%;
        left: -8px;
    }
}

@media only screen and (max-width: 767px) {
    .splide__list {
        height: 20rem !important;
    }
}

@media only screen and (max-width: 520px) {
    .lines-right {
        margin-top: 2rem;
    }
}

@media only screen and (max-width: 501px) {
    .section-title-last h3 {
        width: 50%;
    }

    .section-title h3 > img {
        position: absolute;
        width: 39px;
        height: 39px;
        left: 50%;
        top: 15px;
    }
}

@media only screen and (max-width: 480px) {
    .lines-right::after {
        width: 80vw;
    }

    .lines-right .line-right {
        width: 90vw;
    }

    .lines-right-remove-margin {
        margin-top: 0;
    }
}

@media only screen and (max-width: 450px) {
    .splide__list {
        height: 22rem !important;
    }
}

@media only screen and (max-width: 479px) {
    .carausel-4-columns-cover .carausel-4-columns {
        height: 30rem;
    }
}
