/* ===== PRODUCTS PAGE ===== */

.products-page {
    padding: 120px 24px;
}

.products-header {
    max-width: 720px;
    margin-bottom: 72px;
}

.products-header h2 {
    margin: 12px 0 18px;
}

.products-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

/* ===== GROUP TITLES ===== */

.product-group {
    margin-bottom: 100px;
}

.group-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.6rem;
    margin-bottom: 40px;
}

/* ===== MASONRY GRID ===== */

.masonry-grid {
    column-count: 3;
    column-gap: 24px;
}

@media (max-width: 1024px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 640px) {
    .masonry-grid {
        column-count: 1;
    }
}

/* ===== PRODUCT TILE ===== */

.product-tile {
    break-inside: avoid;
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    overflow: hidden;
}

/* subtle animated top border */
.product-tile::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--brand);
    transition: width 0.4s ease;
}

.product-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.08);
}

.product-tile:hover::before {
    width: 100%;
}

.product-tile h4 {
    font-size: 1.2rem;
    margin-bottom: 14px;
}

.product-tile p {
    font-size: 0.92rem;
    margin-bottom: 18px;
    color: var(--text-secondary);
}

.product-tile ul {
    margin-bottom: 18px;
    padding-left: 18px;
}

.product-tile ul li {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.product-link {
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease;
}

.product-link:hover {
    gap: 10px;
}

/* ===== SECONDARY GROUP STYLE ===== */

.product-group.secondary .product-tile {
    background: var(--soft-bg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .3s ease;
}

.faq-item.open .faq-a {
    max-height: 200px;
    padding-bottom: 24px;
}

.faq-icon {
    transition: transform .3s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}