/* ── Outback Menu Plugin Styles v1.2 ────────────────────────────── */

:root {
  --obm-red:    #c8102e;
  --obm-dark:   #1a1a1a;
  --obm-bg:     #faf8f5;
  --obm-card:   #ffffff;
  --obm-border: #e8e2da;
  --obm-text:   #2c2c2c;
  --obm-muted:  #777;
  --obm-radius: 10px;
}

#obm-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 40px;
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--obm-text);
}

/* ── Header ──────────────────────────────────────────────────────── */
#obm-header { text-align: center; padding: 24px 0 16px; }

.obm-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--obm-red);
  margin: 0 0 4px;
  letter-spacing: -.5px;
}
.obm-subtitle { font-size: .9rem; color: var(--obm-muted); margin: 0 0 16px; }

/* ── Search ──────────────────────────────────────────────────────── */
#obm-search-wrap { display: flex; justify-content: center; margin-bottom: 12px; }

#obm-search {
  width: 100%; max-width: 420px;
  padding: 10px 16px;
  border: 2px solid var(--obm-border);
  border-radius: 24px;
  font-size: .95rem;
  outline: none;
  transition: border-color .2s;
  background: #fff;
  color: var(--obm-text);
}
#obm-search:focus { border-color: var(--obm-red); }

/* ── Controls ────────────────────────────────────────────────────── */
#obm-controls {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: 10px 18px;
  background: var(--obm-bg);
  border: 1px solid var(--obm-border);
  border-radius: var(--obm-radius);
  padding: 12px 18px;
  margin-bottom: 16px;
}
.obm-ctrl-group { display: flex; align-items: center; gap: 6px; }
.obm-ctrl-label {
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px;
  color: var(--obm-muted); font-family: sans-serif; white-space: nowrap;
}
.obm-select {
  border: 1.5px solid var(--obm-border); border-radius: 6px;
  padding: 5px 10px; font-size: .82rem;
  background: #fff; color: var(--obm-text);
  cursor: pointer; outline: none;
  transition: border-color .2s; font-family: sans-serif;
}
.obm-select:focus { border-color: var(--obm-red); }


/* Result count */
#obm-result-count {
  display: block; text-align: right;
  font-size: .78rem; color: var(--obm-muted);
  font-family: sans-serif; margin-bottom: 10px;
}

/* ── Tabs ────────────────────────────────────────────────────────── */
#obm-tabs {
  display: flex; flex-wrap: wrap; gap: 6px;
  justify-content: center; margin-bottom: 16px;
}
.obm-tab {
  background: var(--obm-card);
  border: 2px solid var(--obm-border);
  border-radius: 20px; padding: 6px 14px;
  font-size: .82rem; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap; font-family: inherit; color: inherit;
}
.obm-tab:hover, .obm-tab.active {
  background: var(--obm-red); border-color: var(--obm-red); color: #fff;
}

/* ── Grid ────────────────────────────────────────────────────────── */
#obm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* ── Card ────────────────────────────────────────────────────────── */
.obm-card {
  background: var(--obm-card);
  border: 1px solid var(--obm-border);
  border-radius: var(--obm-radius);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
  transition: box-shadow .2s, transform .2s;
  cursor: pointer;
}
.obm-card:hover, .obm-card:focus {
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  transform: translateY(-2px); outline: none;
}

.obm-img-wrap {
  position: relative; width: 100%; aspect-ratio: 3/2;
  background: #f0ece6; overflow: hidden;
}
.obm-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.obm-no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #bbb; font-size: .75rem; }

.obm-body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; gap: 5px; }

