/* Category Page Specific Styles */

/* Breadcrumb Navigation */
.breadcrumb {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    font-size: 0.875rem;
    padding: 1rem 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li::after {
    content: "›";
    margin-left: 0.5rem;
    color: var(--gray-400);
    font-size: 1.1em;
}

.breadcrumb li:last-child::after {
    content: none;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

.breadcrumb a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb li:last-child {
    color: var(--gray-700);
    font-weight: 500;
}

/* Subcategory Navigation */
.subcategory-nav {
    background: linear-gradient(180deg, var(--gray-50) 0%, white 100%);
    padding: 3rem 0;
}

.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.subcategory-card {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-slow);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.subcategory-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.subcategory-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.subcategory-card:hover::before {
    opacity: 1;
}

.subcategory-card:active {
    transform: translateY(-2px);
}

.subcategory-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.subcategory-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.subcategory-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Category Hero Section */
.category-hero {
    position: relative;
    overflow: hidden;
}

.category-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.category-hero h1 {
    position: relative;
    z-index: 1;
}

/* Category Products Section */
.category-products {
    padding: 3rem 0;
}

.category-products h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--gray-900);
    position: relative;
    display: inline-block;
}

.category-products h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    margin-top: 0.5rem;
    border-radius: var(--radius-full);
}

/* Category Info Section */
.category-info {
    background: linear-gradient(180deg, white 0%, var(--gray-50) 100%);
    padding: 4rem 0;
}

.category-info .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.category-info article {
    padding: 2rem;
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.category-info article:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--gray-300);
}

.category-info h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-info p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.category-info ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.category-info li {
    color: var(--gray-700);
    line-height: 1.6;
    padding-left: 1.5rem;
    position: relative;
}

.category-info li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.category-info strong {
    color: var(--gray-900);
}

/* Product Spec Display */
.product-spec {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin: 1rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.product-spec .spec-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.product-spec .spec-unit {
    font-size: 1rem;
    color: var(--gray-500);
}

/* Enhanced Product Cards for Category Pages */
.category-products .provider-card {
    animation: fadeIn 0.4s ease-out backwards;
}

.category-products .provider-card:nth-child(1) { animation-delay: 0s; }
.category-products .provider-card:nth-child(2) { animation-delay: 0.05s; }
.category-products .provider-card:nth-child(3) { animation-delay: 0.1s; }
.category-products .provider-card:nth-child(4) { animation-delay: 0.15s; }
.category-products .provider-card:nth-child(5) { animation-delay: 0.2s; }
.category-products .provider-card:nth-child(6) { animation-delay: 0.25s; }

/* Category Tabs Enhanced */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
    padding: 0 1rem;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.tab-btn.active {
    background: #1e3a8a;
    border-color: white;
    color: white;
    box-shadow: 0 0 0 2px white, 0 4px 12px rgba(0,0,0,0.25);
    text-shadow: none;
}

.tab-btn .tab-icon {
    font-size: 1.1rem;
}

.tab-btn .tab-text {
    font-weight: 600;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* FAQ Section Styles */
.faq-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-200);
}

.faq-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-item summary {
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    cursor: pointer;
    background: var(--gray-50);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 700;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item summary:hover {
    background: var(--gray-100);
}

.faq-item p {
    padding: 1rem 1.25rem;
    margin: 0;
    color: var(--gray-600);
    line-height: 1.7;
    background: white;
}

/* Info Article Styles */
.info-article {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}

.info-article h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.info-article p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Price Table Styles */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.price-table th,
.price-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.price-table th {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.price-table tr:hover {
    background: var(--gray-50);
}

.price-table td:first-child {
    font-weight: 500;
    color: var(--gray-900);
}

/* Recommendations List */
.recommendations-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.recommendations-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--gray-700);
    line-height: 1.6;
}

.recommendations-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.recommendations-list li strong {
    color: var(--gray-900);
}

/* Lead Paragraph */
.lead {
    font-size: 1.125rem;
    color: var(--gray-700);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Supplier Logo Badge */
.supplier-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    color: white;
    letter-spacing: 0.02em;
}

.supplier-logo span {
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Product Card Header */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .category-hero {
        padding: 2.5rem 0;
    }
    
    .category-hero h1 {
        font-size: 1.75rem;
    }
    
    .subcategory-grid {
        grid-template-columns: 1fr;
    }
    
    .subcategory-card {
        padding: 1.5rem;
    }
    
    .category-info .container {
        grid-template-columns: 1fr;
    }
    
    .category-info article {
        padding: 1.5rem;
    }
    
    .category-products h2 {
        font-size: 1.5rem;
    }
    
    .price-table {
        font-size: 0.875rem;
    }
    
    .price-table th,
    .price-table td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 640px) {
    .category-tabs {
        gap: 0.5rem;
    }
    
    .tab-btn {
        padding: 0.6rem 1rem;
        font-size: 0.875rem;
    }
    
    .tab-btn .tab-icon {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        font-size: 0.8rem;
        flex-wrap: wrap;
    }
    
    .category-info article {
        padding: 1rem;
    }
}