/**
 * Bushsports modern refresh — loads after Elementor styles.
 * Outdoor brand: clean layout, forest green, warm accent, soft surfaces.
 */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

:root {
  --bs-font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --bs-green: #145c42;
  --bs-green-dark: #0d3d2c;
  --bs-green-soft: #e8f3ee;
  --bs-accent: #d4a017;
  --bs-accent-hover: #b8890f;
  --bs-bg: #f4f6f5;
  --bs-surface: #ffffff;
  --bs-text: #142820;
  --bs-muted: #5a6b64;
  --bs-border: rgba(20, 92, 66, 0.12);
  --bs-radius: 14px;
  --bs-radius-lg: 22px;
  --bs-shadow: 0 8px 32px rgba(13, 61, 44, 0.1);
  --bs-shadow-sm: 0 2px 12px rgba(13, 61, 44, 0.06);
  --bs-header-h: 72px;
  --bs-content-max: 1180px;
  --bs-product-max: 1080px;
}

html {
  scroll-behavior: smooth;
}

html[data-bs-theme="modern"] {
  overflow-x: clip;
}

body {
  font-family: var(--bs-font) !important;
  color: var(--bs-text) !important;
  background: var(--bs-bg) !important;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65 !important;
}

/* Header — e-con-inner is the full-width green bar */
.elementor-location-header {
  position: sticky !important;
  top: 0;
  z-index: 1000;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
}

/* Wrapper: no width cap, no background */
.elementor-location-header > .e-con.e-parent,
.elementor-location-header > .e-con.e-parent.e-con-boxed,
.elementor-location-header .elementor-element.elementor-element-3dcfbc4 {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  --content-width: 100% !important;
  --container-max-width: none !important;
  --width: 100% !important;
  background: transparent !important;
  background-image: none !important;
  overflow: visible !important;
}

.elementor-3019 .elementor-element.elementor-element-3dcfbc4:not(.elementor-motion-effects-element-type-background),
.elementor-3019
  .elementor-element.elementor-element-3dcfbc4
  > .elementor-motion-effects-container
  > .elementor-motion-effects-layer {
  background: transparent !important;
  background-image: none !important;
}

/* THIS is the full-width bar — overrides Elementor max-width: var(--content-width) */
.elementor-location-header > .e-con > .e-con-inner,
.elementor-3019.elementor-location-header > .e-con > .e-con-inner,
.elementor-location-header .elementor-element-3dcfbc4 > .e-con-inner {
  width: 100vw !important;
  max-width: 100vw !important;
  margin: 0 !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding: 0.35rem max(1rem, calc((100vw - 1180px) / 2)) !important;
  box-sizing: border-box !important;
  background: linear-gradient(
    135deg,
    var(--bs-green-dark) 0%,
    var(--bs-green) 50%,
    #1a7a52 100%
  ) !important;
  box-shadow: var(--bs-shadow-sm) !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.5rem !important;
}

.elementor-location-header .elementor-shape-top {
  display: none !important;
}

.elementor-location-header img {
  max-height: 42px;
  width: auto;
  transition: transform 0.2s ease;
}

/* Keep menu on one line (desktop) */
.elementor-location-header .elementor-nav-menu--main {
  display: flex !important;
  justify-content: flex-end !important;
  flex-wrap: nowrap !important;
}

.elementor-location-header .elementor-nav-menu {
  flex-wrap: nowrap !important;
}

.elementor-location-header .elementor-nav-menu__container {
  white-space: nowrap !important;
}

@media (max-width: 900px) {
  .elementor-location-header > .e-con > .e-con-inner,
  .elementor-3019.elementor-location-header > .e-con > .e-con-inner,
  .elementor-location-header .elementor-element-3dcfbc4 > .e-con-inner {
    flex-wrap: nowrap !important;
    padding: 0.45rem 1rem !important;
  }

  .elementor-location-header img {
    max-height: 46px;
  }
}

/* Bring the logo closer to the nav (Elementor header columns) */
@media (min-width: 768px) {
  .elementor-3019 .elementor-element.elementor-element-ae91501 {
    --width: 18% !important;
    flex: 0 0 auto !important;
  }

  .elementor-3019 .elementor-element.elementor-element-8e0feee {
    --width: 82% !important;
    flex: 1 1 auto !important;
  }
}

.elementor-location-header a:hover img {
  transform: scale(1.02);
}

