/* Catalog Specific Styles */

.catalog-hero {
    background: linear-gradient(135deg, #0A2463 0%, #1e3c72 100%);
    padding: 80px 0;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}
.catalog-hero::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMiIgY3k9IjIiIHI9IjEiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4wNSkiLz48L3N2Zz4=");
    opacity: 0.3;
}
.catalog-hero h1 { font-size: 3rem; margin-bottom: 15px; position: relative; z-index: 1; }
.catalog-hero p { opacity: 0.8; font-size: 1.1rem; max-width: 700px; margin: 0 auto; position: relative; z-index: 1; }

.catalog-layout { display: grid; grid-template-columns: 320px 1fr; gap: 40px; padding: 60px 0; }

.sidebar { 
    background: #fff; 
    border-radius: 30px; 
    padding: 35px; 
    box-shadow: 0 20px 60px rgba(10,36,99,0.05); 
    height: fit-content; 
    position: sticky;
    top: 100px;
    border: 1px solid #f0f4f8;
}
.sidebar h3 { 
    margin-bottom: 25px; 
    color: var(--primary); 
    font-size: 1.4rem; 
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group { margin-bottom: 30px; }
.filter-link { 
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px; 
    color: #444; 
    text-decoration: none; 
    transition: 0.3s; 
    font-size: 1rem;
    border-radius: 12px;
    margin-bottom: 5px;
    font-weight: 500;
}
.filter-link i { font-size: 18px; opacity: 0.3; transition: 0.3s; }
.filter-link:hover { background: #f8fafc; color: var(--primary); }
.filter-link:hover i { transform: translateX(3px); opacity: 1; color: var(--secondary); }
.filter-link.active { background: #f0f7ff; color: var(--primary); font-weight: 700; }
.filter-link.active i { opacity: 1; color: var(--secondary); }

.sub-filters { padding-left: 20px; margin: 10px 0 20px; border-left: 2px solid #f0f4f8; }
.sub-filter-link {
    display: block;
    padding: 8px 15px;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
    border-radius: 8px;
}
.sub-filter-link:hover, .sub-filter-link.active { color: var(--secondary); background: #f8fafc; }

/* Product Cards Catalog */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 35px; }
.product-card { 
    background: #fff; 
    border-radius: 25px; 
    padding: 20px; 
    transition: 0.4s; 
    border: 1px solid #f0f0f0;
    position: relative;
}
.product-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 30px 60px rgba(10,36,99,0.1); 
    border-color: var(--primary-light);
}
.product-img { 
    height: 240px; 
    background: #fdfdfd; 
    border-radius: 20px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0,0,0,0.02);
}
.product-img img { 
    max-width: 90%; 
    max-height: 90%; 
    object-fit: contain; 
    transition: 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); 
}
.product-card:hover .product-img img { 
    transform: scale(1.08) translateY(-5px); 
}

.product-info h3 { font-size: 1.25rem; margin-bottom: 12px; line-height: 1.4; height: 3.4em; overflow: hidden; }
.product-info .category { color: var(--secondary); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; display: block; }

.catalog-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    background: #fff;
    padding: 25px 35px;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    border: 1px solid #f0f4f8;
}

.controls-info h2 { font-size: 1.8rem; color: var(--primary); margin-bottom: 5px; }
.product-count { color: #888; font-size: 0.9rem; font-weight: 500; }
.sort-badge { padding: 10px 20px; background: #f8fafc; border-radius: 12px; font-size: 0.9rem; color: #666; font-weight: 600; }

.breadcrumb { padding: 20px 0; display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: #888; flex-wrap: wrap; }
.breadcrumb a { color: var(--primary); text-decoration: none; font-weight: 600; }
.breadcrumb i { font-size: 18px; color: #ccc; }

.btn-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    background: #f4f7fa;
    color: var(--primary);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    transition: 0.3s;
}
.product-card:hover .btn-detail { background: var(--primary); color: #fff; }

/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
    .catalog-hero { padding: 50px 0; }
    .catalog-hero h1 { font-size: 2rem; }
    .catalog-hero p { font-size: 1rem; }
    .catalog-layout { grid-template-columns: 1fr; gap: 30px; padding: 20px 0; }
    .sidebar { position: static; width: 100%; margin-bottom: 20px; padding: 25px; }
    
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .product-card { padding: 15px; border-radius: 20px; }
    .product-info h3 { font-size: 1.1rem; height: 3.2em; }
    .product-info .category { font-size: 0.7rem; }
    
    .catalog-controls { flex-direction: column; text-align: center; gap: 20px; padding: 25px; }
    .controls-info h2 { font-size: 1.5rem; }
}

@media (max-width: 576px) {
    .product-grid { grid-template-columns: 1fr; }
    .catalog-hero h1 { font-size: 1.6rem; }
    .sidebar h3 { font-size: 1.2rem; }
    .filter-link { padding: 10px 15px; font-size: 0.95rem; }
    .breadcrumb { font-size: 0.8rem; }
    .breadcrumb i { font-size: 14px; }
}
