/* GGS sitewide UI polish — header, homepage, grids, aggregation, PDP, footer.
   Reference blend: gogoalshop.se (clean, blue accent, rectangular buttons,
   sentence-case titles) + footsoccerpro.co (sale badge top-left, hover lift,
   strong promo bar). Layered over the Rey theme; nothing destructive. */

:root {
  --ggs-site-ink: #0d0d0f;
  --ggs-site-muted: #62656d;
  --ggs-site-line: rgba(13, 13, 15, 0.1);
  --ggs-site-soft: #f5f6f7;
  --ggs-site-soft-2: #eef0f2;
  --ggs-site-blue: #0a3776;
  --ggs-site-blue-2: #0d51c0;
  --ggs-site-green: #176f4d;
  --ggs-site-red: #d2342f;
  --ggs-site-red-deep: #b22923;
  --ggs-site-radius: 8px;
  --ggs-site-radius-sm: 6px;
}

body {
  text-rendering: optimizeLegibility;
}

/* ---------- Header ---------- */

.rey-siteHeader {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  background: #fff;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

body.ggs-scrolled .rey-siteHeader {
  box-shadow: 0 6px 18px -10px rgba(0, 0, 0, 0.22);
}

.rey-siteHeader .rey-textScroller,
.rey-siteHeader .rey-textScroller p {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.rey-siteHeader .elementor-widget-reycore-header-logo img {
  max-height: 64px;
  width: auto;
}

.rey-siteHeader .elementor-widget-reycore-header-search input[type="search"],
.rey-siteHeader .rey-searchForm input[type="search"] {
  border: 1px solid transparent;
  border-radius: var(--ggs-site-radius-sm);
  background: var(--ggs-site-soft-2);
  color: var(--ggs-site-ink);
  font-size: 14px;
  padding-inline: 14px;
}

.rey-siteHeader .elementor-widget-reycore-header-search input[type="search"]::placeholder,
.rey-siteHeader .rey-searchForm input[type="search"]::placeholder {
  color: var(--ggs-site-muted);
  opacity: 1;
}

.rey-siteHeader .elementor-widget-reycore-header-search input[type="search"]:focus,
.rey-siteHeader .rey-searchForm input[type="search"]:focus {
  border-color: var(--ggs-site-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(10, 55, 118, 0.12);
  outline: 0;
}

.rey-siteHeader a,
.rey-siteHeader button {
  transition: color 140ms ease, opacity 140ms ease, background-color 140ms ease, transform 140ms ease;
}

.rey-siteHeader a:hover,
.rey-siteHeader button:hover {
  color: var(--ggs-site-blue);
  opacity: 1;
}

.rey-siteHeader .rey-headerCart__counter,
.rey-siteHeader .rey-cartCounter,
.rey-siteHeader .reyEl-cart-counter {
  background: var(--ggs-site-red);
  color: #fff;
  font-weight: 800;
  border: 0;
}

@media (min-width: 1025px) {
  .rey-siteHeader .elementor-element-9f42dab {
    padding-left: 72px !important;
  }

  .rey-siteHeader .rey-mainMenu--desktop {
    justify-content: flex-start !important;
  }

  .rey-siteHeader .rey-mainMenu--desktop > .menu-item:first-child {
    display: none !important;
  }

  .rey-siteHeader .rey-mainMenu--desktop > .menu-item.menu-item-has-children {
    position: relative;
  }

  .rey-siteHeader .rey-mainMenu--desktop > .menu-item.menu-item-has-children > .sub-menu {
    position: absolute !important;
    top: calc(100% + 18px) !important;
    left: 0 !important;
    display: block !important;
    min-width: 260px;
    max-height: min(72vh, 680px);
    overflow-y: auto;
    padding: 12px 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
    z-index: 99999;
  }

  body:not(.ggs-nav-managed) .rey-siteHeader .rey-mainMenu--desktop > .menu-item.menu-item-has-children:hover > .sub-menu,
  body:not(.ggs-nav-managed) .rey-siteHeader .rey-mainMenu--desktop > .menu-item.menu-item-has-children:focus-within > .sub-menu,
  body.ggs-nav-managed .rey-siteHeader .rey-mainMenu--desktop > .menu-item.menu-item-has-children.ggs-nav-open > .sub-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
    transition-delay: 0s !important;
  }

  body.ggs-nav-managed .rey-siteHeader .rey-mainMenu--desktop > .menu-item.menu-item-has-children:not(.ggs-nav-open) > .sub-menu {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(8px) !important;
    transition: opacity 120ms ease, transform 120ms ease, visibility 0s linear 120ms !important;
  }

  body.ggs-nav-managed .rey-siteHeader .rey-mainMenu--desktop > .menu-item.menu-item-has-children:not(.ggs-nav-open) > .sub-menu .sub-menu,
  body.ggs-nav-managed .rey-siteHeader .rey-mainMenu--desktop > .menu-item.menu-item-has-children:not(.ggs-nav-open) > .sub-menu .sub-menu * {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.ggs-nav-managed .rey-siteHeader .rey-mainMenu--desktop > .menu-item > a,
  body.ggs-nav-managed .rey-siteHeader .rey-mainMenu--desktop > .menu-item > a:hover,
  body.ggs-nav-managed .rey-siteHeader .rey-mainMenu--desktop > .menu-item > a:focus,
  body.ggs-nav-managed .rey-siteHeader .rey-mainMenu--desktop > .menu-item > a:focus-visible,
  body.ggs-nav-managed .rey-siteHeader .rey-mainMenu--desktop > .menu-item.current-menu-item > a,
  body.ggs-nav-managed .rey-siteHeader .rey-mainMenu--desktop > .menu-item.current-menu-ancestor > a,
  body.ggs-nav-managed .rey-siteHeader .rey-mainMenu--desktop > .menu-item.current_page_item > a,
  body.ggs-nav-managed .rey-siteHeader .rey-mainMenu--desktop > .menu-item.current_page_ancestor > a {
    border-bottom: 0 !important;
    box-shadow: none !important;
    color: #111827;
    outline: 0;
    text-decoration: none !important;
  }

  body.ggs-nav-managed .rey-siteHeader .rey-mainMenu--desktop > .menu-item > a::before,
  body.ggs-nav-managed .rey-siteHeader .rey-mainMenu--desktop > .menu-item > a::after,
  body.ggs-nav-managed .rey-siteHeader .rey-mainMenu--desktop > .menu-item > a span::before,
  body.ggs-nav-managed .rey-siteHeader .rey-mainMenu--desktop > .menu-item > a span::after {
    border: 0 !important;
    box-shadow: none !important;
    opacity: 0 !important;
    transform: scaleX(0) !important;
    transition: none !important;
  }

  body.ggs-nav-managed .rey-siteHeader .rey-mainMenu--desktop > .menu-item.ggs-nav-open > a {
    color: #000;
  }

  .rey-siteHeader .rey-mainMenu--desktop > .menu-item.menu-item-has-children > .sub-menu a {
    display: block;
    height: auto;
    overflow: visible;
    padding: 9px 18px;
    color: #111827;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-transform: none;
    white-space: nowrap;
  }

  .rey-siteHeader .rey-mainMenu--desktop > .menu-item.menu-item-has-children > .sub-menu a span {
    display: block;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    transition: none !important;
  }

  .rey-siteHeader .rey-mainMenu--desktop > .menu-item.menu-item-has-children > .sub-menu a:hover,
  .rey-siteHeader .rey-mainMenu--desktop > .menu-item.menu-item-has-children > .sub-menu a:focus {
    background: #f3f4f6;
    color: #000;
  }

  .rey-siteHeader .rey-mainMenu--desktop > .menu-item.ggs-menu-mega > .sub-menu {
    display: grid !important;
    align-content: start;
    gap: 18px 24px;
    padding: 22px 24px;
    overflow: auto;
  }

  .rey-siteHeader .rey-mainMenu--desktop > .menu-item.ggs-menu-mega-clubs > .sub-menu {
    width: min(980px, calc(100vw - 260px));
    grid-template-columns: repeat(4, minmax(145px, 1fr));
  }

  .rey-siteHeader .rey-mainMenu--desktop > .menu-item.ggs-menu-mega-national > .sub-menu {
    width: min(760px, calc(100vw - 430px));
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .rey-siteHeader .rey-mainMenu--desktop > .menu-item.ggs-menu-mega-players > .sub-menu {
    width: min(640px, calc(100vw - 570px));
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }

  .rey-siteHeader .rey-mainMenu--desktop > .menu-item.ggs-menu-mega > .sub-menu > .menu-item {
    margin: 0;
    padding: 0;
    break-inside: avoid;
  }

  .rey-siteHeader .rey-mainMenu--desktop > .menu-item.ggs-menu-mega > .sub-menu > .menu-item.ggs-menu-group > a {
    display: block !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    padding: 0 0 8px;
    border-bottom: 1px solid #e5e7eb;
    color: #000;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1.25;
    text-transform: uppercase;
    visibility: visible !important;
    white-space: normal;
  }

  .rey-siteHeader .rey-mainMenu--desktop > .menu-item.ggs-menu-mega > .sub-menu > .menu-item.ggs-menu-group > a span {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .rey-siteHeader .rey-mainMenu--desktop > .menu-item.ggs-menu-mega > .sub-menu > .menu-item.ggs-menu-group > a .--submenu-indicator {
    display: none !important;
  }

  .rey-siteHeader .rey-mainMenu--desktop > .menu-item.ggs-menu-mega > .sub-menu > .menu-item.ggs-menu-group > a {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  .rey-siteHeader .rey-mainMenu--desktop > .menu-item.ggs-menu-mega > .sub-menu > .menu-item.ggs-menu-group > a:hover,
  .rey-siteHeader .rey-mainMenu--desktop > .menu-item.ggs-menu-mega > .sub-menu > .menu-item.ggs-menu-group > a:focus {
    background: transparent;
    color: #000;
  }

  .rey-siteHeader .rey-mainMenu--desktop > .menu-item.ggs-menu-mega > .sub-menu > .menu-item.ggs-menu-group > .sub-menu {
    position: static !important;
    display: flex !important;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    max-height: none;
    margin: 0;
    padding: 8px 0 0;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  .rey-siteHeader .rey-mainMenu--desktop > .menu-item.ggs-menu-mega > .sub-menu > .menu-item.ggs-menu-group > .sub-menu a {
    padding: 4px 0;
    color: #374151;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.28;
    text-transform: none;
    white-space: normal;
  }

  .rey-siteHeader .rey-mainMenu--desktop > .menu-item.ggs-menu-mega > .sub-menu > .menu-item.ggs-menu-group > .sub-menu > .menu-item.ggs-menu-subheading > a {
    display: block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 0 6px;
    padding: 0 0 8px;
    border-bottom: 1px solid #e5e7eb;
    color: #000;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1.25;
    text-transform: uppercase;
    visibility: visible !important;
  }

  .rey-siteHeader .rey-mainMenu--desktop > .menu-item.ggs-menu-mega > .sub-menu > .menu-item.ggs-menu-group > .sub-menu > .menu-item.ggs-menu-subheading > a span {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .rey-siteHeader .rey-mainMenu--desktop > .menu-item.ggs-menu-mega > .sub-menu > .menu-item.ggs-menu-group > .sub-menu > .menu-item.ggs-menu-subheading > a:hover,
  .rey-siteHeader .rey-mainMenu--desktop > .menu-item.ggs-menu-mega > .sub-menu > .menu-item.ggs-menu-group > .sub-menu > .menu-item.ggs-menu-subheading > a:focus {
    background: transparent;
    color: #000;
  }

  .rey-siteHeader .rey-mainMenu--desktop > .menu-item.ggs-menu-mega > .sub-menu > .menu-item.ggs-menu-group > .sub-menu a:hover,
  .rey-siteHeader .rey-mainMenu--desktop > .menu-item.ggs-menu-mega > .sub-menu > .menu-item.ggs-menu-group > .sub-menu a:focus {
    background: transparent;
    color: var(--ggs-site-red);
  }

  @media (max-width: 1200px) {
    .rey-siteHeader .rey-mainMenu--desktop > .menu-item.ggs-menu-mega-clubs > .sub-menu {
      grid-template-columns: repeat(3, minmax(140px, 1fr));
    }

    .rey-siteHeader .rey-mainMenu--desktop > .menu-item.ggs-menu-mega-national > .sub-menu,
    .rey-siteHeader .rey-mainMenu--desktop > .menu-item.ggs-menu-mega-players > .sub-menu {
      grid-template-columns: repeat(2, minmax(140px, 1fr));
    }
  }

  .rey-siteHeader .elementor-widget-n-menu a,
  .rey-siteHeader .elementor-widget-reycore-header-navigation a,
  .rey-siteHeader .elementor-widget-reycore-header-navigation .menu-item > a,
  .rey-siteHeader .reyEl-menu-nav > .menu-item > a {
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
}

@media (min-width: 1025px) and (max-width: 1320px) {
  .rey-siteHeader .elementor-element-3ebecde {
    display: none !important;
  }
}

/* Hide empty mega-menu rows that previously rendered as blank list items */
.rey-siteHeader .menu-item:empty,
.rey-siteHeader .sub-menu li:empty,
.rey-siteHeader .menu-item.ggs-empty-nav {
  display: none !important;
}

/* ---------- Homepage hero ---------- */

body.home .elementor-widget-reycore-basic-slider {
  background: #050505;
}

body.home .elementor-widget-reycore-basic-slider .splide__track,
body.home .elementor-widget-reycore-basic-slider .splide__list,
body.home .elementor-widget-reycore-basic-slider .splide__slide {
  background: #050505;
}

body.home .elementor-widget-reycore-basic-slider.ggs-static-hero .splide__slide {
  opacity: 0 !important;
  visibility: hidden !important;
}

body.home .elementor-widget-reycore-basic-slider.ggs-static-hero .splide__slide:first-child {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

body.home .elementor-widget-reycore-basic-slider.ggs-static-hero .splide__arrows,
body.home .elementor-widget-reycore-basic-slider.ggs-static-hero .__arrows,
body.home .elementor-widget-reycore-slider-nav {
  display: none !important;
}

body.home .elementor-widget-reycore-basic-slider .__media {
  background: #050505;
  object-fit: contain !important;
  object-position: 62% center !important;
  opacity: 0.96;
}

body.home .elementor-widget-reycore-basic-slider .__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.32) 44%, rgba(0, 0, 0, 0.04) 100%);
}

body.home .elementor-widget-reycore-basic-slider .__caption {
  z-index: 2;
  position: relative;
  max-width: 560px;
  padding: 40px clamp(20px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(380px, 52vh, 600px);
}

body.home .elementor-widget-reycore-basic-slider .__title {
  max-width: 520px;
  color: #fff;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-transform: none;
  font-weight: 900;
}

body.home .elementor-widget-reycore-basic-slider .__subtitle,
body.home .elementor-widget-reycore-basic-slider .__caption p {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(14px, 1.1vw, 17px);
  margin-top: 12px;
}

body.home .elementor-widget-reycore-basic-slider .__button,
body.home .elementor-widget-reycore-basic-slider .btn {
  min-height: 46px;
  border-radius: var(--ggs-site-radius);
  padding-inline: 26px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #fff;
  color: var(--ggs-site-ink);
  border: 0;
  font-size: 13px;
}

body.home .elementor-widget-reycore-basic-slider .__button:hover,
body.home .elementor-widget-reycore-basic-slider .btn:hover {
  background: var(--ggs-site-blue);
  color: #fff;
}

/* ---------- Trust strip (injected by site-ui.js after the hero) ---------- */

.ggs-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 22px 28px;
  background: var(--ggs-site-ink);
  color: #fff;
  list-style: none;
  border: 0;
}

.ggs-trust-strip__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  padding: 6px 22px;
  font-size: 14px;
  line-height: 1.4;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.ggs-trust-strip__item:last-child {
  border-right: 0;
}

.ggs-trust-strip__item::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-bottom: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  box-shadow: inset 0 0 0 2px #fff;
}

.ggs-trust-strip__title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.ggs-trust-strip__body {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

@media (max-width: 767px) {
  .ggs-trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px 12px;
  }
  .ggs-trust-strip__item {
    padding: 6px 8px;
  }
  .ggs-trust-strip__item:nth-child(2) {
    border-right: 0;
  }
}

/* ---------- Homepage category chips (anchored quick-jump) ---------- */

body.home main .elementor-widget-reycore-menu .reyEl-menu-navWrapper {
  max-width: min(1200px, calc(100vw - 32px));
  margin-inline: auto;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}

body.home main .elementor-widget-reycore-menu .reyEl-menu-nav {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  gap: 8px;
  padding: 2px 0 12px;
  white-space: nowrap;
}

body.home main .elementor-widget-reycore-menu .menu-item {
  flex: 0 0 auto;
}

body.home main .elementor-widget-reycore-menu .menu-item a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--ggs-site-line);
  border-radius: 999px;
  background: #fff;
  color: var(--ggs-site-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
}

body.home main .elementor-widget-reycore-menu .menu-item a:hover {
  border-color: var(--ggs-site-ink);
  background: var(--ggs-site-ink);
  color: #fff;
}

body.home main .elementor-widget-reycore-menu .menu-item.current-menu-item a,
body.home main .elementor-widget-reycore-menu .menu-item.current-page-ancestor a {
  border-color: var(--ggs-site-blue);
  background: var(--ggs-site-blue);
  color: #fff;
}

/* Hide stale empty row next to chips */
body.home .elementor-element-58fd7b6 > .elementor-element-305e131 {
  display: none !important;
}

body.home .elementor-element-58fd7b6 > .elementor-element-c0f32f6 {
  width: 100%;
  flex-basis: 100%;
}

/* ---------- Section heading style (homepage rows + landing pages) ---------- */

body.home main h2.elementor-heading-title,
body.tax-product_cat main h2.elementor-heading-title,
body.archive main h2.elementor-heading-title {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 900;
  letter-spacing: -0.005em;
  line-height: 1.2;
  margin-bottom: 18px;
  text-transform: none;
  color: var(--ggs-site-ink);
}

/* ---------- Product grid (Woo loop) ---------- */

.woocommerce ul.products {
  gap: 22px 18px;
}

.woocommerce ul.products li.product {
  min-width: 0;
}

.woocommerce ul.products li.product .rey-productThumbnail,
.woocommerce ul.products li.product .rey-thumbImg,
.woocommerce ul.products li.product img.attachment-woocommerce_thumbnail {
  border-radius: var(--ggs-site-radius-sm);
}

.woocommerce ul.products li.product .rey-productThumbnail {
  overflow: hidden;
  background: var(--ggs-site-soft);
  aspect-ratio: 1 / 1;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.woocommerce ul.products li.product:hover .rey-productThumbnail {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -18px rgba(0, 0, 0, 0.4);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  display: -webkit-box;
  min-height: 2.8em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ggs-site-ink);
}

/* Sale price stays ink + bold; original is muted struck-through (matches gogoalshop.se) */
.woocommerce ul.products li.product .price {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 2px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ggs-site-ink);
}

.woocommerce ul.products li.product .price del,
.woocommerce ul.products li.product .price del .amount {
  color: var(--ggs-site-muted);
  font-weight: 500;
  opacity: 0.85;
  font-size: 13px;
  text-decoration: line-through;
}

.woocommerce ul.products li.product .price ins,
.woocommerce ul.products li.product .price ins .amount {
  background: none;
  color: var(--ggs-site-ink);
  font-weight: 900;
  text-decoration: none;
}

/* Sale badge: only place red appears on a product card */
.woocommerce ul.products li.product .onsale,
.woocommerce span.onsale {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  min-width: 0;
  min-height: 0;
  padding: 4px 9px;
  border-radius: 4px;
  background: var(--ggs-site-red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
  border-radius: var(--ggs-site-radius);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.woocommerce ul.products li.product .rey-quickView,
.woocommerce ul.products li.product .rey-wishlistButton {
  border-radius: 999px;
}

/* ---------- Aggregation / landing pages ---------- */

body.tax-product_cat .ggs-landing-anchor,
body.archive .ggs-landing-anchor {
  scroll-margin-top: 100px;
}

body.tax-product_cat .elementor-widget-button .elementor-button,
body.archive .elementor-widget-button .elementor-button {
  border-radius: var(--ggs-site-radius);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 24px;
  background: var(--ggs-site-ink);
  color: #fff;
  border: 0;
}

body.tax-product_cat .elementor-widget-button .elementor-button:hover,
body.archive .elementor-widget-button .elementor-button:hover {
  background: var(--ggs-site-blue);
  color: #fff;
}

body.tax-product_cat .term-description,
body.archive .term-description {
  color: var(--ggs-site-muted);
  line-height: 1.55;
  font-size: 15px;
}

/* Anchor chips (rendered by site-ui.js on landing pages) */
.ggs-anchor-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 22px;
}

.ggs-anchor-chips a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--ggs-site-line);
  border-radius: 999px;
  background: #fff;
  color: var(--ggs-site-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.ggs-anchor-chips a:hover {
  background: var(--ggs-site-blue);
  color: #fff;
  border-color: var(--ggs-site-blue);
}

/* ---------- Single product (PDP) ---------- */

body.single-product .rey-productSummary .summary.entry-summary {
  color: var(--ggs-site-ink);
}

body.single-product .product_title.entry-title {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin-bottom: 8px;
  text-transform: none;
}

body.single-product .summary.entry-summary .price {
  margin-bottom: 16px;
  font-weight: 800;
  font-size: 26px;
  color: var(--ggs-site-ink);
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

body.single-product .summary.entry-summary .price del,
body.single-product .summary.entry-summary .price del .amount {
  color: var(--ggs-site-muted);
  font-weight: 500;
  font-size: 17px;
  text-decoration: line-through;
}

body.single-product .summary.entry-summary .price ins,
body.single-product .summary.entry-summary .price ins .amount {
  background: none;
  color: var(--ggs-site-ink);
  font-weight: 900;
}

body.single-product .single_add_to_cart_button {
  min-height: 52px;
  border-radius: var(--ggs-site-radius);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 14px;
  padding-inline: 28px;
  background: var(--ggs-site-ink);
  color: #fff;
  border: 0;
  box-shadow: 0 10px 22px -14px rgba(0, 0, 0, 0.4);
}

body.single-product .single_add_to_cart_button:hover {
  background: var(--ggs-site-blue);
  color: #fff;
}

body.single-product .quantity input.qty {
  min-height: 52px;
  border-radius: var(--ggs-site-radius);
  border: 1px solid var(--ggs-site-line);
  padding: 0 12px;
  font-weight: 700;
  text-align: center;
}

body.single-product form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
}

body.single-product form.cart .quantity {
  margin: 0;
}

body.single-product form.cart .single_add_to_cart_button {
  flex: 1 1 auto;
}

.ggs-pdp-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.ggs-pdp-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--ggs-site-radius);
  background: var(--ggs-site-soft);
  color: var(--ggs-site-ink);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ggs-pdp-trust li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--ggs-site-green);
  border-bottom: 2px solid var(--ggs-site-green);
  transform: rotate(45deg) translateY(-1px);
}

.ggs-empty-section {
  display: none !important;
}

/* ---------- Footer ---------- */

.rey-siteFooter {
  background: #0d0d0f;
  color: #d8d9dc;
}

.rey-siteFooter a {
  color: #d8d9dc;
}

.rey-siteFooter a:hover {
  color: #fff;
}

.rey-siteFooter h2,
.rey-siteFooter h3,
.rey-siteFooter h4,
.rey-siteFooter .widget-title {
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* ---------- Responsive ---------- */

@media (min-width: 1025px) {
  body.single-product .rey-productSummary .summary.entry-summary {
    padding-top: 18px;
  }
}

@media (max-width: 767px) {
  .rey-siteHeader .rey-textScroller,
  .rey-siteHeader .rey-textScroller p {
    font-size: 12px;
  }

  .rey-siteHeader .elementor-widget-reycore-header-logo img {
    max-height: 44px;
  }

  body.home .elementor-widget-reycore-basic-slider .__media {
    object-position: 54% center !important;
  }

  body.home .elementor-widget-reycore-basic-slider .__slide::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.78) 100%);
  }

  body.home .elementor-widget-reycore-basic-slider .__caption {
    width: calc(100vw - 48px);
    max-width: 342px;
  }

  body.home .elementor-widget-reycore-basic-slider .__title {
    font-size: 34px;
    line-height: 1.04;
  }

  body.home main .elementor-widget-reycore-menu .reyEl-menu-navWrapper {
    max-width: 100vw;
    padding-inline: 15px;
  }

  body.home main .elementor-widget-reycore-menu .menu-item a {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
  }

  .woocommerce ul.products {
    gap: 16px 12px;
  }

  body.single-product form.cart {
    gap: 10px;
  }

  body.single-product .single_add_to_cart_button {
    min-height: 48px;
    font-size: 13px;
    letter-spacing: 0.05em;
  }

  body.single-product .rey-stickyAtc-wrapper,
  body.single-product .rey-stickyAtc {
    display: none !important;
  }

  body.single-product {
    padding-bottom: 0 !important;
    overflow-x: hidden;
  }
}

