/* SpeedX Racegear | 2027 merchandising pass v3
   Targets actual .sx-shop-grid archive markup. Inactive draft theme only. */
body.sx-modern .sx-archive .sx-shop-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  align-items:stretch!important;
  align-content:start!important;
  gap:20px!important;
  clear:both!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:24px 0 36px!important;
  padding:0!important;
}
body.sx-modern .sx-archive .sx-shop-grid::before,
body.sx-modern .sx-archive .sx-shop-grid::after{display:none!important;content:none!important}
body.sx-modern .sx-archive .sx-shop-grid > article.sx-catalogue-card,
body.sx-modern .sx-archive .sx-shop-grid > .product{
  float:none!important;clear:none!important;
  display:flex!important;flex-direction:column!important;
  grid-column:auto!important;grid-row:auto!important;
  width:100%!important;max-width:none!important;
  min-width:0!important;min-height:0!important;height:auto!important;
  margin:0!important;padding:0!important;
  background:#fff!important;border:1px solid #e1e5e3!important;
  border-radius:4px!important;box-shadow:none!important;
  overflow:hidden!important;
}
body.sx-modern .sx-archive .sx-shop-grid .sx-catalogue-card__media{
  position:relative!important;display:block!important;
  aspect-ratio:4/4.6!important;width:100%!important;
  height:auto!important;min-height:0!important;max-height:none!important;
  background:#f3f4f3!important;overflow:hidden!important;line-height:0!important;
}
body.sx-modern .sx-archive .sx-shop-grid img.sx-catalogue-card__image{
  display:block!important;width:100%!important;height:100%!important;
  padding:10px!important;margin:0!important;
  object-fit:contain!important;object-position:center!important;
  background:transparent!important;
}
body.sx-modern .sx-archive .sx-shop-grid .sx-catalogue-card__body{
  display:flex!important;flex-direction:column!important;
  flex:1 1 auto!important;justify-content:flex-start!important;
  gap:0!important;min-height:0!important;height:auto!important;
  padding:16px!important;margin:0!important;
}
body.sx-modern .sx-archive .sx-shop-grid h2.sx-catalogue-card__name{
  margin:0 0 11px!important;padding:0!important;
  font:700 13px/1.5 var(--sx-body,Arial,sans-serif)!important;
  letter-spacing:-.01em!important;min-height:0!important;max-height:4.5em!important;
  overflow:hidden!important;display:-webkit-box!important;
  -webkit-line-clamp:3;-webkit-box-orient:vertical;
  overflow-wrap:anywhere!important;text-align:left!important;
}
body.sx-modern .sx-archive .sx-shop-grid h2.sx-catalogue-card__name a{color:#202b31!important}
body.sx-modern .sx-archive .sx-shop-grid .sx-catalogue-card__price{
  margin:0 0 12px!important;padding:0!important;
  min-height:0!important;height:auto!important;
  font:800 16px/1.35 var(--sx-body,Arial,sans-serif)!important;
  color:#19232a!important;
}
body.sx-modern .sx-archive .sx-shop-grid .sx-catalogue-card__price *{
  font-size:inherit!important;font-weight:inherit!important;
}
body.sx-modern .sx-archive .sx-shop-grid .sx-catalogue-card__action{
  display:flex!important;align-items:center!important;justify-content:center!important;
  min-height:43px!important;width:100%!important;max-width:100%!important;
  margin:auto 0 0!important;padding:10px 9px!important;
  background:#202a33!important;color:#fff!important;
  border-radius:3px!important;border:1px solid #202a33!important;
  font:800 11px/1.25 var(--sx-body,Arial,sans-serif)!important;
  letter-spacing:.04em!important;text-align:center!important;
  text-transform:uppercase!important;
}
body.sx-modern .sx-archive .sx-shop-grid .sx-catalogue-card__action:hover{background:#bf2931!important;border-color:#bf2931!important}
body.sx-modern .sx-archive .sx-shop-grid .sx-catalogue-card__action span{display:none!important}
@media(max-width:1024px){
  body.sx-modern .sx-archive .sx-shop-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:15px!important}
}
@media(max-width:800px){
  body.sx-modern .sx-archive .sx-shop-grid{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:12px!important;
    margin:16px 0 30px!important;
  }
  body.sx-modern .sx-archive .sx-shop-grid > article.sx-catalogue-card{
    width:100%!important;max-width:100%!important;grid-column:auto!important;
  }
  body.sx-modern .sx-archive .sx-shop-grid .sx-catalogue-card__media{aspect-ratio:4/5!important}
  body.sx-modern .sx-archive .sx-shop-grid .sx-catalogue-card__body{padding:11px 10px!important}
  body.sx-modern .sx-archive .sx-shop-grid h2.sx-catalogue-card__name{
    font-size:12px!important;line-height:1.38!important;max-height:4.2em!important;
    min-height:0!important;margin-bottom:9px!important;
  }
  body.sx-modern .sx-archive .sx-shop-grid .sx-catalogue-card__price{font-size:14px!important;margin-bottom:9px!important}
  body.sx-modern .sx-archive .sx-shop-grid .sx-catalogue-card__action{
    font-size:10px!important;min-height:40px!important;padding:9px 4px!important;
  }
  body.sx-modern .sx-archive .sx-archive-description{font-size:13px!important;line-height:1.6!important}
}
@media(max-width:380px){
 body.sx-modern .sx-archive .sx-shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
 body.sx-modern .sx-archive .sx-shop-grid .sx-catalogue-card__body{padding:10px 8px!important}
 body.sx-modern .sx-archive .sx-shop-grid .sx-catalogue-card__action{font-size:9px!important}
}
/* Single product: Shopify-like editorial hierarchy, without interfering with WooCommerce logic */
body.sx-modern.single-product .sx-product-page{background:#fff}
body.sx-modern.single-product .elementor-1643 .elementor-element-280e391a>.elementor-container{
  align-items:start!important;gap:clamp(25px,3.6vw,58px)!important
}
body.sx-modern.single-product .elementor-1643 .elementor-widget-woocommerce-product-etheme_title{
  margin-bottom:11px!important
}
body.sx-modern.single-product .elementor-1643 .product_title,
body.sx-modern.single-product .woocommerce div.product .product_title{
  font:750 clamp(31px,3vw,43px)/1.14 var(--sx-body,Arial,sans-serif)!important;
  letter-spacing:-.027em!important;color:#182329!important;
  text-wrap:balance!important;margin:0 0 8px!important;
}
body.sx-modern.single-product .elementor-1643 .elementor-widget-woocommerce-product-etheme_price{
  margin:2px 0 12px!important
}
body.sx-modern.single-product .elementor-1643 .elementor-widget-woocommerce-product-etheme_price .price,
body.sx-modern.single-product .woocommerce div.product .price,
body.sx-modern.single-product .elementor-1643 .woocommerce-product-price{
  font:800 clamp(23px,2.2vw,29px)/1.35 var(--sx-body,Arial,sans-serif)!important;
  color:#19232b!important;margin:0!important
}
body.sx-modern.single-product .elementor-1643 .elementor-widget-woocommerce-product-etheme_short_description{
  margin:0 0 16px!important;color:#5d696f!important;
}
body.sx-modern.single-product .woocommerce div.product .woocommerce-product-details__short-description{
  line-height:1.7!important;margin:0 0 15px!important;font-size:14px!important;
}
body.sx-modern.single-product .elementor-1643 .woocommerce-product-gallery{
  margin-top:0!important;background:#f6f7f6!important;border-radius:5px!important;
  overflow:hidden;
}
body.sx-modern.single-product .elementor-1643 .woocommerce-product-gallery img{
  padding:0!important;object-fit:contain!important;
}
body.sx-modern.single-product form.cart{margin-top:6px!important;margin-bottom:14px!important}
body.sx-modern.single-product .sx-premium-purchase{gap:9px!important}
body.sx-modern.single-product .sx-premium-purchase .sx-buy-now{
  font:800 12px/1.3 var(--sx-body,Arial,sans-serif)!important;
  letter-spacing:.07em!important;border-radius:4px!important;
  background:#c92e35!important;border-color:#c92e35!important;
  min-height:52px!important
}
body.sx-modern.single-product .sx-premium-purchase .single_add_to_cart_button{
  border-radius:4px!important;min-height:52px!important;
  font:800 12px/1.3 var(--sx-body,Arial,sans-serif)!important
}
body.sx-modern.single-product .sx-funnel{
  margin:17px 0 28px!important;
  border:1px solid #e2e6e4!important;box-shadow:none!important
}
body.sx-modern.single-product .sx-funnel-heading{padding:17px 19px!important;background:#fafbfa!important}
body.sx-modern.single-product .sx-funnel-heading>span{font-size:9px!important}
body.sx-modern.single-product .sx-funnel-heading h3{
  font:750 16px/1.25 var(--sx-body,Arial,sans-serif)!important;letter-spacing:-.02em!important;
}
body.sx-modern.single-product .sx-funnel-detail>summary{padding:15px 19px!important;font-size:13px!important}
body.sx-modern.single-product .sx-funnel-detail-body{padding-top:0!important;padding-bottom:17px!important}
/* Hide XStore's redundant category carousel; the verified clean related grid is rendered by the draft product template. */
body.sx-modern.single-product .elementor-1643 .elementor-widget-woocommerce-product-etheme_related,
body.sx-modern.single-product .woocommerce .related.products:not(.sx-related-clean),
body.sx-modern.single-product .related-products:not(.sx-related-clean){display:none!important}
/* Native curated related cards: image, title, price. */
body.sx-modern.single-product .sx-related-clean{
  padding:47px 0 65px;margin:44px 0 0;border-top:1px solid #e3e7e6;
}
body.sx-modern.single-product .sx-related-clean h2{
  font:750 clamp(26px,3vw,38px)/1.15 var(--sx-body,Arial,sans-serif)!important;
  letter-spacing:-.025em!important;color:#1d282e!important;
  margin:0 0 23px!important;
}
body.sx-modern.single-product .sx-related-clean__grid{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:16px!important;list-style:none!important;padding:0!important;margin:0!important
}
body.sx-modern.single-product .sx-related-clean__card{
  display:block!important;color:#1b262d!important;
  background:#fff;border:1px solid #e1e6e3;border-radius:4px;
  overflow:hidden;min-width:0;text-decoration:none!important;
  transition:transform .18s,border-color .18s
}
body.sx-modern.single-product .sx-related-clean__card:hover{transform:translateY(-3px);border-color:#bfc7c3}
body.sx-modern.single-product .sx-related-clean__image{
  display:grid!important;place-items:center;aspect-ratio:4/4.7;
  background:#f4f5f4;overflow:hidden;
}
body.sx-modern.single-product .sx-related-clean__image img{
  display:block!important;width:100%!important;height:100%!important;
  object-fit:contain!important;padding:10px!important;
}
body.sx-modern.single-product .sx-related-clean__info{
  display:flex!important;flex-direction:column!important;gap:8px!important;
  padding:14px!important;min-width:0
}
body.sx-modern.single-product .sx-related-clean__name{
  font:700 13px/1.47 var(--sx-body,Arial,sans-serif)!important;
  letter-spacing:-.01em!important;color:#202b31!important;
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;
  overflow:hidden;max-height:4.41em;
}
body.sx-modern.single-product .sx-related-clean__price,
body.sx-modern.single-product .sx-related-clean__price *{
  font:800 15px/1.4 var(--sx-body,Arial,sans-serif)!important;color:#18222b!important
}
@media(max-width:900px){
 body.sx-modern.single-product .sx-related-clean__grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:767px){
 body.sx-modern.single-product .elementor-1643 .product_title,
 body.sx-modern.single-product .woocommerce div.product .product_title{
   font-size:clamp(27px,6vw,35px)!important;line-height:1.18!important
 }
 body.sx-modern.single-product .elementor-1643 .elementor-widget-woocommerce-product-etheme_price{margin:0 0 8px!important}
 body.sx-modern.single-product .woocommerce div.product .price{font-size:24px!important}
 body.sx-modern.single-product .elementor-1643 .elementor-widget-woocommerce-product-etheme_short_description{margin:0 0 12px!important}
 body.sx-modern.single-product .sx-funnel{margin-top:15px!important}
 body.sx-modern.single-product .sx-funnel-heading{padding:14px 16px!important}
 body.sx-modern.single-product .sx-related-clean{margin:30px 0 0;padding:30px 0 50px}
 body.sx-modern.single-product .sx-related-clean__grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
 body.sx-modern.single-product .sx-related-clean__info{padding:11px!important}
 body.sx-modern.single-product .sx-related-clean__name{font-size:12px!important}
 body.sx-modern.single-product .sx-related-clean__price,
 body.sx-modern.single-product .sx-related-clean__price *{font-size:14px!important}
}
@media(prefers-reduced-motion:reduce){
 body.sx-modern.single-product .sx-related-clean__card{transition:none!important;transform:none!important}
}