/* Navigation — light text on dark bar */
.elementor-location-header .elementor-nav-menu .elementor-item,
.elementor-location-header .elementor-nav-menu .elementor-sub-item {
  font-family: var(--bs-font) !important;
  font-weight: 600 !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92) !important;
  text-decoration: none !important;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.elementor-location-header .elementor-nav-menu .elementor-item:hover,
.elementor-location-header .elementor-nav-menu .elementor-sub-item:hover,
.elementor-location-header .elementor-nav-menu .elementor-item:focus,
.elementor-location-header
  .elementor-nav-menu--main
  .elementor-item.elementor-item-active {
  color: #fff !important;
}

/* Underline / pointer hover & active — high contrast */
.elementor-location-header
  .elementor-nav-menu--main.e--pointer-underline
  .elementor-item::after {
  background-color: var(--bs-accent) !important;
  height: 3px !important;
}

.elementor-location-header
  .elementor-nav-menu--main.e--pointer-underline
  .elementor-item:hover::after,
.elementor-location-header
  .elementor-nav-menu--main.e--pointer-underline
  .elementor-item.elementor-item-active::after {
  background-color: #fff !important;
}

.elementor-location-header
  .elementor-nav-menu--main.e--pointer-underline
  .elementor-item.elementor-item-active {
  font-weight: 700 !important;
}

.elementor-location-header .elementor-nav-menu--dropdown {
  background: var(--bs-surface) !important;
  border-radius: var(--bs-radius) !important;
  box-shadow: var(--bs-shadow) !important;
  border: 1px solid var(--bs-border) !important;
  padding: 0.5rem 0 !important;
}

.elementor-location-header .elementor-nav-menu--dropdown .elementor-item,
.elementor-location-header .elementor-nav-menu--dropdown .elementor-sub-item {
  color: var(--bs-text) !important;
}

.elementor-location-header .elementor-nav-menu--dropdown .elementor-item:hover,
.elementor-location-header .elementor-nav-menu--dropdown .elementor-sub-item:hover {
  color: var(--bs-green) !important;
  background: var(--bs-green-soft) !important;
}

.elementor-location-header .elementor-menu-toggle {
  background: rgba(255, 255, 255, 0.15) !important;
  border-radius: 10px !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
}

/* Nav outside header (fallback if structure differs) */
.elementor-nav-menu--dropdown:not(.elementor-location-header *) {
  background: var(--bs-surface) !important;
  border-radius: var(--bs-radius) !important;
  box-shadow: var(--bs-shadow) !important;
  border: 1px solid var(--bs-border) !important;
  padding: 0.5rem 0 !important;
}

/* Headings */
.elementor-heading-title,
h1,
h2,
h3 {
  font-family: var(--bs-font) !important;
  color: var(--bs-text) !important;
  letter-spacing: -0.02em;
  line-height: 1.2 !important;
}

/* Content sections */
main .e-con.e-parent:not(.elementor-location-header *) {
  border-radius: 0;
}

.e-con.e-child,
.elementor-widget-wrap {
  --e-con-gap: 1.25rem;
}

