/* La tienda de Huellas (/tienda), 19-nov-2026. Maxi: «la estética de la lista y las cards creo que también lo podemos
   mejorar». La lista es la del kit: acá solo se pisan colores, tamaños y bordes, con sus mismas clases. fuente/armar.py
   enlaza esta hoja al final del <head>, después de los estilos del kit, para que le gane sin !important.
   La idea: los productos ponen el color; la tarjeta se corre (blanca, con una línea tibia), el precio va en tinta y el
   rojo queda para la acción («Agregar», «Mi pedido», el rubro elegido). Letras de su web: Baloo 2 y Montserrat. */
:root {
  --hu-tinta: #2E2A28;      /* títulos y precios */
  --hu-texto: #4A4542;      /* bajadas */
  --hu-gris: #77706B;       /* lo secundario: presentación, código, cantidades */
  --hu-linea: #ECE4DC;      /* bordes de tarjeta y campos */
  --hu-niebla: #F7F2EC;     /* fondos suaves: el buscador, los contadores */
  --hu-rojo: #FF4444;       /* el de su web */
  --hu-amarillo: #FEDE4B;   /* el de su web */
}

/* ---- la portada chica: el título con su rayita amarilla y una bajada corta (con .hu-tienda-cabecera delante: el
   reset de su web va con .hu-marco y si no le ganaba) ---- */
.hu-tienda-cabecera { padding: 44px 16px 14px; text-align: center; }
.hu-tienda-cabecera .hu-ti-titulo { margin: 0; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: clamp(38px, 5.2vw, 56px);
  line-height: 1.05; letter-spacing: -.01em; color: var(--hu-rojo); }
.hu-tienda-cabecera .hu-ti-titulo::after { content: ""; display: block; width: 72px; height: 5px; margin: 14px auto 0; border-radius: 5px; background: var(--hu-amarillo); }
.hu-tienda-cabecera .hu-ti-bajada { max-width: 44ch; margin: 16px auto 0; font-size: 17px; line-height: 1.55; color: var(--hu-texto); text-wrap: balance; }
.hu-tienda-cabecera .hu-ti-bajada b { color: var(--hu-tinta); font-weight: 700; }

