:root {
    --font-prim: Bodoni;
    --font-secondary: Poppins;

    --color-bg-prim: #fffbf5;
    --color-bg-secondary: #3a1f10;
    --color-dark: #211815;
}

body .row {
    /* reset bootstrap gutters */
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    margin-top: 0;
    margin-right: 0;
    margin-left: 0;
}

/*===========================
   Sections
===========================*/
#section-product-banner {
    position: relative;
    width: 100%;
    height: clamp(675px, 60svh, 1300px);
    overflow: hidden;
    background-image: url('../images/banner_treatments.jpg');


    background-size: cover;
    background-position: 40% 50%;
}

#section-product-banner .col {
    width: 100%;
}

#section-product-banner .row {
    align-items: start;
    padding: 0;
    padding: clamp(2rem, 3vw + 1rem, 6rem);
}

#section-product-banner .section-title {
    position: relative;
    font-weight: 300;

    text-align: left;

    font-size: clamp(2.75rem, 2vw + 1rem, 8rem);

    color: rgb(255, 252, 240);
    text-shadow: 1px 1px 15px rgb(168, 164, 164);

    pointer-events: none;
}

#section-product-banner .section-para {
    width: 100%;
    max-width: 52ch;
    text-shadow: 1px 1px 3px rgba(19, 16, 16, 0.088);
    z-index: 1;
}

/* ===========================
   Product quality section
   =========================== */
#section-products-about {
    height: fit-content;
    padding: clamp(2rem, 2vw, 3rem) 1rem;
    margin-bottom: clamp(2rem, 3vw, 3rem);
    user-select: none;
}

#section-products-about .col {
    justify-content: center;
}

#section-products-about .row {
    width: auto;
}

.products-quality-container {
    width: 100%;
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem;
    justify-content: center;
    align-items: center;
}

.product-quality {
    width: 5.25rem;
    height: fit-content;
    margin: 1rem .25rem;
}

.product-quality img {
    width: 100%;
    pointer-events: none;
}

.quality-title {
    font-family: var(--font-secondary);
    font-weight: 300;
    font-size: .75rem;
    color: var(--color-bg-secondary);
    text-align: center;
}

/* ===========================
   Category
   =========================== */
#section-product-category {
    height: fit-content;
    margin-bottom: clamp(2rem, 3vw, 5rem);
    background-color: #f0e9e0;
    user-select: none;
}

#section-product-category .row {
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
}

#section-product-category .col {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.card-product-category {
    position: relative;
    display: flex;
    height: clamp(250px, 20svh, 300px);
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
}

.section-product-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: 50% 30%;
    pointer-events: none;

}

.card-product-category .category-button {
    position: absolute;
    width: fit-content;
    min-width: 10rem;
    bottom: 1rem;
    right: 1rem;
    align-content: center;
    text-align: center;
    border-radius: 5rem;
    padding: 1.3rem 1.5rem;
    touch-action: manipulation;
}

/* ===========================
   Product gallery
   =========================== */
#section-product-gallery {
    height: fit-content;
    scroll-snap-align: center;

}

#section-product-gallery .col {
    height: fit-content;
    width: 100%;
    margin: auto;
    max-width: 500px;
}

#section-product-gallery .row {
    height: fit-content;
}

#section-product-gallery .section-title {
    display: flex;
    width: 100%;
    max-width: none;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
}

.product-gallery-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: fit-content;
    padding: 2rem;
}


.product-grid-container {
    display: grid;
    width: 100%;
    height: fit-content;
    justify-content: center;
    align-items: start;

    grid-template-columns: repeat(2, 8rem);
    grid-auto-rows: 19rem;
    align-items: start;

    gap: 2rem;
}

.product-gallery-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;

    transition: transform .5s cubic-bezier(0.47, 0, 0.745, 0.715), opacity .5s ease-in-out;
}

.product-card {
    width: 100%;
    height: auto;
}


.gallery-item-img {
    inline-size: 100%;
    aspect-ratio: 9 / 16;
    max-height: 14rem;
    overflow: clip;
}

.gallery-item-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transform-origin: center;
    object-position: center;
    transition: transform .8s cubic-bezier(0.5, 0.610, 0.355, 1), opacity .5s ease-in-out;
    will-change: transform;
}

.product-discrp {
    display: flex;
    inline-size: 100%;
    min-height: 5ch;
    font-family: poppins;
    font-size: .8rem;
    justify-content: left;
    align-items: center;
    text-align: center;
    color: var(--color-bg-secondary);
}

