/* Closest practical replica of Gloria Food / FoodBooking menu chrome */

.vf-ordering {
  --accent: #ef8b17;
  --text: #4c4c4c;
  --muted: #666;
  --line: #dbdbdb;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.42857143;
  color: var(--text);
  background: #f5f5f5;
}

.vf-ordering-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid #ccc;
}
.vf-ordering-bar-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.vf-bar-cart {
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 3px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.vf-cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 54px;
  z-index: 29;
}
.vf-cats a {
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--text);
  background: #f0f0f0;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}
.vf-cats a:hover { background: var(--accent); color: #fff; }

.vf-layout {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 810px) 280px;
  gap: 16px;
  justify-content: center;
  align-items: start;
}

.app-menu-items {
  width: 100%;
  max-width: 810px;
}

.m-category-container {
  background: #fff;
  border: 1px solid var(--line);
  margin-bottom: 12px;
  border-radius: 3px;
  overflow: hidden;
}
.m-category-picture {
  display: none;
  height: 110px;
  background-size: cover;
  background-position: center;
}
.m-category-has-picture > .m-category-picture { display: block; }
.m-category-name-container { background: #f0f0f0e6; }
.m-category-name {
  margin: 0;
  padding: .8em;
  font-size: 1.2em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
}
.m-category-description {
  padding: 0 15px 10px;
  background: #f0f0f0e6;
  color: var(--muted);
  font-size: 12px;
}

.m-items {
  display: flex;
  flex-wrap: wrap;
  margin-left: -20px;
}
.m-item-container {
  width: calc(50% - 20px);
  margin-left: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: -1px;
  padding: 10px 15px;
  cursor: pointer;
  background: #fff;
  transition: background-color .2s;
}
.m-item-container:hover { background: #fafafa; }
.m-item { display: flex; width: 100%; padding: 10px 0; gap: 8px; }
.m-item-info {
  flex: 1 1 auto;
  display: flex;
  gap: 10px;
  overflow: hidden;
  min-width: 0;
}
.m-item-picture {
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
}
.m-item-name {
  margin-bottom: 5px;
  font-weight: 700;
  color: var(--text);
  font-size: 14px;
}
.m-item-description {
  color: var(--muted);
  font-size: 12px;
}
.m-item-price {
  text-align: right;
  font-weight: 700;
  min-width: 72px;
  color: var(--text);
  font-size: 15px;
}
.m-item-sold-out { color: #4d4d4d; font-weight: 400; font-size: 12px; }

.vf-cart {
  position: sticky;
  top: 110px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 3px;
  overflow: hidden;
}
.cart-header {
  padding: 15px;
  background: #f0f0f0;
  border-bottom: 1px solid #ccc;
  color: #999;
  font-weight: 700;
}
.cart-items {
  min-height: 100px;
  background: #f7f7f7;
  padding: 16px;
}
.cart-empty {
  text-align: center;
  font-weight: 700;
  color: var(--text);
  margin: 16px 0 0;
}
.cart-footer {
  padding: 12px 15px 16px;
  border-top: 1px solid #ccc;
  background: #f7f7f7;
}
.vf-checkout {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  border: 0;
  border-radius: 3px;
  padding: 12px;
  cursor: pointer;
}

.vf-modal[hidden] { display: none !important; }
.vf-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.vf-modal-card {
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 3px;
  position: relative;
  box-shadow: 0 0 15px #00000080;
}
.vf-modal-x {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: rgba(0,0,0,.5);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  z-index: 2;
}
.item-picture {
  height: 215px;
  background-size: cover;
  background-position: center;
  display: none;
}
.vf-modal-body { padding: 16px; }
.vf-modal-body h3 { margin: 0 0 8px; color: #222; }
.vf-modal-body p { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.vf-vars { display: grid; gap: 10px; margin: 0 0 16px; }
.vf-vars label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 2px solid #cfcfcf;
  background: #fff;
  padding: 12px 14px;
  border-radius: 6px;
  cursor: pointer;
  color: #222;
  font-size: 14px;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.vf-vars label .vf-radio {
  width: 18px;
  height: 18px;
  border: 2px solid #888;
  border-radius: 50%;
  flex: 0 0 18px;
  margin-right: 4px;
  position: relative;
  background: #fff;
}
.vf-vars label .vf-var-main {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.vf-vars label strong {
  color: #111;
  font-size: 15px;
  white-space: nowrap;
}
.vf-vars label.is-on {
  border-color: #ef8b17;
  background: #fff3e6;
  box-shadow: 0 0 0 2px rgba(239, 139, 23, 0.25);
}
.vf-vars label.is-on .vf-radio {
  border-color: #ef8b17;
}
.vf-vars label.is-on .vf-radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #ef8b17;
}
#vf-price {
  display: block;
  width: 100%;
  text-align: right;
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin: 0 0 14px;
}
#vf-add.vf-checkout,
.vf-modal-body .vf-checkout {
  display: block !important;
  width: 100% !important;
  background: #ef8b17 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 6px !important;
  padding: 14px 16px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  cursor: pointer !important;
  opacity: 1 !important;
  visibility: visible !important;
  box-shadow: 0 2px 0 #c56e0d;
}
#vf-add.vf-checkout:hover,
.vf-modal-body .vf-checkout:hover {
  background: #d97810 !important;
}

@media (max-width: 960px) {
  .vf-layout { grid-template-columns: 1fr; }
  .vf-cart { display: none; }
  .m-item-container { width: 100%; }
}
