/* ==========================================
   CATEGORY PAGE STYLES - CLEAN & PROFESSIONAL
   ========================================== */

/* Category Header */
.category-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 2.5rem 0;
    margin-bottom: 2.5rem;
}

.category-header .breadcrumbs {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
}

.category-header .breadcrumbs a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.category-header .breadcrumbs a:hover {
    opacity: 0.8;
}

.category-header .separator {
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.6);
}

.category-header .current {
    color: rgba(255, 255, 255, 0.95);
}

.category-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0.75rem 0;
    letter-spacing: 0.5px;
}

.category-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.category-info {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.625rem 1.25rem;
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 500;
}

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

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* Product Card */
.product-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: #1e3c72;
}

.product-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Product Image */
.product-card__image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
    overflow: hidden;
}

.product-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-card__image {
    transform: scale(1.08);
}

.product-card__no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
}

/* Featured Badge */
.product-card__badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #2c3e50;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    z-index: 2;
}

.product-card__badge svg {
    width: 14px;
    height: 14px;
}

/* Overlay */
.product-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.9) 0%, rgba(42, 82, 152, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.overlay-text {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Product Content */
.product-card__content {
    padding: 1.25rem;
}

.product-card__title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__meta {
    margin-bottom: 1rem;
}

.product-card__sku {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: #6c757d;
    background: #f8f9fa;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
}

.product-card__sku svg {
    color: #1e3c72;
    width: 14px;
    height: 14px;
}

/* Product Action */
.product-card__action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #1e3c72;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: gap 0.2s;
}

.product-card:hover .product-card__action {
    gap: 0.75rem;
}

.product-card__action svg {
    width: 18px;
    height: 18px;
}

/* No Products State */
.no-products {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.no-products svg {
    color: #adb5bd;
}

.no-products h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.no-products p {
    font-size: 1rem;
    color: #6c757d;
    margin: 0;
    max-width: 500px;
}

.btn-back-catalog {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #1e3c72;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.2s;
    margin-top: 0.5rem;
}

.btn-back-catalog:hover {
    background: #163159;
    gap: 0.75rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

@media (max-width: 992px) {
    .category-header {
        padding: 2.25rem 0;
    }

    .category-title {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.75rem;
    }
}

@media (max-width: 768px) {
    .category-header {
        padding: 2rem 0;
    }

    .category-title {
        font-size: 1.875rem;
    }

    .category-description {
        font-size: 0.9375rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.5rem;
    }

    .product-card__image-wrapper {
        height: 200px;
    }

    .product-card__content {
        padding: 1.125rem;
    }
}

@media (max-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .category-header {
        padding: 1.5rem 0;
    }

    .category-title {
        font-size: 1.625rem;
    }

    .category-description {
        font-size: 0.875rem;
    }

    .category-info {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .product-card__image-wrapper {
        height: 180px;
    }

    .product-card__content {
        padding: 1rem;
    }

    .product-card__title {
        font-size: 1rem;
    }

    .no-products {
        padding: 3rem 1.5rem;
    }

    .no-products h3 {
        font-size: 1.25rem;
    }

    .no-products p {
        font-size: 0.9375rem;
    }
}

@media (max-width: 360px) {
    .category-title {
        font-size: 1.5rem;
    }

    .product-card__image-wrapper {
        height: 160px;
    }
}

/* Print */
@media print {
    .product-card__badge,
    .product-card__overlay,
    .btn-back-catalog {
        display: none !important;
    }

    .product-card {
        break-inside: avoid;
        box-shadow: none;
    }
}
