body {
    font-family: 'Prompt', sans-serif;
    background-color: #0b0d16;
    margin: 0;
    padding: 0;
    color: #FFF;
}

.material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24
}

#product-list {
    padding-top: 5rem;
    max-width: 1320px;
    margin: -5rem auto 0 auto;
}

.filter {
    display: flex;
    justify-content: center;
    flex-direction: column;
    font-size: 1.2rem;
}

/* Boutons de catégories */
#categoryButtons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-content: center;
    margin: 0 0rem;
}

.category-button {
    border-radius: 1rem;
    font-weight: 400;
    padding: 2px 1rem;
    font-size: 1.3rem;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    color: #FFF;
    margin: 5px 0.3rem;
    transition: all 0.3s;
    background-color: #aa9cd9;
}

.category-button:hover {
    box-shadow: #aa9cd9 0px 0px 20px 0px;
}

.active-category-button {
    background-color: #4c378f;
    box-shadow: #4c378f 0px 0px 10px 0px;
}

.active-category-button:hover {
    background-color: #483685;
    box-shadow: #483685 0px 0px 20px 0px;
}

/* Barre de recherche */
input[type="text"],
input[type="search"],
textarea {
    border: none;
    outline: none;
    background: none;
}

#search-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.5rem 2rem 0rem 2rem;
    position: relative;
    border-radius: 20px;
    border: solid 3px #aa9cd9;
}

#search-input {
    border-radius: 0 15px 15px 0;
    font-size: 1.2rem;
    padding-left: 13px;
    background-color: transparent;
    color: #FFF;
    line-height: normal;
    width: 100%;
}

#search-bar .material-symbols-outlined {
    font-size: 1.7rem !important;
    margin: -1px;
    background-color: #aa9cd9;
    padding: 3px 20px;
    border-radius: 1rem;
    color: white;
    cursor: pointer;
}

/* Liste des produits */
#productList {
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    justify-content: center;
    font-size: 1.2rem;
}

.product-item-wrap {
    background: #0f121f;
    height: 100%;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    text-align: center;
    border-radius: 10px;
    border: 3px solid #aa9cd9;
    width: 20%;
    margin: 10px 15px 20px 15px;
    padding-bottom: 10px;
    min-width: 18rem;
    max-width: 20rem;
}

.product-item {
    position: relative;
}

.product-image-container {
    position: relative;
    margin-bottom: 20px;
}

.product-item img {
    width: 100%;
    border-radius: 10px;
    transition: all 0.4s;
    cursor: pointer;
}

.product-item-wrap a {
    color: #FFF;
    text-decoration: none;
}

.product-item img:hover {
    filter: brightness(150%);
    box-shadow: 0 0px 20px rgba(183, 170, 228, 0.5);
}

.product-badge {
    font-size: 1.2rem;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #aa9cd9;
    color: white;
    padding: 2px 15px;
    border-radius: 20px;
    margin: -10.5px auto;
    pointer-events: none;
    text-wrap: nowrap; 
    max-width: 100%;
}

.item-title {
    font-weight: bold;
    word-break: break-all;
    font-size: 1.3rem;
    margin: 1rem 0.5rem 0.5rem 0.5rem;
}

.product-item p {
    margin: 0.2rem;
    color: #d6d1d1;
}

.item-button {
    background-color: #aa9cd9;
    border: none;
    padding: 10px 18px;
    border-radius: 100px;
    margin: 1rem 0.5rem;
    cursor: pointer;
    color: #FFF;
    font-size: 1.2rem;
    transition: all 0.3s;
    font-weight: 600;
    font-family: 'Prompt';
}

.item-button:hover {
    box-shadow: #aa9cd9 0px 0px 20px 0px;
}

.item-button:disabled {
    cursor: not-allowed!important;
    background-color: #382d5f;
    color: #d7d7d7;
}

.item-button:disabled:hover {
    cursor: not-allowed!important;
    box-shadow: none;
}

/* Menu des plans */
.plan-menu {
    display: none;
    opacity: 0;
    transition: all 0.25s ease-in-out;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 300;
    align-items: center;
    justify-content: center;
}

.menu-content {
    background-color: #0B0D16;
    border: solid 3px #aa9cd9;
    border-radius: 15px;
    margin: 0 auto;
    padding: 20px;
    min-width: 40%;
    display: block;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: #aa9cd9 0px 0px 20px 0px;
    max-height: 80vh;
    position: relative;
}

.menu-content::-webkit-scrollbar-track {
    background: transparent;
}

.menu-content::-webkit-scrollbar-thumb {
    border-radius: 10px;
}

.menu-content h1 {
    text-align: center;
    margin-top: 0;
}

.plan-item {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    width: auto;
    border: solid 3px #aa9cd9;
    border-radius: 15px;
    background-color: #0f121f;
    margin: 1rem 0;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 1.3rem;
}

.plan-item p {
    margin-top: 0.8rem;
    margin-bottom: 0.8rem;
}

.plan-name {
    padding: 0 1rem;
}

.plan-price {
    background-color: #aa9cd9;
    text-align: center;
    border-radius: 0 10px 10px 0;
    padding: 0 0.7rem;
    transition: background-color 0.5s;
    white-space: nowrap;
    min-width: 33%;
    width: 10rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-item:hover {
    background-color: #998cc3;
    border: solid 3px #bbafe0;
    box-shadow: #aa9cd9 0px 0px 10px 0px;
}

.plan-item:hover .plan-price {
    background-color: #998cc3;
}

.close {
    float: right;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    color: #aa9cd9;
    background-color: transparent;
    border: none;
    transition: all 0.3s;
    padding: 1rem;
    position: absolute;
    top: 0;
    right: 0;
}

.close:hover {
    transform: rotate(5deg);
    color: #887CAD;
    cursor: pointer;
}

@media screen and (max-width: 1000px) {
    #search-bar .material-symbols-outlined {
        padding: 5px 1rem;
    }

    #categoryButtons {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 0.2rem;
    }

    .category-button {
        text-transform: none;
    }

    #categoryButtons::-webkit-scrollbar {
        height: 8px;
    }

    #categoryButtons::-webkit-scrollbar-thumb {
        background: #aa9cd9;
        border-radius: 20px;
        padding: 0 1rem;
    }

    #categoryButtons::-webkit-scrollbar-thumb:hover {
        background: #aa9cd9;
    }

    #categoryButtons::-webkit-scrollbar-track {
        margin: 0 1rem;
        background: #0b0d16;
        border-radius: 0px;
        box-shadow: inset 0px 0px 0px 0px #0b0d16;
    }

    .max-scroll-right::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 3rem;
        height: 3rem;
        background: linear-gradient(to right, rgba(11, 13, 22, 0), rgba(11, 13, 22, 0.7));
    }
    
    .max-scroll-left::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 3rem;
        height: 3rem;
        background: linear-gradient(to left, rgba(11, 13, 22, 0), rgba(11, 13, 22, 0.7));
    }
}

@media screen and (max-width: 767px) {
    .menu-content {
        min-width: 80%;
    }

    .plan-item {
        flex-direction: column;
        font-size: 1.1rem;
    }

    .plan-name {
        text-align: center;
    }

    .plan-item:hover .plan-price {
        border-top: #bbafe0 2px solid;
    }

    .plan-price {
        width: auto;
        border-radius: 0 0 10px 10px;
    }
}