/* ==========================================================================
   Section: product-effects (Figma 15:296)
   Centered title + 4-per-row grid of square image + label tiles; >4 wrap
   to the next row. Roboto per design (available on PDP, weights 400–700).
   ========================================================================== */

.sec-effects {
    background: #fff;
    font-family: 'Roboto', var(--font-sans);
    color: var(--c-ink);
}

.ef__inner {
    max-width: var(--content-max);
    margin-inline: auto;
    padding: 96px var(--pad-x);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 64px;
}

.ef__head {
    max-width: 768px;
    text-align: center;
}

.ef__title {
    margin: 0;
    font-weight: 700;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.4;
}

.ef__text {
    margin: 16px 0 0;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.5;
}

/* 4 per row; extra tiles wrap to the next row automatically */
.ef__grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 48px;
}

.ef__item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ef__media {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #d9d9d9;
}

/* Section-prefixed so height beats WooCommerce's `.woocommerce img
   { height:auto }` (0,1,1) — otherwise the image won't fill the square. */
.sec-effects .ef__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ef__label {
    margin: 0;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Responsive — 4 → 2 columns
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
    .ef__inner {
        padding-block: 56px;
        gap: 48px;
    }
    .ef__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
    }
    .ef__label {
        font-size: 20px;
    }
}

@media (max-width: 559px) {
    .ef__grid {
        gap: 20px;
    }
}
