/* ============================================
   KB Products Grid Widget — Styles
   Dark Theme | Filterable Product Grid
   ============================================ */

/* ---------- Section Header ---------- */
.kb-products-header {
    text-align: center;
    margin-bottom: 48px;
}

.kb-section-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin: 0 0 16px;
}

.kb-section-subtitle {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.1rem;
    color: #b0b0b0;
    max-width: 640px;
    line-height: 1.8;
    margin: 0 auto;
}

/* ---------- Filter Bar ---------- */
.kb-products-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    justify-content: center;
}

.kb-filter-btn {
    padding: 10px 24px;
    border-radius: 50px;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #b0b0b0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.kb-filter-btn i,
.kb-filter-btn svg {
    margin-right: 4px;
}

.kb-filter-btn:hover,
.kb-filter-btn.active {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

/* ---------- Products Grid ---------- */
.kb-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ---------- Product Card ---------- */
.kb-product-card {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.kb-product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

/* ---------- Icon / Image Area ---------- */
.kb-product-icon {
    height: 220px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.kb-product-icon i {
    font-size: 48px;
    color: #2563eb;
    line-height: 1;
}

.kb-product-icon svg {
    width: 48px;
    height: 48px;
    fill: #2563eb;
}

.kb-product-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.kb-product-icon.kb-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Card Body ---------- */
.kb-product-body {
    padding: 24px;
}

.kb-product-body h3 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px;
    line-height: 1.4;
}

.kb-product-body p {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.85rem;
    color: #b0b0b0;
    margin: 0;
    line-height: 1.6;
}

/* ---------- Scroll Reveal Animation ---------- */
.kb-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.kb-reveal.kb-active {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Filter Animation ---------- */
@keyframes kbFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Responsive ---------- */

/* Tablet & Small Desktop */
@media (max-width: 1024px) {
    .kb-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .kb-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .kb-section-title {
        font-size: 2rem;
    }

    .kb-product-icon {
        height: 180px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .kb-products-grid {
        grid-template-columns: 1fr;
    }

    .kb-product-icon {
        height: 180px;
    }

    .kb-filter-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .kb-products-filter {
        gap: 8px;
    }

    .kb-section-title {
        font-size: 1.6rem;
    }

    .kb-section-subtitle {
        font-size: 0.95rem;
    }
}
