/* ========================================
   Banner Manager - E-commerce Carousel
   Tema Dark Profissional
======================================== */

.bm-ecommerce-section {
    width: 100%;
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Header com Título e Navegação */
.bm-ecommerce-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.bm-ecommerce-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(135deg, #76ff03 0%, #00e676 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bm-carousel-nav {
    display: flex;
    gap: 10px;
}

.bm-carousel-prev,
.bm-carousel-next {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(118, 255, 3, 0.2);
    border-radius: 12px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #76ff03;
}

.bm-carousel-prev:hover,
.bm-carousel-next:hover {
    background: rgba(118, 255, 3, 0.1);
    border-color: #76ff03;
    transform: translateY(-2px);
}

.bm-carousel-prev:disabled,
.bm-carousel-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

/* Container do Carrossel */
.bm-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.bm-carousel-wrapper {
    overflow: hidden;
}

.bm-carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card de Produto */
.bm-product-card {
    flex: 0 0 calc(25% - 15px);
    min-width: 280px;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.9) 0%, rgba(20, 20, 20, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

.bm-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #76ff03, #00e676);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bm-product-card:hover {
    border-color: #76ff03;
    box-shadow: 0 12px 40px rgba(118, 255, 3, 0.15);
}

.bm-product-card:hover::before {
    opacity: 1;
}

/* Badge de Oferta */
.bm-product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ff4757 0%, #ff6348 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
}

/* Imagem do Produto */
.bm-product-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bm-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.bm-product-card:hover .bm-product-image img {
    transform: scale(1.02);
}

/* Informações do Produto */
.bm-product-info {
    padding: 20px;
}

.bm-product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 12px 0;
    line-height: 1.4;
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Avaliação com Estrelas */
.bm-product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.bm-stars {
    display: flex;
    gap: 2px;
}

.bm-star {
    width: 16px;
    height: 16px;
}

.bm-rating-count {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* Preço */
.bm-product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.bm-price-regular {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: line-through;
}

.bm-price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: #76ff03;
}

.bm-price-current.sale {
    color: #ff4757;
}

/* Botão Comprar */
.bm-product-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #76ff03 0%, #00e676 100%);
    color: #000000;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(118, 255, 3, 0.3);
}

.bm-product-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(118, 255, 3, 0.4);
    background: linear-gradient(135deg, #00e676 0%, #76ff03 100%);
    text-decoration: none;
    color: #000000;
}

.bm-product-button svg {
    flex-shrink: 0;
}

/* Aviso de Configuração */
.bm-config-notice {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.1) 100%);
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.bm-config-notice h4 {
    margin: 0 0 10px 0;
    color: #ffc107;
    font-size: 1.1rem;
}

.bm-config-notice p {
    margin: 0 0 10px 0;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.bm-config-notice a {
    color: #76ff03;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.bm-config-notice a:hover {
    color: #00e676;
}

/* ========================================
   Responsividade
======================================== */

/* Tablets grandes - 3 produtos */
@media (max-width: 1200px) {
    .bm-product-card {
        flex: 0 0 calc(33.333% - 14px);
        min-width: 260px;
    }
    
    .bm-ecommerce-title {
        font-size: 1.75rem;
    }
}

/* Tablets - 2 produtos */
@media (max-width: 900px) {
    .bm-product-card {
        flex: 0 0 calc(50% - 10px);
        min-width: 240px;
    }
    
    .bm-ecommerce-section {
        margin: 40px auto;
        padding: 0 15px;
    }
    
    .bm-ecommerce-title {
        font-size: 1.5rem;
    }
    
    .bm-carousel-prev,
    .bm-carousel-next {
        width: 40px;
        height: 40px;
    }
}

/* Mobile - 1 produto */
@media (max-width: 600px) {
    .bm-product-card {
        flex: 0 0 100%;
        min-width: 100%;
    }
    
    .bm-carousel-track {
        gap: 15px;
    }
    
    .bm-ecommerce-section {
        margin: 30px auto;
        padding: 0 10px;
    }
    
    .bm-ecommerce-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .bm-ecommerce-title {
        font-size: 1.3rem;
    }
    
    .bm-product-image {
        height: 220px;
    }
    
    .bm-product-name {
        font-size: 1rem;
        min-height: auto;
    }
    
    .bm-price-current {
        font-size: 1.3rem;
    }
    
    .bm-product-button {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

/* Mobile muito pequeno */
@media (max-width: 380px) {
    .bm-product-image {
        height: 180px;
    }
    
    .bm-product-info {
        padding: 15px;
    }
    
    .bm-ecommerce-title {
        font-size: 1.1rem;
    }
    
    .bm-carousel-prev,
    .bm-carousel-next {
        width: 36px;
        height: 36px;
    }
}

