/* =====================================================
   PRODUCTS PAGE - CORE STYLES
   ===================================================== */

.products-page .page-header {
    padding: 4.5rem 0 3.5rem;
    text-align: center;
    color: white;
    background: linear-gradient(135deg, #0f4c81 0%, #069e8c 100%);
    position: relative;
    overflow: hidden;
}

.products-page .page-header::before,
.products-page .page-header::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    filter: blur(0);
    z-index: 0;
}

.products-page .page-header::before {
    top: -120px;
    right: -140px;
}

.products-page .page-header::after {
    bottom: -160px;
    left: -120px;
}

.products-page .page-header .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.products-page .page-header h1 {
    font-size: clamp(2.1rem, 4vw, 2.8rem);
    font-weight: 800;
    text-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
}

.products-page .page-header p {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* =====================================================
   SEARCH + FILTER PANEL
   ===================================================== */

.products-page .search-filter {
    margin-top: -3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.products-page .search-filter .container {
    background: white;
    padding: 1.75rem;
    border-radius: 26px;
    box-shadow: 0 25px 60px rgba(15, 76, 129, 0.15);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.products-page .search-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, rgba(15, 76, 129, 0.05), rgba(6, 158, 140, 0.08));
    border-radius: 18px;
    padding: 0.75rem 1rem 0.75rem 1.2rem;
    border: 1.5px solid rgba(15, 76, 129, 0.12);
}

.products-page .search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text-dark);
}

.products-page .search-input::placeholder {
    color: rgba(15, 76, 129, 0.6);
}

.products-page .search-input:focus {
    outline: none;
}

.products-page .search-btn {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f4c81, #069e8c);
    color: white;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.products-page .search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 76, 129, 0.25);
}

.products-page .filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.products-page .filter-btn {
    padding: 0.65rem 1.2rem;
    border-radius: 999px;
    border: 1.5px solid rgba(15, 76, 129, 0.18);
    background: white;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
    cursor: pointer;
}

.products-page .filter-btn:hover {
    border-color: rgba(15, 76, 129, 0.45);
    color: var(--primary-color);
    box-shadow: 0 12px 22px rgba(15, 76, 129, 0.15);
}

.products-page .filter-btn.active {
    background: linear-gradient(135deg, #0f4c81, #069e8c);
    color: white;
    border-color: transparent;
    box-shadow: 0 14px 30px rgba(15, 76, 129, 0.25);
}

/* =====================================================
   PRODUCT CARDS
   ===================================================== */

.products-page .products-section {
    padding-bottom: 4rem;
}

.products-page .products-grid {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.products-page .product-card {
    background: white;
    border-radius: 22px;
    padding: 1.8rem;
    border: 1px solid rgba(15, 76, 129, 0.08);
    box-shadow: 0 18px 45px rgba(15, 76, 129, 0.12);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.products-page .product-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 76, 129, 0.08), transparent 65%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.products-page .product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 50px rgba(15, 76, 129, 0.18);
}

.products-page .product-card:hover::after {
    opacity: 1;
}

.products-page .product-card h3,
.products-page .product-card p,
.products-page .product-card .product-price,
.products-page .product-card button {
    position: relative;
    z-index: 1;
}

.products-page .product-image {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0f4c81, #069e8c);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.6rem;
    box-shadow: 0 12px 25px rgba(15, 76, 129, 0.28);
}

.products-page .product-card h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    font-weight: 700;
}

.products-page .product-card p {
    color: var(--text-muted);
    line-height: 1.55;
    font-size: 0.92rem;
}

.products-page .product-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.products-page .product-card .btn-primary {
    margin-top: auto;
    justify-content: center;
    border-radius: 14px;
    gap: 0.6rem;
}

.products-page .product-card .btn-primary i {
    font-size: 1rem;
}

/* =====================================================
   RESPONSIVE ADJUSTMENTS
   ===================================================== */

@media (max-width: 767px) {
    .products-page .search-filter {
        margin-top: -2.5rem;
    }

    .products-page .search-filter .container {
        padding: 1.3rem;
        gap: 1.2rem;
    }

    .products-page .search-container {
        padding: 0.65rem 0.9rem;
    }

    .products-page .search-btn {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .products-page .filter-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        scrollbar-width: thin;
        scrollbar-color: rgba(15, 76, 129, 0.4) transparent;
    }

    .products-page .filter-tabs::-webkit-scrollbar {
        height: 6px;
    }

    .products-page .filter-tabs::-webkit-scrollbar-track {
        background: transparent;
    }

    .products-page .filter-tabs::-webkit-scrollbar-thumb {
        background: rgba(15, 76, 129, 0.25);
        border-radius: 999px;
    }

    .products-page .filter-btn {
        flex: 0 0 auto;
        font-size: 0.9rem;
        padding: 0.55rem 1rem;
    }

    .products-page .products-grid {
        gap: 1.25rem;
    }

    .products-page .product-card {
        padding: 1.4rem;
    }

    .products-page .product-image {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .products-page .search-filter .container {
        padding: 1.6rem;
    }

    .products-page .filter-tabs {
        gap: 0.65rem;
    }

    .products-page .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

@media (min-width: 1024px) {
    .products-page .search-filter .container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .products-page .filter-tabs {
        justify-content: flex-end;
        max-width: 650px;
    }
}

