/* eMenu Plugin - Frontend Styles v1.0 - dev.com.vn */
/* ASCII only in this file */

:root {
  --em-primary:      #e8420a;
  --em-primary-dark: #c23508;
  --em-accent:       #ff9500;
  --em-green:        #27ae60;
  --em-bg:           #fff8f4;
  --em-card-bg:      #ffffff;
  --em-text:         #1a1a1a;
  --em-muted:        #777;
  --em-border:       #f0e4da;
  --em-radius:       16px;
  --em-shadow:       0 4px 24px rgba(232,66,10,0.09);
  --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: 700; 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(232,66,10,0.3); 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: 900; 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: 700;
  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(auto-fill, minmax(120px, 1fr));
  gap: 16px;
}
.em-category-card {
  background: var(--em-card-bg); border-radius: var(--em-radius);
  padding: 20px 12px; text-align: center; cursor: pointer;
  border: 2px solid var(--em-border);
  transition: all .2s; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; align-items: center;
}
.em-category-card:hover {
  border-color: var(--em-primary); transform: translateY(-3px);
  box-shadow: var(--em-shadow); color: var(--em-text);
}
.em-cat-icon  { font-size: 34px; margin-bottom: 8px; display: block; }
.em-cat-name  { font-size: 13px; font-weight: 700; color: var(--em-text); }
.em-cat-count { font-size: 11px; color: var(--em-muted); font-weight: 500; margin-top: 2px; }

/* ── 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: 900; font-family: var(--em-font);
}

.em-badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 11px; font-weight: 700;
  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: 800; 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: 700; color: #b8860b; flex-shrink: 0;
}
.em-card-tags  { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.em-tag {
  background: #fff0ea; 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: 700; 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: 700; 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: 700; 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: 800; 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: 700;
  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: 700; 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: 900; 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: 900; 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: 800; 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: 700; color: var(--em-primary); margin-bottom: 10px; padding: 8px 16px; background: #fff0ea; 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: 700; 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: 800; 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: 700; font-size: 14px; color: var(--em-text); }
.em-faq-q:after { content: '+'; font-size: 20px; font-weight: 900; 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: 700; 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: #fff0ea; }
.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: 700; 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: #fff0ea; border-color: var(--em-primary); color: var(--em-primary); }

/* Reset link */
.em-filter-reset {
  font-size: 12px; font-weight: 700; 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; }
