@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

html.pdv-no-scroll,
html.pdv-no-scroll body {
    height: 100%;
    max-height: 100%;
    overflow: hidden !important;
}

:root {
    --app-bg: #fff7ea;
    --sidebar-bg: #ffa500;
    --sidebar-muted: #643716;
    --sidebar-active: #ffc14f;
    --text-main: #352416;
    --border-soft: #eadfcb;
    --card-bg: #ffffff;
    --success: #16a34a;
    --brand-orange: #ef8f0d;
    --brand-orange-dark: #d67708;
    --brand-yellow: #f3c34a;
    --brand-ink: #3c2413;
    --brand-brown: #4b2d1b;
    --brand-green: #3f6f2a;
    --brand-cream: #fff4db;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--text-main);
    background: var(--app-bg);
}

body.pdv-standalone {
    height: 100dvh;
    max-height: 100dvh;
    min-height: 100dvh;
    background: linear-gradient(180deg, #fff9ef 0%, #f9edd8 100%);
    overflow: hidden !important;
}

.pdv-standalone-shell {
    height: 100dvh;
    max-height: 100dvh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 0.55rem 0.75rem;
    gap: 0.45rem;
}

.pdv-standalone-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #fffdf7;
    border: 1px solid #ecd8b6;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(79, 49, 18, 0.08);
    padding: 0.55rem 0.75rem;
    margin-bottom: 0;
}

.pdv-standalone-title h1 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.1;
}

.pdv-standalone-title p {
    margin: 0.06rem 0 0;
    color: #73583a;
    font-size: 0.76rem;
}

.pdv-standalone-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.pdv-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid #ecd8b6;
    border-radius: 999px;
    padding: 0.32rem 0.7rem;
    color: #5a341c;
    font-size: 0.84rem;
    font-weight: 700;
    background: #fff;
}

.pdv-datetime-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    border: 1px solid #ecd8b6;
    border-radius: 999px;
    padding: 0.32rem 0.7rem;
    color: #6d4c2d;
    font-size: 0.79rem;
    font-weight: 700;
    background: #fffdf7;
    white-space: nowrap;
}

.pdv-standalone-content {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.login-body {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: linear-gradient(130deg, #e8910e 0%, #f2b32c 50%, #f4cd55 100%);
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.login-body::before,
.login-body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.login-body::before {
    z-index: 0;
    background:
        radial-gradient(circle at 22% 22%, rgba(255, 255, 255, 0.16) 0, rgba(255, 255, 255, 0) 36%),
        radial-gradient(circle at 78% 12%, rgba(255, 255, 255, 0.12) 0, rgba(255, 255, 255, 0) 34%),
        radial-gradient(circle at 18% 82%, rgba(255, 255, 255, 0.12) 0, rgba(255, 255, 255, 0) 34%);
}

.login-body.has-pattern::after {
    z-index: 1;
    background-image: var(--login-pattern-image);
    background-size: clamp(250px, 30vw, 420px);
    background-repeat: repeat;
    opacity: 0.2;
    mix-blend-mode: multiply;
}

.login-shell {
    width: 100%;
    max-width: 520px;
    position: relative;
    z-index: 2;
}

.login-card {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 20px;
    border: 1px solid #f0dcb8;
    backdrop-filter: blur(3px);
    box-shadow: 0 24px 52px rgba(90, 48, 16, 0.24);
    padding: 1.6rem 1.55rem;
}

.login-head {
    margin-bottom: 1.35rem;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.login-brand-logo-wrap {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(145deg, #f39e0d, #d97f00);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.65rem;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(92, 50, 17, 0.25);
    overflow: hidden;
    flex-shrink: 0;
}

.login-brand-logo-wrap.has-logo {
    background: rgba(255, 248, 232, 0.92);
    border: 1px solid #f0dcb8;
    box-shadow: 0 10px 24px rgba(92, 50, 17, 0.16);
}

.login-brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.login-head h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-brown);
    line-height: 1.05;
}

.login-head p {
    margin: 0.26rem 0 0;
    color: #775435;
    font-size: 1rem;
    font-weight: 600;
}

.login-credit {
    margin: 0.68rem auto 0;
    width: fit-content;
    max-width: 100%;
    text-align: center;
    font-size: 0.83rem;
    font-weight: 700;
    color: #5d391c;
    border: 1px solid rgba(255, 241, 206, 0.84);
    border-radius: 999px;
    padding: 0.36rem 0.78rem;
    background: rgba(255, 249, 237, 0.82);
    backdrop-filter: blur(2px);
    box-shadow: 0 10px 20px rgba(87, 44, 14, 0.16);
}

.login-credit a {
    color: #4a2410;
    font-weight: 800;
    text-decoration: none;
    border-bottom: 1px dashed rgba(74, 36, 16, 0.45);
}

.login-credit a:hover {
    color: #301609;
    border-bottom-color: #301609;
}

@media (max-width: 576px) {
    .login-body {
        padding: 1rem;
    }

    .login-card {
        border-radius: 16px;
        padding: 1.25rem 1.1rem;
    }

    .login-brand-logo-wrap {
        width: 56px;
        height: 56px;
        border-radius: 14px;
    }

    .login-head h1 {
        font-size: 1.58rem;
    }

    .login-head p {
        font-size: 0.92rem;
    }

    .login-credit {
        font-size: 0.76rem;
        padding: 0.3rem 0.62rem;
    }
}

.app-body {
    min-height: 100vh;
}

.btn-danger {
    border-color: #df7808;
    background: linear-gradient(140deg, #ef8f0d 0%, #dd7307 100%);
}

.btn-danger:hover,
.btn-danger:focus {
    border-color: #c76506;
    background: linear-gradient(140deg, #d97a08 0%, #c86206 100%);
}

.btn-success {
    border-color: #3f6f2a;
    background: linear-gradient(140deg, #4d822f 0%, #396326 100%);
}

.btn-success:hover,
.btn-success:focus {
    border-color: #2f551d;
    background: linear-gradient(140deg, #406f28 0%, #30531e 100%);
}

.btn-outline-secondary {
    border-color: #d8c5a7;
    color: #6d4c2d;
}

.btn-outline-secondary:hover {
    border-color: #d8c5a7;
    background: #fff4df;
    color: #4f321b;
}

.form-control:focus,
.form-select:focus {
    border-color: #e8ab57;
    box-shadow: 0 0 0 0.2rem rgba(239, 143, 13, 0.16);
}

.app-shell {
    display: grid;
    grid-template-columns: 252px minmax(0, 1fr);
    min-height: 100vh;
}

.app-sidebar {
    background: linear-gradient(180deg, #ffa500 0%, #f69f00 100%);
    color: #643716;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(100, 55, 22, 0.22);
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.brand-badge {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(145deg, #ffcb4b, #ef930b);
    color: #5a2f1d;
    display: grid;
    place-items: center;
    font-weight: 800;
    overflow: hidden;
}

.brand-badge.is-logo {
    background: transparent;
}

.brand-badge-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.brand-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #4a2812;
}

.brand-subtitle {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    color: #7a4626;
    font-weight: 700;
}

.menu-nav {
    display: grid;
    gap: 0.2rem;
}

.menu-link {
    text-decoration: none;
    color: #643716;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(100, 55, 22, 0.16);
    background: rgba(255, 247, 230, 0.22);
    font-weight: 700;
    transition: 0.2s ease;
}

.menu-link i {
    font-size: 0.95rem;
    color: #643716;
}

.menu-link:hover {
    background: rgba(255, 248, 230, 0.5);
    border-color: rgba(100, 55, 22, 0.24);
    color: #643716;
}

.menu-link.active {
    background: #fff1cb;
    border-color: rgba(100, 55, 22, 0.28);
    color: #4a2812;
    box-shadow: 0 8px 14px rgba(100, 55, 22, 0.12);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
}

.logout-link {
    color: #643716;
    background: rgba(255, 247, 230, 0.28);
}

.app-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #fffbf3 0%, #fff4e2 100%);
}

.topbar {
    padding: 1rem 1.3rem;
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fffdf8;
}

.page-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #6b4a2d;
    font-weight: 600;
}

.content-wrap {
    padding: 1.1rem 1.3rem 1.5rem;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid #f0dfc7;
    box-shadow: 0 10px 24px rgba(80, 44, 16, 0.06);
}

.stat-card .stat-label {
    color: #6b7280;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.2rem;
}

.stat-card strong {
    font-size: 1.5rem;
    line-height: 1.2;
}

.quick-card {
    background: #fff;
    border: 1px solid #f0dfc7;
    border-radius: 10px;
    text-decoration: none;
    color: #352416;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem;
    box-shadow: 0 10px 24px rgba(80, 44, 16, 0.06);
}

.quick-card i {
    font-size: 1.2rem;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #fff0cf;
    color: #7f4310;
}

.quick-card h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

.quick-card p {
    margin: 0.2rem 0 0;
    color: #6b7280;
    font-size: 0.83rem;
}

.thumb-preview {
    width: 100%;
    max-height: 210px;
    object-fit: cover;
    border-radius: 8px;
}

.table-product-img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
}

.logo-preview-wrap {
    border: 1px solid var(--border-soft);
    padding: 0.5rem;
    border-radius: 8px;
}

.logo-preview {
    max-width: 140px;
    max-height: 70px;
    object-fit: contain;
}

.products-page .card {
    border-radius: 12px;
    border: 1px solid #efdfc7;
}

.product-stat-card {
    background: #fffef9;
    border: 1px solid #efdfc7;
    border-radius: 10px;
    min-height: 86px;
    padding: 0.72rem 0.82rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-stat-label {
    color: #7f6141;
    font-size: 0.8rem;
    font-weight: 700;
}

.product-stat-card strong {
    color: #3f2917;
    font-size: 1.4rem;
    line-height: 1.1;
}

.product-form-card .card-header,
.product-list-card .card-header {
    border-bottom: 1px solid #f1e5d4;
}

.product-form-mode {
    border: 1px solid #e8d2af;
    background: #fff7e8;
    color: #7a5331;
    border-radius: 999px;
    padding: 0.14rem 0.5rem;
    font-size: 0.73rem;
    font-weight: 700;
}

.product-form-grid .form-label {
    font-weight: 700;
    color: #5d3d24;
}

.product-form-grid .form-control,
.product-form-grid .form-select {
    border-color: #e4d0b0;
    background: #fffefb;
}

.product-form-grid .form-control::placeholder {
    color: #a08467;
}

.product-edit-thumb {
    width: min(220px, 100%);
    max-height: 110px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #ead7bc;
}

.product-list-count {
    color: #846549;
    font-size: 0.8rem;
    font-weight: 700;
}

.products-table thead th {
    color: #6d4525;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.products-table th,
.products-table td {
    padding: 0.66rem 0.58rem;
}

.products-table tbody tr {
    transition: background-color 0.2s ease;
}

.products-table tbody tr:hover {
    background: #fff8ec;
}

.product-row-media {
    display: flex;
    align-items: center;
    gap: 0.62rem;
}

.product-row-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 360px;
}

.product-img-fallback {
    border: 1px dashed #e6cfa8;
    background: #fff7e6;
    display: grid;
    place-items: center;
    color: #b48348;
}

.stock-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    border-radius: 999px;
    padding: 0.2rem 0.52rem;
    font-size: 0.76rem;
    font-weight: 800;
    border: 1px solid #ead6b8;
}

.stock-pill.is-untracked {
    background: #f8fafc;
    color: #475569;
    border-color: #d4dde8;
}

.stock-pill.is-empty {
    background: #fde8ea;
    color: #912027;
    border-color: #efb6bc;
}

.stock-pill.is-low {
    background: #fff1dc;
    color: #8c500f;
    border-color: #efc28a;
}

.stock-pill.is-ok {
    background: #e7f5eb;
    color: #22633a;
    border-color: #b3dec1;
}

.orders-card {
    border-radius: 12px;
    border: 1px solid #eedfca !important;
    overflow: hidden;
}

.orders-card-head {
    border-bottom: 1px solid #f1e5d4;
}

.orders-filter-form .form-control {
    border-color: #e4d1b3;
    background: #fffdf8;
}

.orders-filter-form .form-control::placeholder {
    color: #9c7d59;
}

.orders-filter-form .btn-outline-secondary {
    min-width: 42px;
}

.orders-table {
    width: 100%;
    min-width: 0;
}

.orders-table th,
.orders-table td {
    padding: 0.78rem 0.65rem;
    vertical-align: middle;
}

.orders-table thead th {
    color: #6a4524;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.orders-table tbody tr {
    transition: background-color 0.2s ease;
}

.orders-table tbody tr:hover {
    background: #fff8ec;
}

.order-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    border-radius: 999px;
    border: 1px solid #e7d7bf;
    background: #fff;
    color: #664326;
    padding: 0.18rem 0.58rem;
    font-size: 0.76rem;
    font-weight: 800;
}

.order-status-badge.is-pendente {
    background: #fff6e1;
    border-color: #f3d8a0;
    color: #8d5719;
}

.order-status-badge.is-preparo {
    background: #fff0e3;
    border-color: #f3c9a2;
    color: #9a4217;
}

.order-status-badge.is-finalizado {
    background: #e9f8ec;
    border-color: #bfe8c6;
    color: #236634;
}

.order-status-badge.is-cancelado {
    background: #fdeced;
    border-color: #f2c2c6;
    color: #8d2027;
}

.order-actions-heading,
.order-actions-cell {
    min-width: 250px;
    width: 250px;
}

.order-actions-bar {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.38rem;
    white-space: nowrap;
}

.order-icon-btn {
    -webkit-appearance: none;
    appearance: none;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #dfc6a3;
    background: #fff7e8;
    color: #6b4423;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex: 0 0 34px;
    transition: 0.16s ease;
    cursor: pointer;
    padding: 0;
    outline: 0;
}

.order-icon-btn:hover {
    background: #ffe8bd;
    color: #4f2d14;
    border-color: #d6a76c;
    transform: translateY(-1px);
}

.order-status-quick-form {
    margin: 0;
    display: inline-flex;
}

.order-status-icon-group {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0;
    border: 0;
    background: transparent;
    white-space: nowrap;
}

.order-status-icon-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #dfc6a3;
    border-radius: 10px;
    background: #fff7e8;
    color: #6b4423;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex: 0 0 34px;
    transition: 0.16s ease;
}

.orders-table button.order-status-icon-btn,
.orders-table .order-icon-btn {
    -webkit-appearance: none;
    appearance: none;
}

.orders-table button.order-status-icon-btn {
    padding: 0;
    margin: 0;
    outline: 0;
    font: inherit;
}

.orders-table button.order-status-icon-btn i,
.orders-table .order-icon-btn i,
.orders-table .order-status-badge i {
    color: inherit !important;
}

.order-status-icon-btn:hover {
    transform: translateY(-1px);
}

.order-status-icon-btn.is-pendente {
    background: #fff3d6;
    color: #8a581c;
    border-color: #edcf91;
}

.order-status-icon-btn.is-preparo {
    background: #ffe7d4;
    color: #984214;
    border-color: #efbf97;
}

.order-status-icon-btn.is-aceito {
    color: #1f7b4e;
    border-color: rgba(54, 163, 109, 0.45);
    background: rgba(111, 218, 162, 0.14);
}

.order-status-icon-btn.is-saiu-entrega {
    color: #8e5511;
    border-color: rgba(232, 160, 52, 0.45);
    background: rgba(255, 205, 122, 0.2);
}

.order-status-icon-btn.is-finalizado {
    background: #e3f5e7;
    color: #256033;
    border-color: #b7dfbf;
}

.order-status-icon-btn.is-cancelado {
    background: #fae2e5;
    color: #882128;
    border-color: #edb8bd;
}

.order-status-icon-btn.is-active.is-pendente {
    background: #ffd98d;
    color: #915b1d;
    border-color: #d99d38;
    box-shadow: 0 0 0 2px rgba(217, 157, 56, 0.18);
}

.order-status-icon-btn.is-active.is-preparo {
    background: #ffbd8b;
    color: #9a4014;
    border-color: #da844f;
    box-shadow: 0 0 0 2px rgba(218, 132, 79, 0.18);
}

.order-status-icon-btn.is-active.is-aceito {
    color: #ffffff;
    border-color: #2f9f65;
    background: #2f9f65;
    box-shadow: 0 8px 18px rgba(47, 159, 101, 0.34);
}

.order-status-icon-btn.is-active.is-saiu-entrega {
    color: #ffffff;
    border-color: #d88a1f;
    background: #d88a1f;
    box-shadow: 0 8px 18px rgba(216, 138, 31, 0.34);
}

.order-status-icon-btn.is-active.is-finalizado {
    background: #b8eac2;
    color: #225a31;
    border-color: #71bc7f;
    box-shadow: 0 0 0 2px rgba(113, 188, 127, 0.18);
}

.order-status-icon-btn.is-active.is-cancelado {
    background: #f5bbc0;
    color: #7e1f25;
    border-color: #d77f87;
    box-shadow: 0 0 0 2px rgba(215, 127, 135, 0.18);
}

.orders-items-box {
    border-color: #ecdcc6 !important;
    background: #fffdfa;
}

.orders-modal-content {
    border-radius: 12px;
    border: 1px solid #eedfca;
}

.orders-modal-content .modal-header,
.orders-modal-content .modal-footer {
    border-color: #f1e5d4;
}

.orders-modal-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem 0.8rem;
    font-size: 0.95rem;
}

@media (max-width: 760px) {
    .orders-modal-meta {
        grid-template-columns: 1fr;
    }

    .order-actions-heading,
    .order-actions-cell {
        min-width: 220px;
        width: 220px;
    }
}

.pdv-catalog {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 0.75rem;
    align-items: start;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
}

.pdv-catalog-main,
.pdv-cart {
    background: #fffdf9;
    border-radius: 14px;
    border: 1px solid #f0dfc6;
    box-shadow: 0 16px 28px rgba(79, 46, 18, 0.07);
}

.pdv-catalog-main {
    padding: 0.75rem;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pdv-catalog-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.7rem;
    border-radius: 12px;
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.65rem;
    background: linear-gradient(135deg, var(--brand-orange) 0%, #f2a338 52%, var(--brand-yellow) 100%);
}

.pdv-brand {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    min-width: 0;
}

.pdv-brand-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255, 248, 227, 0.92), rgba(255, 236, 189, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.62);
    display: grid;
    place-items: center;
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--brand-orange-dark);
    box-shadow: 0 8px 20px rgba(75, 45, 24, 0.2);
}

.pdv-brand-logo.has-logo {
    background: transparent;
    border-color: transparent;
}

.pdv-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
    display: block;
}

