:root {
  --brand-bg: #f4efe6;
  --brand-surface: rgba(255, 252, 247, 0.88);
  --brand-text: #2f241d;
  --brand-muted: #77665d;
  --brand-border: rgba(85, 61, 46, 0.12);
  --brand-shadow: 0 18px 40px rgba(63, 43, 29, 0.08);
  --brand-shadow-soft: 0 10px 24px rgba(63, 43, 29, 0.06);
  --brand-accent: #b85c38;
  --brand-accent-strong: #8f3e1f;
  --brand-primary: #6c4c3c;
  --brand-success: #21835c;
  --brand-danger: #bb3e3e;
  --brand-info: #3f7ea8;
  --brand-radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--brand-text);
  background:
    radial-gradient(circle at top left, rgba(255, 224, 170, 0.38), transparent 34%),
    radial-gradient(circle at top right, rgba(184, 92, 56, 0.15), transparent 28%),
    linear-gradient(180deg, #f8f2e9 0%, var(--brand-bg) 100%);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
}

a {
  color: var(--brand-accent-strong);
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover,
a:focus {
  color: var(--brand-accent);
  text-decoration: none;
}

.hero-banner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(250px, 36vw, 340px);
  overflow: hidden;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  border-bottom-left-radius: 32px;
  border-bottom-right-radius: 32px;
  box-shadow: var(--brand-shadow);
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(38, 24, 17, 0.74), rgba(38, 24, 17, 0.2)),
    linear-gradient(180deg, rgba(184, 92, 56, 0.1), rgba(19, 14, 12, 0.52));
}

.hero-banner>.container {
  position: relative;
  z-index: 1;
  padding-top: 26px;
  padding-bottom: 26px;
}

.hero-logo {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.12);
}

.hero-copy {
  padding-top: 8px;
}

.cardapi-hero-name,
.cardapi-hero-subtitle,
.cardapi-hero-meta {
  color: #ffffff !important;
  text-shadow: 2px 2px rgba(0, 0, 0, 0.72);
}

.cardapi-hero-subtitle {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cardapi-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cardapi-status-badge.is-open {
  background: linear-gradient(135deg, rgba(33, 131, 92, 0.96), rgba(20, 99, 68, 0.96));
  color: #ffffff !important;
}

.cardapi-status-badge.is-closed {
  background: linear-gradient(135deg, rgba(187, 62, 62, 0.96), rgba(143, 28, 28, 0.96));
  color: #ffffff !important;
}

.cardapi-hero-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.cardapi-hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  color: #ffffff !important;
  text-shadow: 2px 2px rgba(0, 0, 0, 0.52);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cardapi-hero-action:hover,
.cardapi-hero-action:focus {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.12));
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
  color: #ffffff !important;
}

.cardapi-hero-action i {
  font-size: 18px;
}

.cardapi-hero-action.whatsapp {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.34), rgba(13, 153, 72, 0.24));
  border-color: rgba(143, 255, 189, 0.52);
}

.slim-navbar {
  padding: 12px 0;
}

.slim-navbar:not(.hero-banner) {
  position: relative;
  margin: -24px auto 20px;
  width: min(1140px, calc(100% - 24px));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(53, 37, 28, 0.92), rgba(102, 64, 46, 0.92));
  box-shadow: var(--brand-shadow-soft);
  backdrop-filter: blur(14px);
  z-index: 10;
}

.slim-navbar .nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.slim-navbar .nav-item {
  list-style: none;
}

.slim-navbar .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
}

.slim-navbar .nav-link:hover,
.slim-navbar .nav-link:focus {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.cardapi-sticky-nav {
  z-index: 1040;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
}

.cardapi-category-sidebar {
  position: sticky;
  top: 94px;
  z-index: 1020;
  border-radius: 18px;
  box-shadow: var(--brand-shadow-soft);
  user-select: none;
  -webkit-user-select: none;
}

.cardapi-category-sidebar .media {
  padding: 5px;
  border-radius: 10px;
  transition: background-color .18s ease, box-shadow .18s ease;
}

.cardapi-category-sidebar .media.is-active {
  background: rgba(121, 85, 53, .10);
  box-shadow: inset 3px 0 0 var(--brand-primary);
}

.cardapi-category-sidebar .media.is-active a,
.cardapi-category-sidebar .media.is-active .cardapi-category-link {
  color: #392016 !important;
}

.cardapi-category-sidebar .media-body>.cardapi-category-link {
  display: inline-flex;
  width: 100%;
  padding: 5px 8px;
  border-radius: 9px;
  color: #1f2937 !important;
  transition: background-color .18s ease, color .18s ease;
}

.cardapi-category-mobile {
  display: none;
}

.slim-mainpanel .col-md-6>.card.card-people-list[id] {
  scroll-margin-top: 100px;
}

.cardapi-mesa-nav .nav {
  justify-content: center;
}

.cardapi-mesa-nav .nav-item {
  flex: 0 0 auto;
}

.cardapi-mesa-nav .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-right-width: 1px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  color: #fff;
  font-weight: 700;
}

