/* ════════════════════════════════════════════════════════════
   FCM Category Slider — front-end styles
   Matches Figma node 631:112
   ════════════════════════════════════════════════════════════ */

.fcm-cs,
.fcm-cs * {
    box-sizing: border-box;
    font-family: 'Comfortaa', sans-serif;
}

.fcm-cs {
    position: relative;
    display: block;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    z-index: 2;
}

/* ── Viewport & track ────────────────────────────────────── */
.fcm-cs__viewport {
    width: 100%;
}

.fcm-cs__track {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

/* ── Category tile ───────────────────────────────────────── */
.fcm-cs__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    text-decoration: none;
    cursor: pointer;
}

.fcm-cs__circle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 180px;
    aspect-ratio: 179.67 / 184.16;
    background: #F6F5F0;
    border-radius: 100px;
    overflow: hidden;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.fcm-cs__item:hover .fcm-cs__circle {
    background: #EAF3E1;
    box-shadow: 0 10px 24px rgba(35, 35, 35, 0.12);
    transform: translateY(-4px);
}

.fcm-cs__deco {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    height: 140%;
    object-fit: cover;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

/* Hardcoded per-tile rotation so the deco underlay doesn't repeat identically down the row */
.fcm-cs__track > .et_pb_module:nth-child(6n + 1) .fcm-cs__deco { transform: translate(-50%, -50%) rotate(0deg); }
.fcm-cs__track > .et_pb_module:nth-child(6n + 2) .fcm-cs__deco { transform: translate(-50%, -50%) rotate(60deg); }
.fcm-cs__track > .et_pb_module:nth-child(6n + 3) .fcm-cs__deco { transform: translate(-50%, -50%) rotate(120deg); }
.fcm-cs__track > .et_pb_module:nth-child(6n + 4) .fcm-cs__deco { transform: translate(-50%, -50%) rotate(180deg); }
.fcm-cs__track > .et_pb_module:nth-child(6n + 5) .fcm-cs__deco { transform: translate(-50%, -50%) rotate(240deg); }
.fcm-cs__track > .et_pb_module:nth-child(6n + 6) .fcm-cs__deco { transform: translate(-50%, -50%) rotate(300deg); }

.fcm-cs__image {
    position: relative;
    z-index: 1;
    width: 79%;
    height: 79%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

/* Image-optimizer plugins (e.g. EWWW) wrap .fcm-cs__image in a <picture> —
   move the sizing/centering there so the wrapper doesn't collapse to inline content size */
.fcm-cs__circle picture {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 79%;
    height: 79%;
}

.fcm-cs__circle picture .fcm-cs__image {
    position: static;
    z-index: auto;
    width: 100%;
    height: 100%;
}

.fcm-cs__item:hover .fcm-cs__image {
    transform: scale(1.06);
}

.fcm-cs__title {
    font-size: 16px;
    font-weight: 700;
    color: #232323;
    line-height: 1.28;
    text-align: center;
    transition: color 0.15s ease;
}

.fcm-cs__item:hover .fcm-cs__title {
    color: #64ad20;
}

.fcm-cs__subtitle {
    font-size: 15px;
    font-weight: 400;
    color: rgba(35, 35, 35, 0.7);
    line-height: 1.28;
    text-align: center;
}

/* ── Divi overrides ──────────────────────────────────────── */
.et_pb_section .fcm-cs,
.et_pb_row .fcm-cs,
.et_pb_column .fcm-cs,
.et_pb_code_inner .fcm-cs,
.et_pb_module .fcm-cs {
    padding: 0;
    margin: 0 auto;
}

.fcm-cs__track > .et_pb_module > .et_pb_module_inner {
    height: 100%;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 980px) {
    .fcm-cs {
        padding: 0 20px;
    }

    .fcm-cs__track {
        grid-template-columns: repeat(3, 1fr);
    }

    .fcm-cs__title {
        font-size: 15px;
    }

    .fcm-cs__subtitle {
        font-size: 13px;
    }
}

@media (max-width: 640px) {
    .fcm-cs {
        padding: 0 8px;
    }

    .fcm-cs__track {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}