/* Cards, CTAs, images */
.elementor-widget-call-to-action .elementor-cta,
.elementor-widget-image-box .elementor-image-box-wrapper {
  border-radius: var(--bs-radius-lg) !important;
  overflow: hidden;
  box-shadow: var(--bs-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.elementor-widget-call-to-action .elementor-cta:hover {
  transform: translateY(-4px);
  box-shadow: var(--bs-shadow);
}

.elementor-widget-image img {
  border-radius: var(--bs-radius);
}

/* Buttons */
.elementor-button,
.elementor-button-link,
.wp-element-button,
.wpcf7-submit,
button[type="submit"] {
  font-family: var(--bs-font) !important;
  font-weight: 600 !important;
  border-radius: 999px !important;
  padding: 0.85em 1.75em !important;
  background: linear-gradient(135deg, var(--bs-green) 0%, var(--bs-green-dark) 100%) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(20, 92, 66, 0.35) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  text-decoration: none !important;
}

.elementor-button:hover,
.wpcf7-submit:hover,
button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(20, 92, 66, 0.4) !important;
  color: #fff !important;
}

/* Hero / gradient sections — softer outdoor palette */
.elementor-element[data-settings*="gradient"] .e-con-inner,
.e-con[data-settings*="gradient"] {
  background-image: linear-gradient(
    145deg,
    var(--bs-green-dark) 0%,
    var(--bs-green) 45%,
    #1e6b52 100%
  ) !important;
}

/* Footer (original layout, theme colours) */
html[data-bs-theme="modern"] .elementor-location-footer {
  background: var(--bs-green-dark) !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

html[data-bs-theme="modern"] .elementor-location-footer .elementor-element-2123ca97,
html[data-bs-theme="modern"] .elementor-location-footer .elementor-element-2123ca97:not(.elementor-motion-effects-element-type-background),
html[data-bs-theme="modern"] .elementor-location-footer .elementor-element-2123ca97 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
  background-color: var(--bs-green-dark) !important;
  background-image: none !important;
}

html[data-bs-theme="modern"] .elementor-location-footer .elementor-widget-text-editor span[style],
html[data-bs-theme="modern"] .elementor-location-footer .elementor-widget-text-editor [style*="color"] {
  color: rgba(255, 255, 255, 0.88) !important;
}

html[data-bs-theme="modern"] .elementor-location-footer .elementor-widget-text-editor span[style] b {
  color: var(--bs-accent) !important;
}

html[data-bs-theme="modern"] .elementor-location-footer .elementor-widget-text-editor span[style] > strong:only-child {
  color: var(--bs-accent) !important;
}

html[data-bs-theme="modern"] .elementor-location-footer .elementor-widget-text-editor span[style] strong {
  color: rgba(255, 255, 255, 0.88) !important;
}

html[data-bs-theme="modern"] .elementor-location-footer p,
html[data-bs-theme="modern"] .elementor-location-footer span,
html[data-bs-theme="modern"] .elementor-location-footer strong,
html[data-bs-theme="modern"] .elementor-location-footer h3,
html[data-bs-theme="modern"] .elementor-location-footer .elementor-heading-title {
  color: rgba(255, 255, 255, 0.88) !important;
}

html[data-bs-theme="modern"] .elementor-location-footer .elementor-widget-text-editor b {
  color: var(--bs-accent) !important;
}

html[data-bs-theme="modern"] .elementor-location-footer a {
  color: rgba(255, 255, 255, 0.85) !important;
}

html[data-bs-theme="modern"] .elementor-location-footer a:hover {
  color: var(--bs-accent) !important;
}

html[data-bs-theme="modern"] .elementor-location-footer .elementor-element-5b8550ce .elementor-cta__content {
  background-color: var(--bs-green-soft) !important;
}

html[data-bs-theme="modern"] .elementor-location-footer .elementor-element-5b8550ce .elementor-cta__title {
  color: var(--bs-muted) !important;
}

html[data-bs-theme="modern"] .elementor-location-footer .elementor-element-5b8550ce .elementor-cta__description {
  color: var(--bs-text) !important;
}

html[data-bs-theme="modern"] .elementor-location-footer .elementor-element-5b8550ce .elementor-cta__button {
  color: #fff !important;
  background-color: var(--bs-accent) !important;
  border-color: var(--bs-accent) !important;
  border-radius: 999px !important;
}

html[data-bs-theme="modern"] .elementor-location-footer .elementor-element-5b8550ce .elementor-cta__button:hover {
  color: #fff !important;
  background-color: var(--bs-accent-hover) !important;
  border-color: var(--bs-accent-hover) !important;
}

html[data-bs-theme="modern"] .elementor-location-footer .elementor-social-icon {
  color: #fff !important;
  fill: #fff !important;
}

html[data-bs-theme="modern"] .elementor-location-footer .elementor-social-icon:hover {
  color: var(--bs-accent) !important;
  fill: var(--bs-accent) !important;
}

/* Contact form */
.bushsports-enquiry-form,
.wpcf7-form {
  background: var(--bs-surface);
  border-radius: var(--bs-radius-lg);
  padding: 2rem;
  box-shadow: var(--bs-shadow);
  border: 1px solid var(--bs-border);
}

.bushsports-enquiry-form input,
.bushsports-enquiry-form textarea,
.wpcf7-form input,
.wpcf7-form textarea {
  font-family: var(--bs-font) !important;
  border: 1px solid var(--bs-border) !important;
  border-radius: 10px !important;
  padding: 0.75rem 1rem !important;
  background: var(--bs-bg) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bushsports-enquiry-form input:focus,
.bushsports-enquiry-form textarea:focus,
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  border-color: var(--bs-green) !important;
  box-shadow: 0 0 0 3px rgba(20, 92, 66, 0.15) !important;
  outline: none !important;
}

.wpcf7-response-output {
  border-radius: 10px !important;
  padding: 1rem !important;
  margin-top: 1rem !important;
}

/* Shop / product archives — modern product cards (reference layout) */
html[data-bs-theme="modern"] body.woocommerce #primary,
html[data-bs-theme="modern"] body.woocommerce-page #primary,
html[data-bs-theme="modern"] body.woocommerce .content-area,
html[data-bs-theme="modern"] body.woocommerce-page .content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  box-sizing: border-box;
  width: 100%;
  float: none !important;
}

