/* Estilos específicos para a página de radiadores */

.radiadores-hero {
    background: linear-gradient(135deg, #eb2525 0%, #d81d1d 50%, #1e40af 100%);
    color: white;
    padding: 120px 0 60px;
    text-align: center;
}

.radiadores-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.radiadores-hero p {
    font-size: 1.25rem;
    color: #bfdbfe;
    margin-bottom: 32px;
}

.search-container {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 16px 60px 16px 20px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    outline: none;
}

.search-container button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #eb2525;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-container button:hover {
    background: #d81d1d;
}

/* Filtros */
.filtros {
    background: white;
    padding: 32px 0;
    border-bottom: 1px solid #e5e7eb;
}

.filtros-wrapper {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.filtros-wrapper h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.filtros-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filtro-btn {
    padding: 8px 16px;
    border: 2px solid #e5e7eb;
    background: white;
    color: #374151;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filtro-btn:hover {
    border-color: #eb2c25;
    color: #eb2c25;
}

.filtro-btn.active {
    background: #eb2525;
    border-color: #eb2525;
    color: white;
}

/* Grid de Radiadores */
.radiadores-grid-section {
    padding: 60px 0;
    background: #f9fafb;
}

.radiadores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

.radiador-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.radiador-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.radiador-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.radiador-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.radiador-card:hover .radiador-image img {
    transform: scale(1.05);
}

.radiador-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #eb2525;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.radiador-content {
    padding: 24px;
}

.radiador-codigo {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.radiador-nome {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
    line-height: 1.4;
}

.radiador-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.spec-item {
    font-size: 0.875rem;
}

.spec-label {
    color: #6b7280;
    font-weight: 500;
}

.spec-value {
    color: #111827;
    font-weight: 600;
}

.radiador-preco {
    font-size: 1.25rem;
    font-weight: 700;
    color: #eb2525;
    margin-bottom: 16px;
}

.radiador-actions {
    display: flex;
    gap: 12px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.875rem;
    flex: 1;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
}

.close {
    position: absolute;
    top: 16px;
    right: 24px;
    color: #6b7280;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.close:hover {
    color: #111827;
}

.modal-header {
    padding: 32px 32px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.modal-header p {
    color: #6b7280;
    font-weight: 500;
}

.modal-body {
    padding: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.galeria-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.galeria-main {
    position: relative;
    background: #f9fafb;
    border-radius: 8px;
    overflow: hidden;
}

.galeria-main img {
    width: 100%;
    height: 400px;
    object-fit: contain;
}

.galeria-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 16px;
    transform: translateY(-50%);
}

.galeria-controls button {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.galeria-controls button:hover {
    background: rgba(0, 0, 0, 0.7);
}

.galeria-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.thumbnail.active {
    border-color: #eb2525;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.produto-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.detail-item strong {
    color: #374151;
    font-weight: 600;
}

.detail-item span {
    color: #111827;
    font-weight: 500;
}

.preco {
    font-size: 1.25rem;
    font-weight: 700;
    color: #eb2525 !important;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.modal-actions .btn {
    flex: 1;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estados de carregamento */
.loading {
    text-align: center;
    padding: 60px 0;
    color: #6b7280;
}

.no-results {
    text-align: center;
    padding: 60px 0;
    color: #6b7280;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

/* Responsivo */
@media (max-width: 768px) {
    .radiadores-hero h1 {
        font-size: 2rem;
    }
    
    .filtros-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .radiadores-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px;
    }
    
    .galeria-main img {
        height: 300px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .radiador-specs {
        grid-template-columns: 1fr;
    }
    
    .radiador-actions {
        flex-direction: column;
    }
    
    .filtros-buttons {
        justify-content: center;
    }
}
