body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #3483fa 0%, #ff5722 50%, #ff9800 100%);
    background-attachment: fixed;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

header {
    background: linear-gradient(135deg, #ff5722 0%, #3483fa 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 20px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav a {
    color: white;
    margin: 0 20px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

nav a:hover {
    color: #ff9800;
    transform: scale(1.1);
}

main {
    padding: 30px;
    max-width: 1400px;
    margin: auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.filtros {
    background: linear-gradient(135deg, #e3f2fd 0%, #fff3e0 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.filtros form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filtros input, .filtros select, .filtros button {
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: #333;
    font-size: 16px;
    transition: all 0.3s ease;
}

.filtros input:focus, .filtros select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
    background: rgba(255, 255, 255, 0.2);
}

.filtros button {
    background: linear-gradient(135deg, #ff5722 0%, #3483fa 100%);
    color: white;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4);
    font-weight: bold;
    border: none;
}

.filtros button:hover {
    background: linear-gradient(135deg, #3483fa 0%, #ff5722 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.6);
}

.produto {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 20px;
    margin: 15px;
    display: inline-block;
    width: calc(25% - 30px);
    vertical-align: top;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.produto:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #fff8e1 0%, #e3f2fd 100%);
}

.produto img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

.produto h2 {
    font-size: 20px;
    margin: 15px 0 10px;
    color: #333;
}

.produto p {
    margin: 8px 0;
    font-size: 14px;
}

.produto .preco-anterior {
    text-decoration: line-through;
    color: #999;
}

.produto .preco-atual {
    font-weight: bold;
    color: #e74c3c;
    font-size: 18px;
}

.produto .desconto {
    background: #e74c3c;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    display: inline-block;
    margin-top: 5px;
}

.produto a {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #3483fa 0%, #1565c0 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(52, 131, 250, 0.4);
    font-weight: bold;
}

.produto a:hover {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(52, 131, 250, 0.6);
}

.produto a.ver-detalhes {
    background: linear-gradient(135deg, #ff5722 0%, #e64a19 100%);
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4);
}

.produto a.ver-detalhes:hover {
    background: linear-gradient(135deg, #e64a19 0%, #bf360c 100%);
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.6);
}

.favoritar, .compartilhar {
    position: absolute;
    top: 10px;
    background: rgba(255,255,255,0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
}

.favoritar {
    right: 60px;
}

.compartilhar {
    right: 10px;
}

.favoritar:hover, .compartilhar:hover {
    background: #007bff;
    color: white;
}

.nsfw-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e74c3c;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.produto-detalhes {
    background: white;
    padding: 30px;
    border: 1px solid #e0e0e0;
    max-width: 800px;
    margin: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 10px;
}

.produto-detalhes img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.image-gallery img {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.video-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.video-gallery video {
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}


#chat-container {
    max-width: 800px;
    margin: auto;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#chat-messages {
    height: 400px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 10px;
    background: #f9f9f9;
}

.message {
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 5px;
}

.message.user {
    background: #e3f2fd;
    text-align: right;
}

.message.ai {
    background: #f3e5f5;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-top: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

th, td {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px;
    text-align: left;
    transition: all 0.3s ease;
}

td:hover {
    background: rgba(255, 255, 255, 0.1);
}

th {
    background: linear-gradient(135deg, #ff5722 0%, #3483fa 100%);
    color: white;
    padding: 15px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    color: #ff5722;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #3483fa;
    text-decoration: underline;
}

/* Responsividade */
@media (max-width: 1024px) {
    .produto {
        width: calc(33.33% - 30px);
    }
}

@media (max-width: 768px) {
    .produto {
        width: calc(50% - 30px);
    }
    main {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .produto {
        width: calc(100% - 30px);
    }
    header {
        padding: 15px;
    }
    nav a {
        margin: 0 10px;
        display: block;
        margin-bottom: 10px;
    }
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.produto {
    animation: fadeIn 0.5s ease-out;
}

/* Dark Mode */
body.dark-mode {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #1a1a2e 100%);
    color: #ecf0f1;
}

body.dark-mode header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

body.dark-mode .produto {
    background: #34495e;
    border-color: #7f8c8d;
}

body.dark-mode #chat-messages {
    background: #2c3e50;
}

body.dark-mode .message.user {
    background: #3498db;
}

body.dark-mode .message.ai {
    background: #9b59b6;
}

/* Dark Mode Toggle */
#dark-mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff5722 0%, #3483fa 100%);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

#dark-mode-toggle:hover {
    background: linear-gradient(135deg, #3483fa 0%, #ff5722 100%);
    transform: scale(1.1);
}

/* Estilos para botões de submit em formulários */
button[type="submit"] {
    padding: 12px 20px;
    background: linear-gradient(135deg, #ff5722 0%, #3483fa 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4);
    margin-top: 10px;
}

button[type="submit"]:hover {
    background: linear-gradient(135deg, #3483fa 0%, #ff5722 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.6);
}

/* Estilos para mensagens de sucesso e erro */
.success-message {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    font-weight: bold;
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

.error-message {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
    font-weight: bold;
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

/* Estilos para formulários admin */
main form {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

main form label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

main form input[type="text"],
main form input[type="password"],
main form input[type="url"],
main form input[type="number"],
main form input[type="file"],
main form textarea,
main form select {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255, 87, 34, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    font-size: 16px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

main form input[type="text"]:focus,
main form input[type="url"]:focus,
main form input[type="number"]:focus,
main form textarea:focus,
main form select:focus {
    outline: none;
    border-color: #ff5722;
    box-shadow: 0 0 20px rgba(255, 87, 34, 0.3);
    background: rgba(255, 255, 255, 0.9);
}

main form textarea {
    resize: vertical;
    min-height: 80px;
}

.upload-btn {
    display: inline-block;
    padding: 10px 15px;
    background: linear-gradient(135deg, #ff5722 0%, #3483fa 100%);
    color: white;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 87, 34, 0.3);
}

.upload-btn:hover {
    background: linear-gradient(135deg, #3483fa 0%, #ff5722 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.5);
}