html[data-bs-theme="modern"] body.woocommerce .site-main,
html[data-bs-theme="modern"] body.woocommerce-page .site-main {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}

html[data-bs-theme="modern"] body.woocommerce .site-main#main,
html[data-bs-theme="modern"] body.woocommerce-page .site-main#main {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
}

html[data-bs-theme="modern"] body.woocommerce .woocommerce-ordering,
html[data-bs-theme="modern"] body.woocommerce-page .woocommerce-ordering {
  float: none !important;
  order: 3 !important;
  align-self: flex-start !important;
  margin-bottom: 1.25rem;
}

html[data-bs-theme="modern"] body.woocommerce .woocommerce-result-count,
html[data-bs-theme="modern"] body.woocommerce-page .woocommerce-result-count {
  float: none !important;
  order: 2 !important;
  margin-bottom: 1.25rem;
}

html[data-bs-theme="modern"] body.woocommerce ul.products,
html[data-bs-theme="modern"] body.woocommerce-page ul.products {
  order: 4 !important;
}

html[data-bs-theme="modern"] body.woocommerce .woocommerce-pagination,
html[data-bs-theme="modern"] body.woocommerce-page .woocommerce-pagination {
  order: 5 !important;
  float: none !important;
  width: 100% !important;
  clear: both !important;
  align-self: center !important;
  margin-top: 2rem !important;
  text-align: center;
}

html[data-bs-theme="modern"] .woocommerce-pagination .page-numbers {
  display: inline-flex;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

html[data-bs-theme="modern"] .woocommerce-pagination .page-numbers li {
  margin: 0;
}

html[data-bs-theme="modern"] .woocommerce-pagination .page-numbers a,
html[data-bs-theme="modern"] .woocommerce-pagination .page-numbers span {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--bs-border);
  text-decoration: none;
  color: var(--bs-text);
}

html[data-bs-theme="modern"] .woocommerce-pagination .page-numbers a:hover {
  border-color: var(--bs-green);
  color: var(--bs-green);
}

html[data-bs-theme="modern"] .woocommerce-pagination .page-numbers .current {
  background: var(--bs-green);
  color: #fff;
  border-color: var(--bs-green);
}

html[data-bs-theme="modern"] .woocommerce-ordering select {
  font-family: var(--bs-font);
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--bs-border);
}

html[data-bs-theme="modern"] body.woocommerce ul.products,
html[data-bs-theme="modern"] body.woocommerce-page ul.products,
html[data-bs-theme="modern"] body.woocommerce ul.products.columns-1,
html[data-bs-theme="modern"] body.woocommerce ul.products.columns-2,
html[data-bs-theme="modern"] body.woocommerce ul.products.columns-3,
html[data-bs-theme="modern"] body.woocommerce ul.products.columns-4,
html[data-bs-theme="modern"] body.woocommerce ul.products.columns-5,
html[data-bs-theme="modern"] body.woocommerce ul.products.columns-6 {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-auto-flow: row !important;
  gap: 1.5rem !important;
  padding: 0 !important;
  margin: 1.5rem auto 2.5rem !important;
  list-style: none !important;
  width: 100% !important;
  clear: both !important;
  justify-items: stretch !important;
  align-items: stretch !important;
  max-width: 1200px !important;
}

html[data-bs-theme="modern"] .woocommerce ul.products::before,
html[data-bs-theme="modern"] .woocommerce ul.products::after {
  display: none !important;
  content: none !important;
}

html[data-bs-theme="modern"] .woocommerce ul.products li.product,
html[data-bs-theme="modern"] .woocommerce-page ul.products li.product,
html[data-bs-theme="modern"] .woocommerce ul.products.columns-4 li.product {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 1rem 1rem 1.1rem !important;
  clear: none !important;
  position: relative !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: auto auto auto auto auto !important;
  gap: 0.35rem 0.5rem !important;
  align-items: stretch !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  background: var(--bs-surface) !important;
  box-shadow: 0 10px 32px rgba(20, 40, 32, 0.08) !important;
  border: 1px solid rgba(20, 92, 66, 0.08) !important;
  box-sizing: border-box !important;
  transition: box-shadow 0.25s ease, transform 0.25s ease !important;
  --bs-card-accent: var(--bs-green);
  --bs-card-accent-hover: var(--bs-green-dark);
  --bs-card-accent-text: #fff;
  --bs-card-tag-bg: var(--bs-green-soft);
}

