/* ========================================
   Product Category Taxonomy Page Styles
   W3C Validated - Replaces inline styles
   ======================================== */

/* Category Header */
.category-header {
    background-size: cover;
    background-position: center;
    color: white;
    padding: 3rem 0;
    position: relative;
}

.category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1;
}

.category-header .container {
    position: relative;
    z-index: 2;
}

.category-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.category-description {
    font-size: 1.125rem;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 800px;
}

/* Main Content */
.category-products-main {
    padding: 3rem 0;
    background: var(--section-light, #f8f9fa);
    min-height: 60vh;
}

.back-to-categories {
    margin-bottom: 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary, #4CAF50);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.back-link:hover,
.back-link:focus {
    color: var(--primary-dark, #357a38);
    text-decoration: underline;
}

.products-count {
    margin-bottom: 1.5rem;
}

.products-count p {
    font-size: 1rem;
    color: #555 !important;
    font-weight: 600;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a !important;
    margin: 0;
}



/* Category Icon */
.category-icon {
    vertical-align: middle;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Product Image Wrapper */
.product-image-wrapper {
    position: relative;
    overflow: hidden;
}

.product-image-wrapper img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.05);
}

/* New Badge */
.badge.new {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff6b6b;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

/* Brochure Link */
.brochure-link {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    z-index: 2;
}

.brochure-link:hover {
    background: rgba(0,0,0,0.9);
    color: white;
    text-decoration: none;
}

.brochure-link i {
    margin-right: 0.25rem;
}

.product-card {
    background: white;
    border-radius: 8px;
    border: 1px solid var(--neutral-200, #e9ecef);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card-content {
    padding: 1.5rem;
}

.product-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary, #2c3e50);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.product-card-excerpt {
    color: var(--text-secondary, #6c757d);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.product-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-secondary, #6c757d);
    margin-bottom: 1rem;
}

.product-card-category {
    background: var(--primary-light, #e3f2fd);
    color: var(--primary, #004d99);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.product-card-link {
    color: var(--primary, #004d99);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

.product-card-link:hover {
    color: var(--primary-dark, #003d7a);
    text-decoration: underline;
}

/* Product Content */
.product-content {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary, #2c3e50);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.product-description {
    color: var(--text-secondary, #6c757d);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.product-description p {
    margin: 0;
}

.product-link {
    color: var(--primary, #004d99);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

.product-link:hover {
    color: var(--primary-dark, #003d7a);
    text-decoration: underline;
}

/* Skeleton Loading */
.product-card.skeleton {
    display: none;
}

.product-card.skeleton .product-card-image {
    background: var(--neutral-200, #e9ecef);
    animation: pulse 1.5s ease-in-out infinite;
}

.product-card.skeleton .product-card-content {
    background: var(--neutral-200, #e9ecef);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Filter Controls */
.filter-controls {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.filter-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary, #2c3e50);
}

.filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--neutral-300, #dee2e6);
    border-radius: 6px;
    font-size: 1rem;
    background-color: white;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary, #004d99);
    box-shadow: 0 0 0 3px rgba(0, 77, 153, 0.1);
}

/* Results Counter */
.results-counter {
    background: var(--primary, #004d99);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .category-header {
        padding: 2rem 0;
    }
    
    .category-title {
        font-size: 1.8rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-card-content {
        padding: 1.5rem;
    }
    
    .product-card-title {
        font-size: 1.2rem;
    }
    
    .filter-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-group {
        width: 100%;
    }
}

/* Other Categories Section */
.other-categories-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--neutral-200, #e9ecef);
}

.other-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.category-card {
    background: white;
    border-radius: 8px;
    border: 1px solid var(--neutral-200, #e9ecef);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.category-image-wrapper {
    position: relative;
    height: 150px;
    overflow: hidden;
}

.category-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--neutral-200, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-content {
    padding: 1rem;
}

.category-content .category-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary, #2c3e50);
    margin-bottom: 0.75rem;
}

.category-link {
    color: var(--primary, #004d99);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

.category-link:hover {
    color: var(--primary-dark, #003d7a);
    text-decoration: underline;
}

/* No Products Found */
.no-products-found {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary, #6c757d);
}

.no-products-found i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-products-found p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.no-products-found .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
} 