.pdv-brand-info h3 {
    margin: 0;
    font-size: 0.97rem;
    color: #fff;
    font-weight: 800;
}

.pdv-brand-info p {
    margin: 0.12rem 0 0;
    font-size: 0.74rem;
    color: #fff8dc;
}

.pdv-search {
    background: #fff;
    border-radius: 10px;
    border: 1px solid rgba(255, 247, 226, 0.95);
    padding: 0.44rem 0.55rem;
    display: flex;
    gap: 0.45rem;
    align-items: center;
    min-width: clamp(260px, 28vw, 390px);
    width: clamp(260px, 28vw, 390px);
    max-width: 100%;
    color: var(--brand-orange-dark);
}

.pdv-search input {
    border: 0;
    outline: 0;
    width: 100%;
    min-width: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: #374151;
}

.pdv-search input::placeholder {
    color: #9ca3af;
}

.pdv-categories-row {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-bottom: 0.65rem;
}

.pdv-category-pill {
    border: 1px solid #f1c98e;
    background: #fff8ea;
    color: #8d4b12;
    border-radius: 999px;
    padding: 0.36rem 0.85rem;
    font-size: 0.81rem;
    font-weight: 700;
    transition: 0.2s ease;
}

.pdv-category-pill:hover {
    transform: translateY(-1px);
}

.pdv-category-pill.active {
    background: linear-gradient(140deg, var(--brand-orange) 0%, #e67c07 100%);
    color: #fff;
    border-color: transparent;
}

.pdv-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 0.6rem;
    flex: 1;
    min-height: 0;
    overflow: auto;
    align-content: start;
    padding-right: 0.2rem;
}

.pdv-products-empty {
    grid-column: 1 / -1;
    border: 1px dashed #efc98f;
    border-radius: 12px;
    background: #fff8ea;
    color: #7a4c1b;
    padding: 1rem;
    font-weight: 800;
    text-align: center;
}

.pdv-products-pagination {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    padding-top: 0.62rem;
}

.pdv-pagination-btn {
    border: 1px solid #f0c78a;
    border-radius: 999px;
    background: #fff8ea;
    color: #8d4b12;
    min-width: 36px;
    min-height: 32px;
    padding: 0.28rem 0.72rem;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.pdv-pagination-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(141, 75, 18, 0.14);
}

.pdv-pagination-btn.is-active {
    border-color: transparent;
    background: linear-gradient(140deg, var(--brand-orange) 0%, #e67c07 100%);
    color: #ffffff;
}

.pdv-pagination-btn:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.pdv-product-card {
    border: 1px solid #efdfca;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    min-height: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pdv-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(80, 44, 15, 0.1);
}

.pdv-product-card.is-adding {
    animation: productPop 0.32s ease;
}

.pdv-product-thumb-wrap {
    height: clamp(138px, 20vh, 220px);
    background: #fff8ed;
}

.pdv-product-thumb {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
    background: #fff;
}

.pdv-product-thumb.fallback {
    display: grid;
    place-items: center;
    color: #fdba74;
    font-size: 1.25rem;
}

.pdv-product-body {
    padding: 0.42rem 0.46rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-height: 0;
}

.pdv-product-category {
    display: inline-block;
    align-self: flex-start;
    border: 1px solid #ebd6b8;
    background: #fff6e6;
    color: #6d451f;
    border-radius: 999px;
    padding: 0.12rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
}

.pdv-product-name {
    margin: 0;
    color: #372316;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
    min-height: 1.9em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pdv-product-footer {
    margin-top: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.35rem;
}

.pdv-product-price {
    color: var(--brand-ink);
    font-size: 0.84rem;
    font-weight: 800;
    white-space: nowrap;
}

.pdv-add-btn {
    border: 0;
    background: linear-gradient(140deg, var(--brand-orange) 0%, #e67e08 100%);
    color: #fff;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.72rem;
    padding: 0.3rem 0.52rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.pdv-add-btn:hover {
    color: #fff;
    background: linear-gradient(140deg, #cf6f06 0%, var(--brand-orange) 100%);
}

.pdv-cart {
    padding: 0.75rem;
    position: static;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
}

.pdv-cart.cart-bump {
    animation: cartBump 0.26s ease;
}

.pdv-cart-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.45rem;
}

.pdv-cart-head h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
}

.pdv-cart-count {
    background: #fff2de;
    color: #8f4a11;
    border: 1px solid #f0c98f;
    border-radius: 999px;
    padding: 0.2rem 0.52rem;
    font-size: 0.72rem;
    font-weight: 700;
}

#pdv-form {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-height: 0;
    max-height: 100%;
    flex: 1;
    overflow: hidden;
}

.pdv-cart-items {
    flex: 1;
    min-height: 160px;
    max-height: none;
    overflow: auto;
    border: 1px solid #efdfc8;
    border-radius: 10px;
    padding: 0.55rem;
    background: #fffefb;
}

.pdv-cart-summary {
    border: 1px solid #efdfc8;
    border-radius: 10px;
    padding: 0.55rem;
}

.pdv-cart-item + .pdv-cart-item {
    margin-top: 0.55rem;
    padding-top: 0.55rem;
    border-top: 1px dashed #ecd8bf;
}

.pdv-cart-item.is-selected {
    border: 1px solid #f1b86c;
    border-radius: 10px;
    padding: 0.35rem 0.38rem;
    background: #fff8eb;
}

.pdv-cart-item-meta {
    margin-top: 0.18rem;
    font-size: 0.73rem;
    color: #76573c;
    line-height: 1.22;
}

.pdv-cart-item-title {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.4rem;
}

.pdv-cart-item-title strong {
    min-width: 0;
    line-height: 1.18;
    font-size: 0.86rem;
    overflow-wrap: anywhere;
}

.pdv-cart-item-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.pdv-cart-item-controls {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.35rem;
}

.pdv-cart-item-price {
    justify-self: end;
    white-space: nowrap;
    font-weight: 800;
    font-size: 0.95rem;
    color: #362313;
}

.pdv-remove-btn {
    flex-shrink: 0;
    padding: 0.22rem 0.38rem;
    line-height: 1;
}

.pdv-edit-btn,
.pdv-remove-btn {
    padding: 0.2rem 0.34rem;
    line-height: 1;
}

.pdv-edit-btn i,
.pdv-remove-btn i {
    pointer-events: none;
}

.qty-group {
    border: 1px solid #e9d8bf;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    flex-shrink: 0;
}

.qty-group span {
    padding: 0.15rem 0.55rem;
    min-width: 28px;
    text-align: center;
    font-weight: 800;
}

.qty-btn {
    border: 0;
    width: 26px;
    height: 26px;
    background: #fff4df;
    font-weight: 900;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pdv-cart-block {
    margin-top: 0.45rem;
    border: 1px solid #efdfc8;
    border-radius: 10px;
    padding: 0.55rem;
}

.pdv-total-highlight {
    border-radius: 10px;
    background: linear-gradient(135deg, #fff7e8 0%, #ffe9bf 100%);
    border: 1px solid #f2c991;
    padding: 0.45rem 0.62rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pdv-total-highlight span {
    color: #8c4307;
    font-weight: 700;
}

.pdv-total-highlight strong {
    color: #78390d;
    font-size: 1.12rem;
    line-height: 1;
}

.pdv-inline-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    font-size: 0.8rem;
}

.pdv-inline-options label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.45rem;
    border: 1px solid #e9d8bf;
    border-radius: 9px;
    font-weight: 600;
    background: #fff;
}

.pdv-finalize-btn {
    border: 0;
    background: linear-gradient(135deg, var(--brand-green) 0%, #4f8f30 100%);
    color: #fff;
    border-radius: 10px;
    min-height: 38px;
    font-size: 0.9rem;
    font-weight: 800;
}

.pdv-finalize-btn:hover {
    color: #fff;
    background: linear-gradient(135deg, #2f5f1f 0%, #467d2b 100%);
}

#pdv-checkout-modal .pdv-cart-block {
    margin-top: 0;
    padding: 0.65rem;
}

#pdv-checkout-modal .pdv-inline-options {
    gap: 0.4rem;
}

#checkout-cupom-feedback {
    display: block;
    min-height: 1rem;
    margin-top: 0.28rem;
}

.pdv-feedback {
    border-radius: 10px;
    padding: 0.45rem 0.6rem;
    font-size: 0.78rem;
    font-weight: 600;
}

.pdv-item-note {
    margin-top: 0.35rem !important;
}

.pdv-modal-product {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem;
    border: 1px solid #efdfc7;
    border-radius: 12px;
    background: #fff8ea;
}

.pdv-modal-product strong {
    font-size: 1.12rem;
    color: #3b2414;
    line-height: 1.15;
}

#modal-product-base-price {
    font-size: 0.94rem !important;
    font-weight: 700;
    color: #7a5534 !important;
}

.pdv-modal-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pdv-modal-options label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid #e7d3b5;
    background: #fff8ea;
    color: #5c3a1f;
    border-radius: 10px;
    padding: 0.4rem 0.72rem;
    font-size: 1rem;
    font-weight: 700;
}

.pdv-modal-extra-list {
    display: grid;
    gap: 0.52rem;
    max-height: 190px;
    overflow: auto;
    padding-right: 0.2rem;
}

.pdv-modal-extra-item {
    border: 1px solid #e7d7c0;
    border-radius: 10px;
    padding: 0.5rem 0.55rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.72rem;
    font-size: 0.94rem;
    background: #fff;
}

.pdv-modal-extra-item.is-active {
    border-color: #f2bf74;
    background: #fff8e9;
}

.pdv-modal-extra-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
}

.pdv-modal-extra-name {
    font-weight: 700;
    color: #3b2414;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.pdv-modal-extra-price {
    color: #785736;
    font-size: 0.78rem;
    font-weight: 600;
}

.pdv-modal-extra-qty {
    border: 1px solid #e7d0af;
    background: #fff;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    flex-shrink: 0;
}

.modal-extra-btn {
    width: 30px;
    height: 30px;
    border: 0;
    background: #fff4df;
    color: #7d430f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-extra-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: #f4ede3;
}

.modal-extra-qty-input {
    width: 28px;
    border: 0;
    background: transparent;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 800;
    color: #3b2414;
    padding: 0;
    pointer-events: none;
}

.pdv-item-modal-content {
    border-radius: 14px;
    border: 1px solid #edd7b3;
}

.pdv-item-modal-dialog {
    max-width: min(740px, 92vw);
}

.pdv-item-modal-content .modal-header {
    background: #fff8ea;
    border-bottom: 1px solid #efdfc8;
}

