/* === Statix Winkelmand === */

.statix-cart {
    max-width: 100%;
    margin: 0 auto;
}

.statix-cart h2 {
    margin-bottom: 24px;
    font-size: 24px;
}

.statix-cart-empty {
    padding: 40px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 8px;
    color: #666;
}

.statix-cart-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 24px;
}

/* Tabel: alleen horizontale lijnen tussen producten, geen verticale lijnen */
.statix-cart-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.statix-cart-table th,
.statix-cart-table td {
    padding: 16px 12px;
    vertical-align: middle;
    border: none !important;
}

.statix-cart-table th {
    font-weight: 600;
    font-size: 14px;
    color: #555;
    padding: 12px;
}

.statix-cart-table thead tr {
    border-bottom: 2px solid #ddd;
}

.statix-cart-table tbody tr {
    border-bottom: 1px solid #eee;
}

.statix-cart-table tbody tr:last-child {
    border-bottom: none;
}

/* Product links, prijs/aantal/totaal rechts */
.statix-cart-table th:nth-child(1),
.statix-cart-table td:nth-child(1) {
    text-align: left;
    width: auto;
}

.statix-cart-table th:nth-child(2),
.statix-cart-table th:nth-child(3),
.statix-cart-table th:nth-child(4),
.statix-cart-table td:nth-child(2),
.statix-cart-table td:nth-child(3),
.statix-cart-table td:nth-child(4) {
    width: 150px;
    white-space: nowrap;
}

/* Prijs en totaal rechts */
.statix-cart-table th:nth-child(2),
.statix-cart-table th:nth-child(4),
.statix-cart-table td:nth-child(2),
.statix-cart-table td:nth-child(4) {
    text-align: right;
}

/* Aantal gecentreerd */
.statix-cart-table th:nth-child(3),
.statix-cart-table td:nth-child(3) {
    text-align: center !important;
    vertical-align: middle;
}

.statix-cart-table td .statix-cart-qty {
    width: 50px;
    padding: 6px 4px;
    text-align: center !important;
    vertical-align: middle;
}

.statix-cart-product {
    display: flex;
    align-items: center;
    gap: 12px;
}

.statix-cart-product strong {
    display: block;
    font-size: 15px;
}

.statix-cart-product small {
    display: block;
    color: #888;
    font-size: 12px;
}

.statix-cart-remove {
    display: inline-block;
    margin-top: 8px;
    padding: 0;
    border: none;
    background: none;
    color: #c0392b;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
}

.statix-cart-remove:hover {
    color: #e74c3c;
}

/* Onderkant: product links, totaal rechts */
.statix-cart-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.statix-cart-bottom-left {
    flex: 1 1 auto;
    align-self: flex-end;
}

.statix-cart-bottom-right {
    flex: 0 0 auto;
    min-width: 280px;
}

.statix-cart-summary {
    max-width: 400px;
    margin-left: auto;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.statix-cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    line-height: 1.4;
}

.statix-cart-total-row {
    font-size: 18px;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 2px solid #ddd;
}

.statix-cart-summary .statix-btn-primary {
    display: block;
    width: 100%;
    margin-top: 16px;
    text-align: center;
    box-sizing: border-box;
}

.statix-cart-actions a {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
}

/* Winkelmand icoon (menu) */
.statix-cart-menu-item,
.statix-cart-link {
    display: inline-flex !important;
    align-items: center;
    vertical-align: middle;
    line-height: 1;
}

.statix-cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    vertical-align: middle;
    line-height: 1;
    margin-top: 4px;
}

.statix-cart-icon svg {
    display: inline-block;
    vertical-align: middle;
    width: 20px;
    height: 20px;
}

.statix-cart-icon__symbol {
    font-size: 24px;
}

.statix-cart-icon__count {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 600px) {
    .statix-cart-table th:nth-child(3),
    .statix-cart-table td:nth-child(3) {
        display: none;
    }

    .statix-cart-bottom {
        flex-direction: column;
    }

    .statix-cart-summary {
        width: 100%;
        max-width: none;
    }

    .statix-cart-actions a {
        width: 100%;
    }
}
