/* SPEEDX RACEGEAR | 2027 COMMERCE LAYOUT | inactive XStore child draft
   Corrects XStore's real div.row.products.products-grid structure.
   Changes only storefront display; never touches variations, orders or payment logic. */
body.sx-modern .sx-archive .products-grid.row.products-loop,
body.sx-modern .sx-archive .products-grid.row.products-loop > .ajax-content {
  min-width:0!important;
  max-width:100%!important;
  width:100%!important;
  margin-inline:0!important;
  padding-inline:0!important;
}
/* XStore's WooCommerce loop-start.php outputs DIV, not UL. For non-AJAX archives
   the product cards are direct children of div.row.products.products-grid. */
body.sx-modern .sx-archive div.row.products.products-grid:not(:has(> .ajax-content)),
body.sx-modern .sx-archive div.products-grid:not(:has(> .ajax-content)),
body.sx-modern .sx-archive .sx-catalogue-grid {
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:18px!important;
  align-items:stretch!important;
  justify-content:stretch!important;
  float:none!important;
  clear:both!important;
  margin:22px 0 32px!important;
  width:100%!important;
}
/* XStore optionally adds a single AJAX wrapper inside the grid. Grid the
   wrapper rather than its lone parent child to avoid a full-width product. */
body.sx-modern .sx-archive div.products-grid:has(> .ajax-content) {
  display:block!important;
}
body.sx-modern .sx-archive div.products-grid > .ajax-content {
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:18px!important;
  width:100%!important;
  margin:0!important;padding:0!important;
}
/* Native XStore product cards (our custom archive template) */
body.sx-modern .sx-archive :is(div.products-grid,.ajax-content,.sx-catalogue-grid) > article.sx-catalogue-card {
  box-sizing:border-box!important;
  display:flex!important;
  flex:initial!important;flex-direction:column!important;
  float:none!important;clear:none!important;
  width:100%!important;min-width:0!important;max-width:none!important;
  height:auto!important;min-height:0!important;
  margin:0!important;padding:0!important;
  border:1px solid #e2e6e4!important;border-radius:4px!important;
  box-shadow:none!important;background:#fff!important;
  overflow:hidden!important;
}
body.sx-modern .sx-archive article.sx-catalogue-card .sx-catalogue-card__media {
  aspect-ratio:4/4.55!important;
  height:auto!important;min-height:0!important;
  flex:0 0 auto!important;
  overflow:hidden!important;
  background:#f1f3f2!important;
}
body.sx-modern .sx-archive article.sx-catalogue-card .sx-catalogue-card__image {
  display:block!important;width:100%!important;height:100%!important;
  max-height:100%!important;
  object-fit:contain!important;object-position:center!important;
  margin:0!important;padding:12px!important;
}
body.sx-modern .sx-archive article.sx-catalogue-card .sx-catalogue-card__body{
  box-sizing:border-box!important;
  display:block!important;
  flex:0 0 auto!important;
  min-height:0!important;height:auto!important;
  margin:0!important;padding:15px 14px 16px!important;
}
body.sx-modern .sx-archive article.sx-catalogue-card .sx-catalogue-card__name {
  font:700 13px/1.45 var(--sx-body)!important;
  color:#18222b!important;letter-spacing:-.013em!important;
  margin:0 0 10px!important;
  min-height:0!important;
  height:auto!important;
  display:-webkit-box!important;-webkit-line-clamp:3;
  -webkit-box-orient:vertical;overflow:hidden!important;
}
body.sx-modern .sx-archive article.sx-catalogue-card .sx-catalogue-card__price {
  display:block!important;
  margin:0 0 13px!important;padding:0!important;
  min-height:0!important;height:auto!important;
}
body.sx-modern .sx-archive article.sx-catalogue-card .sx-catalogue-card__price,
body.sx-modern .sx-archive article.sx-catalogue-card .sx-catalogue-card__price * {
  font:800 16px/1.4 var(--sx-body)!important;
  color:#1d282f!important;letter-spacing:-.01em!important;
}
body.sx-modern .sx-archive article.sx-catalogue-card .sx-catalogue-card__action {
  display:flex!important;align-items:center!important;justify-content:center!important;
  padding:12px 8px!important;min-height:43px!important;
  margin:0!important;width:100%!important;
  background:#1b252d!important;color:#fff!important;
  border:1px solid #1b252d!important;border-radius:3px!important;
  font:800 11px/1.3 var(--sx-body)!important;
  letter-spacing:.035em!important;
  text-transform:uppercase!important;text-decoration:none!important;
}
body.sx-modern .sx-archive article.sx-catalogue-card .sx-catalogue-card__action:hover {
  background:#c92c34!important;border-color:#c92c34!important;
}
body.sx-modern .sx-archive article.sx-catalogue-card .sx-catalogue-card__action span,
body.sx-modern .sx-archive article.sx-catalogue-card .sx-catalogue-card__action:after{
  display:none!important;content:none!important;
}
/* Category pages: compact sorting and introduction, not a giant first screen. */
body.sx-modern .sx-archive .sx-shop-heading {padding-bottom:23px!important;margin-bottom:15px!important}
body.sx-modern .sx-archive .sx-archive-description {font:500 13px/1.62 var(--sx-body)!important;max-width:1050px!important}
body.sx-modern .sx-archive .woocommerce-ordering {margin-bottom:13px!important}
body.sx-modern .sx-archive .woocommerce-ordering select {
  min-height:45px!important;border-radius:3px!important;
  border:1px solid #d8deda!important;
}
/* Product page: SpeedX Crafts-inspired calm editorial hierarchy.
   Keep WooCommerce native variation selectors, enabled/disabled states and cart hooks. */
