/* =================================================================
   assets/css/pages/categoria-computadora.css  →  categoria.php
   Diseño de computadora (≥992px) tipo eBay: migas, título grande,
   categorías en pastillas (como la tienda), filtros a la izquierda
   en bloques, barra de resultados y tarjetas iguales a las del shop.
   En el celular no se usa: sigue el diseño de siempre.
   ================================================================= */
.ctp-pc { display: none !important; }

@media (min-width: 992px) {
  .ctp-movil { display: none !important; }
  .ctp-pc { display: block !important; }
  .ctp-barra.ctp-pc { display: flex !important; }

  .ctp-cabeza, .ctp-lado, .ctp-barra { font-family: 'TikTok Sans', -apple-system, "Segoe UI", Roboto, sans-serif; color: #161823; }

  /* --- Cabecera --- */
  .ctp-cabeza { margin-top: 26px; }
  .ctp-migas { font-size: 13px; color: #4a4b55; }
  .ctp-migas a { color: #161823; text-decoration: underline; }
  .ctp-migas a:hover { color: #7C3AED; }
  .ctp-cabeza h1 { font-size: 34px; font-weight: 800; margin: 10px 0 4px; letter-spacing: -.3px; }
  .ctp-sub { font-size: 15px; color: #4a4b55; margin: 0 0 20px; }
  /* Pastillas de categorías: mismas que la tienda (shop) */
  .ctp-pastillas { position: relative; }
  .ctp-pastillas .shop-cat-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
  .ctp-pastillas .shop-cat-tabs::-webkit-scrollbar { display: none; }
  .ctp-pastillas .shop-cat-tab { white-space: nowrap; flex-shrink: 0; border: 1.5px solid #ddd; border-radius: 20px; padding: 7px 16px; font-size: 13.5px; font-weight: 600; color: #161823; text-decoration: none; }
  .ctp-pastillas .shop-cat-tab.active, .ctp-pastillas .shop-cat-tab:hover { color: var(--pink, #FE2C55); border-color: var(--pink, #FE2C55); background: rgba(254,44,85,0.08); }
  .ctp-pastillas .shop-cat-arrow { position: absolute; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 1px solid #e0e0e0; box-shadow: 0 2px 8px rgba(0,0,0,0.12); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2; color: #161823; font-size: 12px; padding: 0; }
  .ctp-pastillas .shop-cat-arrow-left { left: -12px; }
  .ctp-pastillas .shop-cat-arrow-right { right: -12px; }
  .ctp-pastillas { padding: 0 4px; border-bottom: 1px solid #e6e6ea; margin-bottom: 4px; }
  .ctp-pastillas .shop-cat-tabs { margin-bottom: 16px; padding-bottom: 2px; scroll-behavior: smooth; }
  .ctp-pastillas .shop-cat-arrow { top: calc(50% - 9px); }
  .ctp-pastillas .shop-cat-arrow[hidden] { display: none; }

  /* --- Layout: filtros + productos --- */
  .categoria-layout { gap: 36px; margin-top: 26px; }
  .ctp-lado { width: 270px; flex-shrink: 0; position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; scrollbar-width: thin; padding-right: 6px; }
  .ctp-bloque { border-bottom: 1px solid #e6e6ea; padding: 16px 0; }
  .ctp-bloque:first-child { padding-top: 4px; }
  .ctp-bloque h3, .ctp-bloque summary { font-size: 16px; font-weight: 800; margin: 0 0 12px; }
  .ctp-bloque summary { list-style: none; display: flex; justify-content: space-between; align-items: center; cursor: pointer; margin: 0; }
  .ctp-bloque summary::-webkit-details-marker { display: none; }
  .ctp-bloque summary i { font-size: 12px; transition: transform .2s; }
  .ctp-bloque:not([open]) summary i { transform: rotate(180deg); }
  .ctp-bloque[open] summary { margin-bottom: 12px; }
  .ctp-todas { display: block; font-size: 14px; color: #161823; text-decoration: none; margin-bottom: 8px; }
  .ctp-todas i { font-size: 10px; margin-right: 4px; }
  .ctp-todas:hover { text-decoration: underline; }
  .ctp-actual { display: block; font-size: 14px; font-weight: 700; padding-left: 14px; }
  .ctp-precio { display: flex; align-items: center; gap: 8px; }
  .ctp-precio input { width: 100%; min-width: 0; border: 1px solid #c7c7cc; border-radius: 8px; padding: 9px 10px; font-size: 14px; }
  .ctp-precio input:focus { outline: none; border-color: #7C3AED; box-shadow: 0 0 0 2px rgba(124,58,237,.15); }
  .ctp-precio span { color: #6b6c74; }
  .ctp-op { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 9px; cursor: pointer; }
  .ctp-op:last-child { margin-bottom: 0; }
  .ctp-op input { width: 17px; height: 17px; accent-color: #7C3AED; cursor: pointer; flex: none; margin: 0; }
  .ctp-estrellas { color: #161823; letter-spacing: 1px; }
  .ctp-tiendas { max-height: 230px; overflow-y: auto; scrollbar-width: thin; }
  .ctp-aplicar { width: 100%; margin-top: 18px; background: #fff; color: #7C3AED; border: 2px solid #7C3AED; border-radius: 22px; padding: 9px 0; font-weight: 800; font-size: 14.5px; cursor: pointer; }
  .ctp-aplicar:hover { background: #7C3AED; color: #fff; }
  .ctp-ayuda { margin-top: 18px; background: #f4f4f7; border-radius: 12px; padding: 16px 18px; }
  .ctp-ayuda strong { font-size: 15px; }
  .ctp-ayuda p { font-size: 13px; color: #4a4b55; margin: 6px 0 4px; line-height: 1.45; }
  .ctp-ayuda button { background: none; border: none; padding: 0; color: #7C3AED; font-weight: 700; font-size: 13.5px; text-decoration: underline; cursor: pointer; }

  /* --- Barra de resultados --- */
  .ctp-barra { justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
  .ctp-barra > strong { font-size: 16px; font-weight: 800; }
  .ctp-barra-der { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .ctp-chip { background: #f3eefe; color: #7C3AED; border: 1.5px solid #7C3AED; border-radius: 18px; padding: 6px 14px; font-size: 13.5px; font-weight: 700; cursor: pointer; }
  .ctp-chip i { font-size: 11px; margin-left: 4px; }
  .ctp-chip:hover { background: #e9ddfd; }
  .ctp-borrar { background: #fff; border: 1.5px solid #d0d0d4; border-radius: 18px; padding: 6px 14px; font-size: 13.5px; color: #161823; cursor: pointer; }
  .ctp-borrar:hover { border-color: #161823; }
  .ctp-orden { position: relative; display: flex; align-items: center; gap: 4px; border: 1.5px solid #d0d0d4; border-radius: 18px; padding: 0 14px; font-size: 13.5px; font-weight: 800; margin: 0; cursor: pointer; }
  .ctp-orden:hover { border-color: #161823; }
  .ctp-orden select { appearance: none; -webkit-appearance: none; border: none; background: transparent; font-weight: 800; font-size: 13.5px; color: #161823; padding: 7px 18px 7px 0; cursor: pointer; }
  .ctp-orden select:focus { outline: none; }
  .ctp-orden i { position: absolute; right: 14px; font-size: 10px; pointer-events: none; }

  /* --- Cuadrícula de productos (5 por fila con la columna de filtros) --- */
  #productosCategoriaGrid.ctp-grid { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 16px; margin: 0 !important; }
  #btnVerMasWrap { margin-top: 34px !important; }
  #btnVerMasCategoria { background: #fff; color: #161823; border: 2px solid #161823; border-radius: 26px; padding: 11px 70px; font-weight: 800; font-size: 15px; box-shadow: none; }
  #btnVerMasCategoria i { display: none; }
  #btnVerMasCategoria:hover { background: #161823; color: #fff; }
  #btnVerMasCategoria:disabled { opacity: .6; }
}
@media (min-width: 1250px) { #productosCategoriaGrid.ctp-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
