/*MAIN SHOPPING : étoile active*/

/*----------------------------------------------------------*/

.star-active {
    color: var(--warning);
}

.star-empty {
    color: var(--gray-200);
}
/*__________________________________________________________*/

/*PANIER INTERACTIF AU SURVOL*/

/*----------------------------------------------------------*/

.product-cart {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background-color: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.product-cart:hover {
    background-color: var(--primary);
}
/*__________________________________________________________*/

/*Grille POPULAR CATEGORIES*/

/*----------------------------------------------------------*/
.popular-categories {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, 200px);
    gap: 16px 24px;
}

.categories-card span {
    display: flex;
    justify-content: center;
}

.main, h2 {
    width: 1320px;
    margin: 60px auto;
}
/*__________________________________________________________*/

/*GRILLE POPULAR PRODUCTS*/

/*----------------------------------------------------------*/
.popular-products {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 264px);
}

.products-card a span {
    flex-direction: column;
    align-items: flex-start;
    font-family: var(--body-small-400);
    color: var(--gray-700);
    text-decoration: none;
}

.product-card {
    display: flex;
    flex-direction: column;
}

.product-card > button {
    align-self: flex-end;
    align-items: center;
    margin-right: 50px;
    margin-bottom: 22px;

    transform: translateY(-32px);
}

.product-rating {
    display: flex;
}

.product-card {
    position: relative;
}

.product-sale {
    position: absolute;
    background-color: #ea4b48;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
}

.product-price {
    display: flex;
}

.product-price .old-price {
    text-decoration: line-through;
    color: var(--gray-400);
}

/* ==========================================
   CONTENEUR PRINCIPAL
========================================== */

.homepage-content {
    width: min(1320px, calc(100% - 40px));
    margin: 0 auto;

    font-family: var(--font-family, "Poppins", sans-serif);
    color: var(--gray-900, #1a1a1a);
}

.homepage-content img {
    display: block;
    width: 100%;
    object-fit: contain;
}


/* ==========================================
   TITRES DE SECTIONS
========================================== */

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 20px;
}

.section-heading h2,
.news-section > h2,
.instagram-section > h2 {
    margin: 0;

    font-size: 24px;
    font-weight: 600;
}

