/* SEWARD mobile product and text layout. Owner: existing storefront display layer.
   Applies presentation only. Desktop catalog composition and commerce logic stay native. */
.sma-reader.site-content{grid-column:1 / -1;min-width:0}
.sma-reader>article,.sma-reader .sma-intro,.sma-reader .sma-article-body{min-width:0}
.sma-reader h1,.sma-reader h2,.product_title,.swc-archive-product__summary h1{word-break:normal;overflow-wrap:anywhere;hyphens:auto}
@media(max-width:767px){
  /* Native Woodmart uses grid/flex column variables; preserve its carousel behavior. */
  .products.wd-products:not(.wd-carousel-container){--wd-col-sm:2!important;--wd-col-md:2!important;--wd-col:2!important}
  .products.wd-products.wd-grid-g{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .products.wd-products.wd-grid-f-col>.product-grid-item{width:50%!important;max-width:50%!important;flex-basis:50%!important;min-width:0}
  .swc-products,.swc-products--catalog,.swc-products--related,.swc-command-products{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .swc-products>.swc-product,.products>.product-grid-item{min-width:0}
  /* Article cards: retain the whole product photo, with two items in each row. */
  .sma-reader .sma-product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px;margin:24px 0;align-items:stretch}
  .sma-reader .sma-product-grid figure{min-width:0;margin:0;padding:10px}
  .sma-reader .sma-product-grid a{display:block;min-width:0}
  .sma-reader .sma-product-grid img{width:100%;height:auto;aspect-ratio:1 / 1;object-fit:contain}
  .sma-reader .sma-product-grid figcaption{font:600 14px/1.5 Arial,Helvetica,sans-serif;white-space:normal;word-break:normal;overflow-wrap:anywhere;hyphens:auto}
  /* Long translated product names must wrap in readable lines, never a narrow column. */
  .product-grid-item .wd-entities-title,.product-grid-item .wd-entities-title a,
  html body .swc-products.swc-products .swc-product h3,html body .swc-products.swc-products .swc-product h3 a{
    font-family:Arial,Helvetica,sans-serif!important;font-size:14px!important;font-weight:600!important;line-height:1.45!important;
    white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere;hyphens:auto;text-transform:none!important
  }
  .product-grid-item .wd-entities-title,html body .swc-products.swc-products .swc-product h3{
    display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden!important;height:4.35em!important;min-height:4.35em!important;max-height:4.35em!important;margin-bottom:8px!important
  }
  .swc-products .swc-product__body{min-width:0}
  .swc-products .swc-product__buy{min-width:0;flex-wrap:wrap;gap:8px}
  .swc-products .swc-add{white-space:normal;overflow-wrap:anywhere;line-height:1.35;min-height:40px}
  .swc-products .swc-product__buy strong,.product-grid-item .price{white-space:normal;overflow-wrap:normal}
  .product_title,.swc-archive-product__summary h1{max-width:100%;font-size:clamp(25px,7vw,32px)!important;line-height:1.25!important;letter-spacing:normal!important}
  .woocommerce-product-details__short-description,.swc-archive-copy,.swc-archive-copy p{font-size:16px;line-height:1.65;overflow-wrap:anywhere;word-break:normal}
  .swc-store-main,.swc-page-dossier,.swc-archive-product__summary,.entry-content,.woocommerce-MyAccount-content{min-width:0}
  .swc-footer p,.swc-footer a,footer.footer-container p,footer.footer-container a{overflow-wrap:anywhere;word-break:normal}
}

/* Cyrillic craft heading needs a readable face and line box at desktop widths. */
html:lang(ru) body #swc-command-craft-title,html:lang(tr) body #swc-command-craft-title{font-family:Arial,Helvetica,sans-serif!important;font-size:clamp(26px,2.5vw,36px)!important;line-height:1.18!important;letter-spacing:-.02em!important;width:100%!important;max-width:100%!important;min-width:0;overflow-wrap:normal;word-break:normal;hyphens:auto}

@media(max-width:767px){html[lang^="ru"] body.swc200.swc-home-command .swc-command-hero__copy{padding-right:12px!important;min-width:0}html[lang^="ru"] body.swc200 #swc-command-hero-title{overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important}}
