/* Product-first storefront rollout. Product cards before guides; keep headings and filters accessible. */
#app.seo-category-page .category-hero-card{display:grid;grid-template-columns:minmax(0,1fr) 160px;min-height:0!important;gap:10px}
#app.seo-category-page .category-hero-copy{padding:14px 18px!important}
#app.seo-category-page .category-hero-copy h1{font-size:clamp(26px,3vw,36px)!important;line-height:1.15!important;margin:4px 0 8px!important}
#app.seo-category-page .category-hero-copy>p{line-height:1.35!important;margin:5px 0!important;font-size:14px!important}
#app.seo-category-page .category-hero-media{min-height:0!important;max-height:135px!important;overflow:hidden}
#app.seo-category-page .category-hero-media img{height:100%!important;width:100%!important;object-fit:contain!important}
#app.seo-category-page .hero-points{display:none!important}
#app.seo-category-page .category-main-layout{margin-top:7px!important}
#app.seo-category-page .category-results .subcat-strip{padding:8px 11px!important;margin:0 0 8px!important}
#app.seo-category-page .category-results .subcat-strip p{display:none!important}
#app.seo-category-page .category-toolbar{margin-top:5px!important}
#app.seo-category-page .seo-category-stream{margin-top:5px!important}
#app.seo-home-page .hero-card,#app.buysheds-home-page .hero-card,#app.shedswarehouse-home-page .hero-card{display:grid;grid-template-columns:minmax(0,1fr) 180px;min-height:0!important}
#app.seo-home-page .hero-copy,#app.buysheds-home-page .hero-copy,#app.shedswarehouse-home-page .hero-copy{padding:18px 23px!important}
#app.seo-home-page .hero-copy h1,#app.buysheds-home-page .hero-copy h1,#app.shedswarehouse-home-page .hero-copy h1{font-size:clamp(27px,3vw,38px)!important;line-height:1.14!important}
#app.seo-home-page .hero-media,#app.buysheds-home-page .hero-media,#app.shedswarehouse-home-page .hero-media{min-height:0!important;max-height:180px!important;overflow:hidden}
#app.sf-home-page .sf-home-hero{padding:12px 0!important}
#app.sf-home-page .sf-home-hero-grid{min-height:0!important}
#app.sf-home-page .sf-home-hero-copy{padding:12px 0!important}
#app.sf-home-page .sf-home-hero-copy h1{font-size:clamp(27px,3vw,39px)!important}
#app.hb-home-page .hb-editorial-hero{padding:8px 0!important}
#app.hb-home-page .hb-hero-photo{max-height:190px!important;min-height:0!important;overflow:hidden}
#app.hb-home-page .hb-hero-photo>img{max-height:190px!important;object-fit:cover}
@media(max-width:760px){
 #app.seo-category-page .category-hero-card{display:block;min-height:0!important}
 #app.seo-category-page .category-hero-media{display:none!important}
 #app.seo-category-page .category-hero-copy{padding:12px 14px!important}
 #app.seo-category-page .category-hero-copy h1{font-size:29px!important}
 #app.seo-category-page .category-hero-copy>p{font-size:13px!important}
 #app.seo-category-page .category-main-layout{margin-top:4px!important}
 #app.seo-category-page .category-sidebar{margin-bottom:6px!important}
 #app.seo-category-page .category-results .subcat-strip h2{font-size:18px!important}
 #app.seo-home-page .hero-card,#app.buysheds-home-page .hero-card,#app.shedswarehouse-home-page .hero-card{display:block}
 #app.seo-home-page .hero-copy,#app.buysheds-home-page .hero-copy,#app.shedswarehouse-home-page .hero-copy{padding:15px 17px!important}
 #app.seo-home-page .hero-media,#app.buysheds-home-page .hero-media,#app.shedswarehouse-home-page .hero-media{display:none!important}
 #app.sf-home-page .sf-home-hero-media,#app.sf-home-page .sf-home-hero-image{display:none!important}
 #app.hb-home-page .hb-hero-photo{max-height:180px!important}
 #app.hb-home-page .hb-hero-photo>img{max-height:180px!important}
}