html[data-bs-theme="modern"] .woocommerce ul.products li.product:hover {
  box-shadow: 0 16px 40px rgba(20, 40, 32, 0.12) !important;
  transform: translateY(-2px);
}

html[data-bs-theme="modern"] .woocommerce ul.products li.product:nth-child(3n + 2) {
  --bs-card-accent: var(--bs-green-dark);
  --bs-card-accent-hover: #0a3024;
  --bs-card-tag-bg: color-mix(in srgb, var(--bs-green-dark) 12%, #fff);
}

html[data-bs-theme="modern"] .woocommerce ul.products li.product:nth-child(3n + 3) {
  --bs-card-accent: var(--bs-accent);
  --bs-card-accent-hover: var(--bs-accent-hover);
  --bs-card-accent-text: #fff;
  --bs-card-tag-bg: color-mix(in srgb, var(--bs-accent) 18%, #fff);
}

html[data-bs-theme="modern"] .woocommerce ul.products li.product .woocommerce-loop-product__link {
  display: contents !important;
  text-decoration: none !important;
  color: inherit !important;
}

/* Category tab on image */
html[data-bs-theme="modern"] .woocommerce ul.products li.product .woocommerce-loop-product__link::before {
  content: "Team building";
  grid-row: 1 !important;
  grid-column: 1 !important;
  z-index: 2 !important;
  justify-self: start !important;
  align-self: start !important;
  margin: 0.55rem 0 0 0.55rem !important;
  padding: 0.38em 0.72em !important;
  font-family: var(--bs-font) !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  letter-spacing: 0.02em !important;
  color: var(--bs-text) !important;
  background: #fff !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 10px rgba(20, 40, 32, 0.1) !important;
  pointer-events: none !important;
}

html[data-bs-theme="modern"] .woocommerce ul.products li.product:nth-child(3n + 2) .woocommerce-loop-product__link::before {
  content: "Outdoor";
}

html[data-bs-theme="modern"] .woocommerce ul.products li.product:nth-child(3n + 3) .woocommerce-loop-product__link::before {
  content: "Adventure";
}

html[data-bs-theme="modern"] .woocommerce ul.products li.product img {
  grid-row: 1 !important;
  grid-column: 1 !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3 !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 !important;
  border-radius: 14px !important;
  filter: grayscale(0.35) contrast(1.02);
  box-sizing: border-box !important;
}

html[data-bs-theme="modern"] .woocommerce-loop-product__title {
  grid-row: 2 !important;
  grid-column: 1 !important;
  font-family: var(--bs-font) !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: var(--bs-text) !important;
  margin: 0.75rem 0 0 !important;
  padding: 0 !important;
  max-width: none !important;
}

html[data-bs-theme="modern"] .woocommerce ul.products li.product .star-rating {
  display: none !important;
}

/* Description */
html[data-bs-theme="modern"] .woocommerce ul.products li.product .woocommerce-loop-product__link::after {
  content: "Outdoor adventures and team experiences for groups across Sydney, the Blue Mountains and beyond.";
  grid-row: 3 !important;
  grid-column: 1 / -1 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  margin: 0.15rem 0 0 !important;
  padding: 0 !important;
  font-family: var(--bs-font) !important;
  font-size: 0.8rem !important;
  line-height: 1.55 !important;
  color: var(--bs-muted) !important;
}

/* Tag pills row */
html[data-bs-theme="modern"] .woocommerce ul.products li.product::before,
html[data-bs-theme="modern"] .woocommerce ul.products li.product::after {
  display: inline-block !important;
  grid-row: 4 !important;
  align-self: start !important;
  margin: 0.35rem 0 0.15rem !important;
  padding: 0.3em 0.68em !important;
  font-family: var(--bs-font) !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: var(--bs-text) !important;
  background: var(--bs-card-tag-bg) !important;
  border-radius: 999px !important;
  pointer-events: none !important;
}

html[data-bs-theme="modern"] .woocommerce ul.products li.product::before {
  content: "Outdoor";
  grid-column: 1 !important;
  justify-self: start !important;
}

html[data-bs-theme="modern"] .woocommerce ul.products li.product::after {
  content: "Groups";
  grid-column: 1 !important;
  justify-self: start !important;
  margin-left: 4.75rem !important;
}

/* Full-width CTA */
html[data-bs-theme="modern"] .woocommerce ul.products li.product .button,
html[data-bs-theme="modern"] .woocommerce ul.products li.product a.button,
html[data-bs-theme="modern"] .woocommerce-page ul.products li.product .button,
html[data-bs-theme="modern"] .woocommerce-page ul.products li.product a.button {
  grid-row: 5 !important;
  grid-column: 1 / -1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0.5rem 0 0 !important;
  padding: 0.82em 1.25em !important;
  float: none !important;
  font-family: var(--bs-font) !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  text-align: center !important;
  text-decoration: none !important;
  color: var(--bs-card-accent-text) !important;
  background: var(--bs-card-accent) !important;
  border: none !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  transition: background 0.2s ease, transform 0.2s ease !important;
}

html[data-bs-theme="modern"] .woocommerce ul.products li.product .button:hover,
html[data-bs-theme="modern"] .woocommerce ul.products li.product a.button:hover {
  color: var(--bs-card-accent-text) !important;
  background: var(--bs-card-accent-hover) !important;
  transform: translateY(-1px);
}

@media (max-width: 1024px) {
  html[data-bs-theme="modern"] body.woocommerce ul.products,
  html[data-bs-theme="modern"] body.woocommerce-page ul.products,
  html[data-bs-theme="modern"] body.woocommerce ul.products.columns-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  html[data-bs-theme="modern"] body.woocommerce ul.products,
  html[data-bs-theme="modern"] body.woocommerce-page ul.products,
  html[data-bs-theme="modern"] body.woocommerce ul.products.columns-4 {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html[data-bs-theme="modern"] .woocommerce ul.products li.product::after {
    margin-left: 4.35rem !important;
  }
}

/* Links in content */
main a:not(.elementor-button):not(.elementor-item) {
  color: var(--bs-green);
  text-underline-offset: 3px;
}

main a:not(.elementor-button):not(.elementor-item):hover {
  color: var(--bs-green-dark);
}

/* Subtle page enter */
@keyframes bs-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body > main,
body > .elementor:not(.elementor-location-header) {
  animation: bs-fade-in 0.45s ease-out;
}

/* Enquiry page */
main#content:has(.bushsports-enquiry-form) .page-header {
  display: none !important;
}

main#content:has(.bushsports-enquiry-form) .page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

main#content:has(.bushsports-enquiry-form) .wp-block-columns.is-layout-flex {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 2rem !important;
  margin: 0 auto 2rem !important;
}

main#content:has(.bushsports-enquiry-form) .wp-block-column iframe {
  width: 100% !important;
  min-height: 400px;
  border-radius: 12px;
}

