/* ==========================================
   CYTO FARMA — Design System
   (baseado na estrutura de tokens do projeto
   irmão "Exclusive Reservas", paleta própria)
   ========================================== */

:root {
    --primary:      #E30613;
    --primary-dark: #B8000B;
    --primary-glow: rgba(227,6,19,.12);
    --accent:       #7A0008;
    --ink:          #FFFFFF;
    --bg:           #F7F5F4;
    --bg-2:         #FFFFFF;
    --bg-card:      #FFFFFF;
    --bg-modal:     #FFFFFF;
    --bg-input:     #FFFFFF;
    --bg-hover:     #FDECEC;
    --text:         #241A19;
    --text-soft:    #4D4140;
    --text-muted:   #746664;
    --border:       #ECE4E3;
    --border-soft:  #D9CDCC;
    --green:        #0E9F6E;
    --red:          #991B1B;
    --gold:         #B8860B;
    --purple:       #6B46C1;
    --kpi-green-fg: var(--green);
    --kpi-green-bg: rgba(14,159,110,.14);
    --kpi-gold-bg:  rgba(184,134,11,.14);
    --kpi-purple-bg:rgba(107,70,193,.14);
    --kpi-red-bg:   rgba(153,27,27,.13);
    --shadow-sm:    0 1px 3px rgba(0,0,0,.10);
    --shadow:       0 2px 8px rgba(0,0,0,.12);
    --shadow-lg:    0 4px 24px rgba(0,0,0,.18);
    --radius:       10px;
    --radius-sm:    7px;
    --radius-xs:    5px;
    --tr:           .2s ease;
}

/* Farmácias de verdade (Drogasil, Droga Raia, Pacheco) não têm modo
   escuro — o site fica sempre no tema claro, independente do sistema
   operacional/navegador do visitante. */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: light; }

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.55;
}

a { color: var(--primary); text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

input, textarea, select {
    font-family: inherit;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: .9rem;
    transition: border-color .2s ease, box-shadow .2s ease;
    width: 100%;
}
input:focus, textarea:focus, select:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow);
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }

/* ===== HEADER ===== */
header.main-header {
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 50;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--tr);
}
header.main-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.1); }

.header-row {
    display: flex; align-items: center; gap: 24px;
    padding: 14px 0;
}

.logo {
    font-size: 1.5rem; font-weight: 800; color: var(--primary); letter-spacing: -.01em;
    display: flex; align-items: center; gap: 10px; white-space: nowrap;
    transition: opacity var(--tr);
}
.logo:hover { opacity: .82; }
.logo-icon {
    width: 34px; height: 34px; flex-shrink: 0; filter: drop-shadow(0 2px 4px rgba(227,6,19,.25));
    transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.logo:hover .logo-icon { transform: rotate(-8deg) scale(1.08); }

.search-box { flex: 1; max-width: 640px; position: relative; }
.search-box input {
    border-radius: 999px; padding: 12px 48px 12px 18px; background: var(--bg);
    border: 1.5px solid transparent; transition: all var(--tr);
}
.search-box input:focus {
    background: var(--bg-2); border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}
.search-box button {
    position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
    color: #fff; background: var(--primary); width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--tr);
}
.search-box button:hover { background: var(--primary-dark); transform: translateY(-50%) scale(1.07); }
.search-box button:active { transform: translateY(-50%) scale(.94); }

.header-actions { display: flex; align-items: center; gap: 4px; }
.btn-icon {
    position: relative; width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-soft); font-size: 1.15rem;
    transition: color var(--tr), background var(--tr), transform .2s cubic-bezier(.34,1.56,.64,1);
}
.btn-icon:hover { background: var(--bg-hover); color: var(--primary); transform: translateY(-2px); }
.btn-icon:active { transform: translateY(0) scale(.9); }
.btn-icon .badge {
    position: absolute; top: 1px; right: 1px; background: var(--primary);
    color: #fff; font-size: .62rem; font-weight: 800; min-width: 18px; height: 18px;
    border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 4px;
    box-shadow: 0 0 0 2px var(--bg-2);
}
.btn-icon .badge.pop { animation: badgePop .38s cubic-bezier(.34,1.56,.64,1); }

@keyframes badgePop {
    0%   { transform: scale(0); }
    60%  { transform: scale(1.35); }
    100% { transform: scale(1); }
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(120deg, var(--primary), var(--accent));
    border-radius: var(--radius);
    color: var(--ink);
    padding: 42px 36px;
    margin: 20px auto 0;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    flex-wrap: wrap;
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.16), transparent 55%);
    pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero-tag {
    background: rgba(255,255,255,.22); font-weight: 700; font-size: .72rem;
    padding: 5px 14px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em;
    display: inline-block; margin-bottom: 10px;
}
.hero h1 { font-size: 2.4rem; font-weight: 900; line-height: 1.1; }
.hero p { opacity: .92; margin-top: 8px; max-width: 480px; }

/* ===== HERO VISUAL (composição flutuante, sem foto) ===== */
.hero-visual { position: relative; width: 230px; height: 230px; flex-shrink: 0; }
.hv-blob {
    position: absolute; inset: 6%; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.32), rgba(255,255,255,.03) 62%);
}
.hv-dot {
    position: absolute; border-radius: 50%; background: rgba(255,255,255,.55);
    animation: hvFloat 4.5s ease-in-out infinite;
}
.hv-dot--1 { width: 14px; height: 14px; top: 10%; left: 8%; animation-delay: .3s; }
.hv-dot--2 { width: 9px; height: 9px; bottom: 16%; right: 10%; animation-delay: 1s; animation-direction: reverse; }
.hv-card {
    position: absolute; display: flex; align-items: center; justify-content: center;
    background: #fff; border-radius: 22px; box-shadow: 0 14px 28px rgba(0,0,0,.2);
    animation: hvFloat 5s ease-in-out infinite;
}
.hv-card--main {
    width: 110px; height: 110px; font-size: 3rem; color: var(--primary);
    top: 32%; left: 26%; animation-delay: 0s;
}
.hv-card--pulse {
    width: 60px; height: 60px; font-size: 1.5rem; color: var(--primary);
    top: 2%; right: 4%; animation-delay: .7s;
}
.hv-card--shield {
    width: 56px; height: 56px; font-size: 1.35rem; color: var(--gold, #b8860b);
    bottom: 4%; left: 0; animation-delay: 1.4s;
}
@keyframes hvFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}
@media (prefers-reduced-motion: reduce) {
    .hv-card, .hv-dot { animation: none; }
}

