*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --green-950: #032416;
  --green-900: #073f2a;
  --green-800: #0c5a38;
  --green-700: #187a43;
  --green-100: #e8f4ea;
  --green-50: #f5fbf6;
  --white: #ffffff;
  --ink: #112218;
  --muted: #5f6f65;
  --line: #d9e6dc;
  --shadow: 0 16px 36px rgba(3, 36, 22, 0.12);
  --font: "Avenir Next", "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
}

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

svg {
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner,
.hero,
.inventory,
.order-flow,
.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green-900);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.brand svg {
  width: 42px;
  height: 42px;
  stroke: currentColor;
  stroke-width: 3.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand.small {
  font-size: 22px;
}

.brand.small svg {
  width: 32px;
  height: 32px;
}

.header-nav {
  display: flex;
  justify-content: center;
  gap: 34px;
  color: var(--green-950);
  font-size: 15px;
  font-weight: 750;
}

.header-nav a {
  padding: 27px 0 24px;
  border-bottom: 3px solid transparent;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--green-700);
  border-color: var(--green-700);
  outline: none;
}

.whatsapp-button,
.button,
.order-button,
.text-action,
.cart-toggle {
  border: 0;
  cursor: pointer;
  font-weight: 850;
}

.whatsapp-button,
.button,
.order-button {
  min-height: 44px;
  border-radius: 6px;
}

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  color: var(--white);
  background: var(--green-700);
  box-shadow: 0 8px 18px rgba(24, 122, 67, 0.18);
}

