:root {
    --brand: #4f46e5;
    --brand-dark: #4338ca;
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.08), 0 1px 2px -1px rgb(0 0 0 / 0.06);
    --shadow-lg: 0 10px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.05);
}

html, body { height: 100%; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

.btn-primary {
    background: var(--brand);
    border-color: var(--brand);
}

.btn-primary:hover, .btn-primary:focus {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
}

.btn-outline-primary { color: var(--brand); border-color: var(--brand); }
.btn-outline-primary:hover { background: var(--brand); border-color: var(--brand); }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    z-index: 1040;
}

.navbar-brand { font-size: 1.4rem; color: var(--text) !important; }

.search-form { max-width: 420px; width: 100%; gap: .5rem; }

.busca-sugestoes {
    position: absolute;
    top: calc(100% + .35rem);
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: .75rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
    z-index: 1080;
    max-height: 70vh;
    overflow-y: auto;
    padding: .25rem 0;
}

.busca-sugestoes .sugestao-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem .75rem;
    text-decoration: none;
    color: var(--text);
    border-radius: .5rem;
    margin: 0 .25rem;
    transition: background-color .12s ease;
}

.busca-sugestoes .sugestao-item img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: .4rem;
    flex-shrink: 0;
    background: #f1f5f9;
}

.busca-sugestoes .sugestao-info { min-width: 0; flex: 1; }

