:root{
  --cv-bg: #ffffff;
  --cv-soft: #f6f8fc;
  --cv-card: #ffffff;
  --cv-border: rgba(15, 23, 42, 0.10);
  --cv-text: #0b1220;
  --cv-muted: rgba(11, 18, 32, 0.72);
  --cv-muted2: rgba(11, 18, 32, 0.56);
  --cv-primary: #0b2a6f;
  --cv-primary-2: #1648c8;
  --cv-shadow: 0 18px 55px rgba(2, 6, 23, 0.10);
  --cv-shadow2: 0 12px 30px rgba(2, 6, 23, 0.10);
  --cv-radius: 16px;
}

.cv-cart{
  background: var(--cv-bg);
  color: var(--cv-text);
}

.cv-cart-hero{
  padding: 74px 0 26px 0;
  background:
    radial-gradient(1200px 350px at 20% 0%, rgba(22,72,200,0.10), transparent 55%),
    radial-gradient(1200px 350px at 80% 10%, rgba(14,165,233,0.08), transparent 55%),
    linear-gradient(180deg, #ffffff, #ffffff);
  border-bottom: 1px solid var(--cv-border);
}

.cv-cart-breadcrumb{
  color: var(--cv-muted2);
  font-size: 13px;
  margin-bottom: 10px;
}
.cv-cart-breadcrumb a{
  color: var(--cv-muted2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.cv-cart-breadcrumb a:hover{ color: var(--cv-text); border-bottom-color: var(--cv-border); }
.cv-cart-breadcrumb__sep{ margin: 0 8px; color: rgba(11,18,32,0.35); }

.cv-cart-title{
  font-weight: 1000;
  letter-spacing: -0.03em;
  margin: 0 0 6px 0;
  font-size: clamp(28px, 3vw, 38px);
}
.cv-cart-subtitle{ color: var(--cv-muted); }

.cv-cart-kpi{
  display: flex;
  justify-content: end;
  gap: 10px;
  align-items: baseline;
  border: 1px solid var(--cv-border);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.8);
  box-shadow: 0 1px 0 rgba(2,6,23,0.02);
}
.cv-cart-kpi__label{ color: var(--cv-muted2); font-weight: 900; font-size: 12px; }
.cv-cart-kpi__value{ font-weight: 1000; font-size: 18px; color: rgba(11,42,111,0.95); }

.cv-cart-body{ padding: 44px 0 60px 0; background: var(--cv-soft); }

.cv-cart-panel{
  background: var(--cv-card);
  border: 1px solid var(--cv-border);
  border-radius: var(--cv-radius);
  box-shadow: 0 1px 0 rgba(2,6,23,0.02);
  padding: 16px;
}
.cv-cart-panel__head{
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(15,23,42,0.10);
}
.cv-cart-panel__title{ font-weight: 1000; letter-spacing: -0.02em; }
.cv-cart-panel__sub{ color: var(--cv-muted); font-size: 13px; }
.cv-cart-link{
  color: rgba(11,42,111,0.95);
  text-decoration: none;
  font-weight: 900;
  border-bottom: 0;
}
.cv-cart-link:hover{ text-decoration: none; }

.cv-cart-item__title a,
.cv-cart-item__title a:hover,
.cv-cart-item__title a:focus{
  text-decoration: none;
  border-bottom: 0;
}

.cv-cart-item{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 16px;
  background: rgba(255,255,255,0.9);
  margin-top: 12px;
}
.cv-cart-item__title{
  font-weight: 950;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.cv-cart-item__meta{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
  color: var(--cv-muted2);
  font-size: 12px;
}
.cv-cart-pill{
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(22,72,200,0.16);
  background: rgba(22,72,200,0.08);
  color: rgba(11,42,111,0.95);
  font-weight: 900;
}
.cv-cart-muted{ color: var(--cv-muted2); }

.cv-cart-item__price{ text-align: right; min-width: 140px; }
.cv-cart-item__priceNow{ font-weight: 1000; color: rgba(11,42,111,0.95); font-size: 18px; }
.cv-cart-item__priceNote{ color: var(--cv-muted2); font-size: 12px; margin-top: 2px; }

.cv-cart-item__actions{
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 10px;
}

.cv-cart-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 950;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  text-decoration: none !important;
  cursor: pointer;
  line-height: 1.1;
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}
.cv-cart-btn:focus{ outline: none; }
.cv-cart-btn:focus-visible{
  box-shadow: 0 0 0 4px rgba(22,72,200,0.18);
}
.cv-cart-btn--primary{
  width: 100%;
  background: linear-gradient(135deg, var(--cv-primary), var(--cv-primary-2));
  color: #fff !important;
  border-color: rgba(11,42,111,0.2);
}
.cv-cart-btn--primary:hover{ filter: brightness(1.02); transform: translateY(-1px); }
.cv-cart-btn--ghost{
  background: #ffffff;
  border-color: rgba(15,23,42,0.14);
  color: rgba(11,18,32,0.9) !important;
}
.cv-cart-btn--ghost:hover{ border-color: rgba(15,23,42,0.24); transform: translateY(-1px); }
.cv-cart-btn--danger{
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(239,68,68,0.10);
  border-color: rgba(239,68,68,0.18);
  color: rgba(127,29,29,0.95);
}
.cv-cart-btn--danger:hover{ background: rgba(239,68,68,0.14); }

.cv-cart-empty{
  margin-top: 12px;
  padding: 18px;
  border-radius: 16px;
  border: 1px dashed rgba(15,23,42,0.22);
  background: rgba(255,255,255,0.85);
}
.cv-cart-empty__title{ font-weight: 1000; letter-spacing: -0.02em; }
.cv-cart-empty__sub{ color: var(--cv-muted); margin-top: 6px; margin-bottom: 12px; }

.cv-cart-summary{
  padding-top: 28px;
}
.cv-cart-summary__card{
  position: sticky;
  top: 120px;
  background: var(--cv-card);
  border: 1px solid var(--cv-border);
  border-radius: 18px;
  box-shadow: var(--cv-shadow);
  padding: 16px;
}
.cv-cart-summary__head{ padding-bottom: 12px; border-bottom: 1px solid rgba(15,23,42,0.10); margin-bottom: 12px; }
.cv-cart-summary__title{ font-weight: 1000; letter-spacing: -0.02em; }
.cv-cart-summary__sub{ color: var(--cv-muted); font-size: 13px; margin-top: 4px; }

.cv-cart-coupon{ margin-top: 12px; }
.cv-cart-coupon__title{ font-weight: 950; font-size: 12px; color: rgba(11,18,32,0.72); }
.cv-cart-coupon__form{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 8px;
}
.cv-cart-input{
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,0.16);
  height: 44px;
  padding: 0 12px;
}
.cv-cart-input:focus{
  outline: none;
  border-color: rgba(22,72,200,0.40);
  box-shadow: 0 0 0 4px rgba(22,72,200,0.12);
}

.cv-cart-breakdown{
  margin-top: 14px;
  border-top: 1px solid rgba(15,23,42,0.10);
  padding-top: 12px;
  max-height: 520px;
  transition: max-height 200ms ease, margin-top 200ms ease, padding-top 200ms ease, border-top-width 200ms ease;
}
.cv-row{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  color: rgba(11,18,32,0.82);
}
.cv-row--total{
  border-top: 1px solid rgba(15,23,42,0.10);
  margin-top: 8px;
  padding-top: 12px;
  font-weight: 1000;
}
.cv-val{ font-weight: 900; color: rgba(11,18,32,0.92); }
.cv-neg{ color: rgba(6,95,70,0.95); }

.cv-cart-summary__actions{
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.is-hidden{ display: none !important; }

.cv-cart-btn.is-disabled{
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(0.2);
  transform: none !important;
  pointer-events: none;
}

.cv-cart-item.is-removing{
  opacity: 0.6;
  filter: grayscale(0.15);
  pointer-events: none;
}

.cv-cart-breakdown.is-collapsed{
  max-height: 0;
  overflow: hidden;
  padding-top: 0;
  border-top: 0;
  margin-top: 0;
}

.cv-cart-coupon__note{
  color: var(--cv-muted2);
  font-size: 12px;
  margin-top: 8px;
}

.cv-cart-toast{
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 680px;
  margin: 0 auto;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(15,23,42,0.16);
  border-radius: 16px;
  box-shadow: var(--cv-shadow2);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: transform 180ms ease, opacity 180ms ease;
  z-index: 9999;
}
.cv-cart-toast.is-visible{
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cv-cart-toast__text{ color: rgba(11,18,32,0.9); font-weight: 900; }
.cv-cart-toast__btn{
  margin-left: auto;
  background: rgba(22,72,200,0.08);
  border: 1px solid rgba(22,72,200,0.18);
  color: rgba(11,42,111,0.95);
  font-weight: 950;
  border-radius: 12px;
  padding: 8px 12px;
}
.cv-cart-toast__btn:hover{ background: rgba(22,72,200,0.12); }
.cv-cart-toast__close{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,0.14);
  background: #fff;
  font-size: 22px;
  line-height: 1;
}
.cv-cart-toast__close:hover{ border-color: rgba(15,23,42,0.22); }

.cv-cart-trust{
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(15,23,42,0.10);
  display: grid;
  gap: 8px;
  color: var(--cv-muted2);
  font-size: 13px;
}
.cv-cart-trust__item i{ color: rgba(22,72,200,0.85); margin-right: 6px; }

@media (max-width: 991px){
  .cv-cart-summary__card{ position: static; }
  .cv-cart-kpi{ justify-content: start; margin-top: 10px; }
}

@media (max-width: 575px){
  .cv-cart-item{ grid-template-columns: 1fr; }
  .cv-cart-item__price{ text-align: left; }
  .cv-cart-item__actions{ justify-content: start; }
}

@media (prefers-reduced-motion: reduce){
  .cv-cart-btn{ transition: none; }
  .cv-cart-btn--primary:hover,
  .cv-cart-btn--ghost:hover{ transform: none; }
}