/* v2: HomeBerry's caption was positioned over the photo. Make it a short,
   proper in-flow hero so it is not clipped by the product-first compact layout. */
#app.hb-home-page .hb-hero-photo{
 display:grid!important;grid-template-columns:minmax(0,1fr) 210px!important;
 min-height:0!important;max-height:none!important;overflow:hidden!important;
 background:#fff!important;align-items:stretch!important;
}
#app.hb-home-page .hb-hero-photo:after{display:none!important}
#app.hb-home-page .hb-hero-photo>img{
 position:relative!important;inset:auto!important;grid-column:2!important;grid-row:1!important;
 display:block!important;width:100%!important;height:100%!important;
 max-height:250px!important;object-fit:cover!important;
}
#app.hb-home-page .hb-hero-panel{
 position:relative!important;inset:auto!important;left:auto!important;right:auto!important;bottom:auto!important;
 width:100%!important;grid-column:1!important;grid-row:1!important;
 padding:15px 18px!important;background:#fff!important;box-shadow:none!important;border-radius:0!important;
 backdrop-filter:none!important;align-self:center!important;
}
#app.hb-home-page .hb-hero-panel h1{font-size:clamp(27px,3vw,34px)!important;line-height:1.12!important;margin:5px 0 8px!important}
#app.hb-home-page .hb-hero-panel p{font-size:13px!important;line-height:1.36!important;margin:0!important}
#app.hb-home-page .hb-hero-panel .hb-hero-actions{margin-top:10px!important}
#app.sf-home-page .sf-home-hero-image{min-height:0!important;max-height:240px!important;overflow:hidden!important}
@media(max-width:760px){
 #app.hb-home-page .hb-hero-photo{display:block!important;min-height:0!important;max-height:none!important}
 #app.hb-home-page .hb-hero-photo>img{display:none!important}
 #app.hb-home-page .hb-hero-panel{display:block!important;padding:14px 16px!important}
 #app.hb-home-page .hb-hero-panel h1{font-size:28px!important}
 #app.hb-home-page .hb-hero-panel p{font-size:13px!important}
 #app.sf-home-page .sf-home-hero-image{display:none!important}
}


/* v3: mobile category quick-filter chips already appear beside the listing.
   Hide duplicated sidebar so the first products are visible sooner. */
@media(max-width:760px){
 #app.seo-category-page .category-sidebar{display:none!important}
 #app.seo-category-page .category-results{width:100%!important;min-width:0!important}
 #app.seo-category-page .subcat-strip .chip-row{display:flex!important;gap:7px!important;overflow-x:auto!important;scrollbar-width:thin}
 #app.seo-category-page .subcat-strip .chip{flex:none!important;min-height:40px!important;display:inline-flex!important;align-items:center!important}
}


/* v4 – clear two-across mobile shopping grid, larger useful shed imagery,
   shorter product labels and stronger prices. */
