@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --paper: #f8f7f3;
  --white: #fffefa;
  --ink: #252622;
  --olive: #28372e;
  --muted: #66675e;
  --line: #dcddd5;
  --display: "Instrument Serif", Georgia, serif;
  color: var(--ink);
  background: var(--paper);
  font: 15px/1.55 "DM Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #648362; outline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }
img { display: block; max-width: 100%; object-fit: cover; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0 0 .35em; line-height: 1.08; }
h1, h2 { font-family: var(--display); font-weight: 400; }
h1 { font-size: clamp(2.8rem, 6vw, 6.7rem); }
h2 { font-size: clamp(2.05rem, 4vw, 3.4rem); }
h3 { font-size: 1.2rem; }
small { color: var(--muted); }
.masthead, footer {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 17px max(5vw, 20px); background: var(--white);
}
.masthead { border-bottom: 1px solid var(--line); }
.masthead nav { display: flex; align-items: center; gap: clamp(14px, 3.5vw, 48px); }
.masthead a, footer a { text-decoration: none; }
.masthead nav a:hover, footer a:hover { text-decoration: underline; }
.brand { display: inline-flex; align-items: center; gap: .25em; white-space: nowrap; font: 2rem/1 var(--display); }
.brand > span:last-child { color: #606f5d; }
.brand-mark { margin-right: .25em; width: 30px; height: 30px; display: inline-grid; place-items: center; color: var(--white); background: var(--olive); border-radius: 50%; font-size: 1.35rem; }
.account { white-space: nowrap; border: 1px solid var(--line); border-radius: 20px; padding: 7px 14px; font-size: .9rem; }
.hero {
  margin: 22px max(3vw, 14px) 0;
  min-height: clamp(440px, 49vw, 690px);
  display: flex; align-items: center; padding: clamp(28px, 7vw, 110px);
  background: linear-gradient(90deg, #151a13ed, #151a1330 67%, transparent), url('/snapmart-v2/media/portada.webp') center 57% / cover;
  color: #fffdf4; border-radius: 4px;
}
.hero h1 { margin-bottom: .24em; }
.hero p:not(.hero-label) { max-width: 345px; color: #f3f1e6; margin-bottom: 1.65rem; }
.hero-label { font-size: .86rem; letter-spacing: .07em; margin-bottom: .9rem; color: #e9eee2; }
.button, .search button, .item button {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px; width: fit-content;
  border: 1px solid var(--olive); border-radius: 24px; padding: 10px 17px;
  color: var(--white); background: var(--olive); text-decoration: none; font-weight: 600;
}
.button:hover, .search button:hover { background: #405748; }
.button.light { background: var(--white); color: var(--olive); border-color: var(--white); }
.button.light:hover { background: #e5ecdf; }
.section { width: min(1350px, 90%); margin: clamp(36px, 5vw, 76px) auto; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 21px; }
.section-head h1, .section-head h2 { margin-bottom: 0; }
.search { display: flex; align-items: center; width: min(100%, 345px); gap: 5px; border: 1px solid var(--line); border-radius: 26px; background: var(--white); padding: 4px; }
.search input { min-width: 0; width: 100%; border: 0; background: transparent; padding: 5px 10px; }
.search button { padding: 5px 13px; font-size: .85rem; }
.departments { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: clamp(8px, 1.1vw, 19px); }
.department { display: block; text-decoration: none; color: var(--ink); }
.department img {
  aspect-ratio: 1; width: 100%; height: auto; border-radius: 3px; background: #e9e7dd;
  outline: 1px solid #00000012; outline-offset: -1px; transition: filter .2s;
}
.department:hover img { filter: brightness(.91); }
.department.selected img { outline: 3px solid #667e62; outline-offset: -3px; }
.department span { display: block; margin-top: 8px; line-height: 1.35; }
.department strong { display: block; font-size: clamp(.82rem, 1.12vw, 1rem); }
.department small { display: block; font-size: .76rem; margin-top: 3px; }
.catalog { padding-top: 25px; border-top: 1px solid var(--line); }
.catalog h1, .panel h1, .auth h1 { font-size: clamp(2.65rem, 5vw, 4.3rem); }
.empty { background: #efefe8; padding: clamp(22px, 5vw, 49px); border: 1px solid var(--line); }
.empty p { margin-bottom: .5em; }
.product-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.product, .box { border: 1px solid var(--line); background: var(--white); border-radius: 4px; }
.product > img, .product-placeholder { width: 100%; height: auto; aspect-ratio: 5/4; }
.product-placeholder { display: grid; place-items: center; background: #edefe7; color: var(--olive); font-family: var(--display); font-size: 2rem; padding: 10px; }
.product-copy, .box { padding: clamp(15px, 2vw, 26px); }
.product-copy h3 { margin: .45rem 0; }
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 18px; }
.stack { display: grid; gap: 18px; }
.panel > .box { margin-top: 18px; }
.box h2 { font-size: 2.15rem; }
.box form { display: grid; gap: 12px; }
label { display: grid; gap: 4px; font-weight: 600; }
label input:not([type=checkbox]), label select, label textarea { width: 100%; padding: 9px 10px; border: 1px solid #c7cabf; border-radius: 4px; background: var(--white); color: var(--ink); }
.check { display: flex; gap: 8px; align-items: center; }
.auth { max-width: 470px; }
.hint { margin: 0; font-size: .85rem; color: var(--muted); }
.item { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.item button { color: var(--olive); background: transparent; }
.notice { width: min(1350px, 90%); margin: 20px auto; padding: 12px 16px; background: #e3edde; color: #213927; }
.notice.error { background: #f5e4df; color: #773226; }
footer { border-top: 1px solid var(--line); }
footer p { max-width: 460px; margin: 0; font-size: .85rem; color: var(--muted); }
@media(max-width:1150px) { .departments { grid-template-columns: repeat(5,minmax(0,1fr)); row-gap: 18px; } }
@media(max-width:720px) {
  .masthead { flex-wrap: wrap; }
  .masthead nav { order: 3; flex: 0 0 100%; font-size: .88rem; }
  .hero { min-height: 450px; background-position: 58% center; }
  .section-head { align-items: start; flex-direction: column; }
  .departments { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px 10px; }
  .department small { display: none; }
  .product-grid, .panel-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .panel-grid { grid-template-columns: 1fr; }
  footer { align-items: start; flex-direction: column; }
}
@media(max-width:420px) { .product-grid { grid-template-columns: 1fr; } }
@media(prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

.catalog-pages { display:flex; justify-content:center; align-items:center; gap:16px; flex-wrap:wrap; padding:30px 0 4px; }
.catalog-pages a { padding:8px 14px; border:1px solid var(--line); border-radius:6px; text-decoration:none; }
.catalog-pages span { color:var(--muted); }
.product-copy { display:flex; flex:1; flex-direction:column; }
.product-copy .button { align-self:flex-start; margin-top:auto; }
.product img { object-fit:contain; padding:14px; background:white; }
