/* Shared customer journey, distinct branding: four stores only.
   Same three steps / category filters as ShedsFirst, with per-brand tone and
   pictures. No changes to site prices, inventory, product URLs or checkout. */
body {
 --ux-accent:#ec5d2b;--ux-accent-dark:#a33c1c;
 --ux-ink:#24372f;--ux-surface:#fff;
 --ux-soft:#fff4ed;--ux-line:#e5dcd5;
 --ux-nav:#f6f8f5;--ux-nav-border:#e0e7dd;
 --ux-card-photo:#f1f5f0;--ux-text-on-accent:#fff;
 --ux-raised:#fff;--ux-section:#f3f6f2;
}
body.storefront-buysheds {
 --ux-accent:#123c69;--ux-accent-dark:#082846;
 --ux-ink:#152f4b;--ux-soft:#eef3f9;--ux-line:#cfdae8;
 --ux-nav:#edf3f9;--ux-nav-border:#d5e0eb;
 --ux-card-photo:#f1f5f9;--ux-text-on-accent:#fff;
 --ux-section:#f2f6fb;
}
body.storefront-shedswarehouse {
 --ux-accent:#a82031;--ux-accent-dark:#791b26;
 --ux-ink:#2a3136;--ux-soft:#fbeef0;--ux-line:#e6d9dc;
 --ux-nav:#f5f5f6;--ux-nav-border:#dedee1;
 --ux-card-photo:#f1f2f2;--ux-text-on-accent:#fff;
 --ux-section:#f5f5f5;
}
body.storefront-homeberry {
 --ux-accent:#d71f4d;--ux-accent-dark:#8e2442;
 --ux-ink:#4b2636;--ux-soft:#fbedf1;--ux-line:#eadce1;
 --ux-nav:#fcf7f9;--ux-nav-border:#eddee4;
 --ux-card-photo:#f9f1f4;--ux-text-on-accent:#fff;
 --ux-section:#fcf7f9;
}

/* Keep all navigation links visible and tappable: lighter menus, brand
   accent for current page. Do NOT change number of rows or menu behaviour. */
body .nav-wrap {
 background:var(--ux-nav)!important;
 border-bottom:1px solid var(--ux-nav-border)!important;
 box-shadow:0 2px 11px rgba(30,41,37,.045)!important;
}
body .nav-wrap.retail-category-grid-ready {
 --category-surface:#fff;
 --category-text:var(--ux-ink);
 --category-border:var(--ux-nav-border);
 --category-active:var(--ux-soft);
 background:var(--ux-nav)!important;
}
body .nav-wrap .nav > a {
 background:#fff!important;color:var(--ux-ink)!important;
 border:1px solid var(--ux-nav-border)!important;
 box-shadow:none!important;
}
body .nav-wrap .nav > a:is(:hover,:focus-visible),
body .nav-wrap.retail-category-grid-ready .nav > a:is(:hover,:focus-visible) {
 background:var(--ux-soft)!important;color:var(--ux-accent-dark)!important;
 border-color:var(--ux-accent)!important;
}
body .nav-wrap .nav > a.active,
body .nav-wrap .nav > a[aria-current="page"],
body .nav-wrap.retail-category-grid-ready .nav > a.active {
 background:var(--ux-accent)!important;
 color:var(--ux-text-on-accent)!important;
 border-color:var(--ux-accent)!important;
}
body .nav-wrap :where(a,button):focus-visible {
 outline:3px solid var(--ux-accent)!important;outline-offset:2px!important;
}
body .nav-wrap .retail-category-toggle {
 background:var(--ux-surface)!important;
 color:var(--ux-ink)!important;
 border:1px solid var(--ux-nav-border)!important;
}
/* BuySheds keeps its rectangular industrial feel; HomeBerry its rounded
   rose accents; ShedsWarehouse its practical red/grey styling. */
body.storefront-buysheds .nav-wrap .nav > a {border-radius:3px!important;}
body.storefront-shedswarehouse .nav-wrap .nav > a {border-radius:5px!important;}
body.storefront-homeberry .nav-wrap .nav > a {border-radius:999px!important;}

