:root {
  --ux-primary: #141e30;
  --ux-primary-strong: #1f2d45;
  --ux-accent: #23bf08;
  --ux-bg: #f5f7fb;
  --ux-card: #ffffff;
  --ux-border: #e7ecf3;
  --ux-text: #1f2430;
  --ux-muted: #6c7892;
  --ux-shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
  --ux-radius-lg: 18px;
  --ux-radius-md: 12px;
}

html,
body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  background: var(--ux-bg);
  color: var(--ux-text);
}

.slim-mainpanel {
  padding-bottom: 90px;
}

.app-hero {
  position: relative;
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
  overflow: hidden;
  margin-bottom: 14px;
  margin-top: 0 !important;
  border-bottom: 0;
}

.app-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(9, 14, 24, 0.75) 0%, rgba(15, 23, 42, 0.38) 60%, rgba(20, 30, 48, 0.85) 100%);
  z-index: 0;
}

.app-hero .container,
.app-hero .row,
.app-hero .col-md-4,
.app-hero .col-md-8 {
  position: relative;
  z-index: 1;
}

.store-identity {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.store-logo {
  width: 132px;
  height: 132px;
  border-radius: 24px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.store-title {
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.status-pill {
  border-radius: 999px;
  padding: 0.38rem 0.85rem;
  font-weight: 700;
  border: 0;
}

.status-pill.btn-success {
  background: linear-gradient(45deg, #1fa84f, #23bf08);
}

.status-pill.btn-danger {
  background: linear-gradient(45deg, #ce2c42, #ff5e6b);
}

.quick-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0.7rem 0;
}

.quick-actions a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ux-primary);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.quick-actions a:hover {
  transform: translateY(-2px);
}

.store-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.highlight-pill {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.84rem;
}

.safe-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.45rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.72rem;
}

.safe-link img {
  width: 14px;
  height: 14px;
}

.fixed-menu {
  position: sticky !important;
  top: 8px !important;
  z-index: 1020 !important;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--ux-border);
  box-shadow: var(--ux-shadow);
  border-radius: 16px;
  padding: 0.6rem;
  backdrop-filter: blur(6px);
}

.fixed-menu.is-pinned {
  position: fixed !important;
  left: 0;
  right: 0;
  top: 8px !important;
  margin: 0 auto;
  width: min(100%, 1320px);
  z-index: 1020 !important;
}

.fixed-menu-pin-ghost {
  display: none;
}

.search-toolbar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.search-toolbar input {
  border-radius: 10px;
  border: 1px solid #d7deea;
  padding: 0.62rem 0.74rem;
  min-width: 0;
}

.search-toolbar .btn {
  border-radius: 10px;
  font-weight: 600;
}

.menu-container {
  border-top: 1px dashed #d9e1ec;
  padding-top: 0.5rem;
}

.container-fixed-menu {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
  white-space: nowrap;
  scroll-snap-type: x proximity;
}

.container-fixed-menu a {
  scroll-snap-align: center;
}

.category-pill,
.fixed-menu a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  color: #28354d;
  font-weight: 600;
  font-size: 0.84rem;
  transition: all 0.2s ease;
}

.fixed-menu a:hover,
.fixed-menu a.active {
  background: #eef4ff;
  border-color: #ccddff;
  color: #0c4ea4;
}

.category-pill img {
  width: 26px;
  height: 26px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid #d7deea;
}

.main-banner {
  border-radius: 16px;
  box-shadow: var(--ux-shadow);
  margin-top: 10px;
}

.menu-category-card {
  border: 1px solid var(--ux-border);
  border-radius: var(--ux-radius-lg);
  box-shadow: var(--ux-shadow);
  overflow: hidden;
}

.menu-category-card .card-header {
  background: linear-gradient(45deg, var(--ux-primary), #223653);
  color: #fff;
  border-bottom: 0;
  font-size: 0.96rem;
  letter-spacing: 0.2px;
  padding: 0.85rem 1rem;
}

.menu-category-card .media {
  border-radius: 14px;
  border: 1px solid #ecf0f6;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  align-items: flex-start;
}

.menu-category-card .media:last-child {
  margin-bottom: 0;
}

.menu-category-card .media:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.08);
}

.menu-category-card .media.mark {
  border-color: #9dc2ff;
  background: #f2f7ff;
}

/* OlaClick inspired products view */
.home-shell {
  padding-top: 0.3rem;
}

.app-hero {
  margin-bottom: 8px;
  padding-top: 112px;
  overflow: visible;
  background-position: top center !important;
  background-repeat: no-repeat !important;
  background-size: 100% 210px !important;
}

