/* Shared, visible category discovery. Keep unrelated storefront layouts intact. */
.jg-home-v2 .b-intro{padding:24px 0 20px!important}
.jg-home-v2 .b-intro h1{font-size:clamp(30px,3.3vw,48px)!important;max-width:1000px}
.jg-home-gateways{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:0 0 36px}
.jg-home-gateways>a{position:relative;display:flex;flex-direction:column;justify-content:center;gap:7px;min-height:114px;min-width:0;padding:18px 35px 18px 18px;background:#f0f4eb;border:1px solid #dce5d3;border-radius:8px;color:#1e3525}
.jg-home-gateways>a:first-child{background:#253d2b;color:#fff;border-color:#253d2b}
.jg-home-gateways span{font-size:16px;font-weight:750;line-height:1.3}
.jg-home-gateways small{font-size:12px;line-height:1.5;color:#50654e}
.jg-home-gateways>a:first-child small{color:#d5e5cc}
.jg-home-gateways svg{position:absolute;right:13px;top:21px;width:16px;height:16px}
.jg-home-section{margin:0 0 34px;scroll-margin-top:125px}
.jg-home-section-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:16px}
.jg-home-section-head .eyebrow{font-size:11px;letter-spacing:1.1px;color:#567448;font-weight:750;margin:0 0 5px}
.jg-home-section-head h2{font-family:'Barlow Condensed',Arial,sans-serif;font-size:32px;font-weight:600;line-height:1.15;margin:0;color:#203328}
.jg-home-section-head>a{display:flex;align-items:center;gap:10px;font-size:13px;min-height:44px;text-decoration:underline;text-underline-offset:4px;flex-shrink:0}
.jg-home-section-head>a svg{width:16px;height:16px}
.jg-home-types{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.jg-home-type{position:relative;display:flex;flex-direction:column;align-items:stretch;width:100%;min-width:0;appearance:none;background:#f7f8f5;border:1px solid #e1e6dc;border-radius:8px;padding:18px;color:#203328;font:inherit;text-align:left;cursor:pointer;transition:border-color .15s,box-shadow .15s}
.jg-home-type-action{position:absolute;top:12px;right:12px;display:grid;place-items:center;width:30px;height:30px;border:1px solid #d6e2ce;border-radius:50%;color:#477d2c;background:#fff}
.jg-home-type-action>svg{width:16px;height:16px}
.jg-home-type-image{display:flex;align-items:center;justify-content:center;width:100%;height:148px;margin:14px 0 16px;pointer-events:none}
.jg-home-type-image>svg,.jg-home-type-image>img{display:block;width:100%;max-width:210px;height:100%;object-fit:contain;mix-blend-mode:multiply}
.jg-home-type[data-jg-home-type="pilarki"] .jg-home-type-image>svg,.jg-home-type[data-jg-home-type="kosy"] .jg-home-type-image>svg{max-width:230px;height:86%}
.jg-home-type-name{display:flex;align-items:center;min-height:42px;margin-top:auto;font-size:16px;line-height:1.4;font-weight:700}
.jg-home-directory{padding-top:8px}
.jg-home-directory-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
.jg-home-directory-grid>.jg-home-department:last-child:nth-child(odd){grid-column:1/-1}
.jg-home-department{min-width:0;border:1px solid #dce3d6;border-radius:8px;background:#fff;overflow:hidden}
.jg-home-department>summary{display:flex;align-items:center;justify-content:space-between;gap:20px;list-style:none;padding:18px 20px;cursor:pointer;min-height:64px}
.jg-home-department>summary::-webkit-details-marker{display:none}
.jg-home-department>summary strong{display:block;font-size:16px;line-height:1.4}
.jg-home-department>summary>svg{width:20px;height:20px;flex-shrink:0;color:#47792c}
.jg-home-department[open]>summary{background:#f1f5eb;border-bottom:1px solid #dce3d6}
.jg-home-department[open]>summary>svg{transform:rotate(90deg)}
.jg-home-department nav{display:grid;grid-template-columns:1fr;padding:8px 20px 16px}
.jg-home-department nav>a{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;border-bottom:1px solid #e4e9df;font-size:14px;font-weight:400;color:var(--ink);line-height:1.5;padding:10px 0}
.jg-home-department nav>a[data-jg-context-for]{margin-left:16px}
.jg-home-department nav>a>svg{width:14px;height:14px;flex:0 0 14px}
.jg-home-department .jg-home-department-all{grid-column:1/-1;text-decoration:underline;text-underline-offset:3px}
.jg-home-gateways a:focus-visible,.jg-home-type:focus-visible,.jg-home-department summary:focus-visible,.jg-home-department a:focus-visible{outline:3px solid #497e28;outline-offset:3px}
.jg-catalog-discovery .nv-menu-quick>div{grid-template-columns:repeat(4,minmax(0,1fr))}
.jg-menu-department-jumps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding-top:18px}
.jg-menu-department-jumps>a{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #d5dfcd;border-radius:5px;background:#fff;padding:10px 12px;min-height:48px;font-size:13px;font-weight:700;line-height:1.4}
.jg-menu-department-jumps svg{width:14px;height:14px;flex:0 0 14px;color:#52892f}
@media(min-width:1101px){.jg-menu-department-jumps>a:last-child:nth-child(4n+1){grid-column:1/-1;min-height:42px}}
.jg-catalog-discovery .nv-menu-desktop.nv-menu-tree-desktop{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.jg-catalog-discovery .nv-menu-tree-department{scroll-margin-top:88px}
.jg-catalog-discovery .nv-menu-tree-department h3{font-size:15px;font-weight:700;line-height:1.4;min-height:0;margin:0 0 12px}
.jg-catalog-discovery .nv-menu-tree-department[data-jg-navigation-group="akcesoria-ogrod"]{grid-column:1/-1}
.jg-catalog-discovery .nv-menu-tree-department[data-jg-navigation-group="akcesoria-ogrod"]>.nv-mobile-category-tree{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.jg-catalog-discovery .nv-menu-mobile details[open]>summary>svg,.jg-catalog-discovery .nv-mobile-category-branch[open]>summary>svg{transform:rotate(90deg)}
.jg-catalog-discovery summary>svg,.jg-home-department>summary>svg{transition:transform .15s ease}
/* A row's hierarchy comes from its level, never from <a> vs <summary>. */
.jg-catalog-discovery .nv-mobile-category-tree{list-style:none;margin:0;padding:0;border:0}
.jg-catalog-discovery .nv-mobile-category-tree .nv-mobile-category-tree{margin:0 0 8px 16px;padding:0;border:0}
.jg-catalog-discovery .nv-mobile-category-tree li{margin:0;padding:0}
.jg-catalog-discovery .nv-mobile-category-tree li[data-jg-context-for]{margin-left:16px}
.jg-catalog-discovery .nv-mobile-category-tree .nv-mobile-category-branch{margin:0;padding:0;border:0}
.jg-catalog-discovery .nv-mobile-category-tree .jg-category-row{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;margin:0;padding:10px 0;border:0;border-radius:0;background:none;font-family:inherit;font-size:14px;font-weight:400;line-height:1.5;letter-spacing:normal;color:var(--ink);text-align:left;text-decoration:none;list-style:none}
.jg-catalog-discovery .nv-mobile-category-tree .jg-category-row>span{min-width:0}
.jg-catalog-discovery .nv-mobile-category-tree .jg-category-row>svg{width:16px;height:16px;flex:0 0 16px;margin:0}
.jg-catalog-discovery .nv-mobile-category-tree .jg-category-all{font-size:13px;text-decoration:underline;text-underline-offset:3px}
.jg-catalog-discovery .nv-mobile-category-tree .jg-category-row:focus-visible{outline:3px solid #497e28;outline-offset:2px}
.jg-catalog-discovery .nv-menu-tree-department>.nv-mobile-whole,.jg-catalog-discovery .nv-mobile-department-links>.nv-mobile-whole{min-height:44px;margin:0;padding:10px 0;font-size:13px;font-weight:400;line-height:1.5;color:var(--ink);text-decoration:underline;text-underline-offset:3px}
@media(hover:hover){.jg-catalog-discovery .nv-mobile-category-tree .jg-category-row:hover{text-decoration:underline;text-underline-offset:3px}}
dialog.nv-group-dialog{max-height:calc(100dvh - 32px);border-radius:10px}
.nv-group-dialog .jg-dialog-head{gap:14px}
.nv-group-dialog .jg-dialog-head h2{min-width:0;overflow-wrap:break-word;line-height:1.15}
.nv-group-dialog .jg-dialog-head button{flex:0 0 44px}
@media(hover:hover){.jg-home-type:hover{border-color:#8fa97b;box-shadow:0 5px 16px #2444240d}.jg-home-gateways>a:hover{border-color:#83a669}.jg-home-department nav>a:hover{text-decoration:underline;text-underline-offset:3px}}
@media(min-width:761px) and (max-width:1100px){.jg-home-gateways{grid-template-columns:repeat(3,minmax(0,1fr))}.jg-home-types{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:761px) and (max-width:1100px){.jg-catalog-discovery .nv-menu-desktop.nv-menu-tree-desktop{grid-template-columns:repeat(2,minmax(0,1fr))}.jg-catalog-discovery .nv-menu-tree-department[data-jg-navigation-group="akcesoria-ogrod"]>.nv-mobile-category-tree{grid-template-columns:repeat(2,minmax(0,1fr))}.jg-menu-department-jumps{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){
  .header[data-jg-header] .search{flex-wrap:nowrap}
  .header[data-jg-header] .search>label.sr{position:absolute;inset:auto;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;margin:-1px;padding:0;flex:0 0 auto}
  .header[data-jg-header] .search>svg{flex:0 0 18px}
  .header[data-jg-header] .search input[type="search"]{width:0;min-width:0;flex:1 1 auto}
  .jg-home-v2 .b-intro{padding:18px 0 16px!important}
  .jg-home-v2 .b-intro h1{font-size:30px!important;line-height:1.08!important}
  .jg-home-gateways{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:28px}
  .jg-home-gateways>a{min-height:72px;padding:13px 28px 13px 12px;gap:0}
  .jg-home-gateways>a:first-child{grid-column:1/-1;min-height:52px}
  .jg-home-gateways span{font-size:13px;line-height:1.4}
  .jg-home-gateways small{display:none}
  .jg-home-gateways svg{right:9px;top:calc(50% - 7px);width:14px;height:14px}
  .jg-home-section{margin-bottom:28px}
  .jg-home-section-head{display:block;margin-bottom:13px}
  .jg-home-section-head h2{font-size:28px}
  .jg-home-section-head>a{margin-top:4px;width:fit-content}
  .jg-home-types{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .jg-home-type{padding:14px 12px 11px}
  .jg-home-type-action{width:26px;height:26px;top:8px;right:8px}
  .jg-home-type-action>svg{width:14px;height:14px}
  .jg-home-type-image{height:108px;margin:20px 0 10px}
  .jg-home-type-name{font-size:14px;line-height:1.4;min-height:40px}
  .nv-group-dialog .jg-dialog-head{padding:16px 18px;gap:12px}
  .nv-group-dialog .jg-dialog-head h2{font-size:26px}
  .jg-home-directory-grid{grid-template-columns:1fr;gap:9px}
  .jg-home-department>summary{min-height:64px;padding:16px}
  .jg-home-department>summary strong{font-size:14px}
  .jg-home-department nav{grid-template-columns:1fr;padding-inline:16px}
  .jg-home-department nav>a{font-size:14px;min-height:44px}
  .jg-catalog-discovery .nv-menu-scroll{display:flex;flex-direction:column}
  .jg-menu-department-jumps{display:none}
  .jg-catalog-discovery .nv-menu-mobile{order:0}
  .jg-catalog-discovery .nv-menu-quick{order:1;margin-top:18px;border-top:1px solid var(--line);border-bottom:0}
  .jg-catalog-discovery .nv-menu-foot{order:2}
  .jg-catalog-discovery .nv-menu-quick>div{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .jg-catalog-discovery .nv-menu-quick a{font-size:12px;line-height:1.4;min-height:58px;padding:10px;background:#f0f4eb;border:1px solid #e0e7d8;border-radius:5px;gap:6px}
  .jg-catalog-discovery .nv-menu-quick a svg{flex:0 0 13px;width:13px;height:13px}
  .jg-catalog-discovery .nv-menu-mobile>details>summary{min-height:60px;align-items:center}
  .jg-catalog-discovery .nv-menu-mobile>details>summary>svg{flex:0 0 18px}
}
@media(min-width:640px) and (max-width:760px){.jg-home-types{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.jg-home-type,.jg-catalog-discovery summary>svg,.jg-home-department>summary>svg{transition:none}}
