/* ==========================================================
   WooCommerce Category Carousel — carousel.css
   ========================================================== */

/* ---------- Wrapper ---------- */
.wcc-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: visible;
    padding: 0 44px;
    box-sizing: border-box;
    font-family: inherit;
}

/* ---------- Viewport ---------- */
.wcc-viewport {
    overflow: hidden;
    width: 100%;
    border-radius: calc(var(--wcc-radius) + 4px);
}

/* ---------- Track ---------- */
.wcc-track {
    display: flex;
    gap: var(--wcc-gap, 24px);
    transition: transform 0.55s cubic-bezier(0.33, 1, 0.68, 1);
    will-change: transform;
    align-items: stretch;
}

/* ---------- Slide ---------- */
.wcc-slide {
    flex: 0 0 calc(
        (100% - var(--wcc-gap, 24px) * (var(--wcc-cols, 4) - 1))
        / var(--wcc-cols, 4)
    );
    min-width: 0;
}

/* ---------- Card ---------- */
.wcc-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: var(--wcc-radius, 16px);
    overflow: hidden;
    background: var(--wcc-card-bg, #ffffff);
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    height: 100%;
}

.wcc-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0,0,0,.18);
    text-decoration: none;
}

/* ---------- Image Wrap ---------- */
.wcc-img-wrap {
    position: relative;
    width: 100%;
/*     height: var(--wcc-img-height, 220px); */
	height: 340px;
    overflow: hidden;
    flex-shrink: 0;
}

.wcc-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.wcc-card:hover .wcc-img-wrap img {
    transform: scale(1.08);
}

/* ---------- Overlay ---------- */
.wcc-overlay {
    position: absolute;
    inset: 0;
    background: var(--wcc-overlay, rgba(26,26,46,.5));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.wcc-card:hover .wcc-overlay {
    opacity: 1;
}

/* ---------- Body ---------- */
.wcc-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 18px 20px 20px;
    flex: 1;
}

/* ---------- Title ---------- */
.wcc-title {
    margin: 0;
    font-size: var(--wcc-title-size, 16px);
    color: var(--wcc-title-color, #1a1a2e);
    font-weight: 700;
    line-height: 1.3;
    word-break: break-word;
}

/* ---------- Count ---------- */
.wcc-count {
    font-size: var(--wcc-count-size, 13px);
    color: var(--wcc-count-color, #6b7280);
    font-weight: 400;
}

/* ---------- Button ---------- */
.wcc-btn {
    display: inline-block;
    margin-top: auto;
    padding: 8px 18px;
    background: var(--wcc-btn-bg, #e63946);
    color: var(--wcc-btn-color, #ffffff);
    font-size: var(--wcc-btn-size, 13px);
    font-weight: 600;
    border-radius: calc(var(--wcc-radius, 16px) * 0.5);
    text-decoration: none;
    transition: background 0.25s ease, transform 0.2s ease;
    letter-spacing: 0.02em;
}

.wcc-card:hover .wcc-btn {
    background: var(--wcc-btn-hover-bg, #c62a35);
    transform: translateX(4px);
}

/* ---------- Arrows ---------- */
.wcc-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--wcc-arrow-color, #1a1a2e);
    background: #ffffff;
    color: var(--wcc-arrow-color, #1a1a2e);
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    line-height: 1;
    transition: background 0.25s, color 0.25s, transform 0.25s;
    box-shadow: 0 2px 12px rgba(0,0,0,.15);
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}

/* Force SVG to always be visible and correctly sized */
.wcc-arrow svg {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0;
    overflow: visible;
    /* stroke inherits from parent color */
/*     stroke: var(--wcc-arrow-color, #1a1a2e); */
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.25s;
}

.wcc-arrow:hover {
    background: var(--wcc-arrow-color, #1a1a2e);
    transform: translateY(-50%) scale(1.1);
}

.wcc-arrow:hover svg {
    stroke: #ffffff;
}

.wcc-prev { left: 0; }
.wcc-next { right: 0; }

.wcc-arrow.is-hidden {
    opacity: 0 !important;
    pointer-events: none;
    visibility: hidden;
}

/* ---------- Dots ---------- */
.wcc-dots {
    display: flex !important;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    padding: 0;
}

.wcc-dot {
    display: inline-block !important;
    width: 10px !important;
    height: 10px !important;
    min-width: 10px;
    border-radius: 50% !important;
    background: rgba(0,0,0,.25) !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    vertical-align: middle;
    transition: background 0.25s, width 0.3s, border-radius 0.3s;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    box-sizing: content-box;
}

.wcc-dot.is-active {
    background: var(--wcc-dot-color, #e63946) !important;
    width: 26px !important;
    border-radius: 5px !important;
}

/* ---------- Responsive Overrides ---------- */
/* Tablet */
@media (max-width: 900px) {
    .wcc-slide {
        flex-basis: calc(
            (100% - var(--wcc-gap, 24px) * (var(--wcc-cols-tablet, 2) - 1))
            / var(--wcc-cols-tablet, 2)
        );
    }
}

/* Mobile */
@media (max-width: 600px) {
    .wcc-carousel-wrapper {
        padding: 0 36px;
    }
    .wcc-arrow {
        width: 34px !important;
        height: 34px !important;
    }
    .wcc-arrow svg {
        width: 16px !important;
        height: 16px !important;
    }
    .wcc-slide {
        flex-basis: calc(
            (100% - var(--wcc-gap, 24px) * (var(--wcc-cols-mobile, 1) - 1))
            / var(--wcc-cols-mobile, 1)
        );
    }
    .wcc-body {
        padding: 14px 16px 16px;
    }
}

/* ---------- Accessibility ---------- */
.wcc-arrow:focus-visible,
.wcc-dot:focus-visible {
    outline: 2px solid var(--wcc-dot-color, #e63946);
    outline-offset: 2px;
}

/* ---------- Drag cursor during drag ---------- */
.wcc-viewport.is-dragging {
    cursor: grabbing;
}
.wcc-viewport {
    cursor: grab;
}

/* ---------- No-image placeholder ---------- */
.wcc-img-wrap img[src=""] {
    background: #f0f0f0;
}
