/* layout 6 — 3 column compact grid */
html[data-layout="layout6"] .grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
html[data-layout="layout6"] .food {
  border-radius: 13px;
}
html[data-layout="layout6"] .foodimg {
  height: 82px;
  font-size: 29px;
}
html[data-layout="layout6"] .foodbody {
  min-height: 112px;
  padding: 7px;
}
html[data-layout="layout6"] .food h3 {
  font-size: 13px;
  line-height: 1.2;
}
html[data-layout="layout6"] .food p {
  font-size: 10px;
  min-height: 25px;
}
html[data-layout="layout6"] .set-components {
  font-size: 10px;
  gap: 3px;
}
html[data-layout="layout6"] .set-price {
  font-size: 9px;
}
html[data-layout="layout6"] .price {
  font-size: 14px;
}
html[data-layout="layout6"] .foodqty {
  width: 34px;
  height: 34px;
}
/* layout 7 — large photo showcase cards */
html[data-layout="layout7"] .grid {
  grid-template-columns: 1fr;
  gap: 11px;
}
html[data-layout="layout7"] .food {
  display: grid;
  grid-template-columns: 44% 1fr;
  min-height: 170px;
}
html[data-layout="layout7"] .foodimg {
  height: 170px;
}
html[data-layout="layout7"] .foodbody {
  min-height: 170px;
  padding: 15px;
}
html[data-layout="layout7"] .food h3 {
  font-size: 21px;
}
html[data-layout="layout7"] .food p {
  font-size: 13px;
  -webkit-line-clamp: 3;
}
html[data-layout="layout7"] .set-components {
  font-size: 12px;
  gap: 4px;
}
html[data-layout="layout7"] .price {
  font-size: 23px;
}
/* layout 8 — minimalist text list */
html[data-layout="layout8"] .grid {
  grid-template-columns: 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 15px;
  overflow: hidden;
}
html[data-layout="layout8"] .food {
  display: block;
  min-height: 82px;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
}
html[data-layout="layout8"] .food:last-child {
  border-bottom: 0;
}
html[data-layout="layout8"] .foodimg {
  display: none;
}
html[data-layout="layout8"] .foodbody {
  min-height: 82px;
  padding: 10px 12px;
}
html[data-layout="layout8"] .food h3 {
  font-size: 16px;
}
html[data-layout="layout8"] .food p {
  min-height: 15px;
  -webkit-line-clamp: 1;
}
html[data-layout="layout8"] .set-components {
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}
html[data-layout="layout8"] .foodfoot {
  padding-top: 3px;
}
@media (min-width: 768px) {
  body {
    max-width: 920px !important;
  }
  .topin,
  main {
    max-width: 920px !important;
  }
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  html[data-layout="layout2"] .grid,
  html[data-layout="layout3"] .grid,
  html[data-layout="layout4"] .grid,
  html[data-layout="layout7"] .grid,
  html[data-layout="layout8"] .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bottom-nav,
  .quick-checkout,
  .nav-sheet,
  .support-panel {
    max-width: 920px;
    margin-inline: auto;
  }
}
@media (min-width: 1024px) {
  body {
    max-width: 1180px !important;
  }
  .topin,
  main {
    max-width: 1180px !important;
  }
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .quick-checkout {
    right: 22px;
    left: auto;
    width: 340px;
    bottom: 20px;
  }
  .bottom-nav {
    max-width: 560px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    border-radius: 18px 18px 0 0;
  }
}
