:root {
    --ink: #080809;
    --surface: #111113;
    --surface-2: #19191c;
    --surface-3: #222226;
    --line: rgba(255, 255, 255, .1);
    --muted: #a7a7af;
    --text: #f5f4f5;
    --wine: #660914;
    --red: #d61d31;
    --red-bright: #f02a3f;
    --success: #54d190;
    --warning: #f2b84b;
    --shadow: 0 22px 55px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    min-width: 320px;
    margin: 0;
    color: var(--text);
    background:
            radial-gradient(circle at 89% -10%, rgba(153, 13, 33, .22), transparent 27rem),
            radial-gradient(circle at -6% 42%, rgba(105, 9, 20, .13), transparent 27rem),
            var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.45;
}

body::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    content: "";
    opacity: .25;
    background-image:
            linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255,255,255,.014) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, black, transparent 85%);
}

button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: inherit; }

.shell {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(8, 8, 9, .88);
    backdrop-filter: blur(18px);
}

.topbar .shell {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 38px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-mark {
    width: 39px;
    height: 39px;
    filter: drop-shadow(0 0 10px rgba(222, 25, 48, .35));
}

.brand-type {
    display: grid;
    line-height: .85;
    letter-spacing: .13em;
    font-weight: 900;
    font-size: 15px;
}

.brand-type small {
    color: var(--red-bright);
    font-size: 8px;
    letter-spacing: .29em;
    margin-top: 6px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: auto;
}

.nav-link {
    color: #bfc0c5;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: color .2s ease;
}

.nav-link:hover,
.nav-link.is-current {
    color: #fff;
}

.nav-link.is-current {
    position: relative;
}

.nav-link.is-current::after {
    position: absolute;
    content: "";
    height: 2px;
    bottom: -10px;
    left: 0;
    right: 0;
    background: var(--red);
    box-shadow: 0 0 10px var(--red);
}

.nav-cta,
.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(235, 35, 55, .36);
    background: rgba(159, 14, 31, .16);
    color: #fff;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.nav-cta {
    min-height: 40px;
    padding: 0 14px;
    gap: 9px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.nav-cta:hover,
.icon-button:hover {
    transform: translateY(-2px);
    background: rgba(214, 29, 49, .35);
    border-color: var(--red);
}

.cart-counter {
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 10px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: var(--red);
    font-size: 10px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 12px;
    color: var(--red-bright);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 0 9px currentColor;
}

.display {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 5.1rem);
    line-height: .92;
    letter-spacing: -.06em;
    font-weight: 950;
    text-transform: uppercase;
}

.display em {
    color: var(--red);
    font-style: normal;
}

.section-title {
    margin: 0;
    font-size: clamp(1.45rem, 2.8vw, 2.3rem);
    line-height: 1;
    letter-spacing: -.045em;
    font-weight: 900;
    text-transform: uppercase;
}

.section-copy {
    margin: 13px 0 0;
    max-width: 52ch;
    color: var(--muted);
}

.button {
    min-height: 44px;
    border: 1px solid transparent;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    background: var(--red);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 10px 25px rgba(177, 13, 34, .24);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.button:hover {
    transform: translateY(-2px);
    background: var(--red-bright);
    box-shadow: 0 14px 29px rgba(221, 24, 48, .38);
}

.button.ghost {
    border-color: var(--line);
    background: transparent;
    box-shadow: none;
}

.button.ghost:hover {
    background: rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.28);
}

.button.danger {
    background: transparent;
    color: #ff8490;
    border-color: rgba(238, 50, 68, .35);
    box-shadow: none;
}

.button.danger:hover {
    background: rgba(214, 29, 49, .15);
}

.button.compact {
    min-height: 34px;
    padding: 0 12px;
    font-size: 10px;
}

.hero {
    position: relative;
    min-height: 450px;
    overflow: hidden;
    display: grid;
    align-items: center;
    border-bottom: 1px solid var(--line);
}

.hero::after {
    position: absolute;
    content: "";
    width: 560px;
    height: 560px;
    right: -80px;
    bottom: -215px;
    border: 1px solid rgba(225, 30, 51, .28);
    transform: rotate(45deg);
    box-shadow:
            0 0 0 55px rgba(131, 8, 22, .09),
            0 0 0 110px rgba(131, 8, 22, .055);
}

.hero .shell {
    position: relative;
    z-index: 1;
    padding: 76px 0;
}

.hero-content { max-width: 650px; }