/* =================================================================
   GGS Custom Homepage (templates/homepage.php)
   ================================================================= */

body.ggs-custom-home .ggs-home {
  max-width: 100%;
  margin: 0;
  padding: 0;
  color: var(--ggs-site-ink);
  background: #fff;
}

body.ggs-custom-home .ggs-home > section,
body.ggs-custom-home .ggs-home > .ggs-trust-strip {
  margin-bottom: 0;
}

/* Hide stale Elementor leftovers that some installs render on the home wrapper */
body.ggs-custom-home .elementor-section.elementor-top-section,
body.ggs-custom-home .page-content > .elementor,
body.ggs-custom-home .entry-content > .elementor {
  display: none !important;
}
body.ggs-custom-home #ggs-home,
body.ggs-custom-home #ggs-home * { box-sizing: border-box; }

/* Buttons */
.ggs-home .ggs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, transform 140ms ease, border-color 140ms ease;
}
.ggs-home .ggs-btn--primary {
  background: var(--ggs-site-ink);
  color: #fff;
}
.ggs-home .ggs-btn--primary:hover {
  background: var(--ggs-site-blue);
  color: #fff;
}
.ggs-home .ggs-btn--ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}
.ggs-home .ggs-btn--ghost:hover {
  background: #fff;
  color: var(--ggs-site-ink);
  border-color: #fff;
}

