/* =================================================================
   Página de la tienda — computadora (≥992px)  →  tienda.php
   Portada morada con logo grande, números de la tienda, Seguir /
   Mensaje / Compartir, pestañas, filtros a la izquierda y las mismas
   tarjetas del inicio (.shp). En celular y tablet se ve la de siempre
   (.tdm) y esto queda oculto.
   ================================================================= */
.tdp { display: none; }

@media (min-width: 992px) {
  .tdm { display: none; }
  .tdp { display: block; font-family: 'TikTok Sans', -apple-system, "Segoe UI", Roboto, sans-serif; color: #161823; padding-top: 22px; }

  /* ---------- Portada ---------- */
  .tdp-aviso { border-radius: 16px 16px 0 0; color: #fff; font-size: 14px; font-weight: 700; text-align: center; padding: 10px 16px; }
  .tdp-portada { height: 190px; border-radius: 16px 16px 0 0; background-color: #7C3AED; background-size: cover; background-position: center; position: relative; overflow: hidden; }
  .tdp-portada:not(.con-foto)::after { content: ""; position: absolute; inset: 0; opacity: .12;
    background-image: radial-gradient(circle at 20px 20px, #fff 3px, transparent 4px); background-size: 44px 44px; }
  .tdp-aviso + .tdp-portada { border-radius: 0; }

  .tdp-cab { display: flex; align-items: flex-start; gap: 24px; padding: 0 28px 22px; border: 1px solid #ececf0; border-top: none; border-radius: 0 0 16px 16px; background: #fff; }
  .tdp-logo { width: 136px; height: 136px; border-radius: 50%; object-fit: cover; border: 5px solid #fff; box-shadow: 0 4px 16px rgba(0,0,0,.14); margin-top: -64px; background: #fff; flex: none; position: relative; z-index: 1; }
  .tdp-logo-letra { display: flex; align-items: center; justify-content: center; background: #FE2C55; color: #fff; font-size: 48px; font-weight: 800; }
  .tdp-info { flex: 1; min-width: 0; padding-top: 16px; }
  .tdp-nombre { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .tdp-nombre > span:first-child { font-size: 32px; font-weight: 800; line-height: 1.15; }
  .tdp-verif { width: 24px; height: 24px; border-radius: 50%; background: #2563EB; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
  .tdp-vivo { background: #FE2C55; color: #fff !important; font-size: 12.5px; font-weight: 800; border-radius: 20px; padding: 4px 11px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
  .tdp-vivo i { font-size: 7px; animation: tdpLatido 1.2s infinite; }
  @keyframes tdpLatido { 50% { opacity: .3; } }
  .tdp-datos { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 10px; font-size: 15px; color: #3a3b44; }
  .tdp-datos b { color: #161823; }
  .tdp-datos .fa-star { color: #161823; }
  .tdp-datos .fa-location-dot { color: #FE2C55; }
  .tdp-desc { margin: 10px 0 0; font-size: 14px; color: #555; max-width: 900px; }
  .tdp-acc { display: flex; gap: 10px; padding-top: 22px; flex: none; }
  .tdp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 2px solid #161823; background: #fff; color: #161823 !important; border-radius: 26px; padding: 10px 22px; font-size: 15px; font-weight: 800; cursor: pointer; text-decoration: none; white-space: nowrap; }
  .tdp-btn:hover { background: #f4f4f6; }
  .tdp-btn-1 { background: #7C3AED; border-color: #7C3AED; color: #fff !important; }
  .tdp-btn-1:hover { background: #6d28d9; }
  .tdp-btn-1.siguiendo { background: #fff; border-color: #d4d4da; color: #161823 !important; }

  /* ---------- Pestañas ---------- */
  .tdp-tabs { display: flex; gap: 30px; border-bottom: 1px solid #e6e6ea; margin: 18px 0 24px; padding: 0 6px; }
  .tdp-tabs button { background: none; border: none; padding: 10px 0 12px; font-size: 16px; font-weight: 700; color: #4a4b55; border-bottom: 3px solid transparent; margin-bottom: -1px; cursor: pointer; }
  .tdp-tabs button span { color: #8a8b94; font-weight: 600; }
  .tdp-tabs button:hover { color: #161823; }
  .tdp-tabs button.activa { color: #161823; border-bottom-color: #7C3AED; }
  .tdp-punto { color: #FE2C55; font-size: 7px; vertical-align: middle; }

  /* ---------- Productos: filtros + cuadrícula ---------- */
  .tdp-cuerpo { display: flex; gap: 32px; align-items: flex-start; }
  .tdp-lado { width: 250px; flex: none; position: sticky; top: 96px; }
  .tdp-bloque { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid #ececf0; }
  .tdp-bloque h3 { font-size: 16px; font-weight: 800; margin: 0 0 12px; }
  .tdp-cat { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14.5px; color: #161823; text-decoration: none; }
  .tdp-cat span:last-child { color: #767676; }
  .tdp-cat:hover span:first-child { text-decoration: underline; }
  .tdp-cat.activa span { color: #7C3AED; font-weight: 800; }
  .tdp-vermas-cat { background: none; border: none; padding: 6px 0 0; color: #7C3AED; font-size: 14px; font-weight: 600; cursor: pointer; }
  .tdp-precio { display: flex; align-items: center; gap: 8px; }
  .tdp-precio input { width: 100%; min-width: 0; border: 1px solid #d4d4da; border-radius: 8px; padding: 8px 10px; font-size: 14px; }
  .tdp-precio input:focus { outline: none; border-color: #7C3AED; }
  .tdp-aplicar { margin-top: 10px; width: 100%; border: 1.5px solid #161823; background: #fff; border-radius: 20px; padding: 7px; font-size: 13.5px; font-weight: 700; cursor: pointer; }
  .tdp-aplicar:hover { background: #161823; color: #fff; }
  .tdp-op { display: flex; align-items: center; gap: 10px; font-size: 14.5px; padding: 4px 0; cursor: pointer; }
  .tdp-op input { width: 17px; height: 17px; accent-color: #7C3AED; }
  .tdp-recoger { margin-top: 10px; font-size: 13px; color: #555; background: #f5f1fe; border-radius: 10px; padding: 9px 11px; }
  .tdp-recoger i { color: #7C3AED; }

  .tdp-main { flex: 1; min-width: 0; }
  .tdp-res-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
  .tdp-res-mini { border: 1px solid #ececf0; border-radius: 12px; padding: 13px 16px; display: flex; flex-direction: column; gap: 5px; font-size: 14px; }
  .tdp-res-mini b { font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .tdp-res-mini > span { color: #555; font-size: 13.5px; }
  .tdp-est { color: #f5a623; letter-spacing: 1px; }

  .tdp-barra { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
  .tdp-buscar { position: relative; flex: 0 1 560px; }
  .tdp-buscar i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #888; font-size: 14px; }
  .tdp-buscar input { width: 100%; border: 1px solid #dcdce2; background: #f4f4f6; border-radius: 24px; padding: 10px 16px 10px 42px; font-size: 14.5px; }
  .tdp-buscar input:focus { outline: none; border-color: #7C3AED; background: #fff; }
  #tdpConteo { font-size: 14.5px; color: #4a4b55; font-weight: 600; }
  .tdp-orden { margin-left: auto; position: relative; display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid #d4d4da; border-radius: 22px; padding: 7px 34px 7px 16px; font-size: 14px; font-weight: 800; cursor: pointer; }
  .tdp-orden select { border: none; background: transparent; font-weight: 800; font-size: 14px; appearance: none; -webkit-appearance: none; cursor: pointer; color: #161823; }
  .tdp-orden select:focus { outline: none; }
  .tdp-orden i { position: absolute; right: 14px; font-size: 11px; pointer-events: none; }

  .tdp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 16px; transition: opacity .15s; }
  .tdp-grid-6 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .tdp-vacio { text-align: center; color: #767676; padding: 50px 0; }
  .tdp-mas-wrap { text-align: center; margin-top: 30px; }
  .tdp-mas-wrap[hidden], .tdp-vacio[hidden] { display: none; }

  /* Chips encima de la foto (subastas y cajas) */
  .tdp-chip-img { position: absolute; left: 10px; top: 10px; background: rgba(22,24,35,.82); color: #fff; font-size: 11.5px; font-weight: 800; border-radius: 14px; padding: 4px 10px; display: inline-flex; align-items: center; gap: 6px; }
  .tdp-chip-sub i { color: #FE2C55; font-size: 7px; }
  .tdp-reloj { position: absolute; right: 10px; bottom: 10px; background: #fff; color: #161823; font-size: 12px; font-weight: 800; border-radius: 14px; padding: 4px 10px; }
  .tdp-sub { font-size: 14px; color: #4a4b55; margin-top: 4px; }
  .tdp-sub b { color: #161823; }
  div.shp.tdp-caja { cursor: default; }

  /* Lives / avisos */
  .tdp-caja-info { display: flex; align-items: center; gap: 18px; border: 1px solid #ececf0; border-radius: 16px; padding: 26px 28px; max-width: 900px; }
  .tdp-caja-info > i { font-size: 30px; color: #7C3AED; }
  .tdp-caja-info b { font-size: 17px; }
  .tdp-caja-info p { margin: 2px 0 0; color: #555; }
  .tdp-caja-info .tdp-btn { margin-left: auto; }
  .tdp-live > i { color: #FE2C55; }

  /* Reseñas */
  .tdp-res-wrap { display: flex; gap: 40px; align-items: flex-start; }
  .tdp-res-resumen { width: 220px; flex: none; border: 1px solid #ececf0; border-radius: 16px; padding: 22px; text-align: center; position: sticky; top: 96px; color: #555; }
  .tdp-res-num { font-size: 48px; font-weight: 800; color: #161823; line-height: 1; }
  .tdp-est-g { font-size: 22px; margin: 6px 0; }
  .tdp-res-lista { flex: 1; min-width: 0; max-width: 900px; }
  .tdp-res { padding: 16px 0; border-bottom: 1px solid #ececf0; }
  .tdp-res-cab { display: flex; align-items: center; gap: 10px; }
  .tdp-res-cab small { color: #888; margin-left: auto; }
  .tdp-res p { margin: 6px 0; font-size: 15px; }
  .tdp-res-foto { width: 90px; height: 90px; object-fit: cover; border-radius: 10px; display: block; margin: 6px 0; }
  .tdp-res-prod { font-size: 13px; color: #7C3AED; text-decoration: none; }
  .tdp-res-resp { margin-top: 8px; background: #f6f6f8; border-radius: 10px; padding: 9px 12px; font-size: 14px; }

  /* Acerca de */
  .tdp-acerca { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; max-width: 1200px; }
  .tdp-acerca h3 { font-size: 20px; font-weight: 800; margin: 0 0 10px; }
  .tdp-acerca p { font-size: 15px; line-height: 1.65; color: #333; }
  .tdp-datos-lista { list-style: none; padding: 20px 22px; margin: 0; border: 1px solid #ececf0; border-radius: 16px; display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; }
  .tdp-datos-lista i { width: 20px; color: #7C3AED; text-align: center; margin-right: 6px; }
  .tdp-datos-lista a { color: #161823; }
  .tdp-redes { display: flex; gap: 8px; }
  .tdp-redes a { width: 36px; height: 36px; border-radius: 50%; background: #f1f1f4; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
  .tdp-redes a i { margin: 0; color: #161823; }
}

@media (min-width: 1250px) {
  .tdp-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .tdp-grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
