/* public/assets/css/admin.css */

:root {
    --admin-bg: #f5f6f8;
    --admin-card: #ffffff;
    --admin-border: #e2e5ea;
    --admin-text: #15171b;
    --admin-muted: #6b7280;
    --admin-primary: #111111;
    --admin-primary-dark: #000000;
    --admin-accent: #0a84ff;
    --admin-success: #198754;
    --admin-warning: #b45309;
    --admin-error: #b42318;
    --admin-radius: 14px;
    --admin-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    --admin-shadow-soft: 0 8px 20px rgba(15, 23, 42, 0.06);
    --admin-shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.12);
}

body {
    background:
        radial-gradient(900px 260px at 12% -8%, rgba(170, 186, 214, 0.35), transparent 60%),
        radial-gradient(700px 240px at 88% -12%, rgba(198, 218, 255, 0.35), transparent 60%),
        var(--admin-bg);
    color: var(--admin-text);
    font-family: "SF Pro Display", "SF Pro Text", "Sora", "Manrope", "Helvetica Neue", Arial, sans-serif;
}

.admin-shell {
    display: flex;
    min-height: 100vh;
}
.admin-sidebar {
    width: 240px;
    background: rgba(255, 255, 255, 0.9);
    border-right: 1px solid rgba(210, 214, 222, 0.9);
    padding: 22px 16px;
    box-shadow: 6px 0 24px rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(14px);
}
.admin-overlay {
    display: none;
}
.admin-mobile-header {
    display: none;
}
.admin-brand {
    padding: 4px 6px 10px;
    border-bottom: 1px solid var(--admin-border);
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}
.admin-loja-toggle {
    margin: 10px 10px 12px;
    padding: 12px;
    background: #f6f7fb;
    border: 1px solid rgba(210, 214, 222, 0.8);
    border-radius: var(--admin-radius);
    display: grid;
    gap: 8px;
    box-shadow: var(--admin-shadow-soft);
}
.admin-loja-label {
    font-weight: 700;
    color: #111111;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.loja-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    background: #18a558;
    box-shadow: 0 0 0 2px rgba(24, 165, 88, 0.15);
}
.loja-status-dot.fechada {
    background: #d64545;
    box-shadow: 0 0 0 2px rgba(214, 69, 69, 0.15);
}
.admin-loja-btn {
    background: linear-gradient(180deg, #2b2b2b 0%, #111111 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(17, 17, 17, 0.2);
}
.admin-logo {
    padding-bottom:20px;
    width: 170px;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}
.admin-title {
    font-size: 18px;
    font-weight: bold;
}
.admin-subtitle {
    color: var(--admin-muted);
    margin-top: 4px;
}
.admin-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}
.admin-menu a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: #2c3240;
    font-weight: bold;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}