/* Hero */
.ggs-home-hero {
  background: linear-gradient(115deg, #0d0d0f 0%, #1a1c22 55%, #232730 100%);
  color: #fff;
  overflow: hidden;
}
.ggs-home-hero__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 96px) clamp(20px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  min-height: clamp(360px, 48vh, 540px);
}
.ggs-home-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 520px;
}
.ggs-home-hero__eyebrow {
  display: inline-block;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ggs-home-hero__title {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #fff;
}
.ggs-home-hero__lede {
  margin: 0;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  max-width: 460px;
}
.ggs-home-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.ggs-home-hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.ggs-home-hero__visual::before {
  content: "";
  position: absolute;
  inset: 8% 12% 8% 12%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.18), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.ggs-home-hero__visual img {
  position: relative;
  display: block;
  max-width: 100%;
  max-height: clamp(280px, 44vh, 460px);
  width: auto;
  height: auto;
  object-fit: contain;
  z-index: 1;
}

/* Trust strip (overrides earlier rules to land right under hero) */
body.ggs-custom-home .ggs-trust-strip {
  margin: 0;
  border-radius: 0;
}

/* Section scaffolding */
.ggs-home-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(48px, 5vw, 80px) clamp(20px, 5vw, 56px);
}
.ggs-home-section + .ggs-home-section {
  padding-top: 0;
}
.ggs-home-section__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 28px;
}
.ggs-home-section__head--row {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.ggs-home-section__title {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--ggs-site-ink);
}
.ggs-home-section__lede {
  margin: 0;
  font-size: 14px;
  color: var(--ggs-site-muted);
}
.ggs-home-section__more {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ggs-site-ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--ggs-site-line);
  background: #fff;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}