/* ── Category badge — theme-safe: uses hardcoded dark bg + white text ── */
.obm-cat-badge {
  display: inline-block;
  background: #1a1a1a !important;
  color: #ffffff !important;
  font-size: .65rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .7px !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
  font-family: sans-serif !important;
  line-height: 1.6 !important;
  border: none !important;
  box-shadow: none !important;
  width: auto !important;
  max-width: 100% !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.obm-name {
  font-size: 1rem; font-weight: 700;
  margin: 0; line-height: 1.3; color: var(--obm-dark);
}
.obm-desc {
  font-size: .78rem; color: var(--obm-muted); line-height: 1.5; margin: 0;
  flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.obm-footer {
  display: flex; align-items: center; gap: 6px;
  margin-top: auto; flex-wrap: wrap;
  padding-top: 8px; border-top: 1px solid var(--obm-border);
}
.obm-price { font-size: 1rem; font-weight: 700; color: var(--obm-red); }
.obm-cal {
  font-size: .85rem; font-weight: 600; color: #555;
  background: var(--obm-bg); border-radius: 6px;
  padding: 2px 8px; border: 1px solid var(--obm-border);
}
.obm-size-badge {
  font-size: .72rem; font-weight: 700; font-family: sans-serif;
  background: #eef2ff; color: #3b4fd8;
  border-radius: 4px; padding: 2px 7px; border: 1px solid #c7d0fa;
}
.obm-detail-hint {
  font-size: .72rem; color: var(--obm-muted);
  margin-left: auto; font-family: sans-serif; white-space: nowrap;
}
.obm-card:hover .obm-detail-hint { color: var(--obm-red); }

/* ── Modal ───────────────────────────────────────────────────────── */
#obm-modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 99999;
  background: rgba(0,0,0,.65);
  align-items: center; justify-content: center; padding: 16px;
}
#obm-modal-overlay.open { display: flex; }

#obm-modal {
  background: #fff; border-radius: 14px;
  width: 100%; max-width: 620px; max-height: 90vh;
  overflow-y: auto; position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
  animation: obm-pop .18s ease;
}
@keyframes obm-pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }

#obm-modal-close {
  position: sticky; top: 10px; float: right; margin: 10px 12px 0 0;
  background: rgba(0,0,0,.1); border: none;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 1.1rem; cursor: pointer; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
#obm-modal-close:hover { background: rgba(0,0,0,.2); }

#obm-modal-img-wrap { clear: both; }
#obm-modal-img-wrap img {
  width: 100%; aspect-ratio: 3/2; object-fit: cover;
  display: block;
}

#obm-modal-body { padding: 20px 24px 28px; }
#obm-modal-body h2 {
  font-size: 1.4rem; margin: 6px 0 8px; color: var(--obm-dark); line-height: 1.3;
}
#obm-modal-body > p {
  font-size: .88rem; color: var(--obm-muted); line-height: 1.6; margin: 0 0 18px;
}

/* Modal section headers */
.obm-modal-section-hdr {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .6px; color: var(--obm-muted);
  font-family: sans-serif; margin: 18px 0 6px;
}

/* Nutrition / modifier table */
.obm-nut-table {
  border: 1px solid var(--obm-border); border-radius: 8px;
  overflow: hidden; font-family: sans-serif;
}
.obm-nut-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 14px; border-bottom: 1px solid var(--obm-border);
  font-size: .85rem; gap: 12px;
}
.obm-nut-row:last-child { border-bottom: none; }
.obm-nut-row:nth-child(even) { background: var(--obm-bg); }
.obm-nut-label { color: var(--obm-text); flex: 1; }
.obm-nut-val   { font-weight: 700; color: var(--obm-red); white-space: nowrap; }

.obm-size-row { background: #fff8f8; }
.obm-size-meta { display: flex; align-items: center; gap: 10px; }
.obm-cal-sm {
  font-size: .75rem; color: var(--obm-muted);
  background: var(--obm-bg); border-radius: 4px; padding: 1px 6px;
}

/* ── Disclaimer ──────────────────────────────────────────────────── */
#obm-disclaimer {
  text-align: center; font-size: .75rem; color: #aaa;
  margin-top: 32px; font-family: sans-serif;
}

/* ── Mobile ──────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  #obm-grid    { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .obm-tab     { font-size: .75rem; padding: 5px 11px; }
  #obm-controls{ flex-direction: column; align-items: flex-start; }
  #obm-modal-body { padding: 16px; }
  #obm-modal-body h2 { font-size: 1.2rem; }
}
