/* jusa-kids-ages — Frontend styles
 * Badge PDP + filtro shop + shortcode [jka_edades]
 * ─────────────────────────────────────────────────────────────────────────── */

/* ── PDP age chip ────────────────────────────────────────────────────────── */

/*
 * Extends the theme's .jk-info__chip system.
 * The chip itself inherits all base styles from .jk-info__chip (defined in
 * jusa-kids.css). We only add the yellow accent + link reset here.
 */
.jk-info__chip--age {
    background: var(--jk-yellow, #FFD25C);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.jk-info__chip--age:hover {
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--jk-ink, #2D1B0F);
}

/* ── Shop age filter bar ─────────────────────────────────────────────────── */

.jka-age-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px 0 4px;
    margin-bottom: 8px;
}

.jka-age-filter__pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--jk-body, 'Quicksand', sans-serif);
    background: var(--jk-cream, #FFFCF5);
    color: var(--jk-ink, #2D1B0F);
    text-decoration: none;
    border: 2px solid transparent;
    box-shadow: 0 2px 0 rgba(45, 27, 15, 0.10);
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}

.jka-age-filter__pill:hover {
    background: var(--jk-yellow, #FFD25C);
    text-decoration: none;
    color: var(--jk-ink, #2D1B0F);
    transform: translateY(-2px);
    box-shadow: 0 4px 0 rgba(45, 27, 15, 0.12);
}

.jka-age-filter__pill.is-active {
    background: var(--jk-yellow, #FFD25C);
    box-shadow: 0 3px 0 rgba(45, 27, 15, 0.20);
    border-color: rgba(45, 27, 15, 0.15);
    color: var(--jk-ink, #2D1B0F);
}

/* ── Shortcode [jka_edades] ──────────────────────────────────────────────── */

/*
 * The shortcode reuses .jk-cats, .jk-cat, .jk-cats__grid, .jk-cat__media,
 * .jk-cat__name, .jk-cat__count from the theme. Only add emoji sizing here.
 */

.jka-age-emoji {
    font-size: 56px;
    line-height: 1;
    display: block;
    text-align: center;
    filter: drop-shadow(0 2px 4px rgba(45, 27, 15, 0.15));
    pointer-events: none;
    user-select: none;
}

/* Slightly tighter grid on the shortcode when embedded mid-page */
.jka-edades-section .jk-cats__grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

@media (min-width: 900px) {
    .jka-edades-section .jk-cats__grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

@media (max-width: 600px) {
    .jka-edades-section .jk-cats__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .jka-age-emoji {
        font-size: 36px;
    }

    .jka-age-filter {
        gap: 6px;
        padding: 8px 0 2px;
    }

    .jka-age-filter__pill {
        font-size: 12px;
        padding: 5px 12px;
    }
}