.pdv-item-modal-content .modal-title {
    font-size: 1.12rem;
    font-weight: 800;
    color: #3b2414;
}

.pdv-item-modal-content .modal-body {
    padding: 0.95rem;
}

.pdv-item-modal-content .modal-footer {
    border-top: 1px solid #efdfc8;
    background: #fffdf9;
}

.pdv-item-modal-content .form-label {
    color: #4d2f1b;
}

.pdv-item-modal-content .form-control {
    border-color: #e7d5bb;
}

.pdv-item-modal-content .form-control:focus {
    border-color: #e7a84e;
    box-shadow: 0 0 0 0.2rem rgba(239, 143, 13, 0.18);
}

.pdv-feedback a {
    color: inherit;
    text-decoration: underline;
    font-weight: 800;
}

.pdv-feedback.is-success {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
}

.pdv-feedback.is-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
}

.pdv-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.8rem;
    color: #92400e;
    font-size: 0.84rem;
    font-weight: 700;
}

@keyframes cartBump {
    0% { transform: scale(1); }
    40% { transform: scale(1.015); }
    100% { transform: scale(1); }
}

@keyframes productPop {
    0% { transform: scale(1); }
    45% { transform: scale(0.97); }
    100% { transform: scale(1); }
}

@media (max-width: 1380px) {
    .pdv-catalog {
        grid-template-columns: minmax(0, 1fr) 330px;
    }
}

@media (min-width: 1500px) {
    .pdv-product-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        grid-auto-rows: auto;
    }
}

@media (max-width: 1100px) {
    .app-shell {
        grid-template-columns: 80px minmax(0, 1fr);
    }

    .brand-wrap {
        justify-content: center;
    }

    .brand-wrap > div {
        display: none;
    }

    .menu-link span {
        display: none;
    }

    .menu-link {
        justify-content: center;
    }

    .pdv-catalog {
        grid-template-columns: 1fr;
        overflow: hidden;
    }

    .pdv-standalone-shell {
        padding: 0.65rem;
    }

    .pdv-standalone-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .pdv-standalone-actions {
        justify-content: space-between;
    }

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

    .pdv-search {
        min-width: 0;
    }

    .pdv-catalog-main,
    .pdv-cart {
        position: static;
        height: auto;
    }

    .pdv-inline-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .product-stat-card strong {
        font-size: 1.2rem;
    }

    .product-row-media {
        align-items: flex-start;
    }

    .product-row-desc {
        max-width: 220px;
    }

    .pdv-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    }

    .pdv-product-name {
        font-size: 0.92rem;
    }
}

.pdv-product-grid::-webkit-scrollbar,
.pdv-cart-items::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.pdv-product-grid,
.pdv-cart-items {
    scrollbar-width: none;
}

@media (max-height: 980px) and (min-width: 1200px) {
    .pdv-standalone-shell {
        padding: 0.4rem 0.55rem;
        gap: 0.35rem;
    }

    .pdv-standalone-topbar {
        padding: 0.42rem 0.58rem;
        border-radius: 10px;
    }

    .pdv-standalone-title h1 {
        font-size: 0.95rem;
    }

    .pdv-standalone-title p {
        display: none;
    }

    .pdv-user-chip {
        font-size: 0.76rem;
        padding: 0.24rem 0.5rem;
    }

    .pdv-catalog {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 0.55rem;
    }

    .pdv-catalog-main,
    .pdv-cart {
        border-radius: 10px;
    }

    .pdv-catalog-main {
        padding: 0.55rem;
    }

    .pdv-catalog-top {
        padding: 0.45rem 0.58rem;
        margin-bottom: 0.45rem;
        border-radius: 10px;
    }

    .pdv-brand-logo {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }

    .pdv-brand-info h3 {
        font-size: 0.9rem;
    }

    .pdv-brand-info p {
        display: none;
    }

    .pdv-search {
        min-width: clamp(250px, 24vw, 340px);
        width: clamp(250px, 24vw, 340px);
        padding: 0.35rem 0.45rem;
    }

    .pdv-search input {
        font-size: 0.8rem;
    }

    .pdv-categories-row {
        margin-bottom: 0.45rem;
        gap: 0.35rem;
    }

    .pdv-category-pill {
        padding: 0.3rem 0.7rem;
        font-size: 0.75rem;
    }

    .pdv-product-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        grid-auto-rows: auto;
        gap: 0.35rem;
    }

    .pdv-product-thumb-wrap {
        height: clamp(126px, 16vh, 178px);
    }

    .pdv-product-body {
        padding: 0.34rem 0.36rem 0.4rem;
        gap: 0.2rem;
        min-height: 0;
    }

    .pdv-product-category {
        font-size: 0.66rem;
        padding: 0.08rem 0.42rem;
    }

    .pdv-product-name {
        font-size: 0.72rem;
        min-height: 1.85em;
    }

    .pdv-product-price {
        font-size: 0.76rem;
    }

    .pdv-add-btn {
        font-size: 0.66rem;
        padding: 0.24rem 0.42rem;
        border-radius: 8px;
    }

    .pdv-cart {
        padding: 0.52rem;
    }

    .pdv-cart-head {
        margin-bottom: 0.32rem;
    }

    .pdv-cart-head h3 {
        font-size: 0.85rem;
    }

    .pdv-cart-count {
        font-size: 0.68rem;
        padding: 0.16rem 0.42rem;
    }

    .pdv-cart-items {
        max-height: none;
        min-height: 120px;
        padding: 0.4rem;
        border-radius: 8px;
    }

    .pdv-cart-item + .pdv-cart-item {
        margin-top: 0.35rem;
        padding-top: 0.35rem;
    }

    .pdv-cart-item-title strong {
        font-size: 0.78rem;
    }

    .pdv-cart-item-meta {
        font-size: 0.68rem;
    }

    .pdv-cart-item-controls {
        gap: 0.35rem;
        margin-top: 0.26rem;
    }

    .pdv-cart-item-price {
        font-size: 0.82rem;
    }

    .pdv-cart-item-actions .btn {
        padding: 0.16rem 0.26rem;
    }

    .qty-btn {
        width: 22px;
        height: 22px;
    }

    .qty-group span {
        min-width: 24px;
        font-size: 0.74rem;
        padding: 0.1rem 0.4rem;
    }

    .pdv-cart-block {
        margin-top: 0.34rem;
        padding: 0.38rem;
        border-radius: 8px;
    }

    .pdv-cart-summary {
        padding: 0.38rem;
        border-radius: 8px;
    }

    .pdv-cart-block .form-label,
    .pdv-cart-block span,
    .pdv-cart-block strong {
        font-size: 0.8rem;
    }

    .pdv-cart-summary span,
    .pdv-cart-summary strong {
        font-size: 0.8rem;
    }

    .pdv-cart-block .form-control {
        min-height: 30px;
        font-size: 0.8rem;
        padding: 0.24rem 0.48rem;
    }

    .pdv-total-highlight {
        padding: 0.34rem 0.45rem;
    }

    .pdv-total-highlight strong {
        font-size: 0.94rem;
    }

    .pdv-inline-options {
        gap: 0.28rem;
    }

    .pdv-inline-options label {
        padding: 0.26rem 0.35rem;
        font-size: 0.74rem;
    }

    .pdv-finalize-btn {
        min-height: 33px;
        font-size: 0.8rem;
        margin-top: 0.34rem !important;
    }

    .pdv-feedback {
        font-size: 0.72rem;
        padding: 0.3rem 0.45rem;
    }
}

/* Admin shell v2 */
.app-shell {
    grid-template-columns: 286px minmax(0, 1fr);
}

