/* Cardápio-specific CSS intentionally kept small.
   Shared visual identity, navigation, menu cards and footer live in /public/shared/design-system/css. */

main {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, var(--sumi), #090a0e 45%, var(--sumi));
}

@media (max-width: 430px) {
  .bar-top { padding: 7px 18px; }
  .brand { width: 58px; height: 58px; }
  .coursebar-in { padding: 9px 14px; scroll-padding-inline: 14px; }
  .chip { min-height: 34px; padding: 0.38em 0.72em; }
}


/* Client card detail sheet overrides */
.coursebar .chip,
.noru-public-chipbar .chip {
  width: max-content;
  max-width: none;
  min-width: max-content;
  flex: 0 0 auto;
  white-space: nowrap;
}

.coursebar .chip > span:not(.ico),
.noru-public-chipbar .chip > span:not(.ico) {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.dcard {
  cursor: pointer;
  min-height: clamp(178px, 24vw, 230px);
}

.dcard:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.dc-body {
  padding: 18px 20px;
}

.dc-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: end;
  gap: 12px;
}

.dc-name {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dc-price {
  justify-self: end;
  max-width: 42vw;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
}

.dc-desc,
.dc-tag,
.sig-badge {
  display: none;
}

body.menu-sheet-open {
  overflow: hidden;
}

.menu-sheet {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: block;
  background: rgba(3, 4, 7, 0.96);
  pointer-events: none;
}

.menu-sheet[hidden] {
  display: none;
}

.menu-sheet__scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(3, 4, 7, 0.72);
  opacity: 0;
  pointer-events: auto;
  transition: opacity 0.18s var(--ease-soft);
}

.menu-sheet__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(19, 20, 27, 0.99), rgba(8, 9, 13, 0.99));
  box-shadow: none;
  opacity: 0;
  pointer-events: auto;
  transform: translateY(28px);
  transition: opacity 0.2s var(--ease-soft), transform 0.22s var(--ease-soft);
  -webkit-overflow-scrolling: touch;
}

.menu-sheet[data-open="true"] .menu-sheet__scrim {
  opacity: 1;
}

.menu-sheet[data-open="true"] .menu-sheet__panel {
  opacity: 1;
  transform: translateY(0);
}

.menu-sheet__media {
  width: 100%;
  min-height: 0;
  flex: 0 0 auto;
  line-height: 0;
  background: rgba(3, 4, 7, 0.88);
}

.menu-sheet__media[hidden] {
  display: none;
}

.menu-sheet__image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.menu-sheet__body {
  width: min(900px, 100%);
  margin: 0 auto;
  display: grid;
  align-content: start;
  gap: 20px;
  padding: clamp(24px, 4vw, 44px) clamp(18px, 4vw, 46px) calc(clamp(34px, 6vw, 58px) + env(safe-area-inset-bottom, 0px));
  overflow: visible;
}

.menu-sheet:not(.has-media) .menu-sheet__body {
  padding-top: calc(clamp(74px, 10vw, 108px) + env(safe-area-inset-top, 0px));
}

.menu-sheet__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: start;
  gap: 16px;
}

.menu-sheet__title {
  min-width: 0;
  margin: 0;
  color: var(--washi);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 4vw, 2.2rem);
  font-weight: 400;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.menu-sheet__price {
  color: var(--brass);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.8vw, 1.4rem);
  white-space: nowrap;
}

.menu-sheet__description {
  margin: 0;
  color: #dcd4c4;
  font-size: 0.98rem;
  line-height: 1.65;
}

