.category-hero {
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
    padding: 60px 0;
    color: var(--cream);
}

.category-hero-inner {
    max-width: 600px;
}

.category-hero-content h1 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 40px;
    font-weight: normal;
    margin-bottom: 12px;
}

.category-count {
    font-size: 16px;
    color: var(--accent-light);
    margin-bottom: 16px;
}

.category-desc {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(245,240,232,0.85);
}

.spec-breadcrumb {
    font-size: 14px;
    margin-bottom: 16px;
    opacity: 0.8;
}

.spec-breadcrumb a {
    color: var(--cream);
    text-decoration: none;
    transition: opacity 0.3s;
}

.spec-breadcrumb a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.subcategories-section {
    background: var(--ivory);
    padding: 20px 0;
    border-bottom: 1px solid var(--cream-dark);
}

.subcategories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.subcategory-item {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    background: var(--white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--cream-dark);
    transition: var(--transition);
}

.subcategory-item:hover {
    border-color: var(--navy-deep);
    background: var(--navy-deep);
}

.subcategory-item:hover .subcategory-name {
    color: var(--cream);
}

.subcategory-name {
    font-size: 13px;
    color: var(--charcoal);
    transition: var(--transition);
}

.category-content-section {
    padding: 40px 0 60px;
    background: var(--ivory);
}

.category-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
}

.filters-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.filter-group {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--cream-dark);
}

.filter-group:last-of-type {
    border-bottom: none;
}

.filter-group h4 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 15px;
    font-weight: normal;
    color: var(--navy-deep);
    margin-bottom: 14px;
}

.filter-option,
.price-range {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.filter-option input,
.price-range input {
    width: 16px;
    height: 16px;
    accent-color: var(--navy-deep);
}

.filter-option label,
.price-range label {
    font-size: 14px;
    color: var(--slate);
    cursor: pointer;
}

.filter-link {
    display: block;
    padding: 4px 0;
    color: var(--slate);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.filter-link:hover {
    color: var(--navy-deep);
    text-decoration: underline;
}

.filter-link.active {
    color: var(--navy-deep);
    font-weight: 600;
}

.filter-values {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-value-tag {
    display: inline-block;
    padding: 6px 12px;
    background: var(--cream);
    border: 1px solid var(--gold-light);
    border-radius: 20px;
    color: var(--slate);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.25s ease;
}

.filter-value-tag:hover {
    background: var(--gold-light);
    color: var(--navy-deep);
    border-color: var(--gold);
    transform: translateY(-1px);
}

.filter-value-tag:active {
    transform: translateY(0);
}

.filter-value-tag.active {
    color: #006644 !important;
    font-weight: bold;
    border-color: green !important;
    background-color: rgba(0, 128, 0, 0.1);
}

.filter-count {
    margin-left: 4px;
    font-size: 11px;
    opacity: 0.7;
}

.btn-apply-filter {
    width: 100%;
    margin-top: 8px;
}

.products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--cream-dark);
    flex-wrap: wrap;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-options label {
    font-size: 14px;
    color: var(--slate);
    white-space: nowrap;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--white);
    cursor: pointer;
}

.view-options {
    display: flex;
    gap: 4px;
}

.view-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--cream-dark);
    background: var(--white);
    color: var(--slate);
    cursor: pointer;
    transition: var(--transition);
}

.view-btn.active,
.view-btn:hover {
    background: var(--navy-deep);
    color: var(--cream);
    border-color: var(--navy-deep);
}

.results-count {
    font-size: 14px;
    color: var(--slate);
    white-space: nowrap;
}

.category-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.product-link {
    display: block;
}

.product-image-link {
    display: block;
}

.product-name-link {
    text-decoration: none;
    color: inherit;
}

.product-name-link:hover .product-name {
    color: var(--green-hover, #2d8a4e);
}

.spec-tag {
    display: inline-block;
    padding: 3px 8px;
    background: var(--cream);
    border: 1px solid var(--gold-light);
    border-radius: 12px;
    color: var(--slate);
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s;
}

.spec-tag:hover {
    background: var(--gold-light);
    color: var(--navy-deep);
}

.product-image-wrapper {
    position: relative;
    height: 240px;
    background: var(--cream);
    overflow: hidden;
}

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

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26,42,74,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.quick-view {
    padding: 10px 20px;
    background: var(--accent);
    color: var(--cream);
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 1;
}

.product-badge.new {
    background: var(--navy-deep);
    color: var(--cream);
}

.product-badge.featured {
    background: var(--accent);
    color: var(--cream);
}

.product-info {
    padding: 18px;
}

.product-category {
    display: block;
    font-size: 11px;
    color: var(--silver);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

a.product-category:hover {
    color: var(--gold);
}

.product-name {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 15px;
    font-weight: normal;
    color: var(--charcoal);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.price-current {
    font-size: 16px;
    color: var(--navy-deep);
}

.price-original {
    font-size: 13px;
    color: var(--silver);
    text-decoration: line-through;
}

.product-specs-preview {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.product-specs-preview span {
    font-size: 11px;
    padding: 3px 8px;
    background: var(--cream);
    border-radius: var(--radius-sm);
    color: var(--slate);
}

.wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--charcoal);
}

.wishlist-btn:hover {
    background: var(--accent);
    color: var(--white);
}

.wishlist-btn.active {
    background: var(--accent);
    color: var(--white);
}

.wishlist-btn.active .far {
    color: var(--white);
}

.pagination-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination-btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    background: var(--white);
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--charcoal);
    transition: var(--transition);
}

