/* Estilos específicos de catalogo.html */

.hero-catalog {
    background-image: url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    padding-top: 80px;
    padding-bottom: 80px;
}

.hero-content .hero-title {
  font-size: 5rem;
  margin-bottom: 60px;
  text-transform: none;
  color: #ffffff;
  text-align: center;
}

/* ==========================================================================
   ESTILOS DE MIGAJAS DE PAN (BREADCRUMBS) PARA EL CATÁLOGO
   ========================================================================== */

/* 1. Quitamos la separación gigante de 60px que viene de style.css */
.hero-content .hero-title {
    margin-bottom: 10px !important; 
}

/* 2. Estructura y centrado de la migaja */
.breadcrumb {
    color: #ffffff; /* Texto normal en blanco */
    font-size: 16px;
    font-weight: 500;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center; /* Centra todo horizontalmente */
    align-items: center;
    gap: 8px; /* Espacio perfecto entre la palabra y la flechita (>) */
    margin-top: 0;
}

/* 3. Color naranja para los enlaces (Igual que en producto) */
.breadcrumb a {
    color: var(--primary); 
    text-decoration: none;
    transition: color 0.3s ease;
}

/* 4. Efecto al pasar el mouse */
.breadcrumb a:hover {
    text-decoration: underline;
    color: var(--surface-container-high);
}

/* 5. Ajuste de tamaño para celulares (Copiado de producto.css) */
@media (max-width: 768px) {
    .breadcrumb {
        font-size: 1.2rem;
    }
}


.catalog-layout {
    display: flex;
    gap: 32px;
    margin-top: -32px; /* Offset section padding visually */
}

.catalog-sidebar {
    width: 300px;
    flex-shrink: 0;
    background: var(--surface-container-lowest);
    border: 1px solid var(--light-grey);
    border-radius: 10px;
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 100px; /* Below sticky header */
    box-shadow: 6px 7px 7px #00000054;
}

.catalog-sidebar h3 {
    border-bottom: 2px solid var(--primary);
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--on-surface);
    font-weight: 500;
}

.category-list a:hover, .category-list a.active {
    background-color: var(--surface-container-low);
    color: var(--primary);
}

.product-count {
    background-color: var(--surface-container-high);
    color: var(--secondary);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.catalog-content {
    flex: 1;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

.card {
    background: var(--surface-container-lowest);
    border: 2px solid var(--primary-container);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%; /* Fill grid row height */
    box-shadow: 6px 7px 6px #0000005c;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 8px 10px 15px #00000033;
}

.card-img {
    width: 100%;
    height: 220px;
    object-fit: contain; /* Good for product images with white background */
    margin-bottom: 16px;
    background: #fff;
    border-radius: 12px;
}

.card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Pushes content to occupy available space */
    text-align: center;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--secondary);
    min-height: 2.5em; /* Ensures 2-line consistency */
    display: flex;
    align-items: center;
    justify-content: center;
}

.card .btn-primary {
    margin-top: auto; /* Align button at the bottom */
}
.pagination{
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

@media (max-width: 992px) {
    .catalog-layout { flex-direction: column; }
    .catalog-sidebar { width: 100%; position: static; }
}
@media (max-width: 768px) {
  .section {
    padding: 20px;
    margin-top: 50px;
  }
  
  .hero-content .hero-title {
    font-size: 3rem; /* Tamaño adaptado a celular */
    margin-bottom: 30px;
  }
}