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

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

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

.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: 1050;
  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-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%;
  }
}

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