/* Desktop-only QR menu layouts. The mobile menu keeps its existing styling. */
@media (min-width: 900px) {
  html[data-qr-desktop-design] #root .min-h-screen.pt-20 {
    min-height: 100vh;
    background: #faf7f1 !important;
  }

  html[data-qr-desktop-design] #root .min-h-screen.pt-20 > .px-4.py-4 {
    width: min(100% - 48px, 1340px);
    max-width: 1340px;
    margin-inline: auto;
    padding: 28px 0 80px;
  }

  html[data-qr-desktop-design] #root .min-h-screen.pt-20 > .px-4.py-4 > .mb-8:first-child [class*="w-full overflow-hidden relative"] {
    max-height: 360px !important;
    border-radius: 22px;
  }

  html[data-qr-desktop-design] #root #categories-section {
    margin-top: 12px;
    margin-bottom: 36px;
  }

  html[data-qr-desktop-design] #root #categories-section > .flex.overflow-x-auto {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
    overflow: visible;
    padding-bottom: 0;
  }

  html[data-qr-desktop-design] #root #categories-section > .flex.overflow-x-auto > div {
    min-width: 0;
    padding: 12px 8px;
    border: 1px solid #e8dfd2;
    border-radius: 18px;
    background: #fff;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
  }

  html[data-qr-desktop-design] #root #categories-section > .flex.overflow-x-auto > div:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgb(53 38 20 / 10%);
  }

  html[data-qr-desktop-design] #root #categories-section > .flex.overflow-x-auto > div > div:first-child {
    width: 100%;
    max-width: 145px;
    margin-inline: auto;
  }

  html[data-qr-desktop-design] #root div[data-category-name][class*="scroll-mt"] > div.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }

  html[data-qr-desktop-design] #root div[data-category-name][class*="scroll-mt"] > div.grid > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    padding: 0;
    border: 1px solid #eadfd1;
    border-radius: 20px;
    box-shadow: 0 8px 28px rgb(57 39 21 / 5%);
  }

  html[data-qr-desktop-design] #root div[data-category-name][class*="scroll-mt"] > div.grid > div > div:first-child {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    flex: none;
    border-radius: 0;
  }

  html[data-qr-desktop-design] #root div[data-category-name][class*="scroll-mt"] > div.grid > div > div:nth-child(2) {
    padding: 18px 20px 22px;
  }

  html[data-qr-desktop-design] #root div[data-category-name][class*="scroll-mt"] > div.grid > div h3 {
    font-size: 18px;
    line-height: 1.35;
  }

  html[data-qr-desktop-design] #root div[data-category-name][class*="scroll-mt"] > .relative.mb-6.h-40 {
    height: 205px;
    border-radius: 22px;
  }

  html[data-qr-desktop-design="classic"] #root .min-h-screen.pt-20 {
    background: #f5f6f6 !important;
  }

  html[data-qr-desktop-design="classic"] #root div[data-category-name][class*="scroll-mt"] > div.grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  html[data-qr-desktop-design="classic"] #root div[data-category-name][class*="scroll-mt"] > div.grid > div {
    flex-direction: row;
    align-items: center;
    min-height: 150px;
    border-radius: 16px;
  }

  html[data-qr-desktop-design="classic"] #root div[data-category-name][class*="scroll-mt"] > div.grid > div > div:first-child {
    width: 170px;
    height: 150px;
    aspect-ratio: auto;
  }

  html[data-qr-desktop-design="classic"] #root #categories-section > .flex.overflow-x-auto > div {
    border-radius: 12px;
  }

  html[data-qr-desktop-design="gallery"] #root .min-h-screen.pt-20 {
    background: #efece5 !important;
  }

  html[data-qr-desktop-design="gallery"] #root div[data-category-name][class*="scroll-mt"] > div.grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  html[data-qr-desktop-design="gallery"] #root div[data-category-name][class*="scroll-mt"] > div.grid > div > div:first-child {
    aspect-ratio: 1 / 1;
  }

  html[data-qr-desktop-design="gallery"] #root div[data-category-name][class*="scroll-mt"] > div.grid > div > div:nth-child(2) {
    padding: 15px 16px 19px;
  }

  html[data-qr-desktop-design="gallery"] #root #categories-section > .flex.overflow-x-auto > div {
    border-radius: 26px;
  }
}

@media (min-width: 900px) and (max-width: 1120px) {
  html[data-qr-desktop-design] #root #categories-section > .flex.overflow-x-auto {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  html[data-qr-desktop-design="gallery"] #root div[data-category-name][class*="scroll-mt"] > div.grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-qr-desktop-design] #root #categories-section > .flex.overflow-x-auto > div {
    transition: none;
  }
}
