/* =====================================================
   Ahmad Print Shop — Cart Page Redesign CSS
   Professional, modern, animated cart flow
   ===================================================== */

/* ─── CART HERO ──────────────────────────────────── */
.cart-hero {
  background: linear-gradient(135deg, #060f1e 0%, #0f2744 100%);
  padding: 40px 0;
  position: relative; overflow: hidden;
}
.cart-hero::before {
  content: ''; position: absolute;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, #1a56b030, transparent 70%);
  top: -100px; right: 10%;
}
.cart-hero-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
}
.cart-hero-kicker {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: #ff6b00; margin-bottom: 6px;
}
.cart-hero-title {
  font-size: clamp(24px, 3vw, 36px); font-weight: 900;
  color: white; margin: 0;
}

/* Progress Steps */
.cart-progress {
  display: flex; align-items: center; gap: 0;
}
.cart-progress-step {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.cart-progress-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4); font-size: 14px;
  transition: all .3s;
}
.cart-progress-step span {
  font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,0.4);
}
.cart-progress-step.active .cart-progress-icon {
  background: #ff6b00; border-color: #ff6b00;
  color: white;
  box-shadow: 0 4px 20px rgba(255,107,0,0.5);
}
.cart-progress-step.active span { color: white; }
.cart-progress-connector {
  width: 48px; height: 2px;
  background: rgba(255,255,255,0.15);
  margin: 0 4px; margin-bottom: 22px;
  transition: background .3s;
}
.cart-progress-connector.active { background: #ff6b00; }

/* ─── SHIPPING BANNER ────────────────────────────── */
.cart-shipping-banner {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid #bfdbfe;
  border-radius: 14px; padding: 14px 20px;
  margin-bottom: 24px;
}
.cart-shipping-banner--free {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border-color: #bbf7d0;
}
.cart-shipping-banner-inner {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.cart-shipping-banner i {
  font-size: 20px; color: #1a56b0;
}
.cart-shipping-banner--free i { color: #16a34a; }
.cart-shipping-text { flex: 1; font-size: 14px; color: #1e3a5f; }
.cart-shipping-text strong { color: #1a56b0; }
.cart-shipping-track {
  flex: 1; min-width: 120px; height: 6px;
  background: rgba(26,86,176,0.15); border-radius: 3px;
  overflow: hidden;
}
.cart-shipping-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #1a56b0, #ff6b00);
  transition: width .5s ease;
}
.cart-shipping-pct {
  font-size: 12px; font-weight: 800; color: #1a56b0;
}
.cart-shipping-banner--free span { font-size: 14px; color: #166534; }

/* ─── CART LAYOUT ────────────────────────────────── */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}

/* ─── CART ITEMS CARD ────────────────────────────── */
.cart-items-card {
  background: white; border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 24px rgba(15,23,42,0.06);
  overflow: hidden;
}
.cart-items-header {
  padding: 18px 24px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex; align-items: center; justify-content: space-between;
}
.cart-items-header h3 {
  font-size: 16px; font-weight: 800; color: #0f172a;
  display: flex; align-items: center; gap: 8px;
}
.cart-items-header h3 i { color: #1a56b0; }
.cart-count-badge {
  background: #1a56b0; color: white;
  font-size: 12px; font-weight: 700;
  padding: 2px 8px; border-radius: 50px;
}
.cart-continue-link {
  font-size: 13px; font-weight: 700; color: #ff6b00;
  text-decoration: none; display: flex; align-items: center; gap: 5px;
}
.cart-continue-link:hover { color: #e05e00; }

.cart-items-body { padding: 8px 0; }

/* ─── CART ITEM ──────────────────────────────────── */
@keyframes cartItemIn {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.cart-item-animate { animation: cartItemIn .4s ease forwards; opacity: 0; }
.cart-item {
  display: flex; gap: 18px; padding: 18px 24px;
  border-bottom: 1px solid #f1f5f9;
  transition: background .2s;
  align-items: flex-start;
}
.cart-item:last-child { border-bottom: none; }
.cart-item:hover { background: #fafbfc; }

.cart-item-img-wrap {
  position: relative; flex-shrink: 0;
}
.cart-item-img {
  width: 96px; height: 96px; object-fit: cover;
  border-radius: 14px; border: 1px solid #e2e8f0;
  display: block;
}
.cart-item-design-thumb {
  position: absolute; bottom: -8px; right: -8px;
  width: 36px; height: 36px; border-radius: 8px;
  overflow: hidden; border: 2.5px solid white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  cursor: pointer;
}
.cart-item-design-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-design-tooltip {
  display: none; position: absolute;
  bottom: calc(100% + 6px); right: 0;
  background: #0f172a; color: white;
  font-size: 11px; padding: 4px 8px; border-radius: 6px;
  white-space: nowrap; z-index: 10;
}
.cart-item-design-thumb:hover .cart-item-design-tooltip { display: block; }

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-cat {
  font-size: 11px; font-weight: 700; color: #1a56b0;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px;
}
.cart-item-name {
  font-size: 15px; font-weight: 800; color: #0f172a; margin-bottom: 8px; line-height: 1.3;
}
.cart-item-opts { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 7px; }
.cart-opt-chip {
  background: #f1f5f9; color: #64748b;
  font-size: 11px; padding: 3px 10px; border-radius: 50px;
}
.cart-opt-chip strong { color: #334155; }
.cart-item-note {
  font-size: 12px; color: #64748b; margin-bottom: 6px;
  display: flex; align-items: flex-start; gap: 5px;
  background: #fffbeb; border-left: 3px solid #f59e0b;
  padding: 6px 10px; border-radius: 0 6px 6px 0;
}
.cart-item-note i { color: #f59e0b; margin-top: 1px; flex-shrink: 0; }
.cart-item-file {
  font-size: 12px; color: #16a34a; font-weight: 600;
  display: flex; align-items: center; gap: 5px; margin-bottom: 6px;
}
.cart-item-unit-price {
  font-size: 12px; color: #94a3b8; margin-bottom: 12px;
  display: flex; align-items: center; gap: 4px;
}
.cart-item-unit-price i { font-size: 10px; }

.cart-item-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}

/* Qty Controls */
.cart-qty-ctrl {
  display: flex; align-items: center;
  border: 1.5px solid #e2e8f0; border-radius: 10px; overflow: hidden;
  height: 38px;
}
.cart-qty-btn {
  width: 38px; height: 38px;
  background: none; border: none;
  color: #64748b; font-size: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.cart-qty-btn:hover { background: #f1f5f9; color: #1a56b0; }
.cart-qty-input {
  width: 48px; height: 38px;
  border: none; text-align: center;
  font-size: 15px; font-weight: 800;
  color: #0f172a; font-family: var(--font);
  outline: none; background: transparent;
}
/* Remove spinners */
.cart-qty-input::-webkit-inner-spin-button,
.cart-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.cart-item-total {
  font-size: 18px; font-weight: 900; color: #1a56b0;
  min-width: 80px;
}

.cart-item-actions { display: flex; gap: 6px; margin-left: auto; }
.cart-action-btn {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; cursor: pointer;
  border: 1.5px solid #e2e8f0; background: white;
  text-decoration: none; transition: all .2s;
}
.cart-action-edit { color: #1a56b0; }
.cart-action-edit:hover { background: #eff6ff; border-color: #1a56b0; }
.cart-action-remove { color: #dc2626; }
.cart-action-remove:hover { background: #fef2f2; border-color: #dc2626; }

.cart-items-footer {
  padding: 14px 24px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
}

/* ─── DESIGN NOTICE ──────────────────────────────── */
.cart-design-notice {
  display: flex; gap: 14px; align-items: flex-start;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: 14px; padding: 16px 20px;
  margin-top: 16px;
}
.cart-design-notice i { color: #16a34a; font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.cart-design-notice strong { display: block; font-size: 14px; color: #166534; margin-bottom: 4px; }
.cart-design-notice p { font-size: 13px; color: #166534; opacity: 0.8; margin: 0; }

/* ─── UPSELL SECTION ─────────────────────────────── */
.cart-upsell {
  margin-top: 20px;
  background: white; border-radius: 16px;
  border: 1px solid #e2e8f0; padding: 20px;
  box-shadow: 0 2px 12px rgba(15,23,42,0.04);
}
.cart-upsell-title {
  font-size: 13px; font-weight: 800; color: #0f172a;
  margin-bottom: 14px; display: flex; align-items: center; gap: 7px;
}
.cart-upsell-title i { color: #ff6b00; }
.cart-upsell-items { display: flex; flex-direction: column; gap: 10px; }
.cart-upsell-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px; border-radius: 10px;
  border: 1px solid #f1f5f9; text-decoration: none;
  transition: all .2s;
}
.cart-upsell-item:hover { border-color: #ff6b00; background: #fff9f5; }
.cart-upsell-img {
  width: 44px; height: 44px; border-radius: 10px;
  background: #f8fafc; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cart-upsell-info { flex: 1; }
.cart-upsell-info strong { font-size: 13px; color: #0f172a; display: block; font-weight: 700; }
.cart-upsell-info span { font-size: 12px; color: #64748b; }
.cart-upsell-add {
  width: 30px; height: 30px; border-radius: 50%;
  background: #ff6b00; color: white; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ─── ORDER SUMMARY CARD ─────────────────────────── */
.cart-summary-card {
  background: white; border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 24px rgba(15,23,42,0.06);
  overflow: hidden;
  position: sticky; top: 88px;
}
.cart-summary-header {
  padding: 18px 22px;
  background: linear-gradient(135deg, #060f1e, #0f2744);
}
.cart-summary-header h3 {
  font-size: 16px; font-weight: 800; color: white;
  display: flex; align-items: center; gap: 8px; margin: 0;
}
.cart-summary-items {
  padding: 16px 22px;
  border-bottom: 1px solid #f1f5f9;
  max-height: 220px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px;
}
.cart-summary-items::-webkit-scrollbar { width: 3px; }
.cart-summary-items::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 3px; }
.cart-summary-row {
  display: flex; align-items: center; gap: 10px;
}
.cart-summary-img-wrap {
  position: relative; flex-shrink: 0;
}
.cart-summary-img-wrap img {
  width: 44px; height: 44px; border-radius: 8px;
  border: 1px solid #e2e8f0; object-fit: cover;
}
.cart-summary-qty {
  position: absolute; top: -6px; right: -6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #1a56b0; color: white;
  font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid white;
}
.cart-summary-name {
  flex: 1; font-size: 13px; font-weight: 600; color: #334155;
  line-height: 1.3;
}
.cart-summary-price {
  font-size: 13px; font-weight: 800; color: #0f172a;
  white-space: nowrap;
}

/* Coupon */
.cart-coupon {
  padding: 16px 22px;
  border-bottom: 1px solid #f1f5f9;
}
.cart-coupon-label {
  font-size: 13px; font-weight: 700; color: #334155;
  margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}
.cart-coupon-label i { color: #ff6b00; }
.cart-coupon-row { display: flex; gap: 8px; }
.cart-coupon-input {
  flex: 1; height: 40px; border: 1.5px solid #e2e8f0;
  border-radius: 10px; padding: 0 12px;
  font-size: 13px; font-family: var(--font);
  outline: none; transition: border .2s;
  text-transform: uppercase;
}
.cart-coupon-input:focus { border-color: #ff6b00; }
.cart-coupon-btn {
  height: 40px; padding: 0 16px;
  background: #ff6b00; color: white;
  border: none; border-radius: 10px;
  font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: var(--font);
  transition: background .2s;
}
.cart-coupon-btn:hover { background: #e05e00; }
.cart-coupon-msg {
  font-size: 12px; padding: 7px 10px;
  border-radius: 8px; margin-top: 8px;
  display: flex; align-items: center; gap: 6px;
}
.cart-coupon-success { background: #f0fdf4; color: #166534; }
.cart-coupon-error { background: #fef2f2; color: #991b1b; }

/* Totals */
.cart-totals { padding: 16px 22px; border-bottom: 1px solid #f1f5f9; }
.cart-total-row {
  display: flex; justify-content: space-between;
  align-items: center; padding: 7px 0;
  font-size: 14px; color: #64748b;
}
.cart-total-row span:last-child { font-weight: 700; color: #334155; }
.cart-free-ship {
  background: #dcfce7; color: #16a34a;
  font-size: 12px; font-weight: 800;
  padding: 3px 10px; border-radius: 50px;
  display: inline-flex; align-items: center; gap: 4px;
}
.cart-total-savings span { color: #dc2626 !important; }
.cart-total-grand {
  font-size: 16px; font-weight: 900 !important;
  border-top: 2px solid #e2e8f0; margin-top: 6px; padding-top: 12px;
  color: #0f172a !important;
}
.cart-total-grand span { color: #0f172a !important; font-size: 20px; }

/* Payment methods */
.cart-payment-methods {
  padding: 12px 22px; border-bottom: 1px solid #f1f5f9;
}
.cart-payment-title {
  font-size: 11px; font-weight: 700; color: #94a3b8;
  text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 8px;
}
.cart-payment-icons {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.cart-payment-icons span {
  display: inline-flex; align-items: center; gap: 5px;
  background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 8px; padding: 5px 10px;
  font-size: 11px; font-weight: 700; color: #64748b;
}
.cart-payment-icons i { color: #1a56b0; }

/* Checkout Button */
.cart-checkout-btn {
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  margin: 14px 16px 0; padding:16px 18px; border-radius:18px;
  background: linear-gradient(135deg, #ff6b00 0%, #ff9f43 100%);
  color:white; text-decoration:none; transition:all .28s;
  box-shadow:0 16px 30px rgba(255,107,0,.28);
}
.cart-checkout-btn:hover { transform: translateY(-2px); box-shadow:0 20px 36px rgba(255,107,0,.34); color:white; }
.cart-checkout-copy { display:grid; gap:4px; }
.cart-checkout-kicker { display:inline-flex; align-items:center; gap:7px; font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; opacity:.88; }
.cart-checkout-copy strong { font-size:18px; line-height:1.15; }
.cart-checkout-total { display:inline-flex; align-items:center; justify-content:center; min-width:94px; padding:10px 14px; border-radius:999px; background:rgba(255,255,255,.18); font-size:15px; font-weight:900; }

.cart-wa-btn { display:none; align-items:center; justify-content:center; gap:10px; margin:12px 16px 0; padding:13px 18px; background:#25d366; color:white; text-decoration:none; font-size:14px; font-weight:700; border-radius:16px; transition:background .2s; }
.cart-wa-btn:hover { background:#22c55e; color:white; }
.cart-wa-btn i { font-size:18px; }

/* Trust strip */
.cart-trust-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; border-top: 1px solid #f1f5f9;
}
.cart-trust-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 6px; font-size: 11px; font-weight: 600; color: #64748b;
  border-right: 1px solid #f1f5f9;
}
.cart-trust-item:last-child { border-right: none; }
.cart-trust-item i { font-size: 16px; color: #1a56b0; }

/* Guarantee */
.cart-guarantee {
  display: flex; gap: 14px; align-items: flex-start;
  background: white; border: 1px solid #e2e8f0;
  border-radius: 16px; padding: 16px 20px;
  margin-top: 16px;
  box-shadow: 0 2px 12px rgba(15,23,42,0.04);
}
.cart-guarantee strong { display: block; font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.cart-guarantee p { font-size: 13px; color: #64748b; margin: 0; }

/* ─── EMPTY CART ─────────────────────────────────── */
.cart-empty {
  text-align: center; padding: 80px 24px;
  background: white; border-radius: 24px;
  border: 1px solid #e2e8f0; margin: 0 0 60px;
}
.cart-empty-icon { margin: 0 auto 24px; }
.cart-empty h2 { font-size: 28px; font-weight: 900; margin-bottom: 10px; }
.cart-empty p { font-size: 15px; color: #64748b; margin-bottom: 28px; }
.cart-empty-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.cart-empty-cats { margin-top: 40px; }
.cart-empty-cats-title {
  font-size: 13px; font-weight: 700; color: #94a3b8;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px;
}
.cart-empty-cats-grid { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.cart-empty-cat {
  display: inline-flex; align-items: center; gap: 7px;
  background: #f8fafc; border: 1px solid #e2e8f0;
  color: #334155; padding: 10px 18px; border-radius: 12px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: all .2s;
}
.cart-empty-cat:hover { background: #eff6ff; border-color: #1a56b0; color: #1a56b0; }
.cart-empty-cat i { color: #ff6b00; }

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary-card { position: static; }
  .cart-progress { gap: 0; }
  .cart-progress-connector { width: 28px; }
}
@media (max-width: 600px) {
  .cart-hero-inner { flex-direction: column; align-items: flex-start; }
  .cart-checkout-btn { margin: 14px 12px 0; padding:14px 16px; }
  .cart-checkout-copy strong { font-size:16px; }
  .cart-checkout-total { min-width:80px; padding:8px 12px; }
  .cart-wa-btn { display:flex; margin:12px 12px 0; }
  .cart-item { flex-direction: column; }
  .cart-item-img { width: 100%; height: 180px; }
  .cart-trust-strip { grid-template-columns: repeat(2, 1fr); }
  .cart-trust-item:nth-child(2) { border-right: none; }
  .cart-trust-item:nth-child(3) { border-top: 1px solid #f1f5f9; }
  .cart-trust-item:nth-child(4) { border-top: 1px solid #f1f5f9; }
  .cart-progress { display: none; }
}