.pagination-btn:hover,
.pagination-btn.active {
    background: var(--navy-deep);
    color: var(--cream);
    border-color: var(--navy-deep);
}

.no-products {
    text-align: center;
    padding: 80px 20px;
}

.no-products i {
    font-size: 48px;
    color: var(--silver);
    margin-bottom: 20px;
}

.no-products h3 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 24px;
    color: var(--navy-deep);
    margin-bottom: 12px;
}

.no-products p {
    color: var(--slate);
    margin-bottom: 24px;
}

.category-seo-content {
    padding: 60px 0;
    background: var(--cream);
}

.seo-content-block {
    max-width: 800px;
    margin: 0 auto;
}

.seo-content-block h2 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 26px;
    color: var(--navy-deep);
    margin-bottom: 20px;
}

.seo-content-block h3 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 18px;
    color: var(--navy-deep);
    margin: 28px 0 14px;
}

.seo-content-block p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--slate);
    margin-bottom: 16px;
}

.seo-content-block ul {
    padding-left: 24px;
    margin-bottom: 20px;
}

.seo-content-block li {
    font-size: 15px;
    line-height: 1.8;
    color: var(--slate);
    margin-bottom: 8px;
}

.seo-content-block strong {
    color: var(--charcoal);
}

.related-categories-section {
    padding: 60px 0;
    background: var(--ivory);
}

.related-cats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.related-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: var(--white);
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
}

.related-cat-card:hover {
    background: var(--navy-deep);
}

.related-cat-card:hover h3,
.related-cat-card:hover span {
    color: var(--cream);
}

.related-cat-card h3 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 14px;
    font-weight: normal;
    color: var(--navy-deep);
    margin-bottom: 4px;
    transition: var(--transition);
}

.related-cat-card span {
    font-size: 12px;
    color: var(--silver);
    transition: var(--transition);
}

@media (max-width: 1200px) {
    .category-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-cats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .category-layout {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: static;
        display: none;
    }

    .related-cats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .category-hero {
        padding: 30px 0;
    }

    .category-hero-content h1 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .category-hero-content .category-count {
        font-size: 14px;
    }

    .category-hero-inner {
        max-width: 100%;
    }

    .subcategories-section {
        padding: 10px 0;
    }

    .subcategories-scroll {
        gap: 8px;
        padding: 0 16px 8px;
    }

    .subcategory-chip {
        padding: 8px 14px;
        font-size: 13px;
    }

    .category-content-section {
        padding: 20px 0 40px;
    }

    .category-layout {
        gap: 20px;
    }

    .products-toolbar {
        gap: 12px;
        padding-bottom: 16px;
        margin-bottom: 20px;
    }

    .sort-options {
        gap: 8px;
    }

    .sort-options label {
        font-size: 13px;
        display: none;
    }

    .sort-select {
        padding: 6px 10px;
        font-size: 13px;
    }

    .view-options {
        display: flex;
        gap: 4px;
    }

    .results-count {
        width: 100%;
        margin-left: 0;
        margin-top: 8px;
        font-size: 13px;
    }

    .category-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-image-wrapper {
        height: 140px;
    }

    .product-info {
        padding: 12px;
    }

    .product-category {
        font-size: 10px;
    }

    .product-name {
        font-size: 13px;
    }

    .price-current {
        font-size: 14px;
    }

    .related-cats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .related-cat-card {
        padding: 14px 10px;
    }

    .related-cat-card h3 {
        font-size: 11px;
    }

    .related-cat-card span {
        font-size: 10px;
    }

    .pagination-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination-btn {
        min-width: 34px;
        height: 34px;
        padding: 0 8px;
        font-size: 12px;
    }

    .category-seo-content {
        padding: 40px 0;
    }

    .related-categories-section {
        padding: 40px 0;
    }
}