/* Step 1: existing choice cards, clearer and consistent photo framing. */
body #app .home-chooser-top {
 background:transparent!important;
 padding:13px 0 7px!important;margin:0!important;
}
body #app .home-chooser-top .section-head,
body #app .home-chooser-top .hb-heading {
 margin:0 0 11px!important;gap:9px!important;align-items:end!important;
}
body #app .home-chooser-top .section-head h1,
body #app .home-chooser-top .hb-heading h1 {
 color:var(--ux-ink)!important;
 font-size:clamp(26px,2.8vw,35px)!important;
 letter-spacing:-.02em!important;line-height:1.12!important;
 margin:4px 0 0!important;
}
body #app .home-chooser-top .eyebrow,
body #app .home-chooser-top .hb-heading>span {
 color:var(--ux-accent-dark)!important;
 font-size:11px!important;font-weight:850!important;
 letter-spacing:.075em!important;
}
body #app .home-chooser-top .category-grid-main.rich-six,
body #app .home-chooser-top .hb-space-grid {gap:11px!important;}
body #app .home-chooser-top a.category-card-main.rich {
 background:var(--ux-surface)!important;
 border:1px solid var(--ux-line)!important;
 box-shadow:0 2px 9px rgba(32,44,37,.055)!important;
 min-height:148px!important;max-height:148px!important;
 border-radius:var(--ux-radius,11px)!important;
}
body #app .home-chooser-top .category-card-main.rich>img {
 background:var(--ux-card-photo)!important;
 width:100%!important;height:100%!important;
 object-fit:contain!important;object-position:center!important;
 padding:8px!important;box-sizing:border-box!important;
}
body #app .home-chooser-top a.category-card-main.rich[href="/workshops/"]>img {
 object-fit:cover!important;object-position:82% center!important;
 padding:0!important;
}
body #app .home-chooser-top .category-card-copy {
 padding:13px 12px!important;justify-content:center!important;
}
body #app .home-chooser-top .category-card-copy h3 {
 color:var(--ux-ink)!important;font-size:17px!important;
 font-weight:850!important;line-height:1.18!important;
}
body #app .home-chooser-top .category-card-copy p {
 color:#65716c!important;font-size:11px!important;line-height:1.37!important;
 display:-webkit-box!important;-webkit-box-orient:vertical!important;
 -webkit-line-clamp:2!important;line-clamp:2!important;
 overflow:hidden!important;
}
body #app .home-chooser-top a.category-card-main.rich:hover {
 border-color:var(--ux-accent)!important;
 box-shadow:0 8px 20px rgba(32,44,37,.11)!important;
}
body.storefront-homeberry #app .home-chooser-top .hb-space-card {
 border-color:var(--ux-line)!important;
 box-shadow:0 2px 10px rgba(75,38,54,.055)!important;
}
body.storefront-homeberry #app .home-chooser-top a.hb-space-card[href="/workshops/"]>img {
 object-fit:cover!important;object-position:83% center!important;
 padding:0!important;
}
body.storefront-homeberry #app .home-chooser-top .hb-space-card strong {
 color:var(--ux-ink)!important;
}
body.storefront-homeberry #app .home-chooser-top .hb-space-card:hover {
 border-color:var(--ux-accent)!important;
}

/* Step 2: a distinct but compact size-selection panel. */
body #app .front-page-building-finder,
body #app .home-building-search-section {
 padding:8px 0 15px!important;margin:0!important;
 background:transparent!important;
}
body #app .front-page-building-finder .home-building-finder,
body #app .home-building-search-section .home-building-finder {
 background:var(--ux-surface)!important;
 border:1px solid var(--ux-line)!important;
 border-left:4px solid var(--ux-accent)!important;
 border-radius:var(--ux-radius,12px)!important;
 box-shadow:0 4px 15px rgba(31,45,39,.055)!important;
 padding:16px 17px!important;
}
body #app .front-page-building-finder .eyebrow,
body #app .home-building-search-section .eyebrow {
 background:transparent!important;
 color:var(--ux-accent-dark)!important;
 font-weight:850!important;font-size:11px!important;
 letter-spacing:.065em!important;
}
body #app .front-page-building-finder .category-size-copy h2,
body #app .home-building-search-section .category-size-copy h2 {
 color:var(--ux-ink)!important;
 font-size:clamp(22px,2.3vw,28px)!important;
 line-height:1.12!important;margin:7px 0 5px!important;
}
body #app .front-page-building-finder .category-size-controls select,
body #app .home-building-search-section .category-size-controls select {
 background:#fff!important;color:var(--ux-ink)!important;
 border:1px solid var(--ux-line)!important;
 min-height:44px!important;border-radius:8px!important;
}
body #app .front-page-building-finder .category-size-controls .btn,
body #app .home-building-search-section .category-size-controls .btn {
 background:var(--ux-accent)!important;
 color:var(--ux-text-on-accent)!important;
 border:1px solid var(--ux-accent)!important;
 min-height:44px!important;font-weight:800!important;
}
body #app .front-page-building-finder .category-size-mode input,
body #app .home-building-search-section .category-size-mode input {
 accent-color:var(--ux-accent)!important;
}
body #app .front-page-building-finder .category-popular-sizes a,
body #app .home-building-search-section .category-popular-sizes a {
 color:var(--ux-accent-dark)!important;
 border-color:var(--ux-line)!important;
}