/* ===== SEÇÃO / GRID DE PRODUTOS ===== */
.section { padding: 34px 0; }
.section-head {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px;
}
.section-head h2 { font-size: 1.4rem; font-weight: 800; }

.filtros-bar {
    display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px;
}

.filtros-avancados {
    display: none; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px;
    align-items: end; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px; margin-bottom: 20px;
}
.filtros-avancados.aberto { display: grid; }
.filtros-avancados .form-row { margin-bottom: 0; }

.autocomplete-box {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
    z-index: 60; overflow: hidden;
    animation: autocompleteIn .18s ease;
}
@keyframes autocompleteIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.autocomplete-item {
    display: flex; align-items: center; gap: 10px; padding: 11px 14px; font-size: .85rem;
    cursor: pointer; transition: background var(--tr), padding-left var(--tr);
}
.autocomplete-item:hover { background: var(--bg-hover); padding-left: 18px; }
.autocomplete-item i { color: var(--text-muted); font-size: .8rem; }
.autocomplete-item span { flex: 1; color: var(--text); }
.autocomplete-item strong { color: var(--primary); }
.btn-filtro {
    display: inline-flex; align-items: center; gap: 7px;
    border: 1.5px solid var(--border); border-radius: 999px; padding: 8px 16px;
    font-size: .82rem; font-weight: 600; color: var(--text-soft); background: var(--bg-card);
    transition: all .22s cubic-bezier(.34,1.56,.64,1);
}
.btn-filtro:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-filtro:active { transform: translateY(0) scale(.97); }
.btn-filtro.ativo {
    background: var(--primary); border-color: var(--primary); color: #fff;
    box-shadow: 0 4px 12px rgba(227,6,19,.28);
}
.btn-filtro.ativo:hover { color: #fff; }

.produtos-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px;
}

.produto-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 14px; display: flex; flex-direction: column; position: relative;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .3s cubic-bezier(.34,1.56,.64,1), transform .3s cubic-bezier(.34,1.56,.64,1), border-color .3s ease;
    animation: productCardIn .35s cubic-bezier(.22,1,.36,1) both;
}
.produto-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px) scale(1.015); border-color: var(--primary-glow); }
@keyframes productCardIn {
    from { opacity: 0; transform: translateY(12px) scale(.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.produto-foto {
    height: 140px; display: flex; align-items: center; justify-content: center;
    margin-bottom: 10px; border-radius: var(--radius-sm);
    background: radial-gradient(circle at 30% 25%, var(--bg-hover), #FBE0E0 120%);
    overflow: hidden; cursor: pointer;
}
.produto-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s cubic-bezier(.22,1,.36,1); }
.produto-card:hover .produto-foto img { transform: scale(1.09); }
.produto-foto i { font-size: 3rem; color: var(--primary); opacity: .45; transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.produto-card:hover .produto-foto i { transform: scale(1.1) rotate(-4deg); }

.badge-desconto {
    position: absolute; top: 10px; left: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; font-weight: 800; font-size: .72rem; letter-spacing: .01em;
    padding: 4px 9px; border-radius: var(--radius-xs);
    box-shadow: 0 4px 10px rgba(227,6,19,.35);
}
.badge-receita {
    display: inline-flex; align-items: center; gap: 4px; font-size: .68rem; font-weight: 700;
    color: var(--gold); background: var(--kpi-gold-bg); padding: 2px 8px; border-radius: var(--radius-xs);
    margin-bottom: 4px; width: fit-content;
}
.btn-fav {
    position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,.85); backdrop-filter: blur(4px); color: var(--text-soft);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-sm); transition: color .2s ease, transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease;
}
.produto-card:hover .btn-fav { box-shadow: var(--shadow); }
.btn-fav:hover { color: var(--red); transform: scale(1.14); }
.btn-fav:active { transform: scale(.88); }
.btn-fav.ativo { color: var(--red); }
.btn-fav.ativo.pop { animation: favPop .45s cubic-bezier(.34,1.56,.64,1); }
@keyframes favPop {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.4); }
    55%  { transform: scale(.85); }
    100% { transform: scale(1); }
}

