/* ========================================
   Custom CSS - Essence Brasil
   Estilos personalizados para o e-commerce
   ======================================== */

/* Melhorias no carrinho */
.cart-area span,
.cart-button span {
    background-color: #ca1515;
    font-weight: 600;
}

.empty-cart-message {
    color: #666;
    font-size: 16px;
    padding: 40px 20px !important;
}

/* Animação suave ao adicionar no carrinho */
.adding-to-cart {
    animation: pulse 0.5s ease-in-out;
}

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

/* Melhorias nos produtos */
.product-price {
    color: #ca1515;
    font-weight: 700;
}

.old-price {
    color: #999;
    text-decoration: line-through;
    margin-right: 8px;
}

.product-badge {
    z-index: 10;
}

.offer-badge {
    background-color: #e74c3c;
}

.new-badge {
    background-color: #27ae60;
}

/* Botões melhorados */
.essence-btn {
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.essence-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Responsividade melhorada */
@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 32px;
    }
    
    .cta--text h2 {
        font-size: 28px;
    }
    
    .single_catagory_area {
        margin-bottom: 20px;
    }
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Notificações/Alertas */
.alert-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    z-index: 9999;
    animation: slideInRight 0.3s ease-out;
}

.alert-notification.success {
    border-left: 4px solid #27ae60;
}

.alert-notification.error {
    border-left: 4px solid #e74c3c;
}

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

/* Melhorias no resumo do carrinho */
.summary-table li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.summary-table li:last-child {
    font-weight: 700;
    font-size: 18px;
    border-top: 2px solid #333;
    border-bottom: none;
    margin-top: 10px;
}

/* Estilos para quantidade no carrinho */
.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: #f8f8f8;
    cursor: pointer;
    border-radius: 3px;
    font-weight: bold;
    transition: all 0.2s;
}

.quantity-btn:hover {
    background: #ca1515;
    color: #fff;
    border-color: #ca1515;
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    padding: 5px;
    border-radius: 3px;
}

/* Melhorias no item do carrinho */
.cart-item-desc {
    position: relative;
}

.product-remove {
    cursor: pointer;
    transition: all 0.2s;
}

.product-remove:hover {
    color: #e74c3c;
    transform: scale(1.2);
}

/* Tags de marca */
.badge {
    background-color: #f8f8f8;
    color: #666;
    font-size: 11px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 5px;
}

/* Melhorias de acessibilidade */
button:focus,
a:focus {
    outline: 2px solid #ca1515;
    outline-offset: 2px;
}

/* Estilos para produtos sem estoque */
.out-of-stock {
    opacity: 0.6;
    position: relative;
}

.out-of-stock::after {
    content: 'ESGOTADO';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 5px;
}

/* Transições suaves */
* {
    transition: color 0.2s, background-color 0.2s;
}

/* Cores brasileiras (opcional - pode ser ativado) */
.brasil-theme .essence-btn {
    background: linear-gradient(135deg, #009c3b 0%, #ffdf00 100%);
    color: #fff;
}

.brasil-theme .product-badge {
    background: linear-gradient(135deg, #002776 0%, #009c3b 50%, #ffdf00 100%);
}
