/* WC Subcategory Carousel — v1.9.0 */

/* ── Botón volver ── */
.wscc-back-wrap {
    margin-bottom: 1.2rem;
}

.wscc-back-link {
    all: unset !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 14px 6px 10px !important;
    border-radius: 999px !important;
    border: 1.5px solid rgba(0,0,0,.14) !important;
    background: #fff !important;
    color: #444 !important;
    font-size: .82rem !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: border-color .2s, background .2s, color .2s !important;
    white-space: nowrap !important;
}

.wscc-back-link:hover {
    border-color: #222 !important;
    background: #222 !important;
    color: #fff !important;
    text-decoration: none !important;
}

.wscc-back-arrow {
    display: inline-flex !important;
    align-items: center !important;
    font-size: .9rem !important;
    line-height: 1 !important;
}

.wscc-back-label {
    line-height: 1 !important;
    text-decoration: none !important;
}

/* ── Header ── */
.wscc-header { margin-bottom: 1.4rem; }
.wscc-title  { margin: 0 0 .6rem; font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.wscc-desc   { font-size: 1rem; line-height: 1.65; color: #444; margin: 0; max-width: 760px; }
.wscc-desc p { margin: 0 0 .6em; }
.wscc-desc p:last-child { margin-bottom: 0; }

/* ── Wrapper ── */
.wscc-wrapper {
    margin: 1.5rem 0;
    overflow: visible !important;
}

/* ── Root ── */
.wscc-root {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 20px;
    overflow: visible !important;
    --wscc-cols: 6;
    --wscc-size: 90px;
    --wscc-gap:  16px;
}

/* Viewport */
.wscc-viewport {
    overflow: hidden;
    width: 100%;
    padding: 8px 0;
    margin: -8px 0;
}

/* Track */
.wscc-track {
    display: flex;
    gap: var(--wscc-gap);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

/* Slide */
.wscc-slide {
    flex: 0 0 calc((100% - var(--wscc-gap) * (var(--wscc-cols) - 1)) / var(--wscc-cols));
    min-width: 0;
}

/* Item */
.wscc-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.wscc-item:hover .wscc-img-wrap {
    transform: scale(1.06);
    
}

/* Imagen circular */
.wscc-img-wrap {
    width: var(--wscc-size);
    height: var(--wscc-size);
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
    transition: transform .25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(0,0,0,.08);
    
}

.wscc-img-wrap img {
    width: 78%;
    height: 78%;
    object-fit: contain;
    display: block;
}

.wscc-placeholder {
    font-size: 2rem;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    line-height: 1;
}

/* Label */
.wscc-label {
    font-size: .82rem;
    text-align: center;
    line-height: 1.25;
    font-weight: 500;
    color: #333;
    max-width: var(--wscc-size);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ── Botones nav ── */
.wscc-btn {
    all: unset !important;
    box-sizing: border-box !important;
    position: absolute !important;
    top: calc(var(--wscc-size) / 2) !important;
    transform: translateY(-50%) !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    border: 1.5px solid rgba(0,0,0,.18) !important;
    background: #fff !important;
    cursor: pointer !important;
    font-size: .95rem !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 2 !important;

    transition: background .2s, border-color .2s !important;
    color: #333 !important;
    user-select: none !important;
}

.wscc-btn:hover {
    background: #222 !important;
    color: #fff !important;
    border-color: #222 !important;
    transform: translateY(-50%) !important;
}

.wscc-btn.wscc-prev { left: -17px !important; }
.wscc-btn.wscc-next { right: -17px !important; }

.wscc-btn[aria-disabled="true"] {
    opacity: .25 !important;
    pointer-events: none !important;
}

/* ── Dots ── */
.wscc-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 2px 0 4px;
    min-height: 14px;
}

.wscc-dot {
    all: unset;
    box-sizing: border-box;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(0,0,0,.18);
    cursor: pointer;
    transition: background .2s, width .2s;
    flex-shrink: 0;
    display: inline-block;
}

.wscc-dot.active {
    background: #333;
    width: 20px;
    border-radius: 4px;
}

/* ── Responsive títulos ── */
@media (max-width: 768px) {
    .wscc-title { font-size: 1.2rem; }
}
@media (max-width: 480px) {
    .wscc-title { font-size: 1.1rem; }
    .wscc-desc  { font-size: .84rem; }
    .wscc-btn   { width: 28px !important; height: 28px !important; font-size: .8rem !important; }
    .wscc-label { font-size: .74rem; }
}