.busca-sugestoes .sugestao-nome {
    font-size: .92rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.busca-sugestoes .sugestao-preco {
    font-size: .8rem;
    color: var(--brand);
    font-weight: 600;
}

.busca-sugestoes .sugestao-item:hover,
.busca-sugestoes .sugestao-item.ativa {
    background-color: rgba(79, 70, 229, .08);
}

.busca-sugestoes .sugestao-vazia {
    padding: .85rem 1rem;
    color: var(--text-muted, #6b7280);
    font-size: .9rem;
    font-style: italic;
}

.produto-detalhes .produto-galeria { max-width: 380px; }

.produto-detalhes .produto-titulo {
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: .25rem;
}

.produto-detalhes .produto-preco {
    font-size: 1.6rem;
    color: var(--brand);
}

@media (max-width: 992px) {
    .produto-detalhes .produto-galeria { max-width: 320px; }
}

.produto-descricao { line-height: 1.55; }
.produto-descricao h1,
.produto-descricao h2,
.produto-descricao h3,
.produto-descricao h4 { color: var(--text); margin-top: 1rem; margin-bottom: .5rem; }
.produto-descricao p { margin-bottom: .75rem; }
.produto-descricao ul,
.produto-descricao ol { padding-left: 1.5rem; margin-bottom: .75rem; }
.produto-descricao img { max-width: 100%; height: auto; border-radius: .5rem; }
.produto-descricao a { color: var(--brand); text-decoration: underline; }
.produto-descricao a:hover { color: var(--brand-strong, #4338ca); }

.hero {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border-radius: 1.5rem;
    padding: 3.5rem 2rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.hero h1 { font-weight: 800; font-size: 2.5rem; }

.banner-single {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 6;
    min-height: 260px;
    border-radius: 1.5rem;
    overflow: hidden;
    background-color: #1f2937;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-lg);
}

.banner-overlay {
    position: absolute;
    inset: 0;
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background: linear-gradient(90deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .15) 60%, rgba(0, 0, 0, 0) 100%);
    color: #fff;
    pointer-events: none; /* não bloqueia o clique no link-overlay */
}

/* Banner com link: a imagem inteira vira clicável */
.banner-clicavel { cursor: pointer; }
.banner-clicavel:hover { transform: translateY(-2px); transition: transform .2s; }
.banner-link-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    text-decoration: none;
}

.banner-titulo { font-weight: 800; font-size: 2.2rem; margin-bottom: .5rem; }
.banner-subtitulo { font-size: 1.1rem; opacity: .9; margin-bottom: 1.25rem; max-width: 60%; }

.banner-carousel { border-radius: 1.5rem; overflow: hidden; }
.banner-carousel .carousel-item { border-radius: 1.5rem; }

@media (max-width: 768px) {
    .banner-single { min-height: 200px; }
    .banner-titulo { font-size: 1.5rem; }
    .banner-subtitulo { font-size: .95rem; max-width: 90%; }
    .banner-overlay { padding: 1.25rem 1.5rem; }
}

.filtro-categorias a {
    display: block;
    padding: .5rem .75rem;
    border-radius: .5rem;
    color: var(--text);
    text-decoration: none;
    font-size: .95rem;
    transition: background-color .15s ease, color .15s ease;
}

.filtro-categorias a:hover {
    background-color: var(--border);
}

.filtro-categorias a.ativo {
    background-color: #4f46e5;
    color: #fff;
    font-weight: 600;
}

.filtro-categorias .sub a {
    font-size: .9rem;
    padding: .35rem .75rem;
    color: var(--text-muted, #6b7280);
}

.filtro-categorias .sub a.ativo {
    background-color: rgba(79, 70, 229, .12);
    color: #4f46e5;
}

.categorias-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 64px;
    z-index: 1020;
}

.categorias-bar .container { position: relative; }

.categorias-lista {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: .25rem;
    scrollbar-width: thin;
}

.categorias-lista::-webkit-scrollbar { height: 4px; }
.categorias-lista::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

.categoria-item {
    position: static;
    flex-shrink: 0;
}

.categoria-item > a {
    display: flex;
    align-items: center;
    gap: .25rem;
    padding: .75rem 1rem;
    color: var(--text);
    text-decoration: none;
    font-size: .92rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color .15s ease, border-color .15s ease;
}

.categoria-item > a:hover,
.categoria-item:hover > a { color: var(--brand); }

.categoria-item > a.ativo {
    color: var(--brand);
    border-bottom-color: var(--brand);
    font-weight: 600;
}

.categoria-megamenu {
    position: absolute;
    top: 100%;
    left: 12px;
    right: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 .75rem .75rem;
    box-shadow: 0 18px 36px rgba(0, 0, 0, .08);
    padding: 1.25rem 1.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 1050;
}

.categoria-item.tem-sub:hover .categoria-megamenu,
.categoria-item.tem-sub:focus-within .categoria-megamenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.categoria-megamenu .megamenu-titulo {
    font-weight: 700;
    color: var(--text);
    margin-bottom: .75rem;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--brand);
}

.categoria-megamenu .megamenu-lista {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: .35rem .75rem;
}

.categoria-megamenu .megamenu-lista a {
    display: block;
    color: var(--text);
    text-decoration: none;
    padding: .35rem .5rem;
    border-radius: .35rem;
    font-size: .92rem;
    transition: background-color .12s ease, color .12s ease;
}

.categoria-megamenu .megamenu-lista a:hover { background-color: rgba(79, 70, 229, .08); color: var(--brand); }
.categoria-megamenu .megamenu-lista a.ativo { color: var(--brand); font-weight: 600; }

.categoria-megamenu .megamenu-todos {
    font-weight: 600;
    color: var(--brand) !important;
}

@media (max-width: 768px) {
    .categorias-bar { top: 56px; }
    .categoria-megamenu { display: none; }
}

.whatsapp-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(37, 211, 102, .45);
    z-index: 1050;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.whatsapp-fab:hover,
.whatsapp-fab:focus {
    color: #fff;
    background-color: #1ebe5b;
    transform: scale(1.06);
    box-shadow: 0 8px 22px rgba(37, 211, 102, .55);
}

.whatsapp-fab::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid #25d366;
    opacity: .6;
    animation: whatsapp-pulse 2s ease-out infinite;
}

@keyframes whatsapp-pulse {
    0%   { transform: scale(.85); opacity: .55; }
    70%  { transform: scale(1.25); opacity: 0; }
    100% { transform: scale(1.25); opacity: 0; }
}

@media (max-width: 576px) {
    .whatsapp-fab { width: 52px; height: 52px; font-size: 1.7rem; bottom: 18px; right: 18px; }
}

.config-menu-list .config-menu-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1.25rem;
    color: var(--text);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.config-menu-list .config-menu-item i {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
}

.config-menu-list .config-menu-item:hover {
    background-color: rgba(79, 70, 229, .07);
}

.config-menu-list .config-menu-item.ativo {
    background-color: rgba(79, 70, 229, .12);
    border-left-color: #4f46e5;
    color: #4f46e5;
    font-weight: 600;
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-card .product-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f1f5f9;
}

.product-card .product-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.product-card:hover .product-image img { transform: scale(1.05); }

.product-card .product-body {
    padding: 1rem;
    display: flex; flex-direction: column;
    flex-grow: 1;
}

.product-card .product-title {
    font-weight: 600; font-size: 1rem;
    margin-bottom: .25rem; color: var(--text);
}

.product-card .product-price {
    font-weight: 700; font-size: 1.25rem;
    color: var(--brand); margin-bottom: 1rem;
}

.card-modern {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 2.5rem 0 1.5rem;
    margin-top: 4rem;
}

.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--brand); }

