/* Freshhouse Outlet Menu page */

.fh-om-page {
  min-height: 100vh;
  background: hsl(210 40% 98%);
}

.fh-om-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e6ede9;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
.fh-om-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.fh-om-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: #3f9367;
  text-decoration: none;
}
.fh-om-back:hover { color: #2d6e4f; }
.fh-om-nav-logo { height: 34px; width: auto; }
.fh-om-nav-cta {
  background: hsl(var(--primary));
  color: #fff !important;
  border-radius: 100px;
  padding: 10px 24px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  white-space: nowrap;
  transition: background 0.2s;
}
.fh-om-nav-cta:hover {
  background: hsl(var(--primary-dark));
  color: #fff !important;
}

.fh-om-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 0;
}
.fh-om-header h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #111;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.5px;
}
.fh-om-header p {
  margin: 6px 0 0;
  font-size: 16px;
  color: #888;
}

.fh-om-tabs-wrap {
  background: #fff;
  border-bottom: 1px solid #e6ede9;
  margin-top: 24px;
}
.fh-om-tabs {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.fh-om-tabs::-webkit-scrollbar { display: none; }
.fh-om-tab {
  padding: 8px 22px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  font-family: 'Outfit', sans-serif;
  background: #f0f5f2;
  color: #3f9367;
  white-space: nowrap;
  transition: all 0.15s;
}
.fh-om-tab:hover { background: #e4f0ea; }
.fh-om-tab.is-active {
  background: #3f9367;
  color: #fff;
}

.fh-om-grid-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 24px 80px;
}
.fh-om-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* ── Item card ── */
.fh-om-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #edf3ef;
  display: flex;
  gap: 0;
  cursor: pointer;
  transition: all 0.18s ease;
}
.fh-om-card.is-hidden { display: none; }
.fh-om-card:hover {
  box-shadow: 0 8px 32px rgba(63, 147, 103, 0.15);
  border-color: #b6d9c5;
  transform: translateY(-2px);
}
.fh-om-card-img-wrap {
  width: 180px;
  height: 180px;
  flex-shrink: 0;
  background: hsl(149 40% 96%);
  position: relative;
  overflow: hidden;
}
.fh-om-card-img-wrap img[src*="logo-bottom"] {
  object-fit: contain;
  padding: 1.25rem;
  background: #f4f4f1;
}

.fh-om-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.fh-om-card:hover .fh-om-card-img-wrap img {
  transform: scale(1.04);
}
.fh-om-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 100px;
  padding: 3px 10px;
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  max-width: calc(100% - 20px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fh-om-variants-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: #3f9367;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: 100px;
  padding: 3px 9px;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.fh-om-variants-badge--modal {
  bottom: 12px;
  left: 12px;
  font-size: 10px;
  padding: 3px 10px;
}
.fh-om-variants-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  display: inline-block;
}
.fh-om-card-body {
  flex: 1;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.fh-om-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.fh-om-card-name {
  font-size: 16px;
  font-weight: 800;
  color: #111;
  font-family: 'Outfit', sans-serif;
  line-height: 1.3;
}
.fh-om-card-price {
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 800;
  color: #3f9367;
  font-family: 'Outfit', sans-serif;
  white-space: nowrap;
}
.fh-om-card-price span {
  font-size: 12px;
  font-weight: 600;
  color: #aaa;
}
.fh-om-card-desc {
  font-size: 12px;
  color: #888;
  line-height: 1.6;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.2s ease, opacity 0.2s ease;
}
.fh-om-card:hover .fh-om-card-desc {
  max-height: 48px;
  opacity: 1;
}
.fh-om-macros {
  display: flex;
  align-items: stretch;
  background: #f3f3f1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e4e4e0;
}
.fh-om-macros--modal .fh-om-macro {
  padding: 8px 10px;
}
.fh-om-macros--modal .fh-om-macro-val {
  font-size: 14px;
}
.fh-om-macro {
  flex: 1;
  padding: 6px 10px;
  text-align: center;
}
.fh-om-macro + .fh-om-macro {
  border-left: 1px solid #e0e0dc;
}
.fh-om-macro-label {
  font-size: 8px;
  font-weight: 800;
  color: #888;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.fh-om-macro-val {
  font-size: 13px;
  font-weight: 700;
  color: #111;
}
.fh-om-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}
.fh-om-calories {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fh-om-cal-label {
  font-size: 8px;
  font-weight: 800;
  color: #999;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1px;
}
.fh-om-cal-val {
  font-size: 16px;
  font-weight: 800;
  color: #111;
  line-height: 1;
}
.fh-om-cal-val span {
  font-size: 10px;
  font-weight: 500;
  color: #999;
}
.fh-om-allergens {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}
.fh-om-allergen {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 600;
  color: #666;
  background: #f3f3f1;
  border: 1px solid #e4e4e0;
  border-radius: 100px;
  padding: 2px 7px;
  white-space: nowrap;
}
.fh-om-allergen img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}
.fh-om-view-details {
  display: none;
  align-items: center;
  gap: 4px;
  color: #3f9367;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.fh-om-card:hover .fh-om-view-details {
  display: flex;
}
.fh-om-card:hover .fh-om-allergens {
  display: none;
}
.fh-om-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  color: #888;
  font-size: 15px;
}

