/* Extracted from app/views/frontend/products/category.php */
/* Products Hero - Compact & Elegant */
.products-hero {
    padding: 70px 0 0;
    background: transparent;
}

.products-hero .container {
    max-width: 1400px;
}

.products-hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.products-hero-left { flex: 1; }

.breadcrumb-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999;
    margin-bottom: 4px;
}

.breadcrumb-inline a {
    color: #999;
    transition: color 0.2s;
}

.breadcrumb-inline a:hover { color: var(--color-primary); }

.breadcrumb-inline i {
    font-size: 8px;
    opacity: 0.4;
}

.breadcrumb-inline span {
    color: #555;
}

.products-hero h1 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.01em;
    color: #1a1a1a;
}

.products-hero-desc {
    margin: 4px 0 0;
    color: #777;
    font-size: 0.8125rem;
    max-width: 400px;
    line-height: 1.5;
}

.products-hero-right {
    display: flex;
    align-items: center;
}

.product-count {
    font-size: 0.75rem;
    color: #888;
    background: #f5f5f5;
    padding: 5px 12px;
    border-radius: 20px;
}

/* Filter Bar - Minimal */
.products-filter-bar {
    padding-bottom: 16px;
}

.filter-scroll {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.filter-scroll::-webkit-scrollbar { display: none; }

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #f8f8f8;
    border: none;
    border-radius: 20px;
    color: #666;
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    background: #eee;
    color: #333;
}

.filter-chip.active {
    background: #1a1a1a;
    color: #fff;
}

.filter-count {
    font-size: 0.6875rem;
    padding: 2px 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
}

/* Products Section - Minimal Padding */
.products-section {
    padding: 0 0 3rem;
    background: var(--color-bg);
}

.products-section .container {
    max-width: 1400px;
}

/* ===== Series Section ===== */
.series-section {
    margin-bottom: 3rem;
}

.series-banner {
    position: relative;
    width: 100%;
    height: 312px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    margin-bottom: 1.5rem;
}

.series-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.series-banner-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    gap: 0.5rem;
}

.series-banner-placeholder i {
    font-size: 3rem;
    opacity: 0.5;
}

.series-banner-placeholder span {
    font-size: 1.25rem;
    font-weight: 600;
}

.series-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    color: #fff;
}

.series-banner-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.series-banner-count {
    font-size: 0.875rem;
    opacity: 0.8;
    display: block;
    margin-bottom: 1rem;
}

.series-banner-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: #fff;
    color: #1a1a1a;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
}

.series-banner-link:hover {
    background: var(--color-primary);
    color: #000;
}

/* Series Products Grid */
.series-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

/* No Series Section */
.no-series-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.no-series-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1.5rem;
    color: var(--color-text);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Product Item */
.product-item {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-item-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.product-item-media {
    position: relative;
    aspect-ratio: 4/3;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-item-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
    transition: transform 0.4s ease;
}

.product-item:hover .product-item-media img {
    transform: scale(1.05);
}

.product-tag {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 50px;
    z-index: 2;
}

.product-tag-new {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.product-tag-best {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
}

.product-item-info {
    padding: 1rem;
    background: #fafafa;
    border-top: 1px solid #eee;
}

.product-item-category {
    display: block;
    font-size: 0.625rem;
    font-weight: 500;
    color: #888;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.375rem;
}

.product-item-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 0.25rem;
    line-height: 1.4;
}

.product-item:hover .product-item-title {
    color: #667eea;
}

.product-item-dimensions {
    font-size: 0.75rem;
    color: #999;
}

/* Empty State */
.products-empty {
    text-align: center;
    padding: 6rem 2rem;
}

.products-empty i {
    font-size: 4rem;
    color: var(--color-border);
    margin-bottom: 1.5rem;
    display: block;
}

.products-empty h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.products-empty p {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.btn-back-products {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--color-primary);
    color: #000;
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s;
}

/* Responsive */
@media (max-width: 1199.98px) {
    .series-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991.98px) {
    .products-hero {
        padding: 65px 0 0;
    }
    .products-hero-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .products-hero-right {
        align-self: flex-start;
    }
    .series-banner {
        height: 180px;
    }
    .series-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767.98px) {
    .products-hero {
        padding: 60px 0 0;
    }
    .products-hero h1 {
        font-size: 1.25rem;
    }
    .products-hero-desc {
        font-size: 0.75rem;
    }
    .series-banner {
        height: 140px;
    }
    .series-banner-title {
        font-size: 1.125rem;
    }
    .series-banner-overlay {
        padding: 1rem;
    }
    .series-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .product-item-info {
        padding: 0.75rem;
    }
    .product-item-title {
        font-size: 0.8125rem;
    }
}

@media (max-width: 479.98px) {
    .products-hero h1 {
        font-size: 1.125rem;
    }
    .breadcrumb-inline {
        font-size: 10px;
    }
    .filter-chip {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    .series-banner {
        height: 120px;
    }
}
