/* CHERRYSTONE responsive and accessibility layer */
.cs-home-hero-grid{min-height:0;height:clamp(480px,calc(100svh - 72px),920px);align-items:stretch}
@supports(height:100dvh){.cs-home-hero-grid{height:clamp(480px,calc(100dvh - 72px),920px)}}
.cs-home-hero-copy{min-height:0;overflow:auto;padding:clamp(28px,5vw,80px)}
.cs-home-hero-media{position:relative;min-height:0;height:100%;overflow:hidden}
.cs-home-hero-media .cs-reference-crop{position:absolute;inset:0;width:100%;height:100%}
.cs-reference-crop{display:block;width:100%;height:100%}
:where(a,button,input,textarea,select,summary):focus-visible{outline:3px solid #8c2424;outline-offset:3px}
.cs-button,.cs-add-to-cart,.cs-menu-toggle,.cs-header-icon,.cs-home-product-fav,.cs-size-option{touch-action:manipulation}
.cs-home-product-image,.cs-commerce-visual{isolation:isolate}
.cs-home-product-image:after,.cs-commerce-visual:after{content:"";position:absolute;inset:0;border:1px solid rgba(20,19,18,.08);border-radius:inherit;pointer-events:none;z-index:2}
.cs-home-product-fav{display:grid;place-items:center;min-width:40px;min-height:40px;right:10px;top:10px;line-height:1}
.cs-review-card,.cs-about-value{content-visibility:auto;contain-intrinsic-size:300px}
.cs-home-product{content-visibility:visible;contain:none}

/* Reliable local product artwork. Products currently have featured_media=0,
   therefore the home cards use theme-owned SVG files instead of the
   reference SVG <use> helper. */
.cs-home-product-image{
  display:block;
  position:relative;
  aspect-ratio:4/5;
  min-height:0;
  overflow:hidden;
  background-color:#ded3c8;
  background-repeat:no-repeat!important;
  background-position:center!important;
  background-size:cover!important;
}
.cs-home-product-image .cs-reference-crop{display:none!important}
.cs-home-product-image>img{
  display:block!important;
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  max-width:none;
  object-fit:cover;
  object-position:center;
  z-index:1;
}
.cs-home-product:nth-child(1) .cs-home-product-image{background-image:url("assets/products/popular-1.svg")!important}
.cs-home-product:nth-child(2) .cs-home-product-image{background-image:url("assets/products/popular-2.svg")!important}
.cs-home-product:nth-child(3) .cs-home-product-image{background-image:url("assets/products/popular-3.svg")!important}
.cs-home-product:nth-child(4) .cs-home-product-image{background-image:url("assets/products/popular-4.svg")!important}

.cs-product-main-image{border-radius:12px}
.cs-product-summary h1,.cs-home-about-copy h2,.cs-production-copy h2{text-wrap:balance}
.cs-size-option{min-height:44px;border-radius:4px}
.cs-size-row a{text-underline-offset:3px}

@media(max-width:1050px){
  .cs-home-hero-grid{grid-template-columns:46% 54%}
  .cs-home-hero-copy{padding:clamp(26px,4vw,52px)}
  .cs-product-layout{gap:36px}
}
@media(max-width:760px){
  body.cs-menu-open{overflow:hidden}
  .cs-site-header{backdrop-filter:none;background:#f7f4ee}
  .cs-header-inner{min-height:64px}
  .cs-menu-toggle{min-width:44px;min-height:44px;display:grid;align-content:center;justify-content:start}
  .cs-header-icon{min-width:44px;min-height:44px}
  .cs-mobile-menu{position:fixed;left:0;right:0;top:64px;bottom:0;max-height:none;overflow:auto;padding:18px 20px 32px;z-index:70}
  .cs-mobile-menu a{min-height:52px;display:flex;align-items:center;font-size:17px}
  .cs-home-hero-grid{height:auto;min-height:0;grid-template-columns:1fr}
  .cs-home-hero-media{order:1;width:100%;height:clamp(320px,58svh,560px);min-height:0}
  @supports(height:100dvh){.cs-home-hero-media{height:clamp(320px,58dvh,560px)}}
  .cs-home-hero-copy{order:2;overflow:visible}
  .cs-home-products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px}
  .cs-home-product-image{border-radius:7px}
  .cs-home-product-info{padding-top:10px}
  .cs-home-product-sizes{font-size:10px;line-height:1.35}
  .cs-product-page{padding-top:16px;padding-bottom:56px}
  .cs-product-breadcrumb{margin-bottom:14px;font-size:11px;overflow-wrap:anywhere}
  .cs-product-main-image,.cs-product-main-image .cs-reference-crop{min-height:0;aspect-ratio:4/5}
  .cs-product-summary h1{font-size:34px}
  .cs-size-options{grid-template-columns:repeat(5,1fr)}
  .cs-size-option{min-height:46px}
  .cs-product-buy{position:sticky;bottom:10px;z-index:15;box-shadow:0 10px 30px rgba(0,0,0,.22)}
}
@media(max-width:420px){
  .cs-wrap{width:calc(100% - 24px)}
  .cs-home-hero-media{height:clamp(300px,52svh,440px)}
  @supports(height:100dvh){.cs-home-hero-media{height:clamp(300px,52dvh,440px)}}
  .cs-home-products-grid{gap:12px 8px}
  .cs-about-values-grid{grid-template-columns:1fr}
  .cs-about-value{padding:14px 4px}
  .cs-production-grid{gap:28px}
}
@media(max-height:640px) and (min-width:761px){
  .cs-home-hero-grid{height:calc(100svh - 72px);min-height:420px}
  @supports(height:100dvh){.cs-home-hero-grid{height:calc(100dvh - 72px)}}
  .cs-home-hero-copy{padding-top:24px;padding-bottom:24px}
  .cs-home-hero h1{font-size:clamp(42px,5vw,68px);margin-bottom:14px}
  .cs-home-hero-subtitle{font-size:clamp(19px,1.8vw,26px);margin-bottom:12px}
  .cs-home-hero-note{margin-bottom:20px;font-size:14px}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}

/* Reduced desktop hero: keep the entire left content visible without scrolling. */
@media(min-width:761px){
  .cs-home-hero-grid{
    height:clamp(460px,calc(78svh - 72px),680px)!important;
    min-height:460px;
  }
  @supports(height:100dvh){
    .cs-home-hero-grid{height:clamp(460px,calc(78dvh - 72px),680px)!important}
  }
  .cs-home-hero-copy{
    overflow:visible;
    padding:clamp(24px,3.5vw,52px);
  }
  .cs-home-hero h1{
    font-size:clamp(44px,5vw,72px);
    margin-bottom:16px;
  }
  .cs-home-hero-subtitle{margin-bottom:14px}
  .cs-home-hero-note{margin-bottom:22px}
}
@media(min-width:761px) and (max-width:1050px){
  .cs-home-hero-copy{padding:clamp(22px,3vw,40px)}
}
@media(max-height:640px) and (min-width:761px){
  .cs-home-hero-grid{
    height:clamp(440px,calc(100svh - 72px),560px)!important;
    min-height:440px;
  }
  @supports(height:100dvh){
    .cs-home-hero-grid{height:clamp(440px,calc(100dvh - 72px),560px)!important}
  }
  .cs-home-hero-copy{padding-top:18px;padding-bottom:18px}
  .cs-home-hero h1{font-size:clamp(38px,4.6vw,58px);margin-bottom:10px}
  .cs-home-hero-subtitle{font-size:clamp(18px,1.7vw,23px);margin-bottom:9px}
  .cs-home-hero-note{margin-bottom:14px;font-size:13px;line-height:1.4}
  .cs-home-hero .cs-kicker{margin-bottom:8px}
  .cs-home-hero .cs-button{min-height:42px;padding-left:20px;padding-right:20px}
}