.app-sidebar {
    padding: 0.85rem 0.8rem;
    background: linear-gradient(180deg, #ea9004 0%, #f5a618 58%, #f39b03 100%);
}

.sidebar-panel {
    min-height: calc(100vh - 1.7rem);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: linear-gradient(180deg, #fff4de 0%, #ffeed1 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 14px 30px rgba(94, 48, 15, 0.14);
    padding: 1.05rem 0.9rem 0.9rem;
    display: flex;
    flex-direction: column;
}

.brand-wrap {
    gap: 0.85rem;
    margin-bottom: 0.65rem;
    padding: 0.2rem 0.18rem 0.1rem;
}

.brand-badge {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    font-size: 1.58rem;
    background: linear-gradient(145deg, #f39e0d, #d97f00);
    color: #fff;
    box-shadow: 0 10px 18px rgba(121, 65, 15, 0.25);
}

.brand-copy {
    min-width: 0;
}

.brand-title {
    font-size: 1.78rem;
    line-height: 1.1;
    color: #372416;
    letter-spacing: 0;
}

.brand-subtitle {
    margin-top: 0.18rem;
    color: #806245;
    font-size: 0.94rem;
    font-weight: 600;
}

.sidebar-divider {
    height: 1px;
    margin: 0.55rem 0 0.9rem;
    background: linear-gradient(90deg, rgba(120, 74, 35, 0), rgba(120, 74, 35, 0.25), rgba(120, 74, 35, 0));
}

.menu-nav {
    gap: 0.35rem;
}

.menu-link {
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: #5b432f;
    padding: 0.72rem 0.82rem;
    font-size: 1.02rem;
    font-weight: 700;
    gap: 0.7rem;
}

.menu-link i {
    font-size: 1.1rem;
    color: #8a6b4b;
}

.menu-link:hover {
    background: rgba(255, 255, 255, 0.58);
    border-color: #ebd7b6;
    color: #3d2919;
}

.menu-link.active {
    background: #fff;
    border-color: #efddc2;
    color: #2f1d10;
    box-shadow: 0 9px 18px rgba(101, 60, 24, 0.12);
}

.menu-link.active i {
    color: #df8605;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
}

.sidebar-user-card {
    border-radius: 16px;
    border: 1px solid rgba(255, 210, 126, 0.48);
    background: linear-gradient(135deg, #f7ba51 0%, #ef9504 100%);
    color: #3d2517;
    padding: 0.7rem 0.72rem;
    display: flex;
    align-items: center;
    gap: 0.62rem;
}

.sidebar-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #ffe9b4;
    color: #5f3a1b;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1.1rem;
}

.sidebar-user-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.08;
}

.sidebar-user-copy strong {
    font-size: 0.98rem;
}

.sidebar-user-copy span {
    font-size: 0.82rem;
    opacity: 0.88;
}

.sidebar-user-chevron {
    margin-left: auto;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(94, 56, 24, 0.22);
    background: rgba(255, 238, 200, 0.9);
    color: #5f3a1b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.sidebar-user-chevron:hover {
    color: #422714;
    background: #fff1cc;
}

.sidebar-bottom-actions {
    display: flex;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 0.75rem;
}

.sidebar-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid #e4cca5;
    background: #fff8e8;
    color: #7a5838;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.2s ease;
}

.sidebar-icon-btn:hover {
    color: #5b391f;
    border-color: #d9b57f;
    background: #fff1d1;
}

.topbar {
    padding: 0.68rem 1.15rem 0.62rem;
    background: transparent;
    border-bottom: 1px solid #eddcc0;
    gap: 1rem;
}

.topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.topbar-actions {
    width: 100%;
}

.page-title {
    font-size: 2rem;
    font-weight: 800;
    color: #271b12;
    line-height: 1;
}

.topbar.has-actions .page-title {
    font-size: 1.38rem;
}

.content-wrap {
    padding: 0.5rem 1rem 0.55rem;
}

.products-header-actions {
    display: flex;
    align-items: center;
    gap: 0.56rem;
    justify-content: flex-end;
}

.products-search-box {
    width: min(410px, 100%);
    border: 1px solid #e8dcc8;
    border-radius: 11px;
    background: #fff;
    padding: 0.48rem 0.64rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #99734e;
}

.products-search-box input {
    border: 0;
    outline: 0;
    width: 100%;
    min-width: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #4b3422;
    background: transparent;
}

.products-search-box input::placeholder {
    color: #a58a6d;
}

.products-new-btn {
    min-height: 42px;
    border-radius: 10px;
    border: 0;
    background: linear-gradient(140deg, #f39d0a 0%, #e17f00 100%);
    color: #fff;
    font-weight: 800;
    padding: 0 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.products-new-btn:hover {
    color: #fff;
    background: linear-gradient(140deg, #df8805 0%, #ca6e00 100%);
}

.products-v2 .products-kpi-card {
    border: 1px solid #efe1cc;
    border-radius: 14px;
    background: #fff;
    padding: 0.5rem 0.64rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.55rem;
    box-shadow: 0 12px 20px rgba(73, 44, 18, 0.05);
}

.products-kpi-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.02rem;
}

.products-kpi-icon.is-total {
    color: #df8500;
    background: #fff4e5;
}

.products-kpi-icon.is-active {
    color: #2f8b4e;
    background: #ecf8ef;
}

.products-kpi-icon.is-empty {
    color: #bf3d3d;
    background: #fbeff1;
}

.products-kpi-icon.is-low {
    color: #b17610;
    background: #fff7e8;
}

.products-v2 .products-kpi-card span {
    display: block;
    font-size: 0.8rem;
    color: #7d6448;
    line-height: 1.1;
}

.products-v2 .products-kpi-card strong {
    display: block;
    color: #2f1f12;
    font-size: 1.58rem;
    line-height: 1.05;
    margin-top: 0.03rem;
}

.products-v2 .products-kpi-card small {
    color: #8c7256;
    font-size: 0.76rem;
}

.products-list-surface {
    border: 1px solid #eedfc9 !important;
    border-radius: 14px;
    overflow: hidden;
}

.products-list-surface .card-header {
    border-bottom: 1px solid #f1e3ce;
    padding: 0.56rem 0.75rem;
}

.products-list-head-actions {
    display: flex;
    align-items: center;
    gap: 0.52rem;
}

.products-list-head-actions .form-select {
    min-width: 190px;
    border-color: #e9d8bd;
    background-color: #fffef9;
    font-size: 0.88rem;
    padding-top: 0.34rem;
    padding-bottom: 0.34rem;
}

.products-list-head-actions .btn {
    border-color: #e7d7bd;
    color: #7a5b3d;
}

.products-list-head-actions .btn.active {
    background: #fff3df;
    color: #c26d01;
    border-color: #ecc78f;
}

.products-v2-table thead th {
    background: #fffdfa;
    color: #6d4a28;
    border-bottom: 1px solid #eedfc8;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.products-v2-table th,
.products-v2-table td {
    padding: 0.42rem 0.5rem;
}

.products-v2-table tbody tr {
    transition: background-color 0.18s ease;
}

.products-v2-table tbody tr:hover {
    background: #fffbf4;
}

.products-v2-media {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.products-v2-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #f0e0ca;
    object-fit: cover;
    background: #fff;
    flex-shrink: 0;
}

.products-v2-thumb-fallback {
    display: grid;
    place-items: center;
    color: #cc9d60;
}

.products-v2-media strong {
    display: block;
    color: #332113;
    font-size: 0.86rem;
    line-height: 1.2;
}

.products-v2-media p {
    margin: 0;
    color: #785b40;
    font-size: 0.75rem;
    display: none;
}

.products-v2-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
}

.products-v2-actions form {
    margin: 0;
}

.products-v2-actions .btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.products-v2-actions .btn-outline-secondary {
    border-color: #e2d2bb;
    color: #6c4e33;
}

.products-v2-actions .btn-outline-secondary:hover {
    border-color: #d0b089;
    background: #fff2dc;
    color: #4d331c;
}

.products-list-surface .card-footer {
    border-top: 1px solid #f1e3ce;
    color: #896b4d;
    padding: 0.44rem 0.75rem;
}

.products-list-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.products-pagination .page-link {
    border-color: #ecd8b6;
    color: #7a5a3a;
    min-width: 28px;
    height: 28px;
    padding: 0.1rem 0.42rem;
    text-align: center;
    background: #fff;
    font-size: 0.78rem;
}

.products-kpi-row {
    margin-bottom: 0.36rem !important;
}

.products-table-wrap {
    overflow-x: hidden;
}

.products-v2-table {
    width: 100%;
    table-layout: fixed;
}

.products-v2-table th:nth-child(1),
.products-v2-table td:nth-child(1) {
    width: 54px;
}

.products-v2-table th:nth-child(2),
.products-v2-table td:nth-child(2) {
    width: 36%;
}

.products-v2-table th:nth-child(3),
.products-v2-table td:nth-child(3) {
    width: 16%;
}

.products-v2-table th:nth-child(4),
.products-v2-table td:nth-child(4) {
    width: 10%;
}

.products-v2-table th:nth-child(5),
.products-v2-table td:nth-child(5) {
    width: 10%;
}

.products-v2-table th:nth-child(6),
.products-v2-table td:nth-child(6) {
    width: 9%;
}

.products-v2-table th:nth-child(7),
.products-v2-table td:nth-child(7) {
    width: 112px;
}

.products-v2-table .stock-pill {
    min-width: 58px;
    font-size: 0.68rem;
    padding: 0.13rem 0.32rem;
}

body.products-screen {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
}

body.products-screen .app-shell,
body.manager-screen .app-shell {
    height: 100dvh;
    max-height: 100dvh;
}

body.products-screen .app-main,
body.products-screen .content-wrap,
body.products-screen .products-v2,
body.manager-screen .app-main,
body.manager-screen .content-wrap,
body.manager-screen .products-v2 {
    min-height: 0;
}

body.products-screen .content-wrap,
body.products-screen .products-v2,
body.products-screen .products-list-surface,
body.manager-screen .content-wrap,
body.manager-screen .products-v2,
body.manager-screen .products-list-surface {
    display: flex;
    flex-direction: column;
}

body.products-screen .products-list-surface,
body.manager-screen .products-list-surface {
    flex: 1;
    min-height: 0;
}

body.products-screen .products-table-wrap,
body.manager-screen .products-table-wrap {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

body.manager-screen {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
}

.manager-date-value {
    font-size: 1.08rem !important;
    line-height: 1.1 !important;
}

.manager-table {
    width: 100%;
    table-layout: fixed;
}

.manager-table-wrap {
    overflow-x: hidden;
}

.manager-name-cell {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.manager-modal-dialog {
    max-width: min(680px, 86vw);
}

.categories-table th:nth-child(1),
.categories-table td:nth-child(1) {
    width: 62px;
}

.categories-table th:nth-child(2),
.categories-table td:nth-child(2) {
    width: calc(100% - 252px);
}

.categories-table th:nth-child(3),
.categories-table td:nth-child(3) {
    width: 90px;
}

.categories-table th:nth-child(4),
.categories-table td:nth-child(4) {
    width: 100px;
}

.adicionais-table th:nth-child(1),
.adicionais-table td:nth-child(1) {
    width: 62px;
}

.adicionais-table th:nth-child(2),
.adicionais-table td:nth-child(2) {
    width: calc(100% - 322px);
}

.adicionais-table th:nth-child(3),
.adicionais-table td:nth-child(3) {
    width: 130px;
}

.adicionais-table th:nth-child(4),
.adicionais-table td:nth-child(4) {
    width: 90px;
}

.adicionais-table th:nth-child(5),
.adicionais-table td:nth-child(5) {
    width: 100px;
}

.coupons-table th:nth-child(1),
.coupons-table td:nth-child(1) {
    width: 58px;
}

.coupons-table th:nth-child(2),
.coupons-table td:nth-child(2) {
    width: calc(100% - 460px);
}

.coupons-table th:nth-child(3),
.coupons-table td:nth-child(3) {
    width: 110px;
}

.coupons-table th:nth-child(4),
.coupons-table td:nth-child(4) {
    width: 108px;
}

.coupons-table th:nth-child(5),
.coupons-table td:nth-child(5) {
    width: 104px;
}

.coupons-table th:nth-child(6),
.coupons-table td:nth-child(6) {
    width: 92px;
}

.coupons-table th:nth-child(7),
.coupons-table td:nth-child(7) {
    width: 100px;
}

.orders-topbar-form {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.orders-search-box {
    width: min(360px, 100%);
}

.orders-date-input {
    width: 155px;
    min-height: 42px;
    border-color: #e8dcc8;
    border-radius: 10px;
    background: #fff;
}

.orders-filter-btn {
    min-height: 42px;
    padding: 0 0.9rem;
}

.orders-delivery-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 42px;
    white-space: nowrap;
    font-weight: 800;
    border-radius: 10px;
}

.delivery-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.36rem;
    min-height: 36px;
    padding: 0.42rem 0.68rem;
    border-radius: 999px;
    border: 1px solid #e4d3b8;
    background: #fffaf0;
    color: #6b4a30;
    font-size: 0.82rem;
    font-weight: 900;
    white-space: nowrap;
}

.delivery-status-pill.is-open {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #15803d;
}

.delivery-status-pill.is-closed {
    border-color: #fecaca;
    background: #fff1f2;
    color: #b42318;
}

.orders-new-alert {
    margin-bottom: 0.7rem;
    border: 1px solid #fbbf24;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff7d6 0%, #fffaf0 100%);
    color: #5f3c10;
    padding: 0.78rem 0.92rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    box-shadow: 0 12px 24px rgba(183, 113, 17, 0.16);
}

.orders-new-alert i {
    color: #d97706;
    font-size: 1.2rem;
}

.orders-new-alert strong {
    font-size: 0.95rem;
}

.orders-new-alert span {
    color: #7c5b24;
    font-size: 0.82rem;
}

.orders-reset-btn {
    min-height: 42px;
    min-width: 68px;
    border-color: #e1cdad;
    color: #7a5732;
}

.orders-reset-btn:hover {
    background: #fff2dc;
    border-color: #d3b183;
    color: #5a3a1d;
}

.dashboard-topbar-actions {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.dashboard-now-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    border: 1px solid #e8d5b3;
    border-radius: 999px;
    padding: 0.35rem 0.72rem;
    background: #fffdf7;
    color: #6f4f2f;
    font-size: 0.81rem;
    font-weight: 700;
    white-space: nowrap;
}

.finance-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
}

.finance-filter-form {
    flex: 1;
}

.finance-payment-row {
    margin-top: 0 !important;
}

.finance-payment-card {
    border: 1px solid #efdfc8;
    border-radius: 12px;
    background: #fffdfa;
    padding: 0.52rem 0.62rem;
    min-height: 76px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 10px 18px rgba(79, 47, 20, 0.05);
}

.finance-payment-card span {
    color: #7c5f43;
    font-size: 0.76rem;
    font-weight: 700;
}

.finance-payment-card strong {
    color: #322113;
    font-size: 1rem;
    line-height: 1.15;
}

.finance-payment-card.is-muted strong {
    font-size: 0.86rem;
    color: #5a4128;
}

.finance-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid #e7d7bf;
    padding: 0.15rem 0.52rem;
    font-size: 0.72rem;
    font-weight: 800;
}

.finance-type-badge.is-entrada {
    background: #e8f7eb;
    border-color: #bfe3c8;
    color: #1f6a38;
}

.finance-type-badge.is-saida {
    background: #fdebed;
    border-color: #f0c0c5;
    color: #8c252d;
}

.finance-value-in {
    color: #18643a;
}

.finance-value-out {
    color: #9a222b;
}

.orders-manager-table th,
.orders-manager-table td {
    padding: 0.5rem 0.45rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.orders-manager-table th:nth-child(1),
.orders-manager-table td:nth-child(1) {
    width: 150px;
}

.orders-manager-table th:nth-child(2),
.orders-manager-table td:nth-child(2) {
    width: 132px;
}

.orders-manager-table th:nth-child(3),
.orders-manager-table td:nth-child(3) {
    width: 150px;
}

.orders-manager-table th:nth-child(4),
.orders-manager-table td:nth-child(4) {
    width: 130px;
}

.orders-manager-table th:nth-child(5),
.orders-manager-table td:nth-child(5) {
    width: 88px;
}

.orders-manager-table th:nth-child(6),
.orders-manager-table td:nth-child(6) {
    width: 118px;
}

.orders-manager-table th:nth-child(7),
.orders-manager-table td:nth-child(7) {
    width: 64px;
}

.orders-manager-table th:nth-child(8),
.orders-manager-table td:nth-child(8) {
    width: 108px;
}

.orders-manager-table th:nth-child(9),
.orders-manager-table td:nth-child(9) {
    width: 134px;
}

.orders-manager-table .order-actions-heading,
.orders-manager-table .order-actions-cell {
    min-width: 196px;
    width: 196px;
}

.orders-manager-table .order-status-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.48rem;
}

.orders-manager-table .order-actions-bar {
    gap: 0.18rem;
}

.orders-manager-table .order-icon-btn,
.orders-manager-table .order-status-icon-btn {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    flex: 0 0 28px;
}

.orders-manager-table thead th {
    white-space: nowrap;
}

.orders-table-scroll-hint {
    display: none;
}

body.manager-screen .products-table-wrap.manager-table-wrap {
    overflow-x: auto;
    overflow-y: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
}

body.manager-screen .products-table-wrap.manager-table-wrap::-webkit-scrollbar {
    height: 9px;
    width: 9px;
}

body.manager-screen .products-table-wrap.manager-table-wrap::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #d5b887;
}

body.manager-screen .products-table-wrap.manager-table-wrap::-webkit-scrollbar-track {
    background: #fff6e7;
}

.orders-manager-table {
    width: 1340px;
    min-width: 1340px;
}

.orders-manager-table th:nth-child(9),
.orders-manager-table td:nth-child(9) {
    width: 154px;
    min-width: 154px;
    overflow: visible;
}

.orders-manager-table .order-actions-heading,
.orders-manager-table .order-actions-cell {
    width: 292px;
    min-width: 292px;
    overflow: visible;
}

.orders-manager-table th:nth-child(9),
.orders-manager-table td:nth-child(9),
.orders-manager-table .order-actions-heading,
.orders-manager-table .order-actions-cell {
    position: sticky;
    background: #fff;
}

.orders-manager-table th:nth-child(9),
.orders-manager-table td:nth-child(9) {
    right: 292px;
    z-index: 3;
    box-shadow: -8px 0 14px rgba(66, 42, 17, 0.04);
}

.orders-manager-table .order-actions-heading,
.orders-manager-table .order-actions-cell {
    right: 0;
    z-index: 4;
    box-shadow: -8px 0 14px rgba(66, 42, 17, 0.08);
}

.orders-manager-table thead th:nth-child(9),
.orders-manager-table thead .order-actions-heading {
    z-index: 6;
    background: #fffdfa;
}

.orders-manager-table tbody tr:hover td:nth-child(9),
.orders-manager-table tbody tr:hover .order-actions-cell {
    background: #fff8ec;
}

.orders-manager-table .order-actions-bar {
    justify-content: flex-end;
}

.dashboard-orders-table th:nth-child(1),
.dashboard-orders-table td:nth-child(1) {
    width: 170px;
}

.dashboard-orders-table th:nth-child(2),
.dashboard-orders-table td:nth-child(2) {
    width: 170px;
}

.dashboard-orders-table th:nth-child(3),
.dashboard-orders-table td:nth-child(3) {
    width: 86px;
}

.dashboard-orders-table th:nth-child(4),
.dashboard-orders-table td:nth-child(4) {
    width: 110px;
}

.dashboard-orders-table th:nth-child(5),
.dashboard-orders-table td:nth-child(5) {
    width: 126px;
}

.dashboard-orders-table th:nth-child(6),
.dashboard-orders-table td:nth-child(6) {
    width: 132px;
}

.finance-table th,
.finance-table td {
    padding: 0.48rem 0.44rem;
}

.finance-table th:nth-child(1),
.finance-table td:nth-child(1) {
    width: 132px;
}

.finance-table th:nth-child(2),
.finance-table td:nth-child(2) {
    width: 86px;
}

.finance-table th:nth-child(3),
.finance-table td:nth-child(3) {
    width: calc(100% - 562px);
}

.finance-table th:nth-child(4),
.finance-table td:nth-child(4) {
    width: 104px;
}

.finance-table th:nth-child(5),
.finance-table td:nth-child(5) {
    width: 88px;
}

.finance-table th:nth-child(6),
.finance-table td:nth-child(6) {
    width: 110px;
}

.finance-table th:nth-child(7),
.finance-table td:nth-child(7) {
    width: 72px;
}

.orders-modal-dialog {
    max-width: min(760px, 88vw);
}

.config-summary-card .card-body {
    padding: 0.72rem 0.84rem;
}

.config-info-line {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: center;
    border: 1px solid #efdfc7;
    border-radius: 10px;
    padding: 0.48rem 0.6rem;
    background: #fffdfa;
}

.config-info-line + .config-info-line {
    margin-top: 0.38rem;
}

.config-info-line span {
    color: #7b5f42;
    font-size: 0.82rem;
    white-space: nowrap;
}

.config-info-line strong {
    color: #362514;
    font-size: 0.9rem;
    text-align: right;
    overflow-wrap: anywhere;
}

.config-color-preview {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
}

.config-color-preview i {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 1px solid #e2cda7;
    display: inline-block;
}

.config-logo-box {
    border: 1px dashed #e4d0af;
    border-radius: 12px;
    padding: 0.52rem 0.62rem;
    background: #fffaf1;
}

.config-logo-box span {
    display: block;
    color: #846447;
    font-size: 0.78rem;
    margin-bottom: 0.3rem;
}

.config-logo-thumb {
    width: 118px;
    max-height: 54px;
    object-fit: contain;
}

.products-pagination .page-item.active .page-link {
    background: #f29b05;
    border-color: #df8500;
    color: #fff;
}

.products-pagination .page-item.disabled .page-link {
    color: #bda182;
    background: #fff8ed;
}

.product-editor-dialog {
    max-width: min(860px, 90vw);
}

.product-editor-content {
    border: 1px solid #edd8b9;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 44px rgba(61, 35, 14, 0.2);
}

.product-editor-content .modal-header {
    border-bottom: 1px solid #f1e4cf;
    padding: 0.72rem 0.95rem;
}

.product-editor-content .modal-title {
    font-size: 1.35rem;
    color: #2f1d11;
    font-weight: 800;
}

.product-editor-content .modal-body {
    padding: 0.72rem 0.9rem;
    overflow: visible;
}

.product-editor-content .modal-footer {
    border-top: 1px solid #f1e4cf;
    padding: 0.62rem 0.95rem;
}

.product-editor-form .form-label {
    color: #5a3a1f;
    font-weight: 700;
    margin-bottom: 0.28rem;
    font-size: 0.95rem;
}

.product-editor-form .form-control,
.product-editor-form .form-select,
.product-editor-form .input-group-text {
    border-color: #e5d5bc;
    background-color: #fffefb;
    min-height: 38px;
    padding-top: 0.38rem;
    padding-bottom: 0.38rem;
}

.product-editor-form .form-control {
    font-size: 0.95rem;
}

.product-editor-grid .text-muted {
    font-size: 0.74rem;
    margin-top: 0.18rem !important;
}

.product-editor-grid textarea.form-control {
    min-height: 96px;
    resize: none;
}

.product-upload-box {
    border: 1px dashed #e3caa2;
    border-radius: 12px;
    background: #fffaf1;
    min-height: 76px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    color: #8c6339;
    text-align: center;
    padding: 0.5rem 0.6rem;
    cursor: pointer;
}

.product-upload-box i {
    font-size: 1.2rem;
    color: #e08a09;
}

.product-upload-box strong {
    font-size: 0.78rem;
    color: #5f3a1d;
}

.product-upload-box span {
    font-size: 0.68rem;
}

.product-editor-status-card {
    border: 1px solid #eadbc2;
    border-radius: 12px;
    padding: 0.65rem 0.7rem;
    background: #fffdf9;
    min-height: 100%;
}

.product-editor-content .product-edit-thumb {
    display: none;
}

@media (max-width: 1300px) {
    .topbar.has-actions .page-title {
        font-size: 1.25rem;
    }

    .products-header-actions {
        width: 100%;
    }
}

@media (max-width: 1100px) {
    .app-shell {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .app-sidebar {
        padding: 0.55rem 0.5rem;
    }

    .sidebar-panel {
        min-height: calc(100vh - 1.1rem);
        padding: 0.7rem 0.5rem;
        border-radius: 18px;
    }

    .brand-copy,
    .menu-link span,
    .sidebar-user-copy,
    .sidebar-user-chevron {
        display: none;
    }

    .brand-wrap,
    .menu-link,
    .sidebar-user-card,
    .sidebar-bottom-actions {
        justify-content: center;
    }

    .menu-link {
        padding: 0.62rem 0.5rem;
    }

    .topbar {
        padding: 0.95rem 1rem 0.85rem;
        flex-wrap: wrap;
    }

    .page-title {
        font-size: 2rem;
    }

    .content-wrap {
        padding: 0.85rem 1rem 1.15rem;
    }

    .topbar-right {
        width: 100%;
        margin-left: 0;
        justify-content: flex-end;
    }
}

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

    .app-sidebar {
        display: none;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .products-header-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .finance-topbar-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .finance-topbar-actions > .btn {
        width: 100%;
        justify-content: center;
    }

    .products-search-box {
        width: 100%;
    }

    .products-new-btn {
        width: 100%;
        justify-content: center;
    }

    .products-list-head-actions {
        width: 100%;
    }

    .products-list-head-actions .form-select {
        min-width: 0;
        flex: 1;
    }
}

@media print {
    .app-sidebar,
    .topbar,
    .btn,
    .alert,
    .sidebar-footer {
        display: none !important;
    }

    .app-shell {
        display: block;
    }

    .content-wrap {
        padding: 0;
    }
}

.order-status-badge.is-aceito {
    color: #1f6f4d;
    background: rgba(113, 217, 162, 0.18);
    border-color: rgba(47, 150, 95, 0.38);
}

.order-status-badge.is-saiu-entrega {
    color: #8b4f03;
    background: rgba(255, 207, 124, 0.28);
    border-color: rgba(244, 163, 32, 0.45);
}

.relation-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
}

.relation-check-item {
    display: flex;
    align-items: center;
    gap: 0.52rem;
    border: 1px solid #eadbc2;
    border-radius: 10px;
    padding: 0.5rem 0.58rem;
    background: #fffdf8;
    cursor: pointer;
}

.relation-check-item input {
    margin: 0;
}

.relation-check-item span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.relation-check-item strong {
    font-size: 0.85rem;
    color: #4b2d19;
    line-height: 1.15;
}

.relation-check-item small {
    font-size: 0.74rem;
    color: #896241;
    line-height: 1.1;
}

body.customer-body {
    margin: 0;
    background: linear-gradient(180deg, #f3f6f8 0%, #eef2f5 100%);
    color: #3f2514;
    padding-bottom: 86px;
}

.customer-shell {
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 0.8rem 0.8rem 1.15rem;
}

.customer-hero {
    margin-bottom: 0.7rem;
}

.customer-hero-strip {
    min-height: 96px;
    background: #59602a;
    border-radius: 14px 14px 0 0;
    position: relative;
}

.customer-rating-pill {
    position: absolute;
    top: 0.62rem;
    right: 0.62rem;
    border-radius: 8px;
    background: #121820;
    color: #ffcb2f;
    border: 1px solid #2f3948;
    font-weight: 800;
    font-size: 1.06rem;
    padding: 0.34rem 0.58rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.customer-header {
    background: #fbfbfc;
    border: 2px solid #c8c9ce;
    border-radius: 22px;
    box-shadow: 0 14px 28px rgba(18, 32, 46, 0.08);
    margin-top: -24px;
    padding: 3.55rem 0.95rem 0.72rem;
    position: relative;
}

.customer-brand-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.22rem;
}

.customer-brand-logo {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background: #5c6430;
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    display: grid;
    place-items: center;
    overflow: hidden;
    box-shadow: 0 12px 20px rgba(28, 36, 16, 0.25);
    flex-shrink: 0;
    border: 3px solid #e7e7e7;
    position: absolute;
    top: -56px;
    left: 50%;
    transform: translateX(-50%);
}

.customer-brand-logo.has-logo {
    background: #606938;
    border: 3px solid #e5e5e8;
    box-shadow: 0 8px 18px rgba(28, 36, 16, 0.18);
}

.customer-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.customer-brand-title {
    margin: 0;
    font-size: clamp(1.35rem, 2.1vw, 1.95rem);
    font-weight: 800;
    color: #2b2c2f;
    line-height: 1.1;
    letter-spacing: 0.01em;
}

.customer-open-row {
    width: 100%;
    margin-top: 0.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.48rem;
    padding-bottom: 0.38rem;
}

.customer-row-arrow {
    color: #2e3136;
    font-size: 1.15rem;
}

.customer-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border-radius: 999px;
    padding: 0.15rem 0.18rem;
    font-size: 1rem;
    font-weight: 700;
    border: 0;
    background: transparent;
    color: #2f7c38;
}

.customer-status-badge i {
    font-size: 0.7rem;
}

.customer-status-badge.is-open {
    color: #39a34c;
}

.customer-status-badge.is-closed {
    color: #983434;
}

.customer-service-row {
    width: 100%;
    margin-top: 0.1rem;
    padding-top: 0.5rem;
    border-top: 2px solid #d8d9dd;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.customer-service-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    font-size: 1rem;
    font-weight: 700;
    color: #2e3136;
    line-height: 1;
}

.customer-service-chip i {
    color: #1f2328;
    font-size: 1.05rem;
}

.customer-service-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #8f949d;
}

