@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
    text-decoration: none;
    list-style: none;
    scroll-behavior: smooth;
    margin: 0;
}

:root {
    --Txt-marron: #412520;
    --Txt-blanc: #F4EBE6;
    --Lora: "Lora", serif;
    --Great_Vibes: "Great Vibes", cursive;
    --Poppins: "Poppins", sans-serif;
    --Inter: "Inter", sans-serif;
    --semi-bold: 600;
    --medium: 500;
    --bold: 700;
    --regular: 400;
}

body {
    background-color: #FCFDFD;
}

.products-section {
    width: 100%;
    padding: 60px 0 80px;
}

.products-container {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
}

/* FILTERS */
.products-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    /* flex-wrap: wrap; */
}

.filter-btn {
    border: none;
    background: transparent;
    color: #412520;
    font-family: var(--Lora);
    font-size: 1.4rem;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.25s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: #d9b08f;
    color: #fff;
    border-color: #d9b08f;
}

/* GRID */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.product-card {
    background: linear-gradient(45deg, #FFFAF8 0%, #F6EAE7 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    border: 6px solid #fff;
}

.product-card-image-wrapper {
    position: relative;
}

.product-card-image {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.product-card-personnes {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.person-badge {
    background: #f2dfd1;
    color: #8a5a42;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 999px;
    font-family: var(--Inter);
}

.product-card-body {
    padding: 16px 18px 18px;
    text-align: center;
}

.product-card-title {
    font-family: var(--Lora);
    color: var(--Txt-marron);
    font-size: 1.75rem;
    margin-bottom: 6px;
    font-weight: var(--semi-bold);
    letter-spacing: 4%;
}

.product-card-short {
    font-family: var(--Inter);
    color: #875047;
    font-size: 0.85rem;
    line-height: 1.5;
    min-height: 40px;
    max-width: 350px;
    margin-bottom: 16px;
    letter-spacing: 4%;
    font-weight: var(--medium);
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.product-card-btn {
    border: 1px solid #ECCFAE;
    background: #F4EBE6;
    color: var(--Txt-marron);
    padding: 8px 34px;
    border-radius: 7px;
    font-family: "Lora", serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.25s ease;
}

.product-card-btn:hover {
    background: var(--Txt-marron);
    color: var(--Txt-blanc);
    border-color: none;
}

/* LOAD MORE */
.products-actions {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.load-more-btn {
    border: 1px solid #ECCFAE;
    background: #F4EBE6;
    color: var(--Txt-marron);
    padding: 10px 22px;
    border-radius: 8px;
    font-family: var(--Lora);
    font-size: 1rem;
    cursor: pointer;
    transition: 0.25s ease;
    font-weight: var(--medium);
    letter-spacing: 4%;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 4%), 0px 8px 16px 0px rgba(0, 0, 0, 8%);
}

.load-more-btn:hover {
    background: var(--Txt-marron);
    color: var(--Txt-blanc);
}

/* MODAL */
.product-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
    z-index: 999;

}

.product-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.product-modal {
    width: min(530px, 100%);
    background: #f4efec;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(15px);
    transition: 0.25s ease;
    border: 6px solid #fff;
}

.product-modal-overlay.active .product-modal {
    transform: translateY(0);
}

.product-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: transparent;
    color: #7a5a50;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2;
}

.product-modal-image {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.product-modal-body {
    padding: 22px 24px 24px;
    text-align: center;
}

.product-modal-body h3 {
    font-family: "Lora", serif;
    font-size: 2rem;
    color: #412520;
    font-weight: 500;
    margin-bottom: 10px;
}

.product-modal-personnes {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.product-modal-description {
    font-family: "Poppins", sans-serif;
    color: #7a5a50;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 22px;
}

.product-modal-allergenes-block h4 {
    font-family: "Lora", serif;
    color: #7a4b36;
    font-size: 1.15rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.product-modal-allergenes {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.allergene-badge {
    background: #f0dfd3;
    color: #7a4b36;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-family: "Poppins", sans-serif;
}

.product-modal-btn {
    min-width: 110px;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: #7a4b36;
    color: #fff;
    font-family: "Lora", serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.25s ease;
}

.product-modal-btn:hover {
    background: #5d3628;
}

.modal-separator {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-bottom: 15px;
}

.modal-separator .bxs-square {
    transform: rotate(45deg);
    font-size: 8px;
    color: #D5C1B8;
}

.modal-separator .hr1 {
    max-width: 200px;
    height: 1px;
    width: 100%;
    border-radius: 50%;
    border: none;
    background: linear-gradient(90deg, #D5C1B8 0%, rgba(111, 101, 96, 0%) 100%);
    transform: rotate(180deg);
}

.modal-separator .hr2 {
    max-width: 200px;
    height: 1px;
    width: 100%;
    border-radius: 50%;
    border: none;
    background: linear-gradient(90deg, #D5C1B8 0%, rgba(111, 101, 96, 0%) 100%);
}

body.modal-open {
    overflow: hidden;
}

.filter-visual {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.filter-visual .hr1-filter {
    max-width: 200px;
    height: 2px;
    width: 100%;
    border-radius: 50%;
    border: none;
    background: linear-gradient(90deg, #D5C1B8 0%, rgba(111, 101, 96, 0%) 100%);
    transform: rotate(180deg);
}

.filter-visual .hr2-filter {
    max-width: 200px;
    height: 2px;
    width: 100%;
    border-radius: 50%;
    border: none;
    background: linear-gradient(90deg, #D5C1B8 0%, rgba(111, 101, 96, 0%) 100%);
}

.filter-separator {
    width: 2px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(90deg, #D5C1B8 0%, rgba(111, 101, 96, 0%) 100%);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .products-section {
        padding: 40px 0 60px;
    }

    .products-container {
        width: min(100%, calc(100% - 24px));
    }

    .product-card-title {
        font-size: 1.45rem;
    }

    .product-card-image {
        height: 180px;
    }
}