.ggs-home-section__more:hover {
  background: var(--ggs-site-ink);
  border-color: var(--ggs-site-ink);
  color: #fff;
}

/* Category tiles */
.ggs-home-tiles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.ggs-home-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 22px 18px;
  min-height: 96px;
  border-radius: 12px;
  background: var(--ggs-site-soft);
  color: var(--ggs-site-ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
  border: 1px solid var(--ggs-site-line);
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease, border-color 160ms ease;
  overflow: hidden;
}
.ggs-home-tile::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(13, 13, 15, 0.04);
  transition: transform 200ms ease, background-color 200ms ease;
}
.ggs-home-tile:hover {
  background: var(--ggs-site-ink);
  color: #fff;
  border-color: var(--ggs-site-ink);
  transform: translateY(-2px);
}
.ggs-home-tile:hover::after {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.1);
}
.ggs-home-tile--0,
.ggs-home-tile--1 {
  background: var(--ggs-site-ink);
  color: #fff;
  border-color: var(--ggs-site-ink);
}
.ggs-home-tile--0::after,
.ggs-home-tile--1::after {
  background: rgba(255, 255, 255, 0.06);
}
.ggs-home-tile--0:hover,
.ggs-home-tile--1:hover {
  background: var(--ggs-site-blue);
  border-color: var(--ggs-site-blue);
}
.ggs-home-tile__label {
  position: relative;
  z-index: 1;
}
.ggs-home-tile__arrow {
  position: relative;
  z-index: 1;
  font-size: 18px;
  opacity: 0.7;
  transition: transform 160ms ease, opacity 160ms ease;
}
.ggs-home-tile:hover .ggs-home-tile__arrow {
  transform: translateX(4px);
  opacity: 1;
}

