.cv-cart-notification {
  position: fixed;
  top: 90px;
  right: 24px;
  z-index: 99999;

  max-width: 360px;
  padding: 16px 22px;

  background: #17231c;
  color: #fff;
  border: 1px solid #d4a83f;
  border-radius: 10px;

  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;

  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);

  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s;
  pointer-events: none;
}

.cv-cart-notification.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cv-cart-notification.is-error {
  background: #3a1717;
  border-color: #dc3337;
}

@media (max-width: 767px) {
  .cv-cart-notification {
    top: 80px;
    left: 16px;
    right: 16px;
    max-width: none;
  }
}

/* ========================================
   CART PAGE
======================================== */

.cv-cart-page {
  padding: 56px 0 96px;
  color: var(--cv-text);
}

.cv-cart-page__header {
  margin-bottom: 40px;
}

.cv-cart-page__eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--cv-gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}

.cv-cart-page__header h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.2;
}

.cv-cart-page__header p {
  margin: 0;
  color: var(--cv-muted);
  font-size: 15px;
}

/* ========================================
   LAYOUT
======================================== */

.cv-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 28px;
}

.cv-cart-products,
.cv-cart-summary {
  min-width: 0;
  padding: 26px;
  background: var(--cv-surface);
  border: 1px solid var(--cv-border);
  border-radius: 16px;
}

/* ========================================
   PRODUCTS HEADING
======================================== */

.cv-cart-products__heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.cv-cart-products__heading h2,
.cv-cart-summary h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
}

.cv-cart-products__count {
  color: var(--cv-muted);
  font-size: 13px;
  white-space: nowrap;
}

/* ========================================
   CART ITEMS
======================================== */

.cv-cart-items {
  display: flex;
  flex-direction: column;
}

.cv-cart-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--cv-border);
}

.cv-cart-item:first-child {
  padding-top: 0;
}

.cv-cart-item__image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 112px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--cv-bg);
}

.cv-cart-item__image img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.cv-cart-item__content {
  min-width: 0;
}

.cv-cart-item__content h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.cv-cart-item__content h3 a {
  color: var(--cv-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.cv-cart-item__content h3 a:hover {
  color: var(--cv-gold);
}

.cv-cart-item__price {
  display: block;
  margin-bottom: 16px;
  color: var(--cv-muted);
  font-size: 13px;
}

.cv-cart-item__controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.cv-cart-item__subtotal {
  color: var(--cv-text);
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}

.cv-cart-item__subtotal span {
  font-size: 12px;
  font-weight: 600;
  color: var(--cv-muted);
}

/* ========================================
   QUANTITY CONTROLS
======================================== */

.cv-cart-quantity {
  display: inline-flex;
  align-items: center;
  height: 38px;
  overflow: hidden;
  border: 1px solid var(--cv-border);
  border-radius: 8px;
  background: var(--cv-bg);
}

.cv-cart-quantity button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cv-text);
  font-size: 19px;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.cv-cart-quantity button:hover {
  color: var(--cv-gold);
  background: var(--cv-surface);
}

.cv-cart-quantity__input {
  width: 44px;
  height: 100%;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--cv-text);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}

.cv-cart-quantity__input::-webkit-inner-spin-button,
.cv-cart-quantity__input::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.cv-cart-item__remove {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cv-muted);
  font-size: 12px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.cv-cart-item__remove:hover {
  color: #ef4444;
}

/* ========================================
   CONTINUE SHOPPING
======================================== */

.cv-cart-continue {
  display: inline-flex;
  align-items: center;
  margin-top: 24px;
  color: var(--cv-gold);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.cv-cart-continue:hover {
  opacity: 0.75;
}

/* ========================================
   ORDER SUMMARY
======================================== */

.cv-cart-summary {
  position: sticky;
  top: 24px;
}

.cv-cart-summary h2 {
  margin-bottom: 28px;
}

.cv-cart-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  color: var(--cv-muted);
  font-size: 13px;
}

.cv-cart-summary__row > :last-child {
  text-align: right;
}

.cv-cart-summary__row strong {
  color: var(--cv-text);
  font-weight: 700;
  white-space: nowrap;
}

.cv-cart-summary__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--cv-border);
  font-size: 13px;
  font-weight: 700;
}

.cv-cart-summary__total-value {
  color: var(--cv-gold);
  font-size: 21px;
  font-weight: 800;
  white-space: nowrap;
}

.cv-cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--cv-gold);
  border-radius: 9px;
  background: var(--cv-gold);
  color: #11151b;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.cv-cart-button:hover {
  opacity: 0.85;
}

.cv-cart-checkout {
  width: 100%;
  margin-top: 28px;
}

.cv-cart-summary__note {
  margin: 18px 0 0;
  color: var(--cv-muted);
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
}

/* ========================================
   EMPTY CART
======================================== */

.cv-cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 560px;
  margin: 0 auto;
  padding: 72px 24px;
  border: 1px solid var(--cv-border);
  border-radius: 16px;
  background: var(--cv-surface);
  text-align: center;
}

.cv-cart-empty__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  margin-bottom: 24px;
  border: 1px solid var(--cv-border);
  border-radius: 50%;
  background: var(--cv-bg);
  color: var(--cv-gold);
}

.cv-cart-empty__icon svg {
  width: 34px;
  height: 34px;
}

.cv-cart-empty h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.cv-cart-empty p {
  margin: 0 0 28px;
  color: var(--cv-muted);
  font-size: 14px;
}

/* ========================================
   TABLET
======================================== */

@media (max-width: 1023px) {
  .cv-cart-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .cv-cart-summary {
    position: static;
  }
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 767px) {
  .cv-cart-page {
    padding: 32px 0 64px;
  }

  .cv-cart-page__header {
    margin-bottom: 28px;
  }

  .cv-cart-page__header p {
    font-size: 13px;
    line-height: 1.6;
  }

  .cv-cart-products,
  .cv-cart-summary {
    padding: 18px;
    border-radius: 12px;
  }

  .cv-cart-products__heading h2,
  .cv-cart-summary h2 {
    font-size: 17px;
  }

  .cv-cart-item {
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    padding: 20px 0;
  }

  .cv-cart-item__image {
    width: 76px;
    height: 100px;
  }

  .cv-cart-item__content h3 {
    font-size: 13px;
  }

  .cv-cart-item__controls {
    gap: 12px;
  }

  .cv-cart-item__subtotal {
    grid-column: 2;
    font-size: 16px;
  }

  .cv-cart-summary__total-value {
    font-size: 19px;
  }

  .cv-cart-empty {
    padding: 56px 20px;
  }
}
.cv-cart-item.is-updating {
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
