/* Carrossel de Produtos em Promoção */
.promo-carousel-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.promo-carousel-section .sec-title {
    margin-bottom: 50px;
}

.promo-carousel-section .sec-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.promo-carousel-section .sec-title h2 span {
    color: #0597F2;
    position: relative;
}

.promo-carousel-section .sec-title .decor {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0597F2, #5941F2);
    margin: 0 auto;
    display: block;
    border-radius: 2px;
}

/* Container do Carrossel */
#promo-carousel {
    position: relative;
    margin: 0 auto;
    max-width: 1400px;
    padding: 0 30px;
}

#promo-carousel .carousel-inner {
    overflow: hidden;
    transition: all 0.6s ease-in-out;
}

#promo-carousel .item {
    transition: all 0.6s ease-in-out;
}

#promo-carousel .item {
    padding: 30px 0;
}

/* Grid de Produtos */
#promo-carousel .row {
    margin: 0 -15px;
    display: flex;
    flex-wrap: wrap;
}

#promo-carousel .col-lg-2,
#promo-carousel .col-md-2,
#promo-carousel .col-sm-4,
#promo-carousel .col-xs-12 {
    padding: 0 15px;
    margin-bottom: 30px;
}

/* Desktop: 6 produtos por linha */
@media (min-width: 1200px) {
    #promo-carousel .col-lg-2 {
        width: 16.66666667%;
        flex: 0 0 16.66666667%;
    }
}

/* Tablet: 4 produtos por linha */
@media (min-width: 768px) and (max-width: 1199px) {
    #promo-carousel .col-md-2 {
        width: 25%;
        flex: 0 0 25%;
    }
}

/* Mobile pequeno: 2 produtos por linha */
@media (min-width: 576px) and (max-width: 767px) {
    #promo-carousel .col-sm-4 {
        width: 50%;
        flex: 0 0 50%;
    }
}

/* Mobile: 1 produto por linha */
@media (max-width: 575px) {
    #promo-carousel .col-xs-12 {
        width: 100%;
        flex: 0 0 100%;
    }
}

/* Item do Produto */
.promo-product-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 20px 15px;
    height: 100%;
    min-height: 380px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.promo-product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #0597F2;
}

/* Header do Produto */
.product-header {
    text-align: center;
    margin-bottom: 20px;
    flex-shrink: 0;
    padding: 15px 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    border: 1px solid rgba(5, 151, 242, 0.1);
}

.product-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.4;
    min-height: 50px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.product-header .subtitle {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Badge de Promoção */
.promo-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffa500;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(255, 165, 0, 0.3);
    z-index: 10;
}

.promo-badge::before {
    content: "⚡";
    margin-right: 3px;
    font-size: 8px;
}

/* Preço */
.product-price {
    text-align: center;
    margin: 15px 0;
    flex-shrink: 0;
}

.payment-method {
    font-size: 11px;
    color: #84D904;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.price-value.consulte {
    color: #666 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
}

.price-value {
    font-size: 24px;
    font-weight: 800;
    color: #0597F2;
    text-shadow: 0 2px 4px rgba(5, 151, 242, 0.2);
}

.price-value.promo-price {
    color: #84D904;
    text-shadow: 0 2px 4px rgba(132, 217, 4, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.old-price {
    font-size: 14px;
    font-weight: 600;
    color: #999;
    text-decoration: line-through;
    margin-top: 2px;
}

.old-price .fa-arrow-down {
    color: #ff6b6b;
    margin-left: 5px;
    font-size: 12px;
    animation: bounce 1s infinite;
}

.discount-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: 12px;
    margin-top: 5px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-3px); }
    60% { transform: translateY(-2px); }
}