.menu-sheet__close {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  right: calc(env(safe-area-inset-right, 0px) + 14px);
  z-index: 302;
  min-height: 40px;
  padding: 0.68em 1.05em;
  border: 1px solid rgba(236, 227, 208, 0.26);
  border-radius: 999px;
  color: var(--washi);
  background: rgba(8, 9, 13, 0.78);
  box-shadow: 0 14px 32px -24px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.menu-sheet__close:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.foot {
  background: linear-gradient(180deg, rgba(8, 9, 13, 0.98), #07080c);
  border-top-color: rgba(198, 163, 104, 0.18);
}

.foot-in {
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.25fr) auto;
  align-items: center;
}

.foot-brand {
  gap: 8px;
}

.foot-name {
  margin: 0;
  color: var(--washi);
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}

.foot-brand span {
  color: var(--brass);
  font-family: var(--mincho);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.foot-info {
  padding: 18px 0;
  border-block: 1px solid rgba(236, 227, 208, 0.08);
}

.foot-disc {
  color: rgba(207, 198, 181, 0.62);
}

@media (max-width: 760px) {
  .dcard {
    min-height: 168px;
  }

  .dc-body {
    padding: 16px;
  }

  .dc-head {
    gap: 10px;
  }

  .dc-price {
    max-width: 38vw;
    font-size: 0.96rem;
  }

  .menu-sheet__panel {
    min-height: 100vh;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
  }

  .menu-sheet__media {
    min-height: 0;
  }

  .menu-sheet__top {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .foot-in {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 430px) {
  .bar-top { padding: 7px 18px; }
  .brand { width: 58px; height: 58px; }
  .coursebar-in { padding: 9px 14px; scroll-padding-inline: 14px; }
  .chip { min-height: 34px; padding: 0.38em 0.72em; }
  .dc-price { max-width: 34vw; }
}


/* Loading state and category chip polish */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  place-items: center;
  gap: 14px;
  background:
    radial-gradient(42% 34% at 50% 38%, rgba(198, 163, 104, 0.13), transparent 72%),
    rgba(8, 9, 13, 0.96);
  color: var(--washi);
  opacity: 1;
  transition: opacity 0.22s var(--ease-soft), visibility 0.22s var(--ease-soft);
}

.page-loader[hidden] {
  display: none;
}

.page-loader.is-hiding {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.page-loader__mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(198, 163, 104, 0.28);
  border-top-color: var(--brass);
  border-right-color: rgba(236, 227, 208, 0.62);
  animation: page-loader-spin 0.9s linear infinite;
}

.page-loader p {
  margin: 0;
  color: var(--washi-dim);
  font-family: var(--mincho);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

@keyframes page-loader-spin {
  to { transform: rotate(360deg); }
}

.coursebar {
  background: rgba(9, 10, 14, 0.96);
}

.coursebar-in {
  gap: 10px;
  min-height: 58px;
}

.coursebar .chip,
.noru-public-chipbar .chip {
  width: max-content;
  max-width: none;
  min-width: max-content;
  min-height: 40px;
  flex: 0 0 auto;
  gap: 0.5em;
  padding: 0.5em 0.9em 0.5em 0.58em;
  border-color: rgba(236, 227, 208, 0.12);
  background: rgba(236, 227, 208, 0.055);
  color: #d8d0c2;
  letter-spacing: 0;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.coursebar .chip::after,
.noru-public-chipbar .chip::after {
  display: none;
}

.coursebar .chip > span:not(.ico),
.noru-public-chipbar .chip > span:not(.ico) {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.coursebar .chip .ico,
.noru-public-chipbar .chip .ico {
  width: auto;
  min-width: 1.7em;
  height: 1.7em;
  margin-right: 0;
  padding-inline: 0.36em;
  border-radius: 999px;
  background: rgba(198, 163, 104, 0.13);
  color: var(--brass);
  font-family: var(--mincho);
  font-size: 0.68rem;
  line-height: 1;
}

.coursebar .chip:hover,
.noru-public-chipbar .chip:hover {
  color: var(--washi);
  border-color: rgba(198, 163, 104, 0.36);
  background: rgba(236, 227, 208, 0.09);
}

.coursebar .chip.active,
.noru-public-chipbar .chip.active {
  color: #171006;
  border-color: rgba(236, 227, 208, 0.34);
  background: linear-gradient(180deg, #ead09a, #c6a368);
  box-shadow: 0 14px 30px -24px rgba(198, 163, 104, 1);
}

.coursebar .chip.active .ico,
.noru-public-chipbar .chip.active .ico {
  background: rgba(23, 16, 6, 0.14);
  color: #171006;
}

@media (max-width: 760px) {
  .coursebar-in {
    min-height: 54px;
    gap: 8px;
  }

  .coursebar .chip,
  .noru-public-chipbar .chip {
    min-height: 38px;
    padding: 0.46em 0.82em 0.46em 0.52em;
    font-size: 0.74rem;
  }
}
