/* Custom Cart Page Styles - Scoped to Cart Page Only */

/* --- CART PAGE SPECIFIC STYLES --- */
.checkout-cart-index .page-title-wrapper .page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #222;
}

/* --- NOTIFICATION BAR --- */
/* .checkout-cart-index .coupon-alert {
    background-color: #e8f5e9;
    color: #1b5e20;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #c8e6c9;
}

.checkout-cart-index .coupon-code-badge {
    background-color: #fff;
    border: 1px dashed #4caf50;
    color: #4caf50;
    padding: 4px 10px;
    font-weight: 600;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
} */

/* --- CART WRAPPER (2 Columns) --- */
.checkout-cart-index .cart-container {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

/* Override default Magento float behavior */
@media (min-width: 993px), print {
    .checkout-cart-index .cart-container .form-cart,
    .checkout-cart-index .cart-container .cart-gift-item {
        float: none !important;
        width: auto !important;
    }
}

/* LEFT SIDE: Items & Benefits */
.checkout-cart-index .cart-container .form-cart {
    flex: 2;
    min-width: 0;
}

/* RIGHT SIDE: Totals */
.checkout-cart-index .cart-summary {
    flex: 1;
    min-width: 350px;
}

/* --- CART TABLE --- */
.checkout-cart-index .cart.table-wrapper {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    margin-bottom: 30px;
}

.checkout-cart-index .cart.items.data.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.checkout-cart-index .cart.items.data.table thead th {
    text-align: left;
    padding: 15px 10px;
    font-weight: 700;
    color: #222;
    border-bottom: 1px solid #eee;
}

.checkout-cart-index .cart.items.data.table tbody td {
    padding: 20px 10px;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
}

/* Remove "X" Icon */
.checkout-cart-index .action.action-delete {
    color: #ff4d4f;
    cursor: pointer;
    font-size: 18px;
    margin-right: 10px;
    font-weight: bold;
    border: none;
    background: none;
    padding: 0;
}

.checkout-cart-index .action.action-delete:before {
    content: "×";
    font-size: 24px;
}

.checkout-cart-index .action.action-delete span {
    display: none;
}

/* Product Image & Name */
.checkout-cart-index .col.item .product-item-photo {
    width: 100px;
    height: 100px;
    float: left;
    margin-right: 15px;
}

.checkout-cart-index .col.item .product-item-photo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 4px;
    background: #f9f9f9;
    padding: 5px;
}

.checkout-cart-index .col.item .product-item-name {
    font-weight: 500;
    color: #000;
    font-size: 14px;
    max-width: 250px;
    display: block;
}

.checkout-cart-index .col.item .product-item-name a {
    font-family: 'Rubik', sans-serif;
    color: #000;
    text-decoration: none;
}

.checkout-cart-index .col.item .product-item-details {
    overflow: hidden;
}

/* Quantity Selector */
.checkout-cart-index .control.qty {
    display: flex;
    align-items: center;
    width: fit-content;
    border-radius: 4px;
}

.checkout-cart-index .input-text.qty {
    width: 50px;
    text-align: center;
    font-size: 14px;
    border: none;
    background: transparent;
    padding: 5px;
}

/* Prices */
.checkout-cart-index .price-wrapper .price,
.checkout-cart-index .cart-price .price {
    font-weight: 600;
    color: #333;
}

/* --- COUPON AREA --- */
.checkout-cart-index .cart.main.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.checkout-cart-index #discount-coupon-form {
    display: flex;
    gap: 10px;
}

.checkout-cart-index #coupon_code {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 200px;
}

.checkout-cart-index .action.apply.primary {
    background: #232f3e;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.checkout-cart-index .action.apply.primary:hover {
    background: #111827;
}

.checkout-cart-index .action.update,
.checkout-cart-index .action.continue {
    text-decoration: underline;
    color: #232f3e;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    background: none;
    border: none;
}

.checkout-cart-index .action.clear {
    background: #e0e0e0;
    color: #555;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    margin-right: 10px;
}

.checkout-cart-index .action.clear:hover {
    background: #d5d5d5;
}