@media (max-width: 900px) {
  main#content:has(.bushsports-enquiry-form) .wp-block-columns.is-layout-flex {
    grid-template-columns: 1fr !important;
  }
}

/* WordPress pages (non-product) */
main#content.type-page {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem 2rem;
  box-sizing: border-box;
  width: 100%;
}

main#content.type-page .page-header {
  padding-top: 2rem;
  text-align: center;
}

main#content.type-page .page-content > p,
main#content.type-page .page-content > h2,
main#content.type-page .page-content > h3,
main#content.type-page .page-content > ul,
main#content.type-page .page-content > ol {
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

main#content.type-page .page-content .alignright,
main#content.type-page .page-content .alignleft,
main#content.type-page .page-content .aligncenter,
main#content.type-page .page-content .wp-caption {
  float: none !important;
  margin: 1.5rem auto !important;
  display: block;
  max-width: 100%;
  text-align: center;
}

main#content.type-page .comments-area,
main#content.type-page #respond,
main#content.type-page .comment-respond {
  display: none !important;
}

/* ── Single product page ─────────────────────────────────── */
html[data-bs-theme="modern"] body.single-product #primary,
html[data-bs-theme="modern"] body.single-product .site-main {
  max-width: var(--bs-content-max);
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
  width: 100% !important;
  padding: 0 clamp(1rem, 3vw, 2rem) 3rem;
  box-sizing: border-box;
}

html[data-bs-theme="modern"] body.single-product .woocommerce-breadcrumb {
  margin: 1.25rem 0 1.5rem !important;
  padding: 0 !important;
  font-size: 0.8125rem !important;
  color: var(--bs-muted) !important;
}

html[data-bs-theme="modern"] body.single-product .woocommerce-breadcrumb a {
  color: var(--bs-green) !important;
  text-decoration: none !important;
  font-weight: 500;
}