@media(max-width:760px){
 #app.seo-category-page .seo-category-stream>.product-grid,
 #app.seo-home-page .product-grid,
 #app.sf-home-page .sf-popular-section .product-grid,
 #app.buysheds-home-page .product-grid,
 #app.hb-home-page .hb-picks .product-grid,
 #app.shedswarehouse-home-page .wh-stock-section .product-grid,
 #app.seo-town-page .town-catalogue-stream>.product-grid,
 #app.hb-town-page-shell .town-catalogue-stream>.product-grid{
   display:grid!important;
   grid-template-columns:repeat(2,minmax(0,1fr))!important;
   gap:10px!important;
   align-items:stretch!important;
 }
 #app.seo-category-page .seo-category-stream .card,
 #app.seo-home-page .product-grid .card,
 #app.sf-home-page .product-grid .card,
 #app.buysheds-home-page .product-grid .card,
 #app.hb-home-page .product-grid .card,
 #app.shedswarehouse-home-page .product-grid .card,
 #app.seo-town-page .town-catalogue-stream .card,
 #app.hb-town-page-shell .town-catalogue-stream .card{
   min-width:0!important;min-height:0!important;
 }
 #app.seo-category-page .seo-category-stream .card-image,
 #app.seo-home-page .product-grid .card-image,
 #app.sf-home-page .product-grid .card-image,
 #app.buysheds-home-page .product-grid .card-image,
 #app.hb-home-page .product-grid .card-image,
 #app.shedswarehouse-home-page .product-grid .card-image,
 #app.seo-town-page .town-catalogue-stream .card-image,
 #app.hb-town-page-shell .town-catalogue-stream .card-image{
   aspect-ratio:1 / 1!important;padding:6px!important;
   min-height:0!important;
 }
 #app .product-grid .card-body{padding:10px 9px!important;gap:5px!important}
 #app .product-grid .card-body h3{
   font-size:13px!important;line-height:1.33!important;
   display:-webkit-box;-webkit-box-orient:vertical;
   -webkit-line-clamp:3;line-clamp:3;overflow:hidden;
   min-height:0!important;
 }
 #app .product-grid .card-body .price{font-size:19px!important;font-weight:850!important}
 #app .product-grid .card-body .brand{font-size:10px!important}
 #app .product-grid .card-saving{max-width:calc(100% - 10px);font-size:9px!important;line-height:1.1!important}
 #app.sf-home-page .sf-product-card .sf-card-reassurance,
 #app.seo-category-page .sf-product-card .sf-card-reassurance{display:none!important}
 #app .product-grid .card-price-line{gap:4px;align-items:baseline}
}


/* v5 — CORRECTION: avoid the huge empty iLikeSheds hero, and restore an
   actual shed photograph on mobile. Products must begin immediately below. */
#app.seo-home-page>.hero{padding:9px 0 3px!important}
#app.seo-home-page .hero-card{
 display:grid!important;grid-template-columns:minmax(0,1fr) minmax(245px,32%)!important;
 gap:0!important;align-items:stretch!important;min-height:0!important;max-height:none!important;
}
#app.seo-home-page .hero-copy{
 padding:13px 20px!important;display:flex!important;flex-direction:column!important;
 justify-content:center!important;min-width:0!important;
}
#app.seo-home-page .hero-copy .eyebrow{font-size:11px!important;padding:3px 8px!important;margin:0 0 7px!important;align-self:flex-start!important}
#app.seo-home-page .hero-copy h1{
 margin:0 0 5px!important;font-size:clamp(26px,2.5vw,34px)!important;
 line-height:1.12!important;letter-spacing:-.025em!important;
 max-width:none!important;white-space:normal!important;
}
#app.seo-home-page .hero-copy p{font-size:14px!important;line-height:1.3!important;margin:0!important;max-width:72ch!important}
#app.seo-home-page .hero-actions{margin:9px 0 0!important;gap:7px!important}
#app.seo-home-page .hero-actions .btn{padding:9px 14px!important;font-size:13px!important}
#app.seo-home-page .hero-media{
 display:block!important;position:relative!important;min-height:155px!important;
 max-height:182px!important;height:100%!important;padding:0!important;
 margin:0!important;align-self:stretch!important;width:100%!important;overflow:hidden!important;
}
#app.seo-home-page .hero-media img{
 display:block!important;position:absolute!important;inset:0!important;
 width:100%!important;height:100%!important;
 object-fit:cover!important;object-position:center 45%!important;
 max-width:none!important;max-height:none!important;
}
#app.seo-home-page #featured-sheds{
 padding:11px 0 18px!important;margin:0!important;
}
#app.seo-home-page #featured-sheds .section-head{margin-bottom:10px!important;align-items:center!important}
#app.seo-home-page #featured-sheds .section-head h2{
 font-size:clamp(23px,2.3vw,29px)!important;line-height:1.1!important;
}
#app.seo-home-page #featured-sheds .section-head p{font-size:13px!important;margin-top:3px!important}
#app.seo-home-page #featured-sheds .section-head .btn{padding:8px 13px!important;font-size:12px!important}
#app.seo-home-page #featured-sheds .product-grid{gap:12px!important}
#app.seo-home-page #featured-sheds .card-image{aspect-ratio:4/3!important}
#app.seo-home-page #featured-sheds .card-image img{object-fit:contain!important}

