:root {
  --cream: #fff7e8;
  --navy: #172033;
  --yellow: #ffb22c;
  --coral: #ff6b4a;
  --blue: #4da3ff;
  --pink: #ff8ec7;
  --mint: #7ee6a8;
  --white: #ffffff;
}

.cart-main {
  padding: 20px 0 40px;
}

.cart-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: center;
  gap: 28px;
  overflow: hidden;
  padding: 42px;
  border: 2px solid rgba(255, 178, 44, 0.28);
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 142, 199, 0.18), transparent 22%),
    radial-gradient(circle at 80% 15%, rgba(77, 163, 255, 0.18), transparent 24%),
    var(--white);
}

.cart-kicker {
  margin: 0 0 8px;
  color: var(--coral);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cart-hero h1,
.cart-panel h2,
.cart-summary h2 {
  margin: 0;
  color: var(--navy);
}

.cart-hero h1 {
  max-width: 720px;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.92;
}

.cart-hero p:not(.cart-kicker) {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--navy);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
}

.cart-hero-box {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 230px;
  padding: 28px;
  color: var(--navy);
  border: 4px solid #b46a25;
  border-radius: 20px;
  background: linear-gradient(155deg, #e5a14b, #c87b28);
  box-shadow: 0 18px 0 rgba(23, 32, 51, 0.09);
  transform: rotate(3deg);
}

.cart-hero-box::before,
.cart-hero-box::after {
  position: absolute;
  top: -34px;
  width: 54%;
  height: 58px;
  content: "";
  border: 4px solid #b46a25;
  background: #f0b862;
}

.cart-hero-box::before {
  left: -12px;
  transform: rotate(-12deg);
}

.cart-hero-box::after {
  right: -12px;
  transform: rotate(12deg);
}

.cart-hero-box span {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 10px;
  color: var(--coral);
  border-radius: 999px;
  background: var(--cream);
  font-size: 42px;
  font-weight: 1000;
}

.cart-hero-box strong {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 26px;
  line-height: 1;
}

.cart-sticker {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  color: var(--navy);
  font-weight: 1000;
  line-height: 0.95;
  text-align: center;
  box-shadow: 0 10px 0 rgba(23, 32, 51, 0.08);
}

.cart-sticker.wow {
  top: 28px;
  right: 310px;
  width: 86px;
  height: 58px;
  border: 4px solid var(--white);
  border-radius: 999px;
  background: var(--pink);
  transform: rotate(-12deg);
}

.cart-sticker.open {
  right: 34px;
  bottom: 34px;
  width: 96px;
  height: 68px;
  color: #1465c5;
  border: 4px solid var(--blue);
  border-radius: 14px;
  background: var(--white);
  transform: rotate(-6deg);
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  margin-top: 24px;
}

.cart-panel,
.cart-summary {
  border: 2px solid rgba(255, 178, 44, 0.24);
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 16px 0 rgba(23, 32, 51, 0.05);
}

.cart-panel {
  padding: 28px;
}

.cart-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.cart-text-link {
  color: var(--blue);
  font-weight: 900;
}

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

.cart-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 2px solid rgba(23, 32, 51, 0.07);
  border-radius: 22px;
  background: #fffdf8;
}

.cart-item-art {
  display: grid;
  place-items: center;
  min-height: 104px;
  color: var(--navy);
  border: 3px solid rgba(180, 106, 37, 0.55);
  border-radius: 18px;
  background: linear-gradient(155deg, #f2bb63, #d98d33);
  font-weight: 1000;
  line-height: 0.95;
  text-align: center;
}

.cart-item h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 24px;
}

.cart-item p {
  margin: 0;
  color: rgba(23, 32, 51, 0.72);
  font-weight: 700;
  line-height: 1.4;
}

.cart-price {
  display: block;
  margin-top: 10px;
  color: var(--navy);
  font-size: 20px;
  font-weight: 1000;
}

.qty-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.qty-controls button,
.remove-item {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 1000;
}

.qty-controls button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--navy);
  border-radius: 999px;
  background: var(--cream);
  box-shadow: inset 0 0 0 2px rgba(23, 32, 51, 0.09);
}

.qty-controls strong {
  min-width: 30px;
  text-align: center;
  color: var(--navy);
  font-size: 20px;
}

.remove-item {
  display: block;
  margin: 14px 0 0 auto;
  color: var(--coral);
  background: transparent;
}

.cart-empty {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 30px;
  border: 2px dashed rgba(77, 163, 255, 0.42);
  border-radius: 24px;
  background: rgba(77, 163, 255, 0.08);
}

.cart-empty strong {
  color: var(--navy);
  font-size: 24px;
}

.cart-empty p {
  margin: 0 0 8px;
  color: rgba(23, 32, 51, 0.72);
  font-weight: 700;
}

.cart-summary {
  position: sticky;
  top: 18px;
  align-self: start;
  padding: 26px;
}

.summary-lines {
  display: grid;
  gap: 14px;
  margin: 22px 0;
}

.summary-lines div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(23, 32, 51, 0.09);
  color: rgba(23, 32, 51, 0.72);
  font-weight: 800;
}

.summary-lines strong {
  color: var(--navy);
  text-align: right;
}

.summary-lines .summary-total {
  align-items: baseline;
  border-bottom: 0;
  color: var(--navy);
  font-size: 22px;
}

.checkout-note {
  padding: 16px;
  border-radius: 18px;
  background: rgba(126, 230, 168, 0.22);
}

.checkout-note strong {
  color: var(--navy);
}

.checkout-note p {
  margin: 6px 0 0;
  color: rgba(23, 32, 51, 0.72);
  font-weight: 700;
  line-height: 1.45;
}

.checkout-button {
  width: 100%;
  min-height: 58px;
  margin-top: 18px;
  color: var(--white);
  border: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, #172033, #0e1626);
  box-shadow: 0 12px 0 rgba(23, 32, 51, 0.12);
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  font-weight: 1000;
}

.checkout-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.cart-status {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--coral);
  font-weight: 800;
  line-height: 1.4;
}

.cart-trust-row {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.cart-trust-row span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 800;
}

.cart-trust-row span::before {
  width: 12px;
  height: 12px;
  content: "";
  border-radius: 999px;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(126, 230, 168, 0.2);
}

.cart-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  max-width: min(360px, calc(100vw - 32px));
  padding: 16px 18px;
  color: var(--navy);
  border: 2px solid rgba(255, 178, 44, 0.45);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 16px 0 rgba(23, 32, 51, 0.08);
  font-weight: 900;
}

@media (max-width: 860px) {
  .cart-main {
    padding-top: 10px;
  }

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

  .cart-hero {
    padding: 32px 22px;
  }

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

  .cart-hero p:not(.cart-kicker) {
    font-size: 17px;
  }

  .cart-hero-box {
    min-height: 190px;
  }

  .cart-sticker.wow {
    top: auto;
    right: auto;
    left: 22px;
    bottom: 210px;
  }

  .cart-sticker.open {
    right: 18px;
    bottom: 22px;
  }

  .cart-panel,
  .cart-summary {
    padding: 20px;
    border-radius: 22px;
  }

  .cart-panel-heading {
    display: grid;
  }

  .cart-item {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .cart-item-art {
    min-height: 88px;
    font-size: 14px;
  }

  .cart-item-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .remove-item {
    margin: 0;
  }

  .cart-summary {
    position: static;
  }
}
