/* Reset e Estilos Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #006994;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo h1 {
    font-size: 1.5rem;
}

header .admin-login a {
    color: white;
    text-decoration: none;
    margin-left: 10px;
}

/* Banner */
.banner {
    width: 100%;
    margin-bottom: 1.5rem;
}

.banner img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
}

/* Filtros */
.filtros {
    background-color: white;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.search-bar {
    display: flex;
    margin-bottom: 1rem;
}

.search-bar input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
}

.search-bar button {
    padding: 0.5rem 1rem;
    background-color: #006994;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.filtros-avancados {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filtros-avancados select, 
.filtros-avancados button {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    flex: 1;
    min-width: 120px;
}

.filtros-avancados button {
    background-color: #006994;
    color: white;
    cursor: pointer;
}

/* Seção de Produtos */
.produtos-section {
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 1.3rem;
    color: #006994;
}

.ver-mais {
    color: #006994;
    text-decoration: none;
    font-size: 0.9rem;
}

.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.produto-card {
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.produto-card:hover {
    transform: translateY(-5px);
}

.produto-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.produto-card h3 {
    font-size: 0.9rem;
    padding: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.produto-card .marca {
    font-size: 0.8rem;
    color: #666;
    padding: 0 0.5rem;
}

.produto-card .preco {
    font-weight: bold;
    color: #006994;
    padding: 0.5rem;
}

.produto-card .ver-detalhes {
    display: block;
    width: 100%;
    padding: 0.5rem;
    background-color: #006994;
    color: white;
    border: none;
    cursor: pointer;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 1.5rem;
    width: 90%;
    max-width: 500px;
    border-radius: 5px;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Rodapé */
footer {
    background-color: #006994;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

/* Responsividade */
@media (min-width: 768px) {
    .produtos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .banner img {
        max-height: 300px;
    }
}
/* Estilos para o painel admin */
.admin-main {
    padding: 20px;
}

.mensagem {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.admin-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.admin-section {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-form {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group textarea {
    min-height: 100px;
}

.imagem-atual {
    margin-top: 10px;
}

.imagem-atual img {
    margin-top: 5px;
    border: 1px solid #ddd;
}

button[type="submit"] {
    background-color: #006994;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.cancelar {
    display: inline-block;
    margin-left: 15px;
    color: #006994;
    text-decoration: none;
}

.admin-list table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-list th,
.admin-list td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.admin-list th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.editar {
    color: #006994;
    text-decoration: none;
    margin-right: 10px;
}

.excluir {
    color: #e74c3c;
    text-decoration: none;
}

/* Responsividade */
@media (min-width: 992px) {
    .admin-sections {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* Estilos do Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
}

.modal-product {
    padding: 10px;
}

.modal-product-image {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    margin-bottom: 15px;
}

.product-description {
    margin-top: 10px;
    line-height: 1.6;
}

.error-message {
    color: #e74c3c;
    padding: 20px;
    text-align: center;
}

/* Estilos Modernos para o Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    overflow-y: auto;
    padding: 20px 0;
    box-sizing: border-box;
}

.modal-content {
    background: #ffffff;
    margin: 20px auto;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 25px;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    background: #f5f5f5;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close-modal:hover {
    color: #333;
    transform: rotate(90deg);
}

.modal-product {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-product-image {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.modal-product h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 0;
    line-height: 1.3;
}

.modal-product p {
    margin: 8px 0;
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
}

.modal-product p strong {
    color: #2c3e50;
    font-weight: 600;
}

.product-description {
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    border-left: 4px solid #3498db;
}

.error-message {
    color: #e74c3c;
    padding: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* Botão de ação */
.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.action-button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.primary-button {
    background: #3498db;
    color: white;
}

.secondary-button {
    background: #f5f5f5;
    color: #333;
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Responsividade para telas maiores */
@media (min-width: 768px) {
    .modal-content {
        padding: 40px;
    }
    
    .modal-product {
        flex-direction: row;
    }
    
    .modal-product-image {
        width: 40%;
        align-self: flex-start;
    }
    
    .modal-product-info {
        width: 60%;
        padding-left: 30px;
    }
}

/* Estilos para os botões de ação */
.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.action-button {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.secondary-button {
    background: #f5f5f5;
    color: #333;
}

.primary-button {
    background: #25D366; /* Verde do WhatsApp */
    color: white;
}

.whatsapp-button:hover {
    background: #128C7E; /* Tom mais escuro do WhatsApp */
}

.action-button i {
    font-size: 1.1em;
}

/* Remove o efeito de hover em dispositivos touch */
@media (hover: none) {
    .action-button:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Adicione ao seu style.css */
.filtros-avancados {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.filtros-avancados select {
    flex: 1;
    min-width: 150px;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.filtros-avancados button[type="submit"] {
    background-color: #006994;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.search-bar {
    display: flex;
    margin-bottom: 10px;
}

.search-bar input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
}

.search-bar button {
    background-color: #006994;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