.pagination {
    justify-content: center;
    align-items: center;
}

/* ===========================
   Product display filter
   =========================== */
.product-fContainer {
    display: flex;
    width: 100%;
    flex-shrink: 0;
    justify-content: right;
    flex-wrap: wrap;
}

.product-fContainer .dropdown {
    margin: .5rem 1rem;
}

.product-fContainer .btn-dropdown {
    position: relative;
    height: auto;
    font-size: 1rem;
    padding: 0.7rem 1.25rem;
    border: none;
    outline: 1px solid rgb(179, 169, 163);
    background-color: #e6ded8;
    z-index: 1;
}

.product-fContainer .btn-dropdown img {
    width: .5rem;
    height: .5rem;
}

.product-fContainer .dropdown_list {
    position: absolute;
    padding: 0;
    margin: 0;
}

.product-fContainer .dropdown_list ul,
.product-fContainer .dropdown_list li {
    display: flex;
    height: auto;
    padding: 0.7em 1.2em;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    text-align: center;
    border: none;
    border-top: 1px solid rgb(123, 112, 109);
    background-color: #e6ded8;
    transition: background-color .1s cubic-bezier(0.39, 0.575, 0.565, 1);
}

/* keep selected state in base */
.product-fContainer .dropdown_list li.selected {
    background-color: #c8b8ad;
}

.product-fContainer .dropdown_list li a {
    text-align: center;
}

.container_result_empty {
    display: none;
    flex-direction: column;
    width: 100%;
    align-items: center;
    justify-content: center;

}

.container_result_empty.active {
    display: flex;
}

.result_emt_icon {
    width: 14rem;
    opacity: .5;
    padding-left: 2rem;
}

.container_result_empty .section-title-med {
    max-width: 72ch;
    line-height: 1.75rem;
    margin: 1.5rem 0;
    color: var(--color-dark);
    font-family: var(--font-secondary);
    font-size: 1.45rem;
    text-align: center;
    opacity: .75;
}

.container_result_empty .button {
    max-width: 15ch;
    color: var(--color-bg-prim);
    text-align: center;
    background-color: #c8b8ad;
    transition: background-color .2s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

.btn_gallery_left,
.btn_gallery_right {
    width: 3rem;
    background: none;
    border: none;
    opacity: 70%;
    margin-bottom: 2rem;
    transition: all .5s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn_gallery_left {
    transform: scaleX(-1);
}

img {
    max-width: 100%;
}

#section-products-quote .section-title {
    width: 100%;
    max-width: none;
    text-align: center;
    padding: 2rem;
}

.btn_explore {
    position: relative;
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    margin-top: 4rem;
}

.btn_explore h3 {
    position: relative;
    font-size: 1.1rem;
    letter-spacing: 1px;
    user-select: none;
    color: rgb(26, 20, 20);
    transition: letter-spacing .5s ease-out;
}

.btn_explore h3::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    top: 100%;
    left: 50%;
    background-color: #000;
    transform-origin: center;
    transform: translateX(-50%) scaleX(0);
    transition: transform .35s ease-out;
}

.btn_down-arrow {
    position: absolute;
    bottom: 1rem;
    display: flex;
    height: fit-content;
    max-height: 2rem;
    margin-top: 1rem;
    transition: all .35s ease-out;
}

.btn_down-arrow img {
    width: 1.25rem;
}

/* ===========================
   Media queries
   =========================== */
@media screen and (min-width:720px) {

    /* Sections */
    #section-product-banner {
        width: 100%;
        height: clamp(500px, 60vh, 700vh);
    }

    #section-product-banner .col {
        max-width: none;
        max-height: fit-content;
    }

    #section-product-banner .row {
        max-height: fit-content;
    }

    #section-product-banner::before {
        width: 100%;
        background: linear-gradient(-90deg, rgba(1, 1, 1, 0) 0%, rgba(255, 255, 255, 0.35) 50%, rgba(0, 0, 0, 0.7) 100%);
    }

    #section-product-banner .section-title {
        width: 24ch;
        text-align: left;
    }

    .products-quality-container {
        display: grid;
        grid-auto-flow: column;
    }

    #section-product-category {
        padding: 3rem 0;
    }

    .card-product-category {
        height: 100%;
    }

    .card-product-category .category-button {
        left: 50%;
        transform: translateX(-50%);
        bottom: -1rem;
        border-radius: 4rem;
        padding: 1rem .25rem;
    }

    .product-fContainer {
        justify-content: flex-end;
    }

    #section-product-category .row {
        padding: clamp(2rem, 5vw, 3rem) 1rem;
    }

    .section-product-img {
        width: 100%;
        aspect-ratio: 8 / 14;
        border-radius: 10vw;
    }

    #section-product-gallery .col {
        width: 100%;
        max-width: none;
    }

    .product-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(12rem, 15rem));
        grid-auto-rows: auto;
        min-height: auto;
    }

    .gallery-item-img {
        inline-size: 100%;
        aspect-ratio: 9 / 16;
        max-height: none;

    }

    /* InHouseProds */
    #section-inHouseProduct {
        height: fit-content;
    }

    .inHouseProduct-txt-container {
        width: 90%;
    }
}