html[data-bs-theme="modern"] body.single-product .woocommerce-breadcrumb a:hover {
  color: var(--bs-green-dark) !important;
  text-decoration: underline !important;
}

html[data-bs-theme="modern"] body.single-product div.product {
  max-width: var(--bs-product-max);
  margin: 0 auto;
  overflow: hidden;
}

html[data-bs-theme="modern"] body.single-product div.product::after {
  content: "";
  display: table;
  clear: both;
}

html[data-bs-theme="modern"] body.single-product div.product .woocommerce-product-gallery,
html[data-bs-theme="modern"] body.single-product div.product .summary.entry-summary {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}

html[data-bs-theme="modern"] body.single-product div.product .woocommerce-product-gallery {
  background: var(--bs-surface);
  border-radius: var(--bs-radius-lg);
  border: 1px solid var(--bs-border);
  box-shadow: var(--bs-shadow);
  padding: 1rem;
  overflow: hidden;
}

html[data-bs-theme="modern"] body.single-product div.product .woocommerce-product-gallery__image img {
  border-radius: calc(var(--bs-radius-lg) - 6px);
  width: 100% !important;
  height: auto !important;
  display: block;
}

html[data-bs-theme="modern"] body.single-product div.product .summary.entry-summary {
  margin-bottom: 1.75rem !important;
  text-align: left;
  padding: 0.25rem 0;
}

html[data-bs-theme="modern"] body.single-product .product_title {
  font-size: clamp(1.75rem, 4vw, 2.5rem) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  color: var(--bs-green-dark) !important;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem !important;
}

html[data-bs-theme="modern"] body.single-product .product_meta {
  font-size: 0.875rem;
  color: var(--bs-muted);
  margin: 0;
}

html[data-bs-theme="modern"] body.single-product .product_meta .posted_in a {
  display: inline-block;
  margin: 0.2rem 0.35rem 0.2rem 0;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--bs-green-soft);
  color: var(--bs-green) !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: capitalize;
}

html[data-bs-theme="modern"] body.single-product .product_meta .posted_in a:hover {
  background: var(--bs-green);
  color: #fff !important;
}

html[data-bs-theme="modern"] body.single-product div.product .woocommerce-tabs.wc-tabs-wrapper {
  clear: both !important;
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto 2.5rem !important;
  padding: 0 !important;
  box-sizing: border-box;
  display: block !important;
  text-align: left !important;
  background: var(--bs-surface);
  border-radius: var(--bs-radius-lg);
  border: 1px solid var(--bs-border);
  box-shadow: var(--bs-shadow-sm);
  overflow: hidden;
}

/* One tab only — hide orphan pill; content card stands alone */
html[data-bs-theme="modern"] body.single-product .woocommerce-tabs ul.tabs:has(li:only-child) {
  display: none !important;
}

html[data-bs-theme="modern"] body.single-product .woocommerce-tabs ul.tabs,
html[data-bs-theme="modern"] body.single-product .woocommerce-tabs ul.tabs.wc-tabs {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 1.25rem !important;
  list-style: none !important;
  border: none !important;
  border-bottom: 1px solid var(--bs-border) !important;
  background: var(--bs-green-soft);
  overflow: visible !important;
}

html[data-bs-theme="modern"] body.single-product .woocommerce-tabs ul.tabs::before,
html[data-bs-theme="modern"] body.single-product .woocommerce-tabs ul.tabs::after,
html[data-bs-theme="modern"] body.single-product .woocommerce-tabs ul.tabs li::before,
html[data-bs-theme="modern"] body.single-product .woocommerce-tabs ul.tabs li::after {
  display: none !important;
  content: none !important;
}

html[data-bs-theme="modern"] body.single-product .woocommerce-tabs ul.tabs li {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  float: none !important;
}

html[data-bs-theme="modern"] body.single-product .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 1rem 1.25rem !important;
  border: none !important;
  border-bottom: 3px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--bs-muted) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  margin-bottom: -1px;
}

html[data-bs-theme="modern"] body.single-product .woocommerce-tabs ul.tabs li.active a,
html[data-bs-theme="modern"] body.single-product .woocommerce-tabs ul.tabs li a:hover {
  color: var(--bs-green-dark) !important;
  background: transparent !important;
  border-bottom-color: var(--bs-green) !important;
}