/* === Footer moderno (com newsletter + 4 colunas) === */
.site-footer-novo {
    background: #1a1a1a; /* grafite escuro */
    color: rgba(255, 255, 255, .72);
    margin-top: 4rem;
}

.site-footer-novo a {
    color: rgba(255, 255, 255, .72);
    text-decoration: none;
    transition: color .15s;
}
.site-footer-novo a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-newsletter {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    padding: 1.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.footer-newsletter h5 { color: #fff; margin: 0; }

.footer-newsletter-form {
    width: 100%;
    max-width: 520px;
    align-items: center;
}
.footer-newsletter-form .form-control {
    flex: 1 1 auto;
    border: 0;
    background: rgba(255, 255, 255, .95);
    padding: .65rem 1rem;
    border-radius: .5rem;
    height: auto;
}
.footer-newsletter-form .form-control:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
    background: #fff;
}
.footer-newsletter-form .btn {
    flex: 0 0 auto;
    padding: .55rem 1.4rem;
    border-radius: .5rem;
    color: var(--brand);
    background: #fff;
    border: 0;
    white-space: nowrap;
}
.footer-newsletter-form .btn:hover { background: #f1f5f9; color: var(--brand-dark); }

.footer-brand {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
}

.footer-descricao {
    color: rgba(255, 255, 255, .65);
    line-height: 1.55;
}

.footer-titulo {
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 1rem;
}

.footer-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-lista li { margin-bottom: .5rem; font-size: .9rem; }

.footer-link-btn {
    color: rgba(255, 255, 255, .72) !important;
    text-decoration: none !important;
    font-size: .9rem;
    border: 0;
    background: transparent;
}
.footer-link-btn:hover { color: #fff !important; }

.footer-social {
    margin-top: .25rem;
}
.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff !important;
    font-size: 1.05rem;
    transition: all .15s;
}
.footer-social-icon:hover {
    background: var(--brand);
    transform: translateY(-2px);
}

.footer-pagamentos {
    border-top: 1px solid rgba(255, 255, 255, .08);
}
.footer-pagamentos .footer-titulo {
    margin-bottom: 1rem;
}
.pagamento-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    height: 36px;
    padding: 0 .65rem;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
    transition: transform .15s ease;
}
.pagamento-chip:hover {
    transform: translateY(-2px);
}
.pagamento-marca {
    font-weight: 800;
    font-size: .85rem;
    letter-spacing: .03em;
    line-height: 1;
    font-family: "Inter", system-ui, sans-serif;
}

.footer-bottom {
    background: #0a0a0a; /* preto */
    padding: 1rem 0;
    color: rgba(255, 255, 255, .55);
    border-top: 1px solid rgba(255, 255, 255, .06);
}
.footer-bottom strong { color: rgba(255, 255, 255, .85); }

@@media (max-width: 575.98px) {
    .footer-newsletter-form {
        flex-direction: column;
        align-items: stretch;
    }
    .footer-newsletter-form .btn {
        width: 100%;
    }
}

.badge-status {
    font-size: .75rem; font-weight: 600;
    padding: .35em .7em; border-radius: .5rem;
}

.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
    align-items: start;
}

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

.admin-sidebar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1rem;
    position: sticky;
    top: 90px;
}

.admin-sidebar .nav-link {
    color: var(--text);
    border-radius: .5rem;
    padding: .6rem .8rem;
    margin-bottom: .25rem;
    font-weight: 500;
}

