/* Menu page design (layout and look only; no behaviour). Loaded after styles.css and theme.css. */
:root {
  --menu-gold: #f6c90e;
  --menu-line: #ececec;
}

/* ===== 1. Category pills ===== */
#tab-menu .category-filter { padding: 0.375rem 1rem; border-bottom: 1px solid var(--menu-line); box-shadow: none; }
#tab-menu .category-scroll { gap: 0.5rem; padding-top: 0; padding-bottom: 0; }
#tab-menu .category-btn { display: inline-flex; align-items: center; gap: 0.4rem; height: 2.25rem; padding: 0 0.875rem; font-size: 0.9375rem; font-weight: 600; line-height: 1.3; color: #3a2f33; background: #f4f1f2; border-radius: 9999px; }
#tab-menu .category-btn:hover { background: #ebe5e7; }
#tab-menu .category-btn.has-icon { padding-left: 0.25rem; }
#tab-menu .category-btn-icon { width: 1.625rem; height: 1.625rem; }
#tab-menu .category-btn-count { font-size: 0.75rem; font-weight: 500; color: #8b7f83; }
#tab-menu .category-btn.active { background: var(--bq-accent, #7b1c3a); color: var(--bq-accent-text, #fff); }
#tab-menu .category-btn.active .category-btn-count { color: inherit; opacity: 0.75; }

/* ===== 2. Toolbar strip: search, status, sort, view ===== */
#tab-menu .menu-toolbar { gap: 0.75rem; margin: 0 -1rem; padding: 0.5rem 1rem; background: #fff; border: 0; border-bottom: 1px solid var(--menu-line); border-radius: 0; }
#tab-menu .menu-toolbar .search-bar input { height: 2.25rem; padding-top: 0; padding-bottom: 0; padding-left: 2.5rem; background: #fff; border: 1px solid #dcdde1; border-radius: 9999px; box-shadow: none; font-size: 0.9375rem; }
#tab-menu .menu-toolbar .search-bar input:focus { background: #fff; }
#tab-menu .menu-toolbar .search-bar svg { left: 1rem; }
#tab-menu .menu-toolbar-controls { gap: 0.625rem; margin-left: 0; padding-left: 0; border-left: 0; }
#tab-menu .menu-status { height: 2.25rem; min-height: 0; padding: 0 0.875rem; background: #fff; }
#tab-menu .menu-status.is-open { background: #ecfdf3; border-color: #a7e3bd; }
#tab-menu .menu-status.is-closed { background: #fff1f3; border-color: #f3b4c0; }
#tab-menu .menu-sort { height: 2.25rem; padding-top: 0; padding-bottom: 0; padding-left: 1rem; background-color: #fff; border: 1px solid #dcdde1; border-radius: 9999px; }
#tab-menu .menu-sort:hover { background-color: #fff; border-color: #c4c6cc; }
#tab-menu .menu-view-toggle { padding: 0.1875rem; background: #fff; border: 1px solid #dcdde1; }
#tab-menu .menu-view-toggle button { width: 1.75rem; height: 1.75rem; }
#tab-menu .menu-view-toggle button svg { width: 1rem; height: 1rem; }

/* ===== 3. Category banner ===== */
#tab-menu .menu-category-box {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 0.875rem;
  margin: 1.25rem 0 0.25rem; padding: 0.5rem 1.25rem; min-height: 3.25rem;
  color: var(--bq-accent, #7b1c3a);
  background: rgba(var(--bq-accent-rgb, 123, 28, 58), 0.08);
  border: 1px solid rgba(var(--bq-accent-rgb, 123, 28, 58), 0.16); border-radius: 0.875rem; box-shadow: none;
  overflow: hidden;
}
#tab-menu .menu-category-box:first-child { margin-top: 0.75rem; }
#tab-menu .menu-category-box::before,
#tab-menu .menu-category-box::after { content: ""; display: block; position: static; flex: 0 1 4rem; width: auto; height: 1px; border-radius: 0; background: linear-gradient(90deg, transparent, rgba(var(--bq-accent-rgb, 123, 28, 58), 0.4)); }
#tab-menu .menu-category-box::after { background: linear-gradient(270deg, transparent, rgba(var(--bq-accent-rgb, 123, 28, 58), 0.4)); }
#tab-menu .menu-category-box-icon { width: 2rem; height: 2rem; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15); }
#tab-menu .menu-category-box-text { gap: 0.625rem; }
#tab-menu .menu-category-box-text h2 { color: inherit; font-family: "Playfair Display", Georgia, "Times New Roman", serif; font-size: 1.375rem; font-weight: 800; letter-spacing: 0; text-transform: none; line-height: 1.15; }
#tab-menu .menu-category-box-text h2::after { display: none; }
#tab-menu .menu-category-box-text span { padding: 0.125rem 0.625rem; background: var(--menu-gold); color: #3b2a00; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.06em; }