.cardapi-mesa-nav .nav-link:hover,
.cardapi-mesa-nav .nav-link:focus {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.cardapi-mesa-nav .nav-link span:not(.square-8) {
  display: inline;
}

.cardapi-mesa-nav .nav-link .fa,
.cardapi-mesa-nav .nav-link .icon {
  color: #fff;
}

.cardapi-mesa-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.cardapi-order-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 15px;
}

.cardapi-order-choice .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  flex: 1 1 220px;
  white-space: normal;
  text-align: center;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: none;
}

.cardapi-order-choice .btn i {
  width: 18px;
  text-align: center;
  font-size: 16px;
}

.slim-mainpanel {
  padding: 0 0 40px;
}

.card,
.section-wrapper {
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius);
  background: var(--brand-surface);
  box-shadow: var(--brand-shadow-soft);
  overflow: hidden;
}

.card-header,
.modal-header {
  border-bottom-color: var(--brand-border);
  background: rgba(255, 247, 237, 0.78);
}

.card-info {
  border-color: rgba(63, 126, 168, 0.18);
}

.slim-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--brand-accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.media-list .media+.media {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(85, 61, 46, 0.12);
}

.media {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.media-body {
  flex: 1 1 auto;
  min-width: 0;
}

.accordion-one .card {
  border-radius: 18px;
}

.accordion-one .card-header a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-text);
  font-weight: 700;
}

.modal-content {
  border: 1px solid var(--brand-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(35, 22, 15, 0.22);
}

.modal-title {
  color: var(--brand-accent-strong);
  font-weight: 800;
}

#visulPedidoModal .modal-dialog {
  max-width: 520px;
}

#visulPedidoModal .modal-body {
  padding: 18px;
}

#visulPedidoModal .modal-body>center {
  display: block;
  margin-bottom: 12px !important;
  text-align: center;
}

/* Modal de produto: cabeçalho e ações sempre visíveis; apenas os detalhes rolam. */
#visulUsuarioModal {
  padding: 12px !important;
}

#visulUsuarioModal .modal-dialog {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 560px;
  min-height: calc(100dvh - 24px);
  margin: 0 auto;
}

#visulUsuarioModal .modal-content {
  width: 100%;
  min-height: 420px;
  max-height: 90dvh;
  height: 90dvh;
  display: flex;
  flex-direction: column;
  resize: vertical;
  overflow: hidden;
}

#visulUsuarioModal .modal-header {
  flex: 0 0 auto;
}

#visulUsuarioModal .modal-body {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

#visul_usuario,
.cardapi-product-order-form {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
}

.cardapi-product-modal-scroll {
  flex: 1 1 auto;
  min-height: 0;
  padding: 16px 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cardapi-product-modal-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.cardapi-product-modal-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 12px;
  flex: 0 0 auto;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--brand-border);
  background: #fff;
  box-shadow: 0 -8px 20px rgba(35, 22, 15, 0.08);
}

.cardapi-product-modal-action .col-6 {
  width: auto;
  max-width: none;
  padding: 0;
}

.cardapi-product-modal-action .btn {
  min-height: 44px;
  white-space: nowrap;
}

.form-control,
.custom-select {
  min-height: 44px;
  border: 1px solid rgba(121, 96, 81, 0.22);
  border-radius: 14px;
  box-shadow: none;
}

.form-control:focus,
.custom-select:focus {
  border-color: rgba(184, 92, 56, 0.52);
  box-shadow: 0 0 0 0.2rem rgba(184, 92, 56, 0.12);
}

.form-control-label {
  color: var(--brand-text);
  font-weight: 700;
}

.btn {
  border-radius: 14px;
  font-weight: 700;
}

.btn-sm,
.btn-oblong {
  border-radius: 999px;
}

