/* ========== Swipe Container ========== */
.products-container {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;

    height: calc(100vh - 70px - env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px); /* Voor notch of navigatiebalk */

    display: flex;
    justify-content: center;
    align-items: center;

    background-color: black;
    box-sizing: border-box;
    overflow: hidden;
}

/* ========== Individueel Product (fullscreen swipe) ========== */
.product {
    position: absolute;
    top: 9px;
    left: 50%;
    width: 100%;
    height: calc(100% - 70px);

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;

    padding: 20px 0;
    box-sizing: border-box;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    z-index: 5;

    opacity: 0;
    pointer-events: none;

    /* standaard start onder beeld */
    transform: translateX(-50%) translateY(100%);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

/* Actief zichtbaar product */
.product.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    z-index: 10;
    pointer-events: auto;
}

/* Product dat wegswipet naar boven */
.product.exit {
    transform: translateX(-50%) translateY(-100%);
    opacity: 0;
    z-index: 5;
}

/* ========== Eindscherm ========== */
.end-screen {
    position: absolute;
    top: 9px;
    left: 50%;
    width: 100%;
    height: calc(100% - 70px);

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    padding: 20px;
    background-color: #27282b;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);

    color: white;
    font-size: 18px;

    opacity: 0;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.5s ease;
}

.end-screen.show {
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
}
