/* Tienda en celular (29-oct-2026): abre directo con buscador + categorías + una tarjeta completa,
   y las flechas del carrusel van a los costados. Se carga después de tienda-app y movil. */
.shop-app .shop-hero { padding-top: clamp(12px, 3vw, 28px); }
.shop-app .shop-hero .app-search { margin: 0; }

/* ---- Flechas a los costados, centradas respecto de las tarjetas ---- */
.carousel.is-on { position: relative; }
.carousel.is-on .car-stage { position: relative; padding-inline: 56px; }
.carousel.is-on .car-ctl { display: contents; }
.carousel.is-on .car-ctl[hidden] { display: none !important; }
.carousel.is-on .car-btn { position: absolute; top: 50%; margin-top: -24px; z-index: 2; width: 44px; height: 48px; box-shadow: 3px 3px 0 #16171b; }
.carousel.is-on .car-btn[data-car="prev"] { left: 0; }
.carousel.is-on .car-btn[data-car="next"] { right: 0; }
.carousel.is-on .car-btn:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 #16171b; }
.carousel.is-on .car-btn[aria-disabled="true"] { box-shadow: none; }
.carousel.is-on .car-track { scroll-padding: 0; padding: 2px 6px 8px 2px; }
/* Una tarjeta por vista, ancho = hueco entre flechas */
.carousel.is-on .car-track > .product { flex: 0 0 100%; max-width: 100%; }
@media (min-width: 640px) {
  .carousel.is-on .car-stage { padding-inline: 60px; }
  .carousel.is-on .car-track > .product { flex: 0 0 calc((100% - 16px) / 2); }
}
@media (min-width: 1000px) { .carousel.is-on .car-track > .product { flex: 0 0 296px; } }
.car-foot { margin-top: 6px; }

/* ---- Tarjeta compacta en celular ---- */
@media (max-width: 760px) {
  .shop-app .shop-hero { gap: 10px; padding-bottom: 0; }
  .shop-app .app-sec { margin-top: 12px; }
  .shop-app .cat-row { padding-bottom: 8px; }
  .carousel.is-on .car-stage { padding-inline: 50px; }
  .carousel.is-on .car-btn { width: 40px; }
  body.shop-app .product { box-shadow: 3px 3px 0 #16171b; }
  body.shop-app .product-art, body.shop-app .product-art.has-img { height: 84px; max-height: 84px; overflow: hidden; }
  body.shop-app .product-art img, body.shop-app .product-art svg { height: 84px; max-height: 84px; width: 100%; object-fit: cover; }
  body.shop-app .product .promo-band { padding: 7px 12px; }
  body.shop-app .product-body { gap: 4px; padding: 10px 12px 12px; }
  body.shop-app .product-kind { margin: 0; font-size: 12px !important; }
  body.shop-app .product h2 { font-size: 1.02rem; line-height: 1.2; }
  body.shop-app .product .desc { font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  body.shop-app .product-price { margin: 2px 0 0; font-size: 1.15rem; }
  body.shop-app .product-price small { font-size: 12px !important; line-height: 1.3; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  body.shop-app .product-body details { margin: 0 0 6px; }
  body.shop-app .product-body details summary { min-height: 44px; display: flex; align-items: center; padding-top: 0; padding-bottom: 0; }
  body.shop-app .product .card-note { margin: 0; font-size: 12px !important; }
  body.shop-app .product-body .btn, body.shop-app .product-body > a.btn, body.shop-app .product .app-btn { min-height: 46px; padding-top: 0; padding-bottom: 0; display: flex; align-items: center; justify-content: center; }
}
.carousel.is-on .car-track { align-items: flex-start; }
@media (max-width: 760px) {
  .shop-app #categorias { padding-top: 6px; margin-top: 4px; }
  .shop-app #catalogo { padding-top: 6px; margin-top: 4px; }
  .shop-app .car-foot { display: none !important; }
  .shop-app .shop-hero { padding-top: 12px; padding-bottom: 0; }
}
@media (max-width: 760px) and (max-height: 780px) {
  body.shop-app .product-art, body.shop-app .product-art.has-img { height: 64px; max-height: 64px; }
  body.shop-app .product-art img, body.shop-app .product-art svg { height: 64px; max-height: 64px; }
  body.shop-app .product .desc { -webkit-line-clamp: 2; }
}
@media (max-width: 760px) and (max-height: 780px) {
  body.shop-app .product-art, body.shop-app .product-art.has-img { height: 56px; max-height: 56px; }
  body.shop-app .product-art img, body.shop-app .product-art svg { height: 56px; max-height: 56px; }
  body.shop-app .product-kind { display: none; }
  body.shop-app .product-price small { -webkit-line-clamp: 1; }
  body.shop-app .product-body { padding: 8px 12px 10px; gap: 3px; }
  body.shop-app .product h2 { font-size: 1rem; }
  .shop-app .app-search input, .shop-app .app-search .search-box { min-height: 48px; }
}
@media (max-width: 760px) { .shop-app .cat-group { margin-top: 4px; } .shop-app .carousel { margin-top: 0; } }
