/* NutriEthix mobile responsive header + dynamic category accordion */
.mobile-menu { display:none; }
.mobile-menu-panel { display:none; }

@media (max-width:760px) {
  .site-header { position:relative; z-index:120; grid-template-columns:minmax(0,1fr) minmax(100px,1.25fr) auto 36px; gap:8px; overflow:visible; }
  .brand,.brand-copy { min-width:0; }
  .brand-copy strong { white-space:nowrap; }
  .search-box,.header-search-form,.category-page-search { min-width:0; width:80%; max-width:100%; }
  .header-search-form input,.category-page-search input { min-width:0; width:80%; }
  .header-search-form button,.category-page-search button { flex:0 0 auto; }
  .header-cart { min-width:35px; white-space:nowrap; }
  .mobile-menu { display:block; position:relative; justify-self:end; z-index:140; width:36px; }
  .mobile-menu > summary { list-style:none; width:36px; height:38px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; cursor:pointer; border:1px solid #dce7d6; border-radius:11px; background:#f7faf2; box-shadow:0 2px 7px rgba(20,65,28,.06); }
  .mobile-menu > summary::-webkit-details-marker { display:none; }
  .mobile-menu > summary::marker { content:""; }
  .mobile-menu > summary i { display:block; width:17px; height:2px; border-radius:2px; background:#17652d; transition:transform .18s ease,opacity .18s ease; }
  .mobile-menu[open] > summary i:first-child { transform:translateY(7px) rotate(45deg); }
  .mobile-menu[open] > summary i:nth-child(2) { opacity:0; }
  .mobile-menu[open] > summary i:last-child { transform:translateY(-7px) rotate(-45deg); }
  .category-nav { display:none !important; }
  .mobile-menu-panel { display:none; position:fixed; top:106px; right:10px; width:min(390px,calc(100vw - 20px)); max-height:calc(100dvh - 118px); overflow-y:auto; overscroll-behavior:contain; padding:14px 15px 12px; border:1px solid #dfe8d8; border-radius:16px; background:#fffefb; box-shadow:0 18px 48px rgba(14,48,23,.22); color:#193523; -webkit-overflow-scrolling:touch; }
  .mobile-menu[open] .mobile-menu-panel { display:block; }
  .mobile-menu-panel-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:2px 1px 12px; border-bottom:1px solid #edf0e8; }
  .mobile-menu-panel-head strong { color:#103e24; font:700 17px/1.2 "Playfair Display",Georgia,serif; }
  .mobile-menu-close { width:32px; height:32px; border:1px solid #e2e9dd; border-radius:50%; background:#f7f9f3; color:#315b37; font-size:22px; line-height:1; cursor:pointer; }
  /* Quick links are a simple inline row, not large tiles. */
  .mobile-quick-links { display:flex; align-items:center; gap:0; padding:11px 0 13px; margin:0 0 2px; border-bottom:1px solid #edf0e8; }
  .mobile-quick-links a { display:inline-flex; align-items:center; min-height:25px; padding:2px 13px; border:0; border-radius:0; background:transparent; color:#35603b; font-size:12px; font-weight:700; }
  .mobile-quick-links a:first-child { padding-left:2px; }
  .mobile-quick-links a + a { border-left:1px solid #dfe7d9; }
  .mobile-menu-section-title { margin:13px 0 5px; color:#75836f; font-size:9px; font-weight:800; letter-spacing:1.4px; text-transform:uppercase; }
  .mobile-category-list { display:block; width:100%; }
  .mobile-category-item { display:block; overflow:hidden; border:0; border-bottom:1px solid #e9eee4; border-radius:0; background:transparent; }
  .mobile-category-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-height:48px; padding:10px 3px; border:0; background:transparent; color:#213f29; text-align:left; cursor:pointer; }
  .mobile-category-name { flex:1 1 auto; min-width:0; font-size:14px; font-weight:700; line-height:1.35; }
  .mobile-category-chevron { display:grid; place-items:center; width:28px; height:28px; flex:0 0 28px; border:1px solid #e1eadb; border-radius:50%; background:#f7faf3; color:#17652d; font-size:19px; transition:transform .18s ease,background .18s ease; }
  .mobile-category-heading[aria-expanded="true"] .mobile-category-chevron { transform:rotate(180deg); background:#eaf3e4; }
  .mobile-subcategories { display:block; padding:2px 0 11px 13px; border-top:1px solid #eff2eb; background:#fbfcf8; }
  .mobile-subcategories[hidden] { display:none !important; }
  .mobile-view-all-category { display:flex !important; align-items:center; justify-content:space-between; gap:10px; margin:7px 0 4px; padding:9px 10px !important; border-radius:8px; background:#eef5e9; color:#285a32 !important; font-size:12px !important; font-weight:800 !important; }
  .mobile-subcategory-link { display:block; padding:10px 11px; border-radius:7px; color:#526b52 !important; font-size:12px !important; font-weight:600 !important; }
  .mobile-subcategory-link::before { content:"–"; margin-right:8px; color:#7b9b6e; }
  .mobile-no-subcategories,.mobile-category-empty { display:block; padding:10px 11px; color:#859181; font-size:11px; line-height:1.5; }
  .mobile-menu-footer { display:flex; justify-content:space-between; gap:12px; margin-top:12px; padding-top:11px; border-top:1px solid #edf0e8; }
  .mobile-menu-footer a { color:#70816b; font-size:11px; font-weight:700; padding:5px 2px; }
}
@media (max-width:420px) {
  .site-header { grid-template-columns:minmax(0,1fr) minmax(88px,1.08fr) auto 85px; gap:6px; padding-left:10px; padding-right:10px; }
  .brand { gap:5px; }
  .brand-leaf { width:32px; height:32px; font-size:17px; }
  .brand-copy strong { font-size:18px; letter-spacing:-.7px; }
  .brand-copy small { font-size:5px; letter-spacing:.35px; }
  .search-box { height:35px; }
  .search-box input { padding-left:7px; padding-right:4px; font-size:9px; }
  .search-box button { width:30px; height:35px; font-size:19px; }
  .header-cart { height:34px; padding:0 6px; gap:3px; font-size:10px; }
  .header-cart span:not(.cart-icon) { font-size:0; }
  .header-cart b { font-size:10px; }
  .mobile-menu { width:34px; }
  .mobile-menu > summary { width:34px; height:36px; }
  .mobile-menu-panel { top:100px; }
}
@media (prefers-reduced-motion:reduce) { .mobile-menu > summary i,.mobile-category-chevron { transition:none; } }