.app-hero::before {
  inset: auto;
  top: 0;
  left: 0;
  right: 0;
  height: 210px;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.34) 0%, rgba(8, 12, 20, 0.12) 48%, rgba(8, 12, 20, 0.02) 100%);
}

.store-profile-card {
  margin-top: 0;
  background: #efefef;
  border-radius: 20px;
  padding: 0.85rem 0.2rem 1rem;
  box-shadow: 0 6px 22px rgba(17, 24, 39, 0.16);
}

.store-shortcuts {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.store-shortcuts a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: #1f2430 !important;
  text-decoration: none;
}

.mobile-hero-status,
.mobile-logo-wrap,
.mobile-delivery-line,
.mobile-info-btn,
.mobile-extra-info {
  display: none;
}

.store-identity {
  color: #111827;
  text-shadow: none;
}

.store-title {
  color: #090d14;
}

.highlight-pill {
  background: #ffffff;
  border: 1px solid #d7deea;
  color: #202938;
}

.safe-link {
  color: #3d4758;
}

.catalog-tools {
  display: flex !important;
  align-items: center;
  gap: 0.55rem;
  visibility: visible !important;
  opacity: 1 !important;
}

.catalog-tool-btn {
  display: inline-flex !important;
  width: 42px;
  height: 42px;
  border: 1px solid #cfd6e2;
  border-radius: 10px;
  background: #fff;
  color: #1f2430;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.catalog-tools.fallback-tools {
  margin-bottom: 0.55rem;
}

.catalog-tool-btn:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(20, 30, 48, 0.14);
}

.search-toolbar {
  display: none;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  margin-bottom: 0;
}

.search-toolbar.is-open {
  display: flex;
}

.search-toolbar .search-icon {
  width: 42px;
  height: 42px;
  border: 1px solid #cfd6e2;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1f2430;
  background: #fff;
}

.search-toolbar input {
  flex: 1;
  height: 42px;
  border-radius: 10px;
  border: 2px solid #1e2732;
  padding: 0.4rem 0.7rem;
}

.search-toolbar input:focus {
  outline: none;
  box-shadow: none;
  border-color: #1e2732;
}

.search-toolbar .btn {
  height: 42px;
  border-radius: 8px;
  font-weight: 700;
  min-width: 92px;
}

.catalog-tool-btn.is-active {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

#catalogMenuShell.tabs-collapsed .container-fixed-menu {
  flex-wrap: wrap;
  white-space: normal;
  overflow-x: visible;
  row-gap: 0.4rem;
  padding-bottom: 0.1rem;
}

#catalogMenuShell.tabs-collapsed .category-pill {
  white-space: nowrap;
}

.menu-container {
  display: block !important;
  border-top: 0;
  padding-top: 0.2rem;
}

.container-fixed-menu {
  gap: 0.7rem;
  align-items: center;
  display: flex !important;
  flex-wrap: nowrap;
  overflow-y: hidden;
}

.category-pill {
  padding: 0.45rem 0.2rem 0.55rem;
  border-radius: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  font-size: 1.02rem;
  font-weight: 700;
}

.category-pill:hover,
.category-pill.active {
  background: transparent;
  color: #111827;
  border-bottom-color: #111827;
}

.category-count {
  display: none;
}

.search-toolbar {
  margin-top: 0.55rem;
}

.modal-open .fixed-menu {
  z-index: 1010 !important;
}

.modal-open .fixed-menu.is-pinned {
  position: static !important;
  width: 100%;
}

.modal-open #catalogMenuShell {
  pointer-events: none;
}

.modal-open .modal-backdrop {
  z-index: 3990 !important;
}

.modal-open .modal {
  z-index: 4000 !important;
}

body.modal-single-scroll {
  overflow: hidden !important;
  height: 100% !important;
}

html.modal-open,
body.modal-open {
  overflow: hidden !important;
  height: 100% !important;
}

body.modal-single-scroll .modal {
  overflow-y: auto !important;
}

body.modal-single-scroll .modal-dialog {
  margin: 1rem auto !important;
}

body.modal-single-scroll .modal-content {
  max-height: none !important;
}

body.modal-single-scroll .modal-body {
  overflow-y: visible !important;
}

#visulUsuarioModal .modal-dialog {
  margin: 0.65rem auto !important;
}

#visulUsuarioModal .modal-content {
  max-height: calc(100vh - 1.3rem) !important;
  overflow: hidden !important;
}