.cart-toggle {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 15px;
  color: var(--green-900);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.cart-toggle span {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  color: var(--white);
  background: var(--green-700);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
}

.cart-toggle:hover,
.cart-toggle:focus-visible {
  border-color: var(--green-700);
  outline: none;
}

.whatsapp-button svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.whatsapp-button:hover,
.whatsapp-button:focus-visible,
.button.primary:hover,
.button.primary:focus-visible,
.order-button:hover,
.order-button:focus-visible {
  background: var(--green-900);
  outline: none;
}

.hero {
  position: relative;
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  align-items: center;
  gap: 34px;
  padding: 52px 0 46px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero h1 {
  max-width: 600px;
  margin: 0;
  color: var(--green-900);
  font-size: clamp(42px, 6.4vw, 78px);
  line-height: 0.95;
  letter-spacing: 0;
  font-weight: 950;
}

.hero p {
  max-width: 520px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.hero-search {
  max-width: 560px;
  margin-top: 26px;
}

.hero-search label {
  display: block;
  margin-bottom: 8px;
  color: var(--green-900);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.search-control {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 6px 6px 6px 18px;
  background: var(--white);
  border: 1px solid #b8d2c0;
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(3, 36, 22, 0.08);
}

.search-control:focus-within {
  border-color: var(--green-700);
  box-shadow: 0 0 0 4px rgba(24, 122, 67, 0.12);
}

.search-control svg {
  width: 22px;
  height: 22px;
  stroke: var(--green-700);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-control input {
  min-width: 0;
  border: 0;
  outline: none;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 16px;
}

.search-control input::placeholder {
  color: #87948b;
}

.search-control button {
  min-height: 44px;
  padding: 0 18px;
  color: var(--white);
  background: var(--green-700);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 850;
}

.search-control button:hover,
.search-control button:focus-visible {
  background: var(--green-900);
  outline: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
}

.button.primary {
  color: var(--white);
  background: var(--green-700);
}

.button.secondary {
  color: var(--green-800);
  background: var(--white);
  border: 1px solid var(--green-700);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  color: var(--white);
  background: var(--green-700);
  outline: none;
}

.hero .hero-note {
  display: inline-flex;
  margin-top: 18px;
  color: var(--green-800);
  font-size: 14px;
  font-weight: 750;
}

.hero-visual {
  position: relative;
  min-height: 438px;
  overflow: hidden;
  background: var(--green-50);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(3, 36, 22, 0.12);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: 438px;
  object-fit: cover;
  object-position: 58% center;
}

.leaf-outline {
  position: absolute;
  width: 210px;
  height: 210px;
  pointer-events: none;
  opacity: 0.2;
}

.leaf-outline::before,
.leaf-outline::after {
  content: "";
  position: absolute;
  border: 2px solid var(--green-700);
  border-radius: 50% 0 50% 50%;
  transform: rotate(-35deg);
}

.leaf-outline::before {
  width: 86px;
  height: 42px;
  top: 52px;
  left: 32px;
}

.leaf-outline::after {
  width: 118px;
  height: 54px;
  top: 104px;
  left: 70px;
}

.leaf-outline.left {
  top: 80px;
  left: -170px;
}

.leaf-outline.right {
  right: -80px;
  bottom: -24px;
  transform: scaleX(-1);
}

.inventory {
  padding: 34px 0 58px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-heading h2,
.order-flow h2 {
  margin: 0;
  color: var(--green-950);
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: 0;
}

.section-heading p {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.text-action {
  flex: 0 0 auto;
  padding: 0;
  color: var(--green-700);
  background: transparent;
  font-size: 15px;
}

.text-action:hover,
.text-action:focus-visible {
  color: var(--green-950);
  outline: none;
}

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

.inventory-empty {
  margin: 22px 0 0;
  padding: 18px;
  color: var(--green-900);
  background: var(--green-50);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 750;
}

.tree-card {
  display: grid;
  grid-template-rows: 230px 1fr;
  min-height: 464px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(3, 36, 22, 0.06);
}

.photo-wrap {
  display: grid;
  place-items: end center;
  min-width: 0;
  padding: 16px 16px 0;
  background: linear-gradient(180deg, var(--green-50), var(--white));
}

.photo-wrap img {
  width: 100%;
  height: 210px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 12px 14px rgba(3, 36, 22, 0.12));
}

.tree-info {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 8px;
  padding: 18px;
}

.tree-info h3 {
  margin: 0;
  color: var(--green-950);
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: 0;
}

.latin {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
}

dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 0;
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}

.card-footer {
  align-self: end;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.card-footer strong {
  color: var(--green-950);
  font-size: 26px;
  line-height: 1;
}

.order-button {
  min-width: 106px;
  padding: 0 18px;
  color: var(--white);
  background: var(--green-700);
}

.order-button.added {
  background: var(--green-900);
}

.order-flow {
  position: relative;
  overflow: hidden;
  padding: 44px 0 54px;
  border-top: 1px solid var(--line);
}

.order-flow h2 {
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 26px;
}

.steps article {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 15px;
  align-items: start;
  padding: 22px 18px;
  background: var(--green-50);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.steps span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--white);
  background: var(--green-700);
  border-radius: 6px;
  font-weight: 900;
}

.steps h3 {
  margin: 0;
  color: var(--green-950);
  font-size: 20px;
  line-height: 1.1;
}

.steps p {
  grid-column: 2;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  max-width: min(360px, calc(100vw - 44px));
  padding: 14px 16px;
  color: var(--white);
  background: var(--green-950);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.checkout-result {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12vh 0;
}

.result-card {
  margin-top: 34px;
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.result-card h1 {
  margin: 0;
  color: var(--green-950);
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1;
}

.result-card p {
  max-width: 520px;
  margin: 16px 0 24px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(430px, 100vw);
  height: 100dvh;
  padding: 20px;
  background: var(--white);
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 56px rgba(3, 36, 22, 0.18);
  transform: translateX(105%);
  transition: transform 0.24s ease;
}

.cart-panel.open {
  transform: translateX(0);
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(3, 36, 22, 0.28);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.cart-header h2 {
  margin: 0;
  color: var(--green-950);
  font-size: 30px;
  line-height: 1;
}

.cart-close,
.ghost-checkout-button {
  min-height: 40px;
  padding: 0 13px;
  color: var(--green-800);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 850;
}

.cart-close:hover,
.cart-close:focus-visible,
.ghost-checkout-button:hover,
.ghost-checkout-button:focus-visible {
  border-color: var(--green-700);
  outline: none;
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding: 18px 0;
}

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

.cart-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: var(--green-50);
  border-radius: 6px;
}

.cart-item h3 {
  margin: 0;
  color: var(--green-950);
  font-size: 17px;
  line-height: 1.1;
}

.cart-item p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.quantity-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.quantity-controls button,
.remove-item {
  min-width: 32px;
  height: 32px;
  color: var(--green-900);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 900;
}

.remove-item {
  min-width: 0;
  padding: 0 10px;
  font-size: 12px;
}

.cart-empty {
  margin: 18px 0;
  color: var(--muted);
  font-size: 15px;
}

.cart-summary {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.cart-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cart-summary span,
.cart-summary small {
  color: var(--muted);
}

.cart-summary strong {
  color: var(--green-950);
  font-size: 28px;
}

.checkout-button {
  min-height: 48px;
  color: var(--white);
  background: var(--green-700);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 900;
}

.checkout-button:hover,
.checkout-button:focus-visible {
  background: var(--green-900);
  outline: none;
}

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

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

  .header-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 36px;
  }

  .hero-visual {
    min-height: 340px;
  }

  .hero-visual img {
    height: 340px;
  }

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

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

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .hero,
  .inventory,
  .order-flow,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .header-inner {
    min-height: 68px;
    gap: 16px;
  }

  .brand {
    font-size: 24px;
  }

  .brand svg {
    width: 34px;
    height: 34px;
  }

  .header-inner > .whatsapp-button {
    display: none;
  }

  .header-actions > .whatsapp-button {
    min-height: 38px;
    padding: 0 11px;
    font-size: 0;
  }

  .header-actions > .whatsapp-button svg {
    margin: 0;
  }

  .cart-toggle {
    min-height: 38px;
    padding: 0 11px;
    font-size: 14px;
  }

  .hero {
    padding-bottom: 28px;
  }

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

  .hero p {
    font-size: 17px;
  }

  .button,
  .search-control button {
    width: 100%;
  }

  .search-control {
    grid-template-columns: 22px 1fr;
    padding: 12px;
  }

  .search-control button {
    grid-column: 1 / -1;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 270px;
    height: 270px;
  }

  .section-heading {
    display: block;
  }

  .text-action {
    margin-top: 14px;
  }

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

  .tree-card {
    grid-template-rows: 210px 1fr;
    min-height: 430px;
  }

  .photo-wrap img {
    height: 194px;
  }

  dl {
    grid-template-columns: 1fr;
  }

  .card-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .order-button {
    width: 100%;
  }

  .steps article {
    grid-template-columns: 38px 1fr;
    padding: 18px 15px;
  }

  .steps p {
    grid-column: 1 / -1;
    margin-left: 53px;
  }
}

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