:root {
  --forest: #2d5016;
  --forest-dark: #1f3910;
  --sage: #4f772d;
  --leaf-soft: #eef4e7;
  --cream: #faf7f0;
  --paper: #ffffff;
  --earth: #8b5a2b;
  --amber: #b45309;
  --ink: #1f291c;
  --muted: #586355;
  --border: #dfd9cc;
  --radius: 10px;
  --shadow: 0 6px 22px rgba(31, 57, 16, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
}
h1, h2, h3, .brand-text strong {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.01em;
}
a { color: var(--forest); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(1220px, 92%); margin: 0 auto; }

/* Top Utility Bar */
.top-utility {
  background: var(--forest-dark);
  color: #edf5e6;
  font-size: 0.84rem;
  padding: 0.45rem 0;
}
.top-utility-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.utility-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.utility-right a { color: #e2eed8; font-weight: 500; }
.lang-switch { display: inline-flex; gap: 0.25rem; background: rgba(255,255,255,0.1); padding: 2px; border-radius: 6px; }
.lang-btn {
  border: 0; background: transparent; color: #e8f2df;
  font-size: 0.76rem; font-weight: 700; padding: 0.22rem 0.5rem;
  border-radius: 4px; cursor: pointer;
}
.lang-btn.active { background: #fff; color: var(--forest-dark); }

/* Store Header */
.store-header {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.header-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  padding: 0.85rem 0;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.32rem; color: var(--forest-dark); letter-spacing: 0.04em; }
.brand-text small { font-size: 0.76rem; color: var(--muted); }

.header-search {
  display: flex;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.header-search input {
  flex: 1; border: 0; padding: 0.65rem 0.9rem; font-size: 0.94rem; outline: none;
}
.header-search button {
  border: 0; background: var(--forest); color: #fff; font-weight: 600;
  padding: 0 1.2rem; cursor: pointer;
}
.header-search button:hover { background: var(--forest-dark); }

.cart-trigger {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--leaf-soft); border: 1px solid #cdddc0;
  border-radius: 8px; padding: 0.45rem 0.85rem; cursor: pointer;
  color: var(--forest-dark); text-align: start;
}
.cart-trigger:hover { background: #e1edd6; }
.cart-icon { font-size: 1.35rem; }
.cart-meta { display: flex; flex-direction: column; line-height: 1.2; }
.cart-meta strong { font-size: 0.88rem; }
.cart-meta small { font-size: 0.77rem; color: var(--muted); }

/* Department Nav */
.dept-nav {
  background: #f4f1e8;
  border-top: 1px solid var(--border);
}
.dept-nav-inner {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0.45rem 0;
  scrollbar-width: thin;
}
.dept-link {
  border: 0; background: transparent; color: var(--ink);
  font-weight: 600; font-size: 0.9rem; padding: 0.48rem 0.9rem;
  border-radius: 6px; cursor: pointer; white-space: nowrap;
}
.dept-link:hover { background: #e7e2d3; text-decoration: none; }
.dept-link.active { background: var(--forest); color: #fff; }
.dept-guide { margin-inline-start: auto; color: var(--earth); }

/* Hero */
.hero-banner {
  background: linear-gradient(135deg, #213d12 0%, #345e1d 55%, #4a7229 100%);
  color: #fff;
  padding: 2.8rem 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 2rem;
  align-items: center;
}
.hero-kicker {
  display: inline-block;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em;
  background: rgba(255,255,255,0.14); padding: 0.3rem 0.7rem;
  border-radius: 999px; margin-bottom: 0.9rem;
}
.hero-content h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 3.2vw, 2.7rem);
  line-height: 1.18;
}
.hero-content p { margin: 0 0 1.4rem; color: #e8f2df; font-size: 1.02rem; max-width: 58ch; }
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.trust-strip {
  display: flex; flex-wrap: wrap; gap: 0.65rem 1.25rem;
  font-size: 0.85rem; color: #dcebd0;
}

.hero-card {
  background: #faf7f0;
  color: var(--ink);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 14px 32px rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.3);
}
.hero-badge {
  display: inline-block; background: #fef3c7; color: #92400e;
  font-size: 0.76rem; font-weight: 700; padding: 0.25rem 0.6rem;
  border-radius: 6px; margin-bottom: 0.6rem;
}
.hero-card h2 { margin: 0 0 0.5rem; font-size: 1.32rem; color: var(--forest-dark); }
.hero-card p { margin: 0 0 0.9rem; font-size: 0.9rem; color: var(--muted); }
.hero-box-list {
  margin: 0 0 1.1rem; padding-inline-start: 1.15rem; font-size: 0.88rem;
}
.hero-box-list li { margin-bottom: 0.25rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border: 1.5px solid transparent; border-radius: 8px;
  font-weight: 600; font-size: 0.92rem; padding: 0.65rem 1.15rem;
  cursor: pointer; text-decoration: none; transition: 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-dark); }
.btn-accent { background: var(--amber); color: #fff; }
.btn-accent:hover { background: #92400e; }
.btn-outline { background: transparent; border-color: #c8c0ae; color: inherit; }
.hero-banner .btn-outline { border-color: rgba(255,255,255,0.65); color: #fff; }
.hero-banner .btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-whatsapp { background: #15803d; color: #fff; }
.btn-whatsapp:hover { background: #166534; }
.btn-full { width: 100%; }
.btn-sm { padding: 0.45rem 0.75rem; font-size: 0.84rem; }

/* Department Quick Tiles */
.dept-tiles-section { padding: 1.5rem 0 0.5rem; }
.dept-tiles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
}
.dept-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem;
  background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem; cursor: pointer;
  text-align: start; transition: 0.15s ease;
}
.dept-tile:hover { border-color: var(--forest); box-shadow: var(--shadow); transform: translateY(-2px); }
.tile-ico { font-size: 1.5rem; }
.dept-tile strong { font-size: 0.94rem; color: var(--forest-dark); }
.dept-tile small { font-size: 0.78rem; color: var(--muted); }

/* Catalog Section */
.catalog-section { padding: 2rem 0 3rem; }
.catalog-topbar {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem;
}
.catalog-topbar h2 { margin: 0; font-size: 1.7rem; color: var(--forest-dark); }
.catalog-count { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.9rem; }
.catalog-sort { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.catalog-sort select {
  padding: 0.45rem 0.7rem; border: 1px solid var(--border);
  border-radius: 6px; background: #fff; font-size: 0.9rem;
}

.az-bar {
  display: flex; flex-wrap: wrap; gap: 0.3rem;
  margin-bottom: 1.25rem; padding: 0.6rem;
  background: #f2eee4; border-radius: 8px; border: 1px solid var(--border);
}
.az-btn {
  border: 1px solid transparent; background: #fff; color: var(--ink);
  font-size: 0.8rem; font-weight: 700; padding: 0.28rem 0.55rem;
  border-radius: 5px; cursor: pointer;
}
.az-btn.active { background: var(--forest); color: #fff; }

.shop-layout {
  display: grid;
  grid-template-columns: 245px 1fr;
  gap: 1.5rem;
  align-items: start;
}
.shop-sidebar {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  position: sticky;
  top: 118px;
}
.filter-box { margin-bottom: 1.1rem; padding-bottom: 1rem; border-bottom: 1px solid #eee9dd; }
.filter-box:last-of-type { border-bottom: 0; }
.filter-box h3 { margin: 0 0 0.6rem; font-size: 0.98rem; color: var(--forest-dark); }
.filter-list { display: flex; flex-direction: column; gap: 0.3rem; }
.side-dept-btn {
  border: 0; background: transparent; text-align: start; padding: 0.35rem 0.55rem;
  border-radius: 6px; cursor: pointer; font-size: 0.88rem; color: var(--ink);
  display: flex; justify-content: space-between;
}
.side-dept-btn:hover { background: var(--leaf-soft); }
.side-dept-btn.active { background: var(--forest); color: #fff; font-weight: 600; }
.check-row {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.88rem; margin-bottom: 0.38rem; cursor: pointer;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}
.product-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.16s ease;
}
.product-card:hover { box-shadow: var(--shadow); border-color: #b8c9a8; }
.product-thumb {
  height: 215px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #ece8dc;
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.product-card:hover .product-thumb img {
  transform: scale(1.05);
}
.thumb-badge {
  position: absolute; top: 0.6rem; inset-inline-start: 0.6rem; z-index: 2;
  font-size: 0.72rem; font-weight: 700; padding: 0.22rem 0.55rem;
  border-radius: 999px; background: rgba(255,255,255,0.94); color: var(--forest-dark);
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.stock-pill {
  position: absolute; top: 0.6rem; inset-inline-end: 0.6rem; z-index: 2;
  font-size: 0.7rem; font-weight: 700; padding: 0.22rem 0.55rem;
  border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.pdp-hero-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
  display: block;
}
.stock-in { background: #dcfce7; color: #166534; }
.stock-pre { background: #fef3c7; color: #92400e; }

.product-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-cat { font-size: 0.73rem; font-weight: 700; text-transform: uppercase; color: var(--sage); letter-spacing: 0.04em; }
.product-title { margin: 0.2rem 0 0.1rem; font-size: 1.08rem; color: var(--forest-dark); }
.product-latin { font-style: italic; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.55rem; }
.product-desc { font-size: 0.86rem; color: #3f4a3c; margin: 0 0 0.75rem; flex: 1; }
.product-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 0.75rem; padding-top: 0.6rem; border-top: 1px solid #f0ece2;
}
.product-unit { font-size: 0.78rem; color: var(--muted); }
.product-price { font-size: 1.1rem; font-weight: 800; color: var(--forest-dark); }
.product-actions { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; }

/* Guide & FAQ & Contact */
.guide-section { background: #eef4e7; padding: 3rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; margin-bottom: 1.8rem; }
.kicker { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; color: var(--sage); display: inline-block; margin-bottom: 0.4rem; }
.section-head h2, .faq-section h2, .contact-section h2 { margin: 0; font-size: 1.75rem; color: var(--forest-dark); }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.guide-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; }
.step-num { display: inline-block; font-family: Georgia, serif; font-size: 1.4rem; font-weight: 700; color: var(--amber); margin-bottom: 0.4rem; }
.guide-card h3 { margin: 0 0 0.5rem; color: var(--forest-dark); }
.guide-card p { margin: 0; font-size: 0.92rem; color: var(--muted); }

.faq-section { padding: 3rem 0; }
.faq-grid { display: grid; grid-template-columns: 0.95fr 1.25fr; gap: 2rem; align-items: start; }
.faq-list details {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 0.9rem 1.1rem; margin-bottom: 0.7rem;
}
.faq-list summary { font-weight: 700; cursor: pointer; color: var(--forest-dark); }
.faq-list details p { margin: 0.6rem 0 0; font-size: 0.92rem; color: var(--muted); }

.contact-section { background: #f2eee4; padding: 3rem 0; border-top: 1px solid var(--border); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem; align-items: start; }
.contact-badges { display: flex; flex-direction: column; gap: 0.45rem; margin-top: 1rem; font-size: 0.93rem; }
.lead-form {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.form-row { margin-bottom: 0.9rem; }
.form-row.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.form-row label { display: block; font-size: 0.84rem; font-weight: 600; margin-bottom: 0.3rem; }
.form-row input, .form-row textarea, .drawer-form input {
  width: 100%; padding: 0.62rem 0.75rem; border: 1px solid var(--border);
  border-radius: 6px; font: inherit; font-size: 0.92rem;
}
.form-status { margin: 0.65rem 0 0; font-size: 0.88rem; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: #15803d; }
.form-status.err { color: #b91c1c; }

/* Footer */
.site-footer { background: var(--forest-dark); color: #dcebd0; padding: 2.2rem 0; }
.footer-inner { display: grid; grid-template-columns: 1fr 1.5fr; gap: 2rem; align-items: start; }
.site-footer strong { color: #fff; }
.footer-legal p { margin: 0 0 0.6rem; font-size: 0.84rem; line-height: 1.5; color: #cde0be; }

/* Modal & Drawer */
.modal-backdrop, .drawer-backdrop {
  position: fixed; inset: 0; background: rgba(16, 28, 12, 0.55);
  z-index: 80; display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.modal-backdrop[hidden], .drawer-backdrop[hidden] { display: none; }
.modal-card {
  background: #fff; width: min(680px, 100%); max-height: 90vh; overflow-y: auto;
  border-radius: 12px; padding: 1.5rem; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.modal-close {
  position: absolute; top: 0.8rem; inset-inline-end: 0.9rem;
  border: 0; background: #f2eee4; width: 34px; height: 34px; border-radius: 50%;
  font-size: 1.35rem; cursor: pointer; line-height: 1;
}
.pdp-specs {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem;
  background: var(--cream); padding: 0.9rem; border-radius: 8px; margin: 1rem 0;
  font-size: 0.88rem;
}
.drawer-backdrop { justify-content: flex-end; padding: 0; }
.drawer-panel {
  background: #fff; width: min(420px, 100%); height: 100%;
  display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0,0,0,0.2);
}
.drawer-head {
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; position: relative;
}
.drawer-head h3 { margin: 0; color: var(--forest-dark); }
.drawer-items { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; }
.cart-item {
  display: flex; justify-content: space-between; align-items: center; gap: 0.7rem;
  padding: 0.7rem 0; border-bottom: 1px solid #eee9dd;
}
.qty-ctrl { display: inline-flex; align-items: center; gap: 0.4rem; }
.qty-ctrl button {
  width: 26px; height: 26px; border: 1px solid var(--border); background: #f8f6f0;
  border-radius: 5px; cursor: pointer; font-weight: 700;
}
.drawer-foot { padding: 1rem 1.25rem; border-top: 1px solid var(--border); background: var(--cream); }
.drawer-total { display: flex; justify-content: space-between; font-size: 1.05rem; margin-bottom: 0.85rem; }
.drawer-form { display: flex; flex-direction: column; gap: 0.55rem; }

/* Responsive */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .dept-tiles { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .header-main { grid-template-columns: 1fr auto; }
  .header-search { grid-column: 1 / -1; order: 3; max-width: none; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; }
  .guide-grid, .faq-grid, .contact-grid, .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .product-grid, .dept-tiles, .form-row.two-col, .pdp-specs { grid-template-columns: 1fr; }
}