/* --- BENEFITS GRID --- */
/* .checkout-cart-index .benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.checkout-cart-index .benefit-card {
    background: #fff;
    padding: 30px 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.checkout-cart-index .benefit-icon {
    font-size: 24px;
    margin-bottom: 10px;
    color: #232f3e;
}

.checkout-cart-index .benefit-title {
    font-weight: 700;
    font-size: 16px;
    color: #232f3e;
    margin-bottom: 8px;
}

.checkout-cart-index .benefit-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
} */

/* --- RIGHT COLUMN: CART TOTALS --- */
.checkout-cart-index .cart-summary {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    position: sticky;
    top: 20px;
}

.checkout-cart-index .cart-summary .block-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #222;
}

.checkout-cart-index .cart-summary .totals {
    border: none;
}

.checkout-cart-index .cart-summary .totals .mark {
    font-weight: 600;
    color: #222;
    font-size: 14px;
}

.checkout-cart-index .cart-summary .totals .amount {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.checkout-cart-index .cart-summary .grand.totals {
    border-top: 2px solid #eee;
    padding-top: 20px;
    margin-top: 20px;
}

.checkout-cart-index .cart-summary .grand.totals .mark {
    font-size: 20px;
    font-weight: 700;
    color: #222;
}

.checkout-cart-index .cart-summary .grand.totals .amount {
    font-size: 20px;
    font-weight: 700;
    color: #222;
}

/* Checkout Button */
.checkout-cart-index .checkout-methods-items .action.primary.checkout {
    width: 100%;
    background-color: #232f3e;
    color: #fff;
    padding: 15px;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 20px;
    text-align: center;
}

.checkout-cart-index .checkout-methods-items .action.primary.checkout:hover {
    background-color: #111827;
}

/* Shipping Estimate Section */
.checkout-cart-index .shipping.block {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.checkout-cart-index .shipping.block .title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #222;
}

/* Secure Text */
/* .checkout-cart-index .secure-checkout-text {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    margin-top: 15px;
}

.checkout-cart-index .payment-icons {
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
}

.checkout-cart-index .payment-icons .pay-icon {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 2px 5px;
    font-size: 10px;
    font-weight: 800;
    color: #444;
} */

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .checkout-cart-index .cart-container {
        flex-direction: column;
    }

    .checkout-cart-index .cart-summary {
        width: 100%;
        min-width: auto;
        position: static;
    }

    .checkout-cart-index .cart.table-wrapper {
        overflow-x: auto;
    }

    .checkout-cart-index .benefits-grid {
        grid-template-columns: 1fr;
    }

    .checkout-cart-index .cart.main.actions {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .checkout-cart-index #coupon_code {
        width: 100%;
    }
}

/* Remove default Magento cart styles that conflict */
.checkout-cart-index .cart.table-wrapper {
    border: none;
}

.checkout-cart-index .cart.items thead {
    background: transparent;
}

.checkout-cart-index .cart.items tbody tr {
    background: transparent;
}

.checkout-cart-index .cart.items tbody tr:hover {
    background: #fafafa;
}

/* Hide multicheckout link */
.checkout-cart-index .action.multicheckout,
.checkout-cart-index a.action.multicheckout,
.checkout-cart-index .checkout-methods-items .item .action.multicheckout {
    display: none !important;
}

/* Hide secure checkout text and payment icons in checkout methods */
.checkout-cart-index .checkout-methods-items .secure-checkout-text,
.checkout-cart-index .checkout-methods-items .payment-icons,
.checkout-cart-index .secure-checkout-text,
.checkout-cart-index .payment-icons {
    display: none !important;
}

/* Hide benefits grid */
.checkout-cart-index .benefits-grid,
.checkout-cart-index .benefit-card {
    display: none !important;
}

/* Hide coupon alert */
.checkout-cart-index .coupon-alert {
    display: none !important;
}

/* Item Actions Row */
.checkout-cart-index .item-actions {
    border-bottom: 1px solid #eee;
}

.checkout-cart-index .item-actions .actions-toolbar {
    display: flex;
    gap: 15px;
    padding: 10px;
}

.checkout-cart-index .action.action-edit {
    color: #232f3e;
    text-decoration: underline;
    font-size: 14px;
}
