.bc-carousel {
    font-family: inherit;
    color: var(--bc-text, #1a1a1a);
    margin: 0;
}

.bc-carousel h2 {
    margin: 0;
    padding: 0;
    line-height: 1.2;
    font-family: inherit;
}

/* ===== Header ===== */
.bc-carousel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.bc-carousel__title {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: var(--bc-text, #1a1a1a) !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

.bc-carousel__header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bc-carousel__view-all {
    color: var(--bc-text, #1a1a1a);
    text-decoration: underline !important;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.15s ease;
}

.bc-carousel__view-all:hover {
    color: var(--bc-teal-dark, #0f8d83);
}

/* ===== Nav buttons ===== */
.bc-carousel__nav {
    display: inline-flex;
    gap: 0.5rem;
}

.bc-carousel__btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fff !important;
    border: 1px solid var(--bc-border, #ececec) !important;
    border-radius: 50% !important;
    color: var(--bc-text, #1a1a1a) !important;
    cursor: pointer;
    padding: 0 !important;
    transition: all 0.15s ease;
    box-shadow: none !important;
    line-height: 1 !important;
}

.bc-carousel__btn:hover:not(:disabled) {
    background: var(--bc-teal-light, #e6f7f5) !important;
    border-color: var(--bc-teal, #1ab5a8) !important;
    color: var(--bc-teal-dark, #0f8d83) !important;
}

.bc-carousel__btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ===== Viewport + track ===== */
.bc-carousel__viewport {
    overflow: hidden;
    margin: 0 -0.5rem;
}

.bc-carousel__track {
    display: flex;
    gap: 1rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 0.5rem;
    will-change: transform;
}

.bc-carousel__slide {
    flex: 0 0 calc((100% - 2rem) / 3);
    /* 3 per view minus the 2 gaps */
    min-width: 0;
}

/* Make sure product cards inside the carousel keep their full styling */
.bc-carousel__slide .bc-product {
    width: 100%;
    height: 100%;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .bc-carousel__slide {
        flex: 0 0 calc((100% - 1rem) / 2);
        /* 2 per view */
    }

    .bc-carousel__title {
        font-size: 1.25rem !important;
    }
}

@media (max-width: 600px) {
    .bc-carousel__slide {
        flex: 0 0 calc((100% - 0.5rem) / 2);
        /* still 2 per view, smaller gap */
    }

    .bc-carousel__track {
        gap: 0.5rem;
    }

    .bc-carousel__viewport {
        margin: 0 -0.25rem;
    }

    .bc-carousel__track {
        padding: 0 0.25rem;
    }

    .bc-carousel__btn {
        width: 36px;
        height: 36px;
    }

    .bc-carousel__view-all {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .bc-carousel__slide {
        flex: 0 0 calc(100% - 0.5rem);
        /* 1 per view on small phones */
    }
}