/* ==================== CATEGORY PAGE SPECIFIC STYLES ==================== */

/* Hero Section */
.category-hero {
    position: relative;
    background: var(--gradient-hero);
    padding: 6rem 1rem 5rem;
    overflow: hidden;
}

.category-hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: baseline;
}

.category-title {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.category-cta {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.hero-inner {
    position: relative;
    z-index: 1;
}

/* Product Card - Category Specific */
.category-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--muted);
    color: var(--muted-fg);
    font-size: 2rem;
}

.product-card-slider {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.product-card-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform .55s ease;
}

.product-card-slider-track img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    transition: opacity 0.4s ease;
}

/* Disable scale on slider hover */
.product-card:hover .product-card-slider-track img {
    transform: none !important;
}

/* Hide "Liên hệ" text and border line */
.product-card-price {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
}

/* Product Card Specs with Images */
.product-card-specs {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--muted-foreground);
    flex: 1;
    min-width: 100px;
}

.spec-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.spec-value {
    font-weight: 500;
    color: var(--fg);
}

/* Mobile optimization for specs */
@media (max-width: 640px) {
    .product-card-specs {
        gap: 10px;
        margin-top: 10px;
    }

    .spec-item {
        font-size: 0.8rem;
    }

    .spec-icon {
        width: 24px;
        height: 24px;
    }
}

/* Category Description */
.category-description {
    background: var(--muted);
    padding: 2rem;
    border-radius: 1rem;
    border: 1.5px solid var(--border);
}

.category-description>span {
    display: block;
    margin-bottom: 1rem;
}

.category-description>div {
    font-size: .975rem;
    line-height: 1.75;
    color: var(--muted-fg);
}

.category-empty {
    text-align: center;
    padding: 4rem 1rem;
    border-radius: 1rem;
    border: 1.5px dashed var(--border);
    background: var(--muted);
}

.category-empty i {
    font-size: 3rem;
    color: var(--muted-fg);
    margin-bottom: 1rem;
}

.category-empty h3 {
    font-weight: 600;
    margin-bottom: .5rem;
    color: var(--fg);
}

.category-empty p {
    color: var(--muted-fg);
    margin-bottom: 0;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

/* Product Grids */
.category-children-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

.category-products-grid {
    display: grid;
    gap: 1.3rem;
    grid-template-columns: 1fr;
}

/* Responsive */
@media (min-width: 640px) {
    .category-children-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .category-hero {
        padding: 8rem 1.5rem 6rem;
    }

    .category-title {
        font-size: 2.6rem;
    }

    .category-children-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .category-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .category-hero {
        padding: 10rem 2rem 7rem;
    }

    .category-title {
        font-size: 3.2rem;
    }

    .category-cta {
        gap: 1rem;
    }

    .category-children-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .category-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Product Card Category Name */
.product-card-category {
    font-size: 0.8rem;
    color: var(--muted-fg);
    margin-bottom: 0.5rem;
    font-style: italic;
}