.cart-page,
.checkout-page {
  background: var(--cream);
  color: var(--graphite);
}

.cart-page h1,
.cart-page h2,
.checkout-page h1,
.checkout-page h2 {
  margin: 0;
  color: var(--black);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.045em;
}

.cart-hero,
.checkout-hero {
  position: relative;
  padding: 54px 0 46px;
  background:
    radial-gradient(circle at 78% 4%, rgba(197, 161, 110, .2), transparent 34%),
    linear-gradient(135deg, #fbf8f2 0%, #efe3d2 100%);
  border-bottom: 1px solid rgba(16, 16, 16, .08);
}

.cart-hero::before,
.checkout-hero::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(16, 16, 16, .08);
  pointer-events: none;
}

.cart-hero .lux-container,
.checkout-hero .lux-container {
  position: relative;
  z-index: 1;
}

.cart-breadcrumbs,
.checkout-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 13px;
}

.cart-breadcrumbs a,
.checkout-breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.cart-breadcrumbs a:hover,
.checkout-breadcrumbs a:hover {
  color: var(--gold);
}

.cart-breadcrumbs a::after,
.checkout-breadcrumbs a::after {
  content: "/";
  margin-left: 10px;
  color: rgba(16, 16, 16, .22);
}

.cart-hero__grid,
.checkout-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  gap: 42px;
  align-items: end;
}

.cart-hero h1,
.checkout-hero h1 {
  max-width: 780px;
  font-size: clamp(48px, 6vw, 96px);
  line-height: .9;
}

.cart-hero p,
.checkout-hero p {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--graphite);
  font-size: 17px;
  line-height: 1.72;
}

.checkout-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(16, 16, 16, .1);
  border-radius: 28px;
  background: rgba(255, 255, 255, .54);
  backdrop-filter: blur(16px);
}

.checkout-step {
  min-height: 98px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border-radius: 21px;
  color: var(--muted);
}

.checkout-step strong {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 400;
}

.checkout-step span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.checkout-step.is-active,
.checkout-step.is-done {
  background: var(--black);
  color: var(--white);
}

.cart-section,
.checkout-section {
  padding: 72px 0 96px;
}

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

.cart-main {
  display: grid;
  gap: 22px;
}

.cart-panel,
.cart-service-card,
.cart-summary__inner {
  border: 1px solid var(--border);
  border-radius: 32px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 18px 58px rgba(16, 16, 16, .06);
}

.cart-panel--items {
  padding: 26px;
}

.cart-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.cart-panel__overline,
.cart-summary__head span,
.cart-service-card span,
.cart-section-head .lux-label {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.cart-panel__head h2,
.cart-summary__head h2,
.cart-section-head h2 {
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1;
}

.cart-link-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.cart-link-btn:hover {
  color: var(--gold);
}

.cart-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 128px 128px 44px;
  gap: 20px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cart-item__image {
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1.15;
  border-radius: 20px;
  background: var(--cream-dark);
}

.cart-item__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cart-item__brand {
  margin-bottom: 7px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.cart-item__title {
  display: block;
  color: var(--black);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
  text-decoration: none;
}

.cart-item__title:hover {
  color: var(--gold);
}

.cart-item__meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.cart-item__mobile-price {
  display: none;
}

.cart-qty {
  display: grid;
  grid-template-columns: 36px minmax(38px, 1fr) 36px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
}

.cart-qty button,
.cart-qty input {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--black);
  text-align: center;
  font: inherit;
  outline: none;
}

.cart-qty button {
  cursor: pointer;
  font-size: 18px;
}

.cart-qty button:hover {
  color: var(--gold);
}

.cart-item__price {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.cart-item__price strong,
.cart-item__mobile-price span {
  color: var(--black);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1;
  font-weight: 400;
  white-space: nowrap;
}

.cart-item__price span {
  color: var(--muted);
  font-size: 13px;
  text-decoration: line-through;
}

.cart-item__actions {
  display: grid;
  gap: 10px;
}

.cart-icon-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  transition: .22s ease;
}

.cart-icon-btn svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.cart-icon-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.cart-note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cart-service-card {
  padding: 26px;
}

.cart-service-card--dark {
  background: var(--black);
  color: var(--white);
  border-color: rgba(255, 255, 255, .14);
}

.cart-service-card strong {
  display: block;
  color: inherit;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  line-height: 1.05;
  font-weight: 400;
}

.cart-service-card p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.cart-service-card--dark p {
  color: rgba(255, 255, 255, .68);
}

.cart-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  color: var(--black);
  font-size: 13px;
  cursor: pointer;
}