.btn-success {
  background: linear-gradient(135deg, #289166, #1f7755);
  border-color: #1f7755;
}

.btn-primary,
.btn-info {
  background: linear-gradient(135deg, #c96a42, #ad4f2d);
  border-color: #ad4f2d;
}

.btn-danger {
  background: linear-gradient(135deg, #d65757, #bb3e3e);
  border-color: #bb3e3e;
}

.btn-secondary,
.btn-default {
  background: #f4ece3;
  border-color: rgba(121, 96, 81, 0.18);
  color: var(--brand-text);
}

.alert {
  border-radius: 18px;
}

.alert-warning {
  background: #fff4dc;
  border-color: #f0ddb0;
  color: #7d5b14;
}

.alert-success {
  background: #eaf8f1;
  border-color: #cbe7d8;
  color: #1f6b4c;
}

.alert-info,
.alert-primary {
  background: #edf6fb;
  border-color: #d2e5f1;
  color: #2a5f7f;
}

.img-thumbnail {
  border-radius: 18px;
  border: 1px solid rgba(92, 66, 50, 0.12);
  background: #fff;
  padding: 4px;
}

.cardapi-product-image {
  box-sizing: border-box;
  display: block;
  width: 65px !important;
  height: 65px !important;
  padding: 0;
  border-radius: 12px;
  object-fit: contain;
}

.cardapi-product-price {
  color: var(--brand-accent-strong);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: .01em;
  text-align: right;
}

.cardapi-history-order {
  padding: 10px 0;
  border-bottom: 1px dashed rgba(92, 66, 50, 0.16);
}

.cardapi-history-order:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.cardapi-repeat-order {
  border-color: var(--brand-accent-strong);
  border-radius: 999px;
  color: var(--brand-accent-strong);
  font-weight: 800;
  line-height: 1.2;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.cardapi-repeat-order:hover,
.cardapi-repeat-order:focus {
  border-color: var(--brand-accent-strong);
  background: var(--brand-accent-strong);
  color: #fff;
  box-shadow: 0 6px 14px rgba(143, 62, 31, .22);
}

.cardapi-repeat-order:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(184, 92, 56, .25), 0 6px 14px rgba(143, 62, 31, .22);
}

@media (min-width: 768px) {
  .cardapi-order-history-card {
    position: sticky;
    top: 94px;
    z-index: 1020;
  }
}

.rounded-20 {
  border-radius: 20px !important;
}

.bd {
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

.bd-3 {
  border-width: 3px !important;
}

.number-spinner .btn {
  min-width: 42px;
}

.number-spinner {
  display: flex;
  align-items: stretch;
}

.number-spinner .form-control {
  border-radius: 0;
}

.input-group-btn {
  display: flex;
  align-items: stretch;
}

.input-group-btn>.btn {
  border-radius: 0;
}

.number-spinner .input-group-btn:first-child>.btn {
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}

.number-spinner .input-group-btn:last-child>.btn {
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
}

.number-spinner .input-group-btn:first-child+.form-control {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.number-spinner .form-control+.input-group-btn>.btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.rdiobox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(121, 96, 81, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
}

.rdiobox input {
  margin: 0;
}

.cardapi-choice-list {
  display: grid;
  gap: 10px;
}

.cardapi-choice-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  border-bottom: 2.5px solid rgba(121, 96, 81, 0.10);
}

.cardapi-choice-row:hover {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(121, 96, 81, 0.10);
}

.cardapi-choice-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cardapi-choice-control input,
.cardapi-choice-row input {
  margin: 0;
}

.cardapi-choice-row span:not(.cardapi-choice-control):not(.cardapi-choice-text) {
  min-width: 0;
}

.cardapi-choice-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.cardapi-choice-label {
  color: var(--brand-text);
  font-size: 15px;
  line-height: 1.4;
}

.cardapi-choice-description {
  color: #ad7d2d;
  font-size: 12px;
  line-height: 1.4;
}

.cardapi-choice-price {
  color: var(--brand-text);
  font-size: 14px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
  justify-self: end;
}

.cardapi-choice-row-observation {
  grid-template-columns: auto 1fr;
  margin-bottom: 10px;
}

.cardapi-choice-row-observation span {
  font-size: 14px;
}

.cardapi-choice-row-observation span::before,
.cardapi-choice-row-observation span::after {
  display: none !important;
}

.select2-container {
  width: 100% !important;
}

.select2-container--default .select2-selection--single {
  min-height: 44px;
  border: 1px solid rgba(121, 96, 81, 0.22);
  border-radius: 14px;
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--brand-text);
  line-height: 24px;
  padding-left: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 42px;
}

.select2-dropdown {
  border: 1px solid rgba(121, 96, 81, 0.18);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--brand-shadow-soft);
}

.pagtoKtech-msg {
  display: block;
  margin-top: 6px;
  color: var(--brand-muted);
}

.slim-footer {
  margin: 24px auto 20px;
  width: min(1140px, calc(100% - 24px));
  border-radius: 24px;
  box-shadow: var(--brand-shadow-soft);
  overflow: hidden;
}

.footer-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 8px 0;
}

.footer-copy,
.linkCadastro {
  color: #fff;
}

.footer-copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.linkCadastro {
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
}

a[href="#top"] {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c96a42, #ad4f2d);
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(173, 79, 45, 0.28);
  z-index: 1049;
  text-align: center;
  line-height: 46px;
}

.tx-8 {
  font-size: 8px !important;
}

.tx-9 {
  font-size: 9px !important;
}

.tx-11 {
  font-size: 11px !important;
}

.tx-12 {
  font-size: 12px !important;
}

.tx-13 {
  font-size: 13px !important;
}

.tx-14 {
  font-size: 14px !important;
}

.tx-15 {
  font-size: 15px !important;
}

.tx-16 {
  font-size: 16px !important;
}

.tx-17 {
  font-size: 17px !important;
}

.tx-18 {
  font-size: 18px !important;
}

.tx-20 {
  font-size: 20px !important;
}

.tx-30 {
  font-size: 30px !important;
}

.tx-center {
  text-align: center !important;
}

.tx-danger {
  color: var(--brand-danger) !important;
}

.tx-success {
  color: var(--brand-success) !important;
}

.tx-info {
  color: var(--brand-info) !important;
}

.tx-gray-800,
.tx-inverse {
  color: var(--brand-text) !important;
}

.mg-b-5 {
  margin-bottom: 5px !important;
}

.mg-b-10 {
  margin-bottom: 10px !important;
}

.mg-b-15 {
  margin-bottom: 15px !important;
}

.mg-b-20 {
  margin-bottom: 20px !important;
}

.mg-t-5 {
  margin-top: 5px !important;
}

.mg-t-10 {
  margin-top: 10px !important;
}

.mg-t-20 {
  margin-top: 20px !important;
}

.mg-l-5 {
  margin-left: 5px !important;
}

.mg-l-10 {
  margin-left: 10px !important;
}

.mg-r-5 {
  margin-right: 5px !important;
}

.mg-r-10 {
  margin-right: 10px !important;
}

.pd-5 {
  padding: 5px !important;
}

.pd-15 {
  padding: 15px !important;
}

.transition {
  transition: all 0.2s ease;
}

@media (max-width: 991.98px) {
  .slim-navbar:not(.hero-banner) {
    margin-top: 12px;
  }
}

@media (max-width: 767.98px) {
  .hero-banner {
    min-height: 264px;
    border-bottom-left-radius: 26px;
    border-bottom-right-radius: 26px;
  }

  .hero-banner>.container {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .hero-logo {
    width: 132px;
    height: 132px;
  }

  .hero-copy {
    padding-top: 0;
  }

  .mobile-hide-hero-text {
    display: none !important;
  }

  .slim-navbar .nav {
    justify-content: center;
  }

  .cardapi-sticky-nav .nav {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 4px;
    overflow: visible;
  }

  .cardapi-sticky-nav .nav-item {
    flex: 0 0 auto;
  }

  .cardapi-sticky-nav .nav-link {
    padding: 9px 11px;
    white-space: nowrap;
  }

  .cardapi-sticky-nav .cardapi-nav-label {
    margin-left: 0 !important;
  }

  .cardapi-history-nav-link {
    background: rgba(255, 255, 255, 0.1);
  }

  .cardapi-category-sidebar {
    display: none !important;
  }

  .cardapi-category-mobile {
    position: sticky;
    top: var(--cardapi-sticky-nav-height, 58px);
    z-index: 1030;
    display: flex;
    gap: 8px;
    width: 100%;
    margin: 0 0 14px;
    padding: 9px 12px;
    overflow-x: auto;
    overflow-y: hidden;
    border-top: 1px solid rgba(73, 45, 30, .12);
    border-bottom: 1px solid rgba(73, 45, 30, .15);
    background: rgba(255, 250, 245, .97);
    box-shadow: 0 5px 14px rgba(48, 31, 20, .14);
    scrollbar-width: none;
    scroll-behavior: auto;
    user-select: none;
    -webkit-user-select: none;
  }

  .cardapi-category-mobile::-webkit-scrollbar {
    display: none;
  }

  .cardapi-category-mobile__link {
    flex: 0 0 auto;
    padding: 9px 13px;
    border: 1px solid rgba(121, 85, 53, .22);
    border-radius: 11px;
    color: #392016;
    background: #fffaf5;
    font-weight: 600;
    white-space: nowrap;
  }

  .cardapi-category-mobile__link.is-active {
    border-color: var(--brand-primary);
    color: #ffffff;
    background: var(--brand-primary);
  }

  .slim-mainpanel .col-md-6>.card.card-people-list[id] {
    scroll-margin-top: 132px;
  }

  .cardapi-status-badge {
    padding: 9px 14px;
    font-size: 12px;
  }

  .cardapi-hero-actions {
    gap: 10px;
  }

  .cardapi-hero-action {
    width: 44px;
    height: 44px;
  }

  .cardapi-hero-action i {
    font-size: 16px;
  }

  .cardapi-mesa-nav .nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cardapi-mesa-nav .nav-item,
  .cardapi-mesa-nav .nav-link {
    width: 100%;
  }

  #visulPedidoModal {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  #visulPedidoModal .modal-dialog {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
    margin: 0.5rem auto;
    max-width: 420px;
  }

  #visulPedidoModal .modal-content {
    width: 100%;
    border-radius: 22px;
  }

  #visulPedidoModal .modal-body {
    padding: 16px 14px 18px;
  }

  #visulPedidoModal .cardapi-order-choice {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    justify-items: stretch;
  }

  #visulPedidoModal .cardapi-order-choice .btn {
    min-height: 52px;
    font-size: 15px;
  }

  #visulPedidoModal .cardapi-order-summary {
    margin-top: 4px;
  }

  #visulUsuarioModal {
    padding: 8px !important;
  }

  #visulUsuarioModal .modal-dialog {
    min-height: 90dvh;
  }

  #visulUsuarioModal .modal-content {
    min-height: min(420px, 90dvh);
    max-height: 90dvh;
    height: 90dvh;
    border-radius: 20px;
    resize: none;
  }

  .cardapi-product-modal-scroll {
    padding: 14px;
  }

  .cardapi-product-modal-action {
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  }

  .cardapi-product-modal-action .btn {
    padding-right: 10px;
    padding-left: 10px;
    font-size: 14px;
  }
}