.admin-menu a.whatsapp-alert {
    color: #b91c1c;
    box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.35);
}
.admin-menu a.whatsapp-alert::after {
    content: '';
    position: absolute;
    right: 12px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
    animation: whatsappPulse 1.4s ease-out infinite;
}
 .admin-menu a.menu-print-offline {
    color: #b91c1c;
    box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.35);
}
.admin-menu a.menu-print-offline::after {
    content: '';
    position: absolute;
    right: 12px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
    animation: whatsappPulse 1.4s ease-out infinite;
}
@keyframes whatsappPulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
.admin-menu a.ativo {
    background: #f2f4f7;
    color: #111111;
    box-shadow: inset 0 0 0 1px rgba(200, 204, 213, 0.7);
}
.menu-sair-form {
    margin-top: 12px;
    padding-top: 14px;
    position: relative;
}
.menu-sair-form::before {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    top: -8px;
    height: 1px;
    background: var(--admin-border);
}
.menu-sair-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: #c24b4b;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.menu-sair-btn img {
    filter: brightness(0) saturate(100%) invert(41%) sepia(26%) saturate(755%) hue-rotate(316deg) brightness(92%) contrast(88%);
}
.menu-sair-btn:hover {
    background: #ffecec;
    color: #b84444;
}
.admin-menu a:hover {
    background: #f2f4f7;
}
.admin-menu a img {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.pedidos-auto-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    font-size: 13px;
    color: #2c3240;
}
.pedidos-auto-toggle .categoria-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 48px;
    height: 28px;
}
.pedidos-auto-toggle .categoria-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.pedidos-auto-toggle .categoria-toggle-slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    border-radius: 999px;
    background: linear-gradient(135deg, #d8dbe3, #c6c9d3);
    border: 1px solid rgba(17, 17, 17, 0.12);
    transition: 0.25s ease;
    box-shadow: inset 0 1px 3px rgba(16, 24, 40, 0.18);
}
.pedidos-auto-toggle .categoria-toggle-slider::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    border-radius: 50%;
    transition: 0.25s ease;
    box-shadow: 0 8px 16px rgba(16, 24, 40, 0.2);
}
.pedidos-auto-toggle .categoria-toggle input:checked + .categoria-toggle-slider {
    background: linear-gradient(135deg, #000000, #000000);
    border-color: rgba(0, 0, 0, 0.7);
}
.pedidos-auto-toggle .categoria-toggle input:checked + .categoria-toggle-slider::after {
    transform: translate(22px, -50%);
}
.admin-main {
    flex: 1;
}

main.conteudo {
    background: var(--admin-card);
    border: 1px solid rgba(210, 214, 222, 0.9);
    border-radius: calc(var(--admin-radius) + 2px);
    padding: 24px;
    margin-top: 22px;
    box-shadow: var(--admin-shadow);
    max-width: none;
    width: 70%;
}
.admin-conteudo {
    margin: 22px;
    max-width: none;
    width: calc(100% - 44px);
}

.admin-card {
    background: #ffffff;
    border: 1px solid rgba(210, 214, 222, 0.9);
    border-radius: calc(var(--admin-radius) + 2px);
    padding: 18px;
    box-shadow: var(--admin-shadow-soft);
    margin-bottom: 18px;
}
.admin-lista {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}
.admin-lista-item {
    padding: 12px 14px;
    border: 1px solid rgba(210, 214, 222, 0.9);
    border-radius: 12px;
    background: #f7f8fb;
    font-weight: 600;
    width: 100%;
    text-align: left;
    cursor: pointer;
    appearance: none;
    color: #111111;
}
.admin-lista-sort .categoria-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: default;
    user-select: none;
}
.admin-lista-sort .categoria-btn {
    background: transparent;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-align: left;
    flex: 1;
    box-shadow: none;
    border-radius: 0;
}
.admin-lista-sort .categoria-btn:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
}
.admin-lista-sort .categoria-item-sistema .categoria-btn {
    cursor: default;
    opacity: 0.9;
}
.admin-lista-sort .categoria-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    background: #f4f5f7;
    border: 1px solid rgba(210, 214, 222, 0.9);
    padding: 4px 8px;
    border-radius: 10px;
    color: #555;
}
.admin-lista-sort .categoria-toggle-form {
    margin-left: auto;
}
.admin-lista-sort .categoria-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 44px;
    height: 24px;
}
.admin-lista-sort .categoria-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.admin-lista-sort .categoria-toggle-slider {
    position: absolute;
    inset: 0;
    background: #d6dbe4;
    border-radius: 999px;
    transition: background 0.2s ease;
}
.admin-lista-sort .categoria-toggle-slider::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.admin-lista-sort .categoria-toggle input:checked + .categoria-toggle-slider {
    background: #111111;
}
.admin-lista-sort .categoria-toggle input:checked + .categoria-toggle-slider::after {
    transform: translateX(20px);
}
.horarios-grid {
    display: grid;
    gap: 10px;
    margin: 10px 0 12px;
}
.horario-simples {
    display: grid;
    grid-template-columns: 44px 1fr 1fr;
    gap: 10px;
    align-items: center;
    margin: 8px 0 12px;
}
.minha-loja-card .categoria-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 48px;
    height: 28px;
}
.minha-loja-card {
    position: relative;
}
.minha-loja-card .toggle-corner {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.minha-loja-card .toggle-corner span {
    margin-left: 0 !important;
}
.minha-loja-card .categoria-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.minha-loja-card .categoria-toggle-slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    border-radius: 999px;
    background: linear-gradient(135deg, #d8dbe3, #c6c9d3);
    border: 1px solid rgba(17, 17, 17, 0.12);
    transition: 0.25s ease;
    box-shadow: inset 0 1px 3px rgba(16, 24, 40, 0.18);
}
.minha-loja-card .categoria-toggle-slider::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    border-radius: 50%;
    transition: 0.25s ease;
    box-shadow: 0 8px 16px rgba(16, 24, 40, 0.2);
}
.minha-loja-card .categoria-toggle input:checked + .categoria-toggle-slider {
    background: linear-gradient(135deg, #000000, #000000);
    border-color: rgba(0, 0, 0, 0.7);
}
.minha-loja-card .categoria-toggle input:checked + .categoria-toggle-slider::after {
    transform: translate(22px, -50%);
}
.minha-loja-card .categoria-toggle input:focus + .categoria-toggle-slider {
    box-shadow: 0 0 0 3px rgba(136, 137, 136, 0.2);
}
.horario-simples input {
    width: 100%;
}
.horario-linha {
    display: grid;
    grid-template-columns: 26px 1fr 1fr 1fr 32px;
    gap: 10px;
    align-items: center;
    background: #f7f8fb;
    border: 1px solid rgba(210, 214, 222, 0.9);
    border-radius: 12px;
    padding: 10px;
}
.horario-linha.dragging {
    opacity: 0.6;
}
.horario-linha select,
.horario-linha input {
    width: 100%;
}
.categorias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
    margin-top: 8px;
}
.categoria-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid rgba(210, 214, 222, 0.9);
    border-radius: 12px;
    background: #fff;
    font-size: 13px;
}
.categoria-check input {
    accent-color: #111111;
}
.texto-ajuda {
    color: var(--muted);
    font-size: 13px;
    margin-top: 6px;
}
.btn-remover-linha {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid rgba(210, 214, 222, 0.9);
    background: #fff;
    color: #b42318;
    font-weight: 700;
    cursor: pointer;
}
.btn-remover-linha.btn-remover-horario {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid #d9dde6;
    background: linear-gradient(180deg, #ffffff, #f3f5f9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: inherit;
    box-shadow: 0 2px 6px rgba(18, 24, 40, 0.08);
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
.btn-remover-linha.btn-remover-horario img {
    width: 12px;
    height: 12px;
    opacity: 0.72;
}
.btn-remover-linha.btn-remover-horario:hover {
    border-color: #c5ccd9;
    background: #eef2f7;
    box-shadow: 0 4px 10px rgba(18, 24, 40, 0.12);
}
.btn-remover-linha.btn-remover-horario:active {
    transform: translateY(1px);
}
.admin-lista-sort .categoria-drag {
    width: 26px;
    height: 26px;
    border-radius: 10px;
    background: #e7ebf4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: grab;
    user-select: none;
}

/* Faturas */
.faturas-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.faturas-sub {
    color: var(--admin-muted);
    margin-top: 6px;
}
.faturas-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.faturas-meta-card {
    min-width: 130px;
    background: #f7f8fb;
    border: 1px solid rgba(210, 214, 222, 0.9);
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: var(--admin-shadow-soft);
}
.faturas-meta-card strong {
    display: block;
    font-size: 18px;
    line-height: 1.1;
}
.faturas-meta-card span {
    color: #4b5563;
    font-size: 12px;
}
.faturas-tabela td {
    vertical-align: middle;
}
.faturas-id {
    display: inline-flex;
    padding: 4px 8px;
    border: 1px solid rgba(210, 214, 222, 0.9);
    border-radius: 999px;
    font-size: 12px;
    background: #fff;
}
.faturas-ref {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #2f3a8f;
    font-weight: 700;
    font-size: 12px;
}
.faturas-valor {
    color: #0f5132;
}
.faturas-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(210, 214, 222, 0.9);
    background: #ffffff;
    color: #111827;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
}
.faturas-link:hover {
    background: #f3f5f9;
}
.admin-paginacao {
    margin-top: 14px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.admin-paginacao a,
.admin-paginacao span {
    min-width: 34px;
    height: 34px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #111827;
    background: #fff;
    padding: 0 10px;
    font-size: 12px;
}
.admin-paginacao a:hover {
    background: #f3f5f9;
}
.admin-paginacao .atual {
    background: #111827;
    color: #fff;
    border-color: #111827;
}
.faturas-foot {
    margin-top: 12px;
    color: #374151;
    font-size: 13px;
}
.admin-lista-sort .categoria-item.dragging {
    opacity: 0.6;
    background: #eef2fb;
}
.preco-promocional {
    color: #198754;
    font-weight: 700;
    margin-right: 8px;
}
.preco-base-riscado {
    color: #666666;
    font-size: 12px;
    text-decoration: line-through;
}
.preco-base-normal {
    color: #111111;
    font-weight: 600;
}




.loja-logo-preview {
    width: 140px;
    height: 140px;
    border: 1px solid rgba(210, 214, 222, 0.9);
    border-radius: calc(var(--admin-radius) + 2px);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.loja-logo-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
.loja-logo-wrap .logo-capa {
    width: 220px;
    height: 140px;
    max-width: 100%;
    margin: 10px 0 12px;
}
.loja-logo-wrap .logo-form .form-acoes {
    justify-content: flex-start;
    margin-top: 8px;
}
.minha-loja-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    font-family: "Sora", "Manrope", "Noto Sans", sans-serif;
}
.minha-loja-config {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.minha-loja-card {
    margin-bottom: 0;
    padding: 22px 24px;
    border-radius: calc(var(--admin-radius) + 4px);
    border: 1px solid rgba(210, 214, 222, 0.9);
    box-shadow: var(--admin-shadow);
}
.minha-loja-card h3 {
    font-size: 16px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.minha-loja-card h4 {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5b6171;
}
.minha-loja-layout input,
.minha-loja-layout select,
.minha-loja-layout button,
.minha-loja-layout textarea {
    font-family: inherit;
}
.minha-loja-layout .form-grupo {
    margin-bottom: 0;
}
.minha-loja-layout .form-acoes {
    margin-top: 14px;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
}
.form-grid .span-2 {
    grid-column: span 2;
}
.loja-logo-wrap {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}
.loja-logo-wrap .logo-capa {
    width: 220px;
    height: 140px;
    margin: 0;
    border-radius: calc(var(--admin-radius) + 4px);
    background: #f4f6fa;
}
.imagem-capa {
    border-radius: 18px;
}
.imagem-capa-overlay {
    border-radius: 18px;
    backdrop-filter: blur(6px);
}
.form-endereco-loja input,
.form-endereco-loja select {
    background: #fbfbfd;
}
.horario-simples {
    background: #f7f8fc;
    border: 1px solid #e6e9f0;
    border-radius: calc(var(--admin-radius) + 2px);
    padding: 12px;
    gap: 10px;
}
.horario-simples.horario-atalho {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
}
.horario-simples.horario-atalho label {
    grid-column: 1 / -1;
    margin-bottom: 2px;
}
.horario-simples.horario-atalho input[type="time"] {
    min-width: 0;
}
.horario-simples.horario-atalho .atalho-acoes {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.horario-simples.horario-atalho .atalho-acoes .botao-secundario {
    width: 100%;
    min-width: 0;
}
.horarios-grid {
    gap: 10px;
}
.horario-linha {
    background: #ffffff;
    border: 1px solid #e6e9f0;
    border-radius: 12px;
    padding: 10px;
}
.horario-linha select,
.horario-linha input[type="time"] {
    background: #fbfbfd;
}
.taxa-bairro-grid {
    display: grid;
    gap: 10px;
    margin-bottom: 10px;
}
.taxa-bairro-linha {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(120px, 0.5fr) auto auto;
    gap: 10px;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e6e9f0;
    border-radius: 12px;
    padding: 10px;
}
.taxa-bairro-linha input[type="text"] {
    background: #fbfbfd;
}
.taxa-bairro-ativo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #2f3647;
}
@media (max-width: 1100px) {
    .minha-loja-config {
        grid-template-columns: 1fr;
    }
    .loja-logo-wrap {
        grid-template-columns: 1fr;
    }
    .loja-logo-wrap .logo-capa {
        width: 100%;
        height: 160px;
    }
    .taxa-bairro-linha {
        grid-template-columns: 1fr 1fr auto auto;
    }
    .horario-simples.horario-atalho .atalho-acoes {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-grid .span-2 {
        grid-column: span 1;
    }
    .taxa-bairro-linha {
        grid-template-columns: 1fr;
    }
}
.categoria-modal {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1000;
}
.categoria-modal-card {
    background: #ffffff;
    border-radius: calc(var(--admin-radius) + 4px);
    width: min(980px, 95vw);
    height: auto;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--admin-shadow-lg);
    display: flex;
    flex-direction: column;
    
}
.categoria-modal-card form {
    display: flex;
    flex-direction: column;
    flex: 0 1 auto;
    min-height: 0;
}
.categoria-modal-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--admin-border);
    gap: 12px;
}
.categoria-modal-acoes {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.categoria-modal-acoes .botao-secundario {
    padding: 6px 10px;
    font-size: 12px;
}
.categoria-modal-fechar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: #111111;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.categoria-produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 220px);
    gap: 14px;
    padding: 18px 20px;
    overflow-y: auto;
    flex: 0 1 auto;
    min-height: 0;
    justify-content: start;
    align-content: start;
    max-height: calc(90vh - 200px);
}
.produto-seletor {
    border: 1px solid rgba(210, 214, 222, 0.9);
    border-radius: 12px;
    padding: 0 0 14px;
    background: #ffffff;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    height: 199px;
}
.produto-seletor-img {
    display: block;
    flex-shrink: 0;
    margin-bottom: 8px;
    height: 140px;
}
.produto-seletor:hover {
    background: #ffffff;
    color: #1e2230;
    transform: none;
}
.produto-seletor:hover {
    border-color: #c4c9d6;
    box-shadow: var(--admin-shadow-soft);
}
.produto-seletor.selecionado {
    border-color: #1f7a44;
    box-shadow: 0 0 0 2px rgba(31, 122, 68, 0.2);
    background: #111111;
    color: #ffffff;
}
.produto-seletor-nome {
    padding: 0 14px;
    font-weight: 700;
    color: #1e2230;
}
.produto-seletor.selecionado .produto-seletor-nome {
    color: #ffffff;
}
.produto-seletor-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 0;
    background: #eef1f6;
}
.produto-seletor-img-vazio {
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #6b7280;
}
.categoria-modal .form-acoes {
    padding: 12px 20px 18px;
    border-top: 1px solid var(--admin-border);
    justify-content: flex-end;
}

h1, h2, h3 {
    color: #151827;
}
h2 {
    margin-bottom: 12px;
}

.alerta {
    padding: 12px 16px;
    border-radius: 10px;
    margin: 10px 0 18px;
    font-weight: bold;
    border: 1px solid transparent;
}
.alerta.sucesso {
    background: #e7f6ec;
    color: var(--admin-success);
    border-color: #bfe6cf;
}
.alerta.erro {
    background: #fdecea;
    color: var(--admin-error);
    border-color: #f5c6cb;
}

.tabela {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
    background: #fff;
    border: 1px solid rgba(210, 214, 222, 0.9);
    border-radius: calc(var(--admin-radius) + 2px);
    overflow: hidden;
}
.tabela th,
.tabela td {
    border-bottom: 1px solid var(--admin-border);
    padding: 12px 14px;
    text-align: left;
    vertical-align: middle;
}
.tabela th {
    background: #f3f5f8;
    color: #2a2f3a;
    font-size: 13px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.tabela tr:hover td {
    background: #f6f8fb;
}
.tabela img {
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.15);
}

.botao-criar,
.botao-primario,
.botao-secundario,
.btn,
button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.botao-criar,
.botao-primario,
.btn,
button {
    background: linear-gradient(180deg, #2b2b2b 0%, #111111 100%);
    color: #fff;
    box-shadow: 0 10px 20px rgba(17, 17, 17, 0.18);
}
.botao-criar:hover,
.botao-primario:hover,
.btn:hover,
button:hover {
    background: #0a0a0a;
    transform: translateY(-1px);
    color: #fff;
    box-shadow: 0 12px 24px rgba(17, 17, 17, 0.22);
}
.btn-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

.botao-secundario {
    background: #f0f2f6;
    color: #1f2937;
    border: 1px solid rgba(210, 214, 222, 0.9);
}
.botao-secundario:hover {
    background: #e7eaf1;
}

a {
    color: var(--admin-primary);
}
a:hover {
    color: var(--admin-primary-dark);
}

.form-grupo {
    margin-bottom: 16px;
}
.form-grupo label {
    display: block;
    margin-bottom: 6px;
    color: var(--admin-muted);
    font-weight: bold;
}
.form-grupo input[type="text"],
.form-grupo input[type="number"],
.form-grupo input[type="file"],
.form-grupo textarea,
.form-grupo select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid rgba(210, 214, 222, 0.9);
    border-radius: 12px;
    font-size: 14px;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input-imagem-oculto {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.imagem-capa {
    position: relative;
    width: 260px;
    height: 160px;
    border-radius: 14px;
    overflow: hidden;
    background: #f2f4f8;
    border: 1px solid rgba(210, 214, 222, 0.9);
}
.imagem-capa-vazia {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--admin-muted);
    font-weight: 600;
    margin-bottom: 12px;
}
.imagem-capa-vazia img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.imagem-preview-text {
    font-size: 12px;
}
.imagem-capa.ajuste-ativo::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.35) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.35) 1px, transparent 1px);
    background-size: 25% 25%;
    pointer-events: none;
    opacity: 0.7;
}
.imagem-capa img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.imagem-capa.ajuste-ativo img {
    cursor: grab;
}
.imagem-capa.ajuste-ativo img:active {
    cursor: grabbing;
}
.imagem-capa.ajuste-ativo .imagem-capa-overlay {
    opacity: 0;
    pointer-events: none;
}
.imagem-capa.ajuste-ativo:hover .imagem-capa-overlay {
    opacity: 0;
}
.btn-salvar-ajuste {
    display: none;
    margin-top: 10px;
    height: 36px;
    padding: 0 16px;
}
.imagem-capa.ajuste-ativo + .btn-salvar-ajuste {
    display: inline-flex;
}
.imagem-capa-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(17, 24, 39, 0.55);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.imagem-capa:hover .imagem-capa-overlay {
    opacity: 1;
}
.imagem-capa-overlay .botao-secundario,
.imagem-capa-overlay .botao-primario {
    min-width: 110px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    gap: 8px;
    background: #fff;
    border: 1px solid #e0e6f0;
    color: #1e2230;
}
.imagem-capa-overlay img {
    width: 16px;
    height: 16px;
    filter: none;
    display: block;
}

