:root {
  --green: #173d2b;
  --green-ink: #1f2a24;
  --cream: #f7f3e8;
  --cream-strong: #fffaf0;
  --aqua: #8fd6bf;
  --olive: #8a9b4f;
  --mango: #f5a623;
  --line: rgba(23, 61, 43, 0.14);
  --shadow: 0 18px 44px rgba(23, 61, 43, 0.12);
  --max: 1220px;
  font-family: Inter, "Avenir Next", Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--green-ink);
  background: var(--cream);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--cream);
}

body,
button {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

.page-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 16px clamp(18px, 4vw, 46px);
  color: var(--green);
  background: rgba(247, 243, 232, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--green);
}

.brand-word {
  font-size: 18px;
  font-weight: 850;
  letter-spacing: 0.12em;
  line-height: 1;
}

.brand-leaf {
  position: absolute;
  top: -10px;
  left: 48px;
  width: 13px;
  height: 22px;
  border-radius: 100% 0 100% 0;
  background: var(--olive);
  transform: rotate(33deg);
}

.back-link,
.cart-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  background: var(--cream-strong);
  font-size: 14px;
  font-weight: 850;
}

.back-link {
  padding: 0 16px;
}

.cart-pill {
  gap: 8px;
  padding: 0 14px;
}

.cart-pill span {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  color: var(--green);
  background: var(--mango);
  font-size: 12px;
}

main {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.cart-hero {
  padding: clamp(44px, 7vw, 82px) 0 34px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--aqua);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  margin: 0;
  color: var(--green);
  font-size: clamp(46px, 7vw, 92px);
  line-height: 0.95;
}

.cart-hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(31, 42, 36, 0.72);
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.45;
}

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

.cart-list-panel,
.cart-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream-strong);
  box-shadow: var(--shadow);
}

.cart-items {
  display: grid;
}

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

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

.cart-item img {
  width: 120px;
  aspect-ratio: 1.35;
  object-fit: cover;
  border-radius: 8px;
  background: #fff;
}

.cart-item h2 {
  margin: 0;
  color: var(--green);
  font-size: 22px;
  line-height: 1.05;
}

.cart-item p {
  margin: 8px 0 0;
  color: rgba(31, 42, 36, 0.7);
  line-height: 1.4;
}

.cart-item-copy span {
  display: inline-flex;
  margin-top: 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 850;
}

.quantity-control {
  display: inline-grid;
  grid-template-columns: 36px 34px 36px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.quantity-control button {
  height: 36px;
  border: 0;
  color: var(--green);
  background: transparent;
  font-weight: 900;
}

.quantity-control span {
  text-align: center;
  font-weight: 900;
}

.remove-button,
.clear-button {
  border: 0;
  color: var(--green);
  background: transparent;
  font-size: 13px;
  font-weight: 850;
}

.cart-summary {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.cart-summary h2,
.empty-cart h2 {
  margin: 0;
  color: var(--green);
  font-size: 26px;
}

.summary-row,
.summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.summary-row.muted {
  color: rgba(31, 42, 36, 0.62);
  font-size: 14px;
}

.summary-total {
  color: var(--green);
  font-size: 22px;
  font-weight: 900;
}

.whatsapp-button,
.empty-cart a {
  display: inline-flex;
  width: 100%;
  min-height: 50px;
  margin-top: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--cream-strong);
  background: var(--green);
  font-weight: 900;
}

.clear-button {
  width: 100%;
  margin-top: 14px;
}

.empty-cart {
  padding: 28px;
}

.empty-cart p {
  color: rgba(31, 42, 36, 0.72);
  line-height: 1.45;
}

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

  .cart-summary {
    position: static;
  }

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

  .cart-item strong,
  .quantity-control,
  .remove-button {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .page-header {
    grid-template-columns: 1fr auto;
  }

  .brand-word {
    font-size: 15px;
  }

  .brand-leaf {
    left: 40px;
  }

  .back-link {
    display: none;
  }

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

  .cart-item img {
    width: 100%;
  }

  .cart-item strong,
  .quantity-control,
  .remove-button {
    grid-column: auto;
  }
}
