.fs-cart-page {
  padding: 24px 0 60px;
}

.fs-cart-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fs-cart-header__inner {
  width: var(--fs-width);
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.fs-cart-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fs-cart-nav a {
  color: var(--fs-text);
  font-weight: 700;
}

.fs-cart-page__content {
  padding-top: 28px;
}

.fs-cart-page__hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.fs-cart-page__eyebrow {
  margin: 0 0 10px;
  color: var(--fs-cool);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fs-cart-page__hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.7rem, 4vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.fs-cart-page__hero p {
  margin: 0;
  color: var(--fs-text-muted);
  font-size: 1.08rem;
}

.fs-cart-page__hero-actions {
  display: grid;
  gap: 16px;
  justify-items: end;
}

.fs-cart-page__secure {
  display: flex;
  align-items: center;
  gap: 14px;
}

.fs-cart-page__secure strong,
.fs-cart-benefits__title {
  display: block;
  margin-bottom: 4px;
  font-weight: 800;
}

.fs-cart-page__secure span,
.fs-cart-benefits__text {
  color: var(--fs-text-muted);
}

.fs-cart-page__clear {
  min-height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--fs-text);
  font: inherit;
  font-weight: 700;
}

.fs-cart-page__clear:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

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

.fs-cart-panel {
  border-radius: 24px;
  background: var(--fs-surface);
  border: 1px solid var(--fs-border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.fs-cart-panel--items {
  padding: 18px;
}

.fs-cart-panel--summary {
  padding: 24px;
  position: sticky;
  top: 120px;
}

.fs-cart-panel--summary h2 {
  margin: 0 0 20px;
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.fs-cart-page__empty {
  padding: 26px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.fs-cart-page__empty h2 {
  margin: 0 0 10px;
  font-size: 1.9rem;
  line-height: 1.1;
}

.fs-cart-page__empty p {
  margin: 0 0 18px;
  color: var(--fs-text-muted);
  line-height: 1.6;
}

.fs-cart-page__back {
  min-height: 54px;
}

.fs-cart-page__list {
  display: grid;
  gap: 14px;
}

.fs-cart-item {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.fs-cart-item__thumb {
  min-height: 124px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.18), transparent 48%),
    linear-gradient(180deg, var(--fs-cart-tone-start) 0%, var(--fs-cart-tone-end) 100%);
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
  letter-spacing: 0.08em;
}

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

.fs-cart-item__top,
.fs-cart-item__bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.fs-cart-item__top {
  align-items: flex-start;
}

.fs-cart-item__bottom {
  align-items: center;
  margin-top: 18px;
}

.fs-cart-item__eyebrow {
  margin: 0 0 10px;
  color: var(--fs-cool);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.fs-cart-item__name {
  display: inline-block;
  font-size: 1.85rem;
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.fs-cart-item__meta {
  margin: 10px 0 0;
  color: var(--fs-text-muted);
}

.fs-cart-item__price {
  text-align: right;
}

.fs-cart-item__price strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.fs-cart-item__price span {
  color: var(--fs-text-muted);
  font-size: 0.95rem;
}

.fs-cart-item__link {
  color: var(--fs-cool);
  font-weight: 700;
}

.fs-cart-item__controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.fs-cart-item__qty {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.fs-cart-item__qty button,
.fs-cart-item__remove {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.fs-cart-item__qty button {
  width: 18px;
  height: 18px;
  padding: 0;
  color: var(--fs-cool-soft);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.fs-cart-item__remove {
  color: var(--fs-cool);
  font-weight: 700;
}

.fs-cart-summary {
  display: grid;
  gap: 16px;
}

.fs-cart-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--fs-text-muted);
}

.fs-cart-summary__row strong {
  color: var(--fs-text);
}

.fs-cart-summary__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.fs-cart-summary__row--total {
  color: var(--fs-text);
}

.fs-cart-summary__row--total strong {
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.fs-cart-summary__note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--fs-text-muted);
}

.fs-cart-summary__note .fs-icon {
  color: var(--fs-cool);
}

.fs-cart-summary__actions {
  margin-top: 22px;
}

.fs-cart-summary__checkout {
  width: 100%;
}

.fs-cart-summary__secure {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--fs-text-muted);
}

.fs-cart-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 28px;
  padding: 8px;
  border-radius: 22px;
  background: var(--fs-surface);
  border: 1px solid var(--fs-border);
}

.fs-cart-benefits__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.fs-cart-benefits__item:last-child {
  border-right: 0;
}

@media (max-width: 1180px) {
  .fs-cart-header__inner {
    flex-wrap: wrap;
  }

  .fs-cart-layout {
    grid-template-columns: 1fr;
  }

  .fs-cart-panel--summary {
    position: static;
  }

  .fs-cart-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fs-cart-benefits__item:nth-child(2n) {
    border-right: 0;
  }

  .fs-cart-benefits__item:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
}

@media (max-width: 820px) {
  .fs-cart-header__inner,
  .fs-cart-page__hero,
  .fs-cart-item__top,
  .fs-cart-item__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .fs-cart-page__hero-actions {
    justify-items: start;
  }

  .fs-cart-item {
    grid-template-columns: 1fr;
  }

  .fs-cart-item__thumb {
    min-height: 140px;
  }

  .fs-cart-benefits {
    grid-template-columns: 1fr;
  }

  .fs-cart-benefits__item {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .fs-cart-benefits__item:last-child {
    border-bottom: 0;
  }
}
