/* ============================================================
   FANUS CAFE & RESTRO — Digital Table Menu (scan.html)
   Mobile-first. Brand vars come from css/style.css
   ============================================================ */

.scan-body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  padding-bottom: 40px;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- Top brand bar ---------- */
.scan-head {
  background: var(--green);
  color: var(--cream);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.scan-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.scan-brand img { width: 34px; height: 34px; object-fit: contain; }
.scan-brand span { display: flex; flex-direction: column; line-height: 1.05; }
.scan-brand b {
  font-family: var(--font-head); font-size: 1.15rem; letter-spacing: 1px; color: var(--gold-light);
}
.scan-brand small { font-size: .62rem; letter-spacing: 2px; text-transform: uppercase; opacity: .82; }

.scan-veg {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(166, 184, 154, .18);
  border: 1px solid var(--sage);
  color: var(--sage);
  font-size: .7rem; font-weight: 600;
  padding: 5px 10px; border-radius: 30px; white-space: nowrap;
}
.scan-veg i {
  width: 9px; height: 9px; border-radius: 50%;
  background: #35a35a; box-shadow: 0 0 0 2px rgba(53, 163, 90, .3);
}

/* ---------- Hero strip ---------- */
.scan-hero {
  background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--cream);
  text-align: center;
  padding: 26px 18px 30px;
  border-bottom: 3px solid var(--gold);
}
.scan-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 7vw, 2.4rem);
  color: var(--gold-light);
  margin: 0 0 6px;
}
.scan-hero p { margin: 0; font-size: .85rem; opacity: .85; }

/* ---------- Sticky controls ---------- */
.scan-controls {
  position: sticky; top: 0; z-index: 20;
  background: var(--cream);
  padding: 12px 14px 8px;
  box-shadow: 0 6px 16px -10px rgba(18, 63, 48, .5);
}
.scan-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--white);
  border: 1.5px solid var(--sage-soft);
  border-radius: 30px;
  padding: 0 14px;
  transition: border-color .2s;
}
.scan-search:focus-within { border-color: var(--sage-deep); }
.ss-icon { font-size: .95rem; opacity: .6; }
.scan-search input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-family: var(--font-body); font-size: .92rem; color: var(--ink);
  padding: 11px 0;
}
.scan-search input::-webkit-search-cancel-button { display: none; }
.ss-clear {
  border: 0; background: var(--sage-light); color: var(--muted);
  width: 24px; height: 24px; border-radius: 50%; cursor: pointer;
  font-size: .7rem; line-height: 1;
}

/* ---------- Category chips ---------- */
.scan-chips {
  display: flex; gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.scan-chips::-webkit-scrollbar { display: none; }
.scan-chip {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 5px;
  border: 1.5px solid var(--sage-soft);
  background: var(--white);
  color: var(--green);
  font-family: var(--font-body); font-size: .78rem; font-weight: 500;
  padding: 7px 14px; border-radius: 30px; cursor: pointer;
  transition: all .18s;
}
.scan-chip.active {
  background: var(--green); border-color: var(--green); color: var(--cream);
  box-shadow: 0 4px 12px -4px rgba(18, 63, 48, .55);
}

/* ---------- List ---------- */
.scan-main { max-width: 720px; margin: 0 auto; padding: 16px 14px 0; }

.scan-sec { margin-bottom: 26px; }
.scan-sec-title {
  font-family: var(--font-head);
  font-size: 1.22rem;
  color: var(--green);
  display: flex; align-items: center; gap: 9px;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--sage-soft);
}
.scan-sec-title span { font-size: 1.05rem; }

