.ozs--wc-categories {
    --ozs-cat-surface: transparent;
    --ozs-cat-border: #dce1e7;          /* borde suave, como las cards de producto */
    --ozs-cat-title: #16202c;           /* texto principal grafito */
    --ozs-cat-green: #15743a;           /* verde de marca */
    --ozs-cat-active-bg: #15743a;
    --ozs-cat-active-accent: #ff9800;   /* naranja de marca */
    --ozs-cat-card-bg: #ffffff;
    --ozs-cat-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
    background: var(--ozs-cat-surface);
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    overflow: visible;
    font-family: var(--OZ-Font-Base, inherit);
}

.ozs--wc-categories .ozs__header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 0 20px;
    margin-bottom: 24px;
    gap: 12px;
    flex-wrap: nowrap;
}

.ozs--wc-categories .ozs__header-text {
    position: relative;
    padding-left: 20px;
    flex: 1 1 auto;
    min-width: 0;
}

.ozs--wc-categories .ozs__header-text::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 0;
    width: 6px;
    height: calc(100% - 8px);
    background: var(--ozs-cat-active-accent);
    box-shadow: 6px 0 0 var(--ozs-cat-green);
    border-radius: 0;
}

.ozs--wc-categories .ozs__title {
    margin: 0;
    font-family: var(--OZ-Font-Headings, inherit);
    font-size: clamp(1.6rem, 1.8vw, 2.2rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--ozs-cat-green);
    letter-spacing: -0.01em;
}

.ozs--wc-categories .ozs__title::after {
    display: none;
}

.ozs--wc-categories .ozs__subtitle {
    margin: 4px 0 0;
    font-size: 1.05rem;
    line-height: 1.25;
    color: #202020;
}

.ozs--wc-categories .ozs__viewport {
    overflow: hidden;
}

.ozs--wc-categories .ozs__track {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: minmax(0, 1fr);   /* una sola fila */
    grid-auto-columns: calc((100% - (var(--ozs-gap, 18px) * (var(--ozs-cols, 6) - 1))) / var(--ozs-cols, 6));
    gap: var(--ozs-gap, 18px);
    align-items: stretch;
    padding: 0;
}

.ozs--wc-categories .ozs__slide {
    min-width: 0;
    scroll-snap-align: start;
}

.ozs--wc-categories .ozs__dots {
    display: none !important;
}

.ozs--wc-categories .ozs-wc-cat {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: var(--ozs-cat-card-bg);
    border: 1px solid var(--ozs-cat-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--ozs-cat-title);
    box-sizing: border-box;
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.ozs--wc-categories .ozs-wc-cat:hover,
.ozs--wc-categories .ozs-wc-cat:focus-visible,
.ozs--wc-categories .ozs-wc-cat.is-current {
    border-color: var(--ozs-cat-active-bg);
    transform: translateY(-3px);
    box-shadow: var(--ozs-cat-shadow);
    outline: none;
}

/* Imagen grande que llena la parte superior del card */
.ozs--wc-categories .ozs-wc-cat__icon-wrap {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    background: #f4f6f8;
}

.ozs--wc-categories .ozs-wc-cat__icon {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
}

.ozs--wc-categories .ozs-wc-cat__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.ozs--wc-categories .ozs-wc-cat:hover .ozs-wc-cat__img,
.ozs--wc-categories .ozs-wc-cat:focus-visible .ozs-wc-cat__img,
.ozs--wc-categories .ozs-wc-cat.is-current .ozs-wc-cat__img {
    transform: scale(1.05);
}

/* Categoría sin imagen: bloque con la inicial, del mismo tamaño que la imagen */
.ozs--wc-categories .ozs-wc-cat__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 0;
    background: linear-gradient(135deg, var(--ozs-cat-title) 0%, var(--ozs-cat-active-bg) 100%);
    color: #ffffff;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
}

/* Nombre visible, debajo de la imagen */
.ozs--wc-categories .ozs-wc-cat__name {
    display: -webkit-box;
    max-width: 100%;
    margin: 0;
    padding: 12px 12px 14px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.005em;
    text-align: center;
    text-wrap: balance;
    color: var(--ozs-cat-title);
    transition: color 220ms ease;
}

.ozs--wc-categories .ozs-wc-cat:hover .ozs-wc-cat__name,
.ozs--wc-categories .ozs-wc-cat:focus-visible .ozs-wc-cat__name,
.ozs--wc-categories .ozs-wc-cat.is-current .ozs-wc-cat__name {
    color: var(--ozs-cat-green);
}

.ozs--wc-categories .ozs-wc-cat__count {
    margin-top: 6px;
    font-size: 0.86rem;
    line-height: 1;
    color: inherit;
    opacity: 0.78;
}

@media (max-width: 1024px) {
    .ozs--wc-categories {
        padding: 0;
        margin: 0;
    }

    .ozs--wc-categories .ozs__header {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .ozs--wc-categories {
        padding: 0;
        margin: 0;
    }

    .ozs--wc-categories .ozs__header {
        align-items: center;
        gap: 12px;
        margin-bottom: 18px;
    }

    .ozs--wc-categories .ozs__header-text {
        padding-left: 16px;
    }

    .ozs--wc-categories .ozs__header-text::before {
        width: 5px;
        height: calc(100% - 6px);
        box-shadow: 5px 0 0 var(--ozs-cat-title);
    }

    .ozs--wc-categories .ozs__title {
        font-size: clamp(1.4rem, 4.5vw, 1.8rem);
    }

    .ozs--wc-categories .ozs__subtitle {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
        margin-top: 2px;
    }

    .ozs--wc-categories .ozs-wc-cat__placeholder {
        font-size: 1.9rem;
    }

    .ozs--wc-categories .ozs-wc-cat__name {
        padding: 10px 8px 12px;
        font-size: clamp(0.85rem, 3vw, 0.94rem);
    }
}

@media (max-width: 414px) {
    .ozs--wc-categories .ozs-wc-cat__name {
        font-size: clamp(0.8rem, 3.5vw, 0.88rem);
    }
}

@media (max-width: 375px) {
    .ozs--wc-categories .ozs__title {
        font-size: clamp(1.2rem, 5.5vw, 1.4rem);
    }
}

@media (max-width: 320px) {
    .ozs--wc-categories .ozs__title {
        font-size: 1.2rem;
    }
    .ozs--wc-categories .ozs__subtitle {
        font-size: 0.8rem;
    }
    .ozs--wc-categories .ozs-wc-cat__name {
        font-size: 0.78rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ozs--has-header:not(.ozs--banner) .ozs__nav-btn,
    .ozs--wc-categories .ozs-wc-cat,
    .ozs--wc-categories .ozs-wc-cat__img {
        transition: none;
    }
}
