:root {
  --ink: #18392f;
  --muted: #586860;
  --green: #214e3b;
  --cream: #f7f6f1;
  --line: #d8ded6;
  --accent: #eadfa7;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font:
    16px/1.6 "Segoe UI",
    Arial,
    sans-serif;
  background: var(--cream);
  color: var(--ink);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  background: var(--green);
  color: white;
  border: 1px solid var(--green);
  padding: 11px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  gap: 25px;
  align-items: center;
  justify-content: center;
}
button:hover,
.button:hover {
  background: #143326;
}
.secondary {
  background: white;
  color: var(--ink);
  border-color: #aebeb2;
}
.secondary:hover {
  background: #e9eee7;
}
.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  background: white;
  padding: 12px;
  z-index: 10;
}
.skip:focus {
  top: 10px;
}
:focus-visible {
  outline: 3px solid #ad6500;
  outline-offset: 4px;
}
header {
  max-width: 1280px;
  margin: auto;
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-size: 23px;
  font-weight: 750;
  line-height: 1.1;
}
.mark {
  background: var(--green);
  color: white;
  font-size: 30px;
  padding: 8px 12px;
  border-radius: 8px;
}
.brand-small {
  display: block;
  letter-spacing: 3px;
  font-size: 10px;
  margin-top: 7px;
}
nav {
  display: flex;
  gap: 28px;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 0;
}
nav a[aria-current="page"] {
  color: var(--green);
  border-bottom: 2px solid var(--green);
}
.location {
  font-size: 13px;
  color: var(--muted);
}
.demo {
  text-align: center;
  background: #e9eddf;
  font-size: 12px;
  padding: 7px 15px;
}
main {
  max-width: 1280px;
  margin: auto;
  padding: 0 32px 55px;
}
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  padding: 55px 0 45px;
  align-items: center;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #42624f;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 46px;
  line-height: 1.15;
  letter-spacing: -1.7px;
  margin-bottom: 20px;
}
h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
}
h2 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.7px;
  margin-bottom: 12px;
}
.hero p:not(.eyebrow) {
  max-width: 480px;
  color: var(--muted);
  margin-bottom: 25px;
}
.hero-art {
  position: relative;
  background: #e8eadb;
  min-height: 300px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  overflow: hidden;
}
.receipt {
  transform: rotate(-5deg);
  background: #fffef8;
  padding: 28px 35px;
  box-shadow: 10px 12px 0 #ccd3be;
  display: grid;
  gap: 10px;
}
.receipt small {
  font-size: 9px;
  letter-spacing: 2px;
}
.receipt strong {
  font-size: 26px;
  line-height: 1.25;
}
.receipt span,
.receipt b {
  font-size: 11px;
}
.receipt-line {
  border-top: 1px dashed #9ba88f;
}
.seal {
  position: absolute;
  right: 22px;
  bottom: 20px;
  background: var(--green);
  color: #f5eab6;
  border-radius: 50%;
  padding: 20px;
  font-size: 11px;
  letter-spacing: 2px;
  text-align: center;
  transform: rotate(12deg);
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 28px 0 20px;
}
.section-head p {
  margin-bottom: 6px;
}
.section-head h1 {
  font-size: 36px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: end;
  margin: 24px 0;
}
.filters label:first-child {
  flex: 2;
  min-width: 180px;
}
.filters label {
  flex: 1;
  min-width: 140px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
}
input,
select,
textarea {
  width: 100%;
  background: white;
  color: var(--ink);
  border: 1px solid #aebbb1;
  border-radius: 5px;
  padding: 10px 12px;
  min-height: 44px;
}
.check {
  flex-direction: row;
  align-items: center;
  min-height: 46px;
}
.check input {
  width: 18px;
  min-height: 18px;
}
.filters button {
  font-size: 13px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.product-art {
  height: 150px;
  display: grid;
  place-items: center;
  background: #eeefe3;
}
.product-art[data-category="Bebidas"] {
  background: #e6edf0;
}
.product-art[data-category="Cuidado personal"] {
  background: #efe6df;
}
.package {
  width: 65px;
  height: 92px;
  border: 2px solid #78917d;
  border-radius: 8px 8px 3px 3px;
  background: #fffdf3;
  display: grid;
  place-items: center;
  box-shadow: 7px 5px 0 #0000000d;
  font-family: Georgia, serif;
  color: #42644f;
  font-weight: bold;
  font-size: 24px;
  transform: rotate(-6deg);
}
.card-content {
  padding: 20px;
}
.card small {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--muted);
  text-transform: uppercase;
}
.card h3 {
  font-size: 19px;
  margin: 5px 0;
}
.card p {
  color: var(--muted);
  font-size: 13px;
}
.price {
  font-size: 23px;
  font-weight: 700;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  margin: 15px 0;
}
.badge {
  font-size: 11px;
  font-weight: 600;
  border-radius: 15px;
  padding: 3px 9px;
  background: #e6f0e5;
  color: #285631;
  white-space: nowrap;
}
.badge.low {
  background: #fcf0cb;
  color: #725009;
}
.badge.out {
  background: #f5e5e1;
  color: #883f2c;
}
.card button {
  width: 100%;
  font-size: 13px;
  background: white;
  color: var(--ink);
  border-color: var(--line);
}
.card button:hover {
  background: #edf3ec;
}
.notice {
  padding: 12px 16px;
  background: #fff1d6;
  border-radius: 6px;
  color: #674d15;
  font-size: 13px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}
