/* ================================================================
   MATU SHOP — Categorías + Infinite Scroll
   ================================================================ */

/* ── Sección categorías ─────────────────────────────────────── */
.matu-shop-cats-section {
    margin: 24px 0 32px;
}

.matu-shop-cats-header {
    margin-bottom: 20px;
}

.matu-shop-cats-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    color: var(--zilly-heading-color, #1a1a1a);
    margin: 0;
}

.matu-title-line {
    display: inline-block;
    width: 40px;
    height: 3px;
    background: var(--zilly-primary-color, #c6242f);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ── Lista de categorías (scroll horizontal) ─────────────────── */
.matu-shop-cats-list {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}
.matu-shop-cats-list::-webkit-scrollbar { display: none; }

/* ── Card de categoría ───────────────────────────────────────── */
.matu-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex-shrink: 0;
    min-width: 90px;
    max-width: 110px;
    user-select: none;
    transition: transform 0.18s ease;
}
.matu-cat-item:hover {
    transform: translateY(-3px);
}

/* Círculo ─────────────────────────────────────────────────────── */
.matu-cat-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.matu-cat-circle img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}
.matu-cat-all-icon,
.matu-cat-placeholder {
    font-size: 32px;
}

/* Estado ACTIVO — borde rojo ────────────────────────────────── */
.matu-cat-item.active .matu-cat-circle {
    border-color: var(--zilly-primary-color, #c6242f);
    box-shadow: 0 0 0 1px var(--zilly-primary-color, #c6242f);
}

/* Texto de nombre y conteo ──────────────────────────────────── */
.matu-cat-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--zilly-heading-color, #1a1a1a);
    text-align: center;
    line-height: 1.3;
}
.matu-cat-count {
    font-size: 11px;
    color: #888;
    text-align: center;
}

/* ── Grid de productos ────────────────────────────────────────── */
#matu-shop-products-wrap {
    min-height: 300px;
}

/* ── Spinner de carga ─────────────────────────────────────────── */
.matu-loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 40px 0;
}
.matu-loading-spinner span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--zilly-primary-color, #c6242f);
    animation: matuBounce 0.8s infinite alternate;
}
.matu-loading-spinner span:nth-child(2) { animation-delay: 0.2s; }
.matu-loading-spinner span:nth-child(3) { animation-delay: 0.4s; }

@keyframes matuBounce {
    from { opacity: 0.3; transform: scale(0.8); }
    to   { opacity: 1;   transform: scale(1.2); }
}

/* ── Sentinel invisible para IntersectionObserver ─────────────── */
#matu-scroll-sentinel {
    height: 1px;
    margin-top: -1px;
}
