/* The front page's warm dark surfaces, vivid media and orange actions carry through to the catalogues. */
body {
  --gi-showcase-dark: var(--gi-surface-dark);
  --gi-showcase-ink: var(--gi-text);
  --gi-showcase-paper: var(--gi-surface-soft);
  --gi-showcase-rule: var(--gi-border);
  --gi-showcase-accent: var(--gi-orange);
  --gi-showcase-accent-ink: var(--gi-accent-ink);
  --gi-showcase-gap: clamp(16px, 2vw, 28px);
}

body.gi-renewal-view .elementor-top-section.gi-renewal-hero {
  padding-block: clamp(38px, 5.3vw, 88px);
}

body.gi-renewal-view:not(.single-product) .elementor-top-section.gi-renewal-hero {
  background: radial-gradient(ellipse at 90% 110%, #38251a, transparent 68%), var(--gi-showcase-dark);
  color: #f6f0e8;
}

.gi-renewal-view:not(.single-product) .gi-renewal-hero :is(h1.elementor-heading-title, .gi-renewal-lead, .gi-renewal-caption) {
  color: #f6f0e8;
}

.gi-renewal-view .gi-renewal-hero h1.elementor-heading-title {
  max-width: 18ch;
  font-family: var(--gi-font-body);
  font-size: clamp(2.2rem, 1.35rem + 2.6vw, 4.25rem);
  font-weight: 680;
  line-height: 1.03;
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.gi-renewal-view:not(.single-product) .gi-renewal-hero .gi-renewal-label { color: #ffa16b; }
.gi-renewal-view .gi-renewal-hero .gi-renewal-lead { max-width: 56ch; font-size: clamp(1rem, .86rem + .3vw, 1.125rem); }
.gi-renewal-view .gi-renewal-hero .gi-renewal-caption { font-size: .8125rem !important; }

.gi-renewal-view .gi-renewal-hero .gi-renewal-photo img {
  aspect-ratio: 8 / 5;
  border: 1px solid #ffffff23;
  border-radius: 12px;
}

.gi-renewal-view .gi-renewal-hero .gi-renewal-button .elementor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  background: var(--gi-showcase-accent);
  border: 1px solid var(--gi-showcase-accent);
  color: #21180f;
}

.gi-renewal-view:not(.single-product) .gi-renewal-hero .gi-renewal-button + .gi-renewal-button .elementor-button {
  background: transparent;
  color: #fff5ea;
  border-color: #bfb0a1;
}

.gi-renewal-view .gi-renewal-hero .gi-renewal-button .elementor-button:hover {
  background: #ffac78;
  border-color: #ffac78;
  color: #21180f;
}

.gi-catalog-tools {
  padding: clamp(16px, 3vw, 30px);
  border: 1px solid var(--gi-showcase-rule);
  border-radius: 12px;
  background: var(--gi-showcase-paper);
}

.gi-catalog-tools .gi-library-intro {
  gap: 16px 24px;
  margin-block-end: 20px;
}

.gi-library-intro h2 {
  font-size: clamp(1.625rem, 1.25rem + 1.15vw, 2.35rem);
  line-height: 1.12;
  text-wrap: balance;
}

.gi-catalog-tools .gi-design-search { width: min(100%, 28rem); }
.gi-catalog-tools .gi-design-search :is(input[type="search"], button) { min-height: 48px; height: auto; }
.gi-catalog-tools .gi-design-search input[type="search"] { font-size: 1rem; border-color: #a69a8e; }
.gi-catalog-tools .gi-design-search button {
  cursor: pointer;
  background: var(--gi-showcase-dark);
  border-color: var(--gi-showcase-dark);
  font-size: .875rem;
}
.gi-catalog-tools .gi-design-search button:hover { background: #3a291e; }

.gi-library-facets { margin: 0; }
.gi-library-facets > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 16px;
  align-items: center;
  list-style: none;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--gi-showcase-rule);
  border-radius: 7px;
  background: #fff;
  color: var(--gi-showcase-ink);
  font-weight: 650;
  cursor: pointer;
}
.gi-library-facets > summary::-webkit-details-marker { display: none; }
.gi-library-facets > summary::after {
  content: '';
  grid-area: 1 / 2 / span 2;
  inline-size: 8px;
  block-size: 8px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.gi-library-facets[open] > summary::after { transform: rotate(225deg); }
.gi-library-facets.gi-facets-inline > summary { display: none; }
.gi-library-current { font-size: .8rem; font-weight: 480; color: #695c51; }

.gi-library-facets .gi-design-chips {
  flex-wrap: wrap;
  overflow: visible;
  gap: 8px;
  padding: 0;
  margin: 12px 0 0;
}
.gi-library-facets.gi-facets-inline .gi-design-chips { margin-top: 0; }
.gi-library-facets .gi-design-chips a {
  min-height: 44px;
  padding: 8px 12px;
  font-size: .875rem;
  white-space: normal;
  border-color: var(--gi-showcase-rule);
  border-radius: 7px;
  color: var(--gi-showcase-ink);
}
.gi-library-facets .gi-design-chips a:hover { border-color: var(--gi-showcase-accent); }
.gi-library-facets .gi-design-chips a[aria-current] {
  background: var(--gi-showcase-dark);
  border-color: var(--gi-showcase-dark);
  color: #fff;
}
.gi-library-facets .gi-design-chips a[aria-current]::before { content: '✓' / ''; color: #ffa16b; }
.gi-library-facets .gi-design-chips span { font-size: .75rem; font-variant-numeric: tabular-nums; }

.gi-catalog-tools .gi-search-context,
.gi-library-count { margin: 16px 0 0; font-size: .875rem; color: #615449; }
.gi-library-count { margin-block-end: 18px; }
.gi-library-empty {
  padding: 22px clamp(14px, 4vw, 32px);
  border: 1px solid var(--gi-showcase-rule);
  border-radius: 9px;
  background: var(--gi-showcase-paper);
}
.gi-library-empty p { margin: 0 0 6px; font-weight: 650; }
.gi-library-empty a { color: var(--gi-showcase-accent-ink); text-underline-offset: 4px; }

.gi-renewal-view .elementor-top-section:has(.gi-catalog-grid) { padding-block-start: 12px; }
.gi-native-catalog-bar { margin-block: 0 18px; }
.gi-native-catalog-bar .woocommerce-ordering { margin: 0; }
.gi-native-catalog-bar .woocommerce-ordering select {
  appearance: none;
  height: 44px;
  max-width: 100%;
  padding: 8px 38px 8px 12px;
  border: 1px solid var(--gi-showcase-rule);
  border-radius: 6px;
  background:
    linear-gradient(45deg, transparent 50%, currentColor 50%) calc(100% - 17px) 50% / 5px 5px no-repeat,
    linear-gradient(135deg, currentColor 50%, transparent 50%) calc(100% - 12px) 50% / 5px 5px no-repeat,
    #fff;
  color: var(--gi-showcase-ink);
  font: inherit;
  font-size: 1rem;
}
.gi-native-catalog-bar .woocommerce-result-count { font-size: .875rem; }

.gi-renewal-view .gi-native-equipment:not(.gi-native-equipment--list),
.page-id-4092 .gi-native-equipment:not(.gi-native-equipment--list) {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: var(--gi-showcase-gap);
}
.gi-project-grid,
.gi-related-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, max(17rem, (100% - 2 * var(--gi-showcase-gap)) / 3)), 1fr));
  gap: var(--gi-showcase-gap);
}

.gi-linked-card {
  position: relative;
  border-color: var(--gi-showcase-rule);
  border-radius: 11px;
  color: var(--gi-showcase-ink);
}
.gi-linked-card .gi-card-title-link::after { content: ''; position: absolute; inset: 0; }
.gi-linked-card a:not(.gi-card-title-link) { position: relative; z-index: 1; }
.gi-linked-card:has(.gi-card-title-link:focus-visible) { outline: 2px solid var(--gi-showcase-accent-ink); outline-offset: 3px; }
.gi-linked-card .gi-card-title-link:focus-visible { outline-offset: 2px; }
.gi-linked-card:is(:hover, :focus-within) { border-color: #bd8e70; }
.gi-linked-card :is(.gi-equipment-card-image, .gi-design-card-image) { background: var(--gi-showcase-paper); }
.gi-linked-card .gi-design-card-image { aspect-ratio: 16 / 10; }
.gi-linked-card :is(.gi-equipment-card-body, .gi-design-card-body) { padding: clamp(16px, 2vw, 24px); }
.gi-linked-card :is(h2, h3) {
  color: var(--gi-showcase-ink);
  font-size: clamp(1.125rem, .97rem + .36vw, 1.42rem);
  letter-spacing: -.026em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.gi-linked-card h3 a { color: inherit; text-decoration: none; }
.gi-linked-card .gi-equipment-card-category,
.gi-linked-card .gi-design-kicker { color: var(--gi-showcase-accent-ink); }
.gi-linked-card .gi-equipment-card-body p,
.gi-linked-card .gi-card-details { color: #615449; }
.gi-linked-card .gi-card-link { border-color: var(--gi-showcase-rule); font-size: .875rem; }
.gi-card-arrow {
  display: grid;
  place-items: center;
  margin-block-start: 14px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--gi-showcase-rule);
  border-radius: 50%;
  color: var(--gi-showcase-accent-ink);
}
.gi-linked-card:hover .gi-card-arrow { background: #f9eee3; }

.gi-design-pagination,
.gi-catalog-grid .woocommerce-pagination ul.page-numbers { flex-wrap: wrap; }
.gi-design-pagination :is(a, span.current),
.gi-catalog-grid .woocommerce-pagination ul.page-numbers li :is(a, span) {
  min-height: 44px;
  min-width: 44px;
  padding-inline: 10px;
  border-radius: 6px;
}
.gi-design-pagination span.current { display: grid; place-items: center; color: #fff; background: var(--gi-showcase-dark); }

body.gi-brand-system.single-product .elementor-top-section.gi-renewal-hero {
  background: var(--gi-showcase-paper);
  border-block-end: 1px solid var(--gi-showcase-rule);
}
.single-product .gi-renewal-hero .gi-product-title .elementor-heading-title { color: var(--gi-showcase-ink); }
.single-product .gi-renewal-hero .gi-renewal-button + .gi-renewal-button .elementor-button {
  background: transparent;
  border-color: #a69381;
  color: var(--gi-showcase-ink);
}
.single-product .gi-renewal-hero .gi-renewal-button + .gi-renewal-button .elementor-button:hover {
  border-color: var(--gi-showcase-accent-ink);
}
.single-product .gi-product-facts span {
  background: #fff;
  border-color: var(--gi-showcase-rule);
  color: #5b4536;
  font-size: .8rem;
}
body.gi-brand-system.single-product .gi-product-gallery .woocommerce-product-gallery {
  width: 100%;
  float: none;
  margin: 0;
}
.single-product .gi-product-gallery .woocommerce-product-gallery__wrapper { border-radius: 12px; border-color: var(--gi-showcase-rule); }
.single-product .gi-product-gallery .woocommerce-product-gallery__image img {
  aspect-ratio: 5 / 4;
  object-fit: contain;
  background: #fff;
}
.single-product .gi-product-gallery .flex-control-thumbs { margin-top: 10px; }
.single-product .gi-product-gallery .flex-control-thumbs img { border-radius: 5px; }

.gi-case-facts { gap: 16px 24px; }
.gi-case-facts div { border-color: #675548; }
.gi-case-facts dt { color: #dbcbbd; font-size: .8125rem; }
.gi-case-facts dd { color: #fff8ed; }
@media (min-width: 600px) and (max-width: 1023px) {
  .gi-concept-row > .elementor-container > .elementor-column { width: 50%; }
}

@media (min-width: 768px) {
  .single-product .gi-renewal-hero > .elementor-container {
    display: grid;
    grid-template-columns: minmax(0, 9fr) minmax(0, 11fr);
    align-items: center;
  }
  .single-product .gi-renewal-hero > .elementor-container > .elementor-column { width: 100%; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  body.gi-renewal-view:not(.single-product) .gi-renewal-hero > .elementor-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }
  .gi-renewal-view .gi-renewal-hero > .elementor-container > .elementor-column { width: 100%; }
}

@media (max-width: 767px) {
  body.gi-renewal-view .elementor-top-section.gi-renewal-hero { padding-block: 34px; }
  .gi-renewal-view .gi-renewal-hero > .elementor-container { row-gap: 24px; }
  .gi-renewal-view .gi-renewal-hero h1.elementor-heading-title { max-width: 22ch; }
  .gi-renewal-view .gi-renewal-hero .gi-renewal-photo img { aspect-ratio: 4 / 3; }
  .gi-renewal-view .gi-renewal-hero .gi-renewal-button .elementor-button { padding-inline: 15px; }
  .gi-renewal-view .gi-renewal-hero .gi-renewal-caption { margin: 0; }
  .single-product .gi-product-gallery .woocommerce-product-gallery__image img { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: no-preference) {
  .gi-linked-card img { transition: transform .28s ease; }
  .gi-linked-card:hover img { transform: scale(1.035); }
  .gi-scene-more-row[id^="gi-scene-more-"]:not([hidden]) { animation: gi-concept-in .24s ease-out both; }
  @keyframes gi-concept-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
