  :root {
      --primary: #ffcc12;
      --dark: #0f0d0a;
      --bg: #f5f6f8;
  }

  body {
      background: var(--bg);
  }

  /* CATALOG GRID - Margen para separar del filtro */
  .catalog-grid {
      margin-top: 20px;
      /* Añadimos este margen para separar del filtro */
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 24px;
  }

  .catalog-card {
      background: #fff;
      border-radius: 18px;
      overflow: hidden;
      box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
      transition: .35s ease;
      display: flex;
      flex-direction: column;
      height: 100%;
  }

  .catalog-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
  }

  .catalog-card img {
      width: 100%;
      height: 200px;
      object-fit: cover;
  }

  .catalog-body {
      padding: 18px;
      display: flex;
      flex-direction: column;
      flex: 1;
  }

  .badge-cat {
      background: var(--primary);
      color: #000;
      font-size: 11px;
      font-weight: 600;
      border-radius: 20px;
      padding: 5px 12px;
      width: fit-content;
  }

  .catalog-body h5 {
      margin-top: 10px;
      font-weight: 700;
      font-size: 18px;
  }

  .catalog-body p {
      font-size: 14px;
      color: #666;
      flex: 1;
  }

  .price {
      font-size: 18px;
      font-weight: 700;
      color: var(--dark);
  }

  /* CHIPS SCROLL HORIZONTAL */
  .chips {
      display: flex;
      gap: 12px;
      overflow-x: auto;
      overflow-y: hidden;
      white-space: nowrap;
      padding-bottom: 8px;
      scrollbar-width: thin;
      /* Firefox */
      margin-bottom: 20px;
      /* Añadimos este margen para separar de la grilla */
  }


  /* Ocultar salto de línea */
  .chips span {
      flex: 0 0 auto;
      cursor: pointer;
      background: #eaeaea;
      padding: 8px 18px;
      border-radius: 30px;
      font-size: 14px;
      transition: .3s;
      white-space: nowrap;
  }


  /* Activo / hover */
  .chips span.active,
  .chips span:hover {
      background: var(--primary);
  }


  /* Scroll bonito (Chrome, Edge, Safari) */
  .chips::-webkit-scrollbar {
      height: 6px;
  }


  .chips::-webkit-scrollbar-track {
      background: transparent;
  }


  .chips::-webkit-scrollbar-thumb {
      background: rgba(0, 0, 0, .2);
      border-radius: 10px;
  }

  /* PAGINATION */
  .pagination {
      display: flex;
      justify-content: center;
      margin-top: 40px;
      gap: 6px;
  }

  .pagination button {
      border: none;
      background: #fff;
      padding: 8px 14px;
      border-radius: 8px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, .08);
      cursor: pointer;
  }

  .pagination button.active {
      background: var(--primary);
      font-weight: 700;
  }

  /* HEADER CATÁLOGO (H2 + BUSCADOR) */
  .catalog-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      margin-bottom: 18px;
      padding-top: 32px;
      /* separación con chips */
  }

  .catalog-header h2 {
      margin: 0;
      font-weight: 800;
      white-space: nowrap;
  }

  .catalog-header input {
      width: 320px;
      max-width: 100%;
      padding: 10px 16px;
      border-radius: 30px;
      border: 1px solid #ddd;
      outline: none;
      transition: .25s;
  }

  .catalog-header input:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(255, 204, 18, .25);
  }

  /* RESPONSIVE */
  @media (max-width: 768px) {
      .catalog-header {
          flex-direction: column;
          align-items: stretch;
      }

      .catalog-header input {
          width: 100%;
      }
  }