body.sx-modern.single-product .elementor-1643 .elementor-widget-woocommerce-product-etheme_title,
body.sx-modern.single-product .elementor-1643 .elementor-widget-woocommerce-product-etheme_price{
  margin:0 0 12px!important;
}
body.sx-modern.single-product .woocommerce div.product .product_title,
body.sx-modern.single-product .elementor-1643 .product_title {
  font:750 clamp(30px,3.05vw,44px)/1.16 var(--sx-body)!important;
  letter-spacing:-.038em!important;
  text-transform:none!important;
  color:#141d23!important;
  margin:0!important;
  max-width:720px;
}
body.sx-modern.single-product .woocommerce div.product .price,
body.sx-modern.single-product .elementor-1643 .price,
body.sx-modern.single-product .elementor-1643 .price .amount {
  font:800 clamp(24px,2.35vw,32px)/1.3 var(--sx-body)!important;
  letter-spacing:-.02em!important;
  color:#1d262b!important;
}
body.sx-modern.single-product .elementor-1643 .elementor-widget-woocommerce-product-etheme_short_description{
  margin:7px 0 16px!important;
  color:#56636b!important;
  font:500 14px/1.64 var(--sx-body)!important;
}
body.sx-modern.single-product .elementor-1643 .elementor-widget-woocommerce-product-etheme_add_to_cart{
  margin:8px 0 0!important;
}
body.sx-modern.single-product .elementor-1643 .elementor-element-1c329308 > .elementor-widget-wrap{
  align-content:start!important;
}
body.sx-modern.single-product .elementor-1643 .elementor-element-280e391a>.elementor-container{
  gap:clamp(24px,3.3vw,55px)!important;
}
body.sx-modern.single-product :is(.woocommerce-product-gallery,.woocommerce-product-gallery__wrapper){
  background:#f3f5f3!important;
  border-radius:4px!important;
  overflow:hidden;
}
body.sx-modern.single-product .woocommerce-product-gallery__image img{
  object-fit:contain!important;object-position:center!important;
}
body.sx-modern.single-product .woocommerce-product-gallery .flex-control-thumbs{
  background:transparent!important;
  gap:9px!important;margin-top:12px!important;
}
body.sx-modern.single-product .woocommerce-product-gallery .flex-control-thumbs img{
  border:1px solid #e5eae8;border-radius:3px;
}
body.sx-modern.single-product form.variations_form .variations{
  margin:0 0 12px!important;
}
body.sx-modern.single-product form.variations_form .variations :is(select,.select2-selection){
  min-height:50px!important;
  border:1px solid #c7d0cc!important;border-radius:4px!important;
  font:600 14px/1.45 var(--sx-body)!important;
}
body.sx-modern.single-product form.variations_form .variations label{
  font:800 11px/1.4 var(--sx-body)!important;
  text-transform:uppercase!important;letter-spacing:.055em!important;
}
body.sx-modern.single-product :is(.single_add_to_cart_button,.etheme-buy-now-button,.buy-now-btn){
  border-radius:4px!important;min-height:53px!important;
  letter-spacing:.04em!important;
  font:800 12px/1.3 var(--sx-body)!important;
}
body.sx-modern.single-product .single_add_to_cart_button:not(:disabled){
  background:#171f25!important;color:#fff!important;
}
body.sx-modern.single-product .single_add_to_cart_button:disabled{
  background:#7b858b!important;color:#fff!important;cursor:not-allowed!important;
}
body.sx-modern.single-product :is(.etheme-buy-now-button,.buy-now-btn,.sx-buy-now,.buy_now_button){
  background:#cf3137!important;color:#fff!important;
  border:1px solid #cf3137!important;
}
body.sx-modern.single-product :is(.etheme-buy-now-button,.buy-now-btn,.sx-buy-now,.buy_now_button):hover{
  background:#aa222a!important;border-color:#aa222a!important;
}
/* Collapse the verbose buying guide until a shopper wants the details. */
body.sx-modern.single-product .sx-funnel{
  margin-top:22px!important;border:1px solid #e2e7e4!important;
  border-radius:4px!important;overflow:hidden;background:#fff!important;
}
body.sx-modern.single-product .sx-funnel-heading{
  padding:17px 20px 15px!important;margin:0!important;
  background:#fafbfa!important;border-bottom:1px solid #e4e9e6!important;
}
body.sx-modern.single-product .sx-funnel-heading>span{
  color:#ac3038!important;font:800 10px/1.4 var(--sx-body)!important;
  letter-spacing:.09em!important;
}
body.sx-modern.single-product .sx-funnel-heading h3{
  margin:6px 0 0!important;
  font:750 18px/1.2 var(--sx-body)!important;
  letter-spacing:-.02em!important;
}
body.sx-modern.single-product .sx-funnel-detail{
  margin:0!important;border-bottom:1px solid #e7ebe8!important;
}
body.sx-modern.single-product .sx-funnel-detail summary{
  padding:16px 20px!important;min-height:52px;
  font:700 13px/1.4 var(--sx-body)!important;
}
body.sx-modern.single-product .sx-funnel-detail-label{
  color:#a9b3b3!important;font-weight:700!important;
}
body.sx-modern.single-product .sx-funnel-detail-body{
  padding:0 20px 20px!important;
  font:500 13px/1.7 var(--sx-body)!important;
  color:#53616a!important;
}
body.sx-modern.single-product .sx-funnel-support{
  padding:14px 20px!important;margin:0!important;
  font:600 12px/1.4 var(--sx-body)!important;
}
/* Related: product PHOTO + TITLE + PRICE only. XStore adds category lists,
   ratings and oversized buttons in its Elementor related widget. */