#visulUsuarioModal .modal-body {
  max-height: calc(100vh - 130px) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 991.98px) {
  #visulUsuarioModal {
    padding: 0 !important;
    overflow: hidden !important;
  }

  #visulUsuarioModal::before {
    display: none !important;
  }

  #visulUsuarioModal .modal-dialog {
    margin: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    display: flex !important;
    align-items: stretch !important;
  }

  #visulUsuarioModal .modal-content {
    width: 100% !important;
    min-height: 100dvh !important;
    border-radius: 0 !important;
    overflow: hidden !important;
  }

  #visulUsuarioModal .modal-header {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8f9fa;
  }

  #visulUsuarioModal .modal-body {
    max-height: none !important;
    height: calc(100dvh - 72px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  body.modal-single-scroll .modal {
    overflow: hidden !important;
  }
}

.search-results-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 1rem 0 0.8rem;
  color: #111827;
}

.menu-category-section {
  margin-bottom: 2rem;
}

.category-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 1rem;
}

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

.product-item {
  border-top: 1px solid #e3e7ef;
  padding-top: 0.85rem;
}

.product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none !important;
}

.product-row-disabled {
  opacity: 0.7;
}

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

.product-name {
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 0.35rem;
  font-weight: 700;
  color: #101828;
}

.product-desc {
  font-size: 1.2rem;
  line-height: 1.25;
  color: #6b7280;
  margin-bottom: 0.4rem;
}

.product-price {
  font-size: 2rem;
  line-height: 1;
  color: #111827;
  font-weight: 800;
  margin-bottom: 0;
}

.product-photo-wrap {
  width: 140px;
  flex-shrink: 0;
}

.product-thumb {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  object-fit: cover;
  border: none;
}

.share-card {
  margin-top: 1rem;
  font-family: 'Poppins', 'Segoe UI', sans-serif !important;
}

.share-card,
.share-card * {
  font-family: 'Poppins', 'Segoe UI', sans-serif !important;
  letter-spacing: 0 !important;
}

.share-card a,
.share-card span,
.share-card div {
  font-size: 0.98rem;
}

.share-card .fa {
  font-family: FontAwesome !important;
}

.product-thumb {
  width: 84px;
  height: 74px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #dde4f0;
}

.product-name {
  font-size: 1rem;
  line-height: 1.2;
  color: #1f2937;
}

