/* Mobile comfort layer: preserve the storefront while letting category photos
   use their real proportions instead of painting empty card panels. */
@media (max-width: 900px) {
  body.storefront .mobile-discovery { margin-bottom: 16px; }

  body.storefront #mobile-category-rail {
    gap: 10px;
    margin-inline: -4px;
    padding: 0 4px 6px;
    scrollbar-width: none;
  }
  body.storefront #mobile-category-rail::-webkit-scrollbar,
  body.storefront #mobile-subcategories::-webkit-scrollbar { display: none; }

  body.storefront #mobile-category-rail .mobile-category-card {
    gap: 6px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    touch-action: manipulation;
  }
  body.storefront #mobile-category-rail .mobile-category-image {
    display: grid;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 0;
    aspect-ratio: auto;
    border: 0;
    border-radius: 8px;
    background: transparent;
  }
  body.storefront #mobile-category-rail .mobile-category-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 190px;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    background: transparent;
  }
  body.storefront #mobile-category-rail .mobile-category-name {
    padding-bottom: 2px;
    line-height: 1.25;
  }

  body.storefront #mobile-subcategories {
    gap: 6px;
    margin: 8px -4px 0;
    padding: 0 4px 2px;
    scrollbar-width: none;
    touch-action: pan-x;
  }
  body.storefront #mobile-subcategories button {
    min-height: 42px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fffdfa;
    color: #674c5b;
    touch-action: manipulation;
  }
  body.storefront #mobile-subcategories button[aria-pressed="true"] {
    background: var(--deep);
    color: #fffdfa;
  }

  body.storefront #mobile-category-rail .mobile-category-card:focus-visible,
  body.storefront #mobile-subcategories button:focus-visible {
    outline: 2px solid var(--deep);
    outline-offset: 3px;
  }
}