/* Existing brands: keep a real visible hero image, not a blank crop. */
#app.buysheds-home-page .hero-card,
#app.shedswarehouse-home-page .hero-card{
 display:grid!important;grid-template-columns:minmax(0,1fr) minmax(225px,32%)!important;
 min-height:0!important;gap:0!important;align-items:stretch!important;
}
#app.buysheds-home-page .hero-copy,
#app.shedswarehouse-home-page .hero-copy{padding:14px 19px!important;display:flex!important;flex-direction:column!important;justify-content:center!important}
#app.buysheds-home-page .hero-copy h1,
#app.shedswarehouse-home-page .hero-copy h1{font-size:clamp(25px,2.7vw,33px)!important;line-height:1.15!important}
#app.buysheds-home-page .hero-copy p,
#app.shedswarehouse-home-page .hero-copy p{font-size:14px!important;line-height:1.4!important}
#app.buysheds-home-page .hero-actions,
#app.shedswarehouse-home-page .hero-actions{margin:8px 0 0!important}
#app.buysheds-home-page .hero-media,
#app.shedswarehouse-home-page .hero-media{display:block!important;min-height:160px!important;max-height:195px!important;height:auto!important}
#app.buysheds-home-page .hero-media img,
#app.shedswarehouse-home-page .hero-media img{object-fit:cover!important;width:100%!important;height:100%!important}
#app.sf-home-page .sf-home-hero-grid{min-height:0!important;max-height:none!important;align-items:stretch!important}
#app.sf-home-page .sf-home-hero-copy{padding:12px 18px!important}
#app.sf-home-page .sf-home-hero-copy h1{font-size:clamp(26px,3vw,36px)!important;line-height:1.1!important;max-width:24ch!important}
#app.sf-home-page .sf-home-hero-copy>p{font-size:14px!important;line-height:1.35!important}
#app.sf-home-page .sf-hero-actions{margin:9px 0!important}
#app.sf-home-page .sf-hero-checks{display:none!important}
#app.sf-home-page .sf-home-hero-image{display:block!important;min-height:175px!important;max-height:230px!important}
#app.sf-home-page .sf-home-hero-image img{height:100%!important;width:100%!important;object-fit:cover!important}