.imagem-modal {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 20px;
}
.imagem-modal-card {
    background: #fff;
    border-radius: calc(var(--admin-radius) + 4px);
    padding: 0;
    max-width: 720px;
    width: 100%;
    box-shadow: var(--admin-shadow);
    position: relative;
    overflow: hidden;
}
.imagem-modal-card img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}
.imagem-modal-fechar {
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: #ffffff;
    width: 15px;
    height: 15px;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.2);
    font-size: 18px;
    line-height: 1;
    color: #000000;
    border: 1px solid #e0e6f0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.form-grupo input:focus,
.form-grupo textarea:focus,
.form-grupo select:focus {
    border-color: rgba(10, 132, 255, 0.7);
    box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.16);
}

.form-acoes {
    display: flex;
    gap: 10px;
    align-items: center;
}
.form-acoes-entre {
    justify-content: space-between;
}
.form-acoes-direita {
    display: flex;
    gap: 10px;
}
.botao-excluir {
    background: #fff;
    border: 1px solid rgba(210, 214, 222, 0.9);
    color: #b42318;
}
.botao-excluir:hover {
    background: #fdecea;
    border-color: #f5c6cb;
}

.admin-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.admin-page-head h2 {
    margin-bottom: 4px;
    font-size: 26px;
}
.admin-page-head .admin-subtitle {
    color: var(--admin-muted);
}
.admin-page-head .botao-criar .icon {
    font-size: 18px;
    line-height: 1;
}
.admin-head-actions {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.catalogo-import-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 1300;
}
.catalogo-import-modal.aberto {
    display: block;
}
.catalogo-import-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}
.catalogo-import-dialog {
    position: relative;
    width: min(520px, calc(100vw - 28px));
    margin: 60px auto;
    background: #fff;
    border: 1px solid rgba(210, 214, 222, 0.9);
    border-radius: 18px;
    box-shadow: var(--admin-shadow-lg);
    padding: 20px;
}
.catalogo-import-dialog h3 {
    margin: 0;
    font-size: 22px;
}
.catalogo-import-subtitle {
    margin: 4px 0 14px;
    color: var(--admin-muted);
    font-size: 14px;
}
.catalogo-import-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(210, 214, 222, 0.9);
    background: #f6f8fc;
    color: #1e2430;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.catalogo-import-close:hover {
    background: #edf1f8;
}
.catalogo-import-form {
    display: none;
    gap: 12px;
    margin-top: 12px;
}
.catalogo-import-form.mostrar {
    display: grid;
}
.catalogo-import-form .form-grupo {
    margin-bottom: 0;
}
.catalogo-import-escolha {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.catalogo-import-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.catalogo-transfer-footer {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
}

.produtos-bulk-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.produtos-bulk-area.selection-mode .produtos-bulk-bar {
    display: flex;
}
.bulk-select {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--admin-text);
    font-weight: 600;
}
.bulk-select input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #111111;
}
.bulk-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.bulk-actions .botao-secundario[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    align-items: stretch;
}
.produto-card {
    position: relative;
    border: 1px solid rgba(210, 214, 222, 0.9);
    border-radius: calc(var(--admin-radius) + 4px);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--admin-shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.produto-select {
    display: none;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(210, 214, 222, 0.9);
    border-radius: 8px;
    padding: 4px;
    align-items: center;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.08);
}
.produtos-bulk-area.selection-mode .produto-select {
    display: inline-flex;
}
.produto-select-input {
    width: 16px;
    height: 16px;
    accent-color: #111111;
}
.produto-thumb {
    display: block;
    height: 160px;
    overflow: hidden;
    background: #f2f4f8;
}
.produto-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.produto-thumb-empty {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--admin-muted);
    font-weight: bold;
}
.produto-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.produto-topo {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}
.produto-nome {
    font-weight: bold;
    color: var(--admin-text);
    text-decoration: none;
}
.produto-tipo {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f0f2f6;
    color: #2c3240;
    text-transform: capitalize;
}
.produto-preco {
    color: #1b7a46;
    font-weight: bold;
    font-size: 18px;
    margin: 8px 0 6px;
}
.produto-meta {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid transparent;
}
.status-badge.ativo {
    background: #e7f6ec;
    color: var(--admin-success);
    border-color: #bfe6cf;
}
.status-badge.inativo {
    background: #fdecea;
    color: var(--admin-error);
    border-color: #f5c6cb;
}
.produto-desc {
    color: var(--admin-muted);
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 12px;
}
.produto-acoes {
    display: flex;
    gap: 10px;
    margin-top: auto;
}
.produto-acoes .botao-secundario,
.produto-acoes .botao-status {
    background: #fff;
    border: 1px solid rgba(210, 214, 222, 0.9);
    color: #1e2230;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.08);
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 14px;
}
.produto-acoes .botao-icon {
    padding-left: 16px;
    padding-right: 20px;
}
.produto-acoes .botao-status {
    padding-left: 14px;
    padding-right: 16px;
}
.produto-acoes .botao-secundario:hover,
.produto-acoes .botao-status:hover {
    background: #f5f7fb;
}
.botao-icon img {
    filter: none;
    opacity: 0.9;
}
.produto-card {
    border-radius: 16px;
}
.produto-thumb {
    height: 180px;
}
.produto-body {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.botao-icon img {
    width: 16px;
    height: 16px;
    filter: grayscale(1);
}
.botao-icon {
    gap: 8px;
}
.produto-tipo {
    background: #f1f3f7;
}
.status-badge.ativo {
    background: #e7f6ec;
    color: #1f7a44;
    border-color: #bfe6cf;
}
.status-badge.inativo {
    background: #fdecea;
    color: #b42318;
    border-color: #f5c6cb;
}
.produto-acoes .botao-secundario,
.produto-acoes .botao-status {
    background: #fff;
    border: 1px solid var(--admin-border);
    color: #2c3240;
}
.produto-acoes .botao-secundario:hover,
.produto-acoes .botao-status:hover {
    background: #f4f6fb;
}
.produto-ver-topo {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.produto-ver-topo h1 {
    margin: 0;
}
.produto-ver-card {
    border: 1px solid rgba(210, 214, 222, 0.9);
    border-radius: calc(var(--admin-radius) + 4px);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--admin-shadow);
    margin-bottom: 22px;
    display: flex;
    gap: 18px;
    padding: 16px;
}
.produto-ver-banner {
    width: 42%;
    min-height: 240px;
    background: #f2f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
}
.produto-ver-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.produto-ver-banner-vazio {
    color: var(--admin-muted);
    font-weight: bold;
}
.produto-ver-info {
    padding: 8px 4px;
    flex: 1;
}
.produto-ver-desc {
    color: var(--admin-muted);
    margin: 8px 0 16px;
    line-height: 1.5;
}
.produto-ver-detalhes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px 16px;
    color: #2c3240;
    margin-bottom: 16px;
}
.produto-ver-adicionais {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.produto-ver-adicionais-vazio {
    color: var(--admin-muted);
    font-size: 13px;
}
.produto-ver-adicionais-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.produto-ver-adicional-card {
    background: #f3f5f8;
    border: 1px solid rgba(210, 214, 222, 0.9);
    border-radius: 12px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #2c3240;
}
.produto-ver-acoes {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.produto-ver-montavel {
    border: 1px solid rgba(210, 214, 222, 0.9);
    border-radius: calc(var(--admin-radius) + 2px);
    background: #fff;
    box-shadow: var(--admin-shadow);
    padding: 18px;
}
.produto-ver-grupo {
    border-top: 1px dashed rgba(210, 214, 222, 0.9);
    padding-top: 12px;
    margin-top: 12px;
}
.produto-ver-grupo:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}
.produto-ver-montavel h2 {
    margin-bottom: 10px;
}
.produto-ver-grupo h3 {
    margin-bottom: 6px;
    font-size: 16px;
}
.produto-ver-grupo ul {
    margin: 0;
    padding-left: 18px;
    color: #2c3240;
}
.produto-ver-grupo li {
    margin-bottom: 4px;
}
.produto-ver-opcoes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.produto-ver-opcao-card {
    background: #f3f5f8;
    border: 1px solid rgba(210, 214, 222, 0.9);
    border-radius: 12px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #2c3240;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.produto-ver-opcao-card small {
    color: var(--admin-muted);
    font-weight: 600;
}
.status-form {
    margin: 0;
}
.botao-status.desativar,
.botao-status.ativar {
    background: #fff;
    color: #1e2230;
    border: 1px solid rgba(210, 214, 222, 0.9);
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.08);
}
.botao-status.desativar:hover,
.botao-status.ativar:hover {
    background: #f7f9fc;
}
.produto-card.inativo .produto-thumb img {
    filter: grayscale(1);
    opacity: 0.7;
}
.produto-card.inativo .produto-nome,
.produto-card.inativo .produto-preco {
    color: var(--admin-muted);
}

