/* =========================================================
   MODAL (Add-to-cart popup)
========================================================= */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal.hidden {
    display: none !important;
}

.modal-content {
    background: white;
    width: 380px;
    max-width: 90%;
    padding: 20px;
    border-radius: 12px;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 34px;
    height: 34px;
    background: #ce5700;
    color: white;
    font-size: 18px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

.qty-btn:hover {
    background: #000;
}


/* =========================================================
   MINI-CART OVERLAY
========================================================= */
.mini-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 9998;
}

.mini-overlay.hidden {
    display: none !important;
}


/* =========================================================
   MINI-CART PANEEL
========================================================= */
.mini-cart {
    position: fixed;
    top: 0;
    right: 0;
    width: 360px;
    max-width: 90vw;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 12px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform .25s ease;
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.mini-cart.show {
    transform: translateX(0);
}

.mini-cart.hidden {
    display: none !important;
}


/* ================= HEADER ===================== */
.mini-cart-header {
    background: #444;
    color: white;
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mini-cart-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}


/* ================= ITEMS SECTION ===================== */
.mini-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.mini-cart-item {
    border-bottom: 1px solid #eee;
    padding: 12px 0;
}

.mini-cart-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mini-cart-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.mini-cart-qty-input {
    width: 35px;
    text-align: center;
    padding: 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.mini-cart-btn {
    width: 28px;
    height: 28px;
    background: #ce5700;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.mini-cart-btn:hover {
    background: #000;
}

/* ================= FOOTER ===================== */
.mini-cart-footer {
    border-top: 1px solid #ddd;
    background: #fff;
    padding: 0;
}

/* iPhone safe-area support */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .mini-cart-footer {
        padding-bottom: calc(env(safe-area-inset-bottom) + 20px) !important;
        position: sticky;
        bottom: 0;
        z-index: 20;
    }
}

.mini-cart-footer a {
    display: block;
    background: #ce5700;
    color: white;
    text-align: center;
    padding: 18px;
    font-weight: 600;
    font-size: 18px;
}

.mini-cart-footer a:hover {
    background: #000;
}

#miniCartContinueWrapper {
    margin-top: 10px;
}

#miniCartContinue {
    width: 100%;
    background: #ce5700;
    color: white;
    padding: 10px;
    border-radius: 4px;
    font-weight: 600;
}

#miniCartContinue:hover {
    background: #000;
}


/* =========================================================
   FLATPICKR DATE PICKER — YOUR ORANGE STYLE
========================================================= */

.flatpickr-calendar {
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    font-family: inherit !important;
}

/* selected day (desktop & mobile) */
.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.selected:focus,
.flatpickr-day.selected:active,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.today.selected {
    background: #ce5700 !important;
    border-color: #ce5700 !important;
    color: #fff !important;
}

.flatpickr-day:hover {
    background: #f3f3f3 !important;
}

.flatpickr-day.disabled {
    color: #ccc !important;
    background: #fafafa !important;
    cursor: not-allowed !important;
}


/* =========================================================
   GLOBAL
========================================================= */
.hidden {
    display: none !important;
}

/* Minicart zichtbaar forceren */
.mini-cart.show {
    display: flex !important;
    transform: translateX(0) !important;
}

.mini-cart {
    transform: translateX(100%);
}

/* ===============================
   MINI CART – VERWIJDERKNOP
================================ */

.mini-cart-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

/* verwijderknop */
.mini-cart-delete {
    background: none;
    border: none;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
    color: #999;
    transition: color 0.15s ease, transform 0.15s ease;
}

/* hover effect */
.mini-cart-delete:hover {
    color: #ce5700;           /* jouw oranje */
    transform: scale(1.1);
}

/* mobiel: iets grotere tappable area */
@media (max-width: 768px) {
    .mini-cart-delete {
        font-size: 20px;
        padding: 6px;
    }
}