/* --- OUTAREA CART PAGE STYLING --- */
:root { 
    --ws-orange: #e87c22; 
    --ws-green: #219653; 
    --ws-text: #222; 
    --ws-border: #e0e0e0; 
    --ws-bg: #f8fafc;
}

body { background: var(--ws-bg); font-family: 'Poppins', sans-serif; margin: 0; color: var(--ws-text); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 1. Header Styling */
.checkout-nav { background: #fff; padding: 15px 0; border-bottom: 1px solid var(--ws-border); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.nav-left { display: flex; align-items: center; gap: 20px; }
.back-link { font-size: 20px; color: #555; text-decoration: none; }
.nav-logo { height: 45px; }

.nav-steps { display: flex; align-items: center; gap: 15px; }
.step { font-size: 14px; font-weight: 600; color: #bbb; text-transform: uppercase; letter-spacing: 1px; }
.step.active { color: var(--ws-orange); }
.step-line { width: 50px; height: 2px; border-bottom: 2px dashed #ddd; }

.nav-right p { font-size: 12px; text-align: right; color: #666; margin: 0; line-height: 1.5; }
.support-number { font-size: 15px; color: var(--ws-orange); font-weight: 700; text-decoration: none; display: block; }

/* 2. Main Cart Layout */
.cart-container { padding: 40px 0; }
.cart-grid { display: grid; grid-template-columns: 1.8fr 1fr; gap: 30px; }

/* 3. Left Column (Items) */
.cart-card-header { background: #fff; padding: 20px 25px; border: 1px solid var(--ws-border); border-radius: 8px 8px 0 0; display: flex; justify-content: space-between; align-items: center; }
.cart-card-header h2 { font-size: 18px; font-weight: 600; margin: 0; }

.deliver-to { font-size: 13px; color: #555; display: flex; align-items: center; gap: 10px; }
.pincode-wrap { display: flex; border: 1px solid var(--ws-border); border-radius: 4px; overflow: hidden; }
.pincode-wrap input { border: none; padding: 8px 12px; outline: none; width: 120px; font-size: 13px; }
.pincode-wrap button { color: var(--ws-orange); background: #fff; border: none; border-left: 1px solid var(--ws-border); padding: 0 15px; font-weight: 600; cursor: pointer; }

/* Dynamic Cart Rows */
.cart-item-row { background: #fff; padding: 25px; border: 1px solid var(--ws-border); border-top: none; display: flex; gap: 25px; }
.cart-item-row:last-child { border-radius: 0 0 8px 8px; }
.item-img { width: 130px; height: 130px; object-fit: cover; border-radius: 8px; border: 1px solid #f1f5f9; }

.item-details { flex: 1; }
.item-details h4 { font-size: 16px; font-weight: 500; margin: 0 0 10px 0; color: #111; line-height: 1.4; }

.qty-controls { display: flex; align-items: center; gap: 15px; margin: 15px 0; }
.qty-box { display: flex; align-items: center; border: 1px solid #ddd; border-radius: 4px; overflow: hidden; }
.qty-btn { width: 35px; height: 35px; background: #fff; border: none; cursor: pointer; font-size: 16px; color: #555; }
.qty-btn:hover { background: #f1f5f9; }
.qty-num { width: 40px; text-align: center; font-weight: 600; font-size: 14px; border-left: 1px solid #ddd; border-right: 1px solid #ddd; line-height: 35px; }

.item-pricing { font-size: 18px; font-weight: 700; color: #111; display: flex; align-items: center; }
.item-mrp { font-size: 13px; color: #999; text-decoration: line-through; margin-left: 12px; font-weight: 400; }
.item-off { color: var(--ws-green); font-size: 13px; margin-left: 10px; font-weight: 600; }

.item-actions { display: flex; gap: 20px; border-top: 1px dashed #eee; padding-top: 15px; }
.item-actions button { background: none; border: none; font-size: 13px; color: #666; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: 0.2s; font-weight: 500; }
.item-actions button:hover { color: var(--ws-orange); }

/* 4. Right Column (Summary) */
.coupon-login-box { display: flex; align-items: center; background: #fff; border: 1px dashed var(--ws-orange); padding: 15px; border-radius: 6px; margin-bottom: 20px; cursor: pointer; transition: 0.3s; }
.coupon-login-box:hover { background: #fffaf5; }
.c-icon { color: var(--ws-orange); font-size: 18px; margin-right: 15px; }
.c-text { flex: 1; font-size: 13px; color: #555; }
.c-login-link { color: var(--ws-orange); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--ws-orange); }
.arrow-icon { color: #ccc; }

.coupon-apply-box { display: flex; border: 1px solid var(--ws-border); border-radius: 6px; overflow: hidden; margin-bottom: 25px; background: #fff; }
.coupon-apply-box input { flex: 1; padding: 12px 15px; border: none; outline: none; font-size: 14px; }
.coupon-apply-box button { padding: 0 25px; background: #fff; border: none; border-left: 1px solid var(--ws-border); color: var(--ws-orange); font-weight: 700; cursor: pointer; transition: 0.3s; }
.coupon-apply-box button:hover { background: #fdfdfd; color: #d06a1a; }

.price-detail-card { background: #fff; padding: 25px; border: 1px solid var(--ws-border); border-radius: 8px; }
.price-detail-card h3 { font-size: 16px; color: #444; margin: 0 0 20px 0; border-bottom: 1px solid #eee; padding-bottom: 15px; font-weight: 600; }
.price-row { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 14px; color: #555; }
.green-text { color: var(--ws-green); font-weight: 500; }

.total-payable-row { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed #ddd; margin-top: 20px; padding-top: 20px; }
.total-label strong { font-size: 16px; color: #111; display: block; margin-bottom: 2px; }
.total-label small { font-size: 11px; color: #999; }
.final-amt { font-size: 24px; color: #111; font-weight: 700; }

.savings-alert { background: #ecfdf5; color: var(--ws-green); padding: 12px; border-radius: 6px; font-size: 13px; font-weight: 600; margin: 20px 0; border: 1px solid #bbf7d0; text-align: center; }

.emi-text { text-align: center; font-size: 12px; color: #777; margin: 20px 0 15px; }

.place-order-btn { width: 100%; padding: 16px; background: var(--ws-orange); color: #fff; border: none; border-radius: 6px; font-size: 16px; font-weight: 700; cursor: pointer; transition: 0.3s; letter-spacing: 1px; box-shadow: 0 4px 15px rgba(232, 124, 34, 0.2); }
.place-order-btn:hover { background: #d06a1a; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232, 124, 34, 0.3); }

@media (max-width: 992px) { 
    .cart-grid { grid-template-columns: 1fr; } 
    .nav-steps { display: none; }
}
@media (max-width: 600px) {
    .cart-item-row { flex-direction: column; }
    .item-img { width: 100%; height: auto; aspect-ratio: 4/3; }
}