:root {
  --leaf: #27724c;
  --leaf-dark: #153d2f;
  --mint: #e8f6ec;
  --soil: #6b4b36;
  --sun: #f7c948;
  --rose: #d85a63;
  --ink: #17221d;
  --muted: #5f6f66;
  --line: #dbe5dd;
  --page: #fbfdf8;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(22, 52, 35, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page);
}

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

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 52px);
  border-bottom: 1px solid rgba(219, 229, 221, 0.85);
  background: rgba(251, 253, 248, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--leaf);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.muted {
  color: var(--muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 700;
}

.header-actions a {
  padding: 10px 8px;
}

.cart-toggle,
.ghost-link,
.primary-link,
.checkout-btn,
.filter-btn,
.icon-btn {
  border: 0;
  border-radius: 8px;
  font-weight: 800;
}

.cart-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  color: var(--white);
  background: var(--leaf-dark);
}

.cart-toggle strong {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  font-size: 0.8rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.98fr);
  align-items: center;
  gap: clamp(24px, 5vw, 68px);
  min-height: 515px;
  padding: clamp(28px, 4vw, 54px) clamp(16px, 5vw, 70px) 24px;
  background:
    linear-gradient(110deg, rgba(232, 246, 236, 0.95), rgba(251, 253, 248, 0.7) 62%),
    linear-gradient(180deg, #ffffff, #f3faf1);
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero p {
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.35vw, 1.12rem);
  line-height: 1.55;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.primary-link,
.whatsapp-link,
.ghost-link,
.checkout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
}

.primary-link,
.checkout-btn {
  color: var(--white);
  background: var(--leaf);
  box-shadow: 0 10px 22px rgba(39, 114, 76, 0.22);
}

.whatsapp-link {
  color: var(--white);
  background: #128c7e;
  box-shadow: 0 10px 22px rgba(18, 140, 126, 0.2);
}

.whatsapp-link.disabled {
  pointer-events: none;
  opacity: 0.58;
}

.ghost-link {
  color: var(--leaf-dark);
  background: var(--white);
  border: 1px solid var(--line);
}

.hero-visual {
  align-self: stretch;
  display: grid;
  min-height: 320px;
  place-items: end center;
}

.hero-visual img {
  width: min(100%, 650px);
  max-height: 430px;
  object-fit: contain;
  filter: drop-shadow(0 22px 30px rgba(39, 70, 47, 0.18));
}

.shop-rules {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.shop-rules article {
  padding: 22px clamp(16px, 3vw, 36px);
  background: var(--white);
}

.shop-rules strong,
.shop-rules span {
  display: block;
}

.shop-rules strong {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.shop-rules span {
  color: var(--muted);
  line-height: 1.45;
}

.section-heading,
.info-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 40px clamp(16px, 5vw, 70px) 22px;
}

.section-heading h2,
.info-band h2,
.drawer-header h2,
.modal h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  letter-spacing: 0;
}

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

.filter-btn {
  min-height: 38px;
  padding: 0 13px;
  color: var(--leaf-dark);
  background: var(--white);
  border: 1px solid var(--line);
}

.filter-btn.active {
  color: var(--white);
  background: var(--leaf-dark);
  border-color: var(--leaf-dark);
}

.plant-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 0 clamp(16px, 5vw, 70px) 58px;
}

.plant-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(21, 61, 47, 0.07);
}

.plant-art {
  height: 162px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--mint), #fff6dd);
}

.plant-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.plant-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.plant-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.plant-body h3 {
  margin: 0;
  font-size: 1.08rem;
}

.plant-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

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

.price {
  color: var(--leaf-dark);
  font-size: 1.15rem;
  font-weight: 900;
}

.add-btn {
  min-height: 40px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background: var(--leaf);
  font-weight: 900;
}

.info-band {
  align-items: flex-start;
  padding-bottom: 58px;
  background: var(--leaf-dark);
  color: var(--white);
}

.info-band .eyebrow {
  color: var(--sun);
}

.info-list {
  display: grid;
  max-width: 640px;
  gap: 12px;
}

.info-list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.cart-drawer,
.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  background: rgba(12, 24, 17, 0.44);
}

.cart-drawer.open,
.modal.open {
  display: block;
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  width: min(100%, 430px);
  height: 100%;
  flex-direction: column;
  gap: 16px;
  overflow: auto;
  padding: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.drawer-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.icon-btn {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--leaf-dark);
  background: var(--mint);
  font-size: 1.5rem;
  line-height: 1;
}

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

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

.cart-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf8;
}

.cart-row strong,
.cart-row span {
  display: block;
}

.cart-row span {
  color: var(--muted);
  font-size: 0.88rem;
}

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

.qty-controls button {
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--leaf-dark);
  font-weight: 900;
}

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

.checkout-form {
  display: grid;
  gap: 12px;
}

.checkout-form label {
  display: grid;
  gap: 7px;
  color: var(--leaf-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--page);
  color: var(--ink);
}

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

.cart-summary div {
  display: flex;
  justify-content: space-between;
}

.cart-summary .total {
  font-size: 1.2rem;
}

.cart-warning {
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  color: #7a3b00;
  background: #fff3d8;
  font-weight: 700;
}

.checkout-btn {
  width: 100%;
}

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

.modal {
  place-items: center;
  padding: 18px;
}

.modal.open {
  display: grid;
}

.modal-panel {
  position: relative;
  width: min(100%, 880px);
  max-height: 92vh;
  overflow: auto;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.payment-layout {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 26px;
  padding: clamp(22px, 4vw, 38px);
}

.order-box {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--page);
}

.order-box p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
}

.full {
  width: 100%;
  margin-top: 10px;
}

.qr-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mint);
  text-align: center;
}

.qr-card img {
  width: 100%;
  border-radius: 8px;
  background: var(--white);
}

.qr-card span {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: none;
  max-width: min(360px, calc(100vw - 36px));
  padding: 13px 15px;
  border-radius: 8px;
  color: var(--white);
  background: var(--leaf-dark);
  box-shadow: var(--shadow);
  font-weight: 800;
}

.toast.show {
  display: block;
}

@media (max-width: 1020px) {
  .plant-grid,
  .shop-rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hero-visual {
    min-height: 300px;
    place-items: center;
  }
}

@media (max-width: 720px) {
  .site-header,
  .section-heading,
  .info-band {
    align-items: stretch;
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
    gap: 4px;
    font-size: 0.88rem;
  }

  .header-actions a {
    padding-inline: 4px;
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    font-size: 2.35rem;
    line-height: 1.04;
  }

  .shop-rules,
  .plant-grid,
  .payment-layout {
    grid-template-columns: 1fr;
  }

  .plant-card {
    min-height: 0;
  }
}
