.bestel-sectie {
    max-width: 1180px;
    margin: -76px auto 0;
    padding: 0 6vw 56px;
    position: relative;
    z-index: 3;
}

.bestel-gesloten {
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--lijn);
    border-radius: 22px;
    box-shadow: var(--schaduw-zacht);
    padding: 40px 36px;
    text-align: center;
}
.bestel-gesloten h2 {
    font-size: clamp(26px, 3.4vw, 34px);
    font-style: italic;
    margin: 0 0 10px;
}
.bestel-gesloten p {
    color: var(--inkt-zacht);
    margin: 0 0 22px;
}

.bestel-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.bestel-hoofd {
    background: #fff;
    border: 1px solid var(--lijn);
    border-radius: 22px;
    box-shadow: var(--schaduw-zacht);
    padding: 34px 36px 36px;
    min-width: 0;
}

.bestel-stap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 34px 0 16px;
}
.bestel-stap:first-child {
    margin-top: 0;
}
.bestel-stap h2 {
    font-size: clamp(24px, 3vw, 30px);
    font-style: italic;
    margin: 0;
}
.bestel-stap-nr {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--framboos);
    color: #fff;
    font: 600 14px "IBM Plex Mono", monospace;
}

.bestel-info {
    background: var(--creme);
    border: 1px solid var(--lijn);
    border-radius: 14px;
    padding: 14px 18px;
    margin: 0 0 20px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--inkt);
}

.bestel-categorie {
    font-size: 22px;
    font-style: italic;
    margin: 26px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--lijn);
}

.product-raster {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
}

.product-kaart {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--lijn);
    border-radius: 18px;
    overflow: hidden;
    background: var(--achtergrond-pagina);
    transition: box-shadow 0.2s, opacity 0.2s;
}
.product-kaart:hover {
    box-shadow: var(--schaduw-zacht);
}
.product-kaart.niet-beschikbaar {
    opacity: 0.6;
}
.product-kaart.niet-beschikbaar .product-foto img {
    filter: grayscale(0.7);
}

.product-foto {
    aspect-ratio: 4 / 3;
    background: var(--creme);
    overflow: hidden;
}
.product-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-kaart:hover .product-foto img {
    transform: scale(1.04);
}
.product-foto-leeg {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--primair-licht);
}

.product-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px 16px;
    flex: 1;
}
.product-kop {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}
.product-kop h4 {
    font-family: "Instrument Serif", serif;
    font-style: italic;
    font-weight: 400;
    font-size: 21px;
    line-height: 1.2;
    margin: 0;
}
.product-prijs {
    flex-shrink: 0;
    font-family: "IBM Plex Mono", monospace;
    font-weight: 600;
    color: var(--framboos-donker);
    font-size: 14px;
}
.product-omschrijving {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--inkt-zacht);
}
.product-wanneer,
.product-voorraad {
    margin: 0;
    font-size: 12px;
    font-family: "IBM Plex Mono", monospace;
    color: var(--primair-donker);
}
.product-voorraad.uitverkocht {
    color: var(--framboos-donker);
}

.product-optie {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.product-optie span {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--inkt-zacht);
}
.product-optie select {
    width: 100%;
    border: 1px solid var(--lijn);
    border-radius: 10px;
    padding: 9px 34px 9px 12px;
    font: 14px "Inter", sans-serif;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237d7a76' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
    appearance: none;
    -webkit-appearance: none;
    color: var(--inkt);
    cursor: pointer;
}

.product-acties {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 6px;
}
.product-toevoegen {
    flex: 1;
    justify-content: center;
    padding: 11px 16px;
    font-size: 14px;
}
.product-toevoegen:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.product-melding {
    margin: 0;
    min-height: 1.2em;
    font-size: 12.5px;
    color: var(--framboos-donker);
}
.product-melding.positief {
    color: var(--primair-donker);
}