.customer-cart-head-btn {
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    border: 0;
    background: transparent;
    color: transparent;
    position: absolute;
    top: 0;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.customer-cart-head-btn span {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    background: var(--customer-brand, #ef8f0d);
    color: #fff;
    font-size: 0.72rem;
    display: grid;
    place-items: center;
    border: 2px solid #101723;
}

.customer-toolbar {
    margin-top: 0.72rem;
}

.customer-search-box {
    margin-top: 0.55rem;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.42rem;
    border: 1px solid #ecd7b2;
    border-radius: 13px;
    background: #fffefb;
    padding: 0.42rem 0.62rem;
}

.customer-search-box i {
    font-size: 0.93rem;
    color: #b0712e;
}

.customer-search-box input {
    width: 100%;
    border: 0;
    background: transparent;
    outline: 0;
    font-size: 0.95rem;
    color: #50311d;
}

.customer-category-scroller {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    padding-bottom: 0.12rem;
}

.customer-category-pill {
    border: 1px solid #ebd6b1;
    border-radius: 999px;
    background: #fffdf8;
    color: #875837;
    font-size: 0.86rem;
    font-weight: 700;
    padding: 0.36rem 0.8rem;
    white-space: nowrap;
}

.customer-category-pill.active {
    border-color: var(--customer-brand, #ef8f0d);
    background: var(--customer-brand, #ef8f0d);
    color: #fff;
    box-shadow: 0 8px 18px rgba(239, 143, 13, 0.3);
}

.customer-products-grid {
    margin-top: 0.72rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

.footer-mobile {
    padding: 16px 12px 80px;
    margin-top: 20px;
    text-align: center;
    background: transparent;
    border: none;
    box-shadow: none;
}

.footer-mobile .footer-title {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 4px;
}

.footer-mobile .footer-text {
    font-size: 11px;
    color: #888;
    line-height: 1.4;
}

.footer-mobile .footer-dev {
    margin-top: 8px;
    display: inline-block;
    font-size: 11px;
    color: #d48b00;
    text-decoration: none;
    font-weight: 500;
}

.footer-mobile .footer-dev:hover {
    opacity: .85;
}

.customer-category-section {
    display: grid;
    gap: 0.55rem;
}

.customer-category-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.customer-category-title {
    margin: 0;
    color: #2f343a;
    font-size: 1.28rem;
    font-weight: 800;
    line-height: 1.1;
}

.customer-category-more {
    border: 0;
    background: transparent;
    color: #d97d00;
    display: inline-flex;
    align-items: center;
    gap: 0.18rem;
    font-size: 0.86rem;
    font-weight: 800;
    padding: 0.18rem 0;
    white-space: nowrap;
}

.customer-category-more i {
    font-size: 0.82rem;
}

.customer-category-products {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.65rem;
}

.customer-product-card {
    border: 1px solid #d9e2ec;
    background: #fffefb;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(28, 43, 58, 0.08);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    align-items: stretch;
}

.customer-product-thumb-wrap {
    height: 100%;
    background: #fff;
    border-left: 1px solid #eef2f6;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 118px;
}

.customer-product-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.customer-product-thumb.fallback,
.customer-modal-thumb.fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #b38a5e;
    font-size: 1.2rem;
    background: linear-gradient(130deg, #f8ecd9, #f1dfc4);
}

.customer-product-body {
    padding: 0.68rem 0.72rem 0.62rem;
    display: flex;
    flex-direction: column;
    min-height: 118px;
}

.customer-product-category {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    border: 1px solid #edd8b5;
    border-radius: 999px;
    padding: 0.16rem 0.52rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: #95663f;
    background: #fff9ef;
    margin-bottom: 0.34rem;
}

.customer-product-body h3 {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.2;
    color: #442617;
    font-weight: 800;
}

.customer-product-body p {
    margin: 0.22rem 0 0;
    font-size: 0.81rem;
    color: #7c5941;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.15rem;
}

.customer-product-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    padding-top: 0.45rem;
}

.customer-product-footer strong {
    color: #5a341c;
    font-size: 1.25rem;
    font-weight: 800;
}

.customer-add-btn,
.customer-modal-add-btn,
.customer-checkout-btn,
.customer-bottom-btn {
    border-radius: 11px;
    border: 0;
    background: linear-gradient(145deg, #ffb000, #eb8600);
    color: #fff;
    font-weight: 800;
}

.customer-add-btn {
    font-size: 0.82rem;
    padding: 0.35rem 0.68rem;
}

.customer-empty-card {
    grid-column: 1 / -1;
    border: 1px dashed #e5cda4;
    border-radius: 14px;
    background: #fffdf9;
    padding: 1.1rem;
    text-align: center;
    color: #8b6848;
}

.customer-empty-card i {
    font-size: 1.6rem;
}

.customer-bottom-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.5rem 0.72rem 0.72rem;
    background: linear-gradient(180deg, rgba(255, 247, 234, 0), rgba(255, 247, 234, 0.92) 26%, rgba(255, 247, 234, 1) 100%);
    z-index: 1030;
}

.customer-bottom-btn {
    width: 100%;
    padding: 0.56rem 0.72rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 12px 24px rgba(91, 50, 16, 0.3);
}

.customer-bottom-left {
    display: flex;
    align-items: center;
    gap: 0.48rem;
}

.customer-bottom-left strong {
    font-size: 0.98rem;
}

.customer-bottom-left small {
    font-size: 0.8rem;
    opacity: 0.9;
}

.customer-bottom-bar.is-empty .customer-bottom-btn {
    opacity: 0.55;
}

.customer-bottom-bar.is-empty {
    display: none;
}

body.customer-body {
    padding-bottom: 138px;
}

.customer-bottom-bar {
    left: 50%;
    right: auto;
    bottom: 64px;
    width: min(760px, 100%);
    transform: translateX(-50%);
    z-index: 1034;
}

.customer-app-nav {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: 0;
    width: min(760px, 100%);
    transform: translateX(-50%);
    min-height: 64px;
    padding: 0.38rem 0.72rem calc(0.38rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid #e3e7ec;
    box-shadow: 0 -10px 28px rgba(25, 33, 42, 0.1);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.18rem;
    z-index: 1035;
}

.customer-app-nav-btn {
    border: 0;
    background: transparent;
    color: #6d737b;
    border-radius: 14px;
    min-height: 52px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0.12rem;
    font-weight: 800;
    font-size: 0.72rem;
}

.customer-app-nav-btn span {
    display: block;
    line-height: 1.1;
    white-space: nowrap;
}

.customer-app-nav-btn i {
    font-size: 1.2rem;
    line-height: 1;
}

.customer-app-nav-btn.is-active {
    color: #59602a;
    background: #f3f5e4;
}

.customer-flow-open .customer-app-nav {
    display: none;
}

.customer-flow-open.customer-client-tab-open .customer-app-nav {
    display: grid;
    z-index: 1095;
}

.customer-flow-open.customer-client-tab-open .customer-bottom-bar {
    display: none;
}

.customer-cart-canvas {
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
    width: min(560px, 100vw) !important;
    background: #f3f6f8;
}

.customer-cart-canvas .offcanvas-header {
    background: #fff;
    border-bottom: 1px solid #e2e8ef;
}

.customer-cart-canvas .offcanvas-body {
    padding: 0.82rem;
}

.customer-cart-items {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.customer-cart-bag,
.customer-cart-suggestions {
    border: 1px solid #dce5ef;
    border-radius: 14px;
    background: #fff;
    padding: 0.68rem;
    box-shadow: 0 8px 18px rgba(28, 43, 58, 0.06);
}

.customer-cart-bag-head {
    display: flex;
    align-items: center;
    gap: 0.58rem;
    margin-bottom: 0.58rem;
}

.customer-cart-bag-head > span {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #fff4dc;
    color: #d97d00;
    display: grid;
    place-items: center;
    flex: 0 0 38px;
}

.customer-cart-bag-head strong {
    display: block;
    color: #2f343a;
    font-size: 1.02rem;
    line-height: 1.1;
}

.customer-cart-bag-head small {
    color: #6c7784;
    font-size: 0.8rem;
}

.customer-cart-bag.is-empty .customer-cart-bag-head {
    margin-bottom: 0;
}

.customer-cart-bag-items {
    display: grid;
    gap: 0.5rem;
}

.customer-cart-item {
    border: 1px solid #e0e8f0;
    border-radius: 10px;
    background: #fffefb;
    padding: 0.46rem;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 0.52rem;
    align-items: center;
}

.customer-cart-item-thumb {
    width: 54px;
    height: 54px;
    border-radius: 9px;
    border: 1px solid #edf1f5;
    background: #fff;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #d97d00;
}

.customer-cart-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.customer-cart-item-main {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.customer-cart-item-main strong {
    color: #442617;
}

.customer-cart-item-main small {
    color: #7a5b42;
    font-size: 0.76rem;
}

.customer-cart-item-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
}

.customer-cart-item-buttons {
    display: flex;
    gap: 0.22rem;
}

.customer-cart-suggestions h6 {
    margin: 0 0 0.55rem;
    color: #2f343a;
    font-size: 1.15rem;
    font-weight: 800;
}

.customer-cart-suggestion-rail {
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    padding-bottom: 0.36rem;
    scroll-snap-type: x proximity;
}

.customer-cart-suggestion {
    width: 136px;
    min-width: 136px;
    border: 1px solid #e0e8f0;
    border-radius: 8px;
    background: #fffefb;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    text-align: left;
    color: inherit;
    overflow: hidden;
    scroll-snap-align: start;
}

.customer-cart-suggestion-thumb {
    width: 100%;
    height: 92px;
    border-radius: 0;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #edf1f5;
    overflow: hidden;
    display: grid;
    place-items: center;
    color: #d97d00;
}

.customer-cart-suggestion-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.customer-cart-suggestion-copy {
    min-width: 0;
    padding: 0.42rem 0.48rem 0.5rem;
}

.customer-cart-suggestion-copy strong,
.customer-cart-suggestion-copy small,
.customer-cart-suggestion-copy b {
    display: block;
}

.customer-cart-suggestion-copy strong {
    color: #3f2514;
    font-size: 0.82rem;
    line-height: 1.2;
    min-height: 2rem;
    text-transform: uppercase;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.customer-cart-suggestion-copy small {
    margin-top: 0.28rem;
    color: #4f5b66;
    font-size: 0.75rem;
}

.customer-cart-suggestion-copy b {
    color: #2f9f4f;
    font-size: 0.84rem;
    font-weight: 800;
}

.customer-cart-qty {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    margin-top: 0.2rem;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid #e2c89f;
    background: #fff9ef;
    color: #6a482e;
    font-weight: 800;
    display: grid;
    place-items: center;
    padding: 0;
}

.customer-cart-resume {
    margin-top: 0.68rem;
    border: 1px solid #ecd6af;
    border-radius: 12px;
    background: #fffdf8;
    padding: 0.56rem 0.62rem;
}

.customer-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.42rem;
    font-size: 0.92rem;
    color: #68472e;
}

.customer-line + .customer-line {
    margin-top: 0.2rem;
}

.customer-line.total {
    margin-top: 0.35rem;
    padding-top: 0.3rem;
    border-top: 1px dashed #e6cb9f;
}

.customer-line.total strong {
    font-size: 1.18rem;
    color: #5f3415;
}

.customer-coupon-box {
    margin-top: 0.65rem;
}

.customer-checkout-btn {
    width: 100%;
    padding: 0.58rem 0.72rem;
}

.customer-modal-dialog {
    max-width: min(660px, 92vw);
}

.customer-flow-open {
    overflow: hidden;
}

.customer-flow-page {
    position: fixed;
    inset: 0;
    width: min(760px, 100%);
    height: 100dvh;
    margin: 0 auto;
    background: #fff;
    z-index: 1080;
    display: none;
    flex-direction: column;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.customer-flow-page.is-visible {
    display: flex;
}

.customer-flow-topbar {
    height: 64px;
    border-bottom: 1px solid #e5e9ef;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    align-items: center;
    padding: 0 0.45rem;
    background: #fff;
    flex: 0 0 auto;
}

.customer-flow-topbar h2 {
    margin: 0;
    color: #25272b;
    font-size: 1.25rem;
    font-weight: 800;
    text-align: center;
}

.customer-flow-back {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: #59602a;
    font-size: 1.75rem;
    display: grid;
    place-items: center;
}

.customer-flow-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 1.15rem;
}

.customer-contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.customer-address-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.customer-contact-help {
    margin: 0.42rem 0 0;
    color: #4f5b66;
    font-size: 0.95rem;
    line-height: 1.35;
}

.customer-contact-input {
    min-height: 48px;
    border-color: #e4cba5;
    border-radius: 12px;
    font-size: 1rem;
}

.customer-flow-footer {
    margin-top: auto;
    padding-top: 1rem;
}

.customer-fulfillment-content {
    display: flex;
    flex-direction: column;
    gap: 0.78rem;
}

.customer-fulfillment-card {
    width: 100%;
    border: 1px solid #dfe4ea;
    border-radius: 6px;
    background: #fff;
    min-height: 60px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 30px;
    gap: 0.7rem;
    align-items: center;
    padding: 0.84rem;
    text-align: left;
    color: #2f343a;
}

.customer-fulfillment-card.is-selected {
    border-color: #59602a;
    box-shadow: 0 0 0 1px #59602a inset;
}

.customer-fulfillment-icon {
    color: #c8c8c8;
    font-size: 1.45rem;
    display: grid;
    place-items: center;
}

.customer-fulfillment-main {
    min-width: 0;
}

.customer-fulfillment-main strong {
    display: block;
    font-size: 0.92rem;
    color: #25272b;
}

.customer-address-preview {
    margin-top: 1rem;
    border: 1px dashed #d7d7d7;
    border-radius: 4px;
    min-height: 48px;
    padding: 0.62rem 0.7rem;
    color: #4f5b66;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    cursor: pointer;
}

.customer-address-preview span {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.customer-delivery-quote {
    margin-top: 0.45rem;
    display: grid;
    gap: 0.2rem;
    color: #4d5d6e;
    font-size: 0.78rem;
    font-weight: 700;
}

.customer-delivery-quote span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.customer-delivery-quote .bi {
    color: #6d7d8d;
}

.customer-delivery-quote.is-error {
    color: #b03a2e;
}

.customer-store-address {
    grid-column: 1 / -1;
    margin-top: 1rem;
    border-top: 1px solid #e0e0e0;
    padding-top: 0.72rem;
    color: #3f4650;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 0.45rem;
    font-size: 0.86rem;
    line-height: 1.35;
}

.customer-store-address .bi-geo-alt-fill {
    color: #b8b8b8;
    margin-top: 0.12rem;
}

.customer-address-preview .bi-geo-alt-fill {
    color: #b8b8b8;
}

.customer-fulfillment-check {
    width: 20px;
    height: 20px;
    border: 2px solid #80858b;
    border-radius: 50%;
    display: block;
    justify-self: end;
    position: relative;
}

.customer-fulfillment-card.is-selected .customer-fulfillment-check {
    border-color: #59602a;
}

.customer-fulfillment-card.is-selected .customer-fulfillment-check::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #59602a;
}

.customer-fulfillment-footer {
    flex: 0 0 auto;
    border-top: 1px solid #e4e8ee;
    background: #fff;
    padding: 0.85rem 1rem 1rem;
    box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.06);
}

.customer-flow-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.72rem;
    color: #25272b;
}

.customer-flow-total strong,
.customer-flow-total span {
    font-size: 0.98rem;
    font-weight: 800;
}

.customer-client-page {
    background: #f3f6f8;
}

.customer-client-content {
    padding: 0;
    padding-bottom: 82px;
    background: #f3f6f8;
}

.customer-client-hero,
.customer-orders-hero {
    padding: 1.05rem 1rem;
    background: #202020;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.12);
}

.customer-client-hero {
    background: linear-gradient(135deg, #fffaf0 0%, #ffffff 100%);
    color: #2f343a;
    border-bottom: 1px solid #e0e8f0;
}

.customer-client-hero span,
.customer-orders-hero span {
    display: block;
    font-size: 0.84rem;
    font-weight: 800;
    opacity: 0.88;
}

.customer-client-hero h3,
.customer-orders-hero strong {
    display: block;
    margin: 0.18rem 0 0;
    font-size: 1.28rem;
    font-weight: 900;
}

.customer-client-hero p {
    margin: 0.34rem 0 0;
    color: #64707d;
    font-size: 0.92rem;
    line-height: 1.35;
}

.customer-client-form {
    display: grid;
    gap: 0.78rem;
    padding: 1rem;
}

.customer-client-form label {
    display: grid;
    gap: 0.34rem;
}

.customer-client-form label span {
    color: #5f4632;
    font-weight: 800;
    font-size: 0.9rem;
}

.customer-client-feedback {
    display: block;
    border-radius: 10px;
    padding: 0.58rem 0.7rem;
    font-weight: 800;
    font-size: 0.84rem;
}

.customer-client-feedback.is-error {
    color: #a93131;
    background: #fff0f0;
    border: 1px solid #ffd2d2;
}

.customer-client-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.55rem;
}

.customer-client-loading,
.customer-client-empty {
    margin: 1rem;
    border: 1px solid #dce5ef;
    border-radius: 14px;
    background: #ffffff;
    padding: 1rem;
    color: #3f4650;
    display: grid;
    gap: 0.45rem;
    text-align: center;
}

.customer-client-loading {
    min-height: 120px;
    place-items: center;
    align-content: center;
}

.customer-client-empty i {
    font-size: 1.65rem;
    color: #ef9800;
}

.customer-client-empty strong {
    font-size: 1.05rem;
    color: #2f343a;
}

.customer-client-empty p {
    margin: 0;
    color: #6b7785;
    font-size: 0.9rem;
}

.customer-orders-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 1.35rem 1rem 0.6rem;
}

.customer-orders-title-row h3 {
    margin: 0;
    color: #1f2933;
    font-size: 1.16rem;
    font-weight: 900;
    text-transform: uppercase;
}

.customer-orders-title-row span {
    color: #30353b;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.customer-orders-list {
    display: grid;
    gap: 0.62rem;
    padding: 0 1rem 1rem;
}

.customer-order-card {
    width: 100%;
    border: 1px solid #dce5ef;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.62rem;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.72rem;
    color: inherit;
    text-align: left;
    box-shadow: 0 6px 14px rgba(31, 43, 56, 0.08);
}

.customer-order-logo {
    width: 58px;
    height: 58px;
    border-radius: 2px;
    background: #59602a;
    color: #ffffff;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.customer-order-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.customer-order-main {
    min-width: 0;
    display: grid;
    gap: 0.18rem;
}

.customer-order-main strong {
    color: #17202a;
    font-size: 0.9rem;
    font-weight: 900;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.customer-order-main small {
    color: #64707d;
    font-size: 0.82rem;
}

.customer-order-main em {
    justify-self: start;
    border: 1px solid #dce5ef;
    border-radius: 7px;
    padding: 0.18rem 0.42rem;
    color: #46515e;
    background: #f8fafc;
    font-size: 0.7rem;
    font-style: normal;
    font-weight: 900;
    text-transform: uppercase;
}

.customer-order-main em.is-cancelado {
    color: #dc2626;
    border-color: #fecaca;
    background: #fff1f2;
}

.customer-order-main em.is-finalizado {
    color: #15803d;
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.customer-order-main em.is-preparo,
.customer-order-main em.is-aceito,
.customer-order-main em.is-saiu-entrega,
.customer-order-main em.is-pronto-retirada {
    color: #2563eb;
    border-color: #bfdbfe;
    background: #eff6ff;
}

.customer-order-side {
    display: grid;
    justify-items: end;
    gap: 0.2rem;
}

.customer-order-side b {
    color: #111827;
    font-size: 0.86rem;
}

.customer-order-side i {
    color: #59602a;
    font-size: 1.2rem;
}

.customer-profile-actions {
    display: grid;
    gap: 0.62rem;
    padding: 1rem;
}

.customer-profile-action {
    width: 100%;
    border: 1px solid #dce5ef;
    border-radius: 12px;
    background: #ffffff;
    color: #2f343a;
    min-height: 58px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 0.65rem;
    padding: 0.72rem 0.78rem;
    text-align: left;
    font-weight: 900;
    box-shadow: 0 6px 14px rgba(31, 43, 56, 0.06);
}

.customer-profile-action i:first-child {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #fff4dc;
    color: #d97d00;
    display: grid;
    place-items: center;
}

.customer-profile-action i:last-child {
    color: #99a2ad;
}

.customer-profile-action.is-danger {
    color: #b42318;
}

.customer-profile-action.is-danger i:first-child {
    background: #fff0f0;
    color: #dc2626;
}

.customer-modal-content {
    border: 1px solid #ecd7b2;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 38px rgba(90, 51, 19, 0.2);
}

.customer-modal-product-head {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 0.65rem;
}

.customer-modal-thumb-wrap {
    width: 120px;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: #fff9ee;
    border: 1px solid #ebd4ae;
}

.customer-modal-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.customer-modal-copy h4 {
    margin: 0;
    font-size: 1.36rem;
    color: #412617;
    font-weight: 800;
}

.customer-modal-copy p {
    margin: 0.22rem 0;
    color: #7b5940;
}

.customer-modal-copy strong {
    color: #db7f04;
    font-size: 1.45rem;
}

.customer-modal-section {
    margin-top: 0.72rem;
}

.customer-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.customer-radio-group label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid #e7d0ac;
    border-radius: 999px;
    background: #fffaf1;
    padding: 0.34rem 0.62rem;
    color: #6b4a30;
    font-size: 0.88rem;
    font-weight: 700;
}

.customer-radio-group input {
    margin: 0;
}

.customer-payment-group {
    gap: 0.5rem;
}

.customer-payment-option {
    min-height: 42px;
    padding: 0.38rem 0.72rem !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.customer-payment-option:has(input:checked) {
    border-color: #f0a016;
    background: #fff6e4;
    color: #4b2a14;
    box-shadow: 0 8px 18px rgba(239, 154, 0, 0.14);
}

.customer-payment-icon {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #8b5c22;
    background: #ffedd0;
    font-size: 0.88rem;
}

.customer-payment-icon.is-pix {
    color: #0f766e;
    background: #dffaf5;
}

.customer-pix-box {
    display: grid;
    gap: 0.5rem;
    border: 1px solid #bfeee6;
    border-radius: 14px;
    background: linear-gradient(135deg, #f1fffb 0%, #fffdf7 100%);
    padding: 0.78rem;
}

.customer-pix-label {
    color: #4a716a;
    font-size: 0.82rem;
    font-weight: 800;
}

.customer-pix-box strong {
    overflow-wrap: anywhere;
    color: #194f49;
    font-size: 1rem;
}

.customer-pix-copy-btn {
    width: 100%;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: #0f9f8d;
    font-weight: 900;
}

.customer-pix-copy-btn:hover {
    color: #ffffff;
    background: #0b8274;
}

.customer-pix-feedback {
    min-height: 1rem;
    color: #6b7b83;
    font-size: 0.78rem;
    font-weight: 800;
}

.customer-pix-feedback.is-success {
    color: #218a4a;
}

.customer-extra-row {
    border: 1px solid #ead4af;
    border-radius: 12px;
    background: #fffefb;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.4rem;
    align-items: center;
    padding: 0.48rem 0.55rem;
}

.customer-extra-row + .customer-extra-row {
    margin-top: 0.35rem;
}

.customer-extra-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.customer-extra-copy strong {
    color: #492919;
    font-size: 0.92rem;
}

.customer-extra-copy small {
    color: #8a613f;
    font-size: 0.78rem;
}

.customer-extra-qty {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.customer-modal-qty {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.customer-modal-add-btn {
    padding: 0.6rem 0.82rem;
}

.customer-modal-add-btn span {
    margin-left: 0.45rem;
}

.customer-checkout-total {
    border: 1px solid #ecd6af;
    border-radius: 12px;
    background: #fffdf8;
    padding: 0.6rem;
}

.customer-checkout-total > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    color: #68472e;
}

.customer-checkout-total > div + div {
    margin-top: 0.22rem;
}

.customer-checkout-total .total {
    margin-top: 0.42rem;
    padding-top: 0.3rem;
    border-top: 1px dashed #e5ca9d;
}

.customer-checkout-total .total strong {
    color: #5c3416;
    font-size: 1.2rem;
}

@media (min-width: 768px) {
    .customer-shell {
        padding-top: 1rem;
    }
}

@media (min-width: 992px) {
    body.customer-body {
        padding-bottom: 94px;
    }

    .customer-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .relation-check-grid {
        grid-template-columns: 1fr;
    }

    .customer-hero-strip {
        min-height: 88px;
    }

    .customer-header {
        padding-top: 3.3rem;
        margin-top: -22px;
    }

    .customer-brand-logo {
        width: 96px;
        height: 96px;
        top: -50px;
    }

    .customer-brand-title {
        font-size: 1.45rem;
    }

    .customer-product-card {
        grid-template-columns: minmax(0, 1fr) 112px;
    }

    .customer-modal-product-head {
        grid-template-columns: 1fr;
    }

    .customer-modal-content .modal-header {
        padding: 0.72rem 1rem;
    }

    .customer-modal-content .modal-body {
        padding: 0.8rem 1rem;
    }

    .customer-modal-content .modal-footer {
        padding: 0.72rem 1rem;
    }

    .customer-modal-thumb-wrap {
        width: 100%;
        max-width: 170px;
        justify-self: center;
    }

    .customer-modal-copy h4 {
        font-size: 1.16rem;
    }

    .customer-modal-copy p {
        font-size: 0.92rem;
    }

    .customer-modal-copy strong {
        font-size: 1.25rem;
    }

    .customer-modal-section {
        margin-top: 0.55rem;
    }

    .customer-extra-row {
        padding: 0.38rem 0.45rem;
    }
}

.order-status-badge.is-pronto-retirada {
    color: #315c16;
    background: rgba(159, 214, 93, 0.22);
    border-color: rgba(108, 159, 54, 0.42);
}

.order-status-icon-btn.is-pronto-retirada {
    color: #406117;
    border-color: rgba(124, 165, 47, 0.45);
    background: rgba(178, 225, 95, 0.18);
}

.order-status-icon-btn.is-active.is-pronto-retirada {
    color: #ffffff;
    border-color: #668726;
    background: #668726;
    box-shadow: 0 8px 18px rgba(102, 135, 38, 0.32);
}

.tracking-body {
    margin: 0;
    min-height: 100vh;
    color: #2f2d2a;
    background:
        radial-gradient(circle at 12% 6%, rgba(255, 177, 39, 0.16), transparent 28%),
        linear-gradient(180deg, #eaf5f9 0%, #f6fbfd 42%, #eef6f8 100%);
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.tracking-app {
    width: min(100%, 540px);
    min-height: 100vh;
    margin: 0 auto;
    background: #f8fbfc;
    box-shadow: 0 18px 50px rgba(43, 66, 78, 0.14);
}

.tracking-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: 46px 1fr 74px;
    align-items: center;
    gap: 0.35rem;
    padding: 0.92rem 1rem;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(95, 115, 129, 0.16);
    backdrop-filter: blur(14px);
}

.tracking-topbar h1 {
    margin: 0;
    text-align: center;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.tracking-icon-btn,
.tracking-help-btn {
    border: 0;
    cursor: pointer;
}

.tracking-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: #4d5725;
    background: transparent;
    font-size: 1.25rem;
}

.tracking-help-btn {
    border-radius: 14px;
    padding: 0.58rem 0.7rem;
    color: #4d5725;
    background: #eef1df;
    font-weight: 800;
}

.tracking-content {
    display: grid;
    gap: 0.78rem;
    padding: 0.85rem 0.9rem 1.2rem;
}

.tracking-store-card,
.tracking-card,
.tracking-error-card {
    border: 1px solid rgba(86, 102, 48, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 36px rgba(38, 59, 70, 0.08);
}

.tracking-error-card {
    display: grid;
    gap: 0.35rem;
    padding: 1.25rem;
    text-align: center;
}

.tracking-error-card i {
    color: #ef9a00;
    font-size: 2rem;
}

.tracking-error-card strong {
    font-size: 1.02rem;
}

.tracking-error-card span {
    color: #71808d;
}

.tracking-store-card {
    display: flex;
    align-items: center;
    gap: 0.72rem;
    padding: 0.76rem;
}

.tracking-store-logo {
    width: 48px;
    height: 48px;
    overflow: hidden;
    border: 1px solid rgba(77, 87, 37, 0.22);
    border-radius: 14px;
    background: #4d5725;
    color: #fff4cf;
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    font-weight: 900;
}

.tracking-store-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tracking-store-card strong,
.tracking-store-card span {
    display: block;
}

.tracking-store-card strong {
    font-weight: 900;
    text-transform: uppercase;
}

.tracking-store-card span {
    color: #4f5d67;
    font-weight: 800;
}

.tracking-card {
    padding: 1rem;
}

.tracking-card h2 {
    margin: 0 0 0.8rem;
    color: #29323a;
    font-size: 1.05rem;
    font-weight: 900;
}

.tracking-live-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    color: #697784;
    font-size: 0.78rem;
    font-weight: 800;
}

.tracking-live-row span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.tracking-live-row i {
    color: #38a65a;
}

.tracking-current-status {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0.88rem 0 1rem;
}

.tracking-status-dot {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #2fb45d, #61c56f);
    box-shadow: 0 10px 22px rgba(55, 162, 86, 0.28);
}

.tracking-status-card[data-status="cancelado"] .tracking-status-dot {
    background: linear-gradient(135deg, #d93440, #f07272);
    box-shadow: 0 10px 22px rgba(217, 52, 64, 0.22);
}

.tracking-current-status small,
.tracking-current-status strong {
    display: block;
}

.tracking-current-status small {
    color: #7a8791;
    font-size: 0.76rem;
    font-weight: 800;
}

.tracking-current-status strong {
    color: #263038;
    font-size: 1.15rem;
    font-weight: 900;
}

.tracking-progress {
    margin-bottom: 1rem;
}

.tracking-progress-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8ec;
}

.tracking-progress-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #38a65a, #8ec84d);
    transition: width 0.45s ease, background 0.25s ease;
}

.tracking-progress-track span.is-cancelled {
    background: linear-gradient(90deg, #dd3b45, #f07878);
}

.tracking-progress-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 0.65rem;
}

.tracking-progress-step {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #97a3aa;
    background: #eef3f5;
    border: 1px solid #dde7eb;
    transition: 0.24s ease;
}

.tracking-progress-step.is-done {
    color: #2f874c;
    background: #e8f7ed;
    border-color: #bfe8ca;
}

.tracking-progress-step.is-active {
    color: #fff;
    background: #38a65a;
    border-color: #38a65a;
    transform: scale(1.08);
    box-shadow: 0 10px 22px rgba(56, 166, 90, 0.28);
}

.tracking-progress-step.is-cancelled {
    background: #dd3b45;
    border-color: #dd3b45;
    box-shadow: 0 10px 22px rgba(221, 59, 69, 0.22);
}

.tracking-status-card.has-status-change {
    animation: trackingPulse 0.9s ease;
}

@keyframes trackingPulse {
    0% {
        box-shadow: 0 0 0 rgba(56, 166, 90, 0);
    }
    38% {
        box-shadow: 0 0 0 7px rgba(56, 166, 90, 0.12);
    }
    100% {
        box-shadow: 0 14px 36px rgba(38, 59, 70, 0.08);
    }
}

.tracking-history {
    border-top: 1px solid #e8eef2;
    padding-top: 0.88rem;
}

.tracking-history-row {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    align-items: start;
    gap: 0.55rem;
    padding: 0.54rem 0;
}

.tracking-history-row > span {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #2f874c;
    background: #e8f7ed;
}

.tracking-history-row.is-latest > span {
    color: #fff;
    background: #38a65a;
}

.tracking-history-row strong,
.tracking-history-row small,
.tracking-history-row time {
    display: block;
}

.tracking-history-row strong {
    color: #303941;
    font-size: 0.92rem;
}

.tracking-history-row small,
.tracking-history-row time {
    color: #73808b;
    font-size: 0.76rem;
}

.tracking-history-row time {
    text-align: right;
    white-space: nowrap;
}

.tracking-items {
    display: grid;
    gap: 0.65rem;
}

.tracking-item {
    display: grid;
    grid-template-columns: 58px 1fr auto;
    gap: 0.68rem;
    align-items: center;
    padding: 0.68rem;
    border: 1px solid #e1eaf0;
    border-radius: 15px;
    background: #fbfdfe;
}

.tracking-item-thumb {
    width: 58px;
    height: 58px;
    overflow: hidden;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #8c9aa4;
    background: #f1f6f8;
}

.tracking-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tracking-item-main {
    min-width: 0;
}

.tracking-item-main strong {
    display: block;
    color: #302a26;
    font-size: 0.93rem;
    line-height: 1.18;
}

.tracking-item-details,
.tracking-item-note {
    display: grid;
    color: #687884;
    font-size: 0.78rem;
    margin-top: 0.2rem;
}

.tracking-item b {
    color: #2f2d2a;
    font-size: 0.94rem;
    white-space: nowrap;
}

.tracking-summary-card {
    background: #fffdf7;
    border-color: rgba(239, 158, 31, 0.28);
}

.tracking-summary-line {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.32rem 0;
    color: #594a3a;
}

.tracking-summary-line.is-hidden {
    display: none;
}

.tracking-summary-line.is-total {
    margin-top: 0.42rem;
    padding-top: 0.62rem;
    border-top: 1px dashed #e7c488;
    color: #2c2620;
    font-size: 1.12rem;
    font-weight: 900;
}

.tracking-info-grid {
    display: grid;
    gap: 0.65rem;
}

.tracking-info-grid article {
    display: grid;
    gap: 0.24rem;
    padding: 0.78rem;
    border-radius: 15px;
    background: #f5f9fb;
}

.tracking-info-grid span {
    color: #6c7a84;
    font-size: 0.78rem;
    font-weight: 800;
}

.tracking-info-grid strong {
    color: #2f383f;
    font-size: 0.95rem;
}

.tracking-pix-card {
    display: grid;
    gap: 0.65rem;
    border-color: rgba(16, 159, 141, 0.26);
    background: linear-gradient(135deg, #f0fffb 0%, #fffdf8 100%);
}

.tracking-pix-card.is-hidden {
    display: none;
}

.tracking-pix-head {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
}

.tracking-pix-head > span {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: #0f9f8d;
    flex: 0 0 40px;
}

.tracking-pix-head h2 {
    margin-bottom: 0.16rem;
}

.tracking-pix-head p,
.tracking-pix-note {
    margin: 0;
    color: #5c7178;
    line-height: 1.35;
}

.tracking-pix-card > strong {
    overflow-wrap: anywhere;
    border: 1px dashed rgba(15, 159, 141, 0.42);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    color: #174d46;
    padding: 0.72rem;
}

.tracking-pix-copy {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    background: #0f9f8d;
    font-weight: 900;
    cursor: pointer;
}

.tracking-pix-card small {
    min-height: 1rem;
    color: #667983;
    font-weight: 800;
}

.tracking-pix-card small.is-success {
    color: #238d4c;
}

.tracking-muted {
    margin: 0;
    color: #74828d;
}

.tracking-help-open {
    overflow: hidden;
}

.tracking-help-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 0.75rem 0.75rem;
    background: rgba(19, 24, 27, 0);
    backdrop-filter: blur(0);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, background 0.22s ease, backdrop-filter 0.22s ease;
}

.tracking-help-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
    background: rgba(19, 24, 27, 0.56);
    backdrop-filter: blur(4px);
}

.tracking-help-sheet {
    width: min(100%, 510px);
    border-radius: 24px 24px 18px 18px;
    background: #fff;
    padding: 0.55rem 1rem 1rem;
    box-shadow: 0 -18px 42px rgba(0, 0, 0, 0.22);
    transform: translateY(110%);
    transition: transform 0.28s cubic-bezier(0.22, 0.9, 0.31, 1);
}

.tracking-help-backdrop.is-visible .tracking-help-sheet {
    transform: translateY(0);
}

.tracking-sheet-handle {
    width: 52px;
    height: 5px;
    display: block;
    border-radius: 999px;
    margin: 0 auto 0.9rem;
    background: #d5dde2;
}

.tracking-help-sheet h2 {
    margin: 0 0 0.42rem;
    font-size: 1.2rem;
    font-weight: 900;
}

.tracking-help-sheet p {
    margin: 0 0 0.9rem;
    color: #65727d;
    line-height: 1.35;
}

.tracking-sheet-action,
.tracking-sheet-close {
    width: 100%;
    min-height: 50px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.55rem;
    font-weight: 900;
    text-decoration: none;
}

.tracking-sheet-action {
    color: #fff;
    background: #4d5725;
}

.tracking-sheet-action.is-whatsapp {
    background: #1fa855;
}

.tracking-sheet-action.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.tracking-sheet-close {
    border: 1px solid #dde6eb;
    color: #43505a;
    background: #f5f8fa;
    cursor: pointer;
}

@media (min-width: 680px) {
    .tracking-body {
        padding: 1rem 0;
    }

    .tracking-app {
        min-height: calc(100vh - 2rem);
        border-radius: 22px;
        overflow: hidden;
    }
}

@media (max-width: 390px) {
    .tracking-content {
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }

    .tracking-item {
        grid-template-columns: 52px 1fr;
    }

    .tracking-item b {
        grid-column: 2;
    }

    .tracking-history-row {
        grid-template-columns: 30px 1fr;
    }

    .tracking-history-row time {
        grid-column: 2;
        text-align: left;
    }
}

/* UX refresh - delivery customer flow */
.customer-open-row {
    gap: 0.2rem;
    padding-bottom: 0.3rem;
}

.customer-status-badge {
    padding: 0.34rem 0.8rem;
    border: 1px solid #bfdbca;
    border-radius: 999px;
    font-size: 0.94rem;
    font-weight: 800;
}

.customer-status-badge.is-open {
    color: #1f8d3d;
    background: #eaf9ef;
    border-color: #b7e4c3;
}

.customer-status-badge.is-closed {
    color: #b42318;
    background: #fff1f0;
    border-color: #f2b7b2;
}

.customer-status-subtext {
    font-size: 0.8rem;
    font-weight: 700;
    color: #725237;
}

.customer-status-subtext.is-hidden {
    display: none;
}

.customer-row-arrow {
    display: none;
}

.customer-add-btn {
    min-height: 44px;
    padding: 0.5rem 0.88rem;
    font-size: 0.9rem;
    line-height: 1;
    box-shadow: 0 8px 16px rgba(223, 122, 4, 0.26);
}

.customer-add-btn i {
    margin-right: 0.2rem;
}

.customer-bottom-btn {
    min-height: 62px;
    border-radius: 14px;
    box-shadow: 0 14px 28px rgba(91, 50, 16, 0.34);
}

.customer-checkout-btn {
    min-height: 52px;
    font-size: 1rem;
    box-shadow: 0 10px 20px rgba(91, 50, 16, 0.24);
}

.customer-flow-stepper {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.3rem;
    padding: 0.62rem 0.86rem 0.7rem;
    border-bottom: 1px solid #e8ecf1;
    background: #fff;
}

.customer-flow-stepper.is-inline {
    border: 1px solid #e7d3b1;
    border-radius: 12px;
    margin-bottom: 0.72rem;
    padding: 0.56rem;
    background: #fffdf8;
}

.customer-flow-step {
    border-radius: 999px;
    border: 1px solid #dce4ec;
    background: #f8fafc;
    color: #6d7884;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.26rem 0.2rem;
    line-height: 1.2;
}

.customer-flow-step.is-done {
    border-color: #b5e6c1;
    background: #e9f8ee;
    color: #1f8d3d;
}

.customer-flow-step.is-current {
    border-color: #f0a016;
    background: #fff3de;
    color: #6d3b0f;
}

.customer-storage-note {
    margin: 0.5rem 0 0;
    color: #197640;
    font-size: 0.82rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
}

.customer-address-selector {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.52rem;
}

.customer-address-option {
    width: 100%;
    border: 1px solid #dce4ec;
    border-radius: 12px;
    background: #f8fafc;
    color: #364152;
    padding: 0.68rem 0.7rem;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.56rem;
    text-align: left;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.customer-address-option-check {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 1.6px solid #b8c2ce;
    background: #ffffff;
    color: transparent;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.customer-address-option-check i {
    font-size: 0.8rem;
    line-height: 1;
}

.customer-address-option-copy {
    min-width: 0;
}

.customer-address-option-copy strong {
    display: block;
    font-size: 0.96rem;
    line-height: 1.2;
    color: inherit;
}

.customer-address-option.is-selected {
    border-color: #f0a016;
    background: #fff6e9;
    color: #8a5315;
}

.customer-address-option.is-selected .customer-address-option-check {
    border-color: #f0a016;
    background: #f0a016;
    color: #ffffff;
}

.customer-address-panel {
    border: 1px solid transparent;
    border-radius: 14px;
    background: #ffffff;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 0.85rem;
    pointer-events: none;
    margin-top: 0;
    transition: max-height 0.28s ease, opacity 0.2s ease, padding 0.28s ease, border-color 0.2s ease, margin-top 0.28s ease;
}

.customer-address-panel.is-open {
    max-height: 880px;
    opacity: 1;
    pointer-events: auto;
    margin-top: 0.1rem;
    overflow: visible;
}

.customer-address-panel-delivery.is-open {
    border-color: #f1d6ad;
    background: #fffdf9;
    padding-top: 0.72rem;
    padding-bottom: 0.82rem;
}

.customer-address-panel-store.is-open {
    border-color: #f1d6ad;
    background: #fffdf9;
    padding-top: 0.72rem;
    padding-bottom: 0.82rem;
}

.customer-address-panel-head {
    margin-bottom: 0.56rem;
}

.customer-address-panel-title {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    color: #4d5d6d;
    font-size: 0.9rem;
    font-weight: 800;
}

.customer-address-panel-title i {
    color: #687788;
}

#customer-address-delivery-fields {
    display: grid;
    gap: 0.72rem;
}

.customer-cep-feedback {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.78rem;
}

.customer-delivery-quote-box {
    border: 1px dashed #dfc89f;
    border-radius: 10px;
    background: #fff9ed;
    padding: 0.58rem 0.66rem;
    display: grid;
    gap: 0.26rem;
    color: #5e4b33;
    font-size: 0.84rem;
    font-weight: 700;
}

.customer-delivery-quote-box div {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
}

.customer-delivery-quote-box .bi {
    color: #8f6a3a;
}

.customer-delivery-quote-box.is-error {
    border-color: #e6b8b3;
    background: #fff3f2;
    color: #a83e36;
}

.customer-delivery-quote-box.is-error .bi {
    color: #b54840;
}

.customer-address-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px;
    gap: 0.6rem;
}

.customer-address-grid.customer-address-grid-city-state {
    grid-template-columns: minmax(0, 1fr) 100px;
}

.customer-address-store-card {
    display: grid;
    gap: 0.42rem;
}

.customer-address-store-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    color: #4d5d6d;
    font-size: 0.89rem;
    font-weight: 700;
}

.customer-address-store-card strong {
    color: #202b37;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.2;
}

.customer-address-store-card p {
    margin: 0;
    color: #5f6c79;
    font-size: 0.9rem;
    line-height: 1.36;
}

.customer-address-store-card p.is-warning {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.34rem;
    color: #8f5a14;
    background: #fff4de;
    border: 1px solid #f5d4a0;
    border-radius: 10px;
    padding: 0.56rem 0.62rem;
}

.customer-extra-copy strong {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.customer-extra-price {
    color: #1f8d3d;
    font-size: 0.84rem;
    font-weight: 800;
}

.customer-product-modal .modal-content {
    padding-bottom: 118px;
}

.customer-product-modal.show .customer-product-modal-footer {
    position: fixed;
    left: 50%;
    bottom: calc(env(safe-area-inset-bottom) + 0.35rem);
    transform: translateX(-50%);
    width: min(660px, 92vw);
    border: 1px solid #eed8b6;
    border-radius: 16px;
    background: #fffdf9;
    box-shadow: 0 -6px 20px rgba(25, 32, 46, 0.14);
    z-index: 1061;
    padding: 0.66rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.5rem;
    align-items: center;
}

.customer-modal-add-btn {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    white-space: nowrap;
}

#customer-modal-add-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

.customer-checkout-modal .modal-content {
    padding-bottom: 0;
}

.customer-checkout-header {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 0.45rem;
}

.customer-checkout-header .modal-title {
    margin: 0;
    text-align: left;
}

.customer-checkout-back-btn {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #5f3415;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.28rem;
}

.customer-checkout-back-btn:hover {
    background: #f7ead8;
}

.customer-checkout-modal .modal-body {
    padding-bottom: 86px;
}

.customer-checkout-modal.show .checkout-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #eee;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    z-index: 999;
    margin: 0;
}

.customer-checkout-fixed-total,
.total-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    color: #5b3f27;
}

.customer-checkout-fixed-total small,
.total-box span,
.total-box small {
    font-size: 12px;
    line-height: 1.1;
    font-weight: 800;
    color: #777;
}

.customer-checkout-fixed-total strong,
.total-box strong {
    font-size: 16px;
    line-height: 1.1;
    font-weight: 900;
    color: #5b3f27;
}

#checkout-finalizar-btn,
.btn-finalizar {
    height: 42px;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    background: #f59e0b;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    border: 0;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.customer-pix-label i {
    margin-right: 0.3rem;
}

.customer-toast-stack {
    position: fixed;
    top: calc(0.8rem + env(safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%);
    width: min(92vw, 460px);
    z-index: 2000;
    display: grid;
    gap: 0.5rem;
    pointer-events: none;
}

.customer-toast {
    border-radius: 12px;
    border: 1px solid #b9e7c8;
    background: #effcf3;
    color: #1f8d3d;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 12px 22px rgba(16, 24, 40, 0.14);
    padding: 0.62rem 0.74rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    animation: customerToastIn 0.24s ease;
}

.customer-toast.is-error {
    border-color: #efb8b3;
    background: #fff2f1;
    color: #b42318;
}

.customer-toast.is-leaving {
    animation: customerToastOut 0.25s ease forwards;
}

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

@keyframes customerToastOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-8px);
    }
}

/* UX refresh - tracking page */
.tracking-status-subtext {
    display: block;
    margin-top: 0.16rem;
    color: #6b7a86;
    font-size: 0.78rem;
    font-weight: 700;
}

.tracking-progress-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
    gap: 0.34rem;
    align-items: start;
}

.tracking-progress-step {
    width: 100%;
    min-width: 0;
    height: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 0.18rem;
    color: #9aa7b1;
    padding: 0.04rem 0;
    text-align: center;
}

.tracking-progress-step-label {
    display: block;
    width: 100%;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    word-break: keep-all;
}

.tracking-progress-step-dot {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid #d9e3ea;
    background: #edf2f6;
    color: #94a4af;
    font-size: 0.82rem;
    font-weight: 900;
    display: grid;
    place-items: center;
    line-height: 1;
}

.tracking-progress-step.is-done,
.tracking-progress-step.is-active {
    color: #2f874c;
}

.tracking-progress-step.is-active,
.tracking-progress-step.is-done,
.tracking-progress-step.is-cancelled {
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: none;
}

.tracking-progress-step.is-done .tracking-progress-step-dot {
    color: #ffffff;
    background: #38a65a;
    border-color: #38a65a;
}

.tracking-progress-step.is-active .tracking-progress-step-dot {
    color: #ffffff;
    background: #1f8d3d;
    border-color: #1f8d3d;
    transform: scale(1.06);
}

.tracking-progress-step.is-cancelled {
    color: #c0343d;
}

.tracking-progress-step.is-cancelled .tracking-progress-step-dot {
    color: #ffffff;
    background: #c0343d;
    border-color: #c0343d;
}

.tracking-sheet-action {
    font-size: 0.96rem;
    text-transform: none;
}

.tracking-toast-stack {
    position: fixed;
    top: calc(0.86rem + env(safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%);
    width: min(92vw, 460px);
    z-index: 2000;
    display: grid;
    gap: 0.5rem;
    pointer-events: none;
}

.tracking-toast {
    border: 1px solid #ffd78e;
    border-radius: 12px;
    background: #fff8e8;
    color: #8d5719;
    box-shadow: 0 12px 22px rgba(16, 24, 40, 0.14);
    font-size: 0.88rem;
    font-weight: 800;
    padding: 0.62rem 0.74rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    animation: trackingToastIn 0.24s ease;
}

.tracking-toast.is-leaving {
    animation: trackingToastOut 0.25s ease forwards;
}

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

@keyframes trackingToastOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-8px);
    }
}

@media (max-width: 767px) {
    .customer-product-modal .modal-dialog,
    .customer-checkout-modal .modal-dialog {
        margin: 0;
        max-width: 100vw;
        min-height: 100dvh;
    }

    .customer-product-modal .modal-content,
    .customer-checkout-modal .modal-content {
        min-height: 100dvh;
        border-radius: 0;
    }

    .customer-product-modal.show .customer-product-modal-footer,
    .customer-checkout-modal.show .checkout-footer {
        width: 100%;
        max-width: 100vw;
        left: 0;
        transform: none;
        bottom: 0;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    .customer-address-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .tracking-progress-step-label {
        font-size: 0.66rem;
    }

    .tracking-progress-step-dot {
        width: 24px;
        height: 24px;
        font-size: 0.78rem;
    }
}
