:root {
  --ink: #172d29;
  --muted: #73817c;
  --green: #173b36;
  --green-2: #2f6558;
  --lime: #d5ed72;
  --paper: #f7f8f4;
  --line: #e5e9e2;
  --white: #fff;
  --shadow: 0 18px 55px rgba(24, 51, 44, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: "DM Sans", sans-serif; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.topline { min-height: 29px; display: flex; align-items: center; justify-content: center; padding: 5px 16px; background: var(--green); color: #dce7d9; font-size: 9px; font-weight: 800; letter-spacing: .16em; text-align: center; }
.site-header { height: 82px; max-width: 1240px; padding: 0 34px; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.brand, .footer-brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px; color: var(--lime); background: var(--green); font: 800 21px Manrope, sans-serif; transform: rotate(-4deg); }
.brand-copy { display: flex; flex-direction: column; gap: 3px; }
.brand-copy strong, .footer-brand strong { font: 800 13px Manrope, sans-serif; letter-spacing: .12em; }
.brand-copy small { font-size: 8px; font-weight: 700; color: #84918a; letter-spacing: .16em; }
.header-actions { display: flex; align-items: center; gap: 24px; }
.connection-state { display: inline-flex; align-items: center; gap: 7px; color: #819089; font-size: 11px; }
.connection-state i { width: 7px; height: 7px; border-radius: 50%; background: #c49a46; box-shadow: 0 0 0 3px #f8f0dd; }
.connection-state.connected i { background: #4caa73; box-shadow: 0 0 0 3px #e4f3e9; }
.cart-open { display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; padding: 10px 12px 10px 16px; color: #fff; background: var(--green); font-weight: 700; font-size: 12px; transition: transform .2s, background .2s; }
.cart-open:hover, .whatsapp-button:hover { transform: translateY(-2px); background: #24564b; }
.cart-open b { min-width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: var(--lime); font-size: 11px; }
.cart-icon { font-size: 15px; }
.hero { max-width: 1240px; min-height: 380px; margin: 0 auto; padding: 48px 8.2%; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; overflow: hidden; position: relative; border-radius: 4px; color: white; background: var(--green); }
.hero:before { content: ""; width: 390px; height: 390px; position: absolute; top: -245px; left: -130px; border: 1px solid rgba(255,255,255,.10); border-radius: 50%; box-shadow: 0 0 0 35px rgba(255,255,255,.025), 0 0 0 70px rgba(255,255,255,.02); }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--lime); font-size: 9px; font-weight: 800; letter-spacing: .17em; }
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.hero h1 { margin: 17px 0 13px; font: 800 clamp(35px, 4.3vw, 55px)/1.08 Manrope, sans-serif; letter-spacing: -.055em; }
.hero h1 em { color: var(--lime); font-style: normal; }
.hero-copy p { max-width: 390px; color: #c5d3cc; font-size: 13px; line-height: 1.8; }
.hero-link { display: inline-flex; align-items: center; gap: 13px; margin-top: 18px; color: var(--lime); font-size: 12px; font-weight: 800; }
.hero-link span { font-size: 19px; transition: transform .2s; }
.hero-link:hover span { transform: translateY(4px); }
.hero-art { height: 290px; position: relative; display: grid; place-items: center; }
.art-circle { position: absolute; border-radius: 50%; }
.circle-one { width: 260px; height: 260px; background: rgba(211,237,114,.10); }
.circle-two { width: 205px; height: 205px; border: 1px solid rgba(211,237,114,.35); }
.art-card { position: absolute; width: 170px; height: 215px; padding: 16px; border-radius: 17px; box-shadow: 0 20px 45px rgba(0,0,0,.2); }
.art-card-back { margin: 22px 0 0 86px; background: #b8d4c4; color: var(--green); transform: rotate(12deg); }
.art-card-back span { font-size: 8px; font-weight: 800; letter-spacing: .15em; }
.art-card-back b { position: absolute; right: 16px; bottom: 10px; font-size: 40px; }
.art-card-front { margin: -5px 78px 0 0; background: #f1f0e6; color: var(--green); transform: rotate(-8deg); }
.art-tag { display: inline-block; padding: 5px 7px; border-radius: 4px; background: var(--lime); font-size: 7px; font-weight: 800; letter-spacing: .1em; }
.art-groceries { margin: 16px 0 6px; font-size: 37px; line-height: 1.3; letter-spacing: 7px; }
.art-card-front strong { font: 800 19px/1.1 Manrope, sans-serif; }
.art-sticker { position: absolute; right: 2%; bottom: 13px; padding: 11px 15px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: var(--lime); font-size: 8px; line-height: 1.45; letter-spacing: .1em; text-align: center; transform: rotate(8deg); }
.art-sticker strong { color: white; }
.catalog-section { max-width: 1160px; margin: 0 auto; padding: 76px 34px 74px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.muted-eyebrow { color: #85928b; }
.section-heading h2 { margin: 8px 0 0; font: 800 31px Manrope, sans-serif; letter-spacing: -.045em; }
.catalog-tools { display: flex; align-items: center; gap: 9px; }
.search-box { width: min(300px, 35vw); height: 43px; display: flex; align-items: center; gap: 9px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.search-box span { color: #7d8982; font-size: 24px; line-height: 1; }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); font-size: 11px; background: transparent; }
.search-box input::placeholder { color: #9aa49e; }
.refresh-button { width: 43px; height: 43px; border: 1px solid var(--line); border-radius: 8px; color: var(--green); background: #fff; font-size: 24px; transition: transform .3s, background .2s; }
.refresh-button:hover { background: #f2f6ed; transform: rotate(45deg); }
.category-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 24px; }
.category-chip { padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; color: #65736c; background: white; font-size: 10px; font-weight: 700; transition: .18s; }
.category-chip:hover, .category-chip.active { border-color: var(--green); color: white; background: var(--green); }
.results-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 17px; color: #87928c; font-size: 10px; }
.sort-control { display: flex; align-items: center; gap: 9px; }
.sort-control select { padding: 7px 25px 7px 9px; border: 0; outline: 0; color: var(--ink); background: #f5f7f2; border-radius: 5px; font-size: 10px; font-weight: 700; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.product-card { min-width: 0; position: relative; overflow: hidden; border: 1px solid #edf0ea; border-radius: 10px; background: #fff; transition: transform .2s, box-shadow .2s, border-color .2s; }
.product-card:hover { transform: translateY(-4px); border-color: #dce5d8; box-shadow: 0 14px 30px rgba(28,62,51,.08); }
.product-visual { height: 178px; display: grid; place-items: center; position: relative; overflow: hidden; background: #f2f5ed; }
.product-visual:after { content: ""; width: 170px; height: 170px; position: absolute; border: 1px solid rgba(23,59,54,.07); border-radius: 50%; }
.product-image { width: 100%; height: 100%; position: absolute; inset: 0; z-index: 1; object-fit: contain; padding: 15px; mix-blend-mode: multiply; }
.product-fallback { position: relative; z-index: 0; font-size: 56px; filter: drop-shadow(0 9px 9px rgba(38,63,45,.12)); }
.product-badge { position: absolute; top: 11px; left: 11px; z-index: 2; padding: 5px 8px; border-radius: 4px; color: var(--green); background: var(--lime); font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.stock-badge { position: absolute; right: 9px; bottom: 9px; z-index: 2; padding: 5px 7px; border-radius: 4px; color: #3e7656; background: #e6f2e8; font-size: 8px; font-weight: 700; }
.stock-badge.consultar { color: #85642e; background: #f8efd9; }
.stock-badge.sin_stock { color: #9d5d59; background: #f8e9e7; }
.product-info { padding: 14px 14px 13px; }
.product-category { color: #88948d; font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.product-info h3 { min-height: 37px; margin: 7px 0 4px; font: 700 13px/1.4 Manrope, sans-serif; }
.product-description { min-height: 30px; margin: 0 0 13px; color: #8a9690; font-size: 9px; line-height: 1.5; }
.product-price-row { display: flex; align-items: end; justify-content: space-between; gap: 6px; }
.product-price { color: var(--green); font: 800 17px Manrope, sans-serif; letter-spacing: -.04em; }
.product-unit { display: block; margin-top: 3px; color: #8b9790; font-size: 9px; }
.add-button { width: 35px; height: 35px; flex: 0 0 auto; border: 0; border-radius: 9px; color: var(--lime); background: var(--green); font-size: 22px; line-height: 1; transition: .2s; }
.add-button:hover:not(:disabled) { color: var(--green); background: var(--lime); transform: scale(1.06); }
.add-button:disabled { cursor: not-allowed; opacity: .35; }
.catalog-footnote { margin: 27px 0 0; color: #9aa49e; font-size: 9px; text-align: center; }
.empty-state { padding: 65px 15px; text-align: center; }
.empty-state[hidden] { display: none; }
.empty-state div { color: #b7c1b8; font-size: 36px; }
.empty-state h3 { margin: 10px 0 5px; font: 700 18px Manrope, sans-serif; }
.empty-state p { color: var(--muted); font-size: 11px; }
.empty-state button, .cart-empty button { margin-top: 12px; padding: 9px 15px; border: 1px solid var(--green); border-radius: 6px; color: var(--green); background: white; font-size: 10px; font-weight: 700; }
.site-footer { min-height: 106px; padding: 26px max(34px, calc((100% - 1160px)/2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #edf0ea; color: #8b9790; font-size: 9px; }
.footer-brand { color: var(--green); }
.small-mark { width: 27px; height: 27px; border-radius: 8px; font-size: 14px; }
.site-footer p { margin: 0; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 10; background: rgba(13,31,27,.42); backdrop-filter: blur(2px); }
.drawer-backdrop[hidden] { display: none; }
.cart-drawer { width: min(440px, 100%); height: 100dvh; position: fixed; top: 0; right: 0; z-index: 11; display: flex; flex-direction: column; padding: 26px; background: #fff; box-shadow: -15px 0 55px rgba(0,0,0,.13); transform: translateX(105%); transition: transform .28s ease; }
.cart-drawer.open { transform: translateX(0); }
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.drawer-header h2 { margin: 5px 0 0; font: 800 23px Manrope, sans-serif; }
.drawer-header h2 span { color: #98a39d; font: 500 12px "DM Sans", sans-serif; }
.drawer-close { width: 35px; height: 35px; border: 0; border-radius: 50%; color: #65736c; background: #f3f5f0; font-size: 25px; }
.cart-items { flex: 1; overflow: auto; padding: 7px 0; }
.cart-row { display: grid; grid-template-columns: 55px 1fr auto; gap: 11px; align-items: center; padding: 13px 0; border-bottom: 1px solid #eff1ed; }
.cart-thumb { width: 55px; height: 55px; display: grid; place-items: center; overflow: hidden; border-radius: 8px; background: #f1f4ec; font-size: 25px; }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-product-name { margin-bottom: 4px; font-size: 11px; font-weight: 700; }
.cart-product-price { color: #819088; font-size: 9px; }
.qty-control { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-control button { width: 23px; height: 23px; border: 1px solid var(--line); border-radius: 6px; color: var(--green); background: white; font-weight: 700; }
.qty-control span { min-width: 12px; font-size: 10px; font-weight: 800; text-align: center; }
.cart-line-total { align-self: start; padding-top: 2px; color: var(--green); font-size: 11px; font-weight: 800; white-space: nowrap; }
.cart-empty { margin: auto; padding: 30px 10px; text-align: center; }
.cart-empty div { font-size: 38px; color: #b7c1b8; }
.cart-empty strong { display: block; margin-top: 13px; font: 700 15px Manrope, sans-serif; }
.cart-empty p { color: #87928c; font-size: 10px; }
.drawer-bottom { padding-top: 16px; border-top: 1px solid var(--line); }
.drawer-bottom[hidden] { display: none; }
.cart-total { display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.cart-total span { color: #7c8982; }
.cart-total strong { color: var(--green); font: 800 21px Manrope, sans-serif; }
.total-note { margin: 5px 0 17px; color: #98a29c; font-size: 9px; }
.form-label { display: block; margin: 10px 0 6px; color: #56645d; font-size: 9px; font-weight: 800; }
.form-label span { color: #9ba59e; font-weight: 400; }
.customer-input { width: 100%; padding: 10px 11px; border: 1px solid var(--line); border-radius: 7px; outline: none; color: var(--ink); font-size: 11px; resize: vertical; }
.customer-input:focus { border-color: #7b9e87; box-shadow: 0 0 0 3px #edf4e9; }
.note-input { min-height: 55px; }
.whatsapp-button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 15px; padding: 14px; border: 0; border-radius: 8px; color: #fff; background: #1c7048; font-size: 11px; font-weight: 800; transition: .2s; }
.whatsapp-button span { font-size: 16px; }
.whatsapp-hint { min-height: 12px; margin: 8px 0 0; color: #a26844; font-size: 9px; line-height: 1.4; text-align: center; }
.toast { position: fixed; left: 50%; bottom: 25px; z-index: 20; padding: 11px 17px; border-radius: 999px; color: white; background: var(--green); font-size: 10px; font-weight: 700; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 900px) {
  .hero { margin: 0 18px; padding-left: 7%; padding-right: 5%; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-visual { height: 160px; }
}
@media (max-width: 640px) {
  .topline { font-size: 8px; }
  .site-header { height: 70px; padding: 0 17px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-copy strong { font-size: 11px; }
  .brand-copy small { font-size: 7px; }
  .header-actions { gap: 10px; }
  .connection-state { display: none; }
  .cart-open { gap: 7px; padding: 8px 9px 8px 12px; font-size: 10px; }
  .cart-open b { min-width: 20px; height: 20px; }
  .hero { min-height: 550px; margin: 0 10px; padding: 44px 27px 0; grid-template-columns: 1fr; align-content: start; border-radius: 3px; }
  .hero h1 { font-size: clamp(38px, 10vw, 49px); }
  .hero-copy p { max-width: 320px; font-size: 12px; }
  .hero-art { height: 245px; margin-top: -4px; }
  .circle-one { width: 220px; height: 220px; }
  .circle-two { width: 175px; height: 175px; }
  .art-card { width: 145px; height: 180px; }
  .art-card-front { margin-right: 66px; }
  .art-card-back { margin-left: 68px; }
  .art-groceries { font-size: 31px; }
  .art-card-front strong { font-size: 17px; }
  .art-sticker { right: 0; bottom: 4px; }
  .catalog-section { padding: 54px 17px 55px; }
  .section-heading { display: block; }
  .section-heading h2 { font-size: 27px; }
  .catalog-tools { margin-top: 17px; }
  .search-box { width: 100%; flex: 1; }
  .category-list { flex-wrap: nowrap; overflow: auto; margin: 20px -17px 17px; padding: 0 17px 5px; scrollbar-width: none; }
  .category-list::-webkit-scrollbar { display: none; }
  .category-chip { flex: 0 0 auto; }
  .results-bar { align-items: flex-start; gap: 8px; font-size: 9px; }
  .sort-control { gap: 4px; }
  .sort-control select { max-width: 125px; font-size: 9px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-visual { height: 135px; }
  .product-fallback { font-size: 43px; }
  .product-info { padding: 11px 10px; }
  .product-info h3 { min-height: 37px; font-size: 11px; }
  .product-description { min-height: 28px; font-size: 8px; }
  .product-price { font-size: 14px; }
  .add-button { width: 31px; height: 31px; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 11px; padding: 23px 18px; }
  .cart-drawer { padding: 20px 17px; }
}
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
