/* ═══════════════════════════════════════════
   Zovino — Cart page
═══════════════════════════════════════════ */
#zv-cart {
  --ink: #0F172A;
  --sub: #64748B;
  --border: rgba(15, 23, 42, 0.08);
  --blue: #2563EB;
  --green: #059669;
  --red: #DC2626;
  --ff: 'Vazirmatn', sans-serif;
  direction: rtl;
  font-family: var(--ff);
  padding: 28px 0 80px;
  background: #F8FAFC;
  min-height: 60vh;
}
#zv-cart *, #zv-cart *::before, #zv-cart *::after { box-sizing: border-box; }
#zv-cart .zv-con { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
#zv-cart .zv-glass {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(15,23,42,.05);
}

/* ── Empty ── */
.zv-cart-empty { display: flex; flex-direction: column; gap: 36px; }
.zv-cart-empty-card {
  text-align: center;
  padding: 48px 28px;
  max-width: 520px;
  margin: 0 auto;
}
.zv-cart-empty-icon {
  width: 88px; height: 88px; margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(37,99,235,.08);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.zv-cart-empty-title {
  margin: 0 0 10px;
  font-size: 22px; font-weight: 800; color: var(--ink);
}
.zv-cart-empty-desc {
  margin: 0 0 22px;
  font-size: 14px; color: var(--sub); line-height: 1.8;
}
.zv-cart-empty-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: 12px;
  background: linear-gradient(135deg, #2563EB, #60A5FA);
  color: #fff !important; font-weight: 800; font-size: 14px;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(37,99,235,.28);
  transition: transform .2s, box-shadow .2s;
}
.zv-cart-empty-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(37,99,235,.35); }

/* ── Head ── */
.zv-cart-head { margin-bottom: 22px; }
.zv-cart-title {
  margin: 0; font-size: 24px; font-weight: 800; color: var(--ink);
}
.zv-cart-title-count { font-size: 15px; font-weight: 600; color: var(--sub); }

/* ── Layout ── */
.zv-cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 22px;
  align-items: start;
}
.zv-cart-items { display: flex; flex-direction: column; gap: 14px; }

/* ── Item ── */
.zv-cart-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 16px;
  transition: opacity .2s, transform .2s;
}
.zv-cart-item.is-removing { opacity: .4; transform: scale(.98); pointer-events: none; }
.zv-cart-item-thumb {
  display: flex; align-items: center; justify-content: center;
  width: 96px; height: 96px;
  border-radius: 14px;
  background: #F1F5F9;
  overflow: hidden;
  flex-shrink: 0;
}
.zv-cart-item-thumb img,
.zv-cart-item-img {
  max-width: 88%; max-height: 88%;
  width: auto; height: auto;
  object-fit: contain;
}
.zv-cart-item-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.zv-cart-item-top {
  display: flex; justify-content: space-between; gap: 12px;
  align-items: flex-start;
}
.zv-cart-item-title {
  margin: 0 0 6px;
  font-size: 15px; font-weight: 700; line-height: 1.5;
}
.zv-cart-item-title a { color: var(--ink); text-decoration: none; }
.zv-cart-item-title a:hover { color: var(--blue); }
.zv-cart-item-attrs,
.zv-cart-item-fields {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 3px;
}
.zv-cart-item-attrs li,
.zv-cart-item-fields li {
  font-size: 12px; color: var(--sub); line-height: 1.5;
}
.zv-cart-field-label { font-weight: 600; color: #475569; }
.zv-cart-item-prices {
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  flex-shrink: 0;
}
.zv-cart-item-regular {
  font-size: 12px; color: var(--sub);
}
.zv-cart-item-unit {
  font-size: 14px; font-weight: 800; color: var(--ink);
}
.zv-cart-item-bottom {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
}
.zv-cart-item-qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.zv-cart-qty-btn {
  width: 34px; height: 34px;
  border: none; background: transparent;
  font-size: 16px; font-weight: 700; color: var(--ink);
  cursor: pointer;
  transition: background .15s;
}
.zv-cart-qty-btn:hover { background: #F1F5F9; }
.zv-cart-qty-input {
  width: 42px; height: 34px;
  border: none; border-inline: 1px solid var(--border);
  text-align: center;
  font-size: 13.5px; font-weight: 700;
  font-family: inherit;
  color: var(--ink);
  -moz-appearance: textfield;
}
.zv-cart-qty-input::-webkit-outer-spin-button,
.zv-cart-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.zv-cart-item-line {
  margin-inline-start: auto;
  font-size: 15px; font-weight: 900; color: var(--blue);
}
.zv-cart-item-remove {
  width: 36px; height: 36px;
  border: none; border-radius: 10px;
  background: rgba(220,38,38,.07);
  color: var(--red);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, transform .15s;
}
.zv-cart-item-remove:hover { background: rgba(220,38,38,.14); transform: scale(1.05); }

/* ── Summary ── */
.zv-cart-sidebar { position: sticky; top: 88px; }
.zv-cart-summary { padding: 20px 18px 18px; }
.zv-cart-summary-title {
  margin: 0 0 16px;
  font-size: 16px; font-weight: 800; color: var(--ink);
  text-align: center;
}
.zv-cart-summary-rows { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.zv-cart-summary-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--sub);
}
.zv-cart-summary-row strong { color: var(--ink); font-weight: 800; font-size: 14px; }
.zv-cart-savings strong { color: var(--green) !important; }
.zv-cart-coupon-disc strong { color: var(--green) !important; }
.zv-cart-total-row {
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 14.5px; font-weight: 700; color: var(--ink);
}
.zv-cart-total-row strong {
  font-size: 17px; color: var(--ink);
}
.is-hidden { display: none !important; }

/* Coupon */
.zv-cart-coupon { margin-bottom: 14px; }
.zv-cart-coupon-label {
  display: block; margin-bottom: 8px;
  font-size: 12.5px; font-weight: 700; color: var(--sub);
}
.zv-cart-coupon-form { display: flex; gap: 8px; }
.zv-cart-coupon-input {
  flex: 1; min-width: 0;
  height: 42px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: 13px;
  background: #fff; color: var(--ink);
}
.zv-cart-coupon-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.zv-cart-coupon-btn {
  height: 42px; padding: 0 16px;
  border: none; border-radius: 10px;
  background: #0F172A; color: #fff;
  font-family: inherit; font-weight: 700; font-size: 13px;
  cursor: pointer; white-space: nowrap;
  transition: background .2s;
}
.zv-cart-coupon-btn:hover { background: #1E293B; }
.zv-cart-coupon-btn:disabled { opacity: .6; cursor: wait; }
.zv-cart-coupon-msg {
  margin: 8px 0 0;
  font-size: 12px; font-weight: 600;
}
.zv-cart-coupon-msg.is-ok { color: var(--green); }
.zv-cart-coupon-msg.is-err { color: var(--red); }
.zv-cart-coupon-list {
  list-style: none; margin: 10px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.zv-cart-coupon-list li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(16,185,129,.1);
  border: 1px solid rgba(16,185,129,.25);
  font-size: 12px; font-weight: 700; color: var(--green);
}
.zv-cart-coupon-remove {
  border: none; background: transparent;
  color: var(--green); cursor: pointer; font-size: 12px;
  line-height: 1; padding: 0;
}

.zv-cart-checkout-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  color: #fff !important; font-weight: 800; font-size: 15px;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(37,99,235,.28);
  transition: transform .2s, box-shadow .2s;
}
.zv-cart-checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(37,99,235,.35);
}
.zv-cart-checkout-hint {
  margin: 12px 0 0;
  font-size: 11.5px; color: var(--sub); line-height: 1.7;
  text-align: center;
}

