/* High Cultured UI - reusable product carousel v0.3.8 */
.hcui-product-carousel {
    --hcui-visible: var(--hcui-desktop);
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

.hcui-carousel-viewport {
    width: 100%;
    overflow: hidden;
    padding: 12px 12px 4px;
    box-sizing: border-box;
}

.hcui-carousel-track {
    display: flex;
    align-items: stretch;
    gap: var(--hcui-gap);
    width: 100%;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    touch-action: pan-y;
    user-select: none;
    cursor: grab;
}

.hcui-carousel-track.is-dragging {
    cursor: grabbing;
}

.hcui-carousel-product {
    flex: 0 0 calc((100% - (var(--hcui-visible) - 1) * var(--hcui-gap)) / var(--hcui-visible));
    min-width: 0;
    position: relative;
    box-sizing: border-box;
    overflow: visible;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 18px;
    background: #f4f4f4;
}

.hcui-carousel-media {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 17px 17px 0 0;
    background: transparent;
}

.hcui-carousel-image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 0;
}

.hcui-carousel-image-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.hcui-carousel-labels {
    position: absolute;
    inset: 0;
    z-index: 499;
    pointer-events: none;
}


/* Product labels deliberately use the exact global label styling and
   configured offsets. Labels sit at article level so negative offsets are
   visible instead of being clipped by the product image/card. */

.hcui-carousel-details {
    min-height: 68px;
    padding: 10px 12px 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 10px;
    align-items: end;
    background: #f4f4f4;
    border-radius: 0 0 17px 17px;
    box-sizing: border-box;
}

.hcui-carousel-title {
    margin: 0;
    min-width: 0;
    font: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.35;
    text-align: left;
}

.hcui-carousel-title-link {
    color: inherit;
    text-decoration: none;
}

.hcui-carousel-title-link:hover,
.hcui-carousel-title-link:focus {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hcui-carousel-price {
    margin: 0;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1.35;
    text-align: right;
}

.hcui-carousel-price del {
    opacity: .55;
    margin-right: 5px;
}

.hcui-carousel-price ins {
    text-decoration: none;
}

.hcui-carousel-dots {
    min-height: 15px;
    margin-top: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.hcui-carousel-dot {
    width: 9px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, .20);
    appearance: none;
    transition: width .25s ease, background-color .25s ease;
}

.hcui-carousel-dot.is-active {
    width: 18px;
    background: rgba(0, 0, 0, .75);
}


.hcui-carousel-empty {
    padding: 20px;
    text-align: center;
}

@media (max-width: 1024px) {
    .hcui-product-carousel {
        --hcui-visible: var(--hcui-tablet);
    }
}

@media (max-width: 767px) {
    .hcui-product-carousel {
        --hcui-visible: var(--hcui-mobile);
    }

    .hcui-carousel-details {
        min-height: 62px;
        padding: 9px 10px 11px;
    }

    .hcui-carousel-title,
    .hcui-carousel-price {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hcui-carousel-track,
    .hcui-carousel-dot {
        transition: none !important;
    }
}
