/* ==========================================================================
   Warenkorb Redesign — Moderner, cleaner Look
   Scope: body.page-id-1114
   Rollback: CSS-Datei in functions.php deaktivieren
   ========================================================================== */

/* --- Page Layout & Background --- */
body.page-id-1114 #main_content {
    background: #f8f9fa;
}

body.page-id-1114 .content_row_wrapper.default {
    max-width: 1140px;
    margin: 0 auto;
    padding: 30px 20px;
}

body.page-id-1114 h1 {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

/* --- "Zurück zum Shop" Link --- */
body.page-id-1114 .bluelink a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #21a6ff !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    border: none !important;
    transition: color 0.2s;
}

body.page-id-1114 .bluelink a:hover {
    color: #0d8ce0 !important;
}

/* Override default-style link colors on cart page */
body.page-id-1114.woocommerce-cart div.default-style p a {
    color: #fff !important;
    background-color: #21a6ff !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    display: inline-block !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    transition: background-color 0.2s !important;
}

body.page-id-1114.woocommerce-cart div.default-style p a:hover {
    background-color: #0d8ce0 !important;
}

/* --- Cart Table Container --- */
body.page-id-1114 .woocommerce-cart-form {
    overflow: visible;
    margin-bottom: 0;
}

body.page-id-1114 table.shop_table.cart {
    background: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    overflow: hidden;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

/* --- Table Header --- */
body.page-id-1114 table.shop_table.cart thead th {
    background: #f1f5f9;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 20px;
    border: none;
}

/* --- Table Rows --- */
body.page-id-1114 table.shop_table.cart td {
    padding: 20px;
    border-top: 1px solid #f1f1f1;
    border-bottom: none;
    vertical-align: middle;
    font-size: 14px;
    color: #333;
}

body.page-id-1114 table.shop_table.cart tr.cart_item:hover td {
    background: #fafbfc;
}

/* --- Product Thumbnail --- */
body.page-id-1114 table.shop_table.cart .product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #eee;
    background: #fff;
    padding: 4px;
}

/* --- Product Name --- */
body.page-id-1114 table.shop_table.cart .product-name a {
    color: #1a1a1a;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

body.page-id-1114 table.shop_table.cart .product-name a:hover {
    color: #21a6ff;
}

/* Zusatzinfos unter dem Produktnamen */
body.page-id-1114 table.shop_table.cart .product-name .variation,
body.page-id-1114 table.shop_table.cart .product-name dl.variation {
    font-size: 12px;
    color: #737373;
    margin-top: 4px;
}

/* --- Price Column --- */
body.page-id-1114 table.shop_table.cart .product-price .woocommerce-Price-amount {
    font-weight: 600;
    color: #1a1a1a;
}

/* --- Quantity Input --- */
body.page-id-1114 table.shop_table.cart .quantity .qty {
    width: 60px;
    height: 40px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
    -moz-appearance: textfield;
}

body.page-id-1114 table.shop_table.cart .quantity .qty:focus {
    border-color: #21a6ff;
    box-shadow: 0 0 0 2px rgba(33,166,255,0.15);
    outline: none;
}

body.page-id-1114 table.shop_table.cart .quantity .plus,
body.page-id-1114 table.shop_table.cart .quantity .minus {
    background: #f1f5f9;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.15s;
}

body.page-id-1114 table.shop_table.cart .quantity .plus:hover,
body.page-id-1114 table.shop_table.cart .quantity .minus:hover {
    background: #e2e8f0;
}

/* --- Subtotal Column --- */
body.page-id-1114 table.shop_table.cart .product-subtotal .woocommerce-Price-amount {
    font-weight: 700;
    font-size: 15px;
    color: #1a1a1a;
}

/* --- Remove Button --- */
body.page-id-1114 table.shop_table.cart .product-remove a.remove {
    color: #ccc !important;
    font-size: 22px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
    background: transparent;
}

body.page-id-1114 table.shop_table.cart .product-remove a.remove:hover {
    color: #ef4444 !important;
    background: #fef2f2;
}

/* --- Actions Row (Coupon + Buttons) --- */
body.page-id-1114 table.shop_table.cart td.actions {
    padding: 20px;
    background: #fff;
    border-top: 1px solid #f1f1f1;
}

body.page-id-1114 td.actions .coupon {
    display: flex;
    gap: 8px;
    align-items: center;
}

body.page-id-1114 input#coupon_code {
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 14px;
    height: auto;
    min-width: 200px;
    transition: border-color 0.15s;
}

body.page-id-1114 input#coupon_code:focus {
    border-color: #21a6ff;
    box-shadow: 0 0 0 2px rgba(33,166,255,0.15);
    outline: none;
}

body.page-id-1114 td.actions .coupon .button {
    background: #f1f5f9 !important;
    color: #333 !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    height: auto;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

body.page-id-1114 td.actions .coupon .button:hover {
    background: #e2e8f0 !important;
}

/* --- Checkout Button in Actions --- */
body.page-id-1114 td.actions a.checkout-button.button.alt.wc-forward {
    background: #21a6ff !important;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, transform 0.15s;
    margin-top: 0;
    text-decoration: none;
}

body.page-id-1114 td.actions a.checkout-button.button.alt.wc-forward:hover {
    background: #0d8ce0 !important;
    transform: translateY(-1px);
}

/* --- Cart Totals Box --- */
body.page-id-1114 .woocommerce .cart-collaterals .cart_totals,
body.page-id-1114 .woocommerce-page .cart-collaterals .cart_totals {
    background: #fff !important;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    padding: 20px 24px !important;
    margin-top: 20px !important;
    width: 100% !important;
    float: none !important;
}

body.page-id-1114 .cart_totals h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #21a6ff;
}