.admin-sidebar .nav-link:hover { background: #f1f5f9; }
.admin-sidebar .nav-link.active { background: var(--brand); color: #fff; }

.admin-sidebar .submenu-admin {
    margin: .25rem 0 .5rem 1.5rem;
    border-left: 2px solid var(--border);
    padding-left: .5rem;
}

.admin-sidebar .submenu-admin .nav-link {
    padding: .4rem .65rem;
    font-size: .9rem;
    margin-bottom: 0;
    font-weight: 500;
}

.admin-sidebar .submenu-admin .nav-link.active {
    background: rgba(79, 70, 229, .12);
    color: #4f46e5;
}

.admin-sidebar [data-bs-toggle="collapse"][aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
    transition: transform .2s ease;
}

.admin-sidebar [data-bs-toggle="collapse"] .bi-chevron-down {
    transition: transform .2s ease;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.stat-card .stat-label {
    color: var(--muted);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 600;
}

.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    margin-top: .25rem;
}

.table-modern {
    background: var(--surface);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border);
}

.table-modern thead th {
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    text-transform: uppercase;
    font-size: .75rem;
    letter-spacing: .05em;
    color: var(--muted);
}

/* Aparência da loja - color picker + preview */
.cor-input-group .form-control-color {
    flex: 0 0 56px;
    width: 56px;
    height: calc(2.5rem + 2px);
    padding: .25rem;
    border-right: 0;
    cursor: pointer;
}

.cor-input-group .cor-hex {
    font-family: 'Inter', monospace;
    text-transform: lowercase;
}

.cor-input-group .btn {
    border-left: 0;
}

.cor-preview {
    margin-top: 1.5rem;
    padding: 1rem;
    border: 1px dashed var(--border);
    border-radius: .75rem;
    background: #fafbfc;
}

.cor-preview-titulo {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
    margin-bottom: .75rem;
}

.cor-preview-box {
    border-radius: .75rem;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
}

.cor-preview-header {
    background: #fff;
    padding: .75rem 1rem;
    border-bottom: 1px solid #eaecef;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: .95rem;
}

.cor-preview-header strong {
    color: var(--text);
    flex: 0 0 auto;
}

.cor-preview-link {
    color: var(--brand);
    font-weight: 500;
    cursor: pointer;
    font-size: .9rem;
}

.cor-preview-conteudo {
    padding: 1.25rem 1rem;
    color: var(--text);
}

.cor-preview-btn {
    background: var(--brand);
    color: #fff;
    border: 0;
    border-radius: .5rem;
    padding: .5rem 1rem;
    font-weight: 500;
    cursor: default;
}

/* === Minhas Compras === */

/* Cards de resumo no topo */
.resumo-card { transition: transform .15s, box-shadow .15s; }
.resumo-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.resumo-icone {
    width: 48px; height: 48px;
    border-radius: .75rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Badges de status */
.pedido-status {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .65rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    border: 1px solid transparent;
}
.pedido-status-grande { font-size: .95rem; padding: .5rem .9rem; }
.pedido-status.status-pendente { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.pedido-status.status-aprovado { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.pedido-status.status-processamento { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.pedido-status.status-enviado { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.pedido-status.status-entregue { background: #dcfce7; color: #166534; border-color: #86efac; }
.pedido-status.status-cancelado { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }

/* Card de pedido na listagem */
.pedido-card { overflow: hidden; transition: box-shadow .15s, transform .15s; }
.pedido-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.pedido-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: #fafbfc;
    display: flex; justify-content: space-between; align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}
.pedido-card-body {
    padding: 1.25rem;
    display: flex; justify-content: space-between; align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.pedido-card-resumo { text-align: right; }
.pedido-card-footer {
    padding: .75rem 1.25rem;
    border-top: 1px solid var(--border);
    background: #fafbfc;
    display: flex; gap: .5rem; flex-wrap: wrap;
}

/* Preview de itens (miniaturas) */
.pedido-itens-preview { display: flex; gap: .5rem; flex-wrap: wrap; }
.pedido-item-mini {
    position: relative;
    width: 56px; height: 56px;
    border-radius: .5rem;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #f1f5f9;
    flex-shrink: 0;
}
.pedido-item-mini img { width: 100%; height: 100%; object-fit: cover; }
.pedido-item-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #94a3b8;
    font-size: 1.5rem;
}
.pedido-item-qtd {
    position: absolute;
    bottom: -4px; right: -4px;
    background: var(--brand);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    width: 20px; height: 20px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
}
.pedido-item-mais {
    width: 56px; height: 56px;
    border-radius: .5rem;
    border: 1px dashed var(--border);
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600;
    color: var(--muted);
    flex-shrink: 0;
}

/* Detalhes — thumb dos itens */
.pedido-detalhes-thumb {
    width: 72px; height: 72px;
    border-radius: .5rem;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid var(--border);
    flex-shrink: 0;
}
.pedido-detalhes-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Timeline de status */
.timeline-pedido {
    display: flex;
    justify-content: space-between;
    position: relative;
    gap: .5rem;
    flex-wrap: wrap;
}
.timeline-etapa {
    flex: 1 1 0;
    min-width: 110px;
    text-align: center;
    position: relative;
    padding-top: .5rem;
}
.timeline-etapa::before {
    content: '';
    position: absolute;
    top: 26px;
    left: 50%;
    width: 100%;
    height: 3px;
    background: var(--border);
    z-index: 0;
}
.timeline-etapa:last-child::before { display: none; }
.timeline-etapa.concluida::before { background: var(--brand); }

.timeline-bola {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted);
    margin: 0 auto .5rem;
    position: relative;
    z-index: 1;
    font-size: 1.3rem;
    transition: all .25s;
}
.timeline-etapa.concluida .timeline-bola {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.timeline-etapa.ativa .timeline-bola {
    background: #fff;
    border-color: var(--brand);
    color: var(--brand);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 15%, transparent);
    transform: scale(1.08);
    animation: timeline-pulse 2s infinite;
}
@@keyframes timeline-pulse {
    0%, 100% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 15%, transparent); }
    50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--brand) 8%, transparent); }
}
.timeline-titulo {
    font-weight: 600;
    font-size: .9rem;
    color: var(--text);
}
.timeline-etapa.pendente .timeline-titulo { color: var(--muted); }
.timeline-descricao {
    font-size: .8rem;
    color: var(--muted);
    margin-top: .35rem;
    padding: 0 .25rem;
}

