/* =================================================================
   assets/css/pages/shop-computadora.css  →  shop.php (computadora)
   Tarjetas de productos iguales a las del inicio: foto cuadrada,
   logo + tienda arriba, nombre y precio abajo. 6 por fila en
   pantallas grandes. En el celular no se usa (sigue la de siempre).
   ================================================================= */
@media (min-width: 768px) {
  #shopGrid { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 16px; margin: 0 !important; }
  #shopGrid > .col { width: auto !important; max-width: none !important; flex: none !important; padding: 0 !important; margin: 0 !important; }

  .shp { display: flex; flex-direction: column; color: #161823 !important; text-decoration: none; font-family: 'TikTok Sans', -apple-system, "Segoe UI", Roboto, sans-serif; }
  .shp-img { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; background: #f1f1f3; }
  .shp-img > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
  .shp .shp-img:hover > img { transform: scale(1.03); }
  .shp-corazon { position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; border-radius: 50%; border: none; background: #fff; color: #161823; display: flex; align-items: center; justify-content: center; font-size: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.12); cursor: pointer; }
  .shp-corazon.active, .shp-corazon.active i { color: #FE2C55; }
  .shp-desc, .shp-agotado { position: absolute; left: 10px; bottom: 10px; color: #fff; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 6px; }
  .shp-desc { background: #FE2C55; }
  .shp-agotado { background: #161823; }
  .shp-tienda { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13.5px; font-weight: 700; color: #161823; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .shp-tienda img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; border: 1px solid #e4e4ea; background: #fff; flex: none; }
  .shp-tit { font-size: 15px; line-height: 1.35; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .shp .shp-tit:hover { text-decoration: underline; }
  .shp-precio { font-size: 19px; font-weight: 800; margin-top: 6px; }
  .shp-precio s { font-size: 13px; color: #6b6c74; font-weight: 400; margin-left: 4px; }
}
@media (min-width: 1100px) { #shopGrid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1400px) { #shopGrid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* ---------- Carrusel, videos y "Más productos" (solo computadora) ---------- */
.shp-solo-pc { display: none !important; }
@media (min-width: 768px) {
  .shp-solo-pc { display: block !important; }
  .shp-solo-pc[hidden] { display: none !important; }
  .shp-sec { margin-top: 44px; font-family: 'TikTok Sans', -apple-system, "Segoe UI", Roboto, sans-serif; }
  .shp-cab { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 16px; }
  .shp-cab h2 { margin: 0; font-size: 25px; font-weight: 800; color: #161823; }
  .shp-cab p { margin: 2px 0 0; font-size: 16px; color: #4a4b55; }
  .shp-cab a { font-size: 14px; color: #161823; text-decoration: underline; }
  .shp-carrusel { position: relative; }
  .shp-fila { display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x proximity; scrollbar-width: none; }
  .shp-fila::-webkit-scrollbar { display: none; }
  .shp-fila.arrastrando { scroll-snap-type: none !important; scroll-behavior: auto !important; }
  .shp-fila > .shp { flex: none; width: calc((100% - 5 * 16px) / 6); min-width: 190px; scroll-snap-align: start; }
  #shpVideos .shp-img { aspect-ratio: 4 / 5; }
  .shp-flecha { position: absolute; top: 110px; width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 1px solid #d0d0d4; box-shadow: 0 2px 8px rgba(0,0,0,.14); color: #161823; display: flex; align-items: center; justify-content: center; font-size: 15px; z-index: 3; cursor: pointer; }
  .shp-flecha.izq { left: -20px; } .shp-flecha.der { right: -20px; }
  .shp-flecha[hidden] { display: none; }
  #shpVideos ~ .shp-flecha { top: 130px; }
  .shp-barra { height: 16px; margin-top: 6px; position: relative; opacity: 0; transition: opacity .2s; touch-action: none; user-select: none; }
  .shp-barra::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 6px; border-radius: 3px; background: #ececf0; }
  .shp-barra i { position: absolute; top: 5px; height: 6px; left: 0; width: 30%; border-radius: 3px; background: #a6a7ad; }
  .shp-barra:hover i, .shp-barra.arrastrando i { background: #6b6c74; }
  .shp-sec:hover .shp-barra, .shp-barra.arrastrando { opacity: 1; }
  .shp-barra[hidden] { display: none; }
  body.shp-arrastrando, body.shp-arrastrando * { user-select: none !important; cursor: default !important; }
  .shp-img > video { width: 100%; height: 100%; object-fit: cover; display: block; }
  .shp-chip { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; background: rgba(22,24,35,.72); color: #fff; font-size: 11.5px; font-weight: 800; padding: 5px 10px; border-radius: 14px; }
  .shp-chip .fa-play { font-size: 9px; }
  /* "Más productos": tarjeta rectangular (un poco más alta que ancha) */
  #shopGridMas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 16px; }
  #shopGridMas .shp-img { aspect-ratio: 4 / 5; }
}
@media (min-width: 1100px) { #shopGridMas { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1400px) { #shopGridMas { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
