/* cart.css — Winkelwagen pagina */

.cart-main {
    padding: 2rem 24px;
    background-color: var(--bg-subtle);
    min-height: 60vh;
}

@media (min-width: 1024px) {
    .cart-main { padding: 3rem 24px; }
}

.cart-container {
    max-width: var(--container);
    margin-inline: auto;
}

/* ---- Header ---- */
.cart-header {
    margin-bottom: 2rem;
}

.cart-header__title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

@media (min-width: 768px) {
    .cart-header__title { font-size: 2rem; }
}

.cart-header__subtitle {
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ---- Layout ---- */
.cart-layout {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .cart-layout { grid-template-columns: 2fr 1fr; }
}

/* ---- Lege wagen ---- */
.cart-empty__card {
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    text-align: center;
    padding: 4rem 2rem;
}

.cart-empty__icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: var(--bg-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--text-muted);
}

.cart-empty__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cart-empty__text {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 24rem;
    margin: 0 auto 1.5rem;
}

/* ---- Cart Items ---- */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
}

.cart-item > div {
    display: flex;
    gap: 1rem;
    padding: 1rem;
}

@media (min-width: 768px) {
    .cart-item > div { padding: 1.5rem; }
}

.cart-item__image {
    width: 6rem;
    height: 6rem;
    border-radius: var(--r-md);
    overflow: hidden;
    background-color: var(--bg-subtle);
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .cart-item__image { width: 8rem; height: 8rem; }
}

.cart-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cart-item__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.cart-item__name {
    font-size: 1rem;
    font-weight: 600;
}

.cart-item__remove {
    padding: 0.5rem;
    color: var(--text-muted);
    border-radius: 0;
    transition: color 0.15s, background-color 0.15s;
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
}

.cart-item__remove:hover {
    color: var(--accent);
    background-color: var(--bg-subtle);
}

.cart-item__footer {
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.cart-item__price-total {
    font-size: 1.125rem;
    font-weight: 700;
}

/* ---- Quantity Selector ---- */
.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 0;
}

.quantity-selector__btn {
    padding: 0.75rem;
    color: var(--text);
    transition: background-color 0.15s;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-selector__btn:hover {
    background-color: var(--bg-subtle);
}

.quantity-selector__value {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}

.quantity-selector--small .quantity-selector__btn {
    padding: 0.5rem;
}

.quantity-selector--small .quantity-selector__value {
    padding: 0.5rem 1rem;
    min-width: 48px;
    font-size: 0.875rem;
}

/* ---- Add More ---- */
.cart-add-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    transition: color 0.15s;
}

.cart-add-more:hover {
    color: var(--primary);
}

/* ---- Order Summary ---- */
.order-summary {
    height: fit-content;
}

@media (min-width: 1024px) {
    .order-summary { position: sticky; top: 6rem; }
}

.order-summary__card {
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 1.5rem;
}

.order-summary__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.order-summary__lines {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.order-summary__line {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.order-summary__label {
    color: var(--text-muted);
}

.order-summary__note {
    font-size: 0.75rem;
    color: var(--primary);
}

.order-summary__total {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.order-summary__total-label {
    font-weight: 600;
}

.order-summary__total-price {
    text-align: right;
}

.order-summary__total-amount {
    font-size: 1.25rem;
    font-weight: 700;
}

.order-summary__total-vat {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.order-summary__checkout {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.order-summary__trust {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.order-summary__trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.order-summary__trust-icon {
    color: var(--primary);
    flex-shrink: 0;
}

/* ---- Sticky afrekenen-bar (mobiel) ---- */
.cart-sticky-bar {
    display: none;
}

@media (max-width: 900px) {
    .order-summary { position: static; }

    .cart-sticky-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--bg);
        border-top: 1px solid var(--border);
        box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
        padding: 0.75rem 24px;
        z-index: 90;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

    .cart-sticky-total {
        font-weight: 700;
        font-size: 1.1rem;
    }

    .cart-sticky-bar .btn {
        flex-shrink: 0;
    }

    .cart-main {
        padding-bottom: 5rem;
    }
}
