/* ==========================================================================
   WooCommerce Brand Logo Carousel — carousel.css
   ========================================================================== */

/* Wrapper */
.wbc-carousel-wrapper {
    position: relative;
    padding: 0 44px;
    margin: 2rem 0;
}

/* Swiper container */
.wbc-swiper {
    overflow: hidden;
    padding-bottom: 40px; /* room for pagination dots */
}

/* Each slide */
.wbc-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Brand link */
.wbc-brand-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    padding: 12px 16px;
    border-radius: 10px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    width: 100%;
}

.wbc-brand-link:hover {
    transform: translateY(-4px);
    background: rgba(0, 0, 0, 0.04);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Logo image container */
.wbc-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.wbc-logo-img {
    max-width: 100%;
    height: 100%;
    width: auto;
    max-height: 100%;
    object-fit: contain;
    /* Subtle greyscale that colours on hover */
    filter: grayscale(60%) opacity(0.75);
    transition: filter 0.3s ease;
}

.wbc-brand-link:hover .wbc-logo-img {
    filter: grayscale(0%) opacity(1);
}

/* Placeholder when no logo image exists */
.wbc-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-align: center;
    padding: 8px;
}

/* Brand name (optional) */
.wbc-brand-name {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #374151;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* ---------- Navigation arrows ---------- */
.wbc-btn-prev,
.wbc-btn-next {
    color: #1f2937 !important;
    width: 36px !important;
    height: 36px !important;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    transition: box-shadow 0.2s, transform 0.2s;
    top: calc(50% - 20px) !important; /* align to logo centre, above pagination */
}

.wbc-btn-prev::after,
.wbc-btn-next::after {
    font-size: 14px !important;
    font-weight: 700;
}

.wbc-btn-prev { left: 0 !important; }
.wbc-btn-next { right: 0 !important; }

.wbc-btn-prev:hover,
.wbc-btn-next:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    transform: scale(1.08);
}

/* ---------- Pagination dots ---------- */
.wbc-pagination {
    bottom: 4px !important;
}

.wbc-pagination .swiper-pagination-bullet {
    background: #9ca3af;
    opacity: 1;
    transition: background 0.2s, transform 0.2s;
}

.wbc-pagination .swiper-pagination-bullet-active {
    background: #111827;
    transform: scale(1.3);
}

/* ---------- Error message ---------- */
.wbc-error {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 10px 16px;
    color: #856404;
    font-size: 0.875rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .wbc-carousel-wrapper {
        padding: 0 36px;
    }

    .wbc-btn-prev,
    .wbc-btn-next {
        width: 30px !important;
        height: 30px !important;
    }

    .wbc-btn-prev::after,
    .wbc-btn-next::after {
        font-size: 11px !important;
    }
}

@media (max-width: 480px) {
    .wbc-carousel-wrapper {
        padding: 0 28px;
    }
}
