/*
 * KOrder styles · public/css/02b-tablet-menu.css
 * Guest tablet: category rail, promo strip, featured row, menu tiles, stickers, sold out.
 *
 * public/css/*.css used to be one public/styles.css. The files are cut from it in order
 * and index.html loads them in that same order, which is the CSS cascade order: do not
 * reorder the <link> tags, and add a rule to the file that owns its screen.
 * Map: public/css/README.md
 */

.tablet-order-layout {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  height: calc(100vh - 74px);
  min-height: 620px;
  overflow: hidden;
}

.tablet-member-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 18px;
}

.category-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
  padding: 14px 10px;
  background: #242424;
}

.category-scroll-cue {
  position: sticky;
  z-index: 2;
  display: none;
  width: 34px;
  height: 30px;
  align-self: flex-end;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(214, 83, 63, 0.92);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.category-scroll-cue.up {
  top: 0;
  order: -1;
  box-shadow: 0 14px 22px rgba(36, 36, 36, 0.82);
}

.category-scroll-cue.down {
  bottom: 0;
  order: 999;
  box-shadow: 0 -14px 22px rgba(36, 36, 36, 0.82);
}

.category-rail.can-scroll-before .category-scroll-cue.up,
.category-rail.can-scroll-after .category-scroll-cue.down {
  display: grid;
}

.category-tab {
  min-height: 58px;
  padding: 8px;
  border: 0;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  font-weight: 900;
}

.category-tab.active {
  color: #fff;
  background: var(--coral);
}

.tablet-menu-stage {
  min-width: 0;
  overflow: auto;
  /* --tablet-dock-space is the measured height of the floating order dock (see
     syncTabletDockSpace in app.js); the fallback covers the first paint. */
  padding: 16px 18px calc(var(--tablet-dock-space, 120px) + 16px);
}

.promo-strip {
  display: flex;
  min-height: 156px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
  padding: 24px;
  overflow: hidden;
  border-radius: var(--radius);
  color: #fff;
  background:
    linear-gradient(105deg, rgba(20, 20, 20, 0.95), rgba(20, 20, 20, 0.58)),
    linear-gradient(135deg, var(--coral), var(--teal));
}

.promo-kicker {
  color: #ffd9d2;
  font-size: 13px;
  font-weight: 900;
}

.promo-strip h2 {
  margin: 8px 0;
  font-size: 34px;
  line-height: 1.1;
}

.promo-strip p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.featured-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.featured-card,
.menu-tile {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 28px rgba(31, 27, 22, 0.08);
  text-align: left;
}

.featured-card {
  display: grid;
  grid-template-columns: 42% 1fr;
  min-height: 190px;
  padding: 0;
}

.featured-card .menu-photo {
  height: 100%;
  min-height: 190px;
  border-radius: 0;
}

.featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 18px;
}

.featured-copy strong {
  font-size: 24px;
  line-height: 1.15;
}

.featured-copy small,
.item-desc {
  color: var(--muted);
  line-height: 1.35;
}

.featured-copy span:last-child {
  font-size: 22px;
  font-weight: 900;
}

.menu-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 4px 0 10px;
}

.menu-section-head h2 {
  margin: 0;
  font-size: 24px;
}

.menu-section-head span {
  color: var(--muted);
  font-weight: 800;
}

.consumer-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}

.menu-filter-hidden {
  display: none !important;
}

.menu-tile {
  display: grid;
  grid-template-rows: 136px 1fr;
  min-height: 286px;
  padding: 0;
}

.menu-tile .menu-photo {
  height: 136px;
  border-radius: 0;
}

.tablet-menu-stage .featured-row {
  display: none;
}

.tablet-menu-stage .promo-strip {
  display: none;
}

.tablet-menu-stage .featured-card {
  grid-template-columns: 50% 1fr;
  height: 250px;
  min-height: 0;
}

.tablet-menu-stage .featured-card .menu-photo {
  height: 250px;
  min-height: 0;
}

.tablet-menu-stage .consumer-menu-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tablet-menu-stage .menu-tile {
  grid-template-columns: 1fr;
  grid-template-rows: 214px minmax(104px, auto);
  height: 330px;
  min-height: 0;
}

.tablet-menu-stage .menu-tile .menu-photo {
  height: 214px;
  min-height: 0;
}

.tablet-menu-stage .menu-photo {
  background: #f2ecdf;
  padding: 10px;
}

.tablet-menu-stage .menu-photo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.tablet-menu-stage .item-name {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 19px;
  font-weight: 950;
  font-synthesis: weight;
  line-height: 1.18;
  text-align: center;
  -webkit-text-stroke: 0.12px currentColor;
}

.tablet-menu-stage .item-copy {
  display: flex;
  min-height: 104px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 9px;
  padding: 12px 12px 14px;
  text-align: center;
}

.tablet-menu-stage .item-title-row {
  display: block;
}

.tablet-menu-stage .item-desc {
  display: none;
}

.tablet-menu-stage .item-meta {
  width: auto;
  align-self: center;
  justify-content: center;
  text-align: center;
}

.tablet-menu-stage .price {
  font-size: 24px;
  font-weight: 950;
  font-synthesis: weight;
  line-height: 1;
  -webkit-text-stroke: 0.12px currentColor;
}

.tablet-menu-stage .route {
  display: none;
}

.tablet-menu-stage .menu-sticker {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  border-radius: 4px;
  font-size: 10px;
}

.item-copy {
  display: grid;
  gap: 7px;
  padding: 12px;
}

.item-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 7px;
}

.menu-sticker {
  flex: none;
  padding: 4px 7px;
  border-radius: 999px;
  color: #fff;
  background: var(--coral);
  font-size: 11px;
  font-weight: 900;
}

.menu-sticker.best,
.menu-sticker.popular {
  background: var(--ink);
}

.menu-sticker.new {
  background: var(--teal);
}

.menu-sticker.discount {
  background: var(--green);
}

.menu-sticker.spicy {
  background: var(--coral);
}

.sold-out {
  filter: grayscale(0.45);
}

.soldout-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.58);
  font-size: 24px;
  font-weight: 900;
}
