﻿.grb_block-more-products__main {
    padding-bottom: 20px;
}
/* Conteneur des titres */
.grb_block-more-products__title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 10px;
}

.grb_block-more-products__surtitle {
    font-weight: var(--medium);
}

.grb_block-more-products__title {
    font-size: 30px;
    text-transform: uppercase;
    font-weight: var(--semibold);
}

.grb_block-more-products__subtitle {
    font-size: 18px;
    font-weight: var(--medium);
}

/* Conteneur global des filtres et tri */
.grb_block-more-products__filters-container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    width: 30%;
    justify-content: flex-start;
    column-gap: 50px;
    align-items: center;
}

/* Conteneur des tris */
.grb_block-more-products__products-cards--sorting-wrapper {
    display: flex;
    flex-direction: column;
    position: relative;
}

.grb_block-more-products__products-cards--sorting-title {
    background: var(--blanc);
    border-radius: 10px 10px 0 0;
    padding: 10px 20px;
    border: 2px solid #e53029;
    color: #e53029;
    font-weight: var(--semibold);
    position: relative;
    z-index: 15;
    cursor: pointer;
    transition: all .3s ease;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .grb_block-more-products__products-cards--sorting-title:hover {
        background: #e53029;
        color: var(--blanc);
    }

.grb_block-more-products__products-cards--sorting-lists {
    display: flex;
    flex-direction: column;
    padding: 19px 0 0;
    position: absolute;
    top: 19px;
    left: 0;
    z-index: 10;
    background: var(--blanc);
    width: 100%;
    border: 1px solid #e53029;
    border-radius: 5px 10px;
}

.grb_block-more-products__products-cards--sorting-item {
    padding: 10px 15px;
    justify-content: space-between;
    border-bottom: 1px solid #e53029;
    align-items: center;
    cursor: pointer;
    transition: all .3s ease;
}

    .grb_block-more-products__products-cards--sorting-item:last-child {
        border: none;
    }

    .grb_block-more-products__products-cards--sorting-item:hover {
        background: rgba(238, 60, 52, 0.8);
        color: var(--blanc);
    }

/* Conteneur de la barre de recherche */
.grb_block-more-products__search-bar--container {
    border: 2px solid #e53029;
    border-radius: 10px 10px 0 0;
    padding: 10px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grb_block-more-products__search-bar:focus-visible {
    outline: none;
}

.grb_block-more-products__search-bar::placeholder {
    color: rgba(229,48,41,.8);
}

/* Conteneur général des filtres et vignettes */
.grb_block-more-products__products-cards-wrapper {
    display: flex;
    padding-top: 20px;
    row-gap: 30px;
}
/* Conteneur des filtres */

.grb_block-more-products__products-cards-filter-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.grb_block-more-products__products-cards--cbx_container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.grb_block-more-products__products-cards--category-filter, .grb_block-more-products__products-cards--brand-filter {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: solid 1px #CCCCCC;
    border-radius: 15px 10px 10px 5px;
    width: 100%;
    max-width: 280px;
    line-height: normal;
    color: var(--noir);
    font-size: 14px;
    font-weight: var(--semibold);
    position: relative;
    cursor: pointer;
}

.grb_block-more-products__products-cards-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    height: 40px;
}

.svg-icon-more {
    display: flex;
    width: 15px;
    transform: rotate(-90deg);
}

.svg-icon-less {
    width: 15px;
}

.grb_block-more-products__products-cards--category-lists, .grb_block-more-products__products-cards--brand-lists {
    display: none;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 10px;
    gap: 10px;
    z-index: 10;
    overflow-y: auto;
    max-height: 570px;
}

.grb_block-more-products__products-cards-filter-removeall {
    font-size: 14px;
    font-weight: var(--semibold);
    color: var(--noir);
    text-decoration-line: underline;
    cursor: pointer;
}

.hidden-init-lists {
    visibility: hidden;
    overflow: hidden;
}

.open {
    display: flex;
}

.grb_block-more-products__products-cards--cbx {
    position: relative;
    border-radius: 50%;
    padding: 7px;
    appearance: none;
    -webkit-appearance: none;
    outline: 1px solid red;
    background: white;
    cursor: pointer;
}

    .grb_block-more-products__products-cards--cbx::after {
        display: none;
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: calc(100% - 5px);
        height: calc(100% - 5px);
        background-color: red;
        border-radius: 50%;
        transform: translate(-50%, -50%);
    }

    .grb_block-more-products__products-cards--cbx:checked::after {
        display: block;
    }

.grb_block-more-products__products-cards--category-item, .grb_block-more-products__products-cards--brand-item {
    display: flex;
    width: 100%;
    position: relative;
    gap: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: var(--semibold);
    color: #545454;
    justify-content: space-between;
}

.grb_block-more-products__products-cards--brand-all, .grb_block-more-products__products-cards--category-all {
    background: #e53029;
    color: var(--blanc);
}

.grb_block-more-products__wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 20px;
    column-gap: 10px;
    width: 100%;
    margin: 0 auto;
}

