/* ==========================================
   PRODUCTS PAGE STYLES
   ========================================== */

/* ---------- Products Hero ---------- */
.products-hero {
    background: var(--gradient-hero);
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.products-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 80% 30%, rgba(27, 94, 140, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 20% 70%, rgba(230, 126, 34, 0.1) 0%, transparent 50%);
}

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

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

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

.breadcrumb span {
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
}

.breadcrumb .current {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.products-hero h1 {
    font-family: var(--font-primary);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}

.products-hero p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
}

/* ---------- Filter Tabs ---------- */
.filter-section {
    background: var(--white);
    padding: 24px 0;
    border-bottom: 1px solid var(--gray-300);
    position: sticky;
    top: 68px;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-tab {
    padding: 10px 24px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-full);
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition-normal);
}

.filter-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(27, 94, 140, 0.04);
}

.filter-tab.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(27, 94, 140, 0.3);
}

/* ---------- Product Categories ---------- */
.product-category {
    padding: 80px 0;
    border-bottom: 1px solid var(--gray-200);
}

.product-category:nth-child(even) {
    background: var(--gray-100);
}

.category-header {
    margin-bottom: 48px;
}

.category-header h2 {
    font-family: var(--font-primary);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.category-header h2 i {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(27, 94, 140, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
}

.category-header p {
    font-size: 16px;
    color: var(--gray-600);
    max-width: 700px;
    line-height: 1.7;
}

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

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-300);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(27, 94, 140, 0.2);
}

.product-image {
    position: relative;
    width: 100%;
    height: 260px;
    background: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--gray-200);
}

.product-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-100) 100%);
}

.product-image-placeholder i {
    font-size: 48px;
    color: var(--gray-400);
}

.product-image-placeholder span {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 500;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    background: #ffffff;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: var(--primary);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    z-index: 1;
}

.product-info {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-code {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.product-info h3 {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.product-info p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.product-feature-tag {
    padding: 4px 12px;
    background: rgba(27, 94, 140, 0.06);
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.product-actions {
    display: flex;
    gap: 12px;
}

.product-actions .btn {
    flex: 1;
    justify-content: center;
    padding: 12px 20px;
    font-size: 13px;
}

.product-actions .btn-outline {
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
}

.product-actions .btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(27, 94, 140, 0.04);
}

/* ---------- Category Features Box ---------- */
.category-features {
    margin-top: 48px;
    padding: 32px;
    background: rgba(27, 94, 140, 0.03);
    border: 1px solid rgba(27, 94, 140, 0.1);
    border-radius: var(--radius-lg);
}

.category-features h4 {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-features h4 i {
    color: var(--primary);
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.6;
}

.features-list li i {
    color: var(--accent);
    margin-top: 4px;
    min-width: 16px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .products-hero {
        padding: 120px 0 60px;
    }

    .filter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

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

    .filter-tab {
        white-space: nowrap;
        flex-shrink: 0;
    }

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

    .product-category {
        padding: 48px 0;
    }

    .category-features {
        padding: 24px;
    }

    .features-list {
        grid-template-columns: 1fr;
    }
}
