/* REP&SWEAT — Gymshark-reference homepage v3
   Most spacing/colour/type is set in WPBakery modules.
   CSS is limited to the few behaviours WPBakery cannot reproduce cleanly. */

.rsw-gsx .wpb_content_element,
.rsw-gsx .vc_btn3-container { margin-bottom:0; }

.rsw-gsx-banner {
  position:relative;
  min-height:clamp(420px,37.5vw,620px);
  overflow:hidden;
}
.rsw-gsx-banner:before {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(90deg,rgba(0,0,0,.42) 0%,rgba(0,0,0,.10) 42%,rgba(0,0,0,0) 70%);
}
.rsw-gsx-banner > .wpb_column { position:relative; z-index:2; }
.rsw-gsx-banner > .wpb_column > .vc_column-inner {
  min-height:clamp(420px,37.5vw,620px);
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
}
.rsw-gsx-banner-title { max-width:520px; }
.rsw-gsx-banner-copy {
  max-width:520px;
  margin-top:8px !important;
  color:#fff;
  font-size:13px;
  line-height:1.45;
}
.rsw-gsx-banner-copy p { margin:0; }
.rsw-gsx-banner-buttons { margin-top:14px; }

.rsw-gsx-section-title h2 {
  margin:0;
  font-weight:700;
  letter-spacing:-.025em;
}
.rsw-gsx-viewall p {
  margin:1px 0 0;
  text-align:right;
  font-size:11px;
}
.rsw-gsx-viewall a {
  color:#111;
  text-decoration:none;
}

.rsw-gsx-product-grid { margin-top:18px !important; }
.rsw-gsx-product-grid ul.products {
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:4px;
  margin:0 !important;
}
.rsw-gsx-product-grid ul.products:before,
.rsw-gsx-product-grid ul.products:after { display:none !important; }
.rsw-gsx-product-grid ul.products li.product {
  float:none !important;
  width:auto !important;
  margin:0 !important;
  padding:0 0 10px !important;
  background:#fff !important;
  box-shadow:none !important;
}
.rsw-gsx-product-grid ul.products li.product a img {
  width:100% !important;
  aspect-ratio:4/5;
  object-fit:cover;
  margin:0 0 10px !important;
  background:#f3f3f3;
}
.rsw-gsx-product-grid .woocommerce-loop-product__title {
  margin:0 0 3px !important;
  padding:0 !important;
  color:#111 !important;
  font-size:12px !important;
  line-height:1.3 !important;
  font-weight:600 !important;
}
.rsw-gsx-product-grid .price {
  color:#111 !important;
  font-size:11px !important;
  font-weight:500 !important;
}
.rsw-gsx-product-grid .button,
.rsw-gsx-product-grid .star-rating { display:none !important; }

.rsw-gsx-tabs-row {
  display:flex;
  gap:4px;
  margin:8px 0 12px;
}
.rsw-gsx-tabs-row .vc_btn3-container {
  display:inline-block;
  margin-right:4px !important;
}
.rsw-gsx-tabs-row .vc_btn3 {
  min-height:0 !important;
  padding:5px 10px !important;
  font-size:10px !important;
  line-height:1.1 !important;
}

.rsw-gsx-editorial-image img,
.rsw-gsx-train-image img,
.rsw-gsx-more-image img {
  display:block;
  width:100%;
  object-fit:cover;
}
.rsw-gsx-editorial-image img { aspect-ratio:4/5; }
.rsw-gsx-train-image img { aspect-ratio:4/5; }
.rsw-gsx-more-image img { aspect-ratio:4/5; }

.rsw-gsx-media-card .vc_custom_heading,
.rsw-gsx-train-card .vc_custom_heading,
.rsw-gsx-more-card .vc_custom_heading {
  margin-top:8px;
  margin-bottom:3px;
}
.rsw-gsx-media-card .wpb_text_column,
.rsw-gsx-more-card .wpb_text_column {
  color:#555;
  font-size:10.5px;
  line-height:1.45;
}
.rsw-gsx-media-card .wpb_text_column p,
.rsw-gsx-more-card .wpb_text_column p { margin:0 0 4px; }
.rsw-gsx-more-card a { color:#111; font-weight:600; text-decoration:none; }

.rsw-gsx-link-block .wpb_text_column,
.rsw-gsx-seo .wpb_text_column {
  color:#555;
  font-size:10.5px;
  line-height:1.65;
}
.rsw-gsx-link-block .wpb_text_column p { margin:0; }
.rsw-gsx-link-block a { color:#444; text-decoration:none; }
.rsw-gsx-link-block a:hover,
.rsw-gsx-more-card a:hover { text-decoration:underline; }

.rsw-gsx-seo .vc_custom_heading { margin-top:12px; margin-bottom:3px; }
.rsw-gsx-seo .wpb_text_column p { margin:0 0 7px; }

@media (max-width:991px) {
  .rsw-gsx-banner { min-height:520px; }
  .rsw-gsx-banner > .wpb_column > .vc_column-inner { min-height:520px; }
}

@media (max-width:767px) {
  .rsw-gsx-banner {
    min-height:640px;
    background-position:center center !important;
  }
  .rsw-gsx-banner > .wpb_column > .vc_column-inner { min-height:640px; }
  .rsw-gsx-banner:before {
    background:linear-gradient(0deg,rgba(0,0,0,.60) 0%,rgba(0,0,0,.12) 58%,rgba(0,0,0,0) 78%);
  }
  .rsw-gsx-banner-content { padding:20px 16px !important; }
  .rsw-gsx-banner-title h1,
  .rsw-gsx-banner-title h2 { font-size:36px !important; }

  .rsw-gsx-product-section,
  .rsw-gsx-editorial-section,
  .rsw-gsx-link-block,
  .rsw-gsx-seo {
    padding-left:12px !important;
    padding-right:12px !important;
  }

  .rsw-gsx-product-grid ul.products {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px 4px;
  }

  .rsw-gsx-viewall p { text-align:left; margin-top:5px; }

  .rsw-gsx-media-card,
  .rsw-gsx-train-card,
  .rsw-gsx-more-card {
    width:50% !important;
    float:left !important;
    margin-bottom:24px;
  }

  .rsw-gsx-link-block .wpb_column {
    width:50% !important;
    float:left !important;
    margin-bottom:20px;
  }
}