:root {
  color-scheme: light;
  color: #272321;
  background: #f3f2ef;
  font-family: Arial, Helvetica, sans-serif;
  --line: #e6e0da;
  --ink: #2b2522;
  --accent: #8f352c;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.frame { width: min(1080px, calc(100% - 40px)); margin-inline: auto; }
.top {
  display: grid;
  grid-template-columns: minmax(85px, 1fr) minmax(0, 4fr) minmax(85px, 1.2fr);
  align-items: stretch;
  margin-top: 24px;
  border: 1px solid var(--line);
  background: white;
}
.brand, .partner-logo { min-width: 0; }
.brand { display: flex; align-items: center; }
.brand img, .partner-logo { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-banner {
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 10px;
  background: var(--ink);
  color: white;
  text-transform: uppercase;
}
.brand-banner p { margin: 0 0 4px; font-weight: 900; font-size: clamp(1.2rem, 4vw, 2.55rem); letter-spacing: -.025em; }
.brand-banner span { max-width: 38ch; font-size: clamp(.65rem, 1.6vw, .9rem); line-height: 1.25; }
main.frame { padding: 0 24px 20px; background: white; border: 1px solid var(--line); border-top: 0; }
.heading { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; padding-block: 20px 14px; }
h1 { margin: 0; text-transform: uppercase; font-size: clamp(1.15rem, 3vw, 1.8rem); font-weight: 900; }
.price-note { margin: 0 auto 0 0; color: var(--accent); font-size: .9rem; font-weight: 700; }
.print {
  border: 1px solid #a79a92;
  border-radius: 5px;
  background: white;
  color: var(--ink);
  padding: 8px 10px;
  font: inherit;
  font-size: .85rem;
  cursor: pointer;
}
.print:hover { background: #f6f2ef; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.catalog-filters { display: flex; gap: 12px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.catalog-filters label { display: grid; gap: 5px; font-size: .85rem; font-weight: 700; }
.catalog-filters label:first-child { flex: 1 1 240px; max-width: 390px; }
.catalog-filters :is(input, select) {
  min-width: 0;
  width: 100%;
  min-height: 38px;
  border: 1px solid #cfc6c0;
  border-radius: 5px;
  background: white;
  color: var(--ink);
  padding: 7px 9px;
  font: inherit;
  font-weight: 400;
}
.category { margin-top: 18px; }
.category > h2 {
  margin: 0 0 8px;
  padding: 6px 0 8px;
  border-bottom: 2px solid var(--ink);
  text-align: center;
  text-transform: uppercase;
  font-size: 1.25rem;
  font-weight: 900;
}
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 18px; }
[data-category="lacteos"] .products, [data-category="almacen"] .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 9px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.product-photo { display: grid; flex: 0 0 clamp(66px, 10vw, 110px); place-items: center; height: 96px; }
.product-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.product-info { min-width: 0; flex: 1; }
.product h2 { margin: 0 0 4px; font-size: .96rem; font-weight: 850; text-transform: uppercase; overflow-wrap: anywhere; }
dl, dd { margin: 0; }
dl > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 1px 8px; padding: 3px 0; }
dt { font-size: .82rem; color: #514641; }
dd { font-size: .93rem; font-weight: 800; white-space: nowrap; }
dd span { font-size: .74rem; font-weight: 500; }
footer.frame { padding: 12px 0 20px; color: #5f5550; font-size: .8rem; }
@media (max-width: 840px) {
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 550px) {
  .frame { width: calc(100% - 20px); }
  .top { margin-top: 10px; grid-template-columns: 67px minmax(0, 1fr) 72px; }
  main.frame { padding-inline: 12px; }
  .product-photo { flex-basis: 79px; height: 80px; }
  .category .products { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  :root { background: white; }
  .print, .catalog-filters { display: none !important; }
  .frame { width: 100%; }
  .top { margin-top: 0; print-color-adjust: exact; }
  main.frame { padding: 0; border: 0; }
  .heading { padding-block: 10px; }
  .category > h2 { break-after: avoid; }
  .category .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-photo { flex-basis: 76px; height: 68px; }
}
