/* beDura_product_carousel — Owl Carousel 2 (touch + drag; theme initCarouselSlider) */

.beDura_product_carousel {
    padding: 2rem 0 2.5rem;
    background: var(--bedura-page-bg, #fffbf3);
}

.beDura_product_carousel__container {
    max-width: 1320px;
}

/* Owl wrapper */
.beDura_product_carousel__owl.owl-carousel {
    position: relative;
}

.beDura_product_carousel__owl .owl-stage-outer {
    overflow: hidden;
    margin-left: 0;
    margin-right: 0;
}

/*
 * Mobile ≤767px: footer script strips Owl classes → native horizontal strip (immune to integration.css owl hacks).
 */
.beDura_product_carousel__native_strip {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: max(0.85rem, env(safe-area-inset-left, 0px));
    padding-bottom: 10px;
    box-sizing: border-box;
}

.beDura_product_carousel__native_strip > .beDura_product_card {
    flex: 0 0 min(292px, calc(100vw - 2.35rem));
    max-width: min(292px, calc(100vw - 2.35rem));
    scroll-snap-align: start;
    min-width: 0;
}

/* Owl sets slide widths via inline style on `.owl-item`; never use width:auto!important here — it beats Owl and only ~2 cards fit on desktop. */

.beDura_product_carousel__owl .owl-item .beDura_product_card {
    box-sizing: border-box;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* Nav — match beDura cream controls ([Owl Carousel 2](https://owlcarousel2.github.io/OwlCarousel2/)) */
.beDura_product_carousel__owl .owl-nav {
    margin-top: 0;
}

.beDura_product_carousel__owl .owl-nav button.owl-prev,
.beDura_product_carousel__owl .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0 !important;
    border-radius: 50%;
    border: 1px solid rgba(74, 74, 74, 0.12) !important;
    background: rgba(255, 251, 243, 0.96) !important;
    color: #4a4a4a !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    transition:
        color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.beDura_product_carousel__owl .owl-nav button.owl-prev:hover,
.beDura_product_carousel__owl .owl-nav button.owl-next:hover {
    color: #96745e !important;
    background: #fff !important;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
}

.beDura_product_carousel__owl .owl-nav button.owl-prev.disabled,
.beDura_product_carousel__owl .owl-nav button.owl-next.disabled {
    opacity: 0.28 !important;
    cursor: default !important;
    pointer-events: none;
}

.beDura_product_carousel__owl .owl-nav button.owl-prev {
    left: max(0px, env(safe-area-inset-left, 0px));
}

.beDura_product_carousel__owl .owl-nav button.owl-next {
    right: max(0px, env(safe-area-inset-right, 0px));
}

.beDura_product_carousel__owl .owl-nav button.owl-prev .feather,
.beDura_product_carousel__owl .owl-nav button.owl-next .feather {
    font-size: 1.125rem;
}

.beDura_product_carousel__owl .owl-nav button.owl-prev span,
.beDura_product_carousel__owl .owl-nav button.owl-next span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 575.98px) {
    .beDura_product_carousel__owl .owl-nav button.owl-prev,
    .beDura_product_carousel__owl .owl-nav button.owl-next {
        width: 36px;
        height: 36px;
    }

    .beDura_product_carousel__owl .owl-nav button.owl-prev .feather,
    .beDura_product_carousel__owl .owl-nav button.owl-next .feather {
        font-size: 1rem;
    }
}

.beDura_product_carousel__owl.owl-carousel .owl-dots {
    margin-top: 1rem;
}

/* Skeleton placeholder strip (no Owl) */
.beDura_product_carousel__skeleton_track {
    display: flex;
    gap: 14px;
    overflow: hidden;
    padding-bottom: 6px;
}

.beDura_product_carousel--skeleton .beDura_product_card {
    flex: 0 0 calc((100% - 42px) / 3);
    min-width: 200px;
    max-width: 320px;
}

@media (max-width: 991.98px) {
    .beDura_product_carousel--skeleton .beDura_product_card {
        flex: 0 0 calc((100% - 14px) / 2);
    }
}

@media (max-width: 575.98px) {
    .beDura_product_carousel--skeleton .beDura_product_card {
        flex: 0 0 85%;
    }
}

.beDura_product_card__inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(74, 74, 74, 0.08);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.25s ease;
}

.beDura_product_card__inner:hover {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
}

.beDura_product_card__visual {
    position: relative;
    background: #fffbf3;
    flex: 1;
    min-height: 0;
}

.beDura_product_card__img_link {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    padding: 1.35rem 1.25rem 1rem;
}

.beDura_product_card__img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.beDura_product_card__wishlist {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 251, 243, 0.92);
    color: #4a4a4a !important;
    text-decoration: none !important;
    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.beDura_product_card__wishlist:hover {
    color: #96745e !important;
}

.beDura_product_card__wishlist .feather {
    font-size: 1rem;
}

.beDura_product_card__panel {
    flex-shrink: 0;
    padding: 1rem 1rem 1.1rem;
    background: #efe8df;
    border-top: 1px solid rgba(74, 74, 74, 0.06);
}

.beDura_product_card__title {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.35;
    color: #4a4a4a !important;
    text-decoration: none !important;
    margin: 0 0 0.65rem;
    min-height: 2.6em;
}

.beDura_product_card__title:hover {
    color: #96745e !important;
}

.beDura_product_card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.beDura_product_card__buy {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    min-width: 0;
}

.beDura_product_card__price_group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    line-height: 1.2;
}

.beDura_product_card__cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: transparent;
    color: #4a4a4a !important;
    text-decoration: none !important;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.beDura_product_card__cart:hover {
    color: #96745e !important;
    transform: scale(1.06);
}

.beDura_product_card__cart .feather {
    font-size: 1rem;
}

.beDura_product_card__price {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #4a4a4a;
    letter-spacing: 0.01em;
}

.beDura_product_card__price_old {
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(74, 74, 74, 0.45);
    text-decoration: line-through;
}

.beDura_product_card__swatches {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.beDura_product_card__swatch span {
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 0 1px rgba(74, 74, 74, 0.12);
}

.beDura_product_card__swatch.is-selected span {
    box-shadow: 0 0 0 2px #4a4a4a;
}

.beDura_product_carousel--skeleton .beDura_product_card__inner {
    pointer-events: none;
}

/*
 * Desktop / tablet (≥768px): force one horizontal Owl track. Integration CSS often loads later with
 * `.owl-stage { width: 100% !important }` + flex quirks → wrapped “grid”. Flex row + max-content
 * width restores a single strip; Owl keeps pixel widths on `.owl-item` via inline style.
 */
@media (min-width: 768px) {
    .beDura_product_carousel .beDura_product_carousel__owl.owl-carousel.owl-loaded .owl-stage-outer {
        display: block !important;
        overflow: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .beDura_product_carousel .beDura_product_carousel__owl.owl-carousel.owl-loaded .owl-stage {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        gap: 0 !important;
        width: max-content !important;
        max-width: none !important;
    }

    .beDura_product_carousel .beDura_product_carousel__owl.owl-carousel.owl-loaded .owl-stage > .owl-item {
        flex: 0 0 auto !important;
        float: none !important;
    }
}