/* ── Related / Wishlist ── */
.zv-cart-section {
  margin-top: 36px;
  padding: 28px 22px 32px;
  border-radius: 20px;
}
/* پس‌زمینه متمایز برای بخش محصولات مشابه / پیشنهادی */
.zv-cart-section-alt {
  background: linear-gradient(145deg, #EEF2FF 0%, #E0E7FF 55%, #DBEAFE 100%);
  border: 1px solid rgba(37,99,235,.1);
}
/* علاقه‌مندی‌ها */
.zv-cart-section-wish {
  background: linear-gradient(145deg, #FDF2F8 0%, #FCE7F3 50%, #FBCFE8 100%);
  border: 1px solid rgba(219,39,119,.1);
}
.zv-cart-section-head { margin-bottom: 18px; }
.zv-cart-section-head h2 {
  margin: 0; font-size: 18px; font-weight: 800; color: var(--ink);
}
.zv-cart-rel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.zv-cart-rel-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid rgba(15,23,42,.06);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none; color: inherit;
  box-shadow: 0 4px 14px rgba(15,23,42,.05);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.zv-cart-rel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(37,99,235,.12);
  border-color: rgba(37,99,235,.2);
}
.zv-cart-rel-thumb {
  height: 120px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 100%);
}
.zv-cart-rel-thumb img,
.zv-cart-rel-img {
  max-width: 70%; max-height: 70%;
  object-fit: contain;
}
.zv-cart-rel-body { padding: 12px 14px 14px; }
.zv-cart-rel-title {
  margin: 0 0 10px;
  font-size: 13px; font-weight: 700; color: var(--ink);
  line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.zv-cart-rel-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.zv-cart-rel-price { font-size: 13px; font-weight: 800; color: var(--blue); }
.zv-cart-rel-arrow {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(37,99,235,.1);
  color: var(--blue);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  transition: background .2s, transform .2s;
}
.zv-cart-rel-card:hover .zv-cart-rel-arrow {
  background: var(--blue);
  color: #fff;
  transform: translateX(-3px);
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .zv-cart-layout { grid-template-columns: 1fr; }
  .zv-cart-sidebar { position: static; order: -1; }
  .zv-cart-rel-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  #zv-cart { padding: 18px 0 100px; }
  .zv-cart-title { font-size: 20px; }
  .zv-cart-item { grid-template-columns: 72px 1fr; gap: 12px; padding: 12px; }
  .zv-cart-item-thumb { width: 72px; height: 72px; border-radius: 12px; }
  .zv-cart-item-title { font-size: 13.5px; }
  .zv-cart-rel-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .zv-cart-rel-thumb { height: 100px; }
}


/* ── اسلایدر محصولات مشابه / علاقه‌مندی ── */
.zv-cart-swiper {
  position: relative;
  padding-bottom: 36px;
  overflow: hidden;
}
.zv-cart-swiper .swiper-slide {
  height: auto;
}
.zv-cart-swiper .zv-cart-rel-card {
  height: 100%;
}
.zv-cart-nav {
  width: 36px !important;
  height: 36px !important;
  background: #fff !important;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 50% !important;
  box-shadow: 0 4px 12px rgba(15,23,42,.1);
  color: #0F172A !important;
  top: 42% !important;
}
.zv-cart-nav::after {
  font-size: 14px !important;
  font-weight: 800;
}
.zv-cart-prev { right: 4px !important; left: auto !important; }
.zv-cart-next { left: 4px !important; right: auto !important; }
.zv-cart-pagination {
  bottom: 4px !important;
}
.zv-cart-pagination .swiper-pagination-bullet {
  background: #2563EB;
  opacity: .25;
}
.zv-cart-pagination .swiper-pagination-bullet-active {
  opacity: 1;
}
@media (max-width: 640px) {
  .zv-cart-nav { display: none !important; }
}