.grb_block-more-products__product-card {
    position: relative;
    width: 100%;
    max-width: 280px;
    max-height: 257px;
    padding: 30px 5px 15px 10px;
    background-color: var(--blanc);
    border-radius: 10px;
    border: 1px solid #D4D4D4;
}

.grb_block-more-products__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 10px;
    width: 100%;
    height: 100%;
}

.grb_block-more-products__product-card__tag {
    position: absolute;
    padding: 5px;
    color: var(--blanc);
    border-radius: 5px;
    background-color: #E53029;
}

.grb_block-more-products__product-card__tag--discount {
    top: 5px;
    right: 5px;
}

.grb_block-more-products__product-card__event {
    top: 5px;
    left: 5px;
}

.grb_block-more-products__product-card-top {
    order: 1;
    align-self: flex-start;
}

.grb_block-more-products__product-card--category {
    font-size: var(--size_h6);
    font-weight: var(--semibold);
    text-transform: uppercase;
}

.grb_block-more-products__product-card-img {
    order: 0;
    width: 100%;
    max-width: 180px;
    height: 120px;
}

    .grb_block-more-products__product-card-img img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.grb_block-more-products__product-card-text {
    order: 2;
    display: -webkit-box;
    width: 100%;
    max-width: 240px;
    height: 30px;
    margin-right: auto;
    font-size: 13px;
    line-height: 1.2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.grb_block-more-products__product-card-prices {
    order: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 5px;
    margin-right: auto;
}

.grb_block-more-products__product-card--original-price {
    position: relative;
}

    .grb_block-more-products__product-card--original-price::after {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        width: 100%;
        height: 1px;
        background-color: var(--noir);
        transform: translateY(-50%);
    }

.grb_block-more-products__product-card--current-price {
    font-size: var(--size_h4);
    font-weight: var(--semibold);
}

.grb_block-more-products__product-card--original-price + .grb_block-more-products__product-card--current-price {
    color: #EE3C34;
}

.grb_block-more-products__see-more:hover .grb_block-more-products__see-more--text {
    color: var(--blanc)
}

/* CTA Voir tout */
.grb_block-more-products__see-more-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.grb_block-more-products__see-more-wrapper--hidden {
    display: none;
}

.grb_block-more-products__see-more {
    border: 2px solid #e53029;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 50px;
    border-radius: 7px;
    transition: background 0.3s ease;
    cursor: pointer;
}

    .grb_block-more-products__see-more:hover {
        background: #e53029;
    }

        .grb_block-more-products__see-more:hover .grb_block-more-products__see-more--text {
            color: var(--blanc)
        }

.grb_block-more-products__see-more--text {
    color: #e53029;
    font-weight: var(--semibold);
    text-transform: uppercase;
    transition: color 0.3s ease;
}

@media screen and (max-width: 960px) {
    .grb_block-more-products__products-cards-wrapper {
        flex-direction: column;
        width: 100%;
    }

    .grb_block-more-products__filters-container {
        width: 100%;
    }

    .grb_block-more-products__products-cards-filter-wrapper {
        align-items: center;
    }
}

@media screen and (max-width: 768px) {
    .grb_block-more-products__product-card {
        max-width: 170px;
        padding: 25px 5px 15px;
    }

    .grb_block-more-products__product-card__tag,
    .grb_block-more-products__product-card--discount-percentage {
        font-size: 12px;
    }

    .grb_block-more-products__product-card-img {
        max-width: 100px;
        height: 100px;
    }
}
