/* Container (desktop = carousel, mobile = scrollable) */
.producttabs-container.producttabval-container{
        background: var(--color-seashell);
    padding: 25px 0 25px;
}

.producttabs-wrapper {
    position: relative;
}

#producttabs {
    display: flex;
    gap: 40px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    /* ✅ force one row for carousel */
    overflow: hidden;
    /* hide extra cards when arrows are used */
    /* hide extra cards when arrows are used */
    position: relative;
}

/* Each item */
.producttabs__item {
    flex: 0 0 auto;
    /* ✅ prevent wrapping */
    min-width: 166px;
    max-width: 166px;
    text-align: center;
    border: 1px solid rgba(17, 17, 17, 0.12);
    border-radius: 8px;
    padding: 16px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Active state */
.producttabs__item.active,
.producttabs__item.is-active {
    background: rgb(255, 217, 198, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Image */
.producttabs__image {
    width: 40px;
    height: 40px;
    margin: 0 auto;
}

.producttabs__image img {
    width: 100%;
    height: auto;
}

/* Title */
.producttabs__title {
    font-size: 16px;
    color: #111111;
    padding: 0 15px;
    line-height: 1.4;
    font-family: var(--body-font-family-semibold);
}

/* Hide uniqueid div */
.producttabs__uniqueid {
    display: none !important;
}

/* === Carousel controls (scoped to product tabs) === */
.producttabs-carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    transform: translateY(-50%);
    z-index: 5;
}

.producttabs-carousel-prev,
.producttabs-carousel-next {
    pointer-events: auto;
    background: #fff;
    border: 1px solid rgba(17, 17, 17, 0.12);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: background 0.2s ease, transform 0.2s ease;
}

.producttabs-carousel-prev:hover,
.producttabs-carousel-next:hover {
    background: #f5f5f5;
    transform: scale(1.05);
}

.producttabs-carousel-prev:disabled,
.producttabs-carousel-next:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

/* Hide arrows on mobile */
@media (max-width: 1024px) {
    .producttabs-carousel-controls {
        display: none !important;
    }
}

/* ✅ Tablet & mobile scrollable tabs */
@media (max-width: 1024px) {
    #producttabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 10px;
    }

    #producttabs::-webkit-scrollbar {
        display: none;
    }

    .producttabs__item {
        flex: 0 0 auto;
        min-width: 120px;
        max-width: 150px;
    }

    .teaser-carousel-controls {
        display: none !important;
        /* ✅ hide arrows on mobile */
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    #producttabs {
        gap: 15px;
    }

    .producttabs__item {
        max-width: 124px;
        padding: 15px 10px;
        gap: 20px;
        max-height: 138px;
        justify-content: unset;
    }

    .producttabs__title p{
        margin: 0;
        width: 102%;
    }

    .producttabs__title {
        font-size: 16px;
        padding: 0 10px;
    }

    .producttabs__image img {
        width: 40px;
    }
}