.montavel-config {
    background: #f7f8fb;
    border-color: var(--admin-border);
    border-radius: 12px;
    padding: 16px;
}
.montavel-config h3 {
    margin-bottom: 8px;
}
.montavel-config .grupo-montavel {
    border: 1px solid rgba(210, 214, 222, 0.9);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    background: #fff;
}
.montavel-config .grupo-montavel .grupo-nome {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(210, 214, 222, 0.9);
    border-radius: 12px;
}
.montavel-config .grupo-opcoes {
    margin-top: 10px;
}
.montavel-config .opcao-montavel {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}
.montavel-config .opcao-montavel input[type="text"],
.montavel-config .opcao-montavel input[type="number"] {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid rgba(210, 214, 222, 0.9);
    border-radius: 12px;
}
.montavel-config .btn-remover-opcao,
.montavel-config .btn-remover-grupo {
    padding: 6px 10px;
}

.variacao-box {
    border: 1px solid rgba(210, 214, 222, 0.9);
    border-radius: 12px;
    padding: 12px;
    background: #fff;
}
.variacao-modal {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 20px;
}
.variacao-modal-card {
    background: #fff;
    border-radius: calc(var(--admin-radius) + 4px);
    padding: 16px;
    max-width: 720px;
    width: 100%;
    box-shadow: var(--admin-shadow);
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}
.variacao-modal-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.variacao-modal-fechar {
    border: none;
    background: #fff;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.2);
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e6f0;
    color: #111111;
}
.variacao-modal-fechar:hover {
    color: #ffffff;
    background: #111111;
    border-color: #111111;
}
.variacao-modal-corpo {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 70vh;
    overflow: auto;
    padding-right: 4px;
}
.variacao-modal-actions {
    margin-top: 8px;
}
.admin-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.5);
    display: none;
    z-index: 9998;
}
.admin-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.admin-modal[aria-hidden="false"],
.admin-modal-overlay[aria-hidden="false"] {
    display: flex;
}
.admin-modal-card {
    background: #fff;
    border-radius: calc(var(--admin-radius) + 2px);
    padding: 18px;
    width: min(420px, 92vw);
    box-shadow: var(--admin-shadow-lg);
    display: grid;
    gap: 12px;
}
.admin-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.variacao-topo input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(210, 214, 222, 0.9);
    border-radius: 12px;
}
.variacao-opcao {
    display: grid;
    grid-template-columns: auto 1fr 0.6fr 0.8fr 0.8fr auto;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
    min-width: 0;
}
.variacao-opcao input {
    min-width: 0;
}
.variacao-opcao-radio {
    white-space: nowrap;
}
.variacao-opcao-texto,
.variacao-opcao-codigo-texto {
    font-weight: 600;
    color: #1e2230;
    font-size: 13px;
}
.variacao-opcao-codigo-texto {
    text-transform: uppercase;
    color: #6a7282;
}
.variacao-opcao input[type="text"],
.variacao-opcao input[type="number"] {
    padding: 8px 10px;
    border: 1px solid rgba(210, 214, 222, 0.9);
    border-radius: 12px;
}
.variacao-opcao-radio {
    font-size: 12px;
    color: var(--admin-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.variacao-ajuda {
    color: var(--admin-muted);
    font-size: 12px;
    margin-top: 8px;
}

.adicionais-modal {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 20px;
}
.adicionais-modal-card {
    background: #fff;
    border-radius: calc(var(--admin-radius) + 4px);
    padding: 16px;
    max-width: 560px;
    width: 100%;
    box-shadow: var(--admin-shadow);
}
.adicionais-modal-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.adicionais-modal-fechar {
    border: none;
    background: #fff;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.2);
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e6f0;
    color: #111111;
}
.adicionais-modal-fechar:hover {
    color: #ffffff;
    background: #111111;
    border-color: #111111;
}
.adicionais-modal-lista {
    border: 1px solid rgba(210, 214, 222, 0.9);
    border-radius: 12px;
    background: #fff;
    padding: 8px;
    max-height: 360px;
    overflow: auto;
    margin-bottom: 12px;
}
.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    border: 1px solid rgba(210, 214, 222, 0.9);
    border-radius: 12px;
    background: #ffffff;
    width: 100%;
}
.form-grupo .toggle-row {
    display: flex;
}
.toggle-row:hover {
    border-color: #cbd2df;
    box-shadow: var(--admin-shadow-soft);
}
.toggle-label {
    color: #2c3240;
    font-weight: 600;
    flex: 1;
}
.toggle-row input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.toggle-ui {
    display: inline-block;
    flex: 0 0 auto;
    width: 34px;
    height: 18px;
    background: #d4d9e4;
    border-radius: 999px;
    position: relative;
    border: 1px solid #c0c7d4;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.toggle-ui::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    top: 0.5px;
    left: 1px;
    background: #ffffff;
    border-radius: 50%;
    border: 1px solid #c6cdd8;
    box-shadow: 0 2px 6px rgba(16, 24, 40, 0.15);
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.toggle-row input[type="checkbox"]:checked + .toggle-ui {
    background: #111111;
    border-color: #111111;
}
.toggle-row input[type="checkbox"]:checked + .toggle-ui::after {
    transform: translateX(16px);
    border-color: #111111;
}
.toggle-row-inline {
    width: auto;
    padding: 4px 8px;
    gap: 8px;
}
.toggle-row-inline .toggle-label {
    font-size: 12px;
    font-weight: 600;
}
.status-form-inline {
    display: inline-block;
}
.adicional-inativo {
    opacity: 0.25;
    cursor: not-allowed;
    pointer-events: none;
}
.adicionais-modal .toggle-row.adicional-inativo {
    opacity: 0.2;
    filter: grayscale(1);
}
.adicionais-modal .toggle-row.adicional-inativo .toggle-label {
    color: #9aa3b2;
}
.adicionais-modal .toggle-row.adicional-inativo .toggle-ui {
    background: #e1e5ee;
    border-color: #d6dbe6;
}
.adicionais-modal .toggle-row.adicional-inativo .toggle-ui::after {
    border-color: #d6dbe6;
}
.toggle-row-meio {
    display: inline-flex;
    width: 180px !important;
    padding: 6px 10px;
    justify-content: space-between;
    align-self: flex-start;
}
.toggle-row-meio .toggle-label {
    flex: 0 0 auto;
}
.toggle-row-meio .toggle-ui {
    margin-left: auto;
    margin-right: 0;
}
.adicionais-modal .toggle-ui::after {
    top: 0px;
}

.btn-remover-opcao,
.btn-remover-grupo {
    background: transparent;
    color: #8a1f1f;
    border: none;
    padding: 6px;
    border-radius: 0;
}
.variacao-opcao .btn-remover-opcao {
    width: 32px;
    height: 32px;
    padding: 0;
    margin-bottom: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    
}
.btn-remover-opcao img,
.btn-remover-grupo img {
    width: 20px;
    height: 20px;
    display: block;
    width: 20px;
    height: 20px;
    display: block;
    filter: brightness(0) saturate(100%) invert(22%) sepia(91%) saturate(3618%) hue-rotate(346deg) brightness(96%) contrast(104%);
}

.btn-remover-opcao:hover,
.btn-remover-grupo:hover {
    background: transparent;
}

.btn-add-opcao,
#btn-add-grupo {
    background: #f1f3f6;
    color: #111111;
    border: 1px solid rgba(210, 214, 222, 0.9);
    padding: 8px 12px;
    border-radius: 8px;
}
#btn-add-variacao-opcao {
    margin-top: 8px;
}
.btn-add-opcao:hover,
#btn-add-grupo:hover {
    background: #e7eaf0;
}

