.shop-card.style-1 {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.shop-card.style-1 > *:last-child {
    margin-top: auto;
}

.product-brand-tag {
    top: unset !important;
    left: unset !important;
    right: 20px;
    bottom: 10px;
    max-width: 40% !important;

    img {
        transform: unset !important;
        width: 100%;
        border-radius: unset !important;
    }
}

.ambiance-picture {
    transition: opacity 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        scale: 0.8;
    }
    to {
        opacity: 1;
        scale: 1;
    }
}

#productList .product {
    opacity: 0;
    animation: fadeIn 1s ease-out both;
    view-timeline-name: --reveal-timeline;
    animation-timeline: --reveal-timeline;
    animation-range: entry 0% cover 50%;
}

.listing-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 20px;
    padding-bottom: 16px;
    margin-bottom: 28px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.listing-toolbar-count {
    margin: 0;
    font-size: 14px;
    color: #6E6E6E;
}

.listing-toolbar-count strong {
    color: var(--title);
    font-weight: 600;
}

.listing-toolbar-sort {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.listing-toolbar-sort label {
    margin: 0;
    font-size: 14px;
    color: #6E6E6E;
    white-space: nowrap;
}

.listing-toolbar-sort select {
    appearance: none;
    -webkit-appearance: none;
    width: auto;
    min-width: 190px;
    padding: 9px 38px 9px 16px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23262626' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    font-size: 14px;
    color: var(--title);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.listing-toolbar-sort select:hover {
    border-color: rgba(0, 0, 0, 0.3);
}

.listing-toolbar-sort select:focus-visible {
    outline: none;
    border-color: var(--title);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

@media only screen and (max-width: 575px) {
    .listing-toolbar {
        margin-bottom: 20px;
    }

    .listing-toolbar-sort label {
        display: none;
    }
}

@media only screen and (min-width: 1600px) {
    #productList > .product {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* ---- Chargement ---- */

#spinner {
    display: none;
    text-align: center;
    margin: 20px 0;
}

#spinner.active {
    display: block;
}

.listing-spinner {
    display: inline-block;
    width: 28px;
    height: 28px;
    border: 2px solid rgba(0, 0, 0, 0.12);
    border-top-color: var(--title);
    border-radius: 50%;
    animation: listing-spin 0.7s linear infinite;
}

@keyframes listing-spin {
    to {
        transform: rotate(360deg);
    }
}

#loadMoreButton {
    display: none;
}
