.product-carousel {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 2rem auto;
    gap: 8px;
}

.carousel-arrow {
    width: 58px;
    height: 58px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--color-font);
}
.carousel-arrow:hover {
    filter: brightness(0.95);
}

.carousel-track-wrapper {
    overflow: hidden;
    flex: 1;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(.4,0,.2,1);
    will-change: transform;
    padding: 0;
    margin: 0;
    list-style: none;
}

.carousel-item {
    min-width: 263px;
    margin: 0 10px;
    padding: 1rem;
    text-align: center;
    flex-shrink: 0;
}

/* =========================
   Carrossel de Imagens do Produto (detalhe)
   ========================= */
.product-content.product .product-sliders {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
}
.product-slider-view {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}
.main-img {
    width: 100%;
    aspect-ratio: 1/1;
    margin: 0 auto 16px auto; /* Espaço entre a imagem e os indicadores */
    display: block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.15s cubic-bezier(.4,0,.2,1), opacity 0.2s;
    will-change: transform;
    position: relative;
    z-index: 1;
}
.product-slider-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: flex-start;
    align-items: center;
    max-height: 450px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    background: var(--color-thumb-bg);
    padding-right: 4px;
    max-width: 155px;
    margin: 0;
}
.product-slider-thumbs::-webkit-scrollbar {
    background: var(--color-thumb-bg);
}
.product-slider-thumbs::-webkit-scrollbar-thumb {
    background: var(--color-thumb-scrollbar);
}
.thumb {
    width: 100%;
    height: auto;
    object-fit: contain;
    aspect-ratio: 1/1;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 1px 4px var(--color-thumb-shadow);
    display: block;
}
.thumb.active, .thumb:hover {
    border: 2px solid var(--color-thumb-border);
}
.product-slider-thumbs.dragging {
    cursor: grabbing;
    user-select: none;
}
.thumb-nav {
    background: transparent;
    border: none;
    color: var(--color-font);
    font-size: 22px;
    cursor: pointer;
    padding: 4px 0;
    width: 100%;
    border-radius: 8px;
}
.thumb-nav,
.thumb-nav:active,
.thumb-nav:focus {
    background: transparent !important;
    box-shadow: none !important;
}
.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 0;
    margin-bottom: 8px;
    width: 100%;
    position: static; /* Garante que fique no fluxo logo abaixo da imagem */
}
.slider-indicator {
    width: 10px;
    height: 10px;
    background: var(--color-slider-indicator);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background 0.1s;
}
.slider-indicator.active {
    background: var(--swiper-pagination-color);
}

/* Responsividade */
@media (max-width: 991px) {
    .product-sliders {
        gap: 12px !important;
        display: flex !important;
        align-items: flex-start !important;
        flex-direction: column-reverse !important;
        flex-wrap: wrap;
        min-height: 350px;
    }
    .product-slider-view {
        width: 100%;
        max-width: 100vw;
        min-width: 350px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .main-img {
        width: 100%;
        max-width: 100vw;
        height: auto;
        aspect-ratio: 1/1;
        display: block;
    }
    .product-slider-thumbs {
        flex-direction: row;
        max-height: none;
        max-width: 100vw;
        overflow-x: auto;
        overflow-y: hidden;
        width: 100%;
        padding-right: 0;
        padding-bottom: 4px;
        margin: 0;
        justify-content: flex-start;
        align-items: center;
    }
    .thumb {
        max-width: 155px !important;
        object-fit: contain;
        aspect-ratio: 1 / 1;
        margin-bottom: 0;
        margin-right: 8px;
    }
    .thumb-nav {
        display: none !important;
    }
}
@media (max-width: 600px) {
    .main-img {
        max-width: 90vw;
    }
    .thumb {
        width: 75px;
    }
}

.main-slider-arrow {
    transform: translateY(-50%);
    font-size: 32px;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.1s;
    z-index: 5;
    position: relative;
}

.product-slider-view:hover .main-slider-arrow {
    opacity: 1;
}

@media (max-width: 991px) {
    .main-slider-arrow {
        display: none;
    }
}

.main-img {
    transition: transform 0.1s ease, background-image 0.1s ease;

}
.main-img.dragging {
    transition: none;
}

.product-slider-wrapper {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
}