@media (max-width: 860px) {
    .admin-shell {
        flex-direction: column;
    }
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 260px;
        z-index: 1002;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
        border-right: 1px solid var(--admin-border);
        border-bottom: none;
    }
    main.conteudo {
        margin: 12px;
        padding: 18px;
    }
    .tabela th, .tabela td {
        padding: 10px;
    }
    .admin-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        background: rgba(255, 255, 255, 0.92);
        border-bottom: 1px solid rgba(210, 214, 222, 0.9);
        position: sticky;
        top: 0;
        z-index: 1001;
        backdrop-filter: blur(14px);
    }
    .admin-mobile-title {
        font-weight: bold;
        color: var(--admin-text);
    }
    .admin-mobile-menu {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        border: 1px solid rgba(210, 214, 222, 0.9);
        background: #ffffff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #111111;
    }
    .admin-mobile-menu:hover {
        background: #ffffff;
        color: #111111;
        transform: none;
    }
    .admin-mobile-menu img {
        width: 20px;
        height: 20px;
        filter: none;
    }
    .admin-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(17, 24, 39, 0.4);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
        z-index: 1000;
    }
    body.admin-menu-open .admin-sidebar {
        transform: translateX(0);
    }
    body.admin-menu-open .admin-overlay {
        opacity: 1;
        pointer-events: auto;
    }
    .produto-ver-card {
        flex-direction: column;
    }
    .produto-ver-banner {
        width: 100%;
        min-height: 220px;
    }
}

@media (max-width: 720px) {
    .form-acoes {
        flex-direction: column;
        align-items: stretch;
    }
    .admin-page-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .admin-nav a {
        width: 100%;
        justify-content: center;
    }
    .variacao-opcao {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
}
