/**
 * Estilos do Frontend - Product Slider Pro
 */

/* Container principal do slider */
.psp-slider-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.psp-swiper {
    width: 100%;
    height: 600px;
    position: relative;
}

/* Slide individual */
.psp-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
}

/* Overlay para background de imagem */
.psp-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.psp-slide-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 60px;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.psp-slide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

/* Conteúdo de texto */
.psp-slide-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: slideInLeft 0.8s ease-out;
}

.psp-slide-title {
    margin: 0;
    line-height: 1.2;
    font-weight: 700;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.psp-slide-description {
    line-height: 1.6;
    margin: 0;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.psp-slide-price {
    margin: 10px 0;
    animation: fadeInUp 0.8s ease-out 0.5s both;
    line-height: 1.4;
}

.psp-slide-price .woocommerce-Price-amount {
    display: inline-block;
}

.psp-slide-price del {
    opacity: 0.6;
    margin-right: 10px;
}

.psp-slide-price del .woocommerce-Price-amount {
    font-size: 0.7em;
}

.psp-slide-price ins {
    text-decoration: none;
}

.psp-slide-price ins .woocommerce-Price-amount {
    color: #e74c3c;
}

/* Botão CTA */
.psp-slide-cta {
    display: inline-block;
    padding: 16px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    border: none;
    max-width: fit-content;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.psp-slide-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.psp-slide-cta:active {
    transform: translateY(-1px);
}

/* Imagem do produto */
.psp-slide-image {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideInRight 0.8s ease-out;
}

.psp-slide-image img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 10px;
    animation: zoomIn 0.8s ease-out 0.3s both;
}

/* Navegação do Swiper */
.psp-swiper .swiper-button-prev,
.psp-swiper .swiper-button-next {
    color: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.psp-swiper .swiper-button-prev:after,
.psp-swiper .swiper-button-next:after {
    font-size: 20px;
    font-weight: 700;
}

.psp-swiper .swiper-button-prev:hover,
.psp-swiper .swiper-button-next:hover {
    background: rgba(255, 255, 255, 1);
    color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* Paginação */
.psp-swiper .swiper-pagination {
    bottom: 30px;
}

.psp-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all 0.3s ease;
}

.psp-swiper .swiper-pagination-bullet-active {
    background: rgba(255, 255, 255, 1);
    width: 30px;
    border-radius: 6px;
}

/* Animações */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsividade */
@media (max-width: 1024px) {
    .psp-swiper {
        height: 550px;
    }
    
    .psp-slide-container {
        padding: 30px 40px;
    }
    
    .psp-slide-content {
        gap: 40px;
    }
    
    .psp-slide-title {
        font-size: 28px !important;
    }
    
    .psp-slide-description {
        font-size: 14px !important;
    }
}

@media (max-width: 768px) {
    .psp-swiper {
        height: auto;
        min-height: 500px;
    }
    
    .psp-slide-container {
        padding: 30px 20px;
    }
    
    .psp-slide-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .psp-slide-text {
        order: 2;
        align-items: center;
    }
    
    .psp-slide-image {
        order: 1;
    }
    
    .psp-slide-image img {
        max-height: 300px;
    }
    
    .psp-slide-title {
        font-size: 24px !important;
    }
    
    .psp-slide-description {
        font-size: 14px !important;
    }
    
    .psp-slide-price {
        font-size: 0.85em !important;
    }
    
    .psp-slide-cta {
        padding: 14px 30px;
        font-size: 14px !important;
        width: 100%;
        max-width: 300px;
    }
    
    .psp-swiper .swiper-button-prev,
    .psp-swiper .swiper-button-next {
        width: 40px;
        height: 40px;
    }
    
    .psp-swiper .swiper-button-prev:after,
    .psp-swiper .swiper-button-next:after {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .psp-swiper {
        min-height: 450px;
    }
    
    .psp-slide-container {
        padding: 20px 15px;
    }
    
    .psp-slide-content {
        gap: 20px;
    }
    
    .psp-slide-title {
        font-size: 20px !important;
    }
    
    .psp-slide-description {
        font-size: 13px !important;
    }
    
    .psp-slide-image img {
        max-height: 200px;
    }
    
    .psp-swiper .swiper-button-prev,
    .psp-swiper .swiper-button-next {
        width: 35px;
        height: 35px;
    }
    
    .psp-swiper .swiper-button-prev {
        left: 5px;
    }
    
    .psp-swiper .swiper-button-next {
        right: 5px;
    }
    
    .psp-swiper .swiper-pagination {
        bottom: 15px;
    }
}

/* Acessibilidade */
.psp-slide-cta:focus,
.psp-swiper .swiper-button-prev:focus,
.psp-swiper .swiper-button-next:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Loading state */
.psp-slider-wrapper.loading {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.psp-slider-wrapper.loading:after {
    content: "";
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