html[data-bs-theme="modern"] body.single-product .woocommerce-Tabs-panel,
html[data-bs-theme="modern"] body.single-product #tab-description,
html[data-bs-theme="modern"] body.single-product #tab-reviews {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: clamp(1.5rem, 3vw, 2.25rem) !important;
  background: transparent;
  border: none;
  box-shadow: none;
  box-sizing: border-box;
}

html[data-bs-theme="modern"] body.single-product #tab-description > h2:first-child {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

html[data-bs-theme="modern"] body.single-product #tab-description > h1:first-of-type,
html[data-bs-theme="modern"] body.single-product #tab-description > h1 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem) !important;
  font-weight: 700 !important;
  color: var(--bs-green-dark) !important;
  text-transform: none !important;
  letter-spacing: 0.02em;
  margin: 0 0 1rem !important;
  line-height: 1.25 !important;
  text-align: left !important;
}

html[data-bs-theme="modern"] body.single-product #tab-description p,
html[data-bs-theme="modern"] body.single-product #tab-description ul,
html[data-bs-theme="modern"] body.single-product #tab-description ol,
html[data-bs-theme="modern"] body.single-product #tab-description li,
html[data-bs-theme="modern"] body.single-product #tab-reviews p {
  text-align: left !important;
  max-width: none !important;
  color: var(--bs-text);
}

html[data-bs-theme="modern"] body.single-product #tab-description h2,
html[data-bs-theme="modern"] body.single-product #tab-description h3,
html[data-bs-theme="modern"] body.single-product #tab-description h4 {
  text-align: left !important;
  color: var(--bs-green-dark) !important;
  margin-top: 1.75rem !important;
  margin-bottom: 0.65rem !important;
}

html[data-bs-theme="modern"] body.single-product #tab-description a:not(:has(img)) {
  color: var(--bs-green) !important;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

html[data-bs-theme="modern"] body.single-product #tab-description a:not(:has(img)):hover {
  color: var(--bs-green-dark) !important;
}

html[data-bs-theme="modern"] body.single-product #tab-description img.alignright,
html[data-bs-theme="modern"] body.single-product #tab-description a img,
html[data-bs-theme="modern"] body.single-product #tab-description img[src*="enquire"] {
  float: right !important;
  margin: 0 0 1.25rem 1.5rem !important;
  max-width: min(240px, 42%) !important;
  height: auto !important;
  border-radius: var(--bs-radius);
  box-shadow: var(--bs-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

html[data-bs-theme="modern"] body.single-product #tab-description a:has(img):hover img {
  transform: translateY(-2px);
  box-shadow: var(--bs-shadow);
}

html[data-bs-theme="modern"] body.single-product #tab-description::after {
  content: "";
  display: table;
  clear: both;
}

html[data-bs-theme="modern"] body.single-product section.related.products {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--bs-border);
}

html[data-bs-theme="modern"] body.single-product section.related.products > h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem) !important;
  font-weight: 700 !important;
  color: var(--bs-green-dark) !important;
  text-align: left !important;
  margin: 0 0 1.25rem !important;
}

@media (min-width: 900px) {
  html[data-bs-theme="modern"] body.single-product div.product {
    display: grid !important;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr) !important;
    gap: 2rem 2.5rem !important;
    align-items: start !important;
  }

  html[data-bs-theme="modern"] body.single-product div.product::after {
    display: none !important;
  }

  html[data-bs-theme="modern"] body.single-product div.product .woocommerce-product-gallery,
  html[data-bs-theme="modern"] body.single-product div.product .summary.entry-summary {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  html[data-bs-theme="modern"] body.single-product div.product .woocommerce-tabs.wc-tabs-wrapper,
  html[data-bs-theme="modern"] body.single-product div.product section.related.products {
    grid-column: 1 / -1 !important;
  }

  html[data-bs-theme="modern"] body.single-product div.product .woocommerce-tabs.wc-tabs-wrapper {
    margin-top: 0.5rem !important;
  }
}

@media (max-width: 640px) {
  html[data-bs-theme="modern"] body.single-product #tab-description img.alignright,
  html[data-bs-theme="modern"] body.single-product #tab-description a img,
  html[data-bs-theme="modern"] body.single-product #tab-description img[src*="enquire"] {
    float: none !important;
    display: block;
    margin: 0 auto 1.25rem !important;
    max-width: min(280px, 100%) !important;
  }
}

/* Mobile spacing */
@media (max-width: 767px) {
  .bushsports-enquiry-form,
  .wpcf7-form {
    padding: 1.25rem;
  }

  .elementor-location-header .elementor-nav-menu .elementor-item {
    font-size: 0.75rem !important;
  }
}
