/*
 * CARROSSEL DE PRODUTOS EM DESTAQUE - SAVAS
 * Estilo para carrossel com fotos grandes dos produtos em destaque
 */

/* ==================== SEÇÃO PRODUTOS EM DESTAQUE ==================== */

.featured-products {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.featured-products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #007bff, transparent);
}

/* ==================== CARROSSEL CONTAINER ==================== */

.featured-swiper {
    width: 100%;
    padding: 20px 0 60px 0; /* Espaço para paginação */
    overflow: hidden;
}

.featured-swiper .swiper-slide {
    padding: 0 5px; /* 10px total de espaço entre slides (5px cada lado) */
}

.featured-swiper .swiper-wrapper {
    align-items: stretch;
}

.featured-swiper .swiper-slide {
    height: auto;
    display: flex;
}

/* ==================== CARD DO PRODUTO ==================== */

.featured-product-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.featured-product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 123, 255, 0.2);
}

/* ==================== IMAGEM DO PRODUTO (GRANDE) ==================== */

.featured-product-image {
    position: relative;
    width: 100%;
    height: 480px; /* Altura inspirada no padrão da Reserva para maior destaque */
    overflow: hidden;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    aspect-ratio: 3/4; /* Proporção 3:4 padrão para produtos de moda */
}

.featured-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
    filter: brightness(1.02) contrast(1.05);
}

.featured-product-card:hover .featured-product-image img {
    transform: scale(1.08);
}

/* ==================== OVERLAY DA IMAGEM (REMOVIDO) ==================== */

/* Overlay removido - a imagem toda é clicável agora */

.featured-sale-badge {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

/* ==================== INFORMAÇÕES DO PRODUTO ==================== */

.featured-product-info {
    padding: 25px 20px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.featured-product-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8rem;
}

.featured-product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.featured-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
}

.featured-price-original {
    font-size: 1rem;
    color: #95a5a6;
    text-decoration: line-through;
    font-weight: 500;
}

.featured-price-sale {
    font-size: 1.4rem;
    font-weight: 700;
    color: #e74c3c;
    position: relative;
}

.featured-price-sale::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    border-radius: 1px;
}

/* ==================== BOTÃO DE FAVORITOS ==================== */

.featured-wishlist-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 3;
    opacity: 0;
    transform: scale(0.8);
}

.featured-product-card:hover .featured-wishlist-btn {
    opacity: 1;
    transform: scale(1);
}

.featured-wishlist-btn:hover {
    background: #e74c3c;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.featured-wishlist-btn svg {
    transition: all 0.3s ease;
}

.featured-wishlist-btn:hover svg {
    fill: currentColor;
}

/* ==================== NAVEGAÇÃO DO CARROSSEL ==================== */

.featured-button-next,
.featured-button-prev {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    color: #333;
    font-size: 18px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.featured-button-next:hover,
.featured-button-prev:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 123, 255, 0.3);
}

.featured-button-next::after,
.featured-button-prev::after {
    font-size: 16px;
    font-weight: 700;
}

/* ==================== PAGINAÇÃO ==================== */

.featured-pagination {
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    margin-top: 30px;
}

.featured-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(0, 0, 0, 0.2);
    opacity: 1;
    margin: 0 6px;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.featured-pagination .swiper-pagination-bullet-active {
    background: #007bff;
    width: 24px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.4);
}

/* ==================== RESPONSIVIDADE ==================== */

/* Tablet */
@media (max-width: 1024px) {
    .featured-product-image {
        height: 380px; /* Mantém proporção adequada no tablet */
    }
    
    .featured-product-name {
        font-size: 1.1rem;
    }
    
    .featured-price,
    .featured-price-sale {
        font-size: 1.2rem;
    }
}

/* Mobile - Largura completa com margens 10px */
@media (max-width: 768px) {
    .featured-products {
        padding: var(--spacing-2xl) 0;
    }
    
    .featured-products .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
        max-width: 100% !important;
    }
    
    .featured-swiper {
        padding: 15px 0 50px 0;
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow: visible;
    }
    
    .featured-swiper .swiper-slide {
        width: calc(100vw - 20px) !important; /* Largura total da tela menos 10px de cada lado */
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .featured-product-card {
        width: 100% !important;
        margin: 0 !important;
    }
    
    .featured-product-image {
        height: 320px; /* Altura otimizada para mobile inspirada na Reserva */
    }
    
    .featured-product-info {
        padding: 20px 15px 15px;
    }
    
    .featured-product-name {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .featured-price,
    .featured-price-sale {
        font-size: 1.1rem;
    }
    
    .featured-price-original {
        font-size: 0.9rem;
    }
    
    .featured-button-next,
    .featured-button-prev {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
    
    .featured-wishlist-btn {
        width: 40px;
        height: 40px;
        top: 12px;
        left: 12px;
    }
    
    .featured-sale-badge {
        top: 12px;
        right: 12px;
        padding: 4px 8px;
        font-size: 0.7rem;
    }
}

/* Mobile Pequeno - Largura completa com margens 10px */
@media (max-width: 480px) {
    .featured-products .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
        max-width: 100% !important;
    }
    
    .featured-swiper {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .featured-swiper .swiper-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .featured-swiper .swiper-slide {
        width: calc(100vw - 20px) !important; /* Largura completa menos 10px de cada lado */
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .featured-product-card {
        width: 100% !important;
        margin: 0 !important;
        border-radius: 12px;
    }
    
    .featured-product-image {
        height: 280px; /* Altura otimizada para mobile pequeno */
    }
    
    .featured-product-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .featured-view-btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
}

/* ==================== ANIMAÇÕES ESPECIAIS ==================== */

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

.featured-product-card {
    animation: featuredSlideIn 0.6s ease-out;
}

/* Lazy loading placeholder */
.featured-product-image img[loading="lazy"] {
    transition: opacity 0.3s ease;
}

.featured-product-image img[loading="lazy"]:not([src]) {
    opacity: 0;
}

/* ==================== ESTADOS ESPECIAIS ==================== */

/* Produto sem imagem */
.featured-product-image:not(:has(img)) {
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1.2rem;
}

.featured-product-image:not(:has(img))::after {
    content: '📷';
    font-size: 3rem;
    opacity: 0.3;
}

/* ==================== OTIMIZAÇÕES DE PERFORMANCE ==================== */

.featured-product-card {
    will-change: transform;
}

.featured-product-image img {
    will-change: transform;
}

.featured-swiper {
    contain: layout style paint;
}
