/* El catálogo, las fichas y la canasta comparten tinta, tipografía y tamaños táctiles. */
:where(.vf-product,.vf-dialog,.vf-notice,.vf-more,.vf-permalink,.vf-empty) {
  --vf-ink:#183d2b;
  --vf-secondary:#526154;
  --vf-green:#183d2b;
  --vf-dark:#0c291c;
  --vf-border:#d8dfd1;
  --vf-paper:#faf8f0;
  --vf-lime:#e2f2a6;
  --vf-peach:#ffbb90;
  --vf-display:"Bricolage Grotesque","Trebuchet MS",sans-serif;
  color:var(--vf-ink);
}
#productos,#favoritos {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:clamp(.75rem,1.6vw,1.6rem);
}
.vf-product,.vf-item-surface {--vf-tint:#f5f1e7; --vf-tint-deep:#e2eac8}
[data-family="frutas"] {--vf-tint:#faf0e4; --vf-tint-deep:#ffcfb5}
[data-family="chiles"] {--vf-tint:#fbefe4; --vf-tint-deep:#ffc596}
[data-family="hierbas"] {--vf-tint:#eef2e7; --vf-tint-deep:#d9eabc}
[data-family="legumbres"] {--vf-tint:#f0f0e3; --vf-tint-deep:#e0edb8}
[data-family="semillas"] {--vf-tint:#f6eee2; --vf-tint-deep:#ebdac0}
.vf-icon {
  width:1.22rem; height:1.22rem; flex:none; fill:none; stroke:currentColor;
  stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round;
}
.vf-product {
  min-width:0; display:flex; flex-direction:column; padding:clamp(.38rem,.62vw,.67rem);
  border:1px solid #d9dfd2; border-radius:1.1rem; background:#fffefa;
  transition:border-color .18s ease,box-shadow .18s ease;
}
.vf-product:focus-within {border-color:#6d885c}
.vf-product-open {display:flex; flex-direction:column; min-width:0; text-align:left; color:inherit; text-decoration:none; border-radius:.7rem}
.vf-photo {position:relative; display:grid; place-items:center; width:100%; overflow:hidden; isolation:isolate; color:var(--vf-secondary); background:#f2efe7}
.vf-photo img {display:block; width:100%; height:100%; min-width:0; min-height:0; object-fit:contain; mix-blend-mode:multiply}
.vf-card-photo {aspect-ratio:1.13; border-radius:.77rem; background:var(--vf-tint)}
.vf-card-photo img {object-fit:cover; transition:transform .32s ease}
.vf-photo-missing {align-content:center; gap:.35rem; font-size:.72rem}
.vf-photo-missing>.vf-icon {width:1.85rem; height:1.85rem}
.vf-card-unit,.vf-sale-label {
  position:absolute; left:.55rem; display:inline-flex; align-items:center; width:max-content; max-width:calc(100% - 1rem);
  min-height:1.38rem; padding:.15rem .49rem; border-radius:.34rem; font-size:.69rem; font-weight:700; line-height:1.17;
}
.vf-card-unit {bottom:.55rem; border:1px solid #d7dbce; color:#2d4531; background:#fffef9f5}
.vf-sale-label {top:.55rem; color:var(--vf-ink); background:var(--vf-peach)}
.vf-category {
  display:inline-flex; align-items:center; gap:.35rem; color:var(--vf-secondary);
  font-size:.72rem; font-weight:620; line-height:1.25;
}
.vf-category:empty {display:none}
.vf-category .vf-icon {width:.96rem; height:.96rem; stroke-width:1.7}
.vf-product .vf-category {margin:.85rem .42rem .29rem}
.vf-title {
  margin:0 .42rem .58rem; color:var(--vf-ink); font-family:var(--vf-display);
  font-size:clamp(1.08rem,1.45vw,1.52rem); line-height:1.08; letter-spacing:-.044em; font-weight:700; overflow-wrap:anywhere;
}
.vf-product-bottom {
  display:flex; justify-content:space-between; align-items:center; gap:.35rem;
  margin:auto .4rem 0; padding:.62rem 0 .28rem; border-top:1px solid var(--vf-border);
}
.vf-product>.vf-stock {margin:0 .42rem .5rem}
.vf-prices {display:flex; align-items:baseline; flex-wrap:wrap; column-gap:.27rem; min-width:0}
.vf-prices strong,.vf-subtotal strong {
  color:var(--vf-ink); font-family:var(--vf-display); font-size:clamp(1.2rem,1.8vw,1.62rem); font-weight:730;
  line-height:1.07; letter-spacing:-.055em; font-variant-numeric:tabular-nums; overflow-wrap:anywhere;
}
.vf-currency {font-size:.62rem; font-weight:650; color:var(--vf-secondary)}
.vf-reference {flex-basis:100%; margin-bottom:.13rem; color:var(--vf-secondary); font-size:.68rem; font-weight:540; line-height:1.25}
.vf-prices del {color:var(--vf-secondary); font-size:.79rem; line-height:1.2}
.vf-price-pending {font-size:.85rem; color:var(--vf-secondary); line-height:1.24; font-weight:620}
.vf-icon-button,.vf-primary-button,.vf-more,.vf-header-cart,.vf-text-button,.vf-thumb {font:inherit; cursor:pointer}
.vf-icon-button {
  display:grid; place-items:center; width:44px; height:44px; padding:0; flex-shrink:0;
  border:0; border-radius:50%; background:transparent; color:var(--vf-ink);
}
.vf-icon-button:hover {background:#e8ecdd}
.vf-icon-button.vf-card-add {position:relative; background:var(--vf-green); color:#fff; border:1px solid var(--vf-ink)}
.vf-card-add .vf-icon {width:1.35rem; height:1.35rem}
.vf-icon-button.vf-card-add:hover {background:var(--vf-lime); color:var(--vf-ink)}
.vf-card-add:not([data-in-cart="0"])[data-in-cart]::after {
  content:attr(data-in-cart); display:grid; place-items:center; min-width:1.13rem; height:1.13rem; box-sizing:border-box;
  position:absolute; top:-.2rem; right:-.2rem; padding-inline:.13rem; border:1px solid var(--vf-ink);
  border-radius:99px; background:var(--vf-peach); color:var(--vf-ink); font:700 .62rem/1 "DM Sans",Arial,sans-serif;
}
.vf-icon-button:disabled,.vf-primary-button:disabled {opacity:.48; cursor:default}
.vf-more,.vf-primary-button,.vf-header-cart {
  display:inline-flex; align-items:center; justify-content:center; gap:.6rem; min-height:48px;
  border:1px solid var(--vf-ink); border-radius:99px; font-weight:680; text-decoration:none; line-height:1.25;
}
.vf-more {display:block; margin:1.8rem auto 0; padding:.65rem 1.75rem; background:var(--vf-ink); color:white}
.vf-primary-button {padding:.7rem 1.4rem; background:var(--vf-ink); color:white}
.vf-more:hover,.vf-primary-button:hover {background:#315d3e; color:white}
.vf-more[hidden],html:not(.vf-active-offers) :is([data-show-offers],.offer-toggle),.offer-toggle[hidden] {display:none !important}
.vf-text-button {
  display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:.4rem .1rem;
  border:none; color:var(--vf-ink); background:none; font-weight:650; text-decoration:underline; text-underline-offset:.23em;
}
:where(.vf-product,.vf-dialog,.vf-permalink) :is(button,a,select):focus-visible,.vf-more:focus-visible {outline:3px solid #467b33; outline-offset:3px}
.vf-empty {
  grid-column:1/-1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.72rem;
  min-height:15rem; padding:2rem; text-align:center; background:#eff1e5; border-radius:1.2rem;
}
.vf-empty>.vf-icon {box-sizing:content-box; width:2rem; height:2rem; padding:1.1rem; background:var(--vf-lime); color:var(--vf-ink); border-radius:50%}
.vf-empty :is(h3,p) {margin:.25rem 0; font-family:var(--vf-display); color:var(--vf-ink); font-size:1.36rem; font-weight:650}
.vf-notice {
  position:fixed; z-index:20; left:50%; bottom:max(1rem,env(safe-area-inset-bottom)); transform:translateX(-50%);
  width:max-content; max-width:calc(100% - 2rem); margin:0; padding:.8rem 1.3rem;
  border-radius:99px; border:1px solid var(--vf-green); background:var(--vf-lime); color:var(--vf-ink);
  line-height:1.3; font-size:.84rem; font-weight:640; box-shadow:0 8px 24px #183d2b24; pointer-events:none;
}
.vf-notice:empty {display:none}

/* Ficha de producto */
.vf-permalink {min-height:100vh; display:flex; flex-direction:column; font-family:"DM Sans",Arial,sans-serif; background:var(--vf-paper)}
.vf-wrap {width:min(1180px,calc(100% - 2 * clamp(1rem,4vw,4rem))); margin-inline:auto}
.vf-product-header {background:#fffdf6; border-bottom:1px solid var(--vf-border)}
.vf-product-header .vf-wrap,.vf-item-footer .vf-wrap {display:flex; align-items:center; justify-content:space-between; gap:1rem}
.vf-product-header .vf-wrap {min-height:76px}
.vf-detail-brand {display:inline-flex; align-items:center; min-height:44px}
.vf-detail-brand img {display:block; width:clamp(128px,16vw,180px); height:auto}
.vf-header-cart {padding:.37rem .45rem .37rem .95rem; color:var(--vf-ink); background:var(--vf-lime); font-size:.87rem}
.vf-header-cart b {display:grid; place-items:center; min-width:1.8rem; height:1.8rem; padding-inline:.28rem; color:white; background:var(--vf-ink); border-radius:50%; font-size:.76rem}
.vf-item-main {flex:1; padding-block:clamp(1rem,3vw,2.5rem) clamp(2.7rem,7vw,6.5rem)}
.vf-back {display:inline-flex; align-items:center; gap:.5rem; min-height:44px; margin-bottom:clamp(.8rem,2.4vw,2.1rem); color:var(--vf-ink); font-size:.87rem; font-weight:640; text-decoration:none}
.vf-back:hover {text-decoration:underline; text-underline-offset:.2em}
.vf-back .vf-icon {width:1.08rem; height:1.08rem}
.vf-item-surface {min-height:12rem}
.vf-detail-layout {display:grid; grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr); gap:clamp(1.8rem,5.7vw,5.2rem); align-items:start}
.vf-gallery {min-width:0}
.vf-detail-photo {aspect-ratio:1.12; border-radius:clamp(1rem,2vw,1.55rem); background:var(--vf-tint); border:1px solid #dce0d3}
.vf-detail-photo img {object-fit:contain}
.vf-studio-photo img {object-fit:cover}
.vf-photo-caption {display:block; margin:.55rem .05rem 0; color:var(--vf-secondary); font-size:.76rem}
.vf-photo-caption[hidden] {display:none}
.vf-thumbs {display:flex; gap:.55rem; padding:.7rem .15rem .3rem; overflow:auto; scrollbar-width:thin}
.vf-thumb {flex-shrink:0; width:65px; height:65px; padding:2px; border:1px solid var(--vf-border); border-radius:.63rem; background:#fffdf6}
.vf-thumb[aria-pressed=true] {border:2px solid var(--vf-ink)}
.vf-thumb .vf-photo {height:100%; border-radius:.38rem}
.vf-detail-info {display:flex; flex-direction:column; align-items:flex-start; gap:.9rem; min-width:0; padding-top:clamp(.2rem,2vw,2.2rem)}
.vf-detail-info :is(p,h1) {margin:0}
.vf-detail-info .vf-category {gap:.45rem; padding:.4rem .68rem; color:var(--vf-ink); background:var(--vf-tint-deep); border-radius:99px; font-size:.8rem}
.vf-detail-info .vf-category:empty {display:none}
.vf-detail-info h1,.vf-cart-heading h2 {
  font-family:var(--vf-display); font-size:clamp(2.6rem,5.4vw,5.1rem); font-weight:720; letter-spacing:-.065em;
  line-height:.99; color:var(--vf-ink); text-wrap:balance; overflow-wrap:anywhere;
}
.vf-detail-info .vf-unit {display:flex; gap:.45rem; align-items:baseline; font-size:.92rem; color:var(--vf-secondary)}
.vf-detail-info .vf-unit:empty {display:none}
.vf-detail-info .vf-unit strong {font-weight:680; color:var(--vf-ink)}
.vf-description {color:#37483b; line-height:1.56; font-size:clamp(1rem,1.3vw,1.13rem); white-space:pre-line; overflow-wrap:anywhere}
.vf-option {display:grid; gap:.35rem; color:var(--vf-secondary); font-size:.84rem; font-weight:650}
.vf-option select {min-height:44px; max-width:100%; padding:.45rem .85rem; border-radius:.5rem; border:1px solid #798d78; color:var(--vf-ink); background:white; font:inherit}
.vf-detail-offer {display:flex; align-items:center; flex-wrap:wrap; justify-content:space-between; gap:.65rem 1rem; width:100%; margin-top:.25rem; padding-block:1.05rem; border-block:1px solid var(--vf-border)}
.vf-detail-offer .vf-reference {font-size:.82rem}
.vf-detail-offer .vf-prices strong {font-size:clamp(1.9rem,3vw,2.6rem)}
.vf-detail-offer .vf-currency {font-size:.74rem}
.vf-detail-offer .vf-price-pending {font-size:1.08rem}
.vf-stock {display:inline-flex; align-items:center; gap:.42rem; color:var(--vf-secondary); font-size:.78rem; line-height:1.27}
.vf-stock::before {content:""; width:.5rem; height:.5rem; border-radius:50%; background:#a16e28}
.vf-stock[data-state="available"]::before {background:#467947}
.vf-stock[data-state="empty"]::before {background:#a25539}
.vf-purchase-actions {display:flex; flex-wrap:wrap; align-items:center; gap:.3rem 1.2rem; width:100%}
.vf-purchase-actions .vf-primary-button {min-height:51px}
.vf-item-footer {color:#fffbed; background:var(--vf-ink)}
.vf-item-footer .vf-wrap {padding-block:clamp(1.2rem,4vw,3rem)}
.vf-footer-contact {display:flex; align-items:center; gap:.8rem 1.4rem; flex-wrap:wrap}
.vf-footer-contact>span {color:#d6e0cd; font-size:.82rem}
.vf-footer-contact a {display:inline-flex; align-items:center; gap:.3rem; min-height:44px; color:#fffbed; font-size:.87rem; text-decoration:underline; text-underline-offset:.24em}

/* Canasta lateral */
.vf-modal-open {overflow:hidden}
dialog.vf-dialog {
  position:fixed; inset:0 0 0 auto; width:min(30rem,100%); max-width:100%; height:100%; height:100dvh;
  max-height:100%; max-height:100dvh; margin:0; padding:0; overflow:hidden; border:0; border-left:1px solid var(--vf-border);
  border-radius:1.25rem 0 0 1.25rem; background:#fffcf4; color:var(--vf-ink);
  box-shadow:-16px 0 80px #183d2b28; font-family:"DM Sans",Arial,sans-serif;
}
.vf-dialog::backdrop {background:#10231980}
.vf-cart-dialog[open] {display:grid; grid-template-rows:auto minmax(0,1fr) auto; animation:vf-slide-in .2s ease-out}
@keyframes vf-slide-in {from {opacity:.86; transform:translateX(1.3rem)} to {opacity:1; transform:translateX(0)}}
.vf-dialog :where(h2,h3,p,ul) {margin:0}
.vf-cart-heading {display:flex; justify-content:space-between; align-items:center; gap:.75rem; padding:1.1rem clamp(1rem,3vw,1.6rem); border-bottom:1px solid var(--vf-border)}
.vf-cart-heading-title {display:flex; gap:.8rem; align-items:center}
.vf-cart-heading-title>.vf-icon {box-sizing:content-box; width:1.3rem; height:1.3rem; padding:.72rem; background:var(--vf-lime); border-radius:50%}
.vf-cart-heading h2 {font-size:clamp(1.7rem,4vw,2.18rem)}
.vf-cart-heading>.vf-icon-button {border:1px solid var(--vf-border)}
.vf-cart-lines {overflow-y:auto; overscroll-behavior:contain; margin:0; padding:0 clamp(1rem,3vw,1.6rem); list-style:none; scrollbar-width:thin}
.vf-cart-line {display:grid; grid-template-columns:clamp(4.7rem,17vw,6.4rem) minmax(0,1fr); gap:.9rem; align-items:start; padding:1.1rem 0; border-bottom:1px solid var(--vf-border)}
.vf-cart-line:last-child {border-bottom:0}
.vf-cart-photo {aspect-ratio:1; border-radius:.7rem; border:1px solid var(--vf-border)}
.vf-cart-photo img {object-fit:cover}
.vf-cart-line-info {display:grid; gap:.17rem; min-width:0}
.vf-cart-line-info>strong {font-family:var(--vf-display); line-height:1.08; font-size:1.2rem; font-weight:690; letter-spacing:-.037em}
.vf-cart-line-info>.vf-unit {color:var(--vf-secondary); font-size:.79rem}
.vf-line-price {font-size:.86rem; font-weight:650; color:var(--vf-ink)}
.vf-line-actions {display:flex; justify-content:space-between; align-items:center; gap:.4rem; margin-top:.42rem}
.vf-quantity {display:inline-flex; justify-content:center; align-items:center; border:1px solid #c6d0bf; background:#fffdf7; border-radius:99px; font-size:.88rem}
.vf-quantity span {min-width:1.1rem; text-align:center; font-weight:660; font-variant-numeric:tabular-nums}
.vf-quantity .vf-icon-button {width:44px; height:44px}
.vf-quantity .vf-icon {width:1rem; height:1rem}
.vf-line-actions>.vf-icon-button {color:#526154}
.vf-dialog .vf-empty {align-self:center; margin:1rem; padding:1.8rem .8rem; background:transparent}
.vf-cart-total {display:grid; gap:.75rem; padding:1.2rem clamp(1rem,3vw,1.6rem); padding-bottom:max(1.2rem,env(safe-area-inset-bottom)); border-top:1px solid var(--vf-border); background:#eff3df}
.vf-subtotal {display:flex; justify-content:space-between; align-items:baseline; gap:.55rem; font-size:.9rem; font-weight:580}
.vf-subtotal strong {font-size:1.66rem}
.vf-cart-note {font-size:.83rem; line-height:1.48; color:var(--vf-secondary)}
.vf-cart-total .vf-primary-button {width:100%; min-height:50px}
@media (hover:hover) {
  .vf-product:hover {border-color:#a6b89b; box-shadow:0 5px 15px #183d2b0a}
  .vf-product-open:hover .vf-card-photo img {transform:scale(1.045)}
  .vf-product-open:hover .vf-title {text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:.15em}
}
@media (max-width:940px) {
  #productos,#favoritos {grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:690px) {
  #productos,#favoritos {grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem}
  .vf-product {padding:.35rem; border-radius:.83rem}
  .vf-card-photo {aspect-ratio:1; border-radius:.57rem}
  .vf-card-unit,.vf-sale-label {left:.33rem; font-size:.63rem; padding:.13rem .39rem}
  .vf-card-unit {bottom:.33rem}
  .vf-sale-label {top:.33rem}
  .vf-product .vf-category {margin:.6rem .25rem .25rem; gap:.19rem; font-size:.64rem}
  .vf-product .vf-category .vf-icon {width:.76rem; height:.76rem}
  .vf-title {margin:0 .25rem .55rem; font-size:clamp(1.02rem,4.25vw,1.4rem)}
  .vf-product-bottom {margin-inline:.22rem; padding:.5rem 0 .16rem; gap:.15rem}
  .vf-product-bottom .vf-reference {font-size:.64rem}
  .vf-product-bottom .vf-currency {font-size:.55rem}
  .vf-product-bottom .vf-prices {column-gap:.17rem}
  .vf-product-bottom .vf-prices strong {font-size:clamp(1.04rem,4.5vw,1.42rem)}
  .vf-product-bottom .vf-price-pending {font-size:.76rem}
  .vf-product-header .vf-wrap {min-height:65px}
  .vf-header-cart {font-size:.8rem; min-height:44px}
  .vf-detail-layout {grid-template-columns:1fr; gap:1.2rem}
  .vf-detail-photo {aspect-ratio:1.18; max-height:25rem}
  .vf-detail-info {gap:.7rem; padding:0}
  .vf-detail-info h1 {font-size:clamp(2.35rem,9.3vw,3.45rem)}
  .vf-detail-offer {padding:.82rem 0}
  .vf-purchase-actions {gap:.35rem .85rem}
  .vf-item-footer .vf-wrap {align-items:flex-start; flex-wrap:wrap}
  .vf-footer-contact {align-items:flex-start; gap:.2rem .85rem}
  .vf-footer-contact>span {flex-basis:100%}
}
@media (max-width:480px) {
  dialog.vf-dialog {border:0; border-radius:0}
  .vf-thumb {width:58px; height:58px}
}
@media (max-width:355px) {
  .vf-product-bottom .vf-currency {flex-basis:100%}
  .vf-detail-info .vf-primary-button {width:100%}
}
@media (max-height:470px) {
  .vf-cart-dialog[open] {display:block; overflow-y:auto}
  .vf-cart-lines {overflow:visible}
}
@media (prefers-reduced-motion:reduce) {
  .vf-cart-dialog[open] {animation:none}
  .vf-card-photo img,.vf-product {transition:none}
}