@@media (max-width: 575px) {
    .timeline-pedido { flex-direction: column; gap: 1rem; }
    .timeline-etapa { text-align: left; display: flex; gap: .75rem; align-items: center; min-width: 0; padding-top: 0; }
    .timeline-etapa::before { display: none; }
    .timeline-bola { margin: 0; }
    .timeline-titulo, .timeline-descricao { text-align: left; }
}

/* Empty state */
.empty-state-icon {
    width: 100px; height: 100px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand) 10%, transparent);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

/* === Admin: cor-picker das variações === */
.valores-container .cor-linha .form-control-color {
    flex: 0 0 56px;
    width: 56px;
    height: calc(2.5rem + 2px);
    padding: .25rem;
    cursor: pointer;
}
.valores-container .cor-linha .cor-nome { flex: 1; }

/* === Pickers de variação de produto === */
.variacao-bloco { margin-bottom: 1.25rem; }
.variacao-opcoes { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Botões de texto (tamanhos, numerações) */
.variacao-botao {
    min-width: 48px;
    padding: .5rem .9rem;
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--text);
    border-radius: .5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
}
.variacao-botao:hover { border-color: var(--brand); }
.variacao-botao.selecionado {
    border-color: var(--brand);
    background: color-mix(in srgb, var(--brand) 10%, transparent);
    color: var(--brand);
}

/* Swatches de cor */
.variacao-swatch {
    position: relative;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--border);
    cursor: pointer;
    padding: 0;
    transition: all .15s;
}
.variacao-swatch:hover { box-shadow: 0 0 0 2px var(--brand); }
.variacao-swatch.selecionado {
    box-shadow: 0 0 0 3px var(--brand);
    transform: scale(1.05);
}
.variacao-check {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0,0,0,.5);
}
.variacao-swatch.selecionado .variacao-check { display: flex; }

/* Botão Login com Google */
.btn-google {
    background: #fff;
    color: #1f1f1f;
    border: 1px solid #dadce0;
    font-weight: 500;
    padding: .55rem 1rem;
    transition: box-shadow .15s, background-color .15s;
}

