:root {
  --ink: #112621;
  --muted: #64716d;
  --green: #184c3d;
  --green-2: #2b725b;
  --cream: #f7f4ed;
  --paper: #fff;
  --gold: #cf9b43;
  --line: rgba(17,38,33,.12);
  --shadow: 0 22px 60px rgba(17,38,33,.13);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
a { color: inherit; text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f0f5f1 0, var(--cream) 520px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.sidebar-open { overflow: hidden; }
button, input, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 100;
  background: #fff; color: var(--ink); padding: 12px 16px; border-radius: 12px;
}
.skip-link:focus { top: 16px; }

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247,244,237,.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.topbar__inner {
  max-width: 1440px; margin: 0 auto; padding: 12px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.topbar__actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.language-control { position: relative; display: block; }
.language-control select {
  height: 44px; min-width: 170px; padding: 0 38px 0 13px;
  border: 1px solid var(--line); border-radius: 12px; outline: 0;
  background: #fff; color: var(--ink); font-weight: 800; cursor: pointer;
}
.language-control select:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(43,114,91,.12); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand__mark {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  color: #fff; font-weight: 900; letter-spacing: -.04em;
  background: linear-gradient(140deg, var(--green-2), var(--green));
  box-shadow: 0 10px 24px rgba(24,76,61,.25);
}
.brand__copy strong, .brand__copy span { display: block; }
.brand__copy strong { font-size: .98rem; letter-spacing: -.02em; }
.brand__copy span { color: var(--muted); font-size: .76rem; margin-top: 2px; }
.menu-button {
  display: none; border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 10px 14px; border-radius: 12px; font-weight: 800;
}
.topbar__meta { color: var(--muted); font-size: .82rem; white-space: nowrap; }

.hero { max-width: 1440px; margin: 0 auto; padding: 64px 28px 30px; }
.hero__panel {
  min-height: 430px; padding: clamp(34px, 6vw, 82px); border-radius: 34px;
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(300px, .75fr); gap: 52px; align-items: center;
  color: #fff; overflow: hidden; position: relative;
  background:
    radial-gradient(circle at 86% 22%, rgba(207,155,67,.36), transparent 31%),
    radial-gradient(circle at 70% 110%, rgba(92,162,131,.35), transparent 36%),
    linear-gradient(135deg, #102d26, #1d5b49 72%, #1a493d);
  box-shadow: var(--shadow);
}
.hero__panel::after {
  content: ""; position: absolute; width: 440px; height: 440px; right: -140px; top: -170px;
  border: 1px solid rgba(255,255,255,.14); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.035), 0 0 0 140px rgba(255,255,255,.025);
}
.eyebrow { color: #f1ca83; font-size: .74rem; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.hero h1 {
  margin: 16px 0 20px; max-width: 780px; font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.65rem, 6vw, 5.8rem); line-height: .94; font-weight: 500; letter-spacing: -.055em;
}
.hero h1 em { color: #f1ca83; font-weight: 500; }
.hero p { max-width: 680px; margin: 0; color: rgba(255,255,255,.78); font-size: clamp(1rem, 1.35vw, 1.22rem); line-height: 1.7; }
.hero__stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat { padding: 22px; border: 1px solid rgba(255,255,255,.16); border-radius: 22px; background: rgba(255,255,255,.09); backdrop-filter: blur(12px); }
.stat strong { display: block; font-family: Georgia, serif; font-size: 2.1rem; color: #f4d79f; }
.stat span { display: block; margin-top: 6px; color: rgba(255,255,255,.72); font-size: .82rem; line-height: 1.4; }

.catalog-shell { max-width: 1440px; margin: 0 auto; padding: 18px 28px 80px; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 30px; }
.sidebar {
  align-self: start; position: sticky; top: 82px; padding: 24px; border-radius: var(--radius);
  background: rgba(255,255,255,.78); border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(17,38,33,.07);
}
.sidebar__close { display: none; position: absolute; right: 18px; top: 18px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--green); color: #fff; font-size: 1.35rem; }
.sidebar-overlay { display: none; }
.sidebar h2 { margin: 0 0 8px; font-size: 1.05rem; }
.sidebar p { margin: 0 0 18px; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.category-menu { display: grid; gap: 8px; }
.category-button {
  width: 100%; padding: 12px 14px; border: 0; border-radius: 12px; text-align: left;
  display: flex; justify-content: space-between; gap: 12px; background: transparent; color: var(--ink); font-weight: 750;
}
.category-button:hover { background: #edf3ef; }
.category-button.is-active { background: var(--green); color: #fff; }
.category-button span { opacity: .67; font-size: .78rem; }

.catalog-main { min-width: 0; }
.content-switch { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 12px; padding:6px; width:max-content; max-width:100%; border:1px solid var(--line); border-radius:15px; background:rgba(255,255,255,.78); }
.content-switch__button { min-height:42px; padding:9px 18px; border:0; border-radius:10px; background:transparent; color:var(--muted); font-weight:850; }
.content-switch__button.is-active { color:#fff; background:var(--green); box-shadow:0 7px 18px rgba(24,76,61,.2); }
.controls {
  position: sticky; top: 69px; z-index: 30; padding: 14px; border-radius: 20px;
  background: rgba(247,244,237,.93); border: 1px solid var(--line); backdrop-filter: blur(18px);
  display: grid; grid-template-columns: minmax(240px, 1.6fr) repeat(3, minmax(150px, .62fr)); gap: 10px;
}
.field { position: relative; }
.field svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; color: var(--muted); pointer-events: none; }
.field input, .field select {
  width: 100%; height: 48px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 13px; outline: 0;
}
.field input { padding: 0 14px 0 44px; }
.field select { padding: 0 38px 0 13px; }
.field input:focus, .field select:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(43,114,91,.12); }
.catalog-summary { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 25px 2px 17px; }
.catalog-summary h2 { margin: 0; font: 500 clamp(1.75rem, 3vw, 2.65rem)/1 Georgia, serif; letter-spacing: -.035em; }
.catalog-summary p { margin: 7px 0 0; color: var(--muted); font-size: .88rem; }
.clear-button { border: 0; background: none; color: var(--green-2); font-weight: 850; padding: 8px; }
.clear-button:hover { text-decoration: underline; }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.product-card {
  position: relative; min-width: 0; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: #fff;
  box-shadow: 0 10px 34px rgba(17,38,33,.07); transition: transform .22s ease, box-shadow .22s ease;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 20px 48px rgba(17,38,33,.13); }
.product-card__button { all: unset; display: block; cursor: pointer; width: 100%; }
.product-card__image { aspect-ratio: 16 / 9; overflow: hidden; background: #e8ece8; }
.product-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.product-card:hover .product-card__image img { transform: scale(1.025); }
.product-card__body { padding: 19px; }
.product-card__top { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.product-card h3 { margin: 0; font: 600 1.22rem/1.16 Georgia, serif; letter-spacing: -.02em; }
.price { color: var(--green); font-size: 1.12rem; font-weight: 900; white-space: nowrap; }
.product-card__code { margin: 8px 0 0; color: var(--muted); font: 750 .74rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }
.product-card__short { min-height: 62px; margin: 14px 0 18px; color: var(--muted); font-size: .86rem; line-height: 1.58; }
.product-card__footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.pill { padding: 7px 9px; border-radius: 999px; background: #edf3ef; color: var(--green); font-size: .68rem; font-weight: 850; }
.view-label { color: var(--green-2); font-size: .78rem; font-weight: 900; }
.share-whatsapp {
  position: absolute; z-index: 4; top: 12px; right: 12px; min-height: 36px; padding: 8px 11px;
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px; color: #fff; background: #1f9d55; font-size: .72rem; font-weight: 900;
  box-shadow: 0 8px 22px rgba(10,70,38,.28); transition: transform .18s ease, background .18s ease;
}
.share-whatsapp:hover { transform: translateY(-2px); background: #168247; }
.share-whatsapp:focus-visible { outline: 3px solid rgba(255,255,255,.9); outline-offset: 2px; }
.share-whatsapp svg { width: 17px; height: 17px; fill: currentColor; }
.empty { grid-column: 1 / -1; text-align: center; padding: 75px 24px; border: 1px dashed rgba(17,38,33,.22); border-radius: var(--radius); background: rgba(255,255,255,.64); }
.empty h3 { margin: 0 0 8px; font: 600 1.5rem Georgia, serif; }
.empty p { margin: 0; color: var(--muted); }

.catalog-footer { max-width: 1440px; margin: 0 auto; padding: 0 28px 48px; }
.notice { padding: 22px; border-radius: 18px; color: #57625f; background: #ede9df; font-size: .8rem; line-height: 1.65; }
.notice strong { color: var(--ink); }

.modal { width: min(1180px, calc(100vw - 38px)); max-height: calc(100vh - 38px); padding: 0; border: 0; border-radius: 26px; overflow: hidden; color: var(--ink); box-shadow: 0 40px 100px rgba(0,0,0,.35); }
.modal::backdrop { background: rgba(7,20,17,.74); backdrop-filter: blur(8px); }
.modal__inner { max-height: calc(100vh - 38px); overflow: auto; background: #fff; }
.modal__close { position: sticky; float: right; top: 14px; margin: 14px 14px -58px 0; z-index: 3; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(17,38,33,.88); color: #fff; font-size: 1.4rem; box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.modal__image {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  background: #eef1ee;
}
.modal__content { padding: clamp(24px, 4vw, 48px); }
.modal__head { display: flex; justify-content: space-between; align-items: start; gap: 30px; }
.modal__category { margin: 0 0 10px; color: var(--green-2); font-size: .72rem; text-transform: uppercase; font-weight: 900; letter-spacing: .13em; }
.modal h2 { margin: 0; font: 500 clamp(2rem, 4vw, 3.5rem)/1 Georgia, serif; letter-spacing: -.045em; }
.modal__price { color: var(--green); font-size: clamp(1.55rem, 3vw, 2.4rem); font-weight: 900; white-space: nowrap; }
.modal__meta { margin: 14px 0 0; color: var(--muted); font-size: .82rem; font-weight: 700; }
.modal__description { max-width: 920px; margin: 28px 0; color: #46524f; font-size: 1rem; line-height: 1.75; }
.modal__details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.detail-box { padding: 18px; border-radius: 16px; background: var(--cream); }
.detail-box strong { display: block; margin-bottom: 8px; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.detail-box span { color: #56615e; font-size: .88rem; line-height: 1.55; }
.detail-box--wide { grid-column:1 / -1; }
.detail-box[hidden] { display:none; }
.modal__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.purchase-link-dialog {
  width: min(530px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  overflow: auto;
  color: var(--ink);
  background: #fff;
  border: 0;
  border-radius: 24px;
  box-shadow: 0 35px 100px rgba(5, 31, 23, .38);
}
.purchase-link-dialog::backdrop { background: rgba(7, 25, 20, .76); backdrop-filter: blur(7px); }
.purchase-link-card { margin: 0; padding: clamp(24px, 6vw, 38px); }
.purchase-link-icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(145deg, var(--green-2), var(--green));
  border-radius: 16px; box-shadow: 0 11px 24px rgba(24,76,61,.24);
}
.purchase-link-icon svg { width: 25px; height: 25px; }
.purchase-link-card h2 { margin: 21px 0 9px; font: 600 clamp(1.65rem, 5vw, 2.2rem)/1.08 Georgia, serif; letter-spacing: -.03em; }
.purchase-link-card > p { margin: 0; color: var(--muted); font-size: .91rem; line-height: 1.58; }
.purchase-link-field { display: grid; gap: 8px; margin-top: 23px; }
.purchase-link-field span { color: var(--ink); font-size: .75rem; font-weight: 900; letter-spacing: .035em; text-transform: uppercase; }
.purchase-link-field input {
  width: 100%; min-height: 52px; padding: 0 14px; color: var(--ink); background: #fff;
  border: 1px solid rgba(17,38,33,.2); border-radius: 12px; outline: 0; font-size: .9rem;
}
.purchase-link-field input:focus { border-color: var(--green-2); box-shadow: 0 0 0 4px rgba(43,114,91,.12); }
.purchase-link-field input[aria-invalid="true"] { border-color: #bc3b3b; box-shadow: 0 0 0 4px rgba(188,59,59,.1); }
.purchase-link-card .purchase-link-error { margin-top: 8px; color: #a72f2f; font-size: .78rem; font-weight: 750; }
.purchase-link-card .purchase-link-privacy { margin-top: 12px; padding: 11px 13px; color: #5d6965; background: #f1f5f2; border-radius: 10px; font-size: .76rem; }
.purchase-link-actions { margin-top: 23px; display: grid; grid-template-columns: .72fr 1.28fr; gap: 9px; }
.purchase-link-actions button { min-height: 50px; padding: 10px 15px; border-radius: 12px; font-size: .8rem; font-weight: 900; }
.purchase-link-cancel { color: var(--green); background: #fff; border: 1px solid rgba(24,76,61,.2); }
.purchase-link-submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #fff; background: #1f9d55; border: 0; box-shadow: 0 10px 24px rgba(31,157,85,.2); }
.purchase-link-submit:hover { background: #168247; }
.purchase-link-submit svg { width: 19px; height: 19px; fill: currentColor; }

@media (max-width: 1180px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .controls { grid-template-columns: 1fr 1fr; }
  .controls .field:first-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .hero { padding-top: 34px; }
  .hero__panel { grid-template-columns: 1fr; min-height: auto; gap: 34px; }
  .hero__stats { max-width: 620px; }
  .catalog-shell { grid-template-columns: 1fr; }
  .menu-button { display: inline-flex; }
  .sidebar {
    position: fixed; z-index: 60; inset: 0 auto 0 0; width: min(86vw, 340px); border-radius: 0 24px 24px 0;
    transform: translateX(-106%); transition: transform .25s ease; overflow: auto; top: 0; padding-top: 76px;
  }
  .sidebar__close { display: grid; place-items: center; }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-overlay { display: block; position: fixed; z-index: 50; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(7,20,17,.55); opacity: 0; visibility: hidden; transition: .2s; }
  .sidebar-overlay.is-open { opacity: 1; visibility: visible; }
}

@media (max-width: 680px) {
  .topbar__inner { padding: 10px 15px; }
  .topbar__meta { display: none; }
  .brand__copy { display: none; }
  .topbar__actions { gap: 7px; }
  .language-control select { min-width: 0; width: 132px; height: 42px; padding-left: 9px; padding-right: 28px; font-size: .78rem; }
  .menu-button { height: 42px; padding: 9px 11px; }
  .hero { padding: 18px 14px 20px; }
  .hero__panel { padding: 34px 22px; border-radius: 24px; }
  .hero h1 { font-size: clamp(2.35rem, 13vw, 3.6rem); }
  .hero__stats { grid-template-columns: 1fr 1fr; gap: 9px; }
  .stat { padding: 15px; }
  .stat strong { font-size: 1.65rem; }
  .catalog-shell { padding: 6px 14px 54px; }
  .content-switch { width:100%; }
  .content-switch__button { flex:1; padding-left:10px; padding-right:10px; font-size:.82rem; }
  .controls { top: 65px; grid-template-columns: 1fr; padding: 10px; border-radius: 16px; }
  .controls .field:first-child { grid-column: auto; }
  .controls .field:nth-child(4) { display: none; }
  .catalog-summary { align-items: center; padding-top: 20px; }
  .catalog-summary h2 { font-size: 1.8rem; }
  .product-grid { grid-template-columns: 1fr; gap: 15px; }
  .product-card__body { padding: 17px; }
  .product-card__short { min-height: 0; }
  .share-whatsapp { top: 9px; right: 9px; min-height: 34px; padding: 7px 10px; }
  .catalog-footer { padding: 0 14px 34px; }
  .modal {
    position: fixed;
    inset: 6px;
    width: calc(100vw - 12px);
    height: calc(100vh - 12px);
    height: calc(100dvh - 12px);
    max-height: calc(100vh - 12px);
    max-height: calc(100dvh - 12px);
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
  }
  .modal__inner {
    width: 100%;
    height: 100%;
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
  .modal__image {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }
  .modal__head { display: block; }
  .modal__price { margin-top: 14px; }
  .modal__details { grid-template-columns: 1fr; }
  .purchase-link-dialog { width: calc(100vw - 18px); max-height: calc(100dvh - 18px); border-radius: 18px; }
  .purchase-link-card { padding: 23px 18px 19px; }
  .purchase-link-actions { grid-template-columns: 1fr; }
  .purchase-link-submit { grid-row: 1; }
}

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