/* F&F Store Framework 0.3.1 — home module independent of theme. */
:root{--ff-primary:#36a646;--ff-text:#202a25;--ff-surface:#fff;--ff-surface-alt:#f3f7f4;--ff-radius:12px;--ff-card-gap:18px;--ff-card-padding:18px;--ff-font:system-ui,-apple-system,Segoe UI,Arial,sans-serif}
.ffstore-home{font-family:var(--ff-font);color:var(--ff-text);margin:1.2rem auto 2.5rem;width:100%;max-width:1320px;padding:0 12px}
.ffstore-home *{box-sizing:border-box}
.ffstore-home__grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(250px,1fr);gap:var(--ff-card-gap)}
.ffstore-home__hero{background:linear-gradient(118deg,var(--ff-surface-alt),#fff);border:1px solid #e5e9e7;border-radius:var(--ff-radius);padding:clamp(24px,4vw,60px);min-height:320px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
.ffstore-home__hero h2{font-weight:750;letter-spacing:-.04em;line-height:1.13;font-size:clamp(28px,3.2vw,48px);margin:.7rem 0 1rem;max-width:720px;color:var(--ff-text)}
.ffstore-home__hero p{font-size:clamp(15px,1.4vw,19px);line-height:1.6;color:#536057;max-width:580px;margin:0 0 1.4rem}
.ffstore-home__eyebrow{font-size:12px;letter-spacing:.1em;font-weight:800;color:var(--ff-primary)}
.ffstore-home__button{display:inline-flex;gap:1rem;align-items:center;background:var(--ff-primary);color:#fff!important;text-decoration:none!important;padding:13px 20px;border-radius:calc(var(--ff-radius) / 1.5);font-weight:750}
.ffstore-home__button:hover{filter:brightness(.9)}
.ffstore-home__side{display:grid;grid-template-rows:1fr 1fr;gap:var(--ff-card-gap)}
.ffstore-home__tile{display:flex;flex-direction:column;justify-content:center;padding:var(--ff-card-padding);background:var(--ff-surface-alt);border-radius:var(--ff-radius);text-decoration:none!important;color:var(--ff-text)!important;min-height:145px}
.ffstore-home__tile--alt{background:#edf0f3}
.ffstore-home__tile strong{display:block;font-size:clamp(21px,2vw,28px);line-height:1.2;margin-bottom:8px}
.ffstore-home__tile span{font-size:15px;opacity:.74}
.ffstore-home__categories{margin-top:32px}.ffstore-home__categories h2{font-size:24px;font-weight:500;margin-bottom:15px;color:var(--ff-text)}
.ffstore-home__category-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--ff-card-gap)}
.ffstore-home__category{display:flex;gap:10px;justify-content:space-between;align-items:center;color:var(--ff-text)!important;text-decoration:none!important;border:1px solid #e7ebe8;border-radius:var(--ff-radius);padding:var(--ff-card-padding);background:var(--ff-surface);font-weight:650;min-height:75px;transition:box-shadow .15s ease}
.ffstore-home__category:hover{box-shadow:0 4px 16px #00000014}
.ffstore-home__category span{color:var(--ff-primary);font-size:22px}
@media(max-width:850px){.ffstore-home__grid{grid-template-columns:1fr}.ffstore-home__side{grid-template-columns:1fr 1fr;grid-template-rows:1fr}.ffstore-home__category-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:550px){.ffstore-home__side{grid-template-columns:1fr}.ffstore-home__hero{min-height:260px}.ffstore-home__category-list{grid-template-columns:1fr 1fr}.ffstore-home__category{padding:12px;font-size:13px}}

/* 0.4.0: image layers and responsive variations */
.ffstore-home__hero{min-height:var(--ffhero-min-height,340px);position:relative;isolation:isolate;overflow:hidden}
.ffstore-home__media{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.ffstore-home__hero--image::before,.ffstore-home__tile--image::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.96),rgba(255,255,255,.72) 58%,rgba(255,255,255,.13));z-index:-1}
.ffstore-home__content{position:relative;z-index:1;max-width:660px}
.ffstore-home__tile{position:relative;isolation:isolate;overflow:hidden}
.ffstore-home__tile-content{display:flex;flex-direction:column;position:relative;z-index:1}
.ffstore-home__tile--image::before{background:linear-gradient(90deg,rgba(255,255,255,.97),rgba(255,255,255,.72) 72%,rgba(255,255,255,.23))}
.ffstore-home--wide .ffstore-home__grid,.ffstore-home--stack .ffstore-home__grid{grid-template-columns:1fr}
.ffstore-home--wide .ffstore-home__side{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:1fr}
.ffstore-home--stack .ffstore-home__side{grid-template-columns:1fr;grid-template-rows:1fr 1fr}
.ffstore-home--stack .ffstore-home__tile{min-height:170px}
@media(max-width:650px){.ffstore-home--wide .ffstore-home__side{grid-template-columns:1fr;grid-template-rows:auto}.ffstore-home__hero{min-height:max(260px,calc(var(--ffhero-min-height,340px) * .7))}.ffstore-home__hero--image::before{background:rgba(255,255,255,.84)}}

/* 0.4.1: ensure image layers and layouts also work with legacy theme selectors. */
.ffstore-home .ffstore-home__hero,
.ffstore-home .ffstore-home__tile {position:relative;isolation:isolate;overflow:hidden}
.ffstore-home .ffstore-home__hero > img.ffstore-home__media,
.ffstore-home .ffstore-home__tile > img.ffstore-home__media {
  position:absolute !important;
  inset:0 !important;
  display:block;
  width:100% !important;
  max-width:none !important;
  height:100% !important;
  max-height:none !important;
  object-fit:cover;
  object-position:center;
  margin:0 !important;
  z-index:-2;
}
.ffstore-home.ffstore-home--wide > .ffstore-home__grid,
.ffstore-home.ffstore-home--stack > .ffstore-home__grid{grid-template-columns:minmax(0,1fr)}
.ffstore-home.ffstore-home--stack .ffstore-home__side{grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(2,minmax(170px,auto))}
.ffstore-home.ffstore-home--wide .ffstore-home__side{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(170px,auto)}
@media(max-width:650px){.ffstore-home.ffstore-home--wide .ffstore-home__side{grid-template-columns:minmax(0,1fr);grid-template-rows:auto}}

/* 0.5.0: selectable background, split illustration and supplied artwork modes. */
.ffstore-home .ffstore-home__hero::before,.ffstore-home .ffstore-home__tile::before{pointer-events:none}
.ffstore-home .ffstore-home__hero.ffstore-home__panel--background::before,
.ffstore-home .ffstore-home__tile.ffstore-home__panel--background::before{
  background:linear-gradient(90deg,rgba(255,255,255,calc(var(--ffoverlay,85) * .01)),rgba(255,255,255,calc(var(--ffoverlay,85) * .0078)) 55%,rgba(255,255,255,.05));
}
.ffstore-home .ffstore-home__panel--background > img.ffstore-home__media {object-position:var(--ffimage-position,center) center}
.ffstore-home .ffstore-home__panel--split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:18px}
.ffstore-home .ffstore-home__panel--split::before{display:none}
.ffstore-home .ffstore-home__panel--split > img.ffstore-home__media{
  position:relative !important;inset:auto !important;grid-column:2;grid-row:1;
  width:100% !important;max-width:100% !important;height:100% !important;max-height:340px !important;
  object-fit:contain;object-position:var(--ffimage-position,center) center;z-index:auto;pointer-events:none;
}
.ffstore-home .ffstore-home__hero.ffstore-home__panel--split > .ffstore-home__content,
.ffstore-home .ffstore-home__tile.ffstore-home__panel--split > .ffstore-home__tile-content{grid-column:1;grid-row:1;min-width:0}
.ffstore-home .ffstore-home__tile.ffstore-home__panel--split{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.ffstore-home .ffstore-home__tile.ffstore-home__panel--split > img.ffstore-home__media{max-height:160px !important}
.ffstore-home .ffstore-home__panel--artwork{padding:0;background:#fff}
.ffstore-home .ffstore-home__panel--artwork::before{display:none}
.ffstore-home .ffstore-home__panel--artwork > img.ffstore-home__media{z-index:0;object-fit:contain;object-position:var(--ffimage-position,center) center}
.ffstore-home .ffstore-home__hero.ffstore-home__panel--artwork > img.ffstore-home__media{object-fit:contain}
.ffstore-home .ffstore-home__artwork-link{position:absolute;inset:0;z-index:2;display:block}
@media(max-width:650px){
 .ffstore-home .ffstore-home__hero{min-height:var(--ffhero-mobile-height,300px)}
 .ffstore-home .ffstore-home__hero.ffstore-home__panel--background > img.ffstore-home__media,
 .ffstore-home .ffstore-home__hero.ffstore-home__panel--artwork > img.ffstore-home__media{object-position:var(--ffmobile-image-position,center) center}
 .ffstore-home .ffstore-home__hero.ffstore-home__panel--split{grid-template-columns:1fr;gap:12px}
 .ffstore-home .ffstore-home__hero.ffstore-home__panel--split > img.ffstore-home__media{grid-column:1;grid-row:2;max-height:180px !important}
 .ffstore-home .ffstore-home__hero.ffstore-home__panel--split > .ffstore-home__content{grid-column:1;grid-row:1}
}

/* 0.6.0: optional category cards with native catalogue images */
.ffstore-home__category-name{font-weight:inherit;min-width:0;overflow-wrap:anywhere}
.ffstore-home__category-list--image .ffstore-home__category{flex-direction:column;justify-content:flex-start;text-align:center;gap:8px;padding:14px;min-height:0}
.ffstore-home__category-list--image .ffstore-home__category-media{display:grid;place-items:center;width:100%;aspect-ratio:3/2;min-width:0;color:var(--ff-primary);overflow:hidden}
.ffstore-home__category-list--image .ffstore-home__category-media img{display:block;width:100%;height:100%;object-fit:contain;margin:0}
.ffstore-home__category-list--image .ffstore-home__category-name{font-size:14px;line-height:1.4;flex:1;display:flex;align-items:center;justify-content:center}
.ffstore-home__category-list--image .ffstore-home__category > span{line-height:1;font-size:18px}
.ffstore-home__category:focus-visible{outline:2px solid var(--ff-primary);outline-offset:3px}
@media(min-width:551px) and (max-width:850px){.ffstore-home__category-list--image{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:550px){.ffstore-home__category-list--image .ffstore-home__category{padding:10px;gap:6px}.ffstore-home__category-list--image .ffstore-home__category-name{font-size:13px}}

/* 0.6.3: scoped category heading correction */
body#index .ffstore-home .ffstore-home__categories h2 {font-size:24px; font-weight:500;}
