/* ============================================================
   Products page — prod-*
   ============================================================ */

/* ===== Hero ===== */
.prod-hero {
    position: relative;
    margin-top: -72px;
    padding-top: 72px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f1d45 0%, #1a2a5e 40%, #243674 100%);
}
.prod-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 75% 15%, rgba(100,140,255,0.12) 0%, transparent 55%),
        radial-gradient(ellipse at 25% 85%, rgba(60,100,200,0.08) 0%, transparent 50%);
    pointer-events: none;
}
.prod-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 40px 56px;
}
.prod-hero h1 {
    color: #fff;
    font-size: 2.4rem;
    font-weight: 400;
    margin: 0 0 14px;
    letter-spacing: -0.5px;
}
.prod-hero-subtitle {
    color: rgba(255,255,255,0.78);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 680px;
    margin: 0;
}

/* ===== Container ===== */
.prod-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 64px;
}

/* ===== Filter chips ===== */
.prod-chips {
    position: sticky;
    top: 72px;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 18px 0;
    margin-bottom: 8px;
}
/* full-width white background behind the sticky chips bar */
.prod-chips::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: #fff;
    box-shadow: 0 6px 14px rgba(36, 54, 116, 0.05);
    z-index: -1;
}
.prod-chip {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #243674;
    background: #eef2fb;
    border: 1px solid transparent;
    border-radius: 20px;
    padding: 9px 20px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.prod-chip:hover {
    background: #e0e8f7;
}
.prod-chip.active {
    background: #243674;
    color: #fff;
    box-shadow: 0 4px 14px rgba(36,54,116,0.25);
}

/* ===== Groups ===== */
.prod-group {
    margin: 32px 0;
    scroll-margin-top: 140px;
}
.prod-group-title {
    font-size: 1.6rem;
    font-weight: 400;
    color: #243674;
    margin: 0 0 24px;
    padding-bottom: 12px;
    position: relative;
}
.prod-group-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 48px; height: 3px;
    background: linear-gradient(90deg, #243674, #4a6cb3);
    border-radius: 2px;
}

/* ===== Grid ===== */
.prod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 28px;
}

/* ===== Card (variant A) ===== */
.prod-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 16px;
    padding: 18px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(36,54,116,0.07);
    transition: transform 0.2s, box-shadow 0.2s;
}
.prod-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(36,54,116,0.16);
}
.prod-card-media {
    height: 160px;
    background: #f7f9fd;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.prod-card-media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.prod-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #243674;
    margin: 14px 0 6px;
}
.prod-card-desc {
    font-size: 0.9rem;
    color: #7a7a7a;
    line-height: 1.45;
    flex: 1;
}
.prod-card-link {
    margin-top: 14px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #243674;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
    .prod-hero-inner { padding: 48px 20px 40px; }
    .prod-hero h1 { font-size: 1.85rem; }
    .prod-container { padding: 0 16px 48px; }
    .prod-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
    .prod-card-media { height: 120px; }
    .prod-chips { position: relative; top: auto; }
}