.aantal-kiezer {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--lijn);
    border-radius: 999px;
    background: #fff;
    overflow: hidden;
}
.aantal-kiezer button {
    width: 34px;
    height: 38px;
    border: 0;
    background: transparent;
    color: var(--inkt);
    font-size: 18px;
    line-height: 1;
}
.aantal-kiezer button:hover {
    background: var(--creme);
}
.aantal-kiezer input {
    width: 38px;
    border: 0;
    text-align: center;
    font: 600 14px "Inter", sans-serif;
    color: var(--inkt);
    background: transparent;
    appearance: textfield;
    -moz-appearance: textfield;
}
.aantal-kiezer input::-webkit-outer-spin-button,
.aantal-kiezer input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.aantal-kiezer--klein button {
    width: 28px;
    height: 30px;
    font-size: 16px;
}
.aantal-kiezer--klein span {
    min-width: 22px;
    text-align: center;
    font-weight: 600;
    font-size: 13.5px;
}

.bestel-velden {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
}
.bestel-velden .betaalblok {
    margin-top: 4px;
}

.bestel-mandje {
    position: sticky;
    top: calc(var(--nav-hoogte, 93px) + 16px);
    background: #fff;
    border: 1px solid var(--lijn);
    border-radius: 22px;
    box-shadow: var(--schaduw-zacht);
    padding: 26px 24px 20px;
    max-height: calc(100vh - var(--nav-hoogte, 93px) - 32px);
    overflow-y: auto;
}
.bestel-mandje h3 {
    font-size: 26px;
    font-style: italic;
    margin: 0 0 14px;
}
.mandje-leeg {
    color: var(--inkt-zacht);
    font-size: 14px;
    margin: 0 0 14px;
}
.mandje-lijst {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mandje-regel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid var(--lijn);
}
.mandje-regel-tekst strong {
    display: block;
    font-size: 14.5px;
}
.mandje-regel-tekst span {
    display: block;
    font-size: 12.5px;
    color: var(--inkt-zacht);
}
.mandje-regel-acties {
    display: flex;
    align-items: center;
    gap: 10px;
}
.mandje-regel-prijs {
    margin-left: auto;
    font-family: "IBM Plex Mono", monospace;
    font-size: 13.5px;
    font-weight: 600;
}
.mandje-verwijder {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--inkt-zacht);
    font-size: 20px;
    line-height: 1;
}
.mandje-verwijder:hover {
    background: rgba(173, 106, 104, 0.12);
    color: var(--framboos-donker);
}
.mandje-totaal {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 16px 0 10px;
    font-size: 15px;
    font-weight: 600;
}
.mandje-totaal strong {
    font-family: "IBM Plex Mono", monospace;
    font-size: 20px;
    color: var(--framboos-donker);
}
.mandje-afhaal {
    margin: 0 0 14px;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--creme);
    font-size: 13.5px;
    line-height: 1.5;
}
.mandje-afhaal::first-letter {
    text-transform: uppercase;
}
.bestel-mandje .error-message {
    margin-bottom: 12px;
}
.mandje-knop {
    width: 100%;
    justify-content: center;
    padding: 15px 22px;
    font-size: 15px;
}
.mandje-knop:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}
.mandje-noot {
    margin: 10px 0 12px;
    font-size: 12px;
    text-align: center;
    color: var(--inkt-zacht);
}

.mandje-balk {
    display: none;
}

@media (max-width: 960px) {
    .bestel-layout {
        grid-template-columns: 1fr;
    }
    .bestel-mandje {
        position: static;
        max-height: none;
    }
    .mandje-balk:not([hidden]) {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        z-index: 40;
        padding: 14px 20px;
        border-radius: 999px;
        background: var(--framboos);
        color: #fff;
        text-decoration: none;
        font-size: 14px;
        font-weight: 600;
        box-shadow: 0 10px 24px rgba(38, 42, 46, 0.25);
        transition: opacity 0.2s, transform 0.2s;
    }
    body.mandje-zichtbaar .mandje-balk {
        opacity: 0;
        transform: translateY(20px);
        pointer-events: none;
    }
    .mandje-balk strong {
        font-family: "IBM Plex Mono", monospace;
    }
}

@media (max-width: 640px) {
    .bestel-sectie {
        padding: 0 4vw 90px;
    }
    .bestel-hoofd {
        padding: 26px 18px 28px;
        border-radius: 18px;
    }
    .bestel-velden {
        grid-template-columns: 1fr;
    }
    .product-raster {
        grid-template-columns: 1fr;
    }
    .bestel-mandje {
        padding: 22px 18px 18px;
        border-radius: 18px;
    }
}

@media (max-width: 640px) {
    .product-foto:has(.product-foto-leeg) {
        aspect-ratio: 4 / 1;
    }
}