/* Imagem do Produto */
.product-image {
    text-align: center;
    margin: 20px 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.product-image img {
    max-width: 100%;
    max-height: 150px;
    width: auto;
    height: auto;
    border-radius: 15px;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.product-image:hover img {
    transform: scale(1.05);
}

/* Botões de Ação */
.product-actions {
    display: flex;
    gap: 8px;
    margin: 12px 0;
    flex-shrink: 0;
}

.product-actions .btn {
    flex: 1;
    padding: 10px 6px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 35px;
}

.btn-details {
    background: #5941F2;
    color: white;
}

.btn-details:hover {
    background: #0597F2;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(89, 65, 242, 0.3);
    color: white;
    text-decoration: none;
}

.btn-add-cart {
    background: #84D904;
    color: white;
    cursor: pointer;
}

.btn-add-cart:hover {
    background: #0597F2;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(132, 217, 4, 0.3);
}

/* Footer do Produto */
.product-footer {
    text-align: center;
    margin-top: 15px;
    flex-shrink: 0;
}

.footer-text {
    font-size: 11px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px;
    background: rgba(5, 151, 242, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(5, 151, 242, 0.2);
}

/* Controles do Carrossel */
#promo-carousel .carousel-control {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0597F2, #5941F2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#promo-carousel .carousel-control:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

#promo-carousel .carousel-control .glyphicon {
    font-size: 20px;
    color: white;
    text-shadow: none;
    line-height: 44px;
}

#promo-carousel .carousel-control.left {
    left: -25px;
}

#promo-carousel .carousel-control.right {
    right: -25px;
}

/* Indicadores */
#promo-carousel .carousel-indicators {
    bottom: -40px;
}

#promo-carousel .carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: 2px solid transparent;
    margin: 0 5px;
    transition: all 0.3s ease;
}

#promo-carousel .carousel-indicators li.active {
    background: #0597F2;
    border-color: #5941F2;
    transform: scale(1.2);
}

/* Responsividade */
@media (max-width: 767px) {
    .promo-carousel-section {
        padding: 40px 0;
    }
    
    .promo-carousel-section .sec-title h2 {
        font-size: 28px;
    }
    
    #promo-carousel {
        padding: 0 15px;
    }
    
    #promo-carousel .carousel-control {
        width: 40px;
        height: 40px;
    }
    
    #promo-carousel .carousel-control .glyphicon {
        font-size: 16px;
        line-height: 34px;
    }
    
    #promo-carousel .carousel-control.left {
        left: -20px;
    }
    
    #promo-carousel .carousel-control.right {
        right: -20px;
    }
    
    .promo-product-item {
        padding: 20px 15px;
        min-height: 350px;
    }
    
    .promo-badge {
        top: 8px;
        right: 8px;
        padding: 3px 6px;
        font-size: 8px;
    }
    
    .product-header h3 {
        font-size: 16px;
        min-height: 44px;
    }
    
    .price-value {
        font-size: 20px;
    }
    
    .discount-badge {
        font-size: 9px;
        padding: 3px 6px;
    }
    
    .product-actions .btn {
        padding: 10px 6px;
        font-size: 11px;
        min-height: 35px;
    }
    
    .product-image {
        min-height: 120px;
    }
    
    .product-image img {
        max-height: 120px;
    }
}

@media (max-width: 575px) {
    .promo-carousel-section .sec-title h2 {
        font-size: 24px;
    }
    
    #promo-carousel {
        padding: 0 10px;
    }
    
    #promo-carousel .carousel-control {
        display: none;
    }
    
    .promo-product-item {
        padding: 15px 12px;
        min-height: 320px;
    }
    
    .promo-badge {
        top: 6px;
        right: 6px;
        padding: 2px 5px;
        font-size: 7px;
    }
    
    .product-header h3 {
        font-size: 15px;
        min-height: 40px;
    }
    
    .price-value {
        font-size: 18px;
    }
    
    .discount-badge {
        font-size: 8px;
        padding: 2px 5px;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .product-actions .btn {
        width: 100%;
        padding: 12px 8px;
        font-size: 12px;
        min-height: 40px;
    }
    
    .product-image {
        min-height: 100px;
    }
    
    .product-image img {
        max-height: 100px;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.promo-product-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Estados de loading */
.promo-product-item.loading {
    opacity: 0.7;
    pointer-events: none;
}

.promo-product-item.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0597F2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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