/* ===== 4. Item cards ===== */
#tab-menu #menuGrid { gap: 1.25rem; }
#tab-menu #menuGrid .menu-card { background: #fff; border: 1px solid #e9dde1; border-radius: 1.25rem; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.09), 0 1px 3px rgba(0, 0, 0, 0.06); transition: box-shadow 0.2s, transform 0.2s; }
#tab-menu #menuGrid .menu-card:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.06); transform: translateY(-2px); }
#tab-menu #menuGrid .menu-card-body { padding: 1.25rem 1.375rem 1.375rem; flex: 1 1 auto; display: flex; flex-direction: column; }
/* the Add / quantity area always sits at the bottom of the card, whatever the text length */
#tab-menu #menuGrid .menu-card-actions { margin-top: auto; padding-top: 0.75rem; }
#tab-menu #menuGrid .menu-card-name { font-size: 1.25rem; font-weight: 800; line-height: 1.25; color: #2a1d21; }
#tab-menu #menuGrid .menu-card-name::after { content: ""; display: block; width: 3rem; height: 3px; margin-top: 0.625rem; border-radius: 3px; background: linear-gradient(90deg, var(--menu-gold), var(--bq-accent, #7b1c3a)); }
#tab-menu #menuGrid .menu-card-desc { margin-top: 0.25rem; color: #6b6266; font-size: 0.9375rem; line-height: 1.6; }
#tab-menu #menuGrid .menu-card-price { margin-top: 0.5rem; color: var(--bq-accent-ink, var(--bq-accent, #7b1c3a)); font-size: 1.125rem; font-weight: 800; }
#tab-menu #menuGrid .add-btn { min-height: 2.75rem; padding: 0.625rem 1rem; background: var(--bq-accent, #7b1c3a); color: var(--bq-accent-text, #fff); border-radius: 9999px; font-size: 0.9375rem; font-weight: 700; }
#tab-menu #menuGrid .add-btn:hover { background: var(--bq-accent-hover, #4a0f22); }
#tab-menu #menuGrid .add-btn:disabled { background: #e5e2e3; color: #7b7276; }
@media (min-width: 1280px) { #tab-menu #menuGrid:not(.menu-list-view) { grid-template-columns: repeat(4, 1fr); } }

/* list view keeps the same look with a compact image column */
#tab-menu #menuGrid.menu-list-view .menu-card-body { padding: 1rem 1.125rem; }

/* ===== Small screens ===== */
@media (max-width: 640px) {
  #tab-menu .category-btn { padding: 0.25rem 0.75rem; font-size: 0.875rem; }
  #tab-menu .category-btn-icon { width: 1.5rem; height: 1.5rem; }
  #tab-menu .menu-toolbar { gap: 0.5rem; }
  /* status, sort and layout stay on ONE line; only the sort dropdown shrinks */
  #tab-menu .menu-toolbar-controls { width: 100%; flex-wrap: nowrap; gap: 0.375rem; justify-content: space-between; }
  #tab-menu .menu-status-wrap, #tab-menu .menu-view-toggle { flex: 0 0 auto; }
  #tab-menu .menu-status { padding: 0 0.625rem; font-size: 0.8125rem; }
  #tab-menu .menu-sort-wrap { flex: 1 1 0; min-width: 0; }
  #tab-menu .menu-sort { width: 100%; min-width: 0; padding-left: 0.75rem; padding-right: 1.75rem; font-size: 0.8125rem; text-overflow: ellipsis; }
  #tab-menu .menu-category-box { gap: 0.5rem; padding: 0.375rem 0.875rem; min-height: 2.75rem; border-radius: 0.75rem; }
  #tab-menu .menu-category-box::before,
  #tab-menu .menu-category-box::after { display: none; }
  #tab-menu .menu-category-box-icon { width: 1.75rem; height: 1.75rem; }
  #tab-menu .menu-category-box-text { gap: 0.5rem; }
  #tab-menu .menu-category-box-text h2 { font-size: 1.125rem; }
  #tab-menu .menu-category-box-text span { padding: 0.1rem 0.5rem; font-size: 0.625rem; }
  #tab-menu #menuGrid .menu-card-body { padding: 1rem; }
}

/* ===================================================================
   Page layout: header, banner (name + search), closed alert, pills, toolbar
   =================================================================== */

/* ----- Header: logo on the left, tabs inline next to it (wide screens) ----- */
@media (min-width: 900px) {
  .customer-masthead { justify-content: flex-start; gap: 2.5rem; padding-top: 0.5rem; padding-bottom: 0.5rem; }
  .customer-masthead .nav-tabs { flex: 1 1 auto; max-width: none; min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
  .customer-masthead .nav-tabs-inner { gap: 0.25rem; align-items: center; }
  .customer-masthead .nav-tab { flex: 0 0 auto; gap: 0.625rem; min-height: 0; padding: 0.625rem 1rem; border: 0; border-radius: 0.75rem; background: transparent; color: #3a2f33; font-size: 1rem; font-weight: 600; box-shadow: none; }
  .customer-masthead .nav-tab svg { flex: 0 0 1.625rem; width: 1.625rem; height: 1.625rem; padding: 0; border-radius: 0; background: transparent; color: rgba(var(--bq-accent-rgb, 123, 28, 58), 0.6); }
  .customer-masthead .nav-tab:hover { background: #f6f1f2; color: #3a2f33; box-shadow: none; }
  .customer-masthead .nav-tab.active { background: rgba(var(--bq-accent-rgb, 123, 28, 58), 0.09); color: var(--bq-accent, #7b1c3a); box-shadow: none; }
  .customer-masthead .nav-tab.active > span { color: var(--bq-accent, #7b1c3a); font-weight: 700; }
  .customer-masthead .nav-tab.active svg { background: transparent; color: var(--bq-accent, #7b1c3a); }
  .customer-masthead #authTab { margin-left: auto; border: 1px solid #e5e7eb; background: #fff; }
  .customer-masthead #authTab:not(.active):hover { background: #f6f1f2; }
}

/* ----- Toolbar: hours status, sort and layout on the right ----- */
#tab-menu .menu-toolbar { justify-content: flex-end; }
#tab-menu .menu-toolbar-controls { margin-left: auto; }

/* ----- Search sits at the left of the toolbar ----- */
#tab-menu .menu-toolbar .search-bar { flex: 1 1 16rem; min-width: 0; max-width: 32rem; }
#tab-menu .menu-toolbar-controls { margin-left: auto; }

/* ----- Header separation: a clear line and a soft shadow below it ----- */
.customer-masthead { position: relative; z-index: 35; border-bottom: 1px solid #e2e2e6; box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07); }

/* ----- Phone header: tab icons use the light theme colour too ----- */
@media (max-width: 899px) {
  .customer-masthead .nav-tab:not(.active) svg { color: rgba(var(--bq-accent-rgb, 123, 28, 58), 0.65); background: rgba(var(--bq-accent-rgb, 123, 28, 58), 0.08); }
  .customer-masthead #authTab:not(.active) svg { color: rgba(var(--bq-accent-rgb, 123, 28, 58), 0.65); }
}