/* ---- la barra que se queda arriba: buscador, «Mi pedido» y rubros ---- */
.sticky { border-bottom-color: var(--hu-linea); box-shadow: 0 8px 20px rgba(46, 42, 40, .06); }
.sticky-inner { padding: 14px 16px 12px; gap: 12px; }
.search-wrap input { height: 48px; padding: 0 18px 0 46px; border: 1.5px solid var(--hu-linea); border-radius: 999px;
  background: var(--hu-niebla); color: var(--hu-tinta); font-size: 15.5px; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.search-wrap input::placeholder { color: #8F8781; opacity: 1; }
.search-wrap input:focus { border-color: var(--hu-rojo); background: #fff; box-shadow: 0 0 0 4px rgba(255, 68, 68, .12); }
.search-wrap::before { content: ""; left: 17px; width: 19px; height: 19px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238F8781' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0'/%3E%3Cpath d='M21 21l-6 -6'/%3E%3C/svg%3E") center / contain no-repeat; }
.btn-cart { height: 48px; padding: 0 20px; gap: 9px; border-radius: 999px; font-family: 'Baloo 2', sans-serif; font-weight: 700;
  font-size: 17px; line-height: 1; box-shadow: inset 0 -3px 0 rgba(120, 0, 0, .16); }
.btn-cart .hu-carrito { flex: none; }
.btn-cart .badge { min-width: 24px; padding: 3px 8px 2px; background: var(--hu-amarillo); color: #3b2f0c; font-family: 'Montserrat', sans-serif; font-size: 12.5px; }
.chips { gap: 8px; }
.chip { display: inline-flex; align-items: center; height: 36px; padding: 0 15px; border: 1.5px solid var(--hu-linea); background: #fff;
  color: var(--hu-tinta); font-size: 14px; font-weight: 600; transition: background-color .15s, border-color .15s, color .15s; }
.chip:hover { background: var(--hu-niebla); }
.chip.active { background: var(--hu-rojo); border-color: var(--hu-rojo); color: #fff; }
.chip .count { margin-left: 6px; font-size: 12px; font-weight: 600; opacity: .55; }
.chip.active .count { opacity: .85; }
.chip:focus-visible, .btn-cart:focus-visible, .btn-add:focus-visible, .stepper button:focus-visible, .card-share:focus-visible {
  outline: 3px solid var(--hu-tinta); outline-offset: 2px; }

/* ---- los rubros (19-nov; Maxi: «¿esto también lo ves mejorable?»): sin el emoji del kit (lo saca armar.py: cada sistema lo
   dibuja distinto y no es de la marca), el nombre en tinta con la rayita amarilla corta abajo, como el título de arriba de la
   tienda, y «N productos» en gris al lado (la palabra la pone armar.py). La raya larga hasta el borde quedaba suelta ---- */
.category-title { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; row-gap: 2px; margin: 48px 0 22px; font-family: 'Baloo 2', sans-serif; }
.category-title .cat-icon { display: none; }
.category-title .cat-name { flex: 0 1 auto; min-width: 0; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 30px; line-height: 1.08; color: var(--hu-tinta); }
.category-title .cat-count { flex: none; padding: 0; border-radius: 0; background: none; color: var(--hu-gris); font-family: 'Montserrat', sans-serif;
  font-size: 14px; font-weight: 600; white-space: nowrap; }
/* (si no entra al lado del nombre, «N productos» baja de renglón, alineado a la izquierda; la raya va siempre en su renglón) */
.category-title .cat-rule { flex: 0 0 100%; min-width: 0; height: auto; margin-top: 9px; border-radius: 0; background: none; }
.category-title .cat-rule::before { content: ""; display: block; width: 56px; height: 5px; border-radius: 5px; background: var(--hu-amarillo); }

/* ---- las tarjetas ---- */
.grid { grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 18px; }
.card { border: 1px solid var(--hu-linea); border-radius: 18px; transition: border-color .15s, box-shadow .15s; }
.card:hover { transform: none; border-color: #E0D3C7; box-shadow: 0 12px 26px rgba(46, 42, 40, .09); }
.card-photo { background: #fff; }
.card-photo img { padding: 16px; }
.card-photo:hover img { transform: scale(1.03); }
.card-photo.no-photo { background: var(--hu-niebla); }
.photo-code { display: none; }          /* el código va abajo del nombre (.card-cod) */
.nophoto-tag { border-radius: 999px; border-color: var(--hu-linea); }
.card-share { top: 10px; right: 10px; width: 32px; height: 32px; border-color: var(--hu-linea); background: rgba(255, 255, 255, .95);
  color: var(--hu-gris); box-shadow: none; }
.card-share:hover { background: var(--hu-tinta); color: #fff; }
.card-body { padding: 4px 16px 16px; gap: 6px; }
.card-name { min-height: 2.64em; font-size: 15px; font-weight: 600; line-height: 1.32; color: var(--hu-tinta);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-pres { display: flex; flex-wrap: wrap; gap: 2px 8px; margin: 0; font-size: 13px; line-height: 1.35; color: var(--hu-gris); opacity: 1; }
.card-cod { font-size: 12px; letter-spacing: .02em; color: #9A928C; }
.card-price { margin-top: auto; padding-top: 6px; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 25px; line-height: 1.1; color: var(--hu-tinta); }
.card-price.consult { font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 700; color: var(--hu-gris); }
/* (26-nov, a la noche) el precio en efectivo, abajo del precio: en verde, como el efectivo en el carrito */
.card-ef { margin-top: -3px; font-size: 13.5px; font-weight: 700; line-height: 1.3; color: #1F6B3B; }
.card-action { margin-top: 8px; }
.btn-add { height: 44px; padding: 0 12px; border-radius: 999px; font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 17px; line-height: 1;
  box-shadow: inset 0 -3px 0 rgba(120, 0, 0, .16); }
.stepper { height: 44px; border-width: 2px; border-radius: 999px; background: #fff; }
.stepper button { width: 44px; padding: 0; background: transparent; color: var(--hu-rojo); font-size: 22px; line-height: 1; }
.stepper button:hover { background: rgba(255, 68, 68, .08); }
.stepper .qty { padding: 0; font-family: 'Baloo 2', sans-serif; font-size: 19px; color: var(--hu-tinta); }

@media (max-width: 600px) {
  .hu-tienda-cabecera { padding: 32px 16px 6px; }
  .hu-tienda-cabecera .hu-ti-bajada { font-size: 15.5px; }
  .sticky-inner { padding: 10px 12px; gap: 10px; }
  .search-wrap input, .btn-cart { height: 46px; }
  .btn-cart { padding: 0 15px; }
  .category-title { margin: 34px 0 16px; column-gap: 10px; }
  .category-title .cat-name { font-size: 23px; }
  .category-title .cat-count { font-size: 13px; }
  .category-title .cat-rule { margin-top: 7px; }
  .category-title .cat-rule::before { width: 44px; height: 4px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { border-radius: 14px; }
  .card-photo img { padding: 10px; }
  .card-share { top: 7px; right: 7px; width: 30px; height: 30px; }
  .card-body { padding: 2px 11px 12px; gap: 4px; }
  .card-name { font-size: 13.5px; }
  .card-pres { font-size: 12px; }
  .card-cod { font-size: 11px; }
  .card-price { font-size: 21px; }
  .card-ef { font-size: 12.5px; }
  .btn-add, .stepper { height: 40px; }
  .btn-add { font-size: 16px; }
  .stepper button { width: 38px; }
}
/* ---- (19-nov) la tarjeta sin foto: la planilla no trae fotos, así que al principio van a ser muchas. En vez de «Foto pronto»
   con un ícono sobre rayas, la huella de Huellas y la marca del producto (data-marca, lo pone armar.py) sobre un fondo cálido ---- */
.card-photo.no-photo { flex-direction: column; gap: 10px; padding: 14px; background: #FBF4E4; }
.card-photo.no-photo .paws-placeholder, .card-photo.no-photo .nophoto-tag { display: none; }
.card-photo.no-photo::before { content: ""; flex: none; width: 46px; height: 46px; background: url(/logos/md-red-yellow.png) center / contain no-repeat; }
.card-photo.no-photo::after { content: attr(data-marca); max-width: 100%; font: 800 17px/1.15 'Baloo 2', sans-serif; color: #6B4E1E; text-align: center;
  overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .card-photo.no-photo { gap: 6px; padding: 10px; }
  .card-photo.no-photo::before { width: 36px; height: 36px; }
  .card-photo.no-photo::after { font-size: 14.5px; }
}
/* ---- (19-nov) el botón flotante con ícono en vez de emoji (cada sistema dibujaba el 💬 y el 🛒 a su manera): el de WhatsApp
   para consultar y el carrito cuando hay productos (el texto lo cambia armar.py) ---- */
.wa-fab::before { content: ""; flex: none; width: 22px; height: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21l1.65 -3.8a9 9 0 1 1 3.4 2.9l-5.05 .9'/%3E%3Cpath d='M9 10a.5 .5 0 0 0 1 0v-1a.5 .5 0 0 0 -1 0v1a5 5 0 0 0 5 5h1a.5 .5 0 0 0 0 -1h-1a.5 .5 0 0 0 0 1'/%3E%3C/svg%3E") center / contain no-repeat; }
.wa-fab.has-items::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0'/%3E%3Cpath d='M17 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0'/%3E%3Cpath d='M17 17h-11v-14h-2'/%3E%3Cpath d='M6 5l14 1l-1 7h-13'/%3E%3C/svg%3E"); }
/* ---- el botón flotante: en el teléfono, sin productos en el pedido, es un círculo con el ícono de WhatsApp (el texto
   queda para el lector de pantalla); con productos sigue diciendo «Ver mi pedido (N)» ---- */
@media (max-width: 600px) {
  .wa-fab:not(.has-items) { width: 56px; height: 56px; padding: 0; justify-content: center; border-radius: 50%; }
  .wa-fab:not(.has-items) #wa-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .wa-fab:not(.has-items)::before { content: ""; width: 30px; height: 30px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21l1.65 -3.8a9 9 0 1 1 3.4 2.9l-5.05 .9'/%3E%3Cpath d='M9 10a.5 .5 0 0 0 1 0v-1a.5 .5 0 0 0 -1 0v1a5 5 0 0 0 5 5h1a.5 .5 0 0 0 0 -1h-1a.5 .5 0 0 0 0 1'/%3E%3C/svg%3E") center / contain no-repeat; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .card-photo img, .chip, .search-wrap input { transition: none; }
  .card-photo:hover img { transform: none; }
}