.cart-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cart-switch span {
  width: 42px;
  height: 24px;
  position: relative;
  flex: 0 0 auto;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
}

.cart-switch span::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--muted);
  transition: .22s ease;
}

.cart-switch input:checked + span {
  background: var(--black);
  border-color: var(--black);
}

.cart-switch input:checked + span::before {
  transform: translateX(18px);
  background: var(--gold);
}

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

.cart-summary__inner {
  padding: 26px;
}

.cart-promo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 22px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
}

.cart-promo input,
.cart-promo button {
  min-height: 44px;
  border: 0;
  background: transparent;
  font: inherit;
  outline: none;
}

.cart-promo input {
  min-width: 0;
  padding: 0 10px 0 16px;
}

.cart-promo button {
  padding: 0 16px;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.cart-summary__rows {
  display: grid;
  gap: 14px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.cart-summary__rows div,
.cart-summary__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.cart-summary__rows span,
.cart-summary__rows strong {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.cart-summary__rows strong {
  color: var(--black);
  text-align: right;
}

.cart-summary__total {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.cart-summary__total span {
  color: var(--black);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cart-summary__total strong {
  color: var(--black);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 1;
  font-weight: 400;
  white-space: nowrap;
}

.cart-summary__checkout {
  width: 100%;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: .22s ease;
}

.cart-summary__checkout:hover {
  background: var(--gold);
  color: var(--black);
}

.cart-summary__notice {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.cart-recommend {
  padding: 0 0 96px;
}

.cart-section-head {
  margin-bottom: 28px;
}

.cart-recommend__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cart-mini-product a {
  min-height: 170px;
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: rgba(255, 255, 255, .72);
  color: var(--black);
  text-decoration: none;
  transition: .22s ease;
}

.cart-mini-product img {
  width: 126px;
  height: 138px;
  object-fit: cover;
  border-radius: 18px;
  background: var(--cream-dark);
}

.cart-mini-product span {
  display: block;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
}

.cart-mini-product strong {
  display: block;
  margin-top: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 400;
}

.cart-mini-product a:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

@media (max-width: 1200px) {
  .cart-hero__grid,
  .checkout-hero__grid,
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }

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

@media (max-width: 768px) {
  .cart-hero,
  .checkout-hero {
    padding: 38px 0 34px;
  }

  .cart-hero::before,
  .checkout-hero::before {
    inset: 12px;
  }

  .cart-breadcrumbs,
  .checkout-breadcrumbs {
    margin-bottom: 22px;
    font-size: 12px;
  }

  .cart-hero h1,
  .checkout-hero h1 {
    font-size: clamp(42px, 13vw, 62px);
  }

  .cart-hero p,
  .checkout-hero p {
    font-size: 15px;
    line-height: 1.6;
  }

  .checkout-steps {
    grid-template-columns: 1fr;
  }

  .checkout-step {
    min-height: 74px;
    padding: 14px;
  }

  .cart-section,
  .checkout-section {
    padding: 42px 0 68px;
  }

  .cart-panel--items,
  .cart-summary__inner,
  .cart-service-card {
    padding: 20px;
    border-radius: 26px;
  }

  .cart-panel__head {
    flex-direction: column;
  }

  .cart-item {
    grid-template-columns: 92px minmax(0, 1fr) 42px;
    gap: 14px;
    align-items: start;
    position: relative;
  }

  .cart-item__image {
    border-radius: 18px;
  }

  .cart-item__title {
    font-size: 15px;
  }

  .cart-item__meta {
    font-size: 12px;
  }

  .cart-item__mobile-price {
    display: block;
    margin-top: 12px;
  }

  .cart-qty {
    grid-column: 2 / 3;
    width: 122px;
    margin-top: -6px;
  }

  .cart-item__price {
    display: none;
  }

  .cart-item__actions {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
  }

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

  .cart-promo {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .cart-promo button {
    width: 100%;
  }

  .cart-summary__total strong {
    font-size: 34px;
  }

  .cart-mini-product a {
    grid-template-columns: 92px minmax(0, 1fr);
    min-height: auto;
  }

  .cart-mini-product img {
    width: 92px;
    height: 104px;
  }
}
