.ui-quick-header, .ui-cart-cta, .ui-toast-host { display: none; }
.ui-scroll-top { display: none; }

.highlight-carousel-wrap .highlight-carousel-card {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.highlight-carousel .swiper-wrapper {
  align-items: stretch;
}

.highlight-carousel .swiper-slide {
  height: auto;
}

.swiper-destaques .swiper-slide {
  width: calc((100% - 24px) / 4) !important;
  flex: 0 0 calc((100% - 24px) / 4) !important;
  max-width: 150px;
}

/* iOS/Touch mobile: forcar botoes de destaque ~35% maiores */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 991px) {
    .swiper-destaques.swiper-container .swiper-slide {
      width: calc((100% - 16px) / 3) !important;
      flex: 0 0 calc((100% - 16px) / 3) !important;
    }
  }
}

.highlight-carousel .ui-card-plus,
.highlight-carousel-card .ui-card-plus {
  display: none !important;
}

.highlight-card-link {
  display: block;
  text-decoration: none !important;
  color: inherit;
}

.highlight-card {
  position: relative;
  height: 100%;
  aspect-ratio: 1 / 1;
  max-width: 150px;
  max-height: 150px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e6ebf3;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
  transition: transform .16s ease, box-shadow .16s ease;
}

.highlight-card-link:active .highlight-card {
  transform: scale(0.985);
}

.highlight-media {
  position: absolute;
  inset: 0;
  max-width: 150px;
  max-height: 150px;
  overflow: hidden;
  background: #f4f7fb;
}

.highlight-image {
  width: 100%;
  height: 100%;
  max-width: 150px;
  max-height: 150px;
  object-fit: cover;
  display: block;
}

.highlight-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 8px 9px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.66));
}

.highlight-title {
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.highlight-price {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.highlight-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  background: linear-gradient(135deg, #ef5350, #e53935);
  color: #fff;
}

:root {
  --ui-bg: #f7f8fb;
  --ui-surface: #ffffff;
  --ui-text: #1b2230;
  --ui-muted: #6b7280;
  --ui-primary: #e53935;
  --ui-radius: 14px;
  --ui-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
}

/* Skeleton loading (catalogo) */
body.ui-skeleton-on .content-body .card:not(.pull-up):not(.highlight-carousel-card) {
  position: relative;
  overflow: hidden;
}

body.ui-skeleton-on .content-body .card:not(.pull-up):not(.highlight-carousel-card)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background: linear-gradient(90deg, #edf1f7 18%, #f8fafd 45%, #edf1f7 72%);
  background-size: 220% 100%;
  animation: ui-skeleton-shimmer 1.05s linear infinite;
  pointer-events: none;
}

@keyframes ui-skeleton-shimmer {
  from { background-position: 220% 0; }
  to { background-position: -220% 0; }
}

@media (max-width: 991px) {
  html, body {
    background: var(--ui-bg);
    color: var(--ui-text);
  }

  #js_image_selection {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid #eceff3;
    transition: box-shadow 0.2s ease;
  }

  body.ui-tab-shadow #js_image_selection {
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.08);
  }

  .card {
    border: 0 !important;
    border-radius: var(--ui-radius) !important;
    box-shadow: var(--ui-shadow);
    overflow: hidden;
  }

  .btn {
    border-radius: 12px !important;
    min-height: 42px;
    font-weight: 600;
  }

  input.form-control,
  textarea.form-control,
  select.form-control {
    border-radius: 12px !important;
    border-color: #d7deea !important;
    min-height: 42px;
  }

  .modal-content {
    border-radius: 16px 16px 0 0 !important;
  }

  .modal .modal-body {
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .footercart {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: 0 -10px 24px rgba(17, 24, 39, 0.15);
    bottom: calc(60px + env(safe-area-inset-bottom, 0px)) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 10030 !important;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  #cartvalores {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2px;
  }

  body.ui-has-footer {
    padding-bottom: 120px;
  }
}

