/* Container principal do carrossel */
.wps-stories-carousel-wrapper {
    width: 100%;
    max-width: 100%;
    position: relative;
    padding: 40px 0;
    overflow: hidden;
    margin: 0 auto;
    /* Altura fixa para evitar tremor do conteúdo abaixo */
    min-height: 750px; /* 650px do vídeo destacado + 90px do produto + margens */
    display: flex;
    align-items: center;
}

/* Largura total quando configurado */
.wps-stories-carousel-wrapper.full-width {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Overflow visível quando configurado */
.wps-stories-carousel-wrapper.overflow-visible {
    overflow: visible;
}

/* Sem padding quando não tem setas */
.wps-stories-carousel-wrapper.no-arrows .wps-stories-carousel {
    padding: 0 20px;
}

.wps-stories-carousel {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0; /* Removido padding para permitir overflow em ambos lados */
    align-items: stretch; /* Todos os itens com mesma altura */
    width: max-content; /* Largura baseada no conteúdo */
    box-sizing: border-box;
    height: 100%; /* Ocupar toda altura do wrapper */
}

.wps-story-item {
    flex: 0 0 auto;
    width: 350px; /* Largura ajustada para proporção 9:16 */
    min-width: 350px;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    opacity: 0.7;
    transform: scale(0.95);
    display: flex;
    flex-direction: column;
    align-self: center; /* Centralizar verticalmente */
}

/* Hover em items não centralizados */
.wps-story-item:not(.center-item):hover {
    opacity: 0.85;
    transform: scale(0.97);
}

/* Para containers com largura definida, usar porcentagem */
.wps-stories-carousel-wrapper:not(.full-width) .wps-story-item {
    width: calc((100% - 120px) / 3 - 20px); /* 3 colunas menos padding e gaps */
    min-width: 300px; /* Largura mínima ajustada */
    max-width: 400px; /* Largura máxima para manter proporção */
}

/* Variações de colunas via data attributes */
[data-columns-desktop="1"]:not(.full-width) .wps-story-item {
    width: calc(100% - 140px);
    max-width: 500px;
    margin: 0 auto;
}

[data-columns-desktop="2"]:not(.full-width) .wps-story-item {
    width: calc((100% - 120px) / 2 - 10px);
    min-width: 250px;
}

[data-columns-desktop="4"]:not(.full-width) .wps-story-item {
    width: calc((100% - 120px) / 4 - 15px);
    min-width: 200px;
}

[data-columns-desktop="5"]:not(.full-width) .wps-story-item {
    width: calc((100% - 120px) / 5 - 16px);
    min-width: 180px;
}

/* Para full-width, usar larguras fixas */
.wps-stories-carousel-wrapper.full-width .wps-story-item {
    width: 350px; /* Largura para proporção 9:16 com altura 600px */
    min-width: 350px;
}

.wps-stories-carousel-wrapper.full-width[data-columns-desktop="1"] .wps-story-item {
    width: 600px;
    min-width: 600px;
}

.wps-stories-carousel-wrapper.full-width[data-columns-desktop="2"] .wps-story-item {
    width: 500px;
    min-width: 500px;
}

.wps-stories-carousel-wrapper.full-width[data-columns-desktop="4"] .wps-story-item {
    width: 350px;
    min-width: 350px;
}

.wps-stories-carousel-wrapper.full-width[data-columns-desktop="5"] .wps-story-item {
    width: 300px;
    min-width: 300px;
}

/* Item central destacado */
.wps-story-item.center-item {
    opacity: 1;
    transform: scale(1.05); /* Aumentar escala ao invés de altura */
    z-index: 3;
}

.wps-story-item.center-item .wps-video-container {
    /* Removido aumento de altura para evitar tremor */
}

.wps-story-item:hover {
    opacity: 1;
}

/* Mobile: 1 coluna */
@media (max-width: 768px) {
    .wps-story-item {
        flex: 0 0 100%;
        min-width: 100%;
        max-width: 100%;
    }
    
    .wps-stories-carousel {
        padding: 0 20px;
    }
}

/* Tablet: 2 colunas */
@media (min-width: 769px) and (max-width: 1024px) {
    .wps-story-item {
        flex: 0 0 calc(50% - 10px);
        min-width: calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

/* Botões de navegação */
.wps-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    font-size: 24px;
}

.wps-carousel-nav:hover,
.wps-carousel-nav:focus {
    background: rgba(0, 0, 0, 0.9);
    outline: none;
}

.wps-carousel-nav.prev {
    left: 10px;
}

.wps-carousel-nav.next {
    right: 10px;
}

.wps-carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Ocultar setas quando configurado */
.wps-stories-carousel-wrapper.no-arrows .wps-carousel-nav {
    display: none;
}

/* Container de vídeo */
.wps-video-container {
    position: relative;
    width: 100%;
    height: 600px; /* Proporção similar a stories (9:16) */
    overflow: hidden;
    border-radius: 10px;
    background: #000;
    /* Removida transição de altura para evitar tremor */
}

.wps-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.wps-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 50%, transparent 100%);
    pointer-events: none;
}

.wps-unmute-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 3;
    pointer-events: auto;
    transition: background 0.3s ease;
}

.wps-unmute-button:hover,
.wps-unmute-button:focus {
    background: rgba(0, 0, 0, 0.8);
    outline: none;
}

/* Informações do produto */
.wps-product-info {
    margin-top: 15px;
    background: white;
    padding: 10px;
    border-radius: 8px;
    height: 90px; /* Altura fixa para todos os cards */
    display: flex;
    align-items: center;
    flex-shrink: 0; /* Não encolher */
}

.wps-product-info a {
    display: flex;
    align-items: flex-start; /* Alinhamento no topo */
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
}

.wps-product-info img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 12px;
    flex-shrink: 0; /* Impede que a imagem encolha */
}

.wps-product-details {
    flex: 1;
    padding-top: 2px; /* Pequeno ajuste para alinhar melhor com o topo da imagem */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.wps-product-title {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Máximo 2 linhas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.3;
    max-height: 36px; /* 2 linhas x line-height */
}

.wps-product-price {
    display: block;
    font-size: 16px !important;
    color: #808080 !important; /* Cor cinza */
    font-weight: 300 !important;
    line-height: 1.4;
}

/* Garantir que os estilos de preço do WooCommerce sejam aplicados */
.wps-product-price .woocommerce-Price-amount {
    font-size: 16px !important;
    font-weight: 300 !important;
    color: #808080 !important;
}

.wps-product-price del {
    opacity: 0.5;
    margin-right: 5px;
}

.wps-product-price del .woocommerce-Price-amount {
    color: #808080 !important;
}

.wps-product-price ins {
    text-decoration: none;
    font-weight: 300 !important;
}

.wps-product-price ins .woocommerce-Price-amount {
    color: #808080 !important;
}

.wps-no-price {
    color: #808080 !important;
}

 