/* Akut menu overrides — sits on top of the Epicurean theme (style.css) */

/* ---------------------------------------------------------- header tweaks */
.menu-area-two .menu-logo-wrap img { max-height: 56px; width: auto; }

/* ------------------------------------------------------------- breadcrumb */
/* Theme breadcrumb height reduced 50%, then a further 20% (×0.8). */
.breadcrumb-area { padding: 97.2px 0 62.4px; }
@media only screen and (max-width: 991.98px) {
  .breadcrumb-area { padding: 80px 0 40px; }
}

/* --------------------------------------------------------- language switcher */
.lang-switcher { position: relative; }
.lang-switcher .lang-current {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid #eee; border-radius: 6px;
  padding: 8px 14px; cursor: pointer; font-weight: 600; color: #17191c;
}
.lang-switcher .lang-current:hover { border-color: #fd9900; }
.lang-switcher .lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 50;
  min-width: 160px; background: #fff; border: 1px solid #eee; border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08); padding: 6px; display: none;
}
.lang-switcher.open .lang-menu { display: block; }
.lang-switcher .lang-menu li { list-style: none; }
.lang-switcher .lang-menu button {
  width: 100%; text-align: left; background: none; border: 0; border-radius: 4px;
  padding: 8px 12px; cursor: pointer; color: #17191c;
}
.lang-switcher .lang-menu button:hover,
.lang-switcher .lang-menu button.active { background: #fff6e8; color: #fd9900; }

/* ------------------------------------------------------------- menu items */
.menu-book-box { position: relative; }
.menu-book-link { position: absolute; inset: 0; z-index: 2; }
/* Enlarge the circular thumb 44% over the theme default (84px / 10px padding → ×1.2 ×1.2). */
.menu-book-box .menu-book-info-wrap .menu-book-img {
  max-width: 120.96px; height: 120.96px; padding: 14.4px;
}
.menu-book-box .menu-book-img img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.menu-book-img-default { width: 100%; height: 100%; color: var(--primary-yellow); opacity: .55; }
.menu-badge {
  display: inline-flex; align-items: center; gap: 4px;
  margin-left: 10px; vertical-align: middle;
  color: #fff; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 4px;
}
.menu-badge--new      { background: #fd9900; }
.menu-badge--popular  { background: #e85d04; }
.menu-badge--chef     { background: #7b2d8b; }
.menu-badge--seasonal        { background: #16a34a; }
.menu-badge--limited-edition { background: #dc2626; }
.menu-badge--unavailable     { background: #6b7280; }
/* Re-assert white text: `.section-title span` specificity would otherwise override. */
.section-title .menu-badge { color: #fff; }
.menu-diet-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.menu-diet-tag {
  font-size: 11px; font-weight: 600; color: #2f8f4e;
  background: #eaf7ee; border-radius: 4px; padding: 2px 8px;
}
.menu-cat-desc { color: #777; margin-top: 10px; }
/* Summary categories (Category.Style === 2): no photo card, no detail-page link. */
.menu-book-box--summary { cursor: default; }

/* ------------------------------------------------------ availability (shared across all templates) */
.menu-item-faded { opacity: .45; transition: opacity .2s; }
.menu-item-faded:hover, .menu-item-faded:focus-within { opacity: .65; }
.menu-availability-note {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-style: italic; color: #888; margin-top: 4px;
}
.menu-availability-note i { font-size: 11px; }

/* --------------------------------------------------------------- detail */
.detail-diet-tags { margin-top: 16px; }
.detail-back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; }

/* ------------------------------------------------------- detail gallery */
.gallery-stage-wrap { position: relative; }

/* Fixed stage height so every image and the YouTube video occupy the same space. */
.gallery-stage-wrap .shop-main-img-wrap { height: 420px; }
.gallery-stage-wrap .shop-main-img-wrap img[data-gallery-main] {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
@media only screen and (max-width: 767.98px) {
  .gallery-stage-wrap .shop-main-img-wrap { height: 260px; }
}
.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.85); color: #17191c;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer; transition: background .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.gallery-arrow:hover { background: #fd9900; color: #fff; }
.gallery-arrow-prev { left: 12px; }
.gallery-arrow-next { right: 12px; }

.gallery-thumb {
  position: relative; width: 72px; height: 72px; padding: 0;
  border: 2px solid transparent; border-radius: 6px; overflow: hidden;
  cursor: pointer; background: none; line-height: 0;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border-color: #fd9900; }
.gallery-thumb-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .35); color: #fff; font-size: 26px; line-height: 1;
}
/* YouTube embed keeps a 16:9 box inside the main viewer */
.menu-video-wrap { position: relative; height: 420px; padding-top: 0; }
.menu-video-wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 14px;
}
@media only screen and (max-width: 767.98px) {
  .menu-video-wrap { height: 260px; }
}

/* ------------------------------------------------------------ slim footer */
.footer-area-slim { padding: 40px 0; }
.footer-area-slim .footer-logo img { max-height: 48px; width: auto; }
.footer-powered { color: #fd9900; font-size: 13px; }

/* ----------------------------------------------------------- friendly error */
.menu-error {
  min-height: 70vh; display: flex; align-items: center; justify-content: center;
  padding: 60px 16px; text-align: center;
}
.menu-error-card { max-width: 520px; }
.menu-error-emoji { font-size: 64px; line-height: 1; margin-bottom: 16px; }
.menu-error-card h1 { font-size: 32px; margin-bottom: 12px; }
.menu-error-card p { color: #777; margin-bottom: 24px; }
.menu-error-card code {
  background: #f5f5f5; padding: 2px 6px; border-radius: 4px; color: #d6336c;
}

/* --------------------------------------------------------------- loading */
.menu-loading {
  min-height: 50vh; display: flex; align-items: center; justify-content: center;
}
.menu-loading .spinner {
  width: 48px; height: 48px; border: 4px solid #eee; border-top-color: #fd9900;
  border-radius: 50%; animation: akut-spin 1s linear infinite;
}
@keyframes akut-spin { to { transform: rotate(360deg); } }

/* ----------------------------------------------------------- back to top */
.back-to-top-btn { opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.back-to-top-btn.show { opacity: 1; visibility: visible; }

[hidden] { display: none !important; }
[data-founded-year]:empty { display: none; }

/* ---------------------------------------------------------- preview band */
/*
 * Full-width fixed bar at the viewport top, inserted by renderPreviewBand().
 * Template-aware via modifier classes (.preview-band--deepblue, etc.).
 * Each variant uses the template's own palette for high-contrast visibility.
 */
.preview-band {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10000;
  height: 40px;
  overflow: hidden;
  display: flex;
  align-items: center;
  /* Classic default: amber on near-black */
  background: #fd9900;
  color: #101113;
  font-family: var(--ff-abril-display, Georgia, serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  user-select: none;
  pointer-events: none;
}

/* Scrolling marquee inner track — two identical spans side by side.
   Animation moves by -50% (= one span's width) for a seamless loop. */
.preview-band-inner {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: preview-band-scroll 28s linear infinite;
  will-change: transform;
}

.preview-band-inner span { padding: 0 0; }

@keyframes preview-band-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Nudge page content below the band */
body.has-preview-band { padding-top: 40px; }

/* Deep Blue — dark ocean with turquoise text */
.preview-band--deepblue {
  background: #06182b;
  color: #13c5dd;
  border-bottom: 1px solid rgba(19, 197, 221, 0.35);
  font-family: var(--ff-abril-display, Georgia, serif);
}

/* Senjutsu — sumi ink with vermilion text */
.preview-band--senjutsu {
  background: #1a1a2a;
  color: #c93c27;
  font-family: "Noto Serif JP", Georgia, serif;
  letter-spacing: .18em;
}

/* Lisbon — azul atlântico with white text */
.preview-band--lisbon {
  background: #1a4a7a;
  color: #ffffff;
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  letter-spacing: .15em;
}

/* Trattoria — rosso italiano with cream text */
.preview-band--trattoria {
  background: #cd212a;
  color: #f7f4ec;
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: .15em;
}

/* Brunch — toasted caramel with cream text */
.preview-band--brunch {
  background: #8c4a2c;
  color: #fbf6ee;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  letter-spacing: .15em;
}