@media (max-width: 380px) {
  .cardapi-sticky-nav .nav {
    justify-content: space-between;
  }

  .cardapi-sticky-nav .nav-link {
    justify-content: center;
    min-width: 44px;
    padding: 10px;
  }

  .cardapi-sticky-nav .cardapi-nav-label,
  .cardapi-sticky-nav .cardapi-order-badge {
    display: none;
  }
}

@media (max-width: 1024px) {
  .cardapi-order-choice {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cardapi-order-choice a,
  .cardapi-order-choice .btn {
    width: 100%;
  }

}

/* Edição de pedido no PDV: composição visual alinhada ao Basecard. */
.cardapi-pdv-edit {
  background: #fff8f8;
}

.cardapi-pdv-edit .cardapi-pdv-edit-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0 14px;
  padding: 14px 16px;
  border: 1px solid #f4caca;
  border-radius: 14px;
  color: #7e2020;
  background: #fff0f0;
  box-shadow: 0 8px 18px rgba(114, 30, 30, .07);
}

.cardapi-pdv-edit .cardapi-pdv-edit-grid {
  align-items: flex-start;
}

.cardapi-pdv-edit .cardapi-pdv-category-card,
.cardapi-pdv-edit .cardapi-pdv-product-section,
.cardapi-pdv-edit .cardapi-pdv-order-card {
  overflow: hidden;
  border: 1px solid #efdede;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(76, 25, 25, .08);
}

