/* Soul Tone v1.8: WooCommerce storefront uses a white, readable canvas.
   Works with classic WooCommerce wrappers, modern Product Collection blocks,
   shop archives, Cart and Checkout blocks. Keeps footer after short content. */
html, body { min-height:100%; }
.site-frame { min-height:100vh; min-height:100dvh; display:flex; flex-direction:column; }
.site-frame>.site-footer { margin-top:auto!important; flex-shrink:0; }
.site-frame>.st-photo-clearance { flex-shrink:0; }
.site-frame>.site-header { flex-shrink:0; }
/* The actual shop archive is emitted by WooCommerce, not the Pages editor. */
body.soul-tone-shop .site-frame>.shop-shell,
body.woocommerce-shop .site-frame>.shop-shell,
body.post-type-archive-product .site-frame>.shop-shell,
body.woocommerce-page .site-frame>.shop-shell,
body.page-products .site-frame>.page-main,
body.page-shop .site-frame>.page-main { flex:1 0 auto; }
body.soul-tone-shop .shop-shell,
body.woocommerce-shop .shop-shell,
body.post-type-archive-product .shop-shell,
body.woocommerce-page .shop-shell,
body.soul-tone-shop .page-main,
body.woocommerce-page .page-main,
body.page-products .page-main,
body.page-shop .page-main {
  display:block!important;
  position:relative!important;
  z-index:2!important;
  color:#4B4848!important;
  background:#FFFFFF!important;
  min-height:clamp(360px,54vh,690px);
  box-sizing:border-box;
  overflow-wrap:anywhere;
}
/* White content panel even if a WooCommerce archive is rendered by blocks or
   a third-party WooCommerce template that bypasses the legacy wrapper hooks. */
@media(min-width:900px){
  body.soul-tone-shop .shop-shell,
  body.woocommerce-shop .shop-shell,
  body.post-type-archive-product .shop-shell,
  body.woocommerce-page .shop-shell,
  body.soul-tone-shop .page-main,
  body.woocommerce-page .page-main,
body.page-products .page-main,
body.page-shop .page-main {
    width:min(calc(100% - 72px),1240px)!important;
    margin:0 auto 64px!important;
    padding:clamp(40px,5vw,72px) clamp(20px,4vw,64px) 74px!important;
    box-shadow:0 18px 50px rgba(15,28,24,.11);
  }
}
@media(max-width:899px){
  body.soul-tone-shop .shop-shell,
  body.woocommerce-shop .shop-shell,
  body.post-type-archive-product .shop-shell,
  body.woocommerce-page .shop-shell,
  body.soul-tone-shop .page-main,
  body.woocommerce-page .page-main,
body.page-products .page-main,
body.page-shop .page-main {
    width:100%!important;max-width:none!important;
    margin:0!important;
    padding:32px 0 56px!important;
    min-height:45vh;
    box-shadow:none!important;
  }
}
/* Preserve normal Woo containers but don't allow Woo content to collapse. */
.woocommerce .site-main.shop-shell>.container,
.shop-shell>.container,
.woocommerce-page .page-main>.container,
.woocommerce-page .content-shell { width:min(calc(100% - 44px),1120px);max-width:1120px;margin-inline:auto; }
.shop-shell .woocommerce-breadcrumb,
.woocommerce .woocommerce-breadcrumb,
.woocommerce-products-header,
.woocommerce .woocommerce-products-header,
.shop-shell p,
.shop-shell li,
.shop-shell span,
.shop-shell label,
.shop-shell select,
.shop-shell .woocommerce-result-count,
.shop-shell .woocommerce-ordering,
.wp-block-woocommerce-product-collection {color:#4B4848;}
.shop-shell h1,.shop-shell h2,.shop-shell h3,
.woocommerce-products-header__title.page-title,
.woocommerce .woocommerce-products-header__title,
.woocommerce h1.page-title {color:#28453B!important;line-height:1.25!important;}
.shop-shell ul.products,
.woocommerce ul.products {width:100%;max-width:100%;}
.shop-shell .woocommerce-info,
.woocommerce-page .woocommerce-info,
.shop-shell .woocommerce-message,
.woocommerce-page .woocommerce-message,
.shop-shell .woocommerce-error {
  background:#F7F7F7!important;color:#4B4848!important;
  border-top-color:#B76A2A!important;padding:18px 22px!important;
}
.shop-shell .woocommerce-info a,.shop-shell .woocommerce-message a{color:#254940;text-decoration:underline;}
/* The footer ends the document on even an empty shop, not halfway up a photograph. */
body.soul-tone-shop .site-footer,body.woocommerce-page .site-footer{margin-top:auto!important;}
@media(max-width:660px){
 .shop-shell ul.products,.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:15px!important;}
 .shop-shell .woocommerce-products-header__title,.woocommerce h1.page-title{font-size:clamp(30px,9vw,48px)!important;}
}
@media(max-width:420px){ .shop-shell ul.products,.woocommerce ul.products{grid-template-columns:1fr!important;gap:20px!important;} }
/* A small static beamed-note finishing motif: avoids jank on mobile scroll. */
/* Music motif travels with the same scroll fraction as the progress line.
   Keep the positioning transform-only to avoid mobile scroll layout thrashing. */
.st-scroll-progress__motif{left:0!important;right:auto!important;transform:translate3d(0,0,0);will-change:transform!important;contain:none!important;transition:none!important;}
@media(prefers-reduced-motion:reduce){.st-scroll-progress__motif{display:none!important;}}