@media screen and (min-width:920px) {

    /* Category */
    .fCard-content button {
        width: 50%;
    }

    #section-product-gallery .col {
        max-width: 1600px;
    }

    .card-product-category .category-button {
        padding: 1.25rem .75rem;
    }

    /* Product gallery */
    .product-grid-container {
        display: grid;
        width: 100%;
        height: fit-content;
        min-height: 1000px;
        grid-template-columns: repeat(auto-fill, minmax(12rem, 15rem));
        grid-auto-rows: auto;
        -ms-grid-column-align: center;
    }

    .product-gallery-item {
        display: flex;
        width: fit-content;
        transition: transform .5s cubic-bezier(0.47, 0, 0.745, 0.715), opacity .5s ease-in-out;
    }

    .product-discrp {
        inline-size: 100%;

        font-size: 1rem;
    }
}

@media screen and (min-width:1500px) {
    .inHouseProduct-txt-container {
        width: 70%;
    }

    #section-inHouseProduct {
        min-height: 900px;
    }

    #section-product-banner .section-title {
        max-width: 24ch;
        letter-spacing: 5px;
    }

    .card-product-category {
        max-height: 600px;
    }

    #section-product-category .col {
        max-width: 1100px;
    }

    .section-product-img {
        border-radius: 7rem;
    }

    .product-grid-container {
        display: grid;
        gap: 3rem;
    }

    .gallery-item-img {
        inline-size: 100%;
        aspect-ratio: 9 / 16;
    }

    .product-discrp {
        inline-size: 100%;
        font-size: .8rem;
        margin-top: .5rem;
        text-shadow: 1px 1px 3px rgba(18, 8, 5, 0.1);
    }
}

@media screen and (min-width:2000px) {
    #section-products-quote .section-title {
        margin-top: 2rem;
    }

    .section-product-img {
        border-radius: 8rem;
    }

    #section-product-category .col {
        max-width: 1500px;
    }

    .card-product-category {
        max-height: 800px;
    }
}

@media screen and (min-width:3240px) {
    .fCard-content h2 {
        font-size: 2.75rem;
    }

    .fCard-content button {
        width: 60%;
        height: 7rem;
        font-size: 1.75rem;
    }

    #section-inHouseProduct {
        height: fit-content;
        min-height: 500px;
    }

    #section-inHouseProduct .section-title {
        font-size: 3.75rem;
        max-width: 600px;
    }

    #section-inHouseProduct .section-para {
        font-size: 1.25rem;
        max-width: 750px;
    }

    .product-grid-container {
        grid-auto-rows: auto;
        gap: 4rem 1rem;
    }
}

/* ===========================
   Hover-only styles (pointer devices)
   =========================== */
@media (hover: hover) {

    /* product grid image zoom */
    .gallery-item-img img:hover {
        transform: scale(1.25);
    }

    /* empty state CTA */
    .container_result_empty .button:hover {
        background-color: var(--color-bg-secondary);
    }

    /* gallery pager arrows */
    .btn_gallery_left:hover {
        transform: scaleX(-1) translateX(.5rem);
        cursor: pointer;
    }

    .btn_gallery_right:hover {
        transform: translateX(.5rem);
        cursor: pointer;
    }

    /* filter dropdown items */
    .product-fContainer .dropdown_list li:hover {
        background-color: #c8b8ad;
    }

    /* explore CTA + linked effects */
    .btn_explore:hover {
        cursor: pointer;
    }

    .btn_explore:hover .btn_down-arrow {
        bottom: 0rem;
    }

    .btn_explore:hover h3 {
        letter-spacing: 2px;
        color: #140a0a;
    }

    .btn_explore:hover h3::before {
        transform: translateX(-50%) scaleX(1);
    }
}