html {
    font-family: "Grold", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-synthesis-weight: none;
    font-synthesis-style: none;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: #1f2937; /* Couleur de base pour l'overscroll */
}

body {
    display: flex;
    flex-direction: column;
    background: var(--main-background);
}

.main-container {
    flex: 1 0 auto;
}

.highlight-card{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.highlight-clickable{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* bandeau actions */
.highlight-actions{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    padding: 8px;
    background: #fff;
    border-top: 1px solid #eee;
    border-radius: 8px;
}

/* mêmes tailles, côte à côte quand il y a la place */
.highlight-actions > .qty,
.highlight-actions > .add-to-cart{
    flex: 1 1 0;
    min-width: 0;
}

.highlight-actions > .qty {
    display: flex;
    justify-content: center;
}

.qty-container {
    display: flex;
    align-items: center;
}

.qty{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    background: #f6f7fb;
    border: 1px solid #e6e8ef;
    border-radius: 999px;
    padding: 0 2px;
}

.qty-btn{
    width: 27px;
    height: 27px;
    border: 0;
    border-radius: 999px;
    text-align: center;
    padding: 0;
    line-height: 1;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,.06);
    cursor: pointer;
    font-size: 18px;
    transition: transform .12s ease;
}

.qty-btn:hover{
    transform: scale(1.05);
}

.qty-btn:active{
    transform: scale(.95);
}

.qty-input{
    width: 44px;
    border: 0;
    background: transparent;
    text-align: center;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    outline: none;
}

/* Chrome / Safari / Edge */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button{
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
.qty-input {
    -moz-appearance: textfield;
    appearance: textfield;
}

.add-to-cart{
    justify-self: flex-end;
    border: 0;
    height: 38px;
    border-radius: 999px;
    padding: 0 14px;
    background: var(--primary-yellow);
    color: #1f2328;
    font-weight: 800;
    cursor: pointer;
    transition: transform .12s ease, filter .12s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-to-cart:hover{
    filter: brightness(0.98);
    transform: scale(1.02);
}

.add-to-cart:active{
    transform: scale(.95);
}

@media (max-width: 960px){
    .highlight-actions{
        gap: 8px;
    }

    .qty-btn{
        width: 30px;
        height: 30px;
    }

    .qty-input{
        width: 38px;
    }

    /* empilement propre : chaque bloc prend 100% */
    .highlight-actions > .qty,
    .highlight-actions > .add-to-cart{
        flex-basis: 100%;
    }

    .add-to-cart{
        order: 2;
    }

    .qty{
        order: 1;
    }
}

@media (max-width: 960px){
    .highlight-card {
        flex-basis: calc(48% - 20px);
    }

    .carousel-btn{
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 560px){
    .highlight-card {
        flex-basis: calc(92% - 20px);
    }

    .carousel-btn{
        width: 38px;
        height: 38px;
        background-size: 50%;
    }
}