@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-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-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;
}

.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, #fff9ef 0%, #fff4e0 100%);
    color: #3f2514;
    padding-bottom: 86px;
}

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

.customer-header {
    background: #fffefb;
    border: 1px solid #efd9b2;
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(86, 48, 18, 0.12);
    padding: 0.85rem 0.85rem 0.72rem;
}

.customer-brand-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
}

.customer-brand-logo {
    width: 66px;
    height: 66px;
    border-radius: 14px;
    background: linear-gradient(145deg, #f39f0f, #df8100);
    color: #fff;
    font-size: 1.7rem;
    font-weight: 800;
    display: grid;
    place-items: center;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(89, 50, 18, 0.25);
    flex-shrink: 0;
}

.customer-brand-logo.has-logo {
    background: rgba(255, 246, 228, 0.92);
    border: 1px solid #f2d8b1;
    box-shadow: 0 8px 18px rgba(89, 50, 18, 0.14);
}

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

.customer-brand-copy {
    display: flex;
    align-items: center;
    gap: 0.72rem;
    min-width: 0;
}

.customer-brand-copy h1 {
    margin: 0;
    font-size: clamp(1.45rem, 2.4vw, 2.1rem);
    font-weight: 800;
    color: #442617;
    line-height: 1.1;
}

.customer-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.customer-status-badge,
.customer-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border-radius: 999px;
    padding: 0.28rem 0.62rem;
    font-size: 0.76rem;
    font-weight: 700;
    border: 1px solid #f0d9b4;
    background: #fffaf1;
    color: #6a482f;
    text-decoration: none;
}

.customer-status-badge i,
.customer-meta-chip i {
    font-size: 0.8rem;
}

.customer-status-badge.is-open {
    border-color: rgba(30, 157, 95, 0.34);
    background: rgba(67, 188, 122, 0.16);
    color: #1f7449;
}

.customer-status-badge.is-closed {
    border-color: rgba(190, 45, 45, 0.3);
    background: rgba(240, 112, 112, 0.16);
    color: #8c2727;
}

.customer-cart-head-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid #f0d8b2;
    background: #fffaf1;
    color: #6a472d;
    position: relative;
}

.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 #fff;
}

.customer-business-meta {
    margin-top: 0.65rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.customer-banner {
    margin-top: 0.65rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #efd7b0;
    background: #fffaf0;
}

.customer-banner-img {
    display: block;
    width: 100%;
    height: clamp(140px, 25vw, 220px);
    object-fit: cover;
}

.customer-banner-fallback {
    background: linear-gradient(120deg, rgba(239, 143, 13, 0.13), rgba(243, 195, 74, 0.2));
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.customer-banner-fallback strong {
    font-size: 1rem;
    color: #4c2d18;
}

.customer-banner-fallback span {
    font-size: 0.84rem;
    color: #724f34;
}

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

.customer-cta-row {
    margin-top: 0.62rem;
    display: flex;
    justify-content: center;
}

.customer-cta-btn {
    border: 0;
    border-radius: 999px;
    background: linear-gradient(145deg, #ffb000, #eb8600);
    color: #fff;
    font-weight: 800;
    font-size: 0.92rem;
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 10px 20px rgba(88, 50, 17, 0.22);
}

.customer-search-box {
    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 {
    margin-top: 0.55rem;
    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: repeat(2, minmax(0, 1fr));
    gap: 0.58rem;
}

.customer-product-card {
    border: 1px solid #ecd7b2;
    background: #fffefb;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(77, 44, 17, 0.08);
    display: flex;
    flex-direction: column;
}

.customer-product-thumb-wrap {
    aspect-ratio: 1 / 1;
    background: #fff;
    display: grid;
    place-items: center;
}

.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.52rem 0.56rem 0.6rem;
    display: flex;
    flex-direction: column;
    min-height: 150px;
}

.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: 1rem;
    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: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.1rem;
}

.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: 1rem;
    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.8rem;
    padding: 0.34rem 0.62rem;
}

.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-cart-canvas {
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
    width: min(500px, 100vw) !important;
}

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

.customer-cart-item {
    border: 1px solid #ecd7b3;
    border-radius: 12px;
    background: #fffefb;
    padding: 0.52rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.56rem;
}

.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-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(760px, 96vw);
}

.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-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;
    }

    .customer-brand-copy {
        gap: 0.82rem;
    }

    .customer-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
    }
}

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

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

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

    .customer-brand-copy {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .customer-status-row {
        width: 100%;
    }

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

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