.emc-wrap .emc-card,
.emc-public .emc-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 22px;
    margin: 18px 0;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.emc-wrap label,
.emc-public label {
    display: block;
    font-weight: 700;
    margin: 14px 0 6px;
    color: #111827;
}

.emc-wrap input[type="text"],
.emc-wrap input[type="email"],
.emc-wrap input[type="url"],
.emc-wrap input[type="number"],
.emc-wrap textarea,
.emc-public input[type="text"],
.emc-public input[type="email"],
.emc-public input[type="url"],
.emc-public input[type="number"],
.emc-public textarea,
.emc-public select {
    width: 100%;
    max-width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 11px 13px;
    background: #ffffff;
}

.emc-grid {
    display: grid;
    gap: 20px;
}

.emc-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.emc-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.emc-hero {
    background: linear-gradient(135deg, #111827 0%, #3b2413 100%);
    color: #ffffff;
    padding: 34px;
    border-radius: 18px;
    margin: 20px 0;
}

.emc-hero h1,
.emc-hero p {
    color: #ffffff;
    margin-top: 0;
}

.emc-produtos-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin: 24px 0;
}

.emc-produto-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.emc-produto-card img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #f3f4f6;
}

.emc-produto-conteudo {
    padding: 18px;
}

.emc-preco {
    display: block;
    color: #9a5b13;
    font-size: 1.25rem;
    margin: 12px 0;
}

.emc-botao,
a.emc-botao,
button.emc-botao {
    display: inline-block;
    border: none;
    border-radius: 999px;
    background: #9a5b13;
    color: #ffffff !important;
    padding: 12px 20px;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

.emc-botao:hover,
a.emc-botao:hover,
button.emc-botao:hover {
    background: #70400e;
    color: #ffffff !important;
}

.emc-alerta {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    border-radius: 12px;
    padding: 16px;
    margin: 18px 0;
}

.emc-sucesso {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    border-radius: 12px;
    padding: 16px;
    margin: 18px 0;
}

.emc-numero {
    font-size: 2rem;
    font-weight: 800;
    color: #9a5b13;
    margin: 0;
}

.emc-tabela {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.emc-tabela th,
.emc-tabela td {
    border-bottom: 1px solid #e5e7eb;
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

.emc-tabela th {
    background: #f9fafb;
    color: #111827;
}

.emc-link-perigo {
    background: transparent;
    border: none;
    color: #b91c1c;
    cursor: pointer;
    text-decoration: underline;
}

.emc-card-destaque {
    border-color: #d6a85c !important;
}

@media (max-width: 900px) {
    .emc-grid-2,
    .emc-grid-3,
    .emc-produtos-grid {
        grid-template-columns: 1fr;
    }
}

.emc-botao-secundario,
a.emc-botao-secundario {
    background: #374151;
    margin-left: 8px;
}

.emc-botao-secundario:hover,
a.emc-botao-secundario:hover {
    background: #111827;
}

.emc-link-editar {
    color: #1d4ed8;
    font-weight: 700;
    text-decoration: underline;
}

/* Atualização 0.2.0: compatibilidade visual com Elementor, página individual de produto e galeria */
.emc-elementor-area {
    width: 100%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.emc-acoes-produto {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
}

.emc-acoes-produto .emc-botao-secundario,
.emc-acoes-produto a.emc-botao-secundario {
    margin-left: 0;
}

.emc-produto-detalhe-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 24px;
    align-items: start;
}

.emc-galeria-produto {
    display: grid;
    gap: 14px;
}

.emc-galeria-principal {
    display: block;
    width: 100%;
    min-height: 360px;
    max-height: 520px;
    object-fit: cover;
    border-radius: 16px;
    background: #f3f4f6;
}

.emc-galeria-miniaturas {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.emc-galeria-miniaturas img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
}

.emc-kicker {
    color: #9a5b13;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.emc-preco-grande {
    font-size: 1.7rem;
}

.emc-descricao-produto {
    margin: 18px 0;
    color: #374151;
    line-height: 1.7;
}

.emc-ajuda {
    color: #6b7280;
    font-size: 0.92rem;
    margin-top: 8px;
}

.emc-checkout-imagem {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 14px;
    background: #f3f4f6;
}

@media (max-width: 900px) {
    .emc-produto-detalhe-grid {
        grid-template-columns: 1fr;
    }

    .emc-galeria-principal {
        min-height: 260px;
    }
}

/* Atualização 0.3.0: painel profissional, status de pedidos, mídia e login do cliente */
.emc-media-linha {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.emc-preview-imagem {
    display: block;
    width: 160px;
    height: 110px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin: 8px 0 12px;
    background: #f3f4f6;
}

.emc-form-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.emc-form-inline select {
    min-width: 150px;
    width: auto;
}

.emc-botao-pequeno,
button.emc-botao-pequeno,
a.emc-botao-pequeno {
    padding: 8px 14px;
    font-size: 0.88rem;
}

.emc-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    background: #e5e7eb;
    color: #374151;
    white-space: nowrap;
}

.emc-status-novo { background: #dbeafe; color: #1e40af; }
.emc-status-aguardando_pagamento { background: #fef3c7; color: #92400e; }
.emc-status-pago { background: #dcfce7; color: #166534; }
.emc-status-em_separacao { background: #ede9fe; color: #5b21b6; }
.emc-status-enviado { background: #cffafe; color: #155e75; }
.emc-status-concluido { background: #d1fae5; color: #065f46; }
.emc-status-cancelado { background: #fee2e2; color: #991b1b; }

.emc-login-cliente {
    max-width: 680px;
    margin: 30px auto;
}

.emc-login-cliente form {
    margin-top: 18px;
}

.emc-login-cliente .login-username,
.emc-login-cliente .login-password,
.emc-login-cliente .login-remember,
.emc-login-cliente .login-submit {
    margin: 12px 0;
}

.emc-login-cliente input[type="text"],
.emc-login-cliente input[type="password"] {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 11px 13px;
}

.emc-login-cliente input[type="submit"] {
    border: none;
    border-radius: 999px;
    background: #9a5b13;
    color: #ffffff;
    padding: 12px 20px;
    font-weight: 700;
    cursor: pointer;
}

.emc-ficha-produto {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.emc-ficha-produto span {
    display: inline-flex;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    padding: 6px 10px;
    font-size: 0.88rem;
    font-weight: 700;
}

.emc-indisponivel {
    display: inline-block;
    border-radius: 999px;
    background: #fee2e2;
    color: #991b1b;
    padding: 10px 14px;
    font-weight: 800;
}

.emc-dashboard .emc-card,
.emc-checkout .emc-card,
.emc-loja .emc-card {
    overflow-x: auto;
}

@media (max-width: 700px) {
    .emc-media-linha {
        grid-template-columns: 1fr;
    }

    .emc-form-inline {
        align-items: stretch;
        flex-direction: column;
    }

    .emc-form-inline select,
    .emc-form-inline button {
        width: 100%;
    }

    .emc-tabela {
        min-width: 760px;
    }
}
