:root {
  color-scheme: light;
  --ink: #1f2d22;
  --muted: #69736d;
  --line: #dce5d7;
  --paper: #fffdf6;
  --soft: #f5f7ed;
  --leaf: #227246;
  --leaf-dark: #155734;
  --sun: #f4c83d;
  --berry: #9b1d4b;
  --caja: #f17a32;
  --acai: #52316b;
  --shadow: 0 18px 60px rgba(35, 55, 39, 0.16);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(34, 114, 70, 0.18);
  background: rgba(255, 253, 246, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  min-width: 188px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(from 20deg, var(--leaf), #6fab45, var(--sun), var(--caja), var(--berry), var(--leaf));
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topnav a {
  color: var(--muted);
  font-weight: 700;
  padding: 10px 12px;
  text-decoration: none;
}

.topnav a:hover {
  color: var(--leaf);
}

.cart-pill,
.primary-link,
.ghost-link,
.checkout-button,
.product-card button,
.mobile-cart button,
.icon-button {
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--leaf);
  color: #fff;
}

.cart-pill strong {
  display: grid;
  min-width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--sun);
  color: var(--ink);
  font-size: 0.84rem;
}

.hero {
  position: relative;
  min-height: min(560px, calc(100vh - 68px));
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(20, 53, 32, 0.78), rgba(20, 53, 32, 0.24) 48%, rgba(20, 53, 32, 0.04)),
    linear-gradient(0deg, rgba(31, 45, 34, 0.32), rgba(31, 45, 34, 0));
}

.hero img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  width: min(680px, 100%);
  padding: clamp(78px, 12vw, 150px) clamp(20px, 6vw, 76px) 70px;
  color: #fff;
}

.hero-copy p,
.section-heading p,
.checkout-head p {
  margin: 0 0 8px;
  color: var(--leaf);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy p {
  color: #ffdf65;
}

.hero-copy h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-link,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  text-decoration: none;
}

.primary-link {
  background: var(--sun);
  color: var(--ink);
}

.ghost-link {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
}

.order-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
  background: #fff;
}

.order-band div {
  padding: 20px clamp(18px, 4vw, 56px);
  border-right: 1px solid var(--line);
}

.order-band div:last-child {
  border-right: 0;
}

.order-band span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.86rem;
}

.order-band strong {
  font-size: 1rem;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 34px;
  padding: 38px clamp(18px, 4vw, 56px) 80px;
  background:
    linear-gradient(180deg, var(--soft), var(--paper) 42%),
    var(--paper);
}

.section-heading,
.checkout-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-heading h2,
.checkout-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 2.1rem);
  letter-spacing: 0;
}

.search {
  display: grid;
  gap: 6px;
  width: min(320px, 100%);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.search input,
.checkout-form input,
.checkout-form textarea,
.checkout-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: 0;
}

.search input {
  height: 44px;
  padding: 0 14px;
}

.search input:focus,
.checkout-form input:focus,
.checkout-form textarea:focus,
.checkout-form select:focus {
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(34, 114, 70, 0.14);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.filters button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  padding: 0 14px;
}

.filters button.is-active {
  border-color: var(--leaf);
  background: var(--leaf);
  color: #fff;
}

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

.product-card {
  display: grid;
  min-height: 310px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(35, 55, 39, 0.08);
}

.product-visual {
  min-height: 118px;
  background:
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.58), transparent 30%),
    linear-gradient(135deg, var(--tone-one), var(--tone-two));
}

.product-body {
  display: grid;
  gap: 12px;
  padding: 15px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.product-meta h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.2;
}

.product-meta span {
  flex: 0 0 auto;
  color: var(--leaf-dark);
  font-weight: 900;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.42;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span {
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 5px 8px;
}

.product-card button {
  align-self: end;
  min-height: 44px;
  border-radius: 8px;
  background: var(--leaf);
  color: #fff;
}

.product-card button:hover,
.checkout-button:hover,
.cart-pill:hover {
  background: var(--leaf-dark);
}

.checkout {
  min-width: 0;
}

.checkout-sticky {
  position: sticky;
  top: 86px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.checkout-head {
  padding: 18px 18px 0;
}

.icon-button {
  min-height: 36px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  padding: 0 12px;
}

.cart-list {
  display: grid;
  gap: 10px;
  max-height: 310px;
  overflow: auto;
  padding: 0 18px 16px;
}

.empty-cart {
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 20px;
  text-align: center;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.cart-item h3 {
  margin: 0 0 4px;
  font-size: 0.93rem;
}

.cart-item small {
  color: var(--muted);
}

.qty {
  display: grid;
  grid-template-columns: 32px 32px 32px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.qty button {
  width: 32px;
  height: 32px;
  border: 0;
  background: #fff;
  color: var(--leaf);
  cursor: pointer;
  font-weight: 900;
}

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

.checkout-form {
  display: grid;
  gap: 13px;
  border-top: 1px solid var(--line);
  padding: 18px;
}

.checkout-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.checkout-form legend,
.checkout-form label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.checkout-form input,
.checkout-form textarea,
.checkout-form select {
  margin-top: 6px;
  padding: 11px 12px;
  resize: vertical;
}

.segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.segment input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.segment span {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
}

.segment input:checked + span {
  border-color: var(--leaf);
  background: rgba(34, 114, 70, 0.1);
  color: var(--leaf-dark);
}

.totals {
  display: grid;
  gap: 9px;
  padding-top: 4px;
}

.totals div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.totals span {
  color: var(--muted);
}

.grand-total {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  font-size: 1.12rem;
}

.checkout-button {
  min-height: 50px;
  border-radius: 8px;
  background: var(--leaf);
  color: #fff;
}

.mobile-cart {
  position: fixed;
  z-index: 40;
  right: 14px;
  bottom: 14px;
  left: 14px;
}

.mobile-cart button {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  background: var(--leaf);
  color: #fff;
  padding: 0 18px;
  box-shadow: var(--shadow);
}

@media (max-width: 1120px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .checkout-sticky {
    position: static;
  }

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

@media (max-width: 720px) {
  .topbar {
    gap: 10px;
    padding: 10px 14px;
  }

  .topnav,
  .cart-pill span {
    display: none;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    max-width: 136px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero {
    min-height: 500px;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(20, 53, 32, 0.32), rgba(20, 53, 32, 0.78) 72%),
      linear-gradient(90deg, rgba(20, 53, 32, 0.42), rgba(20, 53, 32, 0.04));
  }

  .hero-copy {
    display: flex;
    min-height: 500px;
    flex-direction: column;
    justify-content: end;
    padding: 42px 18px 34px;
  }

  .hero-copy h1 {
    font-size: clamp(2.45rem, 13vw, 4rem);
  }

  .order-band {
    grid-template-columns: 1fr;
  }

  .order-band div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 15px 18px;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .workspace {
    padding: 28px 14px 92px;
  }

  .mobile-cart:not([hidden]) {
    display: block;
  }
}