.stat strong {
  font-size: 30px;
  display: block;
}
.stat span {
  font-size: 13px;
  color: var(--muted);
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
caption {
  text-align: left;
  padding: 12px 18px;
  font-size: 12px;
  color: var(--muted);
}
th {
  background: #e9eee5;
  font-size: 12px;
}
th,
td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
td small {
  display: block;
  color: var(--muted);
}
td button {
  padding: 6px 9px;
  font-size: 12px;
  min-height: 36px;
  margin: 2px;
}
.spaced {
  margin-top: 35px;
}
.movements {
  padding-left: 20px;
}
.movements li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.prose {
  max-width: 760px;
  margin: 50px auto;
}
.prose h2 {
  margin-top: 30px;
}
.message:not(:empty) {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 85vw;
  background: var(--green);
  color: white;
  padding: 15px 25px;
  box-shadow: 0 5px 25px #0002;
  border-radius: 8px;
  z-index: 4;
}
.empty {
  padding: 35px;
  text-align: center;
  border: 1px dashed var(--line);
}
footer {
  border-top: 1px solid var(--line);
  padding: 25px 32px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: var(--muted);
  font-size: 12px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px;
  max-width: 650px;
  width: calc(100% - 30px);
  max-height: 90vh;
  color: var(--ink);
}
dialog::backdrop {
  background: #10271ecc;
}
.close {
  float: right;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.wide {
  grid-column: 1/-1;
}
dialog label {
  margin-bottom: 12px;
}
dialog .product-art {
  clear: both;
  margin: 20px 0;
}
dialog h2 {
  margin-top: 20px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
[role="alert"] {
  color: #9a2828;
}
body:has(dialog[open]) {
  overflow: hidden;
}
[hidden] {
  display: none !important;
}
@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .location {
    display: none;
  }
  .hero {
    gap: 25px;
  }
  h1 {
    font-size: 36px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  header {
    padding: 15px 18px;
    flex-wrap: wrap;
    gap: 12px;
  }
  nav {
    gap: 22px;
    font-size: 14px;
  }
  .brand {
    font-size: 20px;
  }
  main {
    padding: 0 18px 35px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 30px;
    gap: 25px;
  }
  .hero-art {
    min-height: 245px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .section-head {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }
  .filters label {
    flex-basis: 40%;
  }
  .filters label:first-child {
    flex-basis: 100%;
  }
  h1 {
    font-size: 36px;
  }
  .section-head h1 {
    font-size: 30px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .wide {
    grid-column: auto;
  }
  footer {
    flex-direction: column;
  }
  dialog {
    padding: 20px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

