/* ══════════════════════════════════════════════?   Products Page - Hongbo Gas Equipment (v2)
   ══════════════════════════════════════════════?*/

/* Hero Section */
.products-hero {
    position: relative;
    background: linear-gradient(135deg, #0f2248 0%, #1a4a8a 40%, #2563eb 100%);
    padding: 90px 20px 110px;
    text-align: center;
    overflow: hidden;
    margin-top: -20px;
}

.hero-bg-particles {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.15), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.1), transparent),
        radial-gradient(2px 2px at 160px 40px, rgba(255,255,255,0.12), transparent),
        radial-gradient(2px 2px at 200px 120px, rgba(255,255,255,0.08), transparent),
        radial-gradient(2px 2px at 300px 60px, rgba(255,255,255,0.1), transparent);
    background-size: 300px 150px;
}

.hero-overlay { display: none; }

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

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.9);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-content h1 {
    color: #fff;
    font-size: 46px;
    font-weight: 800;
    margin-bottom: 14px;
    text-shadow: 0 2px 15px rgba(0,0,0,0.25);
    letter-spacing: -0.5px;
}

.hero-content p {
    color: rgba(255,255,255,0.85);
    font-size: 17px;
    max-width: 600px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 6px;
    color: rgba(255,255,255,0.65);
    font-size: 13px;
    font-weight: 500;
}

.hero-dot { color: rgba(255,255,255,0.35); }

/* Category Navigation */
.category-nav-section {
    background: #fff;
    border-bottom: 1px solid #e8ecf0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}



.category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 0;
    justify-content: center;
}

.cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cat-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #f0f7ff;
}

.cat-btn.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.cat-icon { font-size: 14px; }

.cat-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(0,0,0,0.08);
}

.cat-btn.active .cat-count {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 30px auto 60px;
    padding: 0 20px;
    min-height: 60vh;
}

/* Results Toolbar */
.results-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.results-info {
    font-size: 14px;
    color: #64748b;
}

.results-info strong { color: #1e293b; }
.results-info em {
    font-style: normal;
    color: #2563eb;
    font-weight: 600;
}

/* Filter Bar */
.filter-bar {
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    color: #475569;
    cursor: pointer;
}

.search-group { display: flex; }

.filter-input {
    padding: 8px 14px;
    border: 1px solid #e2e8f0;
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-size: 13px;
    min-width: 180px;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}

.filter-input:focus {
    border-color: #2563eb;
}

.filter-submit {
    padding: 8px 14px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.filter-submit:hover { background: #1d4ed8; }

.reset-link {
    font-size: 12px;
    color: #ef4444;
    text-decoration: none;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 4px;
}

.reset-link:hover {
    background: #fef2f2;
    text-decoration: underline;
}

/* Product Grid */
.product-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* Product Card */
.product-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.1);
    border-color: #2563eb;
}

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

.badge-featured {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    background: linear-gradient(135deg, #f97316, #ef4444);
    color: white;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* Card Image */
.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    background: #f1f5f9;
    overflow: hidden;
}

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

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

.card-image-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(37, 99, 235, 0.7), rgba(37, 99, 235, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.overlay-text {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 24px;
    border: 2px solid #fff;
    border-radius: 8px;
    backdrop-filter: blur(4px);
}

/* Card Body */
.card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.card-category {
    font-size: 11px;
    color: #2563eb;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: #eef4ff;
    padding: 3px 10px;
    border-radius: 10px;
    text-transform: uppercase;
}

.card-model {
    font-size: 11px;
    color: #6366f1;
    font-weight: 600;
    background: #eef2ff;
    padding: 3px 10px;
    border-radius: 10px;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
    line-height: 1.35;
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.55;
    margin: 0 0 12px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tags */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 12px;
}

.card-tag {
    font-size: 10px;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Card Footer */
.card-footer {
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

.btn-detail {
    text-decoration: none;
    color: #2563eb;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.btn-arrow {
    transition: transform 0.2s;
}

.product-card:hover .btn-arrow {
    transform: translateX(4px);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
    color: #94a3b8;
    background: #fff;
    border-radius: 12px;
    border: 1px dashed #e2e8f0;
}

.no-results-icon { font-size: 48px; margin-bottom: 16px; }

.no-results h2 { color: #475569; margin-bottom: 8px; }

.back-to-all {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 24px;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s;
}

.back-to-all:hover { background: #1d4ed8; }

/* Mobile */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 28px; }
    .hero-content p { font-size: 14px; }
    .hero-stats { flex-wrap: wrap; }
    .products-hero { padding: 60px 20px 70px; }
    .product-grid-layout { grid-template-columns: 1fr; }
    .category-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 12px 0;
        -webkit-overflow-scrolling: touch;
    }
    .cat-btn { flex-shrink: 0; }
    .results-toolbar { flex-direction: column; align-items: flex-start; }
    .filter-input { min-width: 120px; }
}
