
/* ==========================================
   ADVI WELLNESS - OUR COLLECTION
   Responsive Grid + Touch Swipe Slider
========================================== */

.advi-collection-premium {
    width: 100%;
    padding: 10px 5% 75px;
    background: #ffffff;
    box-sizing: border-box;
}

/* SECTION HEADING */

.advi-collection-heading {
    width: 100%;
    text-align: center;
    margin: 0 auto 35px;
}

.advi-collection-heading h2 {
    margin: 0;
    color: #252525;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 3.2vw, 43px);
    font-weight: 400;
    line-height: 1.3;
}

/* SLIDER WRAPPER */

.advi-collection-slider {
    width: 100%;
    max-width: 1660px;
    margin: 0 auto;
}

/* DESKTOP GRID */

.advi-collection-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 25px;
    margin: 0 auto;
}

/* COLLECTION CARD */

.advi-collection-card {
    display: block;
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* CATEGORY IMAGE */

.advi-collection-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f1e8;
}

.advi-collection-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.advi-collection-card:hover .advi-collection-card-image img {
    transform: scale(1.04);
}

/* CATEGORY TITLE */

.advi-collection-card-title {
    width: 100%;
    min-height: 60px;
    padding: 15px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #08783f;
    box-sizing: border-box;
    transition: background .3s ease;
}

.advi-collection-card-title h3 {
    margin: 0;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.advi-collection-card:hover .advi-collection-card-title {
    background: #075b32;
}

/* TABLET */

@media (max-width: 1100px) and (min-width: 651px) {

    .advi-collection-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }
}

/* MOBILE - FINGER SWIPE SLIDER */

@media (max-width: 650px) {

    .advi-collection-premium {
        padding: 35px 15px 50px;
    }

    .advi-collection-heading {
        margin-bottom: 25px;
    }

    .advi-collection-heading h2 {
        font-size: clamp(26px, 7vw, 32px);
    }

    .advi-collection-slider {
        width: 100%;
        overflow: hidden;
    }

    .advi-collection-grid {
        display: flex;
        width: 100%;
        max-width: 100%;
        gap: 14px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0;

        scroll-snap-type: x mandatory;
        scroll-snap-stop: always;
        scroll-behavior: smooth;

        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;

        touch-action: pan-x pan-y;
        overscroll-behavior-x: contain;
    }

    .advi-collection-grid::-webkit-scrollbar {
        display: none;
    }

    /* EXACTLY TWO CARDS VISIBLE */

    .advi-collection-card {
        flex: 0 0 calc((100% - 14px) / 2);
        width: calc((100% - 14px) / 2);
        min-width: 0;
        scroll-snap-align: start;
    }

    .advi-collection-card-title {
        min-height: 48px;
        padding: 10px 6px;
    }

    .advi-collection-card-title h3 {
        font-size: clamp(12px, 3.5vw, 14px);
    }
}

/* SMALL MOBILE */

@media (max-width: 360px) {

    .advi-collection-premium {
        padding-left: 12px;
        padding-right: 12px;
    }

    .advi-collection-grid {
        gap: 10px;
    }

    .advi-collection-card {
        flex-basis: calc((100% - 10px) / 2);
        width: calc((100% - 10px) / 2);
    }
}
