/* Mejoras de la portada (noviembre 2026): tarjetas compactas en celular, barra de
   categorías fija, franjas de ofertas y más pedidos, etiquetas y pasos de compra. */

/* ---------- Etiquetas de las tarjetas ---------- */
.product-img span[data-badge="nuevo"]{background:#2f8a46;color:#fff}
.product-img span[data-badge="oferta"]{background:#c8372d;color:#fff}
.product-img span[data-badge="precio"]{background:#e9a825;color:#2b1d00}

/* ---------- Pasos de compra bajo el título del catálogo ---------- */
.mini-steps{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;margin:-6px 0 18px;padding:10px 14px;border-radius:12px;background:#f1f6ec;color:var(--green);font-size:13px;font-weight:700}
.mini-steps b{display:inline-grid;place-items:center;width:20px;height:20px;margin-right:5px;border-radius:50%;background:var(--green);color:#fff;font-size:11px}
.mini-steps em{font-style:normal;color:#3c6624;margin-left:auto}

/* ---------- Franjas "Para pedir hoy" ---------- */
.hoy{padding:22px 0 8px;max-width:1140px;margin:0 auto}
.hoy-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:0 24px;margin:0 0 10px}
.hoy-head h2{margin:0;font:700 24px/1.1 Georgia,serif}
.hoy-head a{font-size:13px;font-weight:800;color:#3c6624;text-decoration:none}
.hoy-row{display:flex;gap:12px;overflow-x:auto;padding:4px 24px 14px;scroll-snap-type:x proximity;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.hoy-row::-webkit-scrollbar{display:none}
.hoy-item{flex:0 0 156px;scroll-snap-align:start;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff;text-decoration:none;color:inherit;box-shadow:0 6px 16px #10261d12}
.hoy-item .ph{position:relative;aspect-ratio:1/1;background:#eff3e9}
.hoy-item img{display:block;width:100%;height:100%;object-fit:cover}
.hoy-item .tag{position:absolute;left:8px;top:8px;padding:4px 8px;border-radius:999px;background:#c8372d;color:#fff;font-size:10px;font-weight:900;text-transform:uppercase}
.hoy-item.top .tag{background:var(--gold);color:#2b1d00}
.hoy-item .tx{padding:9px 10px 11px;display:flex;flex-direction:column;gap:3px}
.hoy-item b{font-size:13px;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:31px}
.hoy-item strong{font-size:17px;color:var(--green)}
.hoy-item small{font-size:11px;color:#c8372d;font-weight:800}
.hoy-row:empty,.hoy.vacio{display:none}

/* ---------- Barra de categorías fija ---------- */
.catalog .tools{position:sticky;top:var(--nav-h,68px);z-index:30;margin:0 -24px 14px;padding:8px 24px 10px;background:rgba(255,255,255,.97);backdrop-filter:blur(6px);box-shadow:0 8px 14px -12px #10261d55;display:flex;flex-direction:column;gap:8px;align-items:stretch}
.catalog .tools .chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;gap:6px;justify-content:flex-start;-webkit-overflow-scrolling:touch}
.catalog .tools .chips::-webkit-scrollbar{display:none}
.catalog .tools .chips button{flex:0 0 auto;padding:8px 13px;font-size:13px;white-space:nowrap}
.catalog .tools .tools-search{min-width:0}
.catalog .tools .tools-search input{padding:9px 12px;font-size:15px}

/* ---------- Celular: tarjetas compactas de dos en dos ---------- */
@media(max-width:580px){
  .hoy-head{padding:0 16px}.hoy-row{padding:4px 16px 14px}.hoy-head h2{font-size:21px}
  .catalog .tools{margin:0 -18px 12px;padding:8px 14px 9px}
  .mini-steps{font-size:12px;padding:9px 12px;gap:4px 12px}.mini-steps em{margin-left:0;width:100%}
  .category-products{grid-template-columns:1fr 1fr!important;gap:10px!important}
  .catalog-section{margin-bottom:28px}
  .catalog-section-head h3{font-size:21px}
  .product{border-radius:14px}
  .product-img img{height:auto!important;aspect-ratio:1/1;object-fit:cover}
  .product-img span{top:7px;left:7px;padding:4px 7px;font-size:9px}
  .product-body{padding:10px 10px 12px}
  .product-body>small,.product-body>p{display:none}
  .product .stock-status{display:none}
  .product h3{font-size:14px;margin:0 0 6px;line-height:1.2;min-height:34px}
  .product .unit{font-size:11px;margin-top:0}
  .product .price-kg{margin:0 0 4px!important}
  .variant{font-size:0;margin-top:0}
  .variant select{font-size:12px;padding:7px 6px;margin-top:0}
  .product-buy{flex-direction:column;align-items:stretch;gap:6px;margin-top:8px}
  .product-buy strong{font-size:17px}
  .product-buy button{width:100%;padding:10px 6px;font-size:13px}
  .egg-guide{margin-bottom:12px}
}
@media(min-width:581px) and (max-width:900px){.catalog .tools{margin:0 -24px 14px}}
@media(min-width:901px){.catalog .tools{margin:0 0 18px;padding:8px 0 10px;flex-direction:row;align-items:center}.catalog .tools .chips{flex-wrap:wrap}.hoy-item{flex-basis:190px}}
