/* Estilos personalizados para ACHADINHOSCRIS */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.hero-section h1 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section .lead {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Filtros */
.filters-section {
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Cards de Produto */
.product-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-name {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
    line-height: 1.3;
    height: 2.6em;
    overflow: hidden;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    height: 4.2em;
    overflow: hidden;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.product-price-section {
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 10px;
}

/* Botões */
.btn-comprar {
    background: linear-gradient(135deg, #ff5722, #ff9800);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-comprar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
}

.btn-detalhes {
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
}

.btn-detalhes:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Navbar */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-dark.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
}

/* Loading */
#loading {
    padding: 3rem 0;
}

/* Modal */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
}

.modal-header .btn-close {
    filter: invert(1);
}

/* Toast Notifications */
.toast {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Footer */
footer {
    margin-top: auto;
}

/* Responsividade */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .product-card {
        margin-bottom: 1.5rem;
    }
    
    .filters-section .row {
        margin-bottom: 0;
    }
    
    .filters-section .col-md-6,
    .filters-section .col-md-3 {
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 0 !important;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .products-section {
        padding: 2rem 0 !important;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.5s ease;
}

/* Badges e Estados */
.stock-low {
    color: var(--warning-color);
    font-weight: 600;
}

.stock-out {
    color: var(--danger-color);
    font-weight: 600;
}

.price-highlight {
    font-weight: 700;
    color: #28a745;
}

/* Melhorias de Acessibilidade */
.btn:focus,
.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    border-color: var(--primary-color);
}

/* Efeitos de hover para elementos interativos */
.card:hover {
    cursor: pointer;
}

/* Loading skeleton para imagens */
.product-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}