body.sx-modern.single-product .elementor-1643 .elementor-widget-woocommerce-product-etheme_related{
  margin-top:42px!important;
  padding-top:30px!important;border-top:1px solid #e1e5e2!important;
}
body.sx-modern.single-product .elementor-1643 .elementor-widget-woocommerce-product-etheme_related :is(
  .product-cats,.product-categories,.product-category,
  .categories,.products-page-cats,.posted_in,.product-excerpt,
  .product-brand,.product-brands,.brand-name,
  .star-rating,.woocommerce-product-rating,.product-rating,
  .footer-product,.quantity-wrapper,.button-switch,.show-quickly,
  .wishlist,.compare,.quick-view,.add_to_cart_button,.button,
  .product-quick-view,.product-details .product-more-info,
  .hover-content,.product-more-info
) {display:none!important;}
body.sx-modern.single-product .elementor-1643 .elementor-widget-woocommerce-product-etheme_related .product-details{
  display:flex!important;flex-direction:column!important;align-items:flex-start!important;
  gap:8px!important;
  padding:14px 8px 18px!important;
  margin:0!important;min-height:0!important;height:auto!important;
  text-align:left!important;
}
body.sx-modern.single-product .elementor-1643 .elementor-widget-woocommerce-product-etheme_related .product-title{
  display:block!important;
  font:700 13px/1.5 var(--sx-body)!important;
  text-transform:none!important;text-align:left!important;
  letter-spacing:-.02em!important;
  min-height:0!important;height:auto!important;
  margin:0!important;padding:0!important;
  color:#182128!important;
}
body.sx-modern.single-product .elementor-1643 .elementor-widget-woocommerce-product-etheme_related .product-title a{
  color:#182128!important;text-decoration:none!important;
}
body.sx-modern.single-product .elementor-1643 .elementor-widget-woocommerce-product-etheme_related .price{
  display:block!important;
  font:800 15px/1.4 var(--sx-body)!important;
  color:#19232a!important;
  text-align:left!important;
  margin:0!important;padding:0!important;
}
body.sx-modern.single-product .elementor-1643 .elementor-widget-woocommerce-product-etheme_related .price :is(bdi,.amount){
  font:800 15px/1.4 var(--sx-body)!important;color:#19232a!important;
}
body.sx-modern.single-product .elementor-1643 .elementor-widget-woocommerce-product-etheme_related :is(
  .product-image-wrapper,.product-content-image
){background:#f1f3f1!important;}
body.sx-modern.single-product .elementor-1643 .elementor-widget-woocommerce-product-etheme_related .product-image-wrapper img{
  display:block!important;object-fit:contain!important;
  max-height:320px!important;width:100%!important;
  margin:0!important;padding:8px!important;
}
body.sx-modern.single-product .elementor-1643 .elementor-widget-woocommerce-product-etheme_related :is(
  .swiper-button-next,.swiper-button-prev,.slick-arrow,.product-gallery-slider .arrows,.product-slider-arrow
){display:none!important;}
/* No surprise payment/cart changes. We only change presentation and labels. */
@media(max-width:1100px){
 body.sx-modern .sx-archive div.row.products.products-grid:not(:has(> .ajax-content)),
 body.sx-modern .sx-archive div.products-grid:not(:has(> .ajax-content)),
 body.sx-modern .sx-archive div.products-grid > .ajax-content,
 body.sx-modern .sx-archive .sx-catalogue-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:14px!important;
 }
}
@media(max-width:790px){
 body.sx-modern .sx-archive div.row.products.products-grid:not(:has(> .ajax-content)),
 body.sx-modern .sx-archive div.products-grid:not(:has(> .ajax-content)),
 body.sx-modern .sx-archive div.products-grid > .ajax-content,
 body.sx-modern .sx-archive .sx-catalogue-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
  margin:20px 0 28px!important;
  width:100%!important;
 }
 body.sx-modern .sx-archive :is(div.products-grid,.ajax-content,.sx-catalogue-grid) > article.sx-catalogue-card{
  width:100%!important;max-width:none!important;min-width:0!important;
 }
 body.sx-modern .sx-archive article.sx-catalogue-card .sx-catalogue-card__media{
  aspect-ratio:4/4.6!important;
 }
 body.sx-modern .sx-archive article.sx-catalogue-card .sx-catalogue-card__image{
  padding:5px!important;
 }
 body.sx-modern .sx-archive article.sx-catalogue-card .sx-catalogue-card__body{
  padding:10px 9px 12px!important;
 }
 body.sx-modern .sx-archive article.sx-catalogue-card .sx-catalogue-card__name{
  font-size:12px!important;line-height:1.39!important;margin:0 0 9px!important;
  max-height:4.2em!important;min-height:0!important;
 }
 body.sx-modern .sx-archive article.sx-catalogue-card .sx-catalogue-card__price,
 body.sx-modern .sx-archive article.sx-catalogue-card .sx-catalogue-card__price *{
  font-size:14px!important;
 }
 body.sx-modern .sx-archive article.sx-catalogue-card .sx-catalogue-card__price{margin:0 0 10px!important}
 body.sx-modern .sx-archive article.sx-catalogue-card .sx-catalogue-card__action{
  font-size:10px!important;min-height:41px!important;padding:9px 4px!important;
 }
 body.sx-modern.single-product .elementor-1643 .product_title,
 body.sx-modern.single-product .woocommerce div.product .product_title{
  font-size:clamp(27px,6.8vw,35px)!important;
  line-height:1.2!important;letter-spacing:-.037em!important;
 }
 body.sx-modern.single-product .woocommerce div.product .price,
 body.sx-modern.single-product .elementor-1643 .price{font-size:25px!important}
 body.sx-modern.single-product .woocommerce-product-gallery__image img{
  max-height:min(72vh,535px)!important;
  width:auto!important;max-width:100%!important;
  margin:0 auto!important;object-fit:contain!important;
 }
 body.sx-modern.single-product .elementor-1643 .elementor-element-280e391a>.elementor-container{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;
  gap:18px!important;
 }
 body.sx-modern.single-product .sx-funnel-heading{padding:15px 16px!important}
 body.sx-modern.single-product .sx-funnel-detail summary{padding:15px 16px!important}
 body.sx-modern.single-product .sx-funnel-detail-body{padding:0 16px 17px!important}
 body.sx-modern.single-product .elementor-1643 .elementor-widget-woocommerce-product-etheme_related .product-image-wrapper img{max-height:220px!important}
 body.sx-modern.single-product .elementor-1643 .elementor-widget-woocommerce-product-etheme_related .product-details{padding:10px 6px 12px!important}
 body.sx-modern.single-product .elementor-1643 .elementor-widget-woocommerce-product-etheme_related .product-title{font-size:12px!important;line-height:1.42!important}
}
@media(max-width:375px) {
 body.sx-modern .sx-archive div.row.products.products-grid:not(:has(> .ajax-content)),
 body.sx-modern .sx-archive div.products-grid:not(:has(> .ajax-content)),
 body.sx-modern .sx-archive div.products-grid > .ajax-content,
 body.sx-modern .sx-archive .sx-catalogue-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 body.sx-modern .sx-archive article.sx-catalogue-card .sx-catalogue-card__body{padding:9px 7px 10px!important}
 body.sx-modern .sx-archive article.sx-catalogue-card .sx-catalogue-card__action{font-size:9px!important}
}