/* Phase 2 Mobile Visual */
@media (max-width: 991px) {
  .app-content .content-wrapper,
  .app-content .content-body {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  #js_image_selection .horizontal-tabs {
    position: relative;
    padding: 8px 10px;
  }

  #js_image_selection .nav-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    border-bottom: 0 !important;
  }

  #js_image_selection .nav-tabs::-webkit-scrollbar {
    display: none;
  }

  #js_image_selection .nav-tabs > li {
    float: none !important;
    display: inline-flex;
    scroll-snap-align: start;
  }

  #js_image_selection .nav-tabs > li > a {
    border: 0 !important;
    border-radius: 999px !important;
    background: #eef2f7 !important;
    color: #2b3648 !important;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .2px;
    padding: 10px 12px !important;
    margin: 0 !important;
    white-space: nowrap;
    transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
  }

  #js_image_selection .nav-tabs > li.active > a,
  #js_image_selection .nav-tabs > li > a.active {
    background: linear-gradient(135deg, #ef5350, #e53935) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(229, 57, 53, 0.32);
    transform: translateY(-1px);
  }

  #js_image_selection .horizontal-tabs::before,
  #js_image_selection .horizontal-tabs::after {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    width: 14px;
    pointer-events: none;
    z-index: 3;
  }

  #js_image_selection .horizontal-tabs::before {
    left: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0));
  }

  #js_image_selection .horizontal-tabs::after {
    right: 0;
    background: linear-gradient(270deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0));
  }

  .content-body .card {
    border: 1px solid #eef2f7 !important;
  }

  .content-body .card .card-content {
    background: #fff;
  }

  .content-body .card .card-body {
    padding: 14px !important;
  }

  .content-body .card .card-title {
    font-size: 15px;
    line-height: 1.24;
    margin-bottom: 6px;
    font-weight: 800;
    color: #1f2937;
    letter-spacing: .1px;
  }

  .content-body .card .card-text,
  .content-body .card p {
    font-size: 12px;
    line-height: 1.35;
    color: #6b7280;
  }

  .content-body .card .price,
  .content-body .card [class*="preco"],
  .content-body .card [id*="preco"] {
    font-weight: 800;
    color: #c62828;
    letter-spacing: .15px;
  }

  .content-body .card img.card-img,
  .content-body .card .img-fluid {
    border-radius: 10px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

  .footercart {
    background: linear-gradient(135deg, #e53935, #c62828) !important;
    min-height: 60px !important;
    height: auto !important;
    z-index: 10030 !important;
  }

  .footercart .btn,
  .footercart button {
    border-radius: 12px !important;
    font-weight: 700;
    min-height: 44px;
  }

  #cartvalores {
    font-size: 1.05rem;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  }

  #bounceInUppagar .modal-content {
    border-radius: 18px 18px 0 0 !important;
  }

  #bounceInUppagar .modal-header {
    border-bottom: 1px solid #edf1f6;
  }

  .modal .modal-dialog {
    margin: 0;
    width: 100%;
    max-width: 100%;
  }

  @media (prefers-reduced-motion: no-preference) {
    .content-body .card {
      animation: uiFadeInUp .28s ease both;
    }
  }
}

@keyframes uiFadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Phase 3 Mobile UX */
@media (max-width: 991px) {
  body {
    font-family: "Open Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  .content-body {
    line-height: 1.35;
  }

  .content-body h1,
  .content-body h2,
  .content-body h3,
  .content-body h4,
  .content-body .card-title {
    letter-spacing: .1px;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .content-body .text-muted,
  .content-body small {
    color: #6f7b8d !important;
  }

  /* Melhor zona de toque para checkout */
  #botaocarrinho,
  .footercart .btn,
  #botaopedido55,
  #botaopedido66,
  #botaopedido77 {
    min-height: 46px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    font-size: 15px;
    font-weight: 700;
  }

  /* Inputs de checkout com melhor leitura em mobile */
  #bounceInUppagar input.form-control,
  #bounceInUppagar select.form-control,
  #bounceInUppagar textarea.form-control {
    font-size: 16px !important;
    min-height: 46px !important;
  }

  /* Espaço de segurança para botões no rodapé do modal */
  #bounceInUppagar .modal-footer {
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #edf1f6;
  }

  /* Estado de foco mais moderno e acessível */
  .btn:focus,
  .btn:active:focus,
  input.form-control:focus,
  select.form-control:focus,
  textarea.form-control:focus {
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.18) !important;
    outline: none !important;
  }

  .btn,
  button {
    transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
  }

  .btn:active,
  button:active {
    transform: translateY(1px) scale(.99);
    filter: brightness(.98);
  }

  /* Espaço extra para último conteúdo acima do carrinho fixo */
  body.ui-has-footer .content-body > :last-child {
    margin-bottom: 14px;
  }
}

