:root {
  --public-accent: #f04a24;
  --public-accent-dark: #ca3213;
  --public-ink: #1d2433;
  --public-muted: #687083;
  --public-surface: #ffffff;
  --public-background: #f5f6f8;
  --public-border: #e8e9ee;
  --public-success: #18864b;
  --public-danger: #dc3545;
  --public-radius: 20px;
  --public-shadow: 0 12px 34px rgba(29, 36, 51, 0.08);
}

html {
  scroll-behavior: smooth;
}

body.public-modern {
  background: var(--public-background) !important;
  color: var(--public-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.public-modern a,
.public-modern button {
  transition: color .2s ease, background-color .2s ease, border-color .2s ease,
    box-shadow .2s ease, transform .2s ease;
}

.public-hero {
  min-height: 300px;
  position: relative;
  display: flex;
  align-items: center;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}

.public-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(18, 20, 28, .82), rgba(18, 20, 28, .45) 55%, rgba(18, 20, 28, .22));
}

.public-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 38px 0;
}

.public-hero__brand {
  flex: 0 0 154px;
  max-width: none;
  padding: 0;
}

.public-hero__details {
  flex: 1 1 auto;
  max-width: none;
  padding: 0;
  text-align: left !important;
}

.public-hero__logo {
  width: 154px;
  height: 154px;
  flex: 0 0 154px;
  object-fit: cover;
  border-radius: 30px;
  border: 4px solid rgba(255, 255, 255, .9);
  background: #fff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .28);
}

.public-hero__details {
  color: #fff;
  min-width: 0;
}

.public-hero__eyebrow {
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}

.public-hero__title {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.035em;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .3);
}

.public-hero__welcome {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
}

.public-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.public-status,
.public-hero__action {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.public-status {
  color: #fff;
  border-color: transparent;
}

.public-status--open { background: var(--public-success); }
.public-status--closed { background: var(--public-danger); }

.public-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .16);
}

.public-hero__action {
  color: #fff;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px);
}

.public-hero__action:hover,
.public-hero__action:focus {
  color: #fff;
  background: rgba(255, 255, 255, .24);
  text-decoration: none;
  transform: translateY(-1px);
}

.public-toolbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--public-border);
  box-shadow: 0 6px 22px rgba(29, 36, 51, .06);
  backdrop-filter: blur(12px);
}

.public-toolbar__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.public-search {
  position: relative;
  flex: 1;
  margin: 0;
}

.public-search i {
  position: absolute;
  top: 50%;
  left: 18px;
  z-index: 1;
  transform: translateY(-50%);
  color: #969dac;
  font-size: 17px;
}

.public-search__input {
  width: 100%;
  height: 46px;
  padding: 0 18px 0 48px;
  border: 1px solid var(--public-border);
  border-radius: 14px;
  background: #f8f9fb;
  color: var(--public-ink);
  font-size: 15px;
  outline: none;
}

.public-search__input:focus {
  border-color: var(--public-accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(240, 74, 36, .1);
}

.public-cart-button {
  min-width: 154px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: var(--public-ink);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.public-cart-button:hover,
.public-cart-button:focus {
  color: #fff;
  background: #0f1420;
  text-decoration: none;
  transform: translateY(-1px);
}

.public-cart-button--empty {
  background: #eef0f4;
  color: #8991a1;
  cursor: default;
}

.public-cart-button--empty:hover {
  color: #8991a1;
  background: #eef0f4;
  transform: none;
}

.public-cart-button__count {
  min-width: 23px;
  height: 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 99px;
  background: var(--public-accent);
  color: #fff;
  font-size: 12px;
}

.public-content {
  padding: 24px 0 90px;
}

.public-flash {
  margin-bottom: 18px;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(29, 36, 51, .06);
}

.public-banner {
  position: relative;
  margin-bottom: 22px;
  border-radius: var(--public-radius);
  overflow: hidden;
  background: var(--public-surface);
  box-shadow: var(--public-shadow);
}

.public-banner img {
  display: block;
  width: 100%;
  max-height: 350px;
  object-fit: cover;
}

.public-category-nav {
  position: sticky;
  top: 72px;
  z-index: 1010;
  margin-bottom: 28px;
  padding: 12px 0;
  background: var(--public-background);
}

.public-category-nav__scroll {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 1px 2px 7px;
  scrollbar-width: thin;
}

.public-category-chip {
  flex: 0 0 auto;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border: 1px solid var(--public-border);
  border-radius: 999px;
  background: #fff;
  color: var(--public-ink);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(29, 36, 51, .04);
}

.public-category-chip:hover,
.public-category-chip:focus,
.public-category-chip.is-active {
  color: #fff;
  border-color: var(--public-accent);
  background: var(--public-accent);
  text-decoration: none;
}

.public-category-chip__count {
  opacity: .7;
  font-size: 12px;
}

.public-section {
  scroll-margin-top: 145px;
  margin-bottom: 38px;
}

.public-section__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.public-section__title {
  margin: 0;
  color: var(--public-ink);
  font-size: 25px;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: -.025em;
}

.public-section__count {
  color: var(--public-muted);
  font-size: 13px;
  white-space: nowrap;
}

.public-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.public-product-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--public-border);
  border-radius: var(--public-radius);
  background: var(--public-surface);
  box-shadow: 0 8px 24px rgba(29, 36, 51, .06);
}

.public-product-card.is-available {
  cursor: pointer;
}

.public-product-card.is-available:hover,
.public-product-card.is-available:focus {
  border-color: rgba(240, 74, 36, .38);
  box-shadow: 0 18px 40px rgba(29, 36, 51, .12);
  transform: translateY(-3px);
  outline: none;
}

