/* Shop navigation on phones (plugin 0.6.1, Oct 2026). The theme (flnm-min.css, max-width 768px) hides
   the category tiles (.catalog-main-menu) and the subcategory links (.catalog-sub-menu) on phones, so
   phone shoppers had no way across the catalog. Same markup, laid out for a narrow screen:
   - the 7 category tiles as a 4 + 3 grid (no sideways scrolling), label above the photo as on desktop;
   - the subcategory links behind a "Plant types" button (shop-nav.js) that opens a two-column panel.
     Without the script the panel just shows, open.
   Desktop is untouched. The home page keeps its own layout (.home). */
.flnm-subnav-toggle { display: none; }
@media only screen and (max-width: 768px) {
  body:not(.home) .catalog-main-menu {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; position: static;
    width: auto; max-width: calc(100vw - 20px); box-sizing: border-box; height: auto; margin: 0 0 10px; padding: 0;
    overflow: visible; border-radius: 0; background: transparent;
  }
  body:not(.home) .catalog-main-menu div {
    width: auto; height: auto; min-width: 0; margin: 0; float: none; border-radius: 8px !important; overflow: hidden !important;
    background: #0e713a;
  }
  body:not(.home) .catalog-main-menu .flnm-cat-name { display: block; padding: 3px 2px; font-size: 11px; line-height: 15px;
    text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body:not(.home) .catalog-main-menu img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

  body:not(.home) .flnm-subnav-toggle {
    display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: calc(100vw - 20px); box-sizing: border-box;
    margin: 0 0 6px; padding: 10px 14px; border: 0; border-radius: 8px; background: #0e713a; color: #fff;
    font: bold 15px "trebuchet MS", Helvetica, sans-serif; text-align: left; cursor: pointer;
  }
  body:not(.home) .flnm-subnav-toggle::after { content: "\25BE"; font-size: 16px; transition: transform 0.15s; }
  body:not(.home) .flnm-subnav-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }
  body:not(.home) .flnm-subnav-toggle[aria-expanded="true"] { border-radius: 8px 8px 0 0; margin-bottom: 0; }

  body:not(.home) .catalog-sub-menu {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; position: static;
    top: auto !important; right: auto; bottom: auto; width: auto; max-width: calc(100vw - 20px); box-sizing: border-box;
    height: auto; margin: 0 0 14px; padding: 6px 14px 10px; border-radius: 8px; background: #0e713a;
  }
  body:not(.home) .catalog-sub-menu.flnm-subnav { border-radius: 0 0 8px 8px; }
  body:not(.home) .catalog-sub-menu.flnm-subnav:not(.is-open) { display: none; }
  body:not(.home) .catalog-sub-menu ul { display: contents; }
  body:not(.home) .catalog-sub-menu li { margin: 0; padding: 0; background: none; list-style: none; min-width: 0; }
  body:not(.home) .catalog-sub-menu a { display: block; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px; line-height: 18px; color: #fff; text-decoration: none; }
  body:not(.home) .catalog-sub-menu a[aria-current="page"] { font-weight: bold; text-decoration: underline; }
}
