* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #f0f2f5;
    color: #333;
}

header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 30px;
    text-align: center;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

header p {
    opacity: 0.85;
}

main {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    main { grid-template-columns: 1fr; }
}

section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #444;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.campo {
    margin-bottom: 15px;
}

.campo label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #555;
}

.campo input,
.campo textarea,
.campo select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border 0.2s;
}

.campo input:focus,
.campo textarea:focus,
.campo select:focus {
    outline: none;
    border-color: #667eea;
}

.campo textarea {
    height: 90px;
    resize: vertical;
}

.linha {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.marketplaces {
    background: #f8f9ff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.marketplaces h3 {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #555;
}

.opcoes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.opcoes label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    cursor: pointer;
}

button[type="submit"] {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

button[type="submit"]:hover {
    opacity: 0.9;
}

.produto-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 12px;
    transition: box-shadow 0.2s;
}

.produto-card:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}

.produto-card img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.produto-info {
    flex: 1;
}

.produto-info h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.produto-info p {
    font-size: 0.82rem;
    color: #777;
    margin-bottom: 8px;
}

.produto-detalhes {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.preco {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
}

.estoque {
    background: #e3f2fd;
    color: #1565c0;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.82rem;
}

.categoria {
    background: #f3e5f5;
    color: #6a1b9a;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.82rem;
}

.deletar {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.deletar:hover {
    opacity: 1;
}

.vazio {
    text-align: center;
    color: #aaa;
    padding: 30px;
}
.conexoes {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.conectado {
    background: #e8f5e9;
    color: #2e7d32;
}

.desconectado {
    background: #fff3e0;
    color: #e65100;
    cursor: pointer;
    transition: opacity 0.2s;
}

.desconectado:hover {
    opacity: 0.8;
}

.opcoes small {
    color: #aaa;
    font-size: 0.75rem;
}