.cardapi-pdv-edit .cardapi-pdv-category-card .slim-card-title,
.cardapi-pdv-edit .cardapi-pdv-product-section .slim-card-title,
.cardapi-pdv-edit .cardapi-pdv-order-card .slim-card-title {
  margin: -15px -15px 12px;
  padding: 13px 15px;
  border-bottom: 1px solid #f2dddd;
  color: #671414;
  background: #fff7f7;
  font-size: 12px;
  letter-spacing: .06em;
}

.cardapi-pdv-edit .cardapi-pdv-category-sidebar {
  position: sticky;
  top: 94px;
}

.cardapi-pdv-edit .cardapi-pdv-category-row {
  align-items: center;
  margin: 0;
  padding: 8px;
  border-radius: 10px;
  transition: background .18s ease, transform .18s ease;
}

.cardapi-pdv-edit .cardapi-pdv-category-row:hover {
  background: #fff4f4;
  transform: translateX(2px);
}

.cardapi-pdv-edit .cardapi-pdv-category-row img {
  object-fit: cover;
  border: 2px solid #f4dada;
}

.cardapi-pdv-edit .cardapi-pdv-category-row a {
  color: #4a2525 !important;
  font-weight: 600;
}

.cardapi-pdv-edit .cardapi-pdv-product-section {
  scroll-margin-top: 105px;
}