.public-product-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eceef2;
}

.public-product-card__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .35s ease;
}

.public-product-card.is-available:hover .public-product-card__image {
  transform: scale(1.035);
}

.public-product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--public-accent-dark);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
}

.public-product-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 17px;
}

.public-product-card__name {
  margin: 0;
  color: var(--public-ink);
  font-size: 17px;
  line-height: 1.3;
  font-weight: 800;
}

.public-product-card__description {
  min-height: 40px;
  display: -webkit-box;
  overflow: hidden;
  margin: 7px 0 15px;
  color: var(--public-muted);
  font-size: 13px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.public-product-card__footer {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.public-product-card__price {
  color: var(--public-ink);
  font-size: 18px;
  line-height: 1;
  font-weight: 850;
}

.public-product-card__price small {
  display: block;
  margin-bottom: 5px;
  color: var(--public-muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.public-product-card__action {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 13px;
  background: var(--public-accent);
  color: #fff;
  font-size: 16px;
  pointer-events: none;
}

.public-product-card__closed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--public-muted);
  font-size: 12px;
  font-weight: 700;
}

.public-empty-search {
  display: none;
  padding: 40px 20px;
  border: 1px dashed #d4d7df;
  border-radius: var(--public-radius);
  background: #fff;
  text-align: center;
  color: var(--public-muted);
}

.public-empty-search i {
  display: block;
  margin-bottom: 12px;
  color: #abb1bd;
  font-size: 28px;
}

.public-share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--public-border);
  border-radius: var(--public-radius);
  background: #fff;
  color: var(--public-muted);
  font-size: 13px;
}

.public-floating-cart {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1040;
  min-width: 230px;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 14px 11px 18px;
  border: 0;
  border-radius: 18px;
  background: var(--public-ink);
  color: #fff;
  box-shadow: 0 18px 44px rgba(15, 20, 32, .3);
  cursor: pointer;
}

.public-floating-cart:hover,
.public-floating-cart:focus {
  color: #fff;
  background: #0f1420;
  text-decoration: none;
  transform: translateY(-2px);
}

.public-floating-cart__label {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, .68);
}

.public-floating-cart__value {
  display: block;
  font-size: 15px;
  font-weight: 800;
}

.public-floating-cart__icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--public-accent);
}

.public-modern .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(15, 20, 32, .25);
}

.public-modern .modal-header {
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--public-border);
}

.public-modern .modal-title {
  color: var(--public-ink);
  font-size: 16px;
  font-weight: 800;
}

.public-modern .modal-body { padding: 22px; }

#visulUsuarioModal .modal-dialog { max-width: 580px; }
#visulUsuarioModal .modal-body > span > center:first-child img {
  max-height: 360px;
  object-fit: cover;
  border: 0 !important;
  border-radius: 16px;
}

#visulUsuarioModal #btn-incluir-pedido {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--public-accent);
  font-weight: 800;
}

.public-modern .slim-footer {
  border-top: 1px solid var(--public-border);
  color: var(--public-muted);
}

@media (max-width: 991.98px) {
  .public-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  .public-hero { min-height: 0; }

  .public-hero::before {
    background: linear-gradient(180deg, rgba(18, 20, 28, .35), rgba(18, 20, 28, .82));
  }

  .public-hero__content {
    flex-direction: column;
    gap: 16px;
    padding: 28px 0 30px;
    text-align: center;
  }

  .public-hero__brand { flex-basis: auto; }
  .public-hero__details { text-align: center !important; }

  .public-hero__logo {
    width: 116px;
    height: 116px;
    flex-basis: 116px;
    border-radius: 24px;
  }

  .public-hero__title { font-size: 29px; }
  .public-hero__meta { justify-content: center; margin-top: 14px; }

  .public-hero__action span { display: none; }
  .public-hero__action { width: 40px; padding: 0; }

  .public-toolbar__inner { min-height: 66px; gap: 9px; }
  .public-search__input { height: 44px; }

  .public-cart-button {
    width: 46px;
    min-width: 46px;
    height: 44px;
    padding: 0;
  }

  .public-cart-button__label { display: none; }

  .public-cart-button__count {
    position: absolute;
    margin: -30px 0 0 30px;
    border: 2px solid #fff;
  }

  .public-content { padding-top: 16px; }
  .public-category-nav { top: 66px; margin-bottom: 20px; }
  .public-banner { border-radius: 16px; margin-bottom: 18px; }

  .public-product-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .public-product-card {
    min-height: 138px;
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    border-radius: 17px;
  }

  .public-product-card__media {
    height: 100%;
    min-height: 138px;
    aspect-ratio: auto;
  }

  .public-product-card__body { padding: 15px; }
  .public-product-card__name { font-size: 16px; }
  .public-product-card__description { min-height: 0; margin: 5px 0 12px; }
  .public-product-card__price { font-size: 17px; }
  .public-product-card__badge { top: 8px; left: 8px; }

  .public-product-card__closed {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    background: #f0f1f4;
    font-size: 0;
  }

  .public-product-card__closed i { font-size: 14px; }

  .public-section { margin-bottom: 30px; }
  .public-section__heading { margin-bottom: 12px; }
  .public-section__title { font-size: 22px; }

  .public-floating-cart {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
  }

  .public-share { flex-direction: column; }

  .public-modern .modal-dialog {
    margin: 12px;
  }

  .public-modern .modal-body { padding: 16px; }
}

@media (max-width: 380px) {
  .public-product-card { grid-template-columns: 112px minmax(0, 1fr); }
  .public-product-card__action { width: 38px; height: 38px; flex-basis: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .public-modern *, .public-modern *::before, .public-modern *::after {
    transition-duration: .01ms !important;
  }
}

