:root {
  color-scheme: dark;
  --ink: #f7f7f2;
  --muted: #8f8f8a;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #d7ff57;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: #080808;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 72% 18%, #242424 0, #111 31%, #080808 67%),
    #080808;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.cart-header {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  padding: 8px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
}

.cart-brand {
  display: inline-flex;
  width: 100px;
  height: 70px;
  align-items: center;
  justify-content: center;
  padding: 4px;
  background: transparent;
}

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

.back-link {
  color: #b5b5af;
  font-size: 0.61rem;
  letter-spacing: 0.16em;
  text-decoration: none;
}

.cart-page {
  display: grid;
  width: min(1380px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(36px, 6vw, 90px) 0 80px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 410px);
  gap: clamp(38px, 7vw, 110px);
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.59rem;
  letter-spacing: 0.2em;
}

.cart-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 10px 0 30px;
}

.cart-heading h1 {
  margin: 0;
  font-size: clamp(3.4rem, 8vw, 7.4rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0;
}

.cart-heading span {
  padding-bottom: 9px;
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
}

.cart-heading b {
  color: var(--ink);
  font-weight: 400;
}

.cart-items {
  border-top: 1px solid var(--line);
}

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

.cart-item__image {
  display: grid;
  width: 132px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: var(--item-color);
}

.cart-item__image img {
  width: 82%;
  height: 82%;
  object-fit: contain;
}

.cart-item__details > p {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 0.55rem;
  letter-spacing: 0.18em;
}

.cart-item__details h2 {
  margin: 0 0 15px;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.cart-item__details h2 a {
  color: inherit;
  text-decoration: none;
}

.remove-button {
  padding: 0;
  border: 0;
  color: #8f8f8a;
  background: transparent;
  cursor: pointer;
  font-size: 0.54rem;
  letter-spacing: 0.15em;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.quantity-control {
  display: grid;
  grid-template-columns: 32px 32px 32px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-align: center;
}

.quantity-control button {
  height: 34px;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.quantity-control span {
  font-size: 0.72rem;
}

.cart-item > strong {
  text-align: right;
  font-size: 0.78rem;
  font-weight: 400;
}

.empty-cart {
  padding: clamp(42px, 8vw, 92px) 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.empty-cart p {
  margin: 0;
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
}

.empty-cart h2 {
  margin: 12px auto 28px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.05em;
}

.empty-cart a {
  color: var(--ink);
  font-size: 0.59rem;
  letter-spacing: 0.14em;
}

.checkout-panel {
  align-self: start;
  position: sticky;
  top: 28px;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(20, 20, 20, 0.92);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.32);
}

.checkout-panel h2 {
  margin: 10px 0 30px;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.06em;
}

.checkout-totals {
  display: grid;
  gap: 14px;
  margin: 0 0 28px;
}

.checkout-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  color: #b8b8b2;
  font-size: 0.76rem;
}

.checkout-totals dd {
  margin: 0;
  text-align: right;
}

.checkout-totals .checkout-total {
  margin-top: 5px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.9rem;
}

.checkout-button,
.whatsapp-button {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-align: center;
  text-decoration: none;
}

.checkout-button {
  color: #10110d;
  background: var(--accent);
}

.checkout-button--disabled {
  color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
  cursor: not-allowed;
}

.checkout-note {
  margin: 12px 3px 0;
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.55;
}

.checkout-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 23px 0;
  color: #686864;
  font-size: 0.5rem;
  letter-spacing: 0.16em;
}

.checkout-divider::before,
.checkout-divider::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.whatsapp-button {
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: var(--ink);
}

.whatsapp-button--disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.checkout-panel small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.5;
}

.security-list {
  display: grid;
  gap: 9px;
  margin: 28px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  color: #8f8f8a;
  font-size: 0.63rem;
  line-height: 1.5;
  list-style: none;
}

.security-list li::before {
  margin-right: 8px;
  color: var(--accent);
  content: "✓";
}

@media (max-width: 900px) {
  .cart-page {
    grid-template-columns: 1fr;
  }

  .checkout-panel {
    position: static;
  }
}

@media (max-width: 620px) {
  .cart-header {
    padding-top: 16px;
  }

  .cart-brand {
    width: 98px;
    height: 69px;
    padding: 5px 7px;
  }

  .back-link {
    max-width: 130px;
    text-align: right;
    line-height: 1.5;
  }

  .cart-page {
    width: min(100% - 40px, 1380px);
    padding-top: 38px;
  }

  .cart-item {
    grid-template-columns: 94px minmax(0, 1fr) auto;
    gap: 14px;
  }

  .cart-item__image {
    width: 94px;
  }

  .cart-item__details h2 {
    font-size: 1.22rem;
  }

  .quantity-control {
    grid-column: 2;
    width: max-content;
  }

  .cart-item > strong {
    grid-column: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