body.page-id-1114 .cart_totals table.shop_table {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

body.page-id-1114 .cart_totals table.shop_table th,
body.page-id-1114 .cart_totals table.shop_table td {
    padding: 12px 0;
    border-bottom: 1px solid #f1f1f1;
    font-size: 14px;
    background: transparent;
}

body.page-id-1114 .cart_totals table.shop_table th {
    color: #64748b;
    font-weight: 500;
}

body.page-id-1114 .cart_totals .order-total th,
body.page-id-1114 .cart_totals .order-total td {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    border-bottom: none;
    padding-top: 16px;
}

body.page-id-1114 .cart_totals .order-total .woocommerce-Price-amount {
    color: #1a5c2e;
    font-size: 22px;
}

/* --- Checkout Button in Cart Totals --- */
body.page-id-1114 .cart_totals .wc-proceed-to-checkout a.checkout-button {
    background: #21a6ff !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    width: auto;
    text-align: center;
    display: inline-block;
    margin-top: 16px;
    transition: background 0.2s, transform 0.15s;
    text-decoration: none;
    box-sizing: border-box;
}

body.page-id-1114 .cart_totals .wc-proceed-to-checkout {
    text-align: right;
}

body.page-id-1114 .cart_totals .wc-proceed-to-checkout a.checkout-button:hover {
    background: #0d8ce0 !important;
    transform: translateY(-1px);
}

/* --- Cross-Sell Products (Custom Popup) --- */
body.page-id-1114 #set-cross-sell {
    border-radius: 16px;
    overflow: hidden;
}

body.page-id-1114 .set-cross-sell-content {
    border-radius: 16px;
}

body.page-id-1114 .set-cross-sell-product {
    border-radius: 10px;
    overflow: hidden;
}

/* --- Delivery Time & Additional Info --- */
body.page-id-1114 .wc-gzd-additional-info {
    font-size: 12px;
    color: #737373;
}

/* --- Backorder Stock Badge --- */
body.page-id-1114 .stock.onbackorder {
    display: inline-block;
    background: #f59e0b;
    color: #fff;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

/* --- Empty Cart State --- */
body.page-id-1114 .cart-empty {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    padding: 60px 40px;
    text-align: center;
    font-size: 16px;
    color: #64748b;
}

body.page-id-1114 .cart-empty:before {
    content: "🛒";
    display: block;
    font-size: 48px;
    margin-bottom: 16px;
}

body.page-id-1114 .return-to-shop a.button {
    background: #21a6ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s;
    text-decoration: none;
}

body.page-id-1114 .return-to-shop a.button:hover {
    background: #0d8ce0;
}

/* --- WooCommerce Notices --- */
body.page-id-1114 .woocommerce-message,
body.page-id-1114 .woocommerce-info {
    background: #f0f7ff;
    border: 1px solid #d0e6ff;
    border-radius: 8px;
    padding: 14px 18px;
    color: #333;
    font-size: 14px;
    display: block;
}

body.page-id-1114 .woocommerce-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 14px 18px;
    color: #991b1b;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    body.page-id-1114 table.shop_table.cart thead {
        display: none;
    }

    body.page-id-1114 table.shop_table.cart tr.cart_item {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        padding: 16px;
        gap: 12px;
        border-bottom: 1px solid #f1f1f1;
    }

    body.page-id-1114 table.shop_table.cart tr.cart_item td {
        border: none;
        padding: 0;
    }

    body.page-id-1114 table.shop_table.cart .product-thumbnail {
        width: 70px;
    }

    body.page-id-1114 table.shop_table.cart .product-thumbnail img {
        width: 70px;
        height: 70px;
    }

    body.page-id-1114 table.shop_table.cart .product-name {
        flex: 1;
        min-width: 0;
    }

    body.page-id-1114 table.shop_table.cart .product-price {
        display: none;
    }

    body.page-id-1114 table.shop_table.cart .product-quantity {
        width: auto;
    }

    body.page-id-1114 table.shop_table.cart .product-subtotal {
        margin-left: auto;
    }

    body.page-id-1114 table.shop_table.cart .product-remove {
        position: absolute;
        right: 16px;
        top: 16px;
    }

    body.page-id-1114 table.shop_table.cart tr.cart_item {
        position: relative;
    }

    body.page-id-1114 td.actions .coupon {
        flex-direction: column;
        width: 100%;
    }

    body.page-id-1114 input#coupon_code {
        width: 100%;
        min-width: 0;
    }

    body.page-id-1114 td.actions .coupon .button {
        width: 100%;
        text-align: center;
    }

    body.page-id-1114 td.actions a.checkout-button.button.alt.wc-forward {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    body.page-id-1114 .woocommerce .cart-collaterals .cart_totals,
    body.page-id-1114 .woocommerce-page .cart-collaterals .cart_totals {
        padding: 20px 16px !important;
    }

    body.page-id-1114 .cart_totals .order-total .woocommerce-Price-amount {
        font-size: 18px;
    }
}
