/* cart.css — Cart page specific styles */
.cart-container { max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.cart-header { border-bottom: 2px solid var(--border); padding-bottom: 20px; margin-bottom: 30px; }
.cart-header h1 { font-size: 2rem; font-weight: 700; color: var(--corporate-blue); margin: 0; }
.cart-grid { display: grid; grid-template-columns: 1fr 380px; gap: 30px; align-items: start; }
.cart-items-section { background: white; border-radius: 12px; border: 1px solid var(--border); }
.cart-item { display: grid; grid-template-columns: 100px 1fr auto; gap: 20px; padding: 20px; border-bottom: 1px solid var(--border); align-items: center; transition: background 0.2s; }
.cart-item:last-child { border-bottom: none; }
.cart-item:hover { background: #f8fafc; }
.cart-item-image { width: 100px; height: 80px; object-fit: contain; background: #f8fafc; border-radius: 8px; padding: 8px; border: 1px solid var(--border); }
.cart-item-details { display: flex; flex-direction: column; gap: 6px; }
.cart-item-brand { font-size: 0.75rem; color: var(--corporate-blue); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.cart-item-name { font-weight: 600; font-size: 1rem; color: var(--dark); line-height: 1.3; }
.cart-item-sku { font-size: 0.8rem; color: #94a3b8; font-family: 'Courier New', monospace; }
.cart-item-price { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-top: 4px; }
.cart-item-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.quantity-control { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.qty-btn { width: 34px; height: 34px; background: #f8fafc; border: none; cursor: pointer; font-size: 1rem; transition: background 0.2s; }
.qty-btn:hover { background: #e2e8f0; }
.qty-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.qty-input { width: 50px; text-align: center; border: none; font-weight: 600; font-size: 0.95rem; }
.remove-btn { background: none; border: 1px solid #fecaca; color: var(--danger); padding: 6px 12px; border-radius: 6px; font-size: 0.85rem; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 5px; }
.remove-btn:hover { background: #fee2e2; border-color: var(--danger); }
.order-summary { background: white; border-radius: 12px; border: 1px solid var(--border); padding: 24px; position: sticky; top: 100px; }
.order-summary h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 20px; color: var(--corporate-blue); }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 0.95rem; }
.summary-row.subtotal { border-bottom: 1px solid var(--border); }
.summary-row.delivery { color: #64748b; border-bottom: 1px solid var(--border); }
.summary-row.total { font-size: 1.2rem; font-weight: 700; color: var(--corporate-blue); padding-top: 14px; border-top: 2px solid var(--border); margin-top: 8px; }
.summary-row.discount { color: var(--success); }
.summary-row.discount span:last-child { font-weight: 700; }
.vat-note { font-size: 0.8rem; color: #64748b; font-style: italic; margin-top: 8px; text-align: center; }
.free-delivery-badge { background: linear-gradient(135deg, #10b981, #059669); color: white; padding: 8px 14px; border-radius: 20px; font-size: 0.82rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; margin: 10px 0; }
.delivery-progress { margin: 16px 0; }
.delivery-progress-bar { width: 100%; height: 8px; background: #e5e7eb; border-radius: 10px; overflow: hidden; margin-bottom: 8px; }
.delivery-progress-fill { height: 100%; background: linear-gradient(90deg, var(--success), #34d399); border-radius: 10px; transition: width 0.4s ease; }
.delivery-progress-text { font-size: 0.85rem; color: #64748b; text-align: center; }
.checkout-btn { width: 100%; background: linear-gradient(135deg, var(--corporate-blue), #3b82f6); color: white; border: none; padding: 14px; border-radius: 10px; font-weight: 700; font-size: 1.05rem; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; }
.checkout-btn:hover { background: linear-gradient(135deg, #1e40af, #2563eb); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,99,235,0.3); }
.checkout-btn:disabled { background: #cbd5e1; cursor: not-allowed; transform: none; }
.continue-shopping { width: 100%; background: white; color: var(--corporate-blue); border: 1px solid var(--corporate-blue); padding: 12px; border-radius: 10px; font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; text-decoration: none; }
.continue-shopping:hover { background: #f8fafc; }
.empty-cart { text-align: center; padding: 80px 20px; background: white; border-radius: 12px; border: 1px solid var(--border); }
.empty-cart i { font-size: 4rem; color: #cbd5e1; margin-bottom: 20px; }
.empty-cart h2 { font-size: 1.5rem; color: var(--dark); margin-bottom: 12px; }
.empty-cart p { color: #64748b; margin-bottom: 24px; }
.cart-orig-price { text-decoration: line-through; color: #94a3b8; font-size: 0.88rem; margin-right: 4px; }
.cart-sale-price { color: #ef4444; font-weight: 700; font-size: 1.1rem; }
.cart-savings { display: block; font-size: 0.75rem; color: var(--success); font-weight: 600; margin-top: 2px; }
.cart-sale-badge { display: inline-block; background: #ef4444; color: #fff; font-size: 0.65rem; font-weight: 700; padding: 2px 7px; border-radius: 4px; margin-left: 6px; vertical-align: middle; }
.coupon-section { background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 10px; padding: 14px; margin: 12px 0; }
.coupon-section label { font-size: 0.82rem; font-weight: 600; color: #374151; margin-bottom: 8px; display: block; }
.coupon-input-row { display: flex; gap: 8px; }
.coupon-input-row input { flex: 1; border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 12px; font-size: 0.85rem; font-family: 'Courier New', monospace; text-transform: uppercase; outline: none; transition: border-color 0.2s; }
.coupon-input-row input:focus { border-color: var(--primary); }
.coupon-apply-btn { background: var(--primary); color: #fff; border: none; border-radius: 8px; padding: 8px 16px; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: background 0.2s; white-space: nowrap; }
.coupon-apply-btn:hover { background: var(--primary-dark); }
.coupon-applied-row { display: none; align-items: center; gap: 8px; background: #d1fae5; border-radius: 8px; padding: 8px 12px; }
.coupon-applied-row span { flex: 1; font-size: 0.82rem; font-weight: 600; color: #065f46; }
.coupon-remove-btn { background: none; border: none; color: #ef4444; cursor: pointer; font-size: 0.78rem; font-weight: 600; padding: 0; }
.coupon-msg { font-size: 0.78rem; margin-top: 6px; display: none; }
@media (max-width: 991px) { .cart-grid { grid-template-columns: 1fr; } .order-summary { position: static; } }
@media (max-width: 767px) { .cart-header h1 { font-size: 1.5rem; } .cart-item { grid-template-columns: 80px 1fr; gap: 12px; } .cart-item-image { width: 80px; height: 65px; } .cart-item-actions { grid-column: 2; flex-direction: row; justify-content: space-between; align-items: center; } }
