/* --- Moderne Winkelmand Styling - Conversiegericht --- */

/* --- LOADING ANIMATIONS --- */
.cart-collaterals.loading {
    position: relative;
    overflow: hidden;
}

.cart-collaterals.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.8) 50%, 
        rgba(255,255,255,0) 100%);
    animation: skeleton-loading 1.5s infinite;
    z-index: 1;
}

.cart-collaterals.loading > * {
    opacity: 0.3;
}

@keyframes skeleton-loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* --- ALGEMENE LAYOUT & TYPOGRAFIE --- */
.modern-cart-form {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1a1a1a;
}

.modern-cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: start;
    padding: 24px 0;
}

/* --- LINKER KOLOM: PRODUCTEN --- */
.cart-items-column h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e5e5;
}

.modern-cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto; /* Afbeelding | Details | Acties */
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid #e5e5e5;
    align-items: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.modern-cart-item:last-of-type {
    border-bottom: none;
}

.modern-cart-item .product-thumbnail img {
    width: 120px;
    height: auto;
    border-radius: 8px; /* Zachte afronding voor een moderne look */
}

.modern-cart-item .product-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modern-cart-item .product-name a {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}
.modern-cart-item .product-name a:hover {
    color: #007bff;
}

.modern-cart-item .variation {
    font-size: 14px;
    color: #666;
    margin: 0;
}
.modern-cart-item .variation dt, .modern-cart-item .variation dd {
    display: inline;
}

.modern-cart-item .product-subtotal-price {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.modern-cart-item .product-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* --- NIEUW: Aangepaste Quantity Selector --- */
.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 8px;
}
.quantity-selector .quantity-input {
    width: 40px;
    height: 40px;
    text-align: center;
    border: none;
    background: none;
    font-size: 16px;
    font-weight: 600;
    padding: 0;
    -moz-appearance: textfield; /* Verberg pijltjes in Firefox */
    appearance: textfield; /* Standard property voor compatibility */
}
.quantity-selector .quantity-input::-webkit-outer-spin-button,
.quantity-selector .quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none; /* Verberg pijltjes in Chrome, Safari, Edge */
    margin: 0;
}
.quantity-selector .quantity-button {
    width: 40px;
    height: 40px;
    border: none;
    background-color: #f5f5f5;
    cursor: pointer;
    font-size: 20px;
    color: #333;
    transition: background-color 0.2s ease;
}
.quantity-selector .quantity-button:hover {
    background-color: #e0e0e0;
}
.quantity-selector .quantity-button.minus {
    border-right: 1px solid #ccc;
    border-radius: 7px 0 0 7px;
}
.quantity-selector .quantity-button.plus {
    border-left: 1px solid #ccc;
    border-radius: 0 7px 7px 0;
}

/* --- NIEUW: Prullenbak icoon --- */
.modern-cart-item .product-remove a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #888;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    background-color: transparent;
}
.modern-cart-item .product-remove a:hover {
    color: #d9534f; 
    background-color: #d9534f;
    transform: scale(1.05);
}
.modern-cart-item .product-remove a svg {
    display: block;
    width: 20px;
    height: 20px;
}

/* --- RECHTER KOLOM: OVERZICHT --- */
.cart-summary-column .cart-collaterals {
    position: sticky;
    top: 24px;
    background-color: #f9f9f9;
    padding: 24px;
    border: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
}

.cart-summary-column .cart_totals h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 24px 0;
    color: #1a1a1a;
}