/* Step 3: browse real products. Brand-specific accent retained. */
body #app .storefront-first-catalogue {
 background:var(--ux-section)!important;
 padding:15px 0 24px!important;
 border-top:1px solid var(--ux-line)!important;
}
body #app .storefront-first-catalogue .section-head h2,
body #app .storefront-first-catalogue .hb-heading h2 {
 color:var(--ux-ink)!important;
 font-size:clamp(24px,2.5vw,31px)!important;
 line-height:1.14!important;
}
body #app .storefront-first-catalogue .product-grid .card {
 background:#fff!important;border:1px solid var(--ux-line)!important;
 box-shadow:0 2px 9px rgba(34,47,38,.04)!important;
}
body #app .storefront-first-catalogue .price {
 color:var(--ux-accent-dark)!important;
}

/* Bespoke: existing authentic workshop photograph is shown ABOVE the existing
   message, not blank dark panel or unreadable text over a busy photograph. */
body .bespoke-page .bespoke-hero-card {
 display:flex!important;flex-direction:column!important;
 justify-content:flex-start!important;
 min-height:325px!important;padding:0!important;overflow:hidden!important;
 background:var(--ux-ink)!important;color:#fff!important;
 border-radius:var(--ux-radius,16px)!important;
}
body .bespoke-page .bespoke-hero-card::before {
 content:"";display:block!important;
 width:100%;height:200px;flex:0 0 200px;
 background:#e8efeb url("/campaign/marlborough-reverse-open.webp") 78% 48%/cover no-repeat;
}
body.storefront-homeberry .bespoke-page .bespoke-hero-card::before {
 background-image:url("/campaign/homeberry-workshop-800.webp");
 background-position:80% 48%;
}
body .bespoke-page .bespoke-hero-card strong {
 display:block!important;
 font-size:clamp(21px,2.2vw,26px)!important;
 line-height:1.13!important;
 padding:19px 22px 0!important;
 margin:0!important;color:#fff!important;
}
body .bespoke-page .bespoke-hero-card span {
 display:block!important;
 color:#e8eef0!important;
 font-size:14px!important;line-height:1.42!important;
 padding:9px 22px 22px!important;
}
body.storefront-homeberry .bespoke-page .bespoke-hero-card {
 background:var(--hb-plum)!important;
}

/* Category filter form: ShedsFirst structure, each site's own palette. */
/* ShedsFirst national category pages: filter panel directly under H1.
   Canonical URLs and SSR product listings stay intact. */