/* ---------- Item card ---------- */
.scan-item {
  background: var(--white);
  border: 1px solid var(--sage-soft);
  border-radius: 12px;
  margin-bottom: 9px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.scan-item.open { border-color: var(--sage-deep); box-shadow: var(--shadow-sm); }

.si-head {
  width: 100%;
  display: flex; align-items: flex-start; gap: 10px;
  background: transparent; border: 0; cursor: pointer;
  text-align: left;
  padding: 13px 14px;
  font-family: var(--font-body);
}
.si-veg {
  flex: 0 0 auto; margin-top: 4px;
  width: 13px; height: 13px;
  border: 1.5px solid #35a35a; border-radius: 3px;
  position: relative;
}
.si-veg::after {
  content: ''; position: absolute; inset: 2.5px;
  border-radius: 50%; background: #35a35a;
}
.si-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.si-name { font-size: .95rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.si-desc { font-size: .74rem; color: var(--muted); line-height: 1.35; }

.si-right { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; }
.si-price {
  font-size: .95rem; font-weight: 700; color: var(--green);
  font-family: var(--font-head);
}
.si-arrow {
  font-size: 1rem; color: var(--sage-deep); line-height: .6;
  transition: transform .22s;
}
.scan-item.open .si-arrow { transform: rotate(180deg); }

/* ---------- Ingredients panel ---------- */
.si-body {
  display: none;
  padding: 0 14px 14px 37px;
  border-top: 1px dashed var(--sage-soft);
  margin-top: -1px;
  padding-top: 12px;
  animation: siIn .22s ease;
}
.scan-item.open .si-body { display: block; }
@keyframes siIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.si-ing-label {
  margin: 0 0 7px;
  font-size: .66rem; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--sage-deep);
}
.si-ing {
  list-style: none; margin: 0 0 10px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.si-ing li {
  background: var(--sage-light);
  color: var(--green);
  font-size: .76rem;
  padding: 4px 10px;
  border-radius: 20px;
}

.si-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.si-tag {
  font-size: .64rem; font-weight: 600; letter-spacing: .4px;
  text-transform: uppercase;
  padding: 3px 9px; border-radius: 20px;
  background: var(--cream-dark); color: var(--muted);
  border: 1px solid rgba(107, 100, 85, .18);
}
.si-tag.stspicy      { background: #fdece7; color: #c0432a; border-color: #f3c8bc; }
.si-tag.stbestseller { background: #fbf1dc; color: #9a7020; border-color: var(--gold); }
.si-tag.stnuts       { background: #f6ecdf; color: #8a5a26; border-color: #e2c8a5; }
.si-tag.stcaffeine   { background: #eae4dc; color: #5c4a35; border-color: #d6c9b8; }

/* ---------- Empty state ---------- */
.scan-empty {
  text-align: center; color: var(--muted);
  padding: 40px 20px; font-size: .95rem;
}
.scan-empty small { font-size: .78rem; opacity: .8; }

/* ---------- Notes / links / footer ---------- */
.scan-note {
  background: var(--sage-light);
  border: 1px dashed var(--sage);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 4px 0 18px;
  text-align: center;
}
.scan-note p { margin: 0 0 6px; font-size: .78rem; color: var(--green); line-height: 1.5; }
.scan-note p:last-child { margin-bottom: 0; }
.scan-hours { font-weight: 600; }

.scan-links {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px;
  margin-bottom: 22px;
}
.sl-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--green); color: var(--cream);
  text-decoration: none;
  font-size: .84rem; font-weight: 500;
  padding: 12px 10px; border-radius: 10px;
  transition: background .2s, transform .12s;
}
.sl-btn:active { transform: scale(.97); }
.sl-wa { background: var(--sage-deep); }

.scan-foot {
  text-align: center; font-size: .72rem; color: var(--muted);
  line-height: 1.7; padding-bottom: 10px;
}

/* ---------- Larger screens ---------- */
@media (min-width: 700px) {
  .scan-hero { padding: 40px 20px 44px; }
  .scan-controls { padding: 16px 20px 10px; }
  .scan-search, .scan-chips { max-width: 720px; margin-left: auto; margin-right: auto; }
  .scan-links { grid-template-columns: repeat(4, 1fr); }
  .si-name { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .si-body { animation: none; }
  .si-arrow, .scan-chip, .sl-btn { transition: none; }
}

/* Rows with nothing to expand are plain, not tappable */
.si-static { cursor: default; }