.cart-summary-column .shop_table {
    width: 100%;
    border: none;
    border-collapse: collapse;
}
.cart-summary-column .shop_table th,
.cart-summary-column .shop_table td {
    padding: 16px 0;
    border-top: 1px solid #e5e5e5;
    text-align: left;
    font-size: 16px;
}
.cart-summary-column .shop_table tr:first-child th,
.cart-summary-column .shop_table tr:first-child td {
    border-top: none;
}
.cart-summary-column .shop_table td {
    text-align: right;
    font-weight: 600;
}
.cart-summary-column .shop_table .order-total th,
.cart-summary-column .shop_table .order-total td {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

/* Knoppen en acties */
.wc-proceed-to-checkout a.checkout-button {
    background-color: #007bff !important; /* Helder, actiegericht blauw */
    color: white !important;
    width: 100%;
    padding: 18px !important;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    border-radius: 8px;
    display: block;
    text-transform: none;
    margin-top: 16px;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}
.wc-proceed-to-checkout a.checkout-button:hover {
    background-color: #0056b3 !important; /* Donkerder bij hover */
    transform: translateY(-2px);
}

/* Subtiele 'Update' knop */
.cart-summary-column button[name="update_cart"] {
    display: block;
    width: 100%;
    text-align: center;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    color: #007bff !important;
    font-weight: 600;
    padding: 8px 0 !important;
    margin-top: 16px;
    text-decoration: underline;
    cursor: pointer;
}

/* Kortingscode sectie */
.woocommerce-cart-form .coupon {
    display: flex;
    gap: 8px;
    margin-top: 24px;
}
.woocommerce-cart-form .coupon .input-text {
    flex-grow: 1;
    border: 1px solid #ccc;
    padding: 12px;
    border-radius: 8px;
}
.woocommerce-cart-form .coupon .button {
    background-color: #6c757d !important;
    color: white !important;
    border: none;
    padding: 0 24px;
    font-weight: 700;
    border-radius: 8px;
}

/* --- NIEUW: Trust Badges --- */
.trust-signals {
    margin-top: 0;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
}
.trust-signals .payment-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    filter: grayscale(1);
    opacity: 0.7;
}
.trust-signals .payment-icons img {
    height: 24px;
    width: auto;
}
.trust-signals .secure-checkout-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    margin-top: 16px;
    text-align: center;
}
.trust-signals .secure-checkout-text svg {
    color: #28a745; /* Groen slot-icoon */
}
body.woocommerce-cart .woocommerce .cart_totals {
    width: 100%;
}

/* --- EMPTY CART STYLING --- */
.cart-empty {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 48px 20px !important;
    background: #fff !important;
    border-radius: 12px !important;
    border: 1px solid #f0f0f0 !important;
    margin: 20px 0 !important;
    min-height: auto !important;
    box-sizing: border-box !important;
}

.cart-empty-icon {
    width: 64px !important;
    height: 64px !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f0f0 100%) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 20px !important;
    position: relative !important;
    animation: cartEmptyFloat 3s ease-in-out infinite !important;
}

.cart-empty-icon i {
    font-size: 28px !important;
    color: #9ca3af !important;
    transition: color 0.3s ease !important;
}

.cart-empty:hover .cart-empty-icon i {
    color: #1fa042 !important;
}

@keyframes cartEmptyFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.cart-empty-title {
    font-family: 'Inter', sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #030404 !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.3 !important;
}

.cart-empty-message {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    color: #686868 !important;
    line-height: 1.5 !important;
    margin: 0 0 20px 0 !important;
    max-width: 400px !important;
}

.cart-empty-suggestions {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    color: #9ca3af !important;
}

.cart-empty-suggestion {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-align: left !important;
}

.cart-empty-suggestion i {
    font-size: 10px !important;
    color: #1fa042 !important;
}

/* Remove old button styles since we're using suggestions instead */
.cart-empty-button {
    display: none !important;
}

/* Responsive adjustments for empty cart */
@media (max-width: 768px) {
    .cart-empty {
        padding: 32px 16px !important;
        margin: 16px 0 !important;
    }
    
    .cart-empty-icon {
        width: 56px !important;
        height: 56px !important;
        margin-bottom: 16px !important;
    }
    
    .cart-empty-icon i {
        font-size: 24px !important;
    }
    
    .cart-empty-title {
        font-size: 16px !important;
    }
    
    .cart-empty-message {
        font-size: 13px !important;
    }
    
    .cart-empty-suggestions {
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    .cart-empty {
        padding: 24px 12px !important;
    }
    
    .cart-empty-title {
        font-size: 15px !important;
    }
    
    .cart-empty-message {
        font-size: 12px !important;
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .modern-cart-layout {
        grid-template-columns: 1fr; /* Stapel de kolommen */
    }
    .cart-summary-column .cart-collaterals {
        position: static;
    }
}

@media (max-width: 576px) {
    .modern-cart-item {
        grid-template-columns: 80px 1fr; /* Afbeelding en rest */
        grid-template-rows: auto auto;
        row-gap: 16px;
        align-items: start;
    }
    .modern-cart-item .product-thumbnail {
        grid-row: 1 / 3;
        align-self: center;
    }
    .modern-cart-item .product-details {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }
    .modern-cart-item .product-actions {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
        justify-content: space-between;
    }
    .cart-items-column h1 {
        font-size: 24px;
    }
}

.return-to-shop a{
    display: none !important;
}