.modal-price {
    margin-top: 1rem;
}
.modal-options {
    margin-top: 18px;
    padding-top: 12px;
    padding-bottom: 12px;
    border-top: 1px solid #ddd; /* lichtgrijze lijn */
    border-bottom: 1px solid #ddd; /* lichtgrijze lijn */
}

.modal-options h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
}

.option-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 14px;
}

.option-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}


.add-btn i {
    margin-left: 10px;
}

#modalAmount {
    width: 90px;                 /* compacter */
    padding: 8px 10px;
    margin-left: 20px;            /* marge links */
    font-size: 16px;
    border: 2px solid #ccc;    
    border-radius: 6px;
    box-sizing: border-box;
    background-color: #fff;
    color: #333;
    font-weight: 500;
}


#modalAmount:focus {
    outline: none;
    box-shadow: 0 0 4px rgba(204,204,204,0.4);
}

#modalAddBtn {
    background-color: #ffbe33;      /* jouw oranje */
    color: #333;                    /* goed contrast */
    border: none;
    padding: 10px 18px;             /* compact */
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;             /* afgeronde hoeken */
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.2s, box-shadow 0.2s;
    color: #fff;
}

/* Hover → iets donkerder oranje */
#modalAddBtn:hover {
    background-color: #e6a82e;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

/* Actief → subtiele indruk */
#modalAddBtn:active {
    background-color: #cc9429;
    box-shadow: none;
}

#modalAddBtn:disabled { 
    background-color: #e0e0e0; /* lichtgrijs */ 
    color: #888; /* donkergrijs */ 
    cursor: not-allowed; 
    box-shadow: none; 
}


/* Achtergrond overlay */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    z-index: 9999;
}

/* Modal box */
.modal-content {
    position: absolute;
    top: 60px; /* afstand van boven */
    left: 50%;
    transform: translateX(-50%);
    width: 90%; /* responsive */
    max-width: 600px; /* max breedte */
    background: #fff;
    border-radius: 12px; /* afgeronde hoeken */
    padding: 25px 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25); /* zachte schaduw */
    animation: fadeDown 0.25s ease-out;
}

