:root {
  --paper: #f7f8f3;
  --ink: #182e28;
  --green: #245949;
  --line: #d9e1d9;
  --white: #fff;
  --muted: #4e6259;
}
body { background: var(--paper); font-family: "Segoe UI", system-ui, sans-serif; }
.mast { background: var(--white); border-bottom: 1px solid var(--line); }
.mast .nav { min-height: 76px; }
.mast .links { font-weight: 650; }
.bazaar-hero { overflow: hidden; background: #183e34; color: var(--white); }
.hero-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: clamp(390px, 45vw, 580px); align-items: center; gap: 12px; }
.bazaar-intro { padding: 45px 0; position: relative; z-index: 1; }
.bazaar-intro h1, .bazaar-aisles h2, .bazaar-contact h2, .category-hero h1, .shop-page h1, .product-group h2 {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-weight: 720;
  letter-spacing: -.05em;
  line-height: 1.04;
  margin: 0;
}
.bazaar-intro h1 { font-size: clamp(3rem, 7vw, 6.9rem); }
.bazaar-intro h1 span { color: #cbdc9c; }
.bazaar-intro p { max-width: 38ch; margin: 20px 0 25px; color: #e0ebe4; font-size: clamp(1rem, 2vw, 1.18rem); }
.bazaar-button {
  display: inline-flex; align-items: center; gap: 12px; width: fit-content;
  padding: 12px 16px; border-radius: 6px; background: var(--green); color: white;
  font-weight: 650; text-decoration: none;
}
.bazaar-button:hover { background: #143e32; }
.bazaar-hero .bazaar-button { background: #dce7b5; color: var(--ink); }
.bazaar-hero .bazaar-button:hover { background: #eff4da; }
.hero-packs { position: relative; isolation: isolate; align-self: stretch; min-height: 330px; }
.hero-packs::before {
  content: ""; position: absolute; z-index: -1; width: 74%; max-width: 460px; aspect-ratio: 1;
  border-radius: 50%; background: #dce7b5; top: 50%; left: 54%; transform: translate(-50%, -50%);
}
.hero-packs img { position: absolute; height: auto; filter: drop-shadow(7px 13px 9px #10282045); }
.hero-pantry { width: 61%; top: 11%; left: 0; transform: rotate(-12deg); }
.hero-drink { width: 61%; top: 4%; right: -1%; transform: rotate(11deg); }
.hero-fruit { width: 54%; bottom: 1%; right: 12%; transform: rotate(-7deg); }
.bazaar-aisles { padding: clamp(40px, 6vw, 80px) 0; }
.bazaar-aisles h2, .bazaar-contact h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); margin-bottom: 22px; }
.aisle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.aisle-feature {
  display: block; background: white; overflow: hidden; border: 1px solid var(--line);
  border-radius: 12px; transition: border-color .2s;
}
.aisle-feature:hover { border-color: var(--green); }
.tone-fruit { --aisle-bg: #f5eadf; }
.tone-vegetable { --aisle-bg: #e7efda; }
.tone-pantry { --aisle-bg: #f4ead5; }
.tone-drinks { --aisle-bg: #f4ebdb; }
.tone-soap { --aisle-bg: #f1e7e8; }
.tone-home { --aisle-bg: #e4edf0; }
.aisle-art { background: var(--aisle-bg); display: grid; place-items: center; aspect-ratio: 1.75; }
.aisle-art img { display: block; width: 82%; height: 100%; max-height: 200px; object-fit: contain; }
.aisle-copy { padding: 16px 45px 17px 17px; position: relative; }
.aisle-copy h3 { margin: 0; font-size: clamp(1rem, 2.1vw, 1.42rem); line-height: 1.2; letter-spacing: -.025em; }
.aisle-copy p { margin: 6px 0 0; color: var(--muted); font-size: .91rem; }
.aisle-copy span { color: var(--green); position: absolute; top: 16px; right: 15px; }
.bazaar-contact { background: #e6eee4; padding: clamp(42px, 6vw, 76px) 0; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 5vw, 70px); align-items: start; }
.bazaar-contact h2 { margin-bottom: 12px; }
.bazaar-contact .customer-details { max-width: none; margin: 0; }
.bazaar-footer { background: #183e34; color: var(--white); }
.wrap .category-hero { background: var(--aisle-bg, #e6eee4); color: var(--ink); }
.category-hero img { width: min(90%, 300px); height: 100%; max-height: 270px; min-height: 0; justify-self: center; object-fit: contain; }
.category-hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
.category-hero p { margin: 12px 0 0; color: var(--muted); }
.product-group h2 { margin-bottom: 16px; letter-spacing: -.035em; }
.product-group .shop-product { display: grid; grid-template-rows: auto 1fr auto; align-items: start; background: white; }
.product-group .product-pack { display: block; width: 100%; height: clamp(100px, 18vw, 185px); object-fit: contain; margin-bottom: 12px; }
.product-group .shop-controls { justify-content: flex-start; }
.produce-links { display: flex; flex-wrap: wrap; gap: 12px; padding-bottom: 30px; }
@media(max-width: 700px) {
  .mast .nav { gap: 8px; flex-wrap: wrap; }
  .mast .links { display: none; }
  .hero-layout, .contact-layout { grid-template-columns: 1fr; }
  .bazaar-intro { padding: 38px 0 0; }
  .hero-packs { min-height: 0; width: min(100%, 395px); aspect-ratio: 1.42; justify-self: center; }
  .hero-packs::before { width: 66%; }
  .hero-pantry { width: 55%; top: 2%; }
  .hero-drink { width: 50%; top: -4%; right: 3%; }
  .hero-fruit { width: 49%; bottom: -5%; }
  .aisle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .aisle-copy { padding: 11px 26px 12px 11px; }
  .aisle-copy p { font-size: .8rem; }
  .aisle-copy span { top: 9px; right: 8px; }
  .product-group .shop-product { padding: 12px; }
}
@media(prefers-reduced-motion: reduce) { .aisle-feature { transition: none; } }

@font-face { font-family: "Open Sans"; src: url("OpenSans-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("OpenSans-Semibold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("OpenSans-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
body, .shop-nav a, .shop-primary, .shop-controls button, .shop-product button { font-family: "Open Sans", system-ui, sans-serif; }
.bazaar-intro h1, .bazaar-aisles h2, .bazaar-contact h2, .category-hero h1, .shop-page h1, .product-group h2, .shopping-guide h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.08;
}
.category-hero p, .shopping-guide p { line-height: 1.6; }
.shopping-guide { padding-bottom: clamp(42px, 6vw, 76px); }
.shopping-guide h2 { margin: 0 0 18px; font-size: clamp(2rem, 4.5vw, 3.5rem); }
.shopping-guide ol { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0; padding: 0; list-style: none; gap: 16px; }
.shopping-guide li { border-top: 2px solid var(--green); padding-top: 14px; }
.shopping-guide h3 { margin: 0 0 6px; font-size: 1.05rem; }
.shopping-guide p { margin: 0; color: var(--muted); }
.shopping-guide a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.foot { flex-wrap: wrap; }
.footer-social, .footer-social nav { display: flex; align-items: center; gap: 8px; }
.footer-social { flex-wrap: wrap; gap: 12px; }
.social-icon { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid currentColor; border-radius: 50%; }
.social-icon svg { width: 21px; height: 21px; }
.social-icon:hover, .social-icon:focus-visible { background: #dce7b5; color: var(--ink); }
@media(max-width: 700px) {
  .shopping-guide ol { grid-template-columns: 1fr; }
}

.catalog-page { padding-bottom: 42px; }
.catalog-page h1 { margin: 12px 0 0; font: 600 clamp(2.6rem, 6vw, 4.7rem)/1.08 Georgia, serif; letter-spacing: -.04em; }
.catalog-page > p { color: var(--muted); }
#catalog-filters {
  display: grid; grid-template-columns: minmax(180px, 2fr) minmax(130px, 1fr) minmax(110px, 1fr) auto;
  gap: 12px; align-items: end; padding: 16px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--white);
}
#catalog-filters label { display: grid; gap: 6px; font-weight: 600; }
#catalog-filters :is(input, select, button) {
  width: 100%; min-height: 42px; padding: 8px 9px; border: 1px solid #85998c; border-radius: 5px;
  font: inherit; color: var(--ink); background: var(--white);
}
#catalog-filters button { cursor: pointer; }
#catalog-filters button:hover { background: var(--paper); }
#catalog-filters :focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
#catalog-count { min-height: 1.5em; margin-bottom: 0; }
#catalog-results strong { display: block; }
#catalog-results .shop-aisle { margin: 0 0 5px; }
.shop-item-product { display: flex; align-items: center; gap: 10px; }
.shop-item-photo { object-fit: contain; flex: none; }
@media (max-width: 700px) {
  #catalog-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #catalog-filters label:first-child { grid-column: 1 / -1; }
  #catalog-filters button { width: fit-content; }
  .shop-item-photo { width: 42px; height: 42px; }
}

.footer-contact { display: grid; gap: 8px; }
.footer-contact h2 { margin: 0; font-size: 1rem; }
.footer-contact address { font-style: normal; }
.footer-whatsapp {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  padding: 6px 10px; border: 1px solid currentColor; border-radius: 6px;
}
.footer-whatsapp svg { width: 22px; height: 22px; flex: none; }
.footer-whatsapp:hover { background: #dce7b5; color: var(--ink); }

body {
  --whatsapp-bottom: max(16px, env(safe-area-inset-bottom, 0px));
  --whatsapp-right: max(16px, env(safe-area-inset-right, 0px));
  padding-bottom: calc(var(--whatsapp-bottom) + 56px);
}
.floating-whatsapp {
  position: fixed;
  right: var(--whatsapp-right);
  bottom: var(--whatsapp-bottom);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #087a43;
  color: white;
  box-shadow: 0 4px 14px #10282045;
}
.floating-whatsapp svg { width: 32px; height: 32px; }
.floating-whatsapp:hover { background: #066137; }
.floating-whatsapp:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
body .shop-status { right: var(--whatsapp-right); bottom: calc(var(--whatsapp-bottom) + 66px); }
body:has(.bazaar-footer) { background: #183e34; }
body:has(.bazaar-footer) > main { background: var(--paper); }
