/* =========================================================
   products.css - VisualNex Products Page Styles
========================================================= */

/* ─────────────────────────────────────────────────────
   PRODUCTS HERO
───────────────────────────────────────────────────── */
.products-hero {
    position: relative;
    background: linear-gradient(135deg, #f8f9fc 0%, #ffffff 100%);
    padding: 80px 0 60px;
    overflow: hidden;
}

.products-hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 150%;
    background: radial-gradient(circle, rgba(252,52,52,0.04) 0%, transparent 70%);
    pointer-events: none;
}

.products-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.products-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 20px 0 20px;
    color: var(--text);
}

.products-hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-soft);
    max-width: 700px;
    margin: 0 auto;
}

/* ─────────────────────────────────────────────────────
   FILTER TABS
───────────────────────────────────────────────────── */
.products-filter-section {
    padding: 20px 0 0;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.filter-tab {
    padding: 10px 24px;
    border-radius: 50px;
    background: #fff;
    border: 1px solid var(--border);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-soft);
    cursor: pointer;
    transition: var(--transition);
}

.filter-tab:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.filter-tab.active {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(44, 116, 220, 0.3);
}

/* ─────────────────────────────────────────────────────
   PRODUCTS CATALOG GRID
───────────────────────────────────────────────────── */
.products-catalog {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-item {
    transition: all 0.3s ease;
}

.product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.product-image {
    position: relative;
    height: 220px;
    background: linear-gradient(135deg, #f5f7fb 0%, #eef2f8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gradient);
    color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-details {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.product-category-tag {
    display: inline-block;
    background: var(--gradient-soft);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    color: var(--blue);
    margin-bottom: 12px;
    width: fit-content;
}

.product-description {
    font-size: 13px;
    color: var(--text-soft);
    line-height: 1.6;
    margin-bottom: 15px;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.product-features span {
    background: #f8f9fc;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.product-features span i {
    font-size: 10px;
    color: var(--blue);
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.product-price {
    font-size: 20px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-enquire {
    background: var(--gradient);
    color: #fff;
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

.btn-enquire:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 116, 220, 0.3);
}

/* ─────────────────────────────────────────────────────
   FEATURED BANNER
───────────────────────────────────────────────────── */
.featured-banner {
    background: linear-gradient(135deg, #1a2234 0%, #24395d 100%);
    padding: 60px 0;
}

.featured-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 32px;
    padding: 40px;
    border: 1px solid rgba(255,255,255,0.1);
}

.featured-text {
    flex: 1;
}

.featured-tag {
    display: inline-block;
    background: rgba(252,52,52,0.2);
    color: #fc3434;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 15px;
}

.featured-text h2 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.featured-text p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
}

.featured-price {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.old-price {
    font-size: 18px;
    color: rgba(255,255,255,0.5);
    text-decoration: line-through;
}

.new-price {
    font-size: 28px;
    font-weight: 800;
    color: #fc3434;
}

.featured-image {
    width: 180px;
    height: 180px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-image i {
    font-size: 80px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ─────────────────────────────────────────────────────
   WHY PRODUCTS GRID
───────────────────────────────────────────────────── */
.why-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.why-product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.why-product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.why-product-card i {
    font-size: 42px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    display: inline-block;
}

.why-product-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.why-product-card p {
    font-size: 13px;
    color: var(--text-soft);
}

/* ─────────────────────────────────────────────────────
   CTA SECTION
───────────────────────────────────────────────────── */
.products-cta {
    padding-bottom: 100px;
}

.products-cta .cta-box {
    background: linear-gradient(135deg, #f8f9fc 0%, #ffffff 100%);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.products-cta .cta-box h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.products-cta .cta-box p {
    color: var(--text-soft);
    margin-bottom: 25px;
}

/* ─────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .products-catalog {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-content {
        flex-direction: column;
        text-align: center;
    }

    .featured-price {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .products-hero {
        padding: 50px 0 40px;
    }

    .products-catalog {
        grid-template-columns: 1fr;
    }

    .filter-tabs {
        gap: 8px;
    }

    .filter-tab {
        padding: 8px 16px;
        font-size: 12px;
    }

    .why-products-grid {
        grid-template-columns: 1fr;
    }

    .featured-text h2 {
        font-size: 22px;
    }

    .new-price {
        font-size: 24px;
    }

    .products-cta .cta-box {
        padding: 35px 25px;
    }

    .products-cta .cta-box h3 {
        font-size: 22px;
    }
}

@media (max-width: 575px) {
    .filter-tabs {
        gap: 6px;
    }

    .filter-tab {
        padding: 6px 12px;
        font-size: 11px;
    }

    .product-image {
        height: 180px;
    }

    .featured-image {
        width: 120px;
        height: 120px;
    }

    .featured-image i {
        font-size: 50px;
    }
}