.hero-copy {
    max-width: 47ch;
    margin: 22px 0 29px;
    color: #c8c7cb;
    font-size: 16px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    margin-top: 58px;
    gap: 35px;
}

.hero-stat {
    padding-left: 13px;
    border-left: 2px solid var(--red);
}

.hero-stat strong {
    display: block;
    font-size: 18px;
    letter-spacing: -.04em;
}

.hero-stat span {
    color: #8e8e96;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.hero-drop {
    position: absolute;
    z-index: 0;
    top: 50%;
    left: max(58%, calc(50% + 170px));
    transform: translateY(-50%);
    width: min(39vw, 490px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
}

.drop-disc {
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    border: 1px solid rgba(233, 43, 62, .38);
    box-shadow:
            inset 0 0 70px rgba(163, 10, 28, .24),
            0 0 80px rgba(137, 7, 24, .18);
}

.drop-disc::before,
.drop-disc::after {
    position: absolute;
    content: "";
    inset: 12%;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 50%;
}

.drop-disc::after {
    inset: 25%;
    border-color: rgba(231, 37, 57, .36);
}

.drop-twentyone {
    position: relative;
    z-index: 2;
    color: #f3f3f3;
    font-size: clamp(8.5rem, 19vw, 15rem);
    font-weight: 950;
    letter-spacing: -.16em;
    line-height: .72;
    transform: skewX(-10deg);
    text-shadow: 0 0 35px rgba(239, 39, 61, .35);
}

.drop-twentyone span { color: var(--red); }

.drop-slash {
    position: absolute;
    z-index: 3;
    width: 110%;
    height: 10px;
    background: var(--red);
    transform: rotate(-35deg);
    box-shadow: 0 0 18px var(--red), 0 0 48px rgba(214, 29, 49, .5);
}

.ticker {
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
    background: #0d0d0f;
    color: #b8b7bc;
}

.ticker-line {
    min-height: 43px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ticker-line b { color: var(--red-bright); }

.page-section { padding: 84px 0; }

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 30px;
}

.section-head .section-copy { margin-bottom: 0; }

.catalog-shell,
.table-card,
.card {
    border: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
    box-shadow: var(--shadow);
}

.catalog-toolbar {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 11px;
    border-bottom: 1px solid var(--line);
    background: rgba(0,0,0,.15);
}

.search-wrap {
    position: relative;
    flex: 1;
}

.search-wrap svg {
    position: absolute;
    left: 13px;
    top: 50%;
    width: 17px;
    height: 17px;
    color: #8e8d95;
    transform: translateY(-50%);
}

input,
select {
    width: 100%;
    min-height: 43px;
    padding: 0 13px;
    color: #f3f2f3;
    outline: none;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 0;
    background: rgba(2,2,3,.45);
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

input::placeholder { color: #6e6e76; }

input:focus,
select:focus {
    border-color: rgba(238, 45, 65, .8);
    background: rgba(28, 4, 7, .48);
    box-shadow: 0 0 0 3px rgba(214, 29, 49, .13);
}

select option { color: #151518; }
.search-wrap input { padding-left: 40px; }

.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }

th {
    padding: 13px 20px;
    color: #8f8e96;
    border-bottom: 1px solid var(--line);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .13em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

td {
    padding: 16px 20px;
    color: #dedde0;
    border-bottom: 1px solid rgba(255,255,255,.07);
    font-size: 13px;
}

tbody tr { transition: background .2s ease; }
tbody tr:hover { background: rgba(255,255,255,.035); }
tbody tr:last-child td { border-bottom: 0; }

.product-name {
    color: #fff;
    font-weight: 800;
}

.price {
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: -.02em;
}

.stock {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    font-size: 12px;
}

.stock::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.quantity-input {
    width: 64px;
    min-height: 36px;
    padding: 0 8px;
    text-align: center;
}

.empty-row td {
    padding: 52px 20px;
    color: var(--muted);
    text-align: center;
}

.empty-row strong {
    display: block;
    margin-bottom: 5px;
    color: #f2f2f3;
}

.shop-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(310px, .7fr);
    gap: 22px;
    align-items: start;
}

.cart-panel {
    position: sticky;
    top: 96px;
    overflow: hidden;
    border: 1px solid rgba(214,29,49,.25);
    background: linear-gradient(150deg, rgba(105,9,20,.38), rgba(20,20,23,.98) 45%);
    box-shadow: var(--shadow);
}

.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 19px 20px;
    border-bottom: 1px solid var(--line);
}

.panel-title h3 {
    margin: 0;
    font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.panel-title svg { color: var(--red); }

.cart-items {
    max-height: 270px;
    overflow-y: auto;
}

.cart-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.cart-item:last-child { border-bottom: 0; }

.cart-item strong {
    display: block;
    color: #fff;
    font-size: 13px;
}

.cart-item small {
    color: var(--muted);
    font-size: 11px;
}

.cart-item-side {
    display: grid;
    justify-items: end;
    align-content: space-between;
    gap: 10px;
}

.remove-link {
    padding: 0;
    color: #c8a0a5;
    border: 0;
    background: none;
    font-size: 10px;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.remove-link:hover { color: #ff7786; }

.cart-empty {
    padding: 34px 20px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.cart-summary {
    padding: 20px;
    border-top: 1px solid var(--line);
}

.total-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 18px;
}

.total-line span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.total-line strong {
    color: #fff;
    font-size: 26px;
    letter-spacing: -.05em;
}

.checkout-fields {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.checkout-fields label,
.field label {
    display: block;
    margin-bottom: 6px;
    color: #aaaab2;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.cart-summary .button { width: 100%; }

.site-footer {
    padding: 35px 0;
    border-top: 1px solid var(--line);
    background: #070708;
}

.footer-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #787880;
    font-size: 11px;
}

.footer-line .brand {
    transform: scale(.85);
    transform-origin: left center;
}

/* PDV */
.pdv-landing {
    min-height: calc(100vh - 76px);
    display: grid;
    place-items: center;
    padding: 55px 0;
}

.pdv-open-grid {
    width: min(1020px, 100%);
    display: grid;
    grid-template-columns: 1.12fr .88fr;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #111114;
    box-shadow: var(--shadow);
}

.pdv-showcase {
    min-height: 495px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 47px;
    overflow: hidden;
    background: linear-gradient(140deg, #20060a 0%, #0c0b0d 55%);
}

.pdv-showcase::before {
    position: absolute;
    content: "";
    width: 450px;
    height: 450px;
    top: -190px;
    right: -155px;
    border: 35px solid rgba(213, 29, 49, .21);
    transform: rotate(45deg);
}

.pdv-showcase::after {
    position: absolute;
    content: "21";
    right: 30px;
    top: 36px;
    color: rgba(255,255,255,.045);
    font-size: 170px;
    font-weight: 950;
    letter-spacing: -.18em;
    line-height: 1;
}

.pdv-showcase > * {
    position: relative;
    z-index: 1;
}

.pdv-showcase h1 {
    max-width: 8ch;
    margin: 0;
    font-size: clamp(3rem, 6vw, 5.6rem);
    font-weight: 950;
    line-height: .82;
    letter-spacing: -.08em;
    text-transform: uppercase;
}

.pdv-showcase p {
    max-width: 39ch;
    color: #cac4c5;
}

.feature-list {
    display: grid;
    gap: 12px;
    margin-top: 31px;
    color: #d7d5d7;
    font-size: 12px;
}

.feature-list span {
    display: flex;
    align-items: center;
    gap: 9px;
}

.feature-list span::before {
    content: "";
    width: 7px;
    height: 7px;
    transform: rotate(45deg);
    background: var(--red);
    box-shadow: 0 0 8px var(--red);
}

.open-form {
    padding: 47px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(160deg, #151518, #0c0c0e);
}

.form-header { margin-bottom: 31px; }

.form-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -.05em;
    text-transform: uppercase;
}

.form-header p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.field { margin-bottom: 17px; }

.field-hint {
    display: block;
    margin-top: 7px;
    color: #777780;
    font-size: 11px;
}

.open-form .button {
    width: 100%;
    margin-top: 8px;
}

.secure-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: #777780;
    font-size: 11px;
}

.secure-note svg { color: var(--success); }

.pdv-top-status {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    background: rgba(15, 60, 39, .13);
}

.status-line {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: #a7e5c0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.status-line strong { color: #fff; }

.pdv-workspace { padding: 39px 0 64px; }

.pdv-workspace .shell {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(310px, .75fr);
    gap: 22px;
    align-items: start;
}

.register-panel {
    border: 1px solid var(--line);
    background: rgba(17,17,19,.78);
    box-shadow: var(--shadow);
}

.scan-area {
    padding: 22px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg, rgba(102,9,20,.2), transparent);
}

.scan-area h2 {
    margin: 0 0 14px;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.scan-controls {
    display: grid;
    grid-template-columns: 1fr 70px auto;
    gap: 9px;
}

.scan-controls input { background: rgba(5,5,6,.55); }

.receipt-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}

.receipt-title strong {
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.receipt-title span {
    color: var(--muted);
    font-size: 11px;
}

.pdv-total {
    padding: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--line);
    background: rgba(0,0,0,.2);
}

.pdv-total span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.pdv-total strong {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    letter-spacing: -.06em;
}

.checkout-panel {
    position: sticky;
    top: 96px;
    overflow: hidden;
    border: 1px solid rgba(214,29,49,.25);
    background: linear-gradient(150deg, rgba(101,8,19,.31), rgba(18,18,21,.99) 48%);
    box-shadow: var(--shadow);
}

.checkout-body { padding: 20px; }
.checkout-body .field { margin-bottom: 14px; }

.checkout-body .button {
    width: 100%;
    margin-top: 5px;
}

.close-register {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 13px auto 0;
    padding: 3px;
    color: #b89c9f;
    border: 0;
    background: transparent;
    font-size: 10px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.close-register:hover { color: #ff8b98; }

/* Painel do dono */
.dashboard { padding: 43px 0 75px; }

.dashboard-banner {
    position: relative;
    overflow: hidden;
    padding: 33px;
    border: 1px solid var(--line);
    background: linear-gradient(100deg, #351017, #141417 63%);
}

.dashboard-banner::after {
    position: absolute;
    content: "D21";
    right: -11px;
    top: 50%;
    color: rgba(255,255,255,.045);
    font-size: clamp(5rem, 16vw, 12rem);
    font-weight: 950;
    letter-spacing: -.12em;
    transform: translateY(-50%);
}

.dashboard-banner > * {
    position: relative;
    z-index: 1;
}

.dashboard-banner h1 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 950;
    letter-spacing: -.06em;
    line-height: .92;
    text-transform: uppercase;
}

.dashboard-banner h1 em {
    color: var(--red-bright);
    font-style: normal;
}

.dashboard-banner p {
    margin: 10px 0 0;
    color: #d2c4c6;
    font-size: 13px;
}

.dashboard-meta {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 22px;
    color: #e1bcc1;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.dashboard-meta::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 18px 0 29px;
}

.stat-card {
    padding: 20px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.035);
}

.stat-card small {
    display: block;
    color: #92919a;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.stat-card strong {
    display: block;
    margin-top: 7px;
    font-size: 25px;
    letter-spacing: -.06em;
}

.stat-card strong.red { color: #ff5e70; }

.dashboard-grid {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.form-card { padding: 23px; }

.form-card h2 {
    margin: 0;
    font-size: 17px;
    letter-spacing: -.04em;
    text-transform: uppercase;
}

.form-card > p {
    margin: 7px 0 20px;
    color: var(--muted);
    font-size: 12px;
}

.form-card .button {
    width: 100%;
    margin-top: 4px;
}

.form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.hidden { display: none !important; }

.sales-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.sales-card .panel-title { padding: 17px 20px; }
.sales-card .panel-title h3 { margin: 0; }

.sales-card .table-scroll {
    max-height: 318px;
    overflow: auto;
}

.sales-card td,
.sales-card th {
    padding-left: 15px;
    padding-right: 15px;
}

.toast-stack {
    position: fixed;
    z-index: 50;
    right: 22px;
    bottom: 22px;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 44px));
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    color: #eeeef0;
    border: 1px solid var(--line);
    border-left: 3px solid var(--red);
    background: #1b1b1f;
    box-shadow: 0 15px 34px rgba(0,0,0,.4);
    font-size: 12px;
    animation: toast-in .26s ease both;
}

.toast.is-success { border-left-color: var(--success); }
.toast.is-error { border-left-color: #ff596c; }

.toast strong {
    display: block;
    margin-bottom: 2px;
    color: #fff;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    .topbar .shell { gap: 20px; }
    .nav-links { gap: 16px; }
    .hero-drop { opacity: .55; left: 60%; }

    .shop-layout,
    .pdv-workspace .shell,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .cart-panel,
    .checkout-panel {
        position: static;
    }

    .pdv-open-grid { grid-template-columns: 1fr; }
    .pdv-showcase { min-height: 360px; }
}

@media (max-width: 670px) {
    .shell { width: min(100% - 32px, 1280px); }
    .topbar .shell { min-height: 66px; }
    .brand-mark { width: 34px; height: 34px; }
    .nav-links { display: none; }
    .nav-cta { margin-left: auto; }
    .hero { min-height: 500px; }
    .hero .shell { padding: 65px 0 44px; }
    .hero-drop { width: 350px; top: 61%; left: 53%; opacity: .37; }
    .hero-stats { gap: 18px; margin-top: 42px; }
    .hero-stat strong { font-size: 15px; }
    .ticker-line { justify-content: flex-start; }
    .ticker-line span:nth-child(n+4) { display: none; }
    .page-section { padding: 55px 0; }

    .section-head,
    .page-hero .shell {
        align-items: flex-start;
        flex-direction: column;
    }

    .catalog-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    th, td {
        padding-left: 13px;
        padding-right: 13px;
    }

    .cart-summary { padding: 17px; }
    .page-hero { padding: 47px 0 30px; }
    .pdv-landing { padding: 0; }

    .pdv-open-grid {
        width: 100%;
        border-left: 0;
        border-right: 0;
    }

    .pdv-showcase,
    .open-form {
        padding: 35px 24px;
    }

    .pdv-showcase { min-height: 333px; }
    .scan-area { padding: 17px; }

    .scan-controls {
        grid-template-columns: 1fr 62px;
    }

    .scan-controls .button { grid-column: 1 / -1; }
    .pdv-workspace { padding-top: 25px; }

    .stat-grid,
    .sales-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-banner { padding: 25px; }
    .form-card { padding: 19px; }

    .footer-line {
        align-items: flex-start;
        flex-direction: column;
    }

}

/* ---- TOAST (Notificação bonita) ---- */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 14px 24px;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    animation: toastIn 0.4s ease, toastOut 0.4s ease 2.6s forwards;
    max-width: 380px;
}

.toast.sucesso { background: linear-gradient(135deg, #1db954, #148f3f); }
.toast.erro    { background: linear-gradient(135deg, #e53935, #b71c1c); }
.toast.info    { background: linear-gradient(135deg, #1e88e5, #1565c0); }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(60px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
    from { opacity: 1; }
    to   { opacity: 0; transform: translateY(-10px); }
}

/* ---- CONFIRM BONITO (Modal) ---- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease;
}

.modal-box {
    background: #1a1a2e;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.modal-box p {
    color: white;
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.modal-botoes {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.modal-botoes button {
    padding: 10px 28px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    text-transform: uppercase;
}

.btn-confirmar { background: #1db954; color: white; }
.btn-confirmar:hover { background: #17a34a; }
.btn-cancelar-modal { background: transparent; color: var(--muted); border: 1px solid rgba(255,255,255,0.15) !important; }
.btn-cancelar-modal:hover { background: rgba(255,255,255,0.05); }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Ajustes para Celular (Responsividade) --- */
/* --- Ajustes para Celular (Forçado) --- */
/* --- Ajustes para Celular (Forçado e Completo) --- */
/* --- Ajustes para Celular (Força o site inteiro a encolher) --- */
/* --- Ajustes para Celular (Força o site inteiro a encolher) --- */
@media (max-width: 768px) {
    /* 1. OBRIGA absolutamente todas as tags a não passarem da largura do celular */
    *, *::before, *::after {
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }

    html, body {
        width: 100% !important;
        overflow-x: hidden !important;
    }

    div, section, main, footer {
        width: 100% !important;
        min-width: 0 !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    h1 { font-size: 32px !important; line-height: 1.1 !important; }
    h2 { font-size: 24px !important; }

    table {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    /* --- O SEGREDO DO CABEÇALHO ESTÁ AQUI --- */
    header {
        display: flex !important;
        flex-direction: column !important; /* Empilha tudo */
        height: auto !important; /* Mata a altura fixa que causa a sobreposição */
        padding: 15px 10px !important;
        position: relative !important;
    }

    /* Pega todas as "caixas" escondidas dentro do cabeçalho e manda empilhar */
    header > * {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        position: static !important; /* Remove qualquer sobreposição (absolute) */
        width: 100% !important;
        height: auto !important;
        gap: 10px !important;
    }

    /* Barra de pesquisa e Botão empilhados */
    header input[type="text"] {
        width: 100% !important;
        max-width: 300px !important;
        margin-bottom: 5px !important;
    }

    header button {
        width: 100% !important;
        max-width: 300px !important;
        margin-bottom: 10px !important;
    }

    /* Menu de links */
    .nav-links {
        display: flex !important;
        flex-direction: row !important; /* Links um do lado do outro */
        flex-wrap: wrap !important;     /* Quebrando linha se não couber */
        justify-content: center !important;
        gap: 15px !important;
    }
}