.btn-google:hover, .btn-google:focus {
    background: #f8f9fa;
    color: #1f1f1f;
    border-color: #dadce0;
    box-shadow: 0 1px 3px rgba(60, 64, 67, .15), 0 1px 2px rgba(60, 64, 67, .1);
}

/* ===== Logomarca centralizada na vitrine (lg+) ===== */
@media (min-width: 992px) {
    body.logo-centro .site-header .navbar > .container,
    body.logo-centro .site-header .navbar > .container-fluid {
        flex-wrap: wrap;
    }
    /* Logo numa linha própria, centralizada */
    body.logo-centro .site-header .navbar-brand {
        flex-basis: 100%;
        justify-content: center;
        text-align: center;
        margin: 0 0 .6rem;
    }
    /* Busca + menu numa segunda linha, centralizados como um grupo */
    body.logo-centro .site-header .navbar-collapse {
        flex-basis: 100%;
        justify-content: center;
    }
    body.logo-centro .site-header .navbar-collapse .search-form {
        margin-left: 0 !important;
        margin-right: 1.25rem !important;
        flex: 0 1 480px;          /* largura confortável, sem esticar */
    }
    body.logo-centro .site-header .navbar-collapse .navbar-nav {
        margin-left: 0 !important; /* remove o ms-auto pra não empurrar pra direita */
    }
}

/* ===== Cards de opção (Aparência: layout / posição da logo) ===== */
.opcao-card {
    display: block;
    cursor: pointer;
    border: 2px solid var(--border);
    border-radius: .75rem;
    padding: .85rem;
    height: 100%;
    transition: border-color .15s, box-shadow .15s;
    margin: 0;
}
.opcao-card:hover { border-color: #c7cdd6; }
.opcao-card.selecionada { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79, 70, 229, .15); }
.opcao-card input { position: absolute; opacity: 0; pointer-events: none; }
.opcao-nome { font-weight: 600; font-size: .92rem; margin-top: .5rem; }
.opcao-desc { font-size: .78rem; color: var(--muted); }