/* Related cards: don't inherit historical XStore tall-card spacing. */
body.sx-modern.single-product .elementor-1643 .elementor-widget-woocommerce-product-etheme_related :is(
  li.product,.content-product,.product-details,.swiper-slide
){
  min-height:0!important;
  height:auto!important;
}
body.sx-modern.single-product .elementor-1643 .elementor-widget-woocommerce-product-etheme_related .content-product{
  display:flex!important;flex-direction:column!important;
  box-shadow:none!important;border:1px solid #e3e8e4!important;
  border-radius:4px!important;overflow:hidden!important;
}
body.sx-modern.single-product .elementor-1643 .elementor-widget-woocommerce-product-etheme_related .product-image-wrapper{
  aspect-ratio:4/4.7!important;
  height:auto!important;
  min-height:0!important;
  border:0!important;
  overflow:hidden!important;
}
body.sx-modern.single-product .elementor-1643 .elementor-widget-woocommerce-product-etheme_related .product-details{
  flex:0 0 auto!important;
  justify-content:flex-start!important;
  min-height:0!important;
}
body.sx-modern.single-product .elementor-1643 .elementor-widget-woocommerce-product-etheme_related .product-title{
  display:-webkit-box!important;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden!important;
}
body.sx-modern.single-product .elementor-1643 .elementor-widget-woocommerce-product-etheme_related :is(
  .images-slider-wrapper .swiper-button-prev,
  .images-slider-wrapper .swiper-button-next,
  .images-slider-wrapper .swiper-nav,
  .images-slider-wrapper .et-slider-nav,
  .images-slider-wrapper .owl-nav,
  .images-slider-wrapper .slick-arrow,
  .images-slider-wrapper .et-icon-arrow,
  .product-details .product-cats,
  .product-details .products-page-cats
){display:none!important}
@media(max-width:790px){
 body.sx-modern.single-product .elementor-1643 .elementor-widget-woocommerce-product-etheme_related .product-image-wrapper img{height:100%!important;max-height:240px!important;padding:5px!important;}
 body.sx-modern.single-product .elementor-1643 .elementor-widget-woocommerce-product-etheme_related .content-product{border-radius:3px!important}
}
