/* 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}}

/* Contact information and message panel stack on small screens. */
@media(max-width:767px){body.page-id-10224 .site-content div[style*="grid-template-columns"]{grid-template-columns:minmax(0,1fr)!important;gap:32px!important}body.page-id-10224 .site-content div[style*="grid-template-columns"]>div{min-width:0}body.page-id-10224 .site-content p,body.page-id-10224 .site-content li{font-family:Arial,Helvetica,sans-serif!important;line-height:1.65!important;overflow-wrap:anywhere;word-break:normal}}

/* Native account and embedded contact content must size to their container. */
@media(max-width:767px){html body .swc-account-guest{grid-template-columns:minmax(0,1fr)!important}html body .swc-account-guest>div{min-width:0!important;max-width:100%!important}html body .swc-account-guest__login{width:100%;min-width:0}html body .swc-account-guest__login>h2{overflow-wrap:anywhere;word-break:normal;line-height:1.2!important}html body .swc-account-guest__login .login-form-footer{flex-wrap:wrap;gap:12px}html body.page-id-22995 .swc-content-page{padding:20px!important}html body .swc-content-page .sks-shell,html body .swc-content-page .sks-inner{width:100%!important;max-width:100%!important;min-width:0!important}html body .swc-content-page .sks-head,html body .swc-content-page .sks-page-hero .sks-inner,html body .swc-content-page .sks-footer-grid{grid-template-columns:minmax(0,1fr)!important}html body .swc-content-page .sks-head>*,html body .swc-content-page .sks-inner>*{min-width:0}html body .swc-content-page .sks-shell h1,html body .swc-content-page .sks-shell h2{font-size:clamp(24px,6.5vw,30px)!important;line-height:1.25!important;overflow-wrap:anywhere;word-break:normal}}

/* Legacy contact product cards are a product grid, including featured cards. */
@media(max-width:767px){html body .swc-content-page .sks-wall:has(a[href*="/product/"]){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}html body .swc-content-page .sks-wall:has(a[href*="/product/"])>.sks-card{display:flex!important;flex-direction:column;grid-column:auto!important;grid-row:auto!important;min-width:0!important;max-width:100%}html body .swc-content-page .sks-wall .sks-card-img{width:100%;height:auto!important;min-height:0!important;aspect-ratio:1/1}html body .swc-content-page .sks-wall .sks-card-img img{width:100%!important;height:100%!important;object-fit:contain!important}html body .swc-content-page .sks-wall .sks-card-body{padding:12px!important;min-width:0}html body .swc-content-page .sks-wall .sks-card-body h3{font:600 14px/1.45 Arial,Helvetica,sans-serif!important;white-space:normal;overflow-wrap:anywhere;word-break:normal}html body .swc-content-page .sks-wall .sks-card-body p,html body .swc-content-page .sks-wall .sks-card-body small{font-family:Arial,Helvetica,sans-serif;overflow-wrap:anywhere;word-break:normal}html body .swc-content-page .sks-wall .sks-card-link{display:block;max-width:100%;white-space:normal;line-height:1.4;overflow-wrap:anywhere}}

@media(max-width:767px){html body.swc200.swc200-store .swc-account-guest .swc-account-guest__login>h2{font-size:28px!important;line-height:1.25!important;overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important}}
