:root {
  color-scheme: light;
  font: 16px/1.45 system-ui, sans-serif;
  color: #172b25;
  background: #f4f6ef;
  --forest: #142923;
  --lime: #d8f67d;
  --muted: #52645b;
  --line: #dce5da;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; padding-bottom: calc(98px + env(safe-area-inset-bottom)); }
button, input, select, textarea { font: inherit; }
button, select, a { cursor: pointer; }
button:disabled { opacity: .48; cursor: default; }
:focus-visible { outline: 3px solid #40805c; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(100% - 2rem, 75rem); margin-inline: auto; }
.top { background: var(--forest); color: white; }
.top-inner { display: flex; justify-content: space-between; align-items: center; min-height: 64px; gap: .5rem; }
.brand { display: flex; gap: .55rem; align-items: center; font-size: 1.2rem; font-weight: 800; }
.mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--forest); background: var(--lime); }
.top-label, .eyebrow { font-size: .7rem; letter-spacing: .13em; font-weight: 800; }
.top-label { color: #d4e1d6; text-align: right; }
.hero { margin: 1rem 0; padding: clamp(1.25rem, 5vw, 3.5rem); border-radius: 22px; background: radial-gradient(ellipse at top right, #315542, transparent 75%), var(--forest); color: white; }
.hero .eyebrow { color: var(--lime); }
h1 { font-size: clamp(2.25rem, 7vw, 4.5rem); line-height: 1.04; letter-spacing: -.05em; margin: .45rem 0 .7rem; }
.hero > p:not(.eyebrow) { color: #e0ebe2; }
.date { display: inline-block; margin-top: 1rem; padding: .3rem .65rem; border: 1px solid #71907b; border-radius: 999px; font-size: .78rem; }
.filters { display: grid; gap: .8rem; border: 1px solid var(--line); border-radius: 18px; background: white; padding: .9rem; }
.field { display: grid; gap: .3rem; min-width: 0; }
label { font-size: .83rem; font-weight: 750; }
.search { position: relative; }
.search span { position: absolute; top: 50%; left: .75rem; transform: translateY(-50%); font-size: 1.55rem; pointer-events: none; }
input, select, textarea { min-width: 0; width: 100%; color: inherit; border: 1px solid #c7d3c9; border-radius: 10px; background: #fafbf8; padding: .65rem .75rem; min-height: 46px; }
input { padding-left: 2.1rem; }
.result-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin: 1.2rem 0 .65rem; }
.result-head span, .codes { color: var(--muted); font-size: .8rem; }
.grid { display: grid; gap: .65rem; }
.product { display: flex; flex-direction: column; gap: .36rem; min-width: 0; padding: .9rem; background: white; border: 1px solid var(--line); border-radius: 15px; }
.product.selected { border-color: #779d46; }
.tag { align-self: flex-start; padding: .22rem .55rem; border-radius: 6px; font-size: .66rem; font-weight: 750; background: #eaf2e5; color: #34503e; }
h3 { font-size: .98rem; overflow-wrap: anywhere; }
.product-bottom { display: flex; justify-content: space-between; align-items: center; gap: .4rem; padding-top: .45rem; margin-top: auto; }
.price { font-weight: 800; font-size: 1.1rem; }
.price small { color: var(--muted); font-size: .72rem; font-weight: 500; }
.stepper { display: flex; align-items: center; gap: .2rem; border: 1px solid var(--line); background: #f4f7f0; border-radius: 10px; padding: 2px; flex-shrink: 0; }
.stepper button, .close { min-width: 44px; min-height: 44px; border: 0; border-radius: 8px; color: var(--forest); background: #e5eddf; font-size: 1.22rem; font-weight: 750; }
.stepper button:last-child { background: var(--lime); }
.qty { min-width: 2rem; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.dock { position: fixed; bottom: 0; inset-inline: 0; padding: .6rem 0 calc(.6rem + env(safe-area-inset-bottom)); background: var(--forest); color: white; z-index: 2; }
.dock-inner, .cart-head, .cart-total { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.dock span { display: block; color: #d4e1d6; font-size: .78rem; }
.dock strong, .cart-total strong { font-size: 1.28rem; }
.primary, .secondary { display: inline-flex; justify-content: center; align-items: center; text-align: center; border-radius: 10px; border: 1px solid transparent; min-height: 46px; padding: .55rem .9rem; background: var(--lime); color: var(--forest); font-weight: 800; text-decoration: none; }
.secondary { background: white; border-color: #a9bbad; }
.empty { padding: 1rem; background: #eef3e9; border-radius: 12px; }
dialog { width: min(100% - 1rem, 39rem); max-height: min(90vh, 90dvh); border: 0; border-radius: 18px; padding: 0; color: inherit; }
dialog[open] { display: flex; flex-direction: column; }
dialog::backdrop { background: #10241dd0; }
.cart-head, .cart-foot { padding: .85rem 1rem; background: #f6f8f2; }
.cart-body { overflow: auto; padding: .6rem 1rem; }
.cart-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .45rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.cart-info { flex: 1 1 13rem; }
.cart-controls { display: flex; align-items: center; gap: .65rem; margin-left: auto; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
#aviso { font-size: .8rem; color: var(--muted); }
#aviso:not(:empty) { margin-top: .5rem; }
#mensaje { margin-top: .4rem; }
@media (min-width: 38rem) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: 2fr 1fr; }
}
@media (min-width: 65rem) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
}