.produto-lab { font-size: .68rem; text-transform: uppercase; color: var(--text-muted); }
.produto-nome {
    font-size: .87rem; font-weight: 700; color: var(--text); margin-top: 2px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 2.6em; cursor: pointer; transition: color var(--tr);
}
.produto-nome:hover { color: var(--primary); }
.card-stars { color: var(--gold); font-size: .74rem; display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.card-nota { color: var(--text-muted); font-weight: 700; }

.produto-preco-area { margin-top: auto; padding-top: 10px; }
.preco-comparado { font-size: .74rem; color: var(--text-muted); text-decoration: line-through; }
.preco-atual { font-size: 1.25rem; font-weight: 800; color: var(--primary); }

.produtos-grid-sm { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

.detalhe-grid { display: grid; grid-template-columns: 260px 1fr; gap: 24px; }
.detalhe-thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.detalhe-thumb {
    width: 52px; height: 52px; border-radius: var(--radius-xs); overflow: hidden; cursor: pointer;
    border: 2px solid transparent; opacity: .65; transition: all .2s cubic-bezier(.34,1.56,.64,1);
}
.detalhe-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detalhe-thumb:hover { opacity: 1; transform: translateY(-2px); }
.detalhe-thumb.ativo { border-color: var(--primary); opacity: 1; box-shadow: var(--shadow-sm); }

.detalhe-tags { display: flex; gap: 6px; align-items: center; }
.detalhe-titulo { font-size: 1.35rem; font-weight: 800; margin: 6px 0 8px; line-height: 1.2; }
.detalhe-descricao { color: var(--text-soft); margin: 10px 0 14px; font-size: .88rem; line-height: 1.6; }

.estoque-pill {
    display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 700;
    padding: 4px 10px; border-radius: 999px; margin-bottom: 18px;
}
.estoque-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.estoque-pill.disponivel   { background: var(--kpi-green-bg); color: var(--kpi-green-fg); }
.estoque-pill.baixo        { background: var(--kpi-gold-bg); color: var(--gold); }
.estoque-pill.indisponivel { background: rgba(209,67,67,.1); color: var(--red); }

.detalhe-acao-box {
    display: flex; align-items: center; gap: 14px; background: var(--bg-hover);
    border-radius: var(--radius-sm); padding: 10px 12px;
}
.detalhe-acao-box .qty-control {
    border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 4px 10px; background: var(--bg-card);
}

.catalogo-vazio {
    grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--text-muted);
}
.catalogo-vazio-icon { width: 56px; height: 56px; margin: 0 auto 12px; color: var(--border-soft); }
.catalogo-vazio-titulo { font-weight: 700; color: var(--text); margin-bottom: 4px; }

/* ===== SKELETON (carregando) ===== */
@keyframes skeletonPulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
.skeleton { background: var(--bg-hover); border-radius: var(--radius-xs); animation: skeletonPulse 1.4s ease-in-out infinite; }
.skeleton-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.skeleton-card .skeleton-foto { height: 140px; margin-bottom: 10px; border-radius: var(--radius-sm); }
.skeleton-card .skeleton-line { height: 12px; margin-bottom: 8px; }
.skeleton-card .skeleton-line.w60 { width: 60%; }
.skeleton-card .skeleton-line.w40 { width: 40%; margin-bottom: 0; }
.skeleton-card .skeleton-btn { height: 32px; border-radius: var(--radius-sm); margin-top: 12px; }
.skeleton-rows { display: flex; flex-direction: column; gap: 10px; }
.skeleton-rows .skeleton-row { height: 46px; border-radius: var(--radius-sm); }
@media (prefers-reduced-motion: reduce) {
    .skeleton { animation: none; opacity: .7; }
}

/* ===== BOTÕES ===== */
.btn-primary {
    background: var(--primary); color: var(--ink); border-radius: var(--radius-sm);
    padding: 10px 20px; font-weight: 700; font-size: .87rem; transition: all var(--tr);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:disabled { opacity: .5; pointer-events: none; }
.btn-secondary {
    background: transparent; color: var(--text); border: 1.5px solid var(--border-soft);
    border-radius: var(--radius-sm); padding: 10px 20px; font-weight: 700; font-size: .87rem;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: all var(--tr);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-whatsapp {
    background: #25D366; color: #fff; border-radius: var(--radius-sm); padding: 10px 20px;
    font-weight: 700; font-size: .87rem; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    transition: all var(--tr);
}
.btn-whatsapp:hover { background: #1A8E4A; }
.btn-danger  { background: var(--red);   color: #fff; border-radius: var(--radius-sm); padding: 8px 14px; font-weight: 700; font-size: .82rem; }
.btn-warning { background: var(--primary); color: var(--ink); border-radius: var(--radius-sm); padding: 8px 14px; font-weight: 700; font-size: .82rem; }
.btn-success { background: var(--green); color: var(--ink); border-radius: var(--radius-sm); padding: 8px 14px; font-weight: 700; font-size: .82rem; }
.btn-sm  { padding: 6px 13px; font-size: .78rem; border-radius: var(--radius-xs); font-weight: 700; }
.btn-lg  { padding: 13px 28px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-add-carrinho {
    width: 100%; margin-top: 10px; background: var(--primary); color: var(--ink);
    padding: 9px; border-radius: var(--radius-sm); font-weight: 700; font-size: .82rem;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    transition: background .2s ease, transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease;
}
.btn-add-carrinho:hover:not(:disabled) {
    background: var(--primary-dark); transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(227,6,19,.28);
}
.btn-add-carrinho:active:not(:disabled) { transform: translateY(0) scale(.96); box-shadow: none; }
.btn-add-carrinho:disabled { opacity: .45; pointer-events: none; }
.btn-add-carrinho i { transition: transform .2s ease; }
.btn-add-carrinho:hover:not(:disabled) i { transform: translateY(-1px) scale(1.1); }

/* ===== MODAIS ===== */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(10,20,16,.55); z-index: 200;
    display: flex; align-items: center; justify-content: center; padding: 16px;
    opacity: 0; pointer-events: none; transition: opacity var(--tr);
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-box {
    background: var(--bg-modal); border-radius: var(--radius); max-width: 560px; width: 100%;
    max-height: 88vh; overflow-y: auto; box-shadow: var(--shadow-lg); position: relative;
}
.modal-box.modal-lg { max-width: 820px; }
.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 22px; border-bottom: 1px solid var(--border); position: sticky; top: 0;
    background: var(--bg-modal); z-index: 1;
}
.modal-header h3 { font-size: 1.05rem; font-weight: 800; }
.modal-close { font-size: 1.2rem; color: var(--text-muted); width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: var(--bg-hover); color: var(--text); }
.modal-body { padding: 22px; }
.modal-footer { padding: 16px 22px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: .8rem; font-weight: 700; margin-bottom: 6px; color: var(--text-soft); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Passos do checkout (dados → pagamento → sucesso): só um visível por vez */
.checkout-passo { display: none; }
.checkout-passo.ativo { display: block; animation: checkoutPassoIn .25s ease; }
@keyframes checkoutPassoIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Indicador de progresso (1 Dados → 2 Pagamento → 3 Concluído) */
.checkout-steps { display: flex; align-items: flex-start; justify-content: center; gap: 4px; padding: 2px 0 22px; }
.checkout-step { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 74px; }
.checkout-step-circle {
    width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: .82rem; font-weight: 800; color: var(--text-muted); background: var(--bg-hover);
    border: 2px solid var(--border-soft); transition: all .3s cubic-bezier(.34,1.56,.64,1);
}
.checkout-step-label { font-size: .68rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .02em; }
.checkout-step.ativo .checkout-step-circle {
    background: var(--primary); border-color: var(--primary); color: #fff; transform: scale(1.12);
    box-shadow: 0 4px 12px rgba(227,6,19,.32);
}
.checkout-step.ativo .checkout-step-label { color: var(--primary); }
.checkout-step.concluido .checkout-step-circle { background: var(--primary); border-color: var(--primary); color: #fff; }
.checkout-step.concluido .checkout-step-label { color: var(--text); }
.checkout-step-line { width: 34px; height: 2px; background: var(--border-soft); margin-top: 14px; transition: background .3s ease; }
.checkout-step-line.concluido { background: var(--primary); }

.frete-status { font-size: .8rem; margin-top: 6px; color: var(--text-muted); min-height: 1.2em; }
.frete-status.ok { color: var(--kpi-green-fg); }
.frete-status.erro { color: var(--red); }

/* ===== PIX — QR Code gerado no navegador ===== */
.pix-pagar-card { text-align: center; }
.pix-qr-wrap {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); margin-bottom: 16px;
}
.pix-qr-wrap img { display: block; }
.pix-instrucao { font-size: .84rem; color: var(--text-soft); margin-bottom: 12px; }
.pix-copia-row { display: flex; gap: 8px; }
.pix-expira { margin-top: 10px; color: var(--text-muted); font-size: .84rem; }

/* ===== PAGAMENTO COM CARTÃO (interface — sem gateway ligado ainda) ===== */
.pagcartao-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px 24px; box-shadow: var(--shadow-sm); text-align: center;
}
.pagcartao-icone {
    width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-glow); color: var(--primary); font-size: 1.4rem;
}
.pagcartao-titulo { font-size: 1.15rem; font-weight: 800; margin-bottom: 4px; }
.pagcartao-subtitulo { font-size: .82rem; color: var(--text-muted); margin-bottom: 22px; }
.pagcartao-subtitulo strong { color: var(--text-soft); font-weight: 700; }

.pagcartao-card .form-row { text-align: left; margin-bottom: 16px; }
.pagcartao-card input:disabled { background: var(--bg-hover); cursor: not-allowed; opacity: .8; }

.pagcartao-dados-box { border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.pagcartao-numero-row { position: relative; }
.pagcartao-numero-row input { border: none; border-bottom: 1.5px solid var(--border); border-radius: 0; padding-right: 40px; }
.pagcartao-numero-row i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.pagcartao-split-row { display: flex; }
.pagcartao-split-row input { border: none; border-radius: 0; }
.pagcartao-split-row input:first-child { border-right: 1.5px solid var(--border); }

.pagcartao-cupom-row {
    display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--text-soft);
    text-align: left; margin-bottom: 18px;
}
.pagcartao-cupom-row i { color: var(--text-muted); width: 14px; }

.pagcartao-aviso {
    display: flex; align-items: flex-start; gap: 7px; text-align: left; margin-top: 12px;
    font-size: .76rem; color: var(--text-muted); line-height: 1.5;
}
.pagcartao-aviso i { margin-top: 2px; color: var(--gold); }

#pagcartao-btn-pagar { transition: background .25s ease; }
#pagcartao-btn-pagar.pagcartao-btn-erro { background: var(--red); }
#pagcartao-btn-pagar.pagcartao-btn-erro:hover { background: var(--red); }

/* ===== TOAST ===== */
.toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(30px) scale(.94);
    background: var(--text); color: var(--bg-2); padding: 13px 20px 13px 16px; border-radius: var(--radius-sm);
    font-size: .86rem; font-weight: 600; box-shadow: var(--shadow-lg); z-index: 400;
    opacity: 0; transition: opacity .3s ease, transform .4s cubic-bezier(.34,1.56,.64,1);
    display: flex; align-items: center; gap: 10px; pointer-events: none;
    border-left: 4px solid var(--border-soft);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
.toast i { font-size: 1.05rem; }
.toast.success { border-left-color: var(--kpi-green-fg); }
.toast.error   { border-left-color: var(--red); }
.toast.info    { border-left-color: var(--primary); }
.toast.success i { color: var(--kpi-green-fg); }
.toast.error i { color: var(--red); }
.toast.info i { color: var(--primary); }

/* ===== CARRINHO ===== */
.carrinho-item {
    display: flex; gap: 12px; align-items: center; padding: 12px; margin-bottom: 10px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s cubic-bezier(.34,1.56,.64,1);
}
.carrinho-item:last-child { margin-bottom: 0; }
.carrinho-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.carrinho-item img, .carrinho-item .placeholder {
    width: 56px; height: 56px; border-radius: var(--radius-xs); object-fit: cover; flex-shrink: 0;
    background: radial-gradient(circle at 30% 25%, var(--bg-hover), #FBE0E0 120%);
    display: flex; align-items: center; justify-content: center; color: var(--primary); opacity: .8; font-size: 1.3rem;
}
.carrinho-item-info { flex: 1; min-width: 0; }
.carrinho-item-info strong { font-size: .85rem; display: block; }
.carrinho-item-preco { color: var(--primary); font-weight: 700; font-size: .85rem; }

.qty-control { display: flex; align-items: center; gap: 8px; }
.qty-control button {
    width: 25px; height: 25px; border-radius: 50%; border: 1px solid var(--border-soft); background: var(--bg-2);
    display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--text-soft);
    transition: all .18s cubic-bezier(.34,1.56,.64,1);
}
.qty-control button:hover { border-color: var(--primary); color: var(--primary); background: var(--bg-hover); transform: scale(1.12); }
.qty-control button:active { transform: scale(.9); }
.qty-control span { min-width: 16px; text-align: center; font-size: .84rem; font-weight: 700; }

.carrinho-modal-count { color: var(--text-muted); font-weight: 600; }

/* Lista do carrinho — cards com fundo suave, thumb + duas linhas (nome/remover, qtd/total) */
.cart-list { display: flex; flex-direction: column; gap: 10px; }
.cart-row {
    display: flex; gap: 12px; padding: 10px; border-radius: var(--radius-sm);
    background: var(--bg-hover); align-items: flex-start;
    animation: cartRowIn .22s ease;
}
@keyframes cartRowIn {
    from { opacity: 0; transform: scale(.95) translateY(4px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.cart-row-thumb, .cart-row .placeholder {
    width: 52px; height: 52px; border-radius: var(--radius-xs); object-fit: cover; flex-shrink: 0;
    background: var(--bg-2); display: flex; align-items: center; justify-content: center; color: var(--border-soft);
}
.cart-row-body { flex: 1; min-width: 0; }
.cart-row-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.cart-row-nome {
    font-size: .85rem; font-weight: 700; color: var(--text); overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap; padding-top: 2px;
}
.cart-row-remove {
    width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); flex-shrink: 0; font-size: .74rem;
    transition: all .18s cubic-bezier(.34,1.56,.64,1);
}
.cart-row-remove:hover { background: var(--bg-2); color: var(--red); transform: scale(1.12) rotate(90deg); }
.cart-row-remove:active { transform: scale(.9) rotate(90deg); }
.cart-row-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.cart-row-total { font-size: .82rem; font-weight: 800; color: var(--text-soft); }

.resumo-linha { display: flex; justify-content: space-between; font-size: .88rem; padding: 5px 0; color: var(--text-soft); }
.resumo-linha.total { font-weight: 800; font-size: 1.05rem; color: var(--text); border-top: 1px solid var(--border); padding-top: 10px; margin-top: 6px; }
.resumo-linha.desconto { color: var(--kpi-green-fg); }
.resumo-linha.total span:last-child { display: inline-block; }
.resumo-linha.total span:last-child.pulse { animation: totalPulse .32s ease; }
@keyframes totalPulse {
    0%   { transform: scale(1); }
    45%  { transform: scale(1.14); color: var(--primary); }
    100% { transform: scale(1); }
}

.vazio-msg { text-align: center; color: var(--text-muted); padding: 24px; }

.estado-vazio { text-align: center; padding: 40px 20px; }
.estado-vazio i {
    display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
    width: 64px; height: 64px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, var(--bg-hover), #FBE0E0 120%);
    color: var(--primary); font-size: 1.6rem; opacity: .75;
}
.estado-vazio-titulo { font-weight: 700; color: var(--text); margin-bottom: 4px; font-size: .92rem; }
.estado-vazio p:not(.estado-vazio-titulo) { color: var(--text-muted); font-size: .82rem; max-width: 280px; margin: 0 auto; }

/* ===== TRABALHE CONOSCO ===== */
.beneficios-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 20px 0 40px; }
.beneficio-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.beneficio-card i { font-size: 1.6rem; color: var(--primary); margin-bottom: 10px; display: block; }
.beneficio-card h3 { font-size: .95rem; font-weight: 800; margin-bottom: 6px; }
.beneficio-card p { font-size: .84rem; color: var(--text-soft); line-height: 1.5; }

.processo-steps { display: flex; flex-direction: column; gap: 18px; margin: 20px 0 40px; }
.processo-step { display: flex; gap: 16px; align-items: flex-start; }
.processo-step-num {
    width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0;
}
.processo-step-texto strong { display: block; font-size: .92rem; margin-bottom: 2px; }
.processo-step-texto p { font-size: .85rem; color: var(--text-soft); }

.candidatura-form-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-top: 12px; }
.candidatura-upload {
    border: 2px dashed var(--border-soft); border-radius: var(--radius-sm); padding: 16px;
    text-align: center; color: var(--text-muted); cursor: pointer; transition: all var(--tr); font-size: .84rem;
}
.candidatura-upload:hover { border-color: var(--primary); color: var(--primary); }
.candidatura-upload-nome { font-size: .8rem; color: var(--primary); font-weight: 700; margin-top: 6px; }
.candidatura-consentimento { display: flex; align-items: flex-start; gap: 8px; font-size: .82rem; color: var(--text-soft); margin: 16px 0; }
.candidatura-consentimento input { width: auto; margin-top: 3px; }

/* ===== FOOTER ===== */
footer.site-footer {
    background: linear-gradient(120deg, var(--accent), #B8000B, #5c0006, var(--accent));
    background-size: 300% 300%;
    animation: footerBreathe 22s ease-in-out infinite;
    color: rgba(255,255,255,.85); margin-top: 40px; padding: 36px 0 24px;
    position: relative; overflow: hidden;
}
@keyframes footerBreathe {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}
footer.site-footer::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 12% 0%, rgba(255,255,255,.08), transparent 55%);
    pointer-events: none;
}
footer.site-footer > .footer-top,
footer.site-footer > .footer-grid,
footer.site-footer > .footer-bottom { position: relative; z-index: 1; }

/* Partículas subindo lentamente — efeito decorativo, não interativo */
.footer-particulas { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.footer-particulas span { position: absolute; border-radius: 50%; background: #fff; animation-name: footerParticulaSobe; animation-timing-function: ease-in; animation-iteration-count: infinite; }
@keyframes footerParticulaSobe {
    0%   { transform: translateY(0); opacity: 0; }
    15%  { opacity: .5; }
    85%  { opacity: .3; }
    100% { transform: translateY(-160px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    footer.site-footer { animation: none; }
    .footer-particulas span { animation: none; display: none; }
}

.footer-top { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.15); }
.footer-brand {
    display: inline-flex; align-items: center; gap: 9px; font-size: 1.25rem; font-weight: 800; color: #fff;
}
.footer-brand:hover { opacity: .85; }
.footer-brand .logo-icon { filter: none; }
.footer-brand .logo-icon > rect { fill: #fff; }
.footer-brand .logo-icon g rect { fill: var(--primary); }
.footer-brand .logo-icon g path { fill: #fff; opacity: .3; }
.footer-tagline { font-size: .85rem; color: rgba(255,255,255,.65); margin-top: 6px; max-width: 360px; }

footer.site-footer h4 { color: #fff; font-weight: 800; margin-bottom: 12px; font-size: .92rem; }
footer.site-footer ul li { margin-bottom: 9px; font-size: .85rem; display: flex; align-items: center; gap: 7px; }
footer.site-footer ul li i { font-size: .78rem; opacity: .8; width: 14px; }
footer.site-footer a { color: rgba(255,255,255,.85); transition: color var(--tr), transform var(--tr); display: inline-block; }
footer.site-footer a:hover { color: #fff; transform: translateX(3px); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; }

.footer-payment-badge {
    display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 6px 14px;
    font-size: .82rem; font-weight: 700; color: #fff; transition: all .2s ease;
}
.footer-payment-badge:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 28px; padding-top: 18px; font-size: .78rem; text-align: center; opacity: .75; }

/* ===== AVALIAÇÕES ===== */
.stars { color: var(--gold); display: inline-flex; gap: 2px; }
.stars-sm { font-size: .78rem; }
.av-media {
    display: flex; align-items: center; gap: 16px; margin-bottom: 20px;
    padding: 16px 18px; background: var(--bg-hover); border-radius: var(--radius);
}
.av-nota-big { font-size: 2.4rem; font-weight: 800; color: var(--primary); }
.av-qtd { font-size: .8rem; color: var(--text-muted); }
.av-lista { display: flex; flex-direction: column; gap: 12px; }
.av-item {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 14px 16px; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease;
    animation: productCardIn .3s cubic-bezier(.22,1,.36,1) both;
}
.av-item:hover { box-shadow: var(--shadow); }
.av-item-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.av-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--primary-glow); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem; flex-shrink: 0; }
.av-data { margin-left: auto; font-size: .74rem; color: var(--text-muted); }
.av-comentario { font-size: .87rem; color: var(--text-soft); line-height: 1.6; }
.av-star-input { font-size: 1.5rem; color: var(--border-soft); cursor: pointer; }
.av-star-input.av-star-sel { color: var(--gold); }

/* ===== BACK TO TOP / TOAST DE COOKIES ===== */
.btn-back-top {
    position: fixed; bottom: 24px; right: 24px; width: 46px; height: 46px; border-radius: 50%;
    background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transform: translateY(10px);
    transition: all var(--tr); z-index: 100;
}
.btn-back-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.cookie-banner {
    position: fixed; left: 20px; bottom: 20px; width: calc(100% - 40px); max-width: 380px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px; display: flex; gap: 12px; align-items: flex-start;
    transform: translateY(140%); transition: transform .4s cubic-bezier(.34,1.56,.64,1);
    z-index: 300; box-shadow: var(--shadow-lg);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-icone {
    width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
    background: var(--primary-glow); color: var(--primary); font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
}
.cookie-conteudo { flex: 1; min-width: 0; }
.cookie-texto { font-size: .82rem; color: var(--text-soft); line-height: 1.5; margin-bottom: 10px; }
@media (max-width: 560px) {
    .cookie-banner { left: 14px; right: 14px; width: auto; max-width: none; }
}

/* ===== ADMIN LOGIN ===== */
.admin-login-wrap {
    min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
}
.admin-login-box {
    background: var(--bg-card); border-radius: var(--radius); padding: 36px; width: 100%; max-width: 380px;
    box-shadow: var(--shadow-lg);
}
.admin-login-box .logo { justify-content: center; margin-bottom: 6px; }
.admin-login-sub { text-align: center; color: var(--text-muted); font-size: .84rem; margin-bottom: 24px; }

/* ===== ADMIN LAYOUT ===== */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 232px; background: var(--bg-2); border-right: 1px solid var(--border);
    flex-shrink: 0; display: flex; flex-direction: column; padding: 18px 0;
}
.admin-sidebar .logo { padding: 0 20px 18px; }
.admin-nav-item {
    display: flex; align-items: center; gap: 10px; margin: 2px 12px; padding: 10px 14px;
    border-radius: var(--radius-sm); font-size: .86rem;
    font-weight: 600; color: var(--text-soft); position: relative; transition: all .2s cubic-bezier(.34,1.56,.64,1);
}
.admin-nav-item i { width: 18px; text-align: center; }
.admin-nav-item:hover { background: var(--bg-hover); color: var(--primary); transform: translateX(2px); }
.admin-nav-item.ativo {
    background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(227,6,19,.28); transform: none;
}
.admin-nav-item .badge-count {
    margin-left: auto; background: var(--red); color: #fff; font-size: .65rem; font-weight: 800;
    min-width: 18px; height: 18px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
    transition: all .2s ease;
}
.admin-nav-item.ativo .badge-count { background: #fff; color: var(--primary); }
.admin-main { flex: 1; padding: 26px 32px; overflow-x: hidden; }
.admin-tab-content { display: none; }
.admin-tab-content.ativo { display: block; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.admin-topbar h2 { font-size: 1.3rem; font-weight: 800; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 24px; }
.kpi-tile {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px;
    box-shadow: var(--shadow-sm); transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease;
}
.kpi-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.kpi-tile .kpi-icon { width: 38px; height: 38px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.kpi-tile .kpi-icon.green  { background: var(--kpi-green-bg);  color: var(--kpi-green-fg); }
.kpi-tile .kpi-icon.gold   { background: var(--kpi-gold-bg);   color: var(--gold); }
.kpi-tile .kpi-icon.purple { background: var(--kpi-purple-bg); color: var(--purple); }
.kpi-tile .kpi-value { font-size: 1.5rem; font-weight: 800; }
.kpi-tile .kpi-label { font-size: .76rem; color: var(--text-muted); }

.admin-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.admin-card h3 { font-size: .95rem; font-weight: 800; margin-bottom: 14px; }

.admin-table-scroll { overflow-x: auto; }
table.admin-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
table.admin-table th { text-align: left; color: var(--text-muted); font-weight: 700; font-size: .75rem; text-transform: uppercase; padding: 8px 10px; border-bottom: 1.5px solid var(--border); }
table.admin-table td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.admin-table tr:hover td { background: var(--bg-hover); }
.admin-table-thumb { width: 42px; height: 42px; object-fit: cover; border-radius: var(--radius-xs); background: var(--bg-hover); }

.status-pill { font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; display: inline-block; }
.status-pendente  { background: var(--kpi-gold-bg); color: var(--gold); }
.status-pago       { background: var(--kpi-green-bg); color: var(--kpi-green-fg); }
.status-preparando { background: var(--kpi-purple-bg); color: var(--purple); }
.status-enviado     { background: var(--primary-glow); color: var(--primary); }
.status-entregue    { background: var(--kpi-green-bg); color: var(--kpi-green-fg); }
.status-cancelado   { background: rgba(209,67,67,.14); color: var(--red); }

/* ===== BANNER DE PONTOS DE FIDELIDADE (cliente) ===== */
.fidelidade-banner {
    display: flex; align-items: center; gap: 12px; margin-top: 12px;
    background: var(--kpi-gold-bg); border: 1px solid rgba(184,134,11,.25); border-radius: var(--radius-sm);
    padding: 12px 14px;
}
.fidelidade-banner i { font-size: 1.4rem; color: var(--gold); flex-shrink: 0; }
.fidelidade-banner strong { display: block; font-size: .88rem; color: var(--text); }
.fidelidade-banner span { display: block; font-size: .76rem; color: var(--text-muted); margin-top: 2px; }

/* ===== ACOMPANHAMENTO DE PEDIDO (timeline) ===== */
.pedido-tracking-card { padding: 14px 0; border-bottom: 1px solid var(--border); }
.pedido-tracking-card:last-child { border-bottom: none; }
.tracking-timeline { margin-top: 12px; }
.tracking-step { display: flex; gap: 12px; }
.tracking-step-icon-col { display: flex; flex-direction: column; align-items: center; }
.tracking-step-icon { font-size: 1.15rem; line-height: 1; transition: color .3s ease; }
.tracking-step-icon.completo { color: var(--primary); }
.tracking-step-icon.pendente { color: var(--border-soft); }
.tracking-step-line { width: 2px; flex: 1; min-height: 20px; background: var(--border-soft); transition: background .3s ease; }
.tracking-step-line.completo { background: var(--primary); }
.tracking-step-content { padding-bottom: 16px; }
.tracking-step-nome { font-size: .84rem; font-weight: 700; color: var(--text); }
.tracking-step-nome.pendente-txt { color: var(--text-muted); font-weight: 600; }
.tracking-step-data { font-size: .74rem; color: var(--text-muted); margin-top: 1px; }
.tracking-cancelado {
    margin-top: 12px; display: flex; align-items: center; gap: 8px;
    color: var(--red); background: rgba(209,67,67,.1); border-radius: var(--radius-sm);
    padding: 10px 12px; font-size: .84rem; font-weight: 700;
}

.admin-fotos-grid { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.admin-foto-thumb {
    position: relative; width: 84px; height: 84px; border-radius: var(--radius-xs); overflow: hidden;
    border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform .2s cubic-bezier(.34,1.56,.64,1);
    animation: productCardIn .3s cubic-bezier(.22,1,.36,1) both;
}
.admin-foto-thumb:hover { transform: translateY(-2px) scale(1.03); }
.admin-foto-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-foto-thumb button {
    position: absolute; top: 3px; right: 3px; background: rgba(20,10,10,.65); color: #fff;
    width: 20px; height: 20px; border-radius: 50%; font-size: .65rem;
    display: flex; align-items: center; justify-content: center; transition: all .18s ease;
}
.admin-foto-thumb button:hover { background: var(--red); transform: scale(1.12); }
.admin-upload-box {
    border: 2px dashed var(--border-soft); border-radius: var(--radius-sm); padding: 26px 20px; text-align: center;
    color: var(--text-muted); cursor: pointer; background: var(--bg-hover); transition: all .25s ease;
}
.admin-upload-box:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-glow); }
.admin-upload-box i { display: block; margin-bottom: 8px; color: var(--primary); opacity: .75; }
.admin-upload-box p { font-size: .84rem; font-weight: 600; }

.kpi-tile .kpi-icon.red { background: var(--kpi-red-bg); color: var(--red); }
.kpi-tile.kpi-tile-alerta { border-color: var(--red); }

/* ===== TOOLBAR (busca/filtro das listas admin) ===== */
.admin-toolbar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px;
}
.admin-search-box { position: relative; flex: 1 1 220px; min-width: 180px; }
.admin-search-box i {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); font-size: .85rem; pointer-events: none;
}
.admin-search-box input {
    width: 100%; padding: 9px 12px 9px 34px; border: 1.5px solid var(--border-soft);
    border-radius: var(--radius-sm); font-size: .85rem; background: var(--bg-input); color: var(--text);
    transition: border-color var(--tr);
}
.admin-search-box input:focus { border-color: var(--primary); }
.admin-toolbar select {
    padding: 9px 12px; border: 1.5px solid var(--border-soft); border-radius: var(--radius-sm);
    font-size: .83rem; background: var(--bg-input); color: var(--text); font-weight: 600;
}
.admin-view-toggle { display: flex; border: 1.5px solid var(--border-soft); border-radius: var(--radius-sm); overflow: hidden; }
.admin-view-toggle button {
    padding: 8px 12px; color: var(--text-muted); background: transparent; font-size: .85rem;
    transition: all var(--tr);
}
.admin-view-toggle button.ativo { background: var(--primary); color: #fff; }
.admin-view-toggle button:not(.ativo):hover { background: var(--bg-hover); color: var(--primary); }

/* ===== GERENCIAR PRODUTOS — visão em cards ===== */
.admin-produtos-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.admin-produto-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease;
    display: flex; flex-direction: column;
}
.admin-produto-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.admin-produto-card-img { width: 100%; height: 130px; object-fit: cover; background: var(--bg-hover); }
.admin-produto-card-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.admin-produto-card-nome { font-size: .87rem; font-weight: 700; line-height: 1.25; }
.admin-produto-card-lab { font-size: .74rem; color: var(--text-muted); }
.admin-produto-card-preco { font-size: .95rem; font-weight: 800; color: var(--primary); margin-top: 2px; }
.admin-produto-card-estoque { font-size: .74rem; color: var(--text-muted); }
.admin-produto-card-actions { display: flex; gap: 6px; padding: 0 14px 14px; }
.admin-produto-card-actions .btn-sm { flex: 1; }
.admin-produto-card-inativo { opacity: .55; }

/* ===== RANKING DE MAIS VENDIDOS ===== */
.top-vendas-list { display: flex; flex-direction: column; gap: 10px; }
.top-vendas-item { display: flex; align-items: center; gap: 12px; }
.top-vendas-rank {
    width: 26px; height: 26px; border-radius: 50%; background: var(--bg-hover); color: var(--primary);
    font-size: .78rem; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.top-vendas-item:nth-child(1) .top-vendas-rank { background: var(--kpi-gold-bg); color: var(--gold); }
.top-vendas-info { flex: 1; min-width: 0; }
.top-vendas-nome { font-size: .84rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-vendas-bar-wrap { height: 5px; background: var(--bg-hover); border-radius: 999px; margin-top: 4px; overflow: hidden; }
.top-vendas-bar { height: 100%; background: var(--primary); border-radius: 999px; }
.top-vendas-qtd { font-size: .78rem; font-weight: 800; color: var(--text-muted); flex-shrink: 0; }

/* ===== MODAL DE DETALHE DO PEDIDO ===== */
.pedido-detalhe-secao { margin-bottom: 18px; }
.pedido-detalhe-secao h4 {
    font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
    color: var(--text-muted); margin-bottom: 8px;
}
.pedido-detalhe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; font-size: .85rem; }
.pedido-detalhe-grid strong { display: block; font-size: .72rem; color: var(--text-muted); font-weight: 700; margin-bottom: 2px; }
.pedido-detalhe-itens { display: flex; flex-direction: column; gap: 8px; }
.pedido-detalhe-item { display: flex; justify-content: space-between; font-size: .85rem; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.pedido-detalhe-totais { margin-top: 10px; font-size: .85rem; }
.pedido-detalhe-totais div { display: flex; justify-content: space-between; padding: 3px 0; }
.pedido-detalhe-totais .total-final { font-weight: 800; font-size: 1rem; margin-top: 6px; padding-top: 8px; border-top: 1.5px solid var(--border); }

@media (max-width: 560px) {
    .pedido-detalhe-grid { grid-template-columns: 1fr; }
}

/* ===== AÇÕES EM LOTE ===== */
.admin-bulk-bar {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    background: var(--bg-hover); border: 1.5px solid var(--primary-glow); border-radius: var(--radius-sm);
    padding: 10px 14px; margin-bottom: 14px; animation: bulkBarIn .2s cubic-bezier(.34,1.56,.64,1);
}
.admin-bulk-bar span { font-size: .82rem; font-weight: 700; color: var(--text); margin-right: 4px; }
@keyframes bulkBarIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.admin-table input[type="checkbox"], .admin-produto-card-checkbox input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }
.admin-produto-card { position: relative; }
.admin-produto-card-checkbox {
    position: absolute; top: 8px; left: 8px; z-index: 2; background: rgba(255,255,255,.9);
    border-radius: var(--radius-xs); width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-sm);
}

/* ===== PAGINAÇÃO ===== */
.admin-paginacao { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }
.admin-paginacao span { font-size: .82rem; color: var(--text-muted); font-weight: 600; }
.admin-paginacao button:disabled { opacity: .4; pointer-events: none; }

/* ===== HISTÓRICO DE STATUS DO PEDIDO (na modal de detalhe) ===== */
.pedido-historico-item { display: flex; gap: 10px; align-items: baseline; font-size: .82rem; padding: 6px 0; border-bottom: 1px solid var(--border); }
.pedido-historico-item:last-child { border-bottom: none; }
.pedido-historico-item .status-pill { flex-shrink: 0; }
.pedido-historico-data { color: var(--text-muted); font-size: .74rem; margin-left: auto; white-space: nowrap; }

@media (max-width: 860px) {
    .admin-sidebar { position: fixed; left: -232px; top: 0; bottom: 0; z-index: 60; transition: left var(--tr); }
    .admin-sidebar.open { left: 0; }
    .admin-main { padding: 18px; }
    #btn-toggle-sidebar { display: flex !important; }

    .header-row { flex-wrap: wrap; gap: 10px 18px; }
    .search-box { order: 3; max-width: 100%; flex-basis: 100%; }
    .logo { font-size: 1.3rem; }

    .hero { padding: 28px 22px; }
    .hero h1 { font-size: 1.8rem; }
    .hero-visual { width: 170px; height: 170px; }
    .hv-card--main { width: 84px; height: 84px; font-size: 2.3rem; }
    .hv-card--pulse { width: 46px; height: 46px; font-size: 1.15rem; }
    .hv-card--shield { width: 42px; height: 42px; font-size: 1.05rem; }

    .form-grid { grid-template-columns: 1fr; }
    .detalhe-grid { grid-template-columns: 1fr; gap: 16px; }
    .modal-box { max-height: 92vh; }

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

@media (max-width: 560px) {
    .container { padding: 0 14px; }

    .produtos-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .produtos-grid-sm { grid-template-columns: repeat(2, 1fr); }
    .produto-foto { height: 110px; }
    .hero { flex-direction: column; text-align: center; padding: 24px 18px; }
    .hero > div:first-child { order: 2; }
    .hero-visual { order: 1; width: 140px; height: 140px; }
    .hv-card--main { width: 70px; height: 70px; font-size: 1.9rem; }
    .hv-card--pulse { width: 40px; height: 40px; font-size: 1rem; }
    .hv-card--shield { width: 36px; height: 36px; font-size: .9rem; }

    .modal-header { padding: 14px 16px; }
    .modal-body { padding: 16px; }
    .modal-footer { flex-direction: column-reverse; }
    .modal-footer button { width: 100%; }

    .resumo-cartao-footer { padding: 12px 14px; }
    .resumo-cartao-footer span { font-size: 1.05rem; white-space: nowrap; }
    .resumo-cartao-footer .btn-lg { padding: 11px 18px; font-size: .86rem; }

    .kpi-grid { grid-template-columns: 1fr 1fr; }
    .admin-topbar { flex-wrap: wrap; gap: 10px; }
}
