/* Categories Block Styles */

.block-preview-notice {
    padding: 20px;
    background: #f0f4f8;
    border-left: 4px solid #007cba;
    margin: 10px 0;
    border-radius: 4px;
}

.block-preview-notice .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #007cba;
    vertical-align: middle;
    margin-right: 8px;
}

.featured-categories {
    padding: 60px 0;
    background: #fff;
}

.featured-categories.is-preview {
    background: #fff;
    padding: 60px 0;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 32px;
    text-align: center;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 220px));
    gap: 16px;
    justify-content: center;
}

/* Category Card — Opción C */
.category-card {
    background: #fafafa;
    border: 1px solid #ebebeb;
    border-left: 3px solid #f13e3d;
    border-radius: 10px;
    color: var(--color-dark, #1a1a1a);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-left-color 0.2s ease;
}

.category-card:hover {
    border-left-color: #c42b2a;
    box-shadow: 0 6px 18px rgba(241, 62, 61, 0.12);
    color: var(--color-dark, #1a1a1a);
    transform: translateY(-2px);
}

/* Media / image area */
.category-card__media {
    align-items: center;
    aspect-ratio: 4 / 3;
    background: #fff;
    border-bottom: 1px solid #ebebeb;
    display: flex;
    justify-content: center;
    overflow: hidden;
    padding: 16px;
    width: 100%;
}

.category-card__image {
    height: 100%;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    width: 100%;
}

.category-card__svg {
    color: #ccc;
    height: 100%;
    width: 100%;
}

/* Bottom info row */
.category-card__inner {
    align-items: flex-start;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: space-between;
    padding: 10px 12px;
}

.category-card__name {
    color: #1a1a1a;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    min-width: 0;
}

/* Chip con cantidad */
.category-card__chip {
    background: #f13e3d;
    border-radius: 20px;
    color: #fff;
    display: inline-block;
    flex-shrink: 0;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1;
    margin-top: 2px;
    padding: 3px 8px;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(3, minmax(140px, 180px));
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
}