.cardapi-pdv-edit .cardapi-pdv-product-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 11px 0;
  border-bottom: 1px solid #f5e6e6;
}

.cardapi-pdv-edit .cardapi-pdv-product-row:last-child {
  border-bottom: 0;
}

.cardapi-pdv-edit .cardapi-pdv-product-row .img-thumbnail {
  width: 82px !important;
  height: 68px !important;
  object-fit: cover;
  border: 1px solid #f0d9d9;
  border-radius: 10px;
}

.cardapi-pdv-edit .cardapi-pdv-product-row p {
  margin: 4px 0 0;
  color: #765b5b;
}

.cardapi-pdv-edit .cardapi-pdv-product-row .btn {
  min-height: 40px;
  border-radius: 9px;
  white-space: nowrap;
}

.cardapi-pdv-edit .cardapi-pdv-order-sidebar {
  position: sticky;
  top: 94px;
}

.cardapi-pdv-edit .cardapi-pdv-order-card .media-list > div {
  padding: 3px 0;
}

.cardapi-pdv-edit .cardapi-pdv-order-card hr {
  margin: 12px 0;
  border-top-color: #f1dfdf;
}

.cardapi-pdv-edit .cardapi-pdv-order-card .cardapi-order-choice {
  display: grid;
  gap: 9px;
}

.cardapi-pdv-edit .cardapi-pdv-order-card .cardapi-order-choice a,
.cardapi-pdv-edit .cardapi-pdv-order-card .cardapi-order-choice .btn {
  width: 100%;
}

.cardapi-pdv-edit .cardapi-pdv-order-card .cardapi-pdv-finalize-btn {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 13px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  box-shadow: 0 5px 12px rgba(71, 20, 20, .12);
}

.cardapi-pdv-edit .cardapi-pdv-order-card .cardapi-pdv-finalize-btn span {
  text-align: left;
}

.cardapi-pdv-edit .cardapi-pdv-order-card .cardapi-pdv-finalize-btn i:last-child {
  text-align: right;
}

@media (max-width: 991.98px) {
  .cardapi-pdv-edit .cardapi-category-mobile {
    position: sticky;
    top: var(--cardapi-sticky-nav-height, 58px);
    z-index: 1030;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin: 0 -15px 14px;
    padding: 9px 15px;
    border-bottom: 1px solid #f1dede;
    background: rgba(255, 250, 250, .97);
    box-shadow: 0 6px 14px rgba(76, 25, 25, .07);
    scrollbar-width: none;
  }

  .cardapi-pdv-edit .cardapi-category-mobile::-webkit-scrollbar {
    display: none;
  }

  .cardapi-pdv-edit .cardapi-category-mobile__link {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid #ebcccc;
    border-radius: 999px;
    color: #6d2525;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
  }

  .cardapi-pdv-edit .cardapi-pdv-product-row {
    grid-template-columns: 76px minmax(0, 1fr) auto;
  }
}

@media (max-width: 575.98px) {
  .cardapi-pdv-edit .cardapi-pdv-edit-alert {
    margin-top: 14px;
    font-size: 14px;
  }

  .cardapi-pdv-edit .cardapi-pdv-product-section {
    border-radius: 13px;
  }

  .cardapi-pdv-edit .cardapi-pdv-product-row {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 10px;
  }

  .cardapi-pdv-edit .cardapi-pdv-product-row .img-thumbnail {
    width: 66px !important;
    height: 60px !important;
  }

  .cardapi-pdv-edit .cardapi-pdv-product-row > div:last-child {
    grid-column: 2;
  }
}