/* CATEGORY: a small product photograph beside the heading, INCLUDING MOBILE. */
#app.seo-category-page .category-hero-card{
 display:grid!important;grid-template-columns:minmax(0,1fr) minmax(190px,26%)!important;
 min-height:0!important;max-height:none!important;align-items:stretch!important;
}
#app.seo-category-page .category-hero-media{
 display:block!important;min-height:0!important;max-height:155px!important;
 height:155px!important;overflow:hidden!important;padding:0!important;
}
#app.seo-category-page .category-hero-media img{
 display:block!important;height:100%!important;width:100%!important;object-fit:contain!important;
}
@media(max-width:760px){
 #app.seo-home-page>.hero{padding:6px 0 2px!important}
 #app.seo-home-page .hero-card{
   grid-template-columns:minmax(0,1fr) 116px!important;
   display:grid!important;min-height:0!important;max-height:none!important;
 }
 #app.seo-home-page .hero-copy{padding:10px 11px!important}
 #app.seo-home-page .hero-copy .eyebrow{display:none!important}
 #app.seo-home-page .hero-copy h1{font-size:clamp(22px,5.9vw,27px)!important;line-height:1.1!important;margin:0 0 5px!important}
 #app.seo-home-page .hero-copy p{font-size:12px!important;line-height:1.25!important}
 #app.seo-home-page .hero-actions{margin-top:7px!important}
 #app.seo-home-page .hero-actions .btn{padding:7px 10px!important;font-size:12px!important}
 #app.seo-home-page .hero-media{
   display:block!important;height:154px!important;min-height:154px!important;max-height:154px!important;
 }
 #app.seo-home-page .hero-media img{display:block!important;object-fit:cover!important}
 #app.seo-home-page #featured-sheds{padding-top:7px!important}
 #app.seo-home-page #featured-sheds .section-head{gap:7px!important;flex-wrap:wrap!important}
 #app.seo-home-page #featured-sheds .section-head h2{font-size:22px!important}
 #app.seo-home-page #featured-sheds .section-head p{display:none!important}
 #app.seo-home-page #featured-sheds .section-head .btn{padding:7px 10px!important}
 #app.sf-home-page .sf-home-hero-grid{grid-template-columns:minmax(0,1fr) 120px!important}
 #app.sf-home-page .sf-home-hero-copy{padding:10px 12px!important}
 #app.sf-home-page .sf-home-hero-copy h1{font-size:clamp(21px,5.8vw,27px)!important}
 #app.sf-home-page .sf-home-hero-copy>p{font-size:12px!important;line-height:1.28!important}
 #app.sf-home-page .sf-hero-actions{margin:7px 0!important}
 #app.sf-home-page .sf-home-hero-image{display:block!important;min-height:165px!important;max-height:165px!important}
 #app.sf-home-page .sf-home-hero-image img{display:block!important}
 #app.buysheds-home-page .hero-card,
 #app.shedswarehouse-home-page .hero-card{grid-template-columns:minmax(0,1fr) 112px!important}
 #app.buysheds-home-page .hero-copy,
 #app.shedswarehouse-home-page .hero-copy{padding:10px 11px!important}
 #app.buysheds-home-page .hero-copy h1,
 #app.shedswarehouse-home-page .hero-copy h1{font-size:clamp(21px,5.8vw,27px)!important;line-height:1.12!important}
 #app.buysheds-home-page .hero-copy p,
 #app.shedswarehouse-home-page .hero-copy p{font-size:12px!important}
 #app.buysheds-home-page .hero-media,
 #app.shedswarehouse-home-page .hero-media{display:block!important;min-height:160px!important;max-height:160px!important;height:160px!important}
 #app.buysheds-home-page .hero-media img,
 #app.shedswarehouse-home-page .hero-media img{display:block!important}
 #app.hb-home-page .hb-hero-photo{
   display:grid!important;grid-template-columns:minmax(0,1fr) 112px!important;
   min-height:0!important;max-height:none!important;
 }
 #app.hb-home-page .hb-hero-photo>img{
   display:block!important;grid-column:2!important;grid-row:1!important;
   position:relative!important;height:160px!important;max-height:160px!important;
   min-height:160px!important;width:100%!important;object-fit:cover!important;
 }
 #app.hb-home-page .hb-hero-panel{
   display:block!important;grid-column:1!important;grid-row:1!important;
   padding:10px 11px!important;
 }
 #app.hb-home-page .hb-hero-panel h1{font-size:clamp(22px,5.9vw,27px)!important;line-height:1.1!important}
 #app.hb-home-page .hb-hero-panel p{font-size:12px!important;line-height:1.25!important}
 #app.seo-category-page .category-hero-card{
   display:grid!important;grid-template-columns:minmax(0,1fr) 105px!important;
 }
 #app.seo-category-page .category-hero-copy{padding:10px 11px!important;min-width:0!important}
 #app.seo-category-page .category-hero-copy h1{font-size:clamp(21px,5.6vw,27px)!important;line-height:1.12!important}
 #app.seo-category-page .category-hero-copy>p{font-size:12px!important;line-height:1.28!important}
 #app.seo-category-page .category-hero-media{
   display:block!important;height:134px!important;max-height:134px!important;min-height:0!important;
 }
 #app.seo-category-page .category-hero-media img{display:block!important;object-fit:cover!important}
}
