/* Mobile-only overrides loaded after the main stylesheet. */
@media (max-width: 820px) {
  html,
  body {
    scroll-behavior: auto !important;
  }

  body {
    -webkit-overflow-scrolling: touch;
    text-rendering: optimizeLegibility;
  }

  .site-header,
  .hero-card,
  .storefront-frame figcaption,
  .modal-backdrop:not([hidden]) {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .hero {
    background-attachment: scroll !important;
  }

  .reveal-on-scroll {
    transform: translateY(10px);
    transition:
      opacity 340ms ease,
      transform 340ms ease;
    will-change: auto;
  }

  .feature-strip {
    perspective: none !important;
  }

  .product-card,
  .order-mode-card,
  .menu-board,
  .outlet-card,
  .faq-list details {
    contain: layout paint;
    transform-style: flat !important;
    will-change: auto !important;
  }

  .order-mode-card:hover,
  .order-mode-card.active,
  .product-card.is-visible:hover,
  .storefront-frame img,
  .storefront-frame:hover img {
    transform: none !important;
  }

  .product-media::before,
  .option-image-wrap::before,
  .storefront-frame::before,
  .storefront-frame::after {
    display: none !important;
  }

  .product-media img,
  .option-image,
  .storefront-frame img {
    filter: none !important;
  }
}

@media (max-width: 760px) {
  .shop-section {
    padding: 64px 0 70px;
  }

  .shop-section > .section-head {
    display: grid;
    justify-items: center;
    gap: 18px;
    padding: 0 18px 34px;
    text-align: center;
  }

  .shop-section > .section-head .eyebrow {
    margin-bottom: 8px;
    line-height: 1;
  }

  .shop-section > .section-head h2 {
    line-height: 0.98;
  }

  .search-wrap {
    width: min(100%, 360px);
    margin-inline: auto;
  }

  .menu-board {
    display: grid;
    justify-items: center;
    padding-top: 0 !important;
    text-align: center;
  }

  .filter-head {
    display: none !important;
  }

  .category-group {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px !important;
    width: 100%;
    margin: 0 0 22px !important;
  }

  .category-button {
    display: inline-flex !important;
    justify-content: center !important;
    gap: 8px;
    min-width: 132px;
    min-height: 54px;
    padding: 12px 20px !important;
    border-radius: 999px !important;
    font-size: 22px;
    line-height: 1;
  }

  .category-label,
  .category-count {
    display: inline-flex;
    align-items: center;
    line-height: 1;
  }

  .category-count::before {
    content: "";
    width: 1px;
    height: 0.9em;
    margin-right: 8px;
    background: currentColor;
    opacity: 0.28;
  }

  .shop-layout {
    gap: 18px;
  }

  .product-area {
    width: 100%;
  }

  .preorder-subfilters {
    padding-inline: 14px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 2px !important;
    width: 100%;
    padding-inline: 0;
    background: transparent !important;
  }

  .product-card {
    display: grid;
    max-width: none !important;
    min-width: 0;
    margin: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fffaf4 !important;
    box-shadow: none !important;
    justify-items: stretch !important;
    animation-duration: 320ms !important;
    transition:
      opacity 300ms ease,
      transform 300ms ease !important;
    transition-delay: calc(var(--card-index, 0) * 10ms) !important;
  }

  .product-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc(50% - 1px);
    justify-self: center;
  }

  .product-card.is-visible {
    transform: none !important;
  }

  .product-media {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #f4eee8 !important;
    box-shadow: none !important;
  }

  .product-media::after {
    display: none !important;
  }

  .product-media img {
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    object-fit: cover !important;
    transform: none !important;
  }

  .product-media .tag {
    top: 8px !important;
    left: auto !important;
    right: 8px !important;
    max-width: calc(100% - 16px);
    padding: 5px 7px !important;
    border-radius: 2px !important;
    background: var(--kk-red) !important;
    color: #fffaf4 !important;
    font-size: 9px !important;
    line-height: 1.05;
    letter-spacing: 0.04em;
    text-align: center;
    box-shadow: 0 8px 16px rgba(126, 23, 18, 0.16) !important;
  }

  .product-thumbs {
    display: none !important;
  }

  .product-body {
    display: grid;
    justify-items: center !important;
    width: 100% !important;
    gap: 10px !important;
    min-height: 142px;
    align-content: start;
    padding: 17px 9px 16px !important;
    text-align: center !important;
  }

  .product-title-row {
    display: grid !important;
    justify-items: center !important;
    gap: 7px !important;
    width: 100%;
    text-align: center !important;
  }

  .product-card h3 {
    display: block;
    width: 100%;
    max-width: 100%;
    color: var(--kk-ink) !important;
    font-size: clamp(11px, 3.3vw, 14px) !important;
    font-weight: 900 !important;
    letter-spacing: 0.08em;
    line-height: 1.2 !important;
    text-align: center !important;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: none;
    white-space: nowrap !important;
  }

  .price {
    display: block;
    width: 100%;
    color: var(--kk-red) !important;
    font-size: clamp(14px, 4vw, 18px) !important;
    font-weight: 900 !important;
    line-height: 1;
    text-align: center !important;
    white-space: nowrap;
  }

  .product-meta {
    display: none !important;
  }

  .add-button {
    width: min(100%, 132px) !important;
    min-width: 0 !important;
    min-height: 34px !important;
    margin-top: 2px !important;
    padding: 8px 10px !important;
    border-radius: 4px !important;
    background: var(--kk-red) !important;
    color: #fffaf4 !important;
    font-size: 11px !important;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 20px rgba(126, 23, 18, 0.16) !important;
    justify-self: center !important;
  }

  .add-button svg {
    width: 14px !important;
    height: 14px !important;
  }
}

@media (max-width: 390px) {
  .product-body {
    min-height: 140px;
    padding-inline: 7px !important;
  }

  .product-card h3 {
    font-size: 11px !important;
    letter-spacing: 0.05em;
  }

  .add-button {
    width: min(100%, 118px) !important;
    font-size: 10px !important;
  }
}