.section-heading a {
    color: var(--green-600, #00b207);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}


/* ==========================================
   3 PROMOTIONS DU HAUT
========================================== */

.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;

    margin-bottom: 60px;
}

.promo-card {
    position: relative;

    min-height: 536px;

    overflow: hidden;
    border-radius: 8px;
}

.promo-card > img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.promo-content {
    position: absolute;
    top: 35px;
    left: 20px;
    right: 20px;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}

.promo-content span {
    font-size: 12px;
    font-weight: 500;
}

.promo-content h2 {
    margin: 8px 0;

    font-size: 32px;
    font-weight: 600;
}

.promo-content p {
    margin: 0 0 20px;
}

.promo-content button {
    padding: 12px 24px;

    border: none;
    border-radius: 30px;

    background-color: white;

    color: var(--green-600, #00b207);
    font-weight: 600;

    cursor: pointer;
}


/* ==========================================
   SECTIONS PRODUITS
========================================== */

.products-section {
    margin-bottom: 60px;
}


/* ==========================================
   HOT DEALS
========================================== */

.hot-deals-grid {
    display: grid;

    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: 300px;

    border-top: 1px solid var(--gray-100, #e6e6e6);
    border-left: 1px solid var(--gray-100, #e6e6e6);
}


/* ==========================================
   GRANDE CARTE HOT DEAL
========================================== */

.hot-deal-main {
    grid-column: span 2;
    grid-row: span 2;

    position: relative;

    padding: 20px;

    border-right: 1px solid var(--green-500, #2c742f);
    border-bottom: 1px solid var(--green-500, #2c742f);

    text-align: center;
}

.hot-deal-main > img {
    height: 270px;

    object-fit: contain;
}

.product-badges {
    position: absolute;
    top: 16px;
    left: 16px;

    display: flex;
    gap: 8px;
}

.badge-sale,
.badge-blue {
    display: inline-block;

    width: fit-content;

    padding: 4px 8px;

    border-radius: 4px;

    color: white;
    font-size: 12px;
}

.badge-sale {
    background-color: #ea4b48;
}

.badge-blue {
    background-color: #2388ff;
}

.product-actions {
    display: grid;

    grid-template-columns: 40px 1fr 40px;
    align-items: center;

    gap: 10px;

    margin: 5px 0 15px;
}

.product-actions button {
    min-height: 40px;

    border: none;
    border-radius: 50%;

    cursor: pointer;
}

.product-actions .add-cart {
    border-radius: 30px;

    background-color: var(--green-600, #00b207);

    color: white;
    font-weight: 600;
}

.hot-deal-content h3 {
    margin: 0 0 5px;

    color: var(--green-700, #2c742f);
    font-size: 16px;
    font-weight: 400;
}

.price {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 5px;
}

.old-price {
    color: var(--gray-400, #999999);
    text-decoration: line-through;
}

.rating {
    color: #ff8a00;
}

.hot-deal-content p {
    margin: 10px 0;

    color: var(--gray-500, #808080);
    font-size: 12px;
}

.countdown {
    display: flex;
    justify-content: center;

    gap: 28px;
}

.countdown div {
    display: flex;
    flex-direction: column;
}

.countdown strong {
    font-size: 18px;
    font-weight: 500;
}

.countdown span {
    color: var(--gray-400, #999999);
    font-size: 10px;
}


/* ==========================================
   CARTE PRODUIT STANDARD
========================================== */

.product-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;

    border-right: 1px solid var(--gray-100, #e6e6e6);
    border-bottom: 1px solid var(--gray-100, #e6e6e6);

    background-color: white;
}

.product-card > img {
    width: 100%;
    height: 205px;

    padding: 10px;

    box-sizing: border-box;
    object-fit: contain;
}

.product-card > .badge-sale {
    position: absolute;
    top: 16px;
    left: 16px;

    z-index: 2;
}

.product-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;

    flex: 1;

    padding: 12px;
}

.product-card-bottom h3 {
    margin: 0 0 4px;

    color: var(--gray-700, #4d4d4d);
    font-size: 14px;
    font-weight: 400;
}

.product-card-bottom span {
    font-size: 14px;
}

.product-card-bottom .price {
    justify-content: flex-start;
}

.product-card-bottom .rating {
    margin-top: 4px;

    font-size: 12px;
}

.product-cart {
    flex: 0 0 auto;

    width: 40px;
    height: 40px;

    border: none;
    border-radius: 50%;

    background-color: var(--gray-50, #f2f2f2);

    cursor: pointer;
}

.product-cart-active {
    background-color: var(--green-600, #00b207);
    color: white;
}

.featured-active {
    z-index: 2;

    outline: 1px solid var(--green-600, #00b207);

    box-shadow: 0 0 12px rgb(0 0 0 / 8%);
}


/* ==========================================
   GRANDE BANNIÈRE 37%
========================================== */

.summer-banner {
    position: relative;

    min-height: 360px;

    margin-bottom: 60px;

    overflow: hidden;

    border-radius: 8px;

    background-color: #1a1a1a;
}

.summer-banner > img {
    width: 100%;
    height: 360px;

    object-fit: cover;
}

.summer-banner-content {
    position: absolute;

    top: 50%;
    right: 70px;

    width: 40%;

    transform: translateY(-50%);

    color: white;
}

.summer-banner-content > span {
    font-size: 14px;
}

.summer-banner-content h2 {
    margin: 10px 0;

    font-size: 36px;
    font-weight: 400;
}

.summer-banner-content h2 strong {
    color: #ff8a00;
    font-size: 56px;
}

.summer-banner-content p {
    color: #cccccc;

    line-height: 1.7;
}

.summer-banner-content button {
    margin-top: 12px;
    padding: 13px 26px;

    border: none;
    border-radius: 30px;

    background-color: var(--green-600, #00b207);

    color: white;
    font-weight: 600;

    cursor: pointer;
}


/* ==========================================
   FEATURED PRODUCTS
========================================== */

.featured-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);

    border-top: 1px solid var(--gray-100, #e6e6e6);
    border-left: 1px solid var(--gray-100, #e6e6e6);
}

.featured-grid .product-card {
    min-height: 330px;
}


/* ==========================================
   NEWS
========================================== */

.news-section {
    margin-bottom: 60px;
}

.news-section > h2 {
    margin-bottom: 25px;

    text-align: center;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 24px;
}

.news-card {
    overflow: hidden;

    border: 1px solid var(--gray-100, #e6e6e6);
    border-radius: 8px;

    background-color: white;
}

.news-image {
    position: relative;

    height: 260px;
}

.news-image > img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.news-date {
    position: absolute;

    left: 20px;
    bottom: 20px;

    display: flex;
    flex-direction: column;

    padding: 8px 12px;

    border-radius: 4px;

    background-color: rgb(255 255 255 / 90%);

    text-align: center;
}

.news-date strong {
    font-size: 18px;
}

.news-date span {
    color: var(--gray-500, #808080);
    font-size: 11px;
}

.news-content {
    padding: 20px;
}

.news-meta {
    margin-bottom: 10px;

    color: var(--gray-500, #808080);
    font-size: 12px;
}

.news-content h3 {
    margin: 0 0 15px;

    font-size: 16px;
    font-weight: 500;

    line-height: 1.5;
}

.news-content a {
    color: var(--green-600, #00b207);

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;
}


/* ==========================================
   TESTIMONIALS
========================================== */

.testimonials-section {
    margin-bottom: 40px;
    padding: 50px 0;

    background-color: var(--gray-50, #f7f7f7);
}

.testimonial-buttons {
    display: flex;

    gap: 10px;
}

.testimonial-buttons button {
    width: 40px;
    height: 40px;

    border: none;
    border-radius: 50%;

    cursor: pointer;
}

.testimonial-buttons button:last-child {
    background-color: var(--green-600, #00b207);
    color: white;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 24px;
}

.testimonial-card {
    padding: 24px;

    border-radius: 8px;

    background-color: white;

    box-shadow: 0 8px 30px rgb(0 0 0 / 5%);
}

.quote {
    color: var(--green-600, #00b207);

    font-size: 48px;
    line-height: 1;
}

.testimonial-card > p {
    color: var(--gray-600, #666666);

    font-size: 13px;

    line-height: 1.7;
}

.testimonial-user {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-top: 20px;
}

.user-info {
    display: flex;
    align-items: center;

    gap: 12px;
}

.user-info > img {
    width: 48px;
    height: 48px;

    border-radius: 50%;

    object-fit: cover;
}

.user-info div {
    display: flex;
    flex-direction: column;
}

.user-info strong {
    font-size: 13px;
}

.user-info span {
    color: var(--gray-500, #808080);

    font-size: 11px;
}


/* ==========================================
   MARQUES
========================================== */

.brands {
    display: grid;
    grid-template-columns: repeat(6, 1fr);

    align-items: center;

    gap: 20px;

    margin: 45px 0;
}

.brands img {
    width: 100%;
    height: 55px;

    object-fit: contain;
}


/* ==========================================
   INSTAGRAM
========================================== */

.instagram-section {
    margin-bottom: 60px;
}

.instagram-section > h2 {
    margin-bottom: 25px;

    text-align: center;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);

    gap: 12px;
}

.instagram-grid a {
    position: relative;

    display: block;

    overflow: hidden;

    aspect-ratio: 1 / 1;

    border-radius: 8px;

    background-color: #eeeeee;
}

.instagram-grid img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* ==========================================
   HOVERS
========================================== */

.product-card:hover {
    z-index: 3;

    outline: 1px solid var(--green-600, #00b207);

    box-shadow: 0 0 15px rgb(0 0 0 / 10%);
}

.product-card:hover .product-cart {
    background-color: var(--green-600, #00b207);
    color: white;
}


/* ==========================================
   RESPONSIVE TABLETTE
========================================== */

@media (max-width: 1024px) {

    .promo-grid {
        grid-template-columns: 1fr;
    }

    .hot-deals-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hot-deal-main {
        grid-column: span 2;
    }

    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .news-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .brands,
    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}


/* ==========================================
   RESPONSIVE MOBILE
========================================== */

@media (max-width: 650px) {

    .homepage-content {
        width: calc(100% - 24px);
    }

    .hot-deals-grid,
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .hot-deal-main {
        grid-column: auto;
        grid-row: auto;
    }

    .summer-banner-content {
        left: 25px;
        right: 25px;

        width: auto;
    }

    .summer-banner-content h2 strong {
        font-size: 42px;
    }

    .brands,
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}