/* ============================================================
   PRODUCTS PAGE — STANDALONE STYLES
============================================================ */

/* Page Hero */
.products-hero {
    background: linear-gradient(135deg, #0369a1 0%, #0ea5e9 50%, #0284c7 100%);
    color: #ffffff;
    padding: 10.5rem 0 3.5rem;
    /* Net 3.5rem visual padding top and bottom below header */
    position: relative;
    overflow: hidden;
}

.products-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.products-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.products-hero h1 {
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 0.75rem;
}

.products-hero-p {
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.05rem;
    max-width: 680px;
}


/* Filter Tabs */
.filter-section {
    background: var(--color-brand-white);
    border-bottom: 1px solid var(--slate-200);
    position: sticky;
    top: 76px;
    z-index: 100;
}

.filter-inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    overflow-x: auto;
    scrollbar-width: none;
}

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

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.2rem;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--slate-500);
    background: var(--slate-100);
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.filter-tab:hover {
    color: var(--color-brand-blue);
    background: rgba(14, 165, 233, 0.06);
    border-color: rgba(14, 165, 233, 0.2);
}

.filter-tab.active {
    color: var(--color-brand-white);
    background: var(--color-brand-blue);
    border-color: var(--color-brand-blue);
}

.filter-tab .tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.25);
}

.filter-tab:not(.active) .tab-count {
    background: rgba(14, 165, 233, 0.12);
    color: var(--color-brand-blue);
}

/* Products Grid Section */
.products-section {
    padding: 5rem 0 7rem;
    background-color: var(--slate-50);
}

.category-block {
    margin-bottom: 3rem;
}

.category-block:last-child {
    margin-bottom: 0;
}

/* Product Card */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--color-brand-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(14, 165, 233, 0.3);
}

.product-badge {
    display: none;
}

.product-img-wrapper {
    position: relative;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    padding: 1.15rem;
    overflow: hidden;
    border-bottom: 1px solid var(--slate-100);
}

.product-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.04);
}

.product-body {
    padding: 1.15rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-meta-tags {
    display: none;
}

.product-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-brand-dark);
    line-height: 1.3;
    margin-bottom: 0.6rem;
}

.product-desc {
    font-size: 0.88rem;
    color: var(--slate-500);
    line-height: 1.65;
    margin-bottom: 0;
    flex: 1;
}

.product-specs {
    display: none;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
}

.spec-label {
    color: var(--slate-500);
    font-weight: 500;
}

.spec-value {
    color: var(--slate-700);
    font-weight: 700;
    text-align: right;
}

.product-cta {
    display: none;
}

.btn-product-enquire {
    flex: 1;
    padding: 0.7rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-align: center;
    background: var(--color-brand-blue);
    color: #ffffff;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.btn-product-enquire:hover {
    background: #0284c7;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4);
    color: #ffffff;
}

.btn-product-call {
    padding: 0.7rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    background: transparent;
    color: var(--slate-700);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-product-call:hover {
    background: var(--slate-100);
    border-color: var(--slate-300);
    color: var(--color-brand-dark);
}



/* Why Choose Section */
.why-products-section {
    background: #ffffff;
    padding: 6rem 0;
    border-top: 1px solid var(--slate-100);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.why-card {
    padding: 2.25rem 2rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 4px solid var(--color-brand-blue);
    border-radius: var(--radius-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
}

.why-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-brand-blue);
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
}

.why-card-number {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-brand-sky);
    line-height: 1;
    margin-bottom: 1.25rem;
}

.why-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-brand-dark);
    margin-bottom: 0.75rem;
}

.why-card p {
    font-size: 0.9rem;
    color: var(--slate-500);
    line-height: 1.65;
    margin: 0;
}

/* CTA Strip */
.products-cta-strip {
    background: linear-gradient(135deg, #022942 0%, #0ea5e9 100%);
    padding: 2.25rem 0;
    color: #ffffff;
}

.cta-strip-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cta-strip-text h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.cta-strip-text p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.92rem;
    margin: 0;
}

.cta-strip-btns {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.btn-cta-white {
    background: #ffffff;
    color: var(--color-brand-blue);
    font-weight: 700;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.btn-cta-white:hover {
    background: #f0f9ff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    color: var(--color-brand-blue);
}

.btn-cta-outline-white {
    background: transparent;
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    font-weight: 700;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.btn-cta-outline-white:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

@media (max-width: 768px) {
    .cta-strip-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .cta-strip-btns {
        width: 100%;
    }

    .btn-cta-white,
    .btn-cta-outline-white {
        flex: 1;
        justify-content: center;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .compat-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 2rem;
    }
}

@media (max-width: 640px) {
    .products-hero {
        padding: 11rem 0 3.5rem;
    }

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

    .category-header {
        gap: 0.85rem;
    }

    .category-icon-box {
        width: 40px;
        height: 40px;
    }

    .compat-carriers {
        gap: 0.6rem;
    }
}

@media (max-width: 440px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}