/* ── Products Page ── */

.page-hero {
    padding: 100px 5% 80px;
    text-align: center;
    background: linear-gradient(135deg, #f8f5ff 0%, #ede7f6 60%, #f3e8ff 100%);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(147, 51, 234, 0.08), transparent 60%);
}

.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    background: var(--surface);
    padding: 15px 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface2);
    border: 1.5px solid var(--border);
    border-radius: 50px;
    padding: 10px 20px;
    flex: 1;
    min-width: 240px;
    transition: var(--transition);
}

.search-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(107, 33, 168, 0.08);
}

.search-wrap input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 0.94rem;
    color: var(--text);
    background: transparent;
    font-family: 'Inter', sans-serif;
}

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

.filter-btn {
    padding: 8px 18px;
    border-radius: 50px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

.product-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(107, 33, 168, 0.22);
}

.pc-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.pc-cat {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pc-rx {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 50px;
    letter-spacing: 1px;
    backdrop-filter: blur(4px);
}

.pc-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}

.product-comp {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.5;
}

.product-therapy {
    display: inline-table;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--surface2);
    color: var(--primary-dark);
    margin-bottom: 12px;
    align-self: flex-start;
}

.pc-desc {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: auto;
}

.antibiotic {
    background: rgba(37, 99, 235, 0.10);
    color: #2563eb;
}

.urology {
    background: rgba(107, 33, 168, 0.10);
    color: #6b21a8;
}

.nutrition {
    background: rgba(22, 163, 74, 0.10);
    color: #16a34a;
}

.gi {
    background: rgba(217, 119, 6, 0.10);
    color: #d97706;
}

.prod-desc {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* CTA Prod */
.cta-prod {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 70px 5%;
    color: #fff;
}

.cta-prod h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 14px;
}

.cta-prod p {
    font-size: 1rem;
    opacity: 0.85;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        min-width: 100%;
    }
}