.product-desc {
  color: var(--ux-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.product-price {
  color: #0d7049;
  font-weight: 700;
  font-size: 0.96rem;
}

.product-action-btn {
  border-radius: 10px;
  font-weight: 700;
  min-width: 102px;
}

.bottom-nav,
.order-mode-nav {
  border: 1px solid #d6deeb;
  border-radius: 16px;
  box-shadow: var(--ux-shadow);
}

.bottom-nav .nav-link,
.order-mode-nav .nav-link {
  border-radius: 10px;
  font-weight: 600;
  color: #24364d;
}

.bottom-nav .nav-link:hover,
.order-mode-nav .nav-link:hover {
  background: #eef4ff;
}

.checkout-shell .card {
  border-radius: var(--ux-radius-lg);
  border: 1px solid var(--ux-border);
  box-shadow: var(--ux-shadow);
}

.checkout-shell .slim-card-title {
  font-size: 0.86rem;
  letter-spacing: 0.2px;
  color: #35435f;
}

.checkout-shell .form-control,
.checkout-shell .select2-selection {
  border-radius: 10px;
  min-height: 44px;
  border-color: #d6deeb;
}

.checkout-shell .form-control-label {
  color: #3b4a68;
  font-weight: 600;
}

.order-summary-card {
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.order-summary-total {
  font-size: 1.08rem;
  font-weight: 700;
}

.confirmation-shell {
  max-width: 760px;
  margin: 0 auto;
}

.confirmation-card {
  background: var(--ux-card);
  border: 1px solid var(--ux-border);
  border-radius: 20px;
  box-shadow: var(--ux-shadow);
  padding: 1.25rem;
  text-align: center;
}

.confirmation-title {
  font-size: 1.28rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.confirmation-subtitle {
  color: var(--ux-muted);
  margin-bottom: 1rem;
}

.scroll-top-link {
  position: fixed;
  right: 14px;
  bottom: 18px;
  z-index: 1080;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  background: linear-gradient(45deg, #1f2d45, #20395f);
  color: #fff;
  box-shadow: 0 10px 22px rgba(16, 24, 40, 0.24);
  text-align: center;
  line-height: 44px;
  padding: 0;
}

.scroll-top-link i {
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
  transform: translateY(-2px);
}

.scroll-top-link:hover,
.scroll-top-link:focus {
  color: #fff;
  text-decoration: none;
}

.slim-footer {
  color: #f5f8ff;
  padding: 0.85rem 0;
}

@media (max-width: 991.98px) {
  .app-hero {
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    padding-top: 84px;
    background-size: 100% 150px !important;
  }

  .app-hero::before {
    height: 150px;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
  }

  .mobile-hero-status {
    display: inline-flex;
    flex-direction: column;
    gap: 0.2rem;
    position: absolute;
    top: 10px;
    left: 12px;
    z-index: 3;
  }

  .mobile-status-badge {
    background: #fff;
    border: 1px solid #d8dfeb;
    border-radius: 6px;
    padding: 0.14rem 0.5rem;
    font-size: 0.68rem;
    line-height: 1.1;
    color: #1f2430;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
  }

  .mobile-status-badge.is-open {
    color: #0f8c3d;
  }

  .mobile-status-badge.is-closed {
    color: #c93d2b;
  }

  .mobile-logo-wrap {
    display: block;
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    z-index: 3;
    width: 88px;
    height: 88px;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 8px 18px rgba(16, 24, 40, 0.28);
    background: #fff;
    margin: -42px auto 0.7rem;
  }

  .mobile-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .store-logo {
    width: 106px;
    height: 106px;
  }

  .fixed-menu {
    top: 6px !important;
    padding: 0.42rem;
  }

  .fixed-menu.is-pinned {
    top: 6px !important;
    width: calc(100% - 1rem);
  }

  .catalog-tools {
    flex-wrap: wrap;
  }

  .store-profile-card {
    margin-top: 0;
    border-radius: 16px;
    padding: 1.1rem 0.55rem 0.85rem;
  }

  .store-profile-card .col-md-4 {
    display: none;
  }

  .desktop-status-pill,
  .quick-actions,
  .store-shortcuts,
  .store-highlights,
  .col-md-8.store-identity h6 {
    display: none !important;
  }

  .store-title {
    font-size: clamp(2rem, 7.6vw, 2.65rem);
    margin-bottom: 0.55rem;
    margin-top: 0;
  }

  .mobile-delivery-line {
    display: block;
    margin-bottom: 0.7rem;
    font-size: 0.95rem;
    line-height: 1.25;
    color: #525b6f;
  }

  .mobile-delivery-line strong {
    color: #252b36;
    font-weight: 800;
  }

  .mobile-info-btn {
    display: block;
    width: 100%;
    border: 1px solid #cfd6e2;
    border-radius: 10px;
    background: #f7f8fb;
    color: #1f2430 !important;
    font-weight: 600;
    padding: 0.52rem 0.7rem;
    margin: 0 auto 0.75rem;
    text-decoration: none !important;
  }

  .mobile-extra-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem 1rem;
    margin: 0 0 0.75rem;
  }

  .mobile-extra-info a {
    color: #1f2430 !important;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
  }

  .mobile-min-order {
    width: 100%;
    text-align: center;
    color: #4b5568;
    font-size: 0.82rem;
    font-weight: 600;
  }

  .search-toolbar,
  .search-toolbar.is-open {
    width: 100%;
  }

  .search-toolbar .btn {
    min-width: 76px;
  }

  .container-fixed-menu {
    gap: 0.5rem;
  }

  .category-pill {
    font-size: 0.8rem;
    padding: 0.35rem 0.15rem 0.45rem;
  }

  .category-title {
    font-size: 1.18rem;
    margin-bottom: 0.35rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .product-name {
    font-size: 1rem;
    margin-bottom: 0.18rem;
  }

  .product-desc {
    font-size: 0.84rem;
    margin-bottom: 0.18rem;
  }

  .product-price {
    font-size: 0.96rem;
  }

  .product-photo-wrap {
    width: 96px;
  }

  .product-thumb {
    width: 96px;
    height: 96px;
    border-radius: 10px;
  }

  .bottom-nav .nav {
    justify-content: space-between;
  }

  .bottom-nav .nav-item {
    flex: 1;
  }

  .bottom-nav .nav-link {
    text-align: center;
    padding-left: 0.45rem;
    padding-right: 0.45rem;
    font-size: 0.86rem;
  }

  .sticky-top-carrinho {
    position: static !important;
  }
}

@media (min-width: 992px) {
  .sticky-top-carrinho {
    position: sticky;
    top: 96px;
  }
}

