:root {
    --bg: #050505;
    --bg-soft: #0b0b0b;
    --card: #111111;
    --card-2: #171717;
    --text: #f8f1d2;
    --text-strong: #fff6cc;
    --muted: #b7aa7a;
    --primary: #d4af37;
    --primary-dark: #a97d19;
    --primary-soft: rgba(212, 175, 55, .14);
    --nav: #050505;
    --nav-soft: #15110a;
    --border: rgba(212, 175, 55, .32);
    --danger: #dc2626;
    --blue: #3b82f6;
    --green: #22c55e;
    --shadow: 0 18px 45px rgba(0, 0, 0, .42);
    --gold-gradient: linear-gradient(135deg, #fff2a8 0%, #d4af37 38%, #8b5e12 100%);
}

* { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(212,175,55,.12), transparent 32%),
        radial-gradient(circle at bottom right, rgba(212,175,55,.08), transparent 35%),
        var(--bg);
    color: var(--text);
    min-height: 100vh;
}

a { color: var(--primary); }

.app-shell {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: 280px;
    background:
        linear-gradient(180deg, rgba(212,175,55,.08), transparent 22%),
        var(--nav);
    color: var(--text);
    padding: 18px 15px;
    position: fixed;
    inset: 0 auto 0 0;
    overflow-y: auto;
    z-index: 50;
    border-right: 1px solid var(--border);
    box-shadow: 16px 0 45px rgba(0,0,0,.35);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px 18px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.logo,
.brand-logo {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    object-fit: cover;
    border: 1px solid rgba(212,175,55,.75);
    box-shadow: 0 0 22px rgba(212,175,55,.35);
    background: #000;
}

.brand h1 {
    margin: 0;
    font-size: 24px;
    line-height: 1;
    letter-spacing: 1px;
    color: var(--text-strong);
    text-shadow: 0 0 16px rgba(212,175,55,.38);
}

.brand span {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.nav-menu a {
    color: var(--text);
    text-decoration: none;
    background: transparent;
    padding: 13px 12px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    border: 1px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--primary-soft);
    border-color: var(--border);
    color: var(--text-strong);
    box-shadow: inset 0 0 20px rgba(212,175,55,.08);
}

.main-area {
    margin-left: 280px;
    width: calc(100% - 280px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(5, 5, 5, .88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-title {
    font-size: 19px;
    font-weight: 900;
    color: var(--text-strong);
}

.topbar-subtitle {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.mobile-menu-btn {
    display: none;
    border: 1px solid var(--border);
    background: var(--gold-gradient);
    color: #140d02;
    border-radius: 14px;
    padding: 10px 13px;
    font-size: 20px;
    min-height: 42px;
}

main {
    padding: 22px;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
}

.hero-card {
    background:
        linear-gradient(135deg, rgba(212,175,55,.18), rgba(0,0,0,.2)),
        var(--card);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 22px;
    box-shadow: var(--shadow);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.hero-card img {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    object-fit: cover;
    border: 1px solid var(--border);
    box-shadow: 0 0 26px rgba(212,175,55,.30);
}

.hero-card h2 {
    margin: 0;
    font-size: 28px;
    color: var(--text-strong);
}

.hero-card p { margin: 6px 0 0; color: var(--muted); }

.card {
    background:
        linear-gradient(180deg, rgba(255,255,255,.025), transparent),
        var(--card);
    padding: 20px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 18px;
    border: 1px solid var(--border);
}

.card h2, .card h3 {
    margin-top: 0;
    color: var(--text-strong);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}

label {
    font-weight: 900;
    font-size: 13px;
    color: var(--text-strong);
}

input, select {
    width: 100%;
    padding: 13px 12px;
    margin-top: 6px;
    border: 1px solid rgba(212,175,55,.28);
    border-radius: 15px;
    background: #080808;
    color: var(--text);
    font-size: 16px;
    outline: none;
}

input:disabled {
    opacity: .82;
    background: #111;
    color: var(--muted);
}

input::placeholder { color: #786a42; }

input:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, .14);
}

button, .btn {
    border: none;
    background: var(--gold-gradient);
    color: #140d02;
    padding: 13px 16px;
    border-radius: 15px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 900;
    min-height: 46px;
    box-shadow: 0 10px 24px rgba(212,175,55,.18);
}

button:hover, .btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.btn-edit { background: linear-gradient(135deg, #93c5fd, #2563eb); color: white; }
.btn-danger { background: linear-gradient(135deg, #fca5a5, #dc2626); color: white; }
.btn-gray { background: linear-gradient(135deg, #9ca3af, #374151); color: white; }
.btn-yellow { background: var(--gold-gradient); color: #140d02; }

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: #080808;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 860px;
}

th, td {
    padding: 12px 11px;
    border-bottom: 1px solid rgba(212,175,55,.16);
    text-align: left;
    vertical-align: middle;
}

th {
    background: rgba(212,175,55,.10);
    color: var(--text-strong);
    font-size: 13px;
}

td { color: var(--text); }
tr:last-child td { border-bottom: 0; }

.alert {
    padding: 14px;
    border-radius: 16px;
    margin-bottom: 15px;
    font-weight: 800;
    border: 1px solid transparent;
}

.success { background: rgba(34,197,94,.16); color: #bbf7d0; border-color: rgba(34,197,94,.35); }
.error { background: rgba(220,38,38,.16); color: #fecaca; border-color: rgba(220,38,38,.35); }

.badge {
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    display: inline-block;
    white-space: nowrap;
}

.caro { background: rgba(220,38,38,.18); color: #fecaca; }
.barato { background: rgba(34,197,94,.18); color: #bbf7d0; }
.igual { background: rgba(212,175,55,.14); color: #fde68a; }

.money-preview {
    font-size: 13px;
    color: #fde68a;
    margin-top: 5px;
    font-weight: 900;
}

.lucro-ok { color: #86efac; font-weight: 900; }
.lucro-ruim { color: #fca5a5; font-weight: 900; }

.lucro-box {
    background: linear-gradient(135deg, rgba(212,175,55,.16), rgba(212,175,55,.03));
    padding: 14px;
    border-radius: 18px;
    border: 1px solid var(--border);
}

.lucro-box strong {
    display: block;
    margin-bottom: 7px;
    color: var(--text-strong);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}

.stat-card {
    background:
        linear-gradient(135deg, rgba(212,175,55,.13), rgba(255,255,255,.02)),
        var(--card-2);
    border-radius: 24px;
    padding: 18px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.stat-card small {
    color: var(--muted);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.stat-card strong {
    display: block;
    margin-top: 8px;
    font-size: 28px;
    color: var(--primary);
}

.search-row { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.search-row > div { flex: 1; min-width: 180px; }

.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-small { min-height: 34px; padding: 8px 10px; font-size: 13px; width: auto; }

.kpi-positive { color: #86efac !important; }
.kpi-negative { color: #fca5a5 !important; }

.pdv-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; align-items: start; }
.cart-box { position: sticky; top: 92px; }
.total-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(212,175,55,.20); }
.total-line.grand { font-size: 22px; font-weight: 900; border-bottom: 0; color: var(--primary); }

.mobile-overlay { display: none; }

.receipt {
    background: white;
    color: black;
    max-width: 360px;
    padding: 18px;
    border-radius: 12px;
    font-family: monospace;
}

.receipt img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    display: block;
    margin: 0 auto 8px;
    border-radius: 12px;
}

.receipt h2, .receipt p { text-align: center; margin: 4px 0; }
.receipt table { min-width: 0; color: black; }
.receipt th, .receipt td { color: black; border-bottom: 1px dashed #999; padding: 6px 2px; font-size: 12px; }

@media (max-width: 980px) {
    .pdv-layout { grid-template-columns: 1fr; }
    .cart-box { position: static; }
}

@media (max-width: 820px) {
    .app-shell { display: block; }

    .sidebar {
        transform: translateX(-105%);
        transition: transform .2s ease;
        width: 84%;
        max-width: 330px;
        box-shadow: 20px 0 45px rgba(0,0,0,.55);
    }

    body.menu-open .sidebar { transform: translateX(0); }

    body.menu-open .mobile-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.58);
        z-index: 40;
    }

    .main-area {
        margin-left: 0;
        width: 100%;
    }

    .topbar { padding: 12px 14px; }
    .mobile-menu-btn { display: inline-flex; }

    main {
        padding: 14px;
        padding-bottom: 86px;
    }

    .card { padding: 16px; border-radius: 22px; }
    .grid { grid-template-columns: 1fr; }
    button, .btn { width: 100%; }
    .desktop-only { display: none; }
    table { min-width: 780px; }

    .hero-card {
        padding: 16px;
        align-items: center;
    }

    .hero-card img {
        width: 74px;
        height: 74px;
        border-radius: 18px;
    }

    .hero-card h2 { font-size: 22px; }

    .actions { flex-direction: column; }
    .btn-small { width: 100%; }
    .search-row { display: grid; grid-template-columns: 1fr; }
}

@media print {
    body * { visibility: hidden; }
    .print-area, .print-area * { visibility: visible; }
    .print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    .no-print { display: none !important; }
}
.pro-seal {
    display:inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--primary-soft);
    border: 1px solid var(--border);
    color: var(--primary);
    font-weight: 900;
    font-size: 12px;
}

.menu-section-title {
    margin: 16px 10px 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .9px;
    opacity: .85;
}

.nav-menu a {
    min-height: 44px;
}

@media (max-width: 820px) {
    .menu-section-title {
        margin-top: 14px;
    }
}


.pin-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.78);
    z-index: 9999;
    place-items: center;
    padding: 18px;
}

.pin-box {
    width: 100%;
    max-width: 380px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 24px 70px rgba(0,0,0,.65);
}

.pin-box h2 {
    margin-top: 0;
    color: var(--primary);
}

.pin-display {
    text-align: center;
    font-size: 32px;
    letter-spacing: 8px;
    font-weight: 900;
}

.pin-keypad {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.pin-keypad button {
    min-height: 58px;
    font-size: 20px;
}

@media (max-width: 520px) {
    .pin-box {
        max-width: 100%;
    }

    .pin-keypad button {
        min-height: 62px;
        font-size: 22px;
    }
}

.config-preview-logo {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 18px;
}

/* V22 */
.chart-bars { display: flex; flex-direction: column; gap: 12px; }
.chart-row { display: grid; grid-template-columns: 70px 1fr 120px; gap: 12px; align-items: center; }
.chart-track { height: 18px; background: rgba(212,175,55,.15); border-radius: 999px; overflow: hidden; }
.chart-fill { height: 100%; background: linear-gradient(90deg, var(--primary), #22c55e); border-radius: 999px; }
.dashboard-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width:900px){ .dashboard-two { grid-template-columns: 1fr; } .chart-row { grid-template-columns: 55px 1fr; } .chart-row strong { grid-column: 2; } }

.btn-venda-rapida {
    background: linear-gradient(90deg,#22c55e,#16a34a);
    color:white;
    font-weight:bold;
    font-size:18px;
}

/* V24 PDV APP */
.pdv-app-shell {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 18px;
    align-items: start;
}

.pdv-app-main {
    min-width: 0;
}

.pdv-app-hero {
    background:
        linear-gradient(135deg, rgba(212,175,55,.18), rgba(255,255,255,.02)),
        var(--card);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.pdv-app-hero h1 {
    margin: 0;
    color: var(--text-strong);
    font-size: 30px;
}

.pdv-app-hero p {
    margin: 6px 0 0;
    color: var(--muted);
}

.pdv-total-chip {
    background: rgba(34,197,94,.12);
    border: 1px solid rgba(34,197,94,.35);
    border-radius: 20px;
    padding: 12px 16px;
    min-width: 180px;
    text-align: right;
}

.pdv-total-chip small {
    color: #86efac;
    display: block;
    font-weight: 900;
}

.pdv-total-chip strong {
    color: #bbf7d0;
    font-size: 28px;
}

.pdv-search-bar {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.pdv-search-bar input {
    margin: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    font-size: 18px;
}

.pdv-search-bar input:focus {
    box-shadow: none;
}

.pdv-categorias {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 4px 0 14px;
    margin-bottom: 6px;
}

.pdv-categorias a {
    flex: 0 0 auto;
    text-decoration: none;
    color: var(--text);
    background: var(--card);
    border: 1px solid var(--border);
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 900;
}

.pdv-categorias a.active {
    background: var(--primary);
    color: #140d02;
}

.pdv-section-title {
    color: var(--text-strong);
    font-size: 18px;
    font-weight: 900;
    margin: 10px 0 12px;
}

.pdv-favoritos {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 12px;
}

.pdv-fav-card {
    flex: 0 0 190px;
    margin: 0;
}

.pdv-fav-card button {
    width: 100%;
    min-height: 82px;
    background: linear-gradient(135deg, rgba(212,175,55,.18), rgba(212,175,55,.05));
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 18px;
    display: grid;
    gap: 4px;
    box-shadow: none;
}

.pdv-fav-card span {
    font-size: 14px;
    line-height: 1.15;
}

.pdv-fav-card strong {
    color: #86efac;
}

.pdv-produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
    padding-bottom: 30px;
}

.pdv-produto-card {
    margin: 0;
}

.pdv-produto-card button {
    width: 100%;
    min-height: 156px;
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 12px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 72px 1fr 42px;
    gap: 12px;
    align-items: center;
    text-align: left;
}

.pdv-produto-card button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.pdv-produto-img {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: linear-gradient(135deg, #111827, var(--primary));
    display: grid;
    place-items: center;
    overflow: hidden;
    color: white;
    font-size: 30px;
    font-weight: 900;
}

.pdv-produto-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pdv-produto-info h3 {
    margin: 0;
    font-size: 16px;
    color: var(--text-strong);
    line-height: 1.2;
}

.pdv-produto-info p {
    margin: 6px 0;
    font-size: 12px;
    color: var(--muted);
}

.pdv-produto-info strong {
    color: #86efac;
    font-size: 18px;
}

.pdv-plus {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--primary);
    color: #140d02;
    font-size: 26px;
    font-weight: 900;
}

.pdv-cart-panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 26px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pdv-cart-head {
    padding: 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pdv-cart-head h2 {
    margin: 0;
    color: var(--text-strong);
}

.pdv-cart-head a {
    color: #fca5a5;
    font-weight: 900;
    text-decoration: none;
}

.pdv-cart-items {
    padding: 12px 18px;
    overflow-y: auto;
    flex: 1;
}

.pdv-empty-cart {
    min-height: 170px;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--muted);
}

.pdv-empty-cart strong {
    color: var(--text-strong);
    display: block;
    font-size: 20px;
}

.pdv-cart-item {
    border-bottom: 1px solid rgba(212,175,55,.18);
    padding: 12px 0;
    display: grid;
    gap: 10px;
}

.pdv-cart-item strong {
    color: var(--text-strong);
}

.pdv-cart-item small {
    color: var(--muted);
}

.pdv-qty {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pdv-qty a {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--primary);
    color: #140d02;
    display: grid;
    place-items: center;
    text-decoration: none;
    font-weight: 900;
    font-size: 20px;
}

.pdv-qty span {
    color: var(--text-strong);
    font-weight: 900;
}

.pdv-item-sub {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pdv-item-sub a {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(220,38,38,.18);
    color: #fecaca;
    display: grid;
    place-items: center;
    text-decoration: none;
    font-size: 22px;
}

.pdv-cart-footer {
    padding: 18px;
    border-top: 1px solid var(--border);
    background: rgba(0,0,0,.18);
}

.pdv-total-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--text);
}

.pdv-total-line strong {
    color: var(--primary);
    font-size: 22px;
}

.pdv-total-line.lucro strong {
    color: #86efac;
}

.pdv-finalizar,
.pdv-confirmar {
    width: 100%;
    min-height: 62px;
    border-radius: 18px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    font-size: 20px;
}

.pdv-finalizar:disabled,
.pdv-confirmar:disabled {
    background: #374151;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}

.pdv-mobile-cart-btn,
.pdv-mobile-bg {
    display: none;
}

.pdv-payment-bg {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 1000;
}

.pdv-payment-bg.open {
    display: block;
}

.pdv-payment-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(520px, calc(100% - 28px));
    max-height: 92vh;
    overflow-y: auto;
    transform: translate(-50%, -50%) scale(.95);
    opacity: 0;
    pointer-events: none;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 20px;
    z-index: 1001;
    box-shadow: 0 30px 90px rgba(0,0,0,.55);
    transition: all .18s ease;
}

.pdv-payment-modal.open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.pdv-payment-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pdv-payment-head h2 {
    margin: 0;
    color: var(--text-strong);
}

.pdv-payment-head button {
    width: 42px;
    min-height: 42px;
    border-radius: 999px;
    padding: 0;
    background: rgba(255,255,255,.08);
    color: var(--text);
    box-shadow: none;
    font-size: 24px;
}

.pdv-pay-summary {
    margin: 18px 0;
    background: rgba(212,175,55,.08);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 14px;
}

.pdv-pay-summary div {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
}

.pdv-pay-summary .grand {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary);
}

.pdv-pay-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.pdv-pay-methods button {
    min-height: 58px;
    background: rgba(255,255,255,.06);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: none;
}

.pdv-pay-methods button.selected {
    background: var(--primary);
    color: #140d02;
}

.pdv-pin-btn {
    width: 100%;
    background: #111827;
    color: white;
    margin-top: 8px;
}

@media (max-width: 980px) {
    .pdv-app-shell {
        grid-template-columns: 1fr;
    }

    .pdv-cart-panel {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        max-height: 76vh;
        border-radius: 26px 26px 0 0;
        z-index: 901;
        transform: translateY(105%);
        transition: transform .22s ease;
    }

    .pdv-cart-panel.open {
        transform: translateY(0);
    }

    .pdv-mobile-bg {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.5);
        z-index: 900;
        opacity: 0;
        pointer-events: none;
    }

    .pdv-mobile-bg.open {
        opacity: 1;
        pointer-events: auto;
    }

    .pdv-mobile-cart-btn {
        display: flex;
        position: fixed;
        left: 14px;
        right: 14px;
        bottom: 16px;
        z-index: 800;
        min-height: 62px;
        border-radius: 20px;
        background: linear-gradient(135deg, #22c55e, #16a34a);
        color: white;
        justify-content: space-between;
        padding: 0 18px;
        align-items: center;
        font-weight: 900;
        box-shadow: 0 14px 34px rgba(34,197,94,.28);
    }

    .pdv-app-hero {
        display: block;
    }

    .pdv-total-chip {
        margin-top: 12px;
        text-align: left;
    }

    .pdv-search-bar {
        flex-wrap: wrap;
    }

    .pdv-search-bar button,
    .pdv-search-bar .btn {
        width: auto;
    }

    .pdv-produtos-grid {
        grid-template-columns: 1fr;
        padding-bottom: 92px;
    }

    .pdv-payment-modal {
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-height: 86vh;
        border-radius: 28px 28px 0 0;
        transform: translateY(105%);
    }

    .pdv-payment-modal.open {
        transform: translateY(0);
    }
}

/* V25 PDV Premium polish */
.pdv-top-actions {
    display: grid;
    gap: 10px;
    align-items: center;
}

.turbo-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.turbo-toggle input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.turbo-toggle span {
    background: rgba(34,197,94,.14);
    border: 1px solid rgba(34,197,94,.34);
    color: #bbf7d0;
    padding: 9px 12px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 13px;
}

.add-feedback {
    position: fixed;
    z-index: 99999;
    pointer-events: none;
    background: #22c55e;
    color: white;
    font-weight: 900;
    font-size: 20px;
    border-radius: 999px;
    padding: 8px 13px;
    transform: translate(-50%, 0) scale(.8);
    opacity: 0;
}

.add-feedback.show {
    animation: addPop .72s ease forwards;
}

@keyframes addPop {
    0% { opacity: 0; transform: translate(-50%, 10px) scale(.7); }
    25% { opacity: 1; transform: translate(-50%, -8px) scale(1.08); }
    100% { opacity: 0; transform: translate(-50%, -44px) scale(1); }
}

.produto-add-card button {
    position: relative;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.produto-add-card button:active {
    transform: scale(.975);
    border-color: #22c55e;
}

.stock-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    margin-bottom: 6px;
}

.stock-ok {
    background: rgba(34,197,94,.18);
    color: #bbf7d0;
}

.stock-mid {
    background: rgba(250,204,21,.16);
    color: #fde68a;
}

.stock-low {
    background: rgba(249,115,22,.18);
    color: #fed7aa;
}

.stock-zero {
    background: rgba(220,38,38,.18);
    color: #fecaca;
}

.pdv-pay-mini-items {
    margin: 18px 0 12px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(212,175,55,.18);
    border-radius: 18px;
    padding: 13px;
}

.pdv-pay-mini-items > strong {
    display: block;
    color: var(--text-strong);
    margin-bottom: 8px;
}

.pdv-pay-mini-items div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 5px 0;
    color: var(--text);
    border-bottom: 1px solid rgba(255,255,255,.05);
}

.pdv-pay-mini-items div:last-of-type {
    border-bottom: 0;
}

.pdv-pay-mini-items b {
    color: #86efac;
}

.pdv-pay-mini-items small {
    display: block;
    color: var(--muted);
    margin-top: 7px;
}

.pdv-total-chip {
    box-shadow: 0 0 0 3px rgba(34,197,94,.08), 0 16px 34px rgba(34,197,94,.11);
}

.pdv-total-chip strong {
    font-size: 34px;
}

.pdv-finalizar {
    animation: finalPulse 2.2s ease-in-out infinite;
}

@keyframes finalPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.24); }
    50% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
}

@media (max-width: 980px) {
    .turbo-toggle {
        justify-content: flex-start;
    }

    .pdv-total-chip strong {
        font-size: 30px;
    }
}