.opcao-mock {
    background: #eef1f6;
    border-radius: .5rem;
    padding: .5rem;
    height: 84px;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.opcao-mock .mock-bar {
    height: 16px;
    background: var(--brand, #4f46e5);
    border-radius: 3px;
    display: flex;
    align-items: center;
    padding: 0 5px;
}
.opcao-mock .mock-bar b { display: block; width: 26px; height: 7px; background: #fff; border-radius: 2px; }
.mock-bar.mock-logo-centro { justify-content: center; }
.mock-bar.mock-logo-esq { justify-content: flex-start; }
.mock-centralizado, .mock-full { flex: 1; display: flex; flex-direction: column; gap: .3rem; }
.mock-centralizado { align-items: center; }
.mock-centralizado span { width: 60%; height: 9px; background: #cfd6e2; border-radius: 2px; }
.mock-full span { width: 100%; height: 9px; background: #cfd6e2; border-radius: 2px; }
.mock-bar .mock-txt { display: block; width: 34px; height: 7px; background: rgba(255, 255, 255, .75); border-radius: 2px; margin-left: 5px; }
.mock-bar b.mock-logo-grande { width: 46px; height: 11px; }

/* Tamanho da logomarca no cabeçalho (definido em Configurações → Aparência) */
.site-header .navbar-brand img { max-height: 40px; max-width: 150px; }                                  /* pequena (padrão) */
body.logo-tam-media .site-header .navbar-brand img { max-height: 62px; max-width: 230px; }              /* média */
body.logo-tam-grande .site-header .navbar-brand img { max-height: 88px; max-width: 320px; }             /* grande */

/* Layout 100%: vitrine com 6 produtos por linha em telas grandes */
@media (min-width: 992px) {
    body.layout-full .produtos-grid > [class*="col-"] {
        flex: 0 0 auto;
        width: 20%; /* 5 por linha a partir de lg */
    }
}
@media (min-width: 1400px) {
    body.layout-full .produtos-grid > [class*="col-"] {
        width: 16.6667%; /* 6 por linha em telas xxl */
    }
}

/* ===== Menu mobile em tela cheia (estilo overlay) ===== */
body.menu-aberto { overflow: hidden; }

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 1.5rem 2rem;
    color: #fff;
    background: linear-gradient(165deg, var(--brand, #4f46e5) 0%, var(--brand-dark, #3730a3) 100%);
    opacity: 0;
    visibility: hidden;
    transform: scale(1.04);
    transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
    overflow-y: auto;
}
.mobile-menu.aberto {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.mobile-menu-profile {
    text-align: center;
    margin-top: 1rem;
    animation: menuItemUp .4s ease both;
}
.mobile-menu-avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    margin: 0 auto .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(255, 255, 255, .15);
    border: 3px solid rgba(255, 255, 255, .35);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.mobile-menu-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mobile-menu-avatar i { font-size: 2.4rem; color: #fff; }
.mobile-menu-nome { font-size: 1.3rem; font-weight: 700; line-height: 1.2; }
.mobile-menu-sub { font-size: .85rem; opacity: .75; margin-top: .15rem; }

.mobile-menu-busca {
    position: relative;
    width: 100%;
    max-width: 340px;
    margin: 1.4rem auto .5rem;
}
.mobile-menu-busca input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border-radius: 999px;
    padding: .6rem 2.8rem .6rem 1.1rem;
}
.mobile-menu-busca input::placeholder { color: rgba(255, 255, 255, .7); }
.mobile-menu-busca input:focus {
    outline: none;
    background: rgba(255, 255, 255, .2);
    border-color: rgba(255, 255, 255, .6);
    box-shadow: none;
}
.mobile-menu-busca button {
    position: absolute;
    top: 50%;
    right: .35rem;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.mobile-menu-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .15rem;
    width: 100%;
    padding: 1rem 0;
}
.mobile-menu-nav a,
.mobile-menu-nav button {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border: none;
    background: none;
    color: rgba(255, 255, 255, .82);
    font-size: 1.18rem;
    font-weight: 500;
    padding: .55rem 1rem;
    text-decoration: none;
    border-radius: .6rem;
    transition: color .15s ease, transform .15s ease;
    animation: menuItemUp .45s ease both;
}
.mobile-menu-nav a:hover,
.mobile-menu-nav button:hover,
.mobile-menu-nav a.ativo {
    color: #fff;
    font-weight: 700;
    transform: scale(1.06);
}
.mobile-menu-nav a.ativo { letter-spacing: .2px; }
.mobile-menu-nav form { margin: 0; }
.mobile-menu-badge {
    background: rgba(255, 255, 255, .25);
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    padding: .1rem .5rem;
    margin-left: .15rem;
}

.mobile-menu-close {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .6);
    background: transparent;
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: .5rem;
    transition: transform .25s ease, background .2s ease;
}
.mobile-menu-close:hover {
    background: rgba(255, 255, 255, .15);
    transform: rotate(90deg);
}

@keyframes menuItemUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}
.mobile-menu .mobile-menu-nav a:nth-child(1) { animation-delay: .05s; }
.mobile-menu .mobile-menu-nav a:nth-child(2) { animation-delay: .09s; }
.mobile-menu .mobile-menu-nav a:nth-child(3) { animation-delay: .13s; }
.mobile-menu .mobile-menu-nav a:nth-child(4) { animation-delay: .17s; }
.mobile-menu .mobile-menu-nav a:nth-child(5) { animation-delay: .21s; }
.mobile-menu .mobile-menu-nav a:nth-child(6) { animation-delay: .25s; }
.mobile-menu .mobile-menu-nav a:nth-child(7) { animation-delay: .29s; }

/* ===== PDV (ponto de venda no painel) ===== */
.pdv-prod {
    width: 100%;
    border: 1px solid var(--bs-border-color, #dee2e6);
    background: var(--bs-body-bg, #fff);
    border-radius: .7rem;
    padding: .5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
    text-align: center;
    transition: border-color .15s, transform .1s, box-shadow .15s;
    cursor: pointer;
}
.pdv-prod:hover { border-color: var(--brand, #4f46e5); box-shadow: 0 4px 14px rgba(0,0,0,.08); transform: translateY(-2px); }
.pdv-prod:active { transform: translateY(0); }
.pdv-prod img { width: 64px; height: 64px; object-fit: cover; border-radius: .5rem; }
.pdv-prod-nome { font-size: .8rem; font-weight: 600; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pdv-prod-preco { font-size: .9rem; font-weight: 700; color: var(--brand, #4f46e5); }
.pdv-prod-estoque { font-size: .68rem; color: var(--bs-secondary-color, #6c757d); }
.pdv-prod--zero { opacity: .6; }
.pdv-prod--zero .pdv-prod-estoque { color: #dc3545; }

.pdv-painel { position: sticky; top: 1rem; }
.pdv-itens { max-height: 38vh; overflow-y: auto; }
.pdv-item {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    align-items: center;
    gap: .5rem;
    padding: .45rem 0;
    border-bottom: 1px solid var(--bs-border-color-translucent, rgba(0,0,0,.075));
}
.pdv-item-nome { font-size: .85rem; font-weight: 600; line-height: 1.1; }
.pdv-item-preco { font-size: .72rem; color: var(--bs-secondary-color, #6c757d); }
.pdv-item-qtd { display: inline-flex; align-items: center; gap: .35rem; }
.pdv-item-qtd span { min-width: 1.4rem; text-align: center; font-weight: 600; }
.pdv-item-qtd .btn { width: 28px; height: 28px; padding: 0; line-height: 1; }
.pdv-item-sub { font-weight: 700; font-size: .85rem; min-width: 70px; text-align: right; }
.pdv-item-rm { padding: 0 .2rem; }

/* ===== Tema escuro de vendas (.sales-dark) — paleta da tela de login.
   Aplicado a /planos e /criar-loja via ViewData["BodyClass"]="sales-dark". ===== */
body.sales-dark { background: #080c18; color: #ECF0FB; }
body.sales-dark .text-muted { color: #94a0bd !important; }
body.sales-dark .border { border-color: rgba(255,255,255,.10) !important; }
body.sales-dark .bg-white { background-color: #0d1426 !important; }

/* Navbar e footer (do layout público) */
body.sales-dark .navbar.bg-white { background-color: #0d1426 !important; border-color: rgba(255,255,255,.10) !important; }
body.sales-dark .navbar .navbar-brand,
body.sales-dark .navbar .nav-link { color: #ECF0FB !important; }
body.sales-dark footer.bg-white { background-color: #0d1426 !important; border-color: rgba(255,255,255,.10) !important; }
body.sales-dark footer h6 { color: #cbd5e1 !important; }

/* Cards e painéis */
body.sales-dark .vantagem-card,
body.sales-dark .depo-card,
body.sales-dark .card,
body.sales-dark .preco-card-simples { background: #0d1426; border-color: rgba(255,255,255,.10); color: #ECF0FB; }
body.sales-dark .preco-card { background: #0d1426; border-color: #6d28d9; color: #ECF0FB; }
body.sales-dark .garantia-item { color: #ECF0FB; }

/* FAQ (accordion) */
body.sales-dark .accordion-item { background: #0d1426; border-color: rgba(255,255,255,.10); }
body.sales-dark .accordion-button { background: #0d1426; color: #ECF0FB; }
body.sales-dark .accordion-button:not(.collapsed) { background: #131c33; color: #c7d2fe; }
body.sales-dark .accordion-body { color: #94a0bd; }
body.sales-dark .accordion-button::after { filter: invert(1) grayscale(1) brightness(2.2); }

/* Selo de economia legível no escuro */
body.sales-dark .selo-economia { background: rgba(22,163,74,.18); color: #4ade80; }

/* Formulários no escuro (ex.: /criar-loja) */
body.sales-dark .form-control,
body.sales-dark .input-group-text {
    background-color: #0b1120;
    border-color: rgba(255,255,255,.14);
    color: #ECF0FB;
}
body.sales-dark .form-control::placeholder { color: #6b7795; }
body.sales-dark .form-control:focus {
    background-color: #0b1120;
    border-color: #6d28d9;
    color: #ECF0FB;
    box-shadow: 0 0 0 .2rem rgba(109,40,217,.25);
}
body.sales-dark .input-group-text { color: #94a0bd; }
body.sales-dark .form-text { color: #94a0bd; }
body.sales-dark .form-check-input { background-color: #0b1120; border-color: rgba(255,255,255,.25); }
body.sales-dark .form-check-input:checked { background-color: #6d28d9; border-color: #6d28d9; }
body.sales-dark hr { border-color: rgba(255,255,255,.12); }