/* ── Detail modal ── */
.fh-om-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.fh-om-modal.is-open {
  display: flex;
}
.fh-om-modal-dialog {
  background: #fff;
  border-radius: 28px;
  width: 100%;
  max-width: 720px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  max-height: 90vh;
}
.fh-om-modal-layout {
  display: flex;
  min-height: 0;
  max-height: 90vh;
}
.fh-om-modal-img-wrap {
  width: 240px;
  flex-shrink: 0;
  background: hsl(149 40% 96%);
  position: relative;
  min-height: 280px;
}
.fh-om-modal-img-wrap img[src*="logo-bottom"] {
  object-fit: contain;
  padding: 2rem;
  background: #f4f4f1;
}

.fh-om-modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 280px;
}
.fh-om-modal-body {
  flex: 1;
  padding: 24px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.fh-om-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.fh-om-modal-title {
  font-size: 22px;
  font-weight: 800;
  color: #111;
  font-family: 'Outfit', sans-serif;
  line-height: 1.25;
}
.fh-om-modal-price-row {
  margin-top: 4px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.fh-om-modal-price {
  font-size: 24px;
  font-weight: 800;
  color: #3f9367;
  font-family: 'Outfit', sans-serif;
}
.fh-om-modal-price .fh-om-sar {
  font-size: 13px;
  font-weight: 600;
  color: #aaa;
}
.fh-om-modal-extra,
.fh-om-macro-extra,
.fh-om-cal-extra {
  font-size: 11px;
  font-weight: 600;
  color: #3f9367;
  background: hsl(149 40% 94%);
  border-radius: 100px;
  padding: 2px 8px;
}
.fh-om-macro-extra,
.fh-om-cal-extra {
  display: inline-block;
  margin-left: 2px;
  vertical-align: middle;
}
.fh-om-modal-close {
  background: #f3f3f1;
  border: none;
  border-radius: 100px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 18px;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}
.fh-om-modal-desc {
  margin: 0;
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}
.fh-om-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.fh-om-modal-variants-label {
  font-size: 11px;
  font-weight: 800;
  color: #555;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.fh-om-modal-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fh-om-variant-btn {
  padding: 8px 16px;
  border-radius: 100px;
  border: 2px solid #e4e4e0;
  background: #fff;
  color: #555;
  font-weight: 500;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.12s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.fh-om-variant-btn.is-active {
  border-color: #3f9367;
  background: hsl(149 40% 96%);
  color: #3f9367;
  font-weight: 700;
}
.fh-om-variant-extra {
  font-size: 11px;
  font-weight: 700;
  color: #aaa;
}
.fh-om-variant-btn.is-active .fh-om-variant-extra {
  color: #3f9367;
}

@media (max-width: 991px) {
  .fh-om-grid { grid-template-columns: 1fr; }
  .fh-om-modal-layout { flex-direction: column; }
  .fh-om-modal-img-wrap {
    width: 100%;
    min-height: 220px;
  }
  .fh-om-modal-img-wrap img { min-height: 220px; }
}
@media (max-width: 640px) {
  .fh-om-card { flex-direction: column; }
  .fh-om-card-img-wrap {
    width: 100%;
    height: 200px;
  }
  .fh-om-nav-spacer { width: 40px; }
  .fh-om-modal { padding: 12px; }
  .fh-om-modal-dialog { border-radius: 20px; }
}
