/* SCO full-width homepage extension for GeneratePress */
body.sco-market-header-active:has(.sco-home) .site.grid-container{max-width:none}body:has(.sco-home) .site-content{display:block}body:has(.sco-home) .content-area{width:100%;float:none}body:has(.sco-home) .inside-article{padding:0}body:has(.sco-home) article.page{margin:0}body:has(.sco-home) .entry-header,body:has(.sco-home) .entry-title{display:none}.sco-home{font-family:Arial,Helvetica,sans-serif;color:#1f2923;width:100%}.sco-home *{box-sizing:border-box}.sco-home a{text-decoration:none}.sco-home-wide{max-width:1660px;padding:0 32px;margin:auto}.sco-home-hero{position:relative;background-image:linear-gradient(90deg,rgba(9,18,13,.84),rgba(9,18,13,.44) 55%,rgba(9,18,13,.04)),var(--sco-hero-image,linear-gradient(115deg,#163c2b,#51735e));background-position:center;background-size:cover;min-height:360px;display:flex;align-items:center;color:#fff}.sco-home-hero-inner{width:100%;max-width:1660px;margin:auto;padding:48px 46px}.sco-home-eyebrow{margin:0 0 7px;font-size:13px;font-weight:700;letter-spacing:.32em}.sco-home h1,.sco-home h2{font-family:Georgia,'Times New Roman',serif;letter-spacing:-.035em}.sco-home h1{font-size:clamp(39px,4.7vw,78px);line-height:1.04;font-weight:700;margin:0 0 12px;color:#fff;text-shadow:0 2px 3px #15251c}.sco-home-hero-sub{font-size:clamp(16px,1.5vw,23px);max-width:760px;margin:0 0 22px;color:#fff}.sco-home-actions{display:flex;flex-wrap:wrap;gap:10px}.sco-home-button{display:inline-flex;align-items:center;justify-content:center;gap:15px;border-radius:6px;padding:15px 23px;color:white!important;font-weight:700;font-size:15px;border:1px solid rgba(255,255,255,.35);text-decoration:none}.sco-home-button.sco-orange{background:#bd4c17}.sco-home-button.sco-green{background:#214c39}.sco-home-button:hover{filter:brightness(1.1)}.sco-home-section{padding:24px 0}.sco-home-categories{background:#fbf6ed}.sco-home-category-row{display:grid;grid-template-columns:160px 1fr;gap:26px;align-items:center}.sco-home h2{font-size:clamp(26px,2.2vw,38px);line-height:1.03;margin:0;color:#212721}.sco-home-cat-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:14px}.sco-home-cat{min-width:0;text-align:center;color:#151b19!important;font-size:13px}.sco-home-cat-photo{display:block;height:96px;overflow:hidden;border-radius:5px;background:#e0d8ca}.sco-home-cat-photo img{width:100%;height:100%;object-fit:cover}.sco-home-cat-placeholder{height:100%;display:grid;place-items:center;font-size:38px;color:#a66e49;background:linear-gradient(140deg,#e7d7bd,#d0d6c5)}.sco-home-cat strong{display:block;margin:7px 0 0;line-height:1.2}.sco-home-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 14px}.sco-home-section-head a{color:#1b2b22;font-size:13px}.sco-home-product-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.sco-home-product{border:1px solid #e5e5df;border-radius:8px;padding:8px;background:white;min-width:0;display:flex;flex-direction:column}.sco-home-product-image{width:100%;aspect-ratio:1.48;background:#f4eee5;display:block;overflow:hidden;border-radius:5px}.sco-home-product-image img{width:100%;height:100%;object-fit:cover}.sco-home-product-detail{display:flex;justify-content:space-between;gap:10px;align-items:start;margin:8px 0 10px;flex:1;font-size:12px}.sco-home-product-name{color:#273329;line-height:1.4}.sco-home-price{font-weight:bold;white-space:nowrap}.sco-home-product-action{display:block;border-radius:4px;text-align:center;background:#214c39;color:#fff!important;font-size:12px;font-weight:bold;padding:8px}.sco-home-plan{background:#f8f2e7}.sco-home-plan-layout{display:grid;grid-template-columns:340px 1fr;gap:26px;align-items:center}.sco-home-plan-copy p{font-size:15px;line-height:1.55}.sco-home-plan-copy .sco-home-button{font-size:12px;padding:12px 18px}.sco-home-map-region{min-height:230px}.sco-home-map-placeholder{min-height:230px;background:repeating-linear-gradient(35deg,#e2e5d7,#e2e5d7 20px,#e9e9db 20px,#e9e9db 48px);border-radius:8px;display:flex;align-items:center;justify-content:center;gap:9px;flex-direction:column;text-align:center;color:#234e38;padding:24px}.sco-home-map-placeholder>span:first-child{font-size:42px}.sco-home-map-placeholder a{color:#b34713;font-weight:bold}.sco-home-join{background:#1f4735;color:#fff;padding:36px 0}.sco-home-join-inner{display:flex;justify-content:space-between;gap:24px;align-items:center}.sco-home-join h2{color:#fff;margin:0 0 8px}.sco-home-join p{margin:0 0 10px}.sco-home-join .sco-home-eyebrow{color:#e9cbb7}@media(max-width:1400px){.sco-home-cat-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.sco-home-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.sco-home-cat-photo{height:115px}}@media(max-width:800px){.sco-home-category-row,.sco-home-plan-layout{grid-template-columns:1fr}.sco-home-cat-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.sco-home-category-row h2 br{display:none}.sco-home-hero{min-height:340px}.sco-home-hero-inner{padding:40px 20px}.sco-home-wide{padding:0 16px}.sco-home-join-inner{flex-direction:column;align-items:flex-start}}@media(max-width:540px){.sco-home-cat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sco-home-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sco-home-hero-inner{padding:38px 17px}.sco-home-product-detail{display:block}.sco-home-price{margin-top:3px}.sco-home-actions{display:flex;flex-direction:column;align-items:stretch}.sco-home-cat-photo{height:115px}}

/* Lightweight homepage map preview; intentionally does not mount Google Maps. */
.sco-home-map-preview{min-height:260px;border-radius:8px;overflow:hidden;background:linear-gradient(135deg,#ced7c6,#e9e4ce 45%,#d3d6be 46%,#e8ddc4 65%,#b7cbb7);background-size:cover;background-position:center;display:flex;align-items:center;justify-content:center;text-align:center;padding:24px}.sco-home-map-preview-content{background:rgba(23,61,44,.88);color:#fff;display:flex;align-items:center;flex-direction:column;gap:8px;border-radius:8px;padding:23px 30px;max-width:95%}.sco-home-map-preview-content>span:first-child{font-size:34px}.sco-home-map-preview-content strong{font-size:18px}.sco-home-map-preview-content a{background:#bd4c17;color:#fff!important;font-weight:700;border-radius:4px;padding:10px 15px;margin-top:5px}

/* v1.1.3 homepage refinements */
.sco-home-hero{min-height:435px;background-position:center 44%}
.sco-home-hero-inner{padding-top:58px;padding-bottom:58px}
.sco-home-hero-inner>h1{max-width:790px}
.sco-home-hero-sub{max-width:630px;line-height:1.45}
.sco-home-hero-search{display:flex;align-items:stretch;max-width:640px;background:#fff;border:2px solid rgba(255,255,255,.75);border-radius:8px;overflow:hidden;margin:20px 0 14px;box-shadow:0 8px 26px rgba(0,0,0,.18)}
.sco-home-hero-search input[type=search]{flex:1;min-width:0;border:0;background:#fff;color:#20372b;padding:14px 16px;font-size:16px;border-radius:0;outline-offset:-3px}
.sco-home-hero-search button{flex:none;border:0;background:#bf4c17;color:white;font-weight:700;padding:13px 20px;cursor:pointer}
.sco-home-button.sco-cream{background:#f8efe2;border-color:#f8efe2;color:#244532!important}
.sco-home-directory-banner{background:#f4eee3;padding:24px 0;border-top:1px solid #e8dbca;border-bottom:1px solid #e8dbca}
.sco-home-directory-inner{display:flex;justify-content:space-between;align-items:center;gap:22px}
.sco-home-directory-inner h2{font-size:clamp(22px,2vw,31px);margin:0 0 7px;color:#234532}
.sco-home-directory-inner p{margin:0}.sco-home-directory-inner .sco-home-eyebrow{font-size:11px;color:#ad491d;margin-bottom:6px}
.sco-home-product-image img{transition:transform .25s ease}.sco-home-product:hover .sco-home-product-image img{transform:scale(1.035)}
.sco-home-product-name{font-weight:600}.sco-home-product-action:focus-visible,.sco-home-button:focus-visible{outline:3px solid #dbac5d;outline-offset:3px}
@media(max-width:800px){.sco-home-directory-inner{align-items:flex-start;flex-direction:column}.sco-home-hero{min-height:400px}}
@media(max-width:540px){.sco-home-hero-search{flex-direction:column}.sco-home-hero-search button{width:100%}.sco-home-hero{background-position:60% center}.sco-home-hero-inner{padding-top:42px;padding-bottom:42px}}

/* v1.1.4: compact homepage. Scoped to pages with SCO homepage content. */
body:has(.sco-home) #content.site-content,
body:has(.sco-home) .site-content{padding-top:0!important;margin-top:0!important}
body:has(.sco-home) #primary,
body:has(.sco-home) #main,
body:has(.sco-home) .site-main{margin-top:0!important;padding-top:0!important}
body:has(.sco-home) .site.grid-container{margin-top:0}
.sco-home-hero{min-height:370px;background-position:center 44%;background-image:linear-gradient(90deg,rgba(9,18,13,.76),rgba(9,18,13,.39) 54%,rgba(9,18,13,.02)),var(--sco-hero-image,linear-gradient(115deg,#163c2b,#51735e))}
.sco-home-hero-inner{padding:30px 32px}
.sco-home h1{font-size:clamp(37px,3.7vw,56px);line-height:1.08;margin-bottom:9px}
.sco-home-eyebrow{font-size:11px;margin-bottom:5px}
.sco-home-hero-sub{font-size:clamp(15px,1.25vw,19px);margin-bottom:12px;max-width:660px}
.sco-home-hero-search{max-width:610px;margin:12px 0 12px;box-shadow:0 4px 14px rgba(0,0,0,.13)}
.sco-home-hero-search input[type=search]{padding:10px 14px;font-size:15px;min-height:48px}
.sco-home-hero-search button{padding:10px 17px;font-size:14px}
.sco-home-button{padding:10px 16px;font-size:14px;gap:10px;min-height:44px}
.sco-home-actions{gap:9px}
.sco-home-section{padding:18px 0}
.sco-home-wide{padding-left:24px;padding-right:24px}
.sco-home-directory-banner{padding:18px 0}
.sco-home-join{padding:26px 0}
.sco-home-plan-layout{gap:20px}
.sco-home-map-preview{min-height:215px}
.sco-home-category-row{gap:20px}
.sco-home-cat-grid{gap:10px}
.sco-home-cat-photo{height:88px}
@media (max-width:1400px){.sco-home-cat-photo{height:100px}}
@media (max-width:800px){
 .sco-home-hero{min-height:340px}
 .sco-home-hero-inner{padding:32px 20px}
 .sco-home-wide{padding-left:16px;padding-right:16px}
 .sco-home-section{padding:18px 0}
}
@media (max-width:540px){
 .sco-home-hero{min-height:0;background-position:60% center}
 .sco-home-hero-inner{padding:30px 16px}
 .sco-home h1{font-size:clamp(33px,9vw,45px)}
 .sco-home-hero-sub{font-size:15px}
 .sco-home-hero-search{margin:13px 0 11px}
 .sco-home-hero-search input[type=search]{min-height:44px}
 .sco-home-button{min-height:44px}
 .sco-home-actions{gap:8px}
 .sco-home-map-preview{min-height:210px}
}

/* v1.1.5: remove theme-generated whitespace between SCO header and hero. */
body.sco-market-header-active:has(.sco-home) .site,
body.sco-market-header-active:has(.sco-home) .site-content,
body.sco-market-header-active:has(.sco-home) .content-area,
body.sco-market-header-active:has(.sco-home) .inside-article{margin-top:0!important;padding-top:0!important}
body.sco-market-header-active:has(.sco-home) .sco-home{margin-top:0!important}

/* v1.1.6: eliminate GeneratePress container gutters preceding the homepage hero. */
body.sco-market-header-active:has(.sco-home) #page,
body.sco-market-header-active:has(.sco-home) #content,
body.sco-market-header-active:has(.sco-home) .site-content,
body.sco-market-header-active:has(.sco-home) .content-area,
body.sco-market-header-active:has(.sco-home) .site-main,
body.sco-market-header-active:has(.sco-home) .inside-article,
body.sco-market-header-active:has(.sco-home) .entry-content{margin-top:0!important;padding-top:0!important}
body.sco-market-header-active:has(.sco-home) .site-main{margin-bottom:0!important}
body.sco-market-header-active:has(.sco-home) .entry-content{margin-bottom:0!important}

/* v1.1.7: richer homepage merchandising cards and denser category display. */
.sco-home-category-row{grid-template-columns:180px 1fr;align-items:start}
.sco-home-cat-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.sco-home-cat{font-size:14px}
.sco-home-cat-photo{height:150px;border-radius:10px;box-shadow:0 3px 12px rgba(0,0,0,.08);background:#e7dfd2}
.sco-home-cat strong{margin-top:10px;font-size:15px}
.sco-home-product-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.sco-home-product{padding:10px;border-radius:12px;box-shadow:0 8px 18px rgba(27,43,34,.06)}
.sco-home-product-body{display:flex;flex-direction:column;gap:10px;flex:1;padding-top:8px}
.sco-home-product-top{display:flex;gap:10px;align-items:flex-start;justify-content:space-between}
.sco-home-product-name{display:block;font-size:15px;line-height:1.35;font-weight:700}
.sco-home-price{font-size:14px;text-align:right;color:#1f3328}
.sco-home-product-meta{display:flex;flex-direction:column;gap:4px;font-size:12px;color:#55635a;min-height:42px}
.sco-home-product-vendor,.sco-home-product-vendor a{color:#214c39!important;font-weight:700}
.sco-home-product-location{display:flex;gap:6px;align-items:flex-start;line-height:1.35}
.sco-home-product-actions-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto}
.sco-home-product-action{flex:1 1 0;border-radius:6px;text-align:center;background:#214c39;color:#fff!important;font-size:12px;font-weight:700;padding:9px 10px;line-height:1.2}
.sco-home-product-action-secondary{background:#f5eee2!important;color:#234532!important;border:1px solid #ddcfb7}
.sco-home-product-action-buy{background:#bd4c17!important}
@media(max-width:1200px){.sco-home-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.sco-home-cat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.sco-home-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.sco-home-cat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sco-home-cat-photo{height:120px}.sco-home-product-grid{grid-template-columns:1fr}.sco-home-product-actions-row{flex-direction:column}.sco-home-product-action{width:100%}}

/* v1.1.8 compact four-column product cards with shorter photographs */
.sco-home-product-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.sco-home-product-image{aspect-ratio:1.65;max-height:172px}
.sco-home-product-name{font-size:13px;line-height:1.3}
.sco-home-product-top{gap:6px}
.sco-home-price{font-size:13px}
.sco-home-product-meta{font-size:11px;min-height:0}
.sco-home-product{padding:8px}
.sco-home-product-body{gap:7px}
@media(max-width:1050px){.sco-home-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:750px){.sco-home-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.sco-home-product-grid{grid-template-columns:repeat(1,minmax(0,1fr))}}

/* v1.1.10: dense category/product merchandising across screen sizes. */
@media(min-width:1401px){
 .sco-home-category-row{grid-template-columns:150px minmax(0,1fr);gap:16px}
 .sco-home-cat-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
 .sco-home-cat-photo{height:92px}
 .sco-home-product-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:11px}
 .sco-home-product-image{max-height:142px}
}
@media(min-width:901px) and (max-width:1400px){
 .sco-home-category-row{grid-template-columns:148px minmax(0,1fr);gap:14px}
 .sco-home-cat-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
 .sco-home-cat-photo{height:94px}
 .sco-home-product-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
 .sco-home-product-image{max-height:145px}
}
@media(min-width:601px) and (max-width:900px){
 .sco-home-cat-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
 .sco-home-cat-photo{height:90px}
 .sco-home-product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
 .sco-home-product-image{max-height:140px}
}
@media(max-width:600px){
 .sco-home-cat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .sco-home-cat-photo{height:105px}
 .sco-home-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .sco-home-product-image{max-height:142px}
 .sco-home-product-name{font-size:12px}
 .sco-home-product-actions-row{flex-direction:column}
}
.sco-home-cat strong{font-size:12px;margin-top:6px;line-height:1.25}
.sco-home-product{padding:7px}
.sco-home-product-action{padding:8px 6px}

/* v1.1.11: mobile-first category section correction. */
@media (max-width:900px){
  .sco-home-categories .sco-home-category-row{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;align-items:start}
  .sco-home-categories .sco-home-category-row>h2{max-width:none;margin:0;font-size:clamp(24px,5vw,32px);line-height:1.1}
  .sco-home-categories .sco-home-category-row>h2 br{display:none}
  .sco-home-categories .sco-home-cat-grid{width:100%;min-width:0;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
}
@media (max-width:600px){
  .sco-home-categories .sco-home-wide{padding-left:14px;padding-right:14px}
  .sco-home-categories .sco-home-category-row{gap:12px}
  .sco-home-categories .sco-home-cat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px}
  .sco-home-categories .sco-home-cat-photo{width:100%;height:auto;aspect-ratio:1.5;min-height:0;overflow:hidden}
  .sco-home-categories .sco-home-cat-photo img{display:block;width:100%;height:100%;object-fit:cover}
  .sco-home-categories .sco-home-cat strong{font-size:13px;line-height:1.25;overflow-wrap:anywhere}
}
