/* ============================================
   Woo Product Carousels — carousel.css
   ============================================ */

.wpc-wrapper {
    --wpc-gap: 16px;
    --wpc-arrow-size: 38px;
    --wpc-accent: #2563eb;
    --wpc-radius: 10px;
    --wpc-shadow: 0 2px 12px rgba(0,0,0,.08);
    --wpc-badge-bg: #ef4444;
    --wpc-badge-color: #fff;
    position: relative;
    margin: 2rem 0;
    font-family: inherit;
}

/* Title */
.wpc-title {
    margin: 0 0 1.2rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: inherit;
}

/* Outer row: arrows + track */
.wpc-outer {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Scrollable track container */
.wpc-track-wrap {
    overflow: hidden;
    width: 100%;
}

.wpc-track {
    display: flex;
    gap: var(--wpc-gap);
    transition: transform 0.35s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

/* Individual slide — width set by JS */
.wpc-slide {
    flex: 0 0 auto;
    box-sizing: border-box;
}

/* Card */
.wpc-card {
    position: relative;
    background: #fff;
    border-radius: var(--wpc-radius);
    box-shadow: var(--wpc-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow .2s, transform .2s;
}

.wpc-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.14);
    transform: translateY(-3px);
}

/* Sale badge */
.wpc-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: var(--wpc-badge-bg);
    color: var(--wpc-badge-color);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 3px 9px;
    border-radius: 4px;
    pointer-events: none;
}

/* Product image */
.wpc-img-link {
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #f3f4f6;
}

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

.wpc-card:hover .wpc-img {
    transform: scale(1.04);
}

/* Info section */
.wpc-info {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.wpc-name {
    font-size: .9rem;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}

.wpc-name:hover {
    color: var(--wpc-accent);
}

.wpc-price {
    font-size: .9rem;
    color: #111;
    margin-top: 2px;
}

.wpc-price del {
    color: #9ca3af;
    margin-right: 4px;
}

.wpc-price ins {
    text-decoration: none;
    color: var(--wpc-badge-bg);
    font-weight: 700;
}

/* Add to cart button */
.wpc-atc.button {
    display: inline-block;
    margin-top: auto;
    padding: 7px 14px;
    background: var(--wpc-accent);
    color: #fff !important;
    border: none;
    border-radius: 6px;
    font-size: .82rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, opacity .2s;
    line-height: 1.4;
}

.wpc-atc.button:hover {
    background: #1d4ed8;
    opacity: 1;
}

.wpc-atc.button.loading {
    opacity: .65;
    cursor: wait;
}

.wpc-atc.button.added {
    background: #16a34a;
}

/* Arrows */
.wpc-arrow {
    flex-shrink: 0;
    width: var(--wpc-arrow-size);
    height: var(--wpc-arrow-size);
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    background: #fff;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
    padding: 0;
}

.wpc-arrow:hover:not(:disabled) {
    background: var(--wpc-accent);
    border-color: var(--wpc-accent);
    color: #fff;
    box-shadow: 0 3px 10px rgba(37,99,235,.25);
}

.wpc-arrow:disabled {
    opacity: .3;
    cursor: default;
}

/* Dots */
.wpc-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.wpc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

.wpc-dot.is-active {
    background: var(--wpc-accent);
    transform: scale(1.3);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .wpc-wrapper[data-columns="4"] .wpc-slide { width: calc((100% - 2 * var(--wpc-gap)) / 3) !important; }
}

@media (max-width: 768px) {
    .wpc-wrapper .wpc-slide { width: calc((100% - var(--wpc-gap)) / 2) !important; }

    .wpc-arrow {
        width: 30px;
        height: 30px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .wpc-wrapper .wpc-slide { width: 100% !important; }
}