/* Phase 4 Quick UI */
@media (max-width: 991px) {
  .ui-quick-header {
    position: fixed;
    top: 8px;
    left: 10px;
    right: 10px;
    z-index: 10010;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #e6ebf3;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.10);
    backdrop-filter: blur(8px);
  }

  .ui-quick-header .ui-btn-search,
  .ui-quick-header .ui-btn-cart {
    border: 0;
    border-radius: 10px;
    height: 38px;
    padding: 0 12px;
    font-weight: 700;
    font-size: 13px;
  }

  .ui-quick-header .ui-btn-nav {
    border: 0;
    border-radius: 10px;
    width: 34px;
    height: 38px;
    background: #edf2f9;
    color: #243040;
    font-weight: 800;
    padding: 0;
  }

  .ui-quick-header .ui-btn-nav:disabled {
    opacity: 0.45;
  }

  .ui-quick-header .ui-search-count {
    min-width: 34px;
    text-align: center;
    font-size: 11px;
    color: #4b5563;
    font-weight: 700;
  }

  .ui-quick-header .ui-btn-search {
    flex: 1;
    text-align: left;
    background: #edf2f9;
    color: #243040;
    box-shadow: inset 0 0 0 1px #e3eaf5;
    font-size: 13px;
  }

  .ui-quick-header .ui-brand-wrap {
    width: 44px;
    height: 38px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e6ebf3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: hidden;
  }

  .ui-quick-header .ui-brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 4px;
  }

  .ui-quick-header .ui-brand-logo-fallback {
    font-size: 10px;
    color: #6b7280;
    font-weight: 700;
  }

  .ui-quick-header .ui-btn-cart {
    min-width: 108px;
    background: linear-gradient(135deg, #ef5350, #e53935);
    color: #fff;
    position: relative;
    box-shadow: 0 8px 16px rgba(229, 57, 53, 0.26);
  }

  .ui-quick-header .ui-cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 999px;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 800;
    background: #111827;
    color: #fff;
  }

  .ui-quick-header .ui-cart-badge.ui-badge-bump {
    animation: uiBadgeBump .22s ease;
  }

  body.ui-with-quick-header {
    padding-top: 56px;
  }

  .ui-cart-cta {
    
    display: inline-flex;
    align-items: center;
position: fixed;
    right: 12px;
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    z-index: 10020;
    border: 0;
    border-radius: 999px;
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #ef5350, #c62828);
    box-shadow: 0 10px 22px rgba(198, 40, 40, 0.34);
  }

  .ui-quick-header button:active,
  .ui-cart-cta:active,
  .content-body .ui-card-plus:active {
    transform: scale(0.98);
  }

  .ui-cart-cta.hide {
    display: none;
  }

  .ui-toast-host {
    position: fixed;
    left: 10px;
    right: auto;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 10050;
    display: grid;
    justify-items: start;
    gap: 8px;
    pointer-events: none;
  }

  .ui-scroll-top {
    position: fixed;
    right: 12px;
    bottom: calc(150px + env(safe-area-inset-bottom, 0px));
    z-index: 10025;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #334155, #0f172a);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.32);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
  }

  .ui-scroll-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .ui-toast {
    pointer-events: auto;
    width: fit-content;
    max-width: 40vw;
    border-radius: 12px;
    padding: 10px 12px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    white-space: normal;
    word-break: break-word;
    box-shadow: 0 10px 20px rgba(17, 24, 39, 0.2);
    transition: all .24s ease;
  }

  .ui-toast-info { background: #2563eb; }
  .ui-toast-success { background: #16a34a; }
  .ui-toast-warn { background: #f59e0b; }

  .ui-toast.hide {
    opacity: 0;
    transform: translateY(8px);
  }

  #uiPixSteps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
  }

  #uiPixSteps .ui-pix-step {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    padding: 8px;
    text-align: center;
  }

  #uiPixSteps .ui-pix-step b {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-bottom: 4px;
  }

  #uiPixSteps .ui-pix-step span {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
  }

  #uiPixSteps .ui-pix-step.done {
    background: #ecfdf3;
    border-color: #86efac;
  }

  #uiPixSteps .ui-pix-step.active {
    background: #fff1f2;
    border-color: #fda4af;
    box-shadow: inset 0 0 0 1px #fecdd3;
  }

  #uiPixStepNote {
    margin: 2px 0 10px;
    font-size: 12px;
    color: #64748b;
  }

  .content-body .card[data-ui-plus-ready] {
    position: relative;
  }

  .content-body .card.ui-card-picked {
    box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.36), var(--ui-shadow) !important;
    transform: translateY(-1px);
  }

  .content-body .ui-card-plus {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    background: linear-gradient(135deg, #ef5350, #e53935);
    box-shadow: 0 8px 16px rgba(229, 57, 53, 0.34);
    z-index: 5;
  }

  /* Extras/variacoes mais amigaveis para touch */
  #bounceInUpextras .modal-body {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  #bounceInUpextras .modal-body table {
    border-collapse: separate;
    border-spacing: 0 8px;
  }

  #bounceInUpextras .modal-body table tbody tr {
    background: #fff;
    border: 1px solid #e7edf6;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(17, 24, 39, 0.06);
  }

  #bounceInUpextras .modal-body table tbody td {
    padding: 10px 8px !important;
    vertical-align: middle !important;
  }

  #bounceInUpextras .modal-body table tbody td:nth-child(2) {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
  }

  #bounceInUpextras .modal-body table tbody td:nth-child(3) {
    font-size: 13px;
    font-weight: 700;
    color: #c62828;
    text-align: right;
    white-space: nowrap;
  }

  #bounceInUpextras .modal-body input[type="checkbox"] {
    width: 24px;
    height: 24px;
    accent-color: #e53935;
  }

  #bounceInUpextras .modal-body .switchery {
    margin-right: 4px;
  }

  #bounceInUpextras .modal-body .btn.btn-danger {
    min-width: 38px;
    min-height: 38px;
    border-radius: 10px !important;
    padding: 0 8px !important;
  }

  #bounceInUpextras .modal-body .input-group {
    align-items: center;
    gap: 6px;
  }

  #POITablepedido .ui-pedido-qt {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
  }

  #POITablepedido .ui-pedido-qt span {
    min-width: 18px;
    text-align: center;
    font-weight: 700;
    color: #1f2937;
  }

  #POITablepedido .ui-pedido-qt .btn {
    min-width: 30px;
    min-height: 30px;
    border-radius: 8px !important;
    padding: 0 6px !important;
  }

  #POITablepedido .pedido-main-row td {
    border-top: 1px solid #e6ebf3;
    vertical-align: top;
  }

  #POITablepedido .pedido-item-main {
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
  }

  #POITablepedido .pedido-sub-row td {
    border-top: 0;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  #POITablepedido .pedido-sub-item {
    margin-left: 8px;
    padding: 7px 9px;
    border-left: 3px solid #93c5fd;
    border-radius: 8px;
    background: linear-gradient(180deg, #f8fbff 0%, #f1f7ff 100%);
    color: #1e3a5f;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 600;
  }

  #POITablepedido .pedido-sub-item::before {
    content: "↳ ";
    color: #64748b;
    font-weight: 700;
  }

  #POITablepedido .pedido-sub-price {
    color: #0f766e;
    font-weight: 800;
  }

  #POITablepedido .pedido-sub-qt {
    color: #334155;
    font-weight: 800;
    margin-right: 2px;
  }

  #bounceInUpshowpedido .modal-body {
    max-height: 62vh;
    overflow-y: auto;
    padding-bottom: 86px;
  }

  #POITablepedido thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #fff;
    box-shadow: 0 1px 0 #e6ebf3;
  }

  #POITablepedido tbody td {
    vertical-align: middle;
    border-top: 1px solid #eef2f7;
  }

  #POITablepedido tbody tr:first-child td {
    border-top: 0;
  }

  #POITablepedido tbody td:nth-child(1) {
    width: 52px;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
  }

  #POITablepedido tbody td:nth-child(3) {
    width: 86px;
    text-align: right;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
  }

  #bounceInUpshowpedido .modal-footer {
    position: sticky;
    bottom: 0;
    z-index: 4;
    background: #fff;
    border-top: 1px solid #e6ebf3;
    box-shadow: 0 -8px 18px rgba(15, 23, 42, 0.08);
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }

  #bounceInUpshowpedido .modal-footer .btn {
    min-height: 44px;
    font-weight: 700;
  }

  #bounceInUpshowpedido .modal-footer .btn:active {
    transform: scale(0.985);
  }
}