body #app .sf-filter-category .category-topline{padding:13px 0 9px!important}
body #app .sf-filter-category .category-topline h1{font-size:clamp(28px,3vw,36px)!important;color:var(--ux-ink)!important;margin:0!important}
body #app .sf-filter-category .category-main-layout{display:block!important;width:min(var(--max),calc(100% - 32px))!important;margin:0 auto!important}
body #app .sf-filter-category .sf-direct-filter-panel{background:var(--ux-surface)!important;border:1px solid var(--ux-line)!important;border-radius:14px!important;padding:16px 18px!important;margin:0 0 12px!important}
body #app .sf-filter-category .catalogue-filter-heading{display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:wrap!important;gap:12px!important;margin-bottom:13px!important}
body #app .sf-filter-category .catalogue-filter-heading strong{color:var(--ux-ink)!important;font-size:19px!important}
body #app .sf-filter-category .catalogue-heading-actions{display:flex!important;align-items:center!important;gap:9px!important;flex-wrap:wrap!important}
body #app .sf-filter-category .catalogue-sort{display:flex!important;align-items:center!important;gap:7px!important;font-size:12px!important;font-weight:750!important}
body #app .sf-filter-category .catalogue-sort select{height:38px!important;max-width:225px!important;padding:6px 9px!important;border:1px solid #ccdbce!important;border-radius:8px!important;background:#f7faf7!important}
body #app .sf-filter-category .catalogue-filter-grid{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:10px 12px!important;align-items:end!important}
body #app .sf-filter-category .catalogue-building-type-label{grid-column:span 2!important;font-weight:800!important}
body #app .sf-filter-category .catalogue-filter-grid select,
body #app .sf-filter-category .catalogue-filter-grid input{min-width:0!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;height:42px!important}
body #app .sf-filter-category .catalogue-building-type-label select{background:var(--ux-soft)!important;border-color:var(--ux-line)!important;color:var(--ux-accent-dark)!important;font-weight:750!important}
body #app .sf-filter-category .catalogue-filter-action{grid-column:1/-1!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding-top:4px!important}
body #app .sf-filter-category .catalogue-filter-action .primary{background:var(--ux-accent)!important;color:var(--ux-surface)!important;border-radius:24px!important;min-height:43px!important}
body #app .sf-filter-category .subcat-strip,
body #app .sf-filter-category .category-size-finder{display:none!important}
body #app .sf-filter-category .category-toolbar{margin:0 0 8px!important;padding:8px 0!important;background:transparent!important}
body #app .sf-filter-category .category-results{width:100%!important;min-width:0!important}
@media(max-width:1080px){
body #app .sf-filter-category .catalogue-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:650px){
body #app .sf-filter-category .category-topline{padding:8px 0 6px!important}
body #app .sf-filter-category .category-topline h1{font-size:27px!important}
body #app .sf-filter-category .category-main-layout{width:calc(100% - 16px)!important}
body #app .sf-filter-category .sf-direct-filter-panel{padding:13px 11px!important;border-radius:12px!important}
body #app .sf-filter-category .catalogue-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
body #app .sf-filter-category .catalogue-building-type-label{grid-column:1/-1!important}
body #app .sf-filter-category .catalogue-filter-action{flex-direction:column!important;align-items:stretch!important}
body #app .sf-filter-category .catalogue-filter-action .primary{width:100%!important;border-radius:9px!important}
}

/* Override filter colours and CTA in the four-brand theme. */
body #app .sf-filter-category .sf-direct-filter-panel {
 background:var(--ux-surface)!important;
 border-color:var(--ux-line)!important;
 border-left:4px solid var(--ux-accent)!important;
 border-radius:var(--ux-radius,13px)!important;
}
body #app .sf-filter-category .catalogue-filter-grid select:focus-visible,
body #app .sf-filter-category .catalogue-filter-grid input:focus-visible,
body #app .sf-filter-category .catalogue-filter-action button:focus-visible {
 outline:3px solid var(--ux-accent)!important;outline-offset:2px!important;
}
body #app .sf-filter-category .catalogue-filter-action .primary {
 background:var(--ux-accent)!important;
 color:var(--ux-text-on-accent)!important;
 border-color:var(--ux-accent)!important;
}
body.storefront-homeberry #app .sf-filter-category .catalogue-filter-action .primary {
 border-radius:999px!important;
}
body.storefront-buysheds #app .sf-filter-category .catalogue-filter-action .primary,
body.storefront-buysheds #app .sf-filter-category .sf-direct-filter-panel {
 border-radius:3px!important;
}
body.storefront-buysheds {--ux-radius:3px;}
body.storefront-shedswarehouse {--ux-radius:7px;}
body.storefront-homeberry {--ux-radius:18px;}

/* Responsive controls stay usable; images fill their allotted frames. */
@media(max-width:760px){
 body #app .home-chooser-top{padding:8px 0 4px!important;}
 body #app .home-chooser-top .category-card-main.rich {
   min-height:0!important;max-height:none!important;
   display:flex!important;flex-direction:column!important;
 }
 body #app .home-chooser-top .category-card-main.rich>img {
   width:100%!important;height:124px!important;min-height:124px!important;
   max-height:124px!important;flex:0 0 124px!important;
 }
 body #app .home-chooser-top .category-card-copy {
   padding:9px 10px!important;
 }
 body #app .home-chooser-top .category-card-copy h3 {
   font-size:14px!important;
 }
 body #app .home-chooser-top .category-card-copy p {
   display:none!important;
 }
 body #app .front-page-building-finder .home-building-finder,
 body #app .home-building-search-section .home-building-finder{
   padding:12px!important;
 }
 body #app .storefront-first-catalogue{padding:10px 0 18px!important}
 body .bespoke-page .bespoke-hero-card::before {
   height:190px;flex-basis:190px;
 }
 body .bespoke-page .bespoke-hero-card strong {
   padding:17px 18px 0!important;font-size:22px!important;
 }
 body .bespoke-page .bespoke-hero-card span {
   padding:8px 18px 18px!important;font-size:13px!important;
 }
}