/* Animatie */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translate(-50%, -10px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Mooie sluitknop */
.modal .close {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #d01516 !important;
    color: #fff;
    border: none;
    opacity: 1 !important;
    font-size: 18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}


.modal .close:hover {
    background-color: #e7898a !important;

}

.open-modal {
    border: none;
    background: none;
}



.cart-item-container {
    display: flex;
    justify-content: space-between;
    padding-bottom: 5px;
    border-bottom: 1px solid #CCC;
    transition: opacity 0.25s ease, transform 0.25s ease;
    opacity: 1;
    transform: translateX(0);
}

.cart-item-container.new {
    opacity: 0;
    transform: translateX(20px);
}


.cart-item-container.removing { 
    opacity: 0; 
    transform: translateX(-10px); 
}

.cart-item {
    opacity: 1;
    transform: translateX(0);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Startpositie voor nieuwe items */
.cart-item.new {
    opacity: 0;
    transform: translateX(20px);
}


.cart-box {
    margin-bottom: 25px;
}

.cart-box p {
  font-family: "Roboto Mono", monospace;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 0.95rem;
  margin-bottom: 1px;
}



.cart-options { 
    display: block; 
    margin: 4px 0 6px 0;
    padding-left: 22px;
    font-size: 0.85em; 
}

.cart-options li {
    margin-bottom: 2px;
}

.cart-box-footer {
    padding: 15px;
    margin-top: 10px;
    text-align: center;
}

.checkout-btn {
    //width: 100%;
    padding: 12px 16px;
    background-color: #d01516;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s ease, transform .15s ease;
}

.checkout-btn:hover {
    background-color: #e24445;
}

.checkout-btn:active {
    transform: scale(0.97);
}


.shop_section {
    margin-top: 45px;
    min-height: 100dvh;
}

.shop {
    display: flex;
    flex-direction: column;
}    
.Assortimenten {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 25px;
    padding-bottom: 35px;
    align-items: center;
    justify-content: center;
    margin-top: 25px;
}

.assortiment_btn {
    padding: 5px 20px;
    border-radius: 50px;
    background-color: #ffbe33;
    border: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.assortiment_btn:hover {
    background-color: #e6a82e;
}

.products_and_card_wrapper {
    display: flex;
    flex-direction: ;
}

.products_box {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.title-wrap h2 {
    font-weight: 600;
}

.price {
    display: flex;
    justify-content: space-between;
}

.cart-box {
    display: flex;
    flex-direction: column;
    min-width: 300px;
}

.cart-box h2 {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
}

.product_card {
    flex: 1 1 200px;   
    max-width: 210px;  
    opacity: 0;
    scale: 0.8;
    animation: fadeInCard 0.4s ease forwards;
}

@media (max-width: 450px) {
    .product_card {
        max-width: 150px;  
        opacity: 0;
        scale: 0.8;
        animation: fadeInCard 0.4s ease forwards;
    }
    
    .famous-product {
        min-height: 350px;
    }
    
    .famous-product h3  {
        font-size: 0.9rem;
    }
    
    .famous-product h4  {
        font-size: 1rem;
    }
    
    .price {
        flex-direction: column; 
        margin-top: auto;
    }
    
    .pricetag, .voeg_toe_knop {
        margin-left: auto;
        margin-right: auto;
    }
    
    .pricetag h4 {
        text-align: center;       
    }
}

/* Stagger effect */ 
.product_card:nth-child(1) { animation-delay: 0.05s; } 
.product_card:nth-child(2) { animation-delay: 0.10s; } 
.product_card:nth-child(3) { animation-delay: 0.15s; } 
.product_card:nth-child(4) { animation-delay: 0.20s; } 
.product_card:nth-child(5) { animation-delay: 0.25s; } 
.product_card:nth-child(6) { animation-delay: 0.30s; } 
.product_card:nth-child(7) { animation-delay: 0.35s; } 
.product_card:nth-child(8) { animation-delay: 0.40s; } 
.product_card:nth-child(9) { animation-delay: 0.45s; } 
.product_card:nth-child(10) { animation-delay: 0.50s; }

@keyframes fadeInCard { 
    to { 
        opacity: 1; 
        scale: 1;
    } 
}

.products_and_card_wrapper {
    display: flex;
    gap: 20px;
}

.products_box {
    flex: 3;   /* 👉 neemt 75% van de ruimte */
}

.cart-box {
    flex: 1;   /* 👉 neemt 25% van de ruimte */
}

.famous-product {
    margin-bottom: 0;
}


@media (max-width: 992px) {
    .cart-box {
        display: none;
    }
}



/* Verberg originele cart-box onder 992px */
@media (max-width: 992px) {
    .cart-box {
        display: none;
    }
}


.assortiment_btn.active {
    background: #d01516; /* of oranje */
    color: white;
}

@media (max-width: 430px) {
 
.Assortimenten {
    gap: 7px;
    padding: 18px;
    padding-bottom: 25px;
}

.assortiment_btn {
    padding: 5px 18px;
    font-size: 0.9rem;
}

}

/*-------------------------------------------------*/

/* standaard: mobile elementen verbergen */
.mobile-cart-bar,
.mobile-cart-modal {
    display: none;
}

/* alleen tonen onder 992px */

@media (max-width: 992px) {

    /* onderbalk */
    .mobile-cart-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #fff;
        border-top: 1px solid #ddd;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
        z-index: 9000;
        box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.08);
    }


    /* modal overlay */
    .mobile-cart-modal {
        display: block; /* zichtbaar maar onzichtbaar */
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        visibility: hidden;
        opacity: 0;
        transition: opacity .3s ease, visibility 0s linear .3s;
        z-index: 9500;
    }

    .mobile-cart-modal.open {
        visibility: visible;
        opacity: 1;
        transition-delay: 0s;
    }

    /* modal content */
    .mobile-cart-modal-content {
        position: absolute;
        bottom: 0;
        width: 92%;
        margin: 0 auto; /* centreren */
        right: 0;
        left: 0;        /* nodig om auto-margins te laten werken */
        
        max-height: 80vh;
        background: #fff;
        border-radius: 16px;
        padding: 20px;
    
        transform: translateY(100%);
        transition: transform .35s ease;
    }
    
     .mobile-cart-modal-content h2 {
         margin-bottom: 1rem;
     }  


    .mobile-cart-modal.open .mobile-cart-modal-content {
        transform: translateY(0);
    }

    .mobile-cart-close {
        position: absolute;
        top: 12px;
        right: 12px;
        background-color: #d01516 !important;
        color: #fff;
        border: none;
        opacity: 1 !important;
        font-size: 18px;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s;
    }
    


}

.mobile-cart-items {
    max-height: calc(80vh - 140px); /* ruimte voor titel + close + footer */
    overflow-y: auto;
    padding-right: 6px; /* kleine buffer zodat scrollbar niet over tekst valt */
    margin-bottom: 40px;
}

.mobile-cart-items .trash {
    margin-right: 10px;   
}

.mobile-cart-items p {
    margin-bottom: 0.5rem;
}

.mobile-cart-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  padding: 16px 20px 24px; /* ruimte onderaan */
  z-index: 9999;
  justify-content:center;
}

.mobile-cart-footer {
  display: flex;
  justify-content: center;
  padding: 12px 30px;
}



.mobile-cart-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid white;
    border-radius: 6px;
    background: black;
    padding: 10px;
    cursor: pointer;
}

.mobile-cart-toggle i{
    color: white;
}

.cart-count-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background: #e60023;
    color: #fff;
    font-size: 10px;
    font-weight: bold;

    width: 22px;
    height: 22px;

    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