@keyframes uiBadgeBump {
  0% { transform: scale(1); }
  45% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

/* Phase 5 Visual Polish */
@media (max-width: 991px) {
  /* Rhythm 8/12/16 para consistencia dos modais */
  .modal .modal-header {
    padding: 12px 12px 10px;
  }

  .modal .modal-body {
    padding: 12px;
  }

  .modal .modal-footer {
    padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: stretch;
  }

  .modal .modal-footer .btn {
    min-height: 44px;
    flex: 1 1 0;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
  }

  .modal .form-group,
  .modal .input-group {
    margin-bottom: 10px;
  }

  .modal .table thead th,
  .modal .table thead td {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .modal .table tbody td {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .footer2 {
    height: 64px !important;
    margin-top: 0 !important;
    background: rgba(255, 255, 255, 0.94) !important;
    border-top: 1px solid #e6ebf3;
    box-shadow: 0 -8px 18px rgba(17, 24, 39, 0.08);
    backdrop-filter: blur(8px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    z-index: 10005;
  }

  .footer2 #gray-line {
    display: none;
  }

  .footer2 table {
    height: 64px !important;
  }

  .footer2 h6 {
    margin-top: 2px !important;
    margin-bottom: 0 !important;
    font-size: 11px;
    color: #6b7280;
    font-weight: 700;
    letter-spacing: .2px;
  }

  .footer2 .ui-nav-active h6 {
    color: #e53935 !important;
  }

  .footer2 .ui-nav-active img {
    filter: saturate(1.4);
    transform: translateY(-1px);
  }

  .modal .modal-header {
    border-bottom: 1px solid #edf1f6;
    background: #fff;
  }

  .modal .modal-header input.form-control {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    text-align: center;
    font-weight: 700;
    color: #1f2937 !important;
    font-size: 16px !important;
    padding-left: 4px;
    padding-right: 4px;
  }

  #bounceInUppagar .createCard {
    border: 1px solid #edf1f6;
    border-radius: 14px;
    padding: 10px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.06);
  }

  #bounceInUppagar .card-form .form-control {
    border-radius: 10px !important;
  }

  /* No pedido, manter 3 acoes equilibradas no rodape */
  #bounceInUpshowpedido .modal-footer .btn {
    flex: 1 1 0;
  }

  /* Footer de acoes padronizado com icones */
  .modal .modal-footer.ui-footer-actions .btn,
  .modal .modal-footer.ui-footer-actions button {
    border-radius: 10px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    letter-spacing: .1px;
  }

  .modal .modal-footer.ui-footer-actions .ui-act-cancel::before {
    content: "✕";
    font-size: 13px;
    line-height: 1;
  }

  .modal .modal-footer.ui-footer-actions .ui-act-back::before {
    content: "←";
    font-size: 13px;
    line-height: 1;
  }

  .modal .modal-footer.ui-footer-actions .ui-act-next::before {
    content: "➜";
    font-size: 13px;
    line-height: 1;
  }

  body.ui-hide-quick-header .ui-quick-header {
    transform: translateY(-140%);
    opacity: 0;
    pointer-events: none;
  }

  .ui-quick-header {
    transition: transform .22s ease, opacity .22s ease;
  }
}

@media (max-width: 991px) and (orientation: landscape) and (max-height: 520px) {
  .ui-quick-header {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  body.ui-with-quick-header {
    padding-top: 50px;
  }

  .ui-cart-cta {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}




