/* ZARIAH Studio — mobile navigation and cart touch-target refinement.
   Mobile-only presentation rules. Desktop layout and storefront logic remain unchanged. */
@media (max-width: 760px) {
  /* Long content-page menus remain on one compact, swipeable row instead of
     wrapping into several lines and consuming the first screen. */
  header:has(nav a:nth-child(4)) {
    display: block;
    text-align: center;
    padding: 14px 14px;
  }

  header:has(nav a:nth-child(4)) nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    gap: 0;
    margin: 12px 0 0;
    padding: 0 2px 6px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
  }

  header:has(nav a:nth-child(4)) nav::-webkit-scrollbar {
    display: none;
  }

  header:has(nav a:nth-child(4)) nav a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 12px;
  }

  /* Increase cart quantity and remove controls without changing cart logic. */
  .item .qty button {
    width: 40px;
    min-width: 40px;
    height: 40px;
  }

  .item .remove {
    min-height: 40px;
    padding: 10px 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  header:has(nav a:nth-child(4)) nav {
    scroll-behavior: auto;
  }
}