/* Product rows — Woo loop overrides scoped to the home rows */
.ggs-home-row .woocommerce {
  margin: 0;
}
.ggs-home-row .products,
.ggs-home-row ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ggs-home-row ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: none !important;
}
.ggs-home-row ul.products li.product .price {
  margin-top: 4px;
}

/* Footer CTA */
.ggs-home-cta {
  background: var(--ggs-site-soft);
  padding: clamp(40px, 5vw, 72px) clamp(20px, 5vw, 56px);
  text-align: center;
}
.ggs-home-cta__inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.ggs-home-cta__title {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.005em;
}
.ggs-home-cta__lede {
  margin: 0;
  color: var(--ggs-site-muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 520px;
}

/* Responsive */
@media (max-width: 1024px) {
  .ggs-home-hero__inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 56px;
  }
  .ggs-home-hero__visual {
    order: -1;
  }
  .ggs-home-hero__visual img {
    max-height: 280px;
  }
  .ggs-home-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ggs-home-row .products,
  .ggs-home-row ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ggs-home-section {
    padding-inline: 16px;
  }
  .ggs-home-hero__inner {
    padding: 36px 18px;
  }
  .ggs-home-hero__cta {
    width: 100%;
  }
  .ggs-home-hero__cta .ggs-btn {
    flex: 1 1 auto;
    padding: 0 18px;
  }
  .ggs-home-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .ggs-home-tile {
    padding: 16px 14px;
    min-height: 80px;
    font-size: 13px;
  }
  .ggs-home-row .products,
  .ggs-home-row ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }
  .ggs-home-section__head--row {
    flex-direction: column;
    align-items: flex-start;
  }
}
