
/* ============================================================
   CART PAGE (cart.php override)
   All selectors scoped under .cvx-cart / .cvx-cart-empty
   ============================================================ */

.cvx-cart { display: flex; flex-direction: column; gap: 24px; max-width: 1200px; margin: 0 auto; padding: 24px 0; font-family: 'Inter', system-ui, sans-serif; color: #1a202c; }

/* Progress rail */
.cvx-cart .cvx-cart-progress { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px; }
.cvx-cart .cvx-progress-step { display: flex; align-items: center; gap: 8px; }
.cvx-cart .cvx-progress-dot { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 13px; border: 2px solid #e2e8f0; background: #fff; color: #94a3b8; }
.cvx-cart .cvx-progress-step--active .cvx-progress-dot { background: linear-gradient(135deg, #1a202c, #2563eb); color: #fff; border-color: transparent; box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3); }
.cvx-cart .cvx-progress-label { font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 600; color: #94a3b8; }
.cvx-cart .cvx-progress-step--active .cvx-progress-label { color: #1a202c; }
.cvx-cart .cvx-progress-line { width: 60px; height: 2px; background: #e2e8f0; border-radius: 100px; }

/* Head */
.cvx-cart .cvx-cart-head { margin-bottom: 4px; }
.cvx-cart .cvx-cart-head h1 { font-family: 'Space Grotesk', sans-serif; font-size: 32px; font-weight: 800; color: #1a202c; letter-spacing: -0.6px; margin-bottom: 6px; }
.cvx-cart .cvx-cart-head p { font-size: 14px; color: #64748b; margin: 0; }
.cvx-cart .cvx-cart-count { color: #2563eb; font-weight: 600; }

/* Layout */
.cvx-cart .cvx-cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }

/* ===== ITEM CARDS ===== */
.cvx-cart .cvx-cart-items-col { min-width: 0; }
.cvx-cart .cvx-cart-form, .cvx-cart form.woocommerce-cart-form { margin: 0; padding: 0; background: none; border: none; }
.cvx-cart .cvx-cart-items { display: flex; flex-direction: column; gap: 12px; }

.cvx-cart .cvx-cart-item { background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; padding: 20px; display: grid; grid-template-columns: 90px 1fr auto; gap: 18px; align-items: center; transition: all 0.25s; }
.cvx-cart .cvx-cart-item:hover { border-color: rgba(37, 99, 235, 0.3); box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06); }

.cvx-cart .cvx-cart-item-img { width: 90px; height: 90px; border-radius: 14px; background: linear-gradient(135deg, #f1f5f9, #e2e8f0); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.cvx-cart .cvx-cart-item-img a, .cvx-cart .cvx-cart-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 14px; }

.cvx-cart .cvx-cart-item-info { min-width: 0; }
.cvx-cart .cvx-cart-item-cat { font-size: 11px; font-weight: 600; color: #2563eb; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.cvx-cart .cvx-cart-item-name { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 700; color: #1a202c; margin-bottom: 4px; line-height: 1.3; }
.cvx-cart .cvx-cart-item-name a { color: inherit; text-decoration: none; }
.cvx-cart .cvx-cart-item-name a:hover { color: #2563eb; }
.cvx-cart .cvx-cart-item-name p, .cvx-cart .cvx-cart-item-name dl { font-size: 12px; color: #64748b; margin: 4px 0 0; font-weight: 500; font-family: 'Inter', sans-serif; }

.cvx-cart .cvx-cart-item-meta { font-size: 12px; color: #64748b; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cvx-cart .cvx-cart-item-meta span { display: inline-flex; align-items: center; gap: 4px; }
.cvx-cart .cvx-cart-item-meta svg { width: 12px; height: 12px; color: #10b981; }

.cvx-cart .cvx-cart-item-actions { display: flex; align-items: center; gap: 8px; margin-top: 4px; flex-wrap: wrap; }

/* Quantity picker - overrides WC's default .quantity styling */
.cvx-cart .cvx-cart-item-actions .quantity { display: inline-flex; align-items: center; border: 1.5px solid #e2e8f0; border-radius: 10px; overflow: hidden; background: #fff; margin: 0; padding: 0; }
.cvx-cart .cvx-cart-item-actions .quantity .qty { width: 44px; height: 32px; border: none; background: none; text-align: center; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 14px; color: #1a202c; padding: 0; -moz-appearance: textfield; }
.cvx-cart .cvx-cart-item-actions .quantity .qty::-webkit-outer-spin-button,
.cvx-cart .cvx-cart-item-actions .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cvx-cart .cvx-cart-item-actions .quantity .qty:focus { outline: none; }
.cvx-cart-qty-static { display: inline-flex; align-items: center; justify-content: center; padding: 6px 14px; border: 1.5px solid #e2e8f0; border-radius: 10px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 14px; color: #1a202c; }

.cvx-cart .cvx-cart-item-remove { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; font-size: 12px; font-weight: 600; color: #94a3b8; border-radius: 8px; transition: all 0.15s; text-decoration: none; background: none; border: none; cursor: pointer; }
.cvx-cart .cvx-cart-item-remove:hover { color: #ef4444; background: rgba(239, 68, 68, 0.06); }
.cvx-cart .cvx-cart-item-remove svg { width: 13px; height: 13px; }

.cvx-cart .cvx-cart-item-price { text-align: right; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; flex-shrink: 0; }
.cvx-cart .cvx-cart-item-total { font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 700; color: #1a202c; }
.cvx-cart .cvx-cart-item-total .woocommerce-Price-amount { font-family: inherit; font-size: inherit; font-weight: inherit; color: inherit; }
.cvx-cart .cvx-cart-item-unit { font-size: 11px; color: #94a3b8; }

/* Form actions row (coupon + update) */
.cvx-cart .cvx-cart-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding: 16px 20px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; flex-wrap: wrap; }

.cvx-cart .cvx-cart-coupon-inline .coupon { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; background: none; border: none; }
.cvx-cart .cvx-cart-coupon-inline #coupon_code { padding: 10px 14px; border: 1.5px solid #e2e8f0; border-radius: 10px; font-family: inherit; font-size: 13px; font-weight: 500; width: 200px; }
.cvx-cart .cvx-cart-coupon-inline #coupon_code:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }

.cvx-cart .cvx-btn-coupon { padding: 10px 18px; background: #1a202c; color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 700; border-radius: 10px; cursor: pointer; border: none; transition: all 0.2s; }
.cvx-cart .cvx-btn-coupon:hover { background: #2563eb; }

.cvx-cart .cvx-btn-update { padding: 10px 18px; background: #fff; border: 1.5px solid #e2e8f0; color: #475569; font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 600; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: all 0.2s; }
.cvx-cart .cvx-btn-update:hover { border-color: #2563eb; color: #2563eb; }
.cvx-cart .cvx-btn-update svg { width: 14px; height: 14px; }
.cvx-cart .cvx-btn-update[disabled] { opacity: 0.5; cursor: not-allowed; }

/* Continue shopping link */
.cvx-cart .cvx-cart-links { margin-top: 16px; }
.cvx-cart .cvx-continue-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #475569; text-decoration: none; transition: color 0.15s; }
.cvx-cart .cvx-continue-link:hover { color: #2563eb; }
.cvx-cart .cvx-continue-link svg { width: 14px; height: 14px; }

/* ===== SIDEBAR ===== */
.cvx-cart .cvx-cart-sidebar { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }
.cvx-cart .cvx-summary-card, .cvx-cart .cart_totals { background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; padding: 24px; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04); margin: 0; }
.cvx-cart .cvx-summary-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 700; color: #1a202c; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.cvx-cart .cvx-summary-card h3 svg { width: 18px; height: 18px; color: #2563eb; }

/* Neutralize WC's default cart_totals table styling */
.cvx-cart .cart_totals h2 { display: none; }
.cvx-cart .cart_totals table.shop_table { display: none; }

.cvx-cart .cvx-summary-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 14px; color: #475569; }
.cvx-cart .cvx-summary-row strong, .cvx-cart .cvx-summary-row .woocommerce-Price-amount { color: #1a202c; font-weight: 600; }
.cvx-cart .cvx-summary-row--muted { color: #94a3b8; font-size: 13px; }
.cvx-cart .cvx-summary-row--discount, .cvx-cart .cvx-summary-row--discount strong { color: #10b981; }
.cvx-cart .cvx-summary-divider { height: 1px; background: #eef2f7; margin: 8px 0; }

.cvx-cart .cvx-summary-row--total { padding-top: 14px; font-family: 'Space Grotesk', sans-serif; font-size: 18px; }
.cvx-cart .cvx-summary-row--total strong { font-size: 24px; color: #1a202c; font-weight: 800; letter-spacing: -0.3px; }

/* Free shipping progress bar */
.cvx-cart .cvx-shipping-bar { margin: 14px 0 18px; padding: 14px 16px; background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(59, 130, 246, 0.03)); border: 1px solid rgba(16, 185, 129, 0.2); border-radius: 12px; }
.cvx-cart .cvx-shipping-bar-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; margin-bottom: 8px; }
.cvx-cart .cvx-shipping-bar-left { font-weight: 600; color: #1a202c; display: flex; align-items: center; gap: 6px; }
.cvx-cart .cvx-shipping-bar-left svg { width: 14px; height: 14px; color: #10b981; }
.cvx-cart .cvx-shipping-bar-right { color: #10b981; font-weight: 700; }
.cvx-cart .cvx-shipping-bar-track { height: 6px; background: #e2e8f0; border-radius: 100px; overflow: hidden; }
.cvx-cart .cvx-shipping-bar-fill { height: 100%; background: linear-gradient(90deg, #10b981, #3b82f6); border-radius: 100px; transition: width 0.4s; }

/* Checkout wrap */
.cvx-cart .cvx-checkout-wrap { margin-top: 14px; }
.cvx-cart .cvx-btn-checkout, .cvx-cart .wc-proceed-to-checkout a.button, .cvx-cart .wc-proceed-to-checkout .checkout-button { display: flex !important; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 16px 20px !important; background: linear-gradient(135deg, #1a202c, #2d3748) !important; color: #fff !important; font-family: 'Space Grotesk', sans-serif !important; font-size: 15px !important; font-weight: 700 !important; border: none !important; border-radius: 12px !important; cursor: pointer; transition: all 0.25s; box-shadow: 0 4px 14px rgba(26, 32, 44, 0.2); text-decoration: none !important; text-transform: none !important; letter-spacing: 0 !important; margin: 0 !important; }
.cvx-cart .cvx-btn-checkout:hover, .cvx-cart .wc-proceed-to-checkout a.button:hover { background: linear-gradient(135deg, #2563eb, #3b82f6) !important; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35); }
.cvx-cart .cvx-btn-checkout svg { width: 16px; height: 16px; }

/* ===== TRUST CARD ===== */
.cvx-cart .cvx-trust-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; padding: 20px 24px; }
.cvx-cart .cvx-trust-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f1f5f9; font-size: 13px; color: #475569; }
.cvx-cart .cvx-trust-row:last-child { border-bottom: none; }
.cvx-cart .cvx-trust-row svg { width: 18px; height: 18px; color: #10b981; flex-shrink: 0; }
.cvx-cart .cvx-trust-row strong { color: #1a202c; font-weight: 600; }

/* ===== PAYMENTS CARD ===== */
.cvx-cart .cvx-payments-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; padding: 18px 24px; text-align: center; }
.cvx-cart .cvx-payments-label { font-size: 11px; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 10px; }
.cvx-cart .cvx-payments-row { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.cvx-cart .cvx-payment-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; background: #f7fafc; border: 1px solid #e2e8f0; border-radius: 8px; font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 700; color: #475569; }

/* ===== RECOMMENDATIONS (cross-sells) ===== */
.cvx-cart .cvx-recommendations { margin-top: 32px; }
.cvx-cart .cvx-recommendations h2 { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 700; color: #1a202c; margin-bottom: 8px; letter-spacing: -0.3px; }
.cvx-cart .cvx-rec-sub { font-size: 13px; color: #64748b; margin-bottom: 20px; }
.cvx-cart .cvx-rec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cvx-cart .cvx-rec-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 16px; transition: all 0.25s; }
.cvx-cart .cvx-rec-card:hover { border-color: rgba(37, 99, 235, 0.3); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06); }
.cvx-cart .cvx-rec-img { display: block; width: 100%; aspect-ratio: 1; border-radius: 10px; background: linear-gradient(135deg, #f1f5f9, #e2e8f0); overflow: hidden; margin-bottom: 10px; }
.cvx-cart .cvx-rec-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cvx-cart .cvx-rec-cat { font-size: 10px; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; font-weight: 600; }
.cvx-cart .cvx-rec-name { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 700; color: #1a202c; margin-bottom: 8px; text-decoration: none; line-height: 1.3; }
.cvx-cart .cvx-rec-name:hover { color: #2563eb; }
.cvx-cart .cvx-rec-bottom { display: flex; justify-content: space-between; align-items: center; }
.cvx-cart .cvx-rec-price { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: #1a202c; font-size: 14px; }
.cvx-cart .cvx-rec-price .woocommerce-Price-amount { font-family: inherit; font-size: inherit; font-weight: inherit; color: inherit; }
.cvx-cart .cvx-rec-add { width: 30px; height: 30px; border-radius: 50%; background: #1a202c; color: #fff; display: flex; align-items: center; justify-content: center; transition: all 0.2s; text-decoration: none; }
.cvx-cart .cvx-rec-add:hover { background: #2563eb; transform: scale(1.1); color: #fff; }
.cvx-cart .cvx-rec-add svg { width: 14px; height: 14px; }

/* ===== EMPTY CART ===== */
.cvx-cart-empty { text-align: center; padding: 80px 24px; max-width: 500px; margin: 0 auto; font-family: 'Inter', sans-serif; }
.cvx-cart-empty .cvx-cart-empty-icon { width: 80px; height: 80px; margin: 0 auto 20px; color: #cbd5e1; }
.cvx-cart-empty .cvx-cart-empty-icon svg { width: 100%; height: 100%; }
.cvx-cart-empty h1 { font-family: 'Space Grotesk', sans-serif; font-size: 28px; font-weight: 800; color: #1a202c; margin-bottom: 8px; letter-spacing: -0.4px; }
.cvx-cart-empty p { font-size: 15px; color: #64748b; margin-bottom: 24px; }
.cvx-cart-empty .cvx-cart-empty-cta { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; background: linear-gradient(135deg, #1a202c, #2d3748); color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 700; border: none; border-radius: 12px; cursor: pointer; text-decoration: none; transition: all 0.25s; box-shadow: 0 4px 14px rgba(26, 32, 44, 0.2); }
.cvx-cart-empty .cvx-cart-empty-cta:hover { background: linear-gradient(135deg, #2563eb, #3b82f6); transform: translateY(-1px); box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35); }
.cvx-cart-empty .cvx-cart-empty-cta svg { width: 16px; height: 16px; }

/* Hide theme's default page title on cart page */
.woocommerce-cart .entry-header,
body.page-id-19 .entry-header { display: none !important; }
.woocommerce-cart .entry-content,
body.page-id-19 .entry-content { max-width: none !important; padding: 0 24px !important; }

/* Hide WC's default cart notices wrapper padding around our layout */
.cvx-cart .woocommerce-notices-wrapper { margin-bottom: 12px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .cvx-cart .cvx-cart-layout { grid-template-columns: 1fr; }
  .cvx-cart .cvx-cart-sidebar { position: static; }
  .cvx-cart .cvx-cart-item { grid-template-columns: 70px 1fr; gap: 14px; }
  .cvx-cart .cvx-cart-item-img { width: 70px; height: 70px; }
  .cvx-cart .cvx-cart-item-price { grid-column: 1/-1; flex-direction: row; justify-content: space-between; text-align: left; border-top: 1px solid #f1f5f9; padding-top: 12px; margin-top: 4px; align-items: center; }
  .cvx-cart .cvx-progress-line { width: 30px; }
  .cvx-cart .cvx-progress-label { display: none; }
  .cvx-cart .cvx-rec-grid { grid-template-columns: repeat(2, 1fr); }
  .cvx-cart .cvx-cart-head h1 { font-size: 24px; }
  .cvx-cart .cvx-cart-form-actions { flex-direction: column; align-items: stretch; }
  .cvx-cart .cvx-cart-coupon-inline .coupon { flex-wrap: wrap; }
  .cvx-cart .cvx-cart-coupon-inline #coupon_code { width: 100%; }
}
