/* eMenu Plugin - Frontend Styles v1.0 - dev.com.vn */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');
/* ASCII only in this file */

:root {
  --em-primary:      #2563eb;
  --em-primary-dark: #1d4ed8;
  --em-accent:       #06b6d4;
  --em-green:        #16a34a;
  --em-bg:           #f5f9ff;
  --em-card-bg:      #ffffff;
  --em-text:         #1a1a1a;
  --em-muted:        #777;
  --em-border:       #dbeafe;
  --em-radius:       16px;
  --em-shadow:       0 4px 24px rgba(37,99,235,0.10);
  --em-font:         'Inter', sans-serif;
}

/* ── Buttons ── */
.em-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: none; border-radius: 50px; cursor: pointer;
  font-family: var(--em-font); font-weight: 600; text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  white-space: nowrap;
}
.em-btn:hover { transform: translateY(-1px); }
.em-btn--primary  { background: var(--em-primary); color: #fff; padding: 11px 26px; font-size: 15px; }
.em-btn--primary:hover { background: var(--em-primary-dark); box-shadow: 0 4px 16px rgba(37,99,235,0.30); color: #fff; }
.em-btn--outline  { background: transparent; color: var(--em-primary); padding: 9px 22px; font-size: 14px; border: 2px solid var(--em-primary); }
.em-btn--outline:hover { background: var(--em-primary); color: #fff; }
.em-btn--sm       { padding: 8px 18px; font-size: 13px; }
.em-btn--green    { background: var(--em-green); color: #fff; }
.em-btn--green:hover { background: #219a52; color: #fff; }

/* ── Stats bar ── */
.em-stats-bar {
  background: #fff; display: flex; justify-content: center; gap: 48px;
  padding: 22px 32px; border-bottom: 1.5px solid var(--em-border);
  flex-wrap: wrap; border-radius: var(--em-radius);
}
.em-stat { text-align: center; }
.em-stat__num   { display: block; font-size: 30px; font-weight: 600; color: var(--em-primary); }
.em-stat__label { display: block; font-size: 12px; color: var(--em-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }

/* ── Search ── */
.em-search-form { width: 100%; }
.em-search-wrapper {
  display: flex; align-items: center;
  background: #fff; border-radius: 60px;
  padding: 6px 6px 6px 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  max-width: 720px; margin: 0 auto;
}
.em-search-icon { font-size: 20px; margin-right: 10px; flex-shrink: 0; }
.em-search-input {
  flex: 1; border: none; outline: none;
  font-size: 16px; font-family: var(--em-font);
  font-weight: 600; color: var(--em-text); background: transparent;
}
.em-search-input::placeholder { color: #bbb; font-weight: 400; }
.em-search-btn {
  background: var(--em-primary); color: #fff;
  border: none; border-radius: 50px;
  padding: 12px 28px; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: background .2s; font-family: var(--em-font);
}
.em-search-btn:hover { background: var(--em-primary-dark); }

/* ── Category grid ── */
.em-category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.em-category-card {
  background: var(--em-card-bg);
  border-radius: var(--em-radius);
  padding: 16px 14px;
  text-align: left;
  cursor: pointer;
  border: 2px solid var(--em-border);
  transition: all .2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 104px;
}
.em-category-card:hover {
  border-color: var(--em-primary);
  transform: translateY(-3px);
  box-shadow: var(--em-shadow);
  color: var(--em-text);
}
.em-cat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.em-cat-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  background: #eff6ff;
  color: var(--em-primary);
}
.em-cat-icon .em-svg-icon {
  width: 21px;
  height: 21px;
  display: block;
}
.em-cat-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--em-text);
  line-height: 1.25;
}
.em-cat-count {
  font-size: 11px;
  color: var(--em-muted);
  font-weight: 500;
  margin-top: 8px;
  margin-left: 46px;
}
@media (max-width: 1100px) { .em-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 768px)  { .em-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 520px)  { .em-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── Restaurant grid ── */
.em-restaurant-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1100px) { .em-restaurant-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .em-restaurant-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 420px)  { .em-restaurant-grid { grid-template-columns: 1fr; } }

/* ── Restaurant card ── */
.em-restaurant-card {
  background: var(--em-card-bg); border-radius: var(--em-radius);
  overflow: hidden; border: 1.5px solid var(--em-border);
  box-shadow: var(--em-shadow);
  transition: transform .2s, box-shadow .2s;
}
.em-restaurant-card:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(232,66,10,0.15); }

.em-card-image-link { display: block; }
.em-card-image {
  width: 100%; height: 190px; overflow: hidden;
  position: relative; display: flex; align-items: center; justify-content: center;
}
.em-card-image img { width: 100%; height: 100%; object-fit: cover; }
.em-card-emoji { font-size: 68px; }
.em-avatar-initials {
  display: flex; align-items: center; justify-content: center;
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--em-primary); color: #fff;
  font-size: 28px; font-weight: 600; font-family: var(--em-font);
}

.em-badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 50px; color: #fff;
}
.em-badge--hot      { background: var(--em-primary); }
.em-badge--new      { background: var(--em-green); }
.em-badge--featured { background: var(--em-accent); }

.em-card-body { padding: 16px 18px 18px; }
.em-card-top  { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.em-card-name { font-size: 16px; font-weight: 600; color: var(--em-text); line-height: 1.2; flex: 1; margin-right: 8px; }
.em-card-name a { text-decoration: none; color: inherit; }
.em-card-name a:hover { color: var(--em-primary); }
.em-card-rating {
  display: flex; align-items: center; gap: 4px;
  background: #fffbe6; border: 1.5px solid #ffe08a;
  border-radius: 50px; padding: 4px 10px;
  font-size: 13px; font-weight: 600; color: #b8860b; flex-shrink: 0;
}
.em-card-tags  { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.em-tag {
  background: #eff6ff; color: var(--em-primary);
  border: 1px solid #ffd5c0; border-radius: 50px;
  padding: 3px 10px; font-size: 11px; font-weight: 600;
  text-decoration: none; transition: all .2s;
}
.em-tag:hover { background: var(--em-primary); color: #fff; }
.em-card-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--em-muted); margin-bottom: 8px; font-weight: 500; }
.em-card-meta span { display: flex; align-items: center; gap: 3px; }
.em-card-review { font-size: 13px; color: #555; font-style: italic; margin-bottom: 12px; line-height: 1.5; }
.em-review-author { font-weight: 600; color: var(--em-muted); font-style: normal; }
.em-card-actions { display: flex; gap: 8px; }

/* ── Filter bar ── */
.em-filter-bar { margin-bottom: 28px; }
.em-filter-toggle {
  display: none; align-items: center; gap: 8px;
  background: #fff; border: 2px solid var(--em-border);
  border-radius: 50px; padding: 10px 20px;
  font-family: var(--em-font); font-weight: 600; font-size: 14px;
  cursor: pointer; color: var(--em-text); width: 100%;
  justify-content: center; margin-bottom: 12px;
}
.em-filter-toggle[aria-expanded="true"] + .em-filter-panel { display: block; }
.em-filter-panel { background: #fff; border-radius: var(--em-radius); padding: 20px; border: 1.5px solid var(--em-border); }
.em-filter-group { margin-bottom: 16px; }
.em-filter-group:last-child { margin-bottom: 0; }
.em-filter-label { display: block; font-size: 13px; font-weight: 600; color: var(--em-text); margin-bottom: 8px; }
.em-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.em-chip {
  background: #fff; color: var(--em-muted);
  border: 1.5px solid var(--em-border); border-radius: 50px;
  padding: 6px 16px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .2s; text-decoration: none;
}
.em-chip:hover, .em-chip.active { background: var(--em-primary); color: #fff; border-color: var(--em-primary); }

@media (max-width: 768px) {
  .em-filter-toggle { display: flex; }
  .em-filter-panel  { display: none; }
}

/* ── Contact box ── */
.em-contact-box { background: #fff; border-radius: var(--em-radius); padding: 28px; border: 1.5px solid var(--em-border); box-shadow: var(--em-shadow); }
.em-contact-box__title { font-size: 20px; font-weight: 600; margin-bottom: 16px; color: var(--em-text); }
.em-contact-socials { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.em-contact-social {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: 50px; font-size: 13px; font-weight: 600;
  text-decoration: none; transition: all .2s; border: 1.5px solid transparent;
}
.em-contact-social--phone { background: var(--em-primary); color: #fff; }
.em-contact-social--zalo  { background: #0068ff; color: #fff; }
.em-contact-social--fb    { background: #1877f2; color: #fff; }
.em-contact-social--ig    { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; }
.em-contact-social--email { background: #fff; color: var(--em-text); border-color: var(--em-border); }

/* ── Contact form / Submit form ── */
.em-cf, .em-sf { display: flex; flex-direction: column; gap: 12px; }
.em-cf__row, .em-sf__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .em-cf__row, .em-sf__row { grid-template-columns: 1fr; } }
.em-cf__input, .em-sf__input {
  width: 100%; padding: 12px 16px; border-radius: 12px;
  border: 1.5px solid var(--em-border); font-family: var(--em-font);
  font-size: 14px; font-weight: 500; color: var(--em-text);
  background: var(--em-bg); outline: none; transition: border-color .2s;
}
.em-cf__input:focus, .em-sf__input:focus { border-color: var(--em-primary); background: #fff; }
.em-cf__textarea, .em-sf__textarea { resize: vertical; min-height: 100px; }
.em-cf__btn, .em-sf__btn { align-self: flex-start; }
.em-cf__msg, .em-sf__msg { padding: 12px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; background: #f0fdf4; color: #166534; }

.em-sf__section { background: var(--em-bg); border-radius: 12px; padding: 18px; border: 1.5px solid var(--em-border); }
.em-sf__section h4 { font-size: 15px; font-weight: 600; margin-bottom: 14px; color: var(--em-text); }
.em-sf__section label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--em-muted); }
.em-submit-form-wrap { max-width: 720px; margin: 0 auto; }
.em-submit-form__title { font-size: 26px; font-weight: 600; margin-bottom: 8px; color: var(--em-text); }
.em-submit-form__sub   { color: var(--em-muted); margin-bottom: 24px; font-size: 15px; }

/* ── No results ── */
.em-no-result { text-align: center; padding: 48px; color: var(--em-muted); font-size: 16px; }

/* ── Load more ── */
.em-load-more-wrap { text-align: center; margin-top: 36px; }

/* ── Mobile bottom nav ── */
.em-mobile-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: #fff; border-top: 2px solid var(--em-border);
  flex-direction: row; justify-content: space-around; align-items: center;
  padding: 8px 0; box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
@media (max-width: 768px) { .em-mobile-nav { display: flex; } body { padding-bottom: 64px; } }
.em-mobile-nav__item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  text-decoration: none; color: var(--em-muted); font-size: 10px; font-weight: 600;
  padding: 6px 12px; border-radius: 10px; transition: all .2s; flex: 1;
}
.em-mobile-nav__item.active, .em-mobile-nav__item:hover { color: var(--em-primary); }
.em-mobile-nav__icon { font-size: 20px; }

/* ── Archive sidebar layout ── */
.em-archive-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.em-sidebar { position: sticky; top: 80px; }
@media (max-width: 900px) { .em-archive-layout { grid-template-columns: 1fr; } .em-sidebar { position: static; } }

/* ── Single page ── */
.em-single-layout { display: grid; grid-template-columns: 1fr 300px; gap: 36px; align-items: start; }
@media (max-width: 900px) { .em-single-layout { grid-template-columns: 1fr; } }

.em-single-hero { position: relative; border-radius: var(--em-radius); overflow: hidden; height: 320px; display: flex; align-items: center; justify-content: center; margin-bottom: 28px; }
.em-single-hero img { width: 100%; height: 100%; object-fit: cover; }
.em-single-hero .em-card-emoji { font-size: 100px; }
.em-single-hero__overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.em-single-hero__title { font-size: 28px; font-weight: 600; color: #fff; line-height: 1.2; }
.em-single-hero__meta  { color: rgba(255,255,255,0.85); font-size: 14px; margin-top: 4px; }

.em-section-title { font-size: 20px; font-weight: 600; color: var(--em-text); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--em-border); }
.em-section-title span { color: var(--em-primary); }

/* ── Menu section ── */
.em-menu-section { margin-bottom: 24px; }
.em-menu-cat { font-size: 16px; font-weight: 600; color: var(--em-primary); margin-bottom: 10px; padding: 8px 16px; background: #eff6ff; border-radius: 8px; }
.em-menu-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--em-border); gap: 12px; }
.em-menu-item:last-child { border-bottom: none; }
.em-menu-item__name  { font-size: 14px; font-weight: 600; color: var(--em-text); }
.em-menu-item__desc  { font-size: 12px; color: var(--em-muted); margin-top: 2px; }
.em-menu-item__price { font-size: 14px; font-weight: 600; color: var(--em-primary); white-space: nowrap; }
.em-menu-item__img   { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }

/* ── Gallery ── */
.em-gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; border-radius: var(--em-radius); overflow: hidden; }
.em-gallery-grid img { width: 100%; height: 140px; object-fit: cover; cursor: pointer; transition: transform .2s; }
.em-gallery-grid img:hover { transform: scale(1.04); }
@media (max-width: 600px) { .em-gallery-grid { grid-template-columns: repeat(2,1fr); } }

/* ── FAQ ── */
.em-faq-item { border-bottom: 1.5px solid var(--em-border); }
.em-faq-q { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--em-text); }
.em-faq-q:after { content: '+'; font-size: 20px; font-weight: 600; color: var(--em-primary); transition: transform .2s; }
.em-faq-item.open .em-faq-q:after { transform: rotate(45deg); }
.em-faq-a { display: none; padding: 0 0 14px; font-size: 13px; color: var(--em-muted); line-height: 1.65; }
.em-faq-item.open .em-faq-a { display: block; }

/* ── Info box (sidebar) ── */
.em-info-box { background: #fff; border-radius: var(--em-radius); padding: 20px; border: 1.5px solid var(--em-border); box-shadow: var(--em-shadow); margin-bottom: 20px; }
.em-info-row { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--em-border); font-size: 13px; align-items: flex-start; }
.em-info-row:last-child { border-bottom: none; }
.em-info-row__icon { flex-shrink: 0; font-size: 16px; margin-top: 1px; }
.em-info-row__content { flex: 1; }
.em-info-row__label { font-weight: 600; color: var(--em-text); display: block; }
.em-info-row__val   { color: var(--em-muted); }

/* ── Video embed ── */
.em-video-wrap { position: relative; padding-top: 56.25%; border-radius: var(--em-radius); overflow: hidden; }
.em-video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

/* ── Related ── */
.em-related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media (max-width: 768px) { .em-related-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px)  { .em-related-grid { grid-template-columns: 1fr; } }

/* ── Breadcrumb ── */
.em-breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--em-muted); margin-bottom: 20px; font-weight: 500; }
.em-breadcrumb a { color: var(--em-primary); text-decoration: none; }
.em-breadcrumb a:hover { text-decoration: underline; }
.em-breadcrumb__sep { color: var(--em-border); }

/* ── Import page ── */
.emenu-import-wrap { max-width: 900px; }
.em-import-zone { border: 3px dashed var(--em-border); border-radius: var(--em-radius); padding: 48px; text-align: center; background: var(--em-bg); margin: 24px 0; transition: border-color .2s; }
.em-import-zone.dragover { border-color: var(--em-primary); background: #eff6ff; }
.em-import-zone__icon { font-size: 48px; display: block; margin-bottom: 12px; }
.em-progress-bar { background: var(--em-border); border-radius: 50px; height: 12px; overflow: hidden; margin: 16px 0; }
.em-progress-bar__fill { background: var(--em-primary); height: 100%; border-radius: 50px; transition: width .3s; width: 0; }

/* ── Admin styles ── */
.em-settings-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 24px; border-bottom: 2px solid var(--em-border); padding-bottom: 0; }
.em-stab { background: none; border: none; border-bottom: 3px solid transparent; padding: 12px 20px; font-weight: 600; cursor: pointer; font-size: 14px; color: var(--em-muted); margin-bottom: -2px; transition: all .2s; }
.em-stab.active, .em-stab:hover { color: var(--em-primary); border-bottom-color: var(--em-primary); }
.em-tab-panel { display: none; }
.em-tab-panel.active { display: block; }

/* ── Compact filter bar ── */
.em-filter-compact {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 12px 0; margin-bottom: 20px;
}

/* Mini search inside filter */
.em-filter-search-wrap {
  display: flex; align-items: center; gap: 6px;
  background: #fff; border: 1.5px solid var(--em-border);
  border-radius: 50px; padding: 7px 14px;
  flex: 0 0 auto; min-width: 160px;
  transition: border-color .2s;
}
.em-filter-search-wrap:focus-within { border-color: var(--em-primary); }
.em-filter-search-icon { font-size: 14px; flex-shrink: 0; }
.em-filter-search-input {
  border: none; outline: none; background: transparent;
  font-family: var(--em-font); font-size: 13px; font-weight: 500;
  color: var(--em-text); width: 120px;
}
.em-filter-search-input::placeholder { color: #bbb; }

/* Select dropdowns */
.em-filter-select {
  appearance: none; -webkit-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23777' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") right 12px center no-repeat;
  border: 1.5px solid var(--em-border); border-radius: 50px;
  padding: 7px 32px 7px 14px;
  font-family: var(--em-font); font-size: 13px; font-weight: 600;
  color: var(--em-text); cursor: pointer; transition: all .2s;
  white-space: nowrap;
}
.em-filter-select:hover, .em-filter-select:focus { border-color: var(--em-primary); outline: none; }
.em-filter-select:has(option[value=""]:not(:checked)) { color: var(--em-text); }

/* Active state when value selected */
.em-filter-select.has-value { background-color: #eff6ff; border-color: var(--em-primary); color: var(--em-primary); }

/* Reset link */
.em-filter-reset {
  font-size: 12px; font-weight: 600; color: var(--em-muted);
  text-decoration: none; padding: 7px 12px; border-radius: 50px;
  border: 1.5px solid var(--em-border); transition: all .2s;
  white-space: nowrap;
}
.em-filter-reset:hover { color: var(--em-primary); border-color: var(--em-primary); }

@media (max-width: 600px) {
  .em-filter-compact { gap: 6px; }
  .em-filter-select  { font-size: 12px; padding: 6px 28px 6px 12px; }
  .em-filter-search-wrap { min-width: 140px; }
  .em-filter-search-input { width: 100px; }
}

/* ── Sidebar CTA buttons ── */
.em-sidebar-ctas { display: flex; flex-direction: column; gap: 8px; margin-bottom: 0; }
.em-btn--full { display: flex !important; justify-content: center; width: 100%; }
.em-btn--zalo { background: #0068ff; color: #fff !important; }
.em-btn--zalo:hover { background: #0052cc; }

/* ── Single section spacing ── */
.em-single-section { margin-bottom: 20px; }

/* ── OLD filter styles (hide if still referenced) ── */
.em-filter-bar    { display: none !important; }
.em-filter-toggle { display: none !important; }

/* ── Update v1.0.4: balanced category grid, review cards, selected dishes ── */
.em-category-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.em-category-card {
  min-height: 98px;
}
.em-cat-head {
  align-items: center;
}
.em-cat-icon {
  color: var(--em-primary);
}
.em-cat-name,
.em-cat-count {
  word-break: normal;
}

.em-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.em-review-card {
  position: relative;
  background: #fff;
  border: 1.5px solid var(--em-border);
  border-radius: var(--em-radius);
  padding: 20px;
  box-shadow: var(--em-shadow);
  min-height: 218px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.em-review-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  color: var(--em-primary);
}
.em-review-card__icon .em-svg-icon {
  width: 21px;
  height: 21px;
}
.em-review-card__rating {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #fffbe6;
  border: 1px solid #ffe08a;
  color: #b8860b;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}
.em-review-card__text {
  color: #444;
  font-size: 14px;
  line-height: 1.65;
  margin: 2px 0 0;
}
.em-review-card__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--em-muted);
  font-size: 12px;
  margin-top: auto;
}
.em-review-card__author {
  font-weight: 600;
}
.em-review-card__area {
  background: #f5f9ff;
  border: 1px solid var(--em-border);
  border-radius: 999px;
  padding: 2px 8px;
}
.em-review-card__restaurant {
  color: var(--em-primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.em-review-card__restaurant:hover {
  text-decoration: underline;
}

.em-dish-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.em-dish-card {
  background: #fff;
  border: 1.5px solid var(--em-border);
  border-radius: var(--em-radius);
  overflow: hidden;
  box-shadow: var(--em-shadow);
  transition: transform .2s, box-shadow .2s;
}
.em-dish-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(232,66,10,0.15);
}
.em-dish-card__media {
  position: relative;
  height: 156px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
}
.em-dish-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.em-dish-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.78);
  color: var(--em-primary);
}
.em-dish-card__icon .em-svg-icon {
  width: 36px;
  height: 36px;
}
.em-dish-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 4px 10px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}
.em-dish-badge--hot { background: var(--em-primary); }
.em-dish-badge--new { background: var(--em-green); }
.em-dish-badge--featured { background: var(--em-accent); }
.em-dish-card__body {
  padding: 15px 16px 16px;
}
.em-dish-card__name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 5px;
}
.em-dish-card__name a {
  color: var(--em-text);
  text-decoration: none;
}
.em-dish-card__name a:hover { color: var(--em-primary); }
.em-dish-card__restaurant {
  color: var(--em-muted);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}
.em-dish-card__desc {
  color: #555;
  font-size: 12px;
  line-height: 1.55;
  margin-bottom: 12px;
}
.em-dish-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.em-dish-card__price {
  color: var(--em-primary);
  font-size: 14px;
  font-weight: 600;
}
.em-dish-card__link {
  color: var(--em-primary);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.em-dish-card__link:hover { text-decoration: underline; }

@media (max-width: 1100px) {
  .em-dish-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .em-review-grid { grid-template-columns: 1fr; }
  .em-dish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 520px) {
  .em-dish-grid { grid-template-columns: 1fr; }
}

/* ── Update v1.0.5: mobile related grids + full hot section ── */
@media (max-width: 520px) {
  .em-restaurant-grid,
  .em-related-grid,
  .em-dish-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  .em-related-grid .em-card-image,
  .em-restaurant-grid .em-card-image {
    height: 126px;
  }
  .em-related-grid .em-card-body,
  .em-restaurant-grid .em-card-body {
    padding: 11px 10px 12px;
  }
  .em-related-grid .em-card-name,
  .em-restaurant-grid .em-card-name {
    font-size: 13px;
    line-height: 1.25;
  }
  .em-related-grid .em-card-rating,
  .em-restaurant-grid .em-card-rating {
    font-size: 11px;
    padding: 3px 7px;
  }
  .em-related-grid .em-card-meta,
  .em-restaurant-grid .em-card-meta {
    gap: 5px;
    font-size: 11px;
  }
  .em-related-grid .em-card-review,
  .em-restaurant-grid .em-card-review {
    display: none;
  }
  .em-related-grid .em-card-actions,
  .em-restaurant-grid .em-card-actions {
    flex-direction: column;
    gap: 6px;
  }
  .em-related-grid .em-btn--sm,
  .em-restaurant-grid .em-btn--sm {
    justify-content: center;
    width: 100%;
    padding: 7px 8px;
    font-size: 12px;
  }
  .em-dish-card__media {
    height: 124px;
  }
  .em-dish-card__body {
    padding: 11px 10px 12px;
  }
  .em-dish-card__name {
    font-size: 13px;
    line-height: 1.25;
  }
  .em-dish-card__restaurant,
  .em-dish-card__desc {
    display: none;
  }
  .em-dish-card__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .em-dish-card__price,
  .em-dish-card__link {
    font-size: 12px;
  }
}

/* Submit restaurant form */
.em-submit-form-wrap {
  max-width: 880px;
  margin: 0 auto 48px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--em-border, #eee);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .06);
}
.em-submit-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}
.em-submit-head__icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #fff7ed;
  color: var(--em-primary, #f97316);
  flex: 0 0 auto;
}
.em-submit-head__icon .em-svg-icon { width: 24px; height: 24px; }
.em-submit-form__title { margin: 0 0 6px; font-size: clamp(24px, 3vw, 34px); line-height: 1.15; font-weight: 600; color: var(--em-text, #111827); }
.em-submit-form__sub { margin: 0; color: var(--em-muted, #6b7280); line-height: 1.65; }
.em-submit-form__sub strong { font-weight: 600; color: var(--em-primary, #f97316); }
.em-sf { gap: 16px; }
.em-sf__section {
  background: #fffaf5;
  border: 1px solid #fed7aa;
  border-radius: 18px;
  padding: 18px;
}
.em-sf__section h4 { display:flex; align-items:center; gap:8px; margin:0 0 14px; font-size:16px; font-weight:600; color:var(--em-text,#111827); }
.em-sf__row { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:14px; }
.em-sf label { display:flex; flex-direction:column; gap:7px; margin:0 0 14px; font-size:13px; font-weight:600; color:var(--em-text,#111827); }
.em-sf label > span { color:#ef4444; }
.em-sf__input {
  width:100%;
  border:1px solid var(--em-border,#e5e7eb);
  border-radius:13px;
  background:#fff;
  color:var(--em-text,#111827);
  padding:12px 13px;
  font-size:15px;
  font-weight:400;
  outline:none;
  transition:border-color .2s, box-shadow .2s;
}
.em-sf__input:focus { border-color:var(--em-primary,#f97316); box-shadow:0 0 0 4px rgba(249,115,22,.12); }
.em-sf select.em-sf__input[multiple] { min-height:130px; padding:9px; }
.em-sf__textarea { min-height:104px; resize:vertical; }
.em-sf__hint { margin:-4px 0 0; color:var(--em-muted,#6b7280); font-size:13px; line-height:1.5; }
.em-sf__agree { flex-direction:row !important; align-items:flex-start; gap:10px !important; margin:2px 0 0 !important; color:var(--em-muted,#6b7280) !important; font-weight:400 !important; line-height:1.55; }
.em-sf__agree input { margin-top:4px; }
.em-sf__actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.em-sf__btn { min-height:46px; }
.em-sf__msg { display:inline-flex; align-items:center; min-height:44px; border-radius:13px; line-height:1.45; }
@media (max-width: 700px) {
  .em-submit-form-wrap { padding: 16px; border-radius: 20px; }
  .em-submit-head { gap: 12px; }
  .em-submit-head__icon { width: 40px; height: 40px; border-radius: 14px; }
  .em-sf__row { grid-template-columns: 1fr; gap: 0; }
  .em-sf__section { padding: 15px; border-radius: 16px; }
  .em-sf__actions { align-items: stretch; flex-direction: column; }
  .em-sf__actions .em-btn, .em-sf__msg { width: 100%; justify-content: center; }
}

/* ── Responsive fix: mobile taxonomy/category grids always 2 columns ── */
@media (max-width: 768px) {
  body .em-category-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  body .em-category-card {
    min-width: 0 !important;
    padding: 14px 12px !important;
    border-radius: 18px !important;
  }
  body .em-cat-head {
    align-items: flex-start !important;
    gap: 8px !important;
  }
  body .em-cat-icon {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    border-radius: 12px !important;
  }
  body .em-cat-icon .em-svg-icon {
    width: 18px !important;
    height: 18px !important;
  }
  body .em-cat-name {
    min-width: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
  }
  body .em-cat-count {
    font-size: 12px !important;
    line-height: 1.25 !important;
  }
}
@media (max-width: 380px) {
  body .em-category-grid { gap: 10px !important; }
  body .em-category-card { padding: 12px 10px !important; }
  body .em-cat-name { font-size: 12.5px !important; }
  body .em-cat-count { font-size: 11.5px !important; }
}



/* StudioPhoto v1.2.1 mobile safeguards */
@media (max-width: 900px) {
  body .em-category-grid,
  body .em-related-grid,
  body .em-dish-grid,
  body .em-restaurant-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}
@media (max-width: 380px) {
  body .em-category-grid,
  body .em-related-grid,
  body .em-dish-grid,
  body .em-restaurant-grid { gap: 10px !important; }
}
