/* =====================================================================================
   page-warenkorb.css – Warenkorb-Seite
   ===================================================================================== */

.elementor-warenkorb .e-con-boxed {
    --display: flex;
}

.elementor-warenkorb .e-con-boxed>.e-con-inner {
    display: flex;
    flex-direction: column;
}

/* ── Layout ───────────────────────────────────────────────────────────────── */
.cart-outer {
    --padding-top: 40px;
    --padding-bottom: 80px;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    width: 100%;
    align-items: start;
}

/* ── Tabelle ─────────────────────────────────────────────────────────────── */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.cart-table thead tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.cart-table th {
    padding: 10px 12px;
    text-align: left;
    font-family: var(--e-global-typography-e5f7065-font-family, "Syne"), sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.45);
}

.cart-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: background 0.2s;
}

.cart-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.cart-row td {
    padding: 16px 12px;
    vertical-align: middle;
    color: rgba(255, 255, 255, 0.85);
}

.cart-filename {
    font-weight: 600;
    color: var(--e-global-color-primary, #fff);
    word-break: break-all;
}

.cart-row small {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
}

.cart-col-weight,
.cart-col-price,
.cart-col-total {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.cart-col-qty {
    width: 80px;
}

.cart-qty-input {
    width: 64px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 6px 8px;
    color: #fff;
    font-size: 0.9rem;
    text-align: center;
    outline: none;
}

.cart-qty-input:focus {
    border-color: rgba(0, 206, 168, 0.5);
}

.cart-remove-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    line-height: 1;
}

.cart-remove-btn:hover {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

/* ── Aktions-Bereich ─────────────────────────────────────────────────────── */
.cart-actions {
    margin-top: 20px;
}

.cart-continue-btn {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.cart-continue-btn:hover {
    color: var(--e-global-color-d79e5ec, #00cea8);
}

/* ── Leer-Zustand ─────────────────────────────────────────────────────────── */
.cart-empty {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    padding: 40px 0;
    text-align: center;
}

.cart-empty a {
    color: var(--e-global-color-d79e5ec, #00cea8);
    text-decoration: none;
}

/* ── Sidebar / Zusammenfassung ───────────────────────────────────────────── */
.cart-sidebar {
    background: var(--e-global-color-secondary, #111318);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 90px;
}

.cart-summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.cart-summary-total {
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--e-global-typography-e5f7065-font-family, "Syne"), sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--e-global-color-primary, #fff);
}

.cart-free-shipping {
    color: var(--e-global-color-d79e5ec, #00cea8);
    font-weight: 600;
}

.cart-checkout-btn {
    display: block;
    width: 100%;
    padding: 13px 20px;
    background: var(--e-global-color-d79e5ec, #00cea8);
    color: #0a0b0e;
    font-family: var(--e-global-typography-e5f7065-font-family, "Syne"), sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
}

.cart-checkout-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.cart-shipping-note {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    margin: 0;
    line-height: 1.55;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-sidebar {
        position: static;
    }

    .cart-table th:nth-child(2),
    .cart-table td:nth-child(2) {
        display: none;
    }
}

@media (max-width: 600px) {

    .cart-table th:nth-child(3),
    .cart-table td:nth-child(3) {
        display: none;
    }

    .cart-row td {
        padding: 12px 8px;
    }
}