/* COCÓ SHOES – Slider de Categorías · cats.css */
.csc-wrap *, .csc-wrap *::before, .csc-wrap *::after { box-sizing: border-box; margin: 0; padding: 0; }

.csc-wrap {
    position: relative;
    width: 100%;
    font-family: inherit;
}

.csc-outer {
    overflow: hidden;
    width: 100%;
}

.csc-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    transition: transform .45s cubic-bezier(.25,.46,.45,.94);
    will-change: transform;
    align-items: flex-start;
}

/* ── Item ── */
.csc-item {
    flex-shrink: 0;
    /* width se setea por JS */
}

/* ── Link ── */
.csc-link {
    display: block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    background: #f0ede8;
}

/* ── Imagen: siempre cuadrada, siempre cubre ── */
.csc-link img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center top;
    transition: transform .5s ease;
}

.csc-item:hover .csc-link img {
    transform: scale(1.05);
}

/* ── Overlay oscuro al hover ── */
.csc-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background .35s ease;
    pointer-events: none;
}
.csc-item:hover .csc-link::after {
    background: rgba(0,0,0,.12);
}

/* ── Placeholder sin imagen ── */
.csc-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #e8e5e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .6rem;
    color: #aaa;
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* ── Label debajo ── */
.csc-label {
    display: block;
    margin-top: 6px;
    font-size: .6rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #1a1814;
    text-decoration: none;
    text-align: center;
    font-weight: 400;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.csc-label:hover { opacity: .6; }

/* ── Label sobre imagen ── */
.csc-label--over {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    margin: 0;
    padding: 18px 6px 7px;
    background: linear-gradient(transparent, rgba(0,0,0,.5));
    color: #fff;
    text-align: center;
    font-size: .55rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    pointer-events: none;
}

/* ── Flechas ── */
.csc-prev,
.csc-next {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255,255,255,.92);
    border: none;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: .75rem;
    color: #1a1814;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, opacity .2s;
    border-radius: 0;
    padding: 0;
    box-shadow: 0 1px 6px rgba(0,0,0,.1);
}
.csc-prev { left: -4px; }
.csc-next { right: -4px; }
.csc-prev:hover, .csc-next:hover { background: #fff; }
.csc-prev.csc-hidden, .csc-next.csc-hidden { opacity: 0; pointer-events: none; }

/* ── Dots ── */
.csc-dots {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-top: 10px;
    min-height: 4px;
}
.csc-dot {
    width: 14px;
    height: 1px;
    background: #d0cdc8;
    border: none;
    cursor: pointer;
    transition: background .3s, width .3s;
    padding: 0;
    display: block;
}
.csc-dot.csc-active { background: #1a1814; width: 24px; }
