/* Shop archive — 1:1 Designsystem */

body.woocommerce-shop .gx-main,
body.tax-product_cat .gx-main,
body.tax-product_tag .gx-main,
body.post-type-archive-product .gx-main {
  background: #f7f4f0;
}

.gx-shop-hero {
  position: relative;
  background: #100f0e;
  color: #f8f5f1;
  overflow: hidden;
}

.gx-shop-hero__bg {
  position: absolute;
  inset: 0;
}

.gx-shop-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  animation: gxKen 24s ease-in-out infinite alternate;
}

.gx-shop-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(14, 13, 11, 0.97) 0%, rgba(14, 13, 11, 0.9) 40%, rgba(14, 13, 11, 0.62) 75%, rgba(14, 13, 11, 0.4) 100%);
}

.gx-shop-hero__vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 -120px 120px -60px rgba(9, 8, 7, 0.92), inset 0 90px 90px -60px rgba(9, 8, 7, 0.7);
}

.gx-shop-hero__inner {
  position: relative;
  z-index: 1;
  padding: 128px 0 40px;
}

.gx-shop-hero__kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c6a97d;
}

.gx-shop-hero__kicker-line {
  width: 38px;
  height: 1px;
  background: linear-gradient(90deg, #ae9069, rgba(174, 144, 105, 0));
}

.gx-shop-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: #f8f5f1;
  margin: 0;
  max-width: 640px;
}

.gx-shop-hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 18px;
  font-size: 14px;
  color: #c3bcb3;
}

.gx-shop-hero__trust strong {
  color: #f8f5f1;
  font-weight: 600;
}

.gx-shop-hero__stars {
  display: flex;
  gap: 2px;
  color: #ae9069;
}

.gx-shop-cats {
  margin-top: 26px;
}

.gx-shop-cats__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a837b;
  margin-bottom: 14px;
}

.gx-shop-cats__rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(174, 144, 105, 0.55) transparent;
}

.gx-shop-cats__rail::-webkit-scrollbar {
  height: 6px;
}

.gx-shop-cats__rail::-webkit-scrollbar-thumb {
  background: rgba(174, 144, 105, 0.55);
  border-radius: 999px;
}

.gx-shop-cat {
  flex: 0 0 150px;
  scroll-snap-align: start;
  text-decoration: none;
  color: #f8f5f1;
}

.gx-shop-cat__media {
  display: block;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: #f7f4f0;
  border: 1px solid rgba(230, 220, 205, 0.14);
}

.gx-shop-cat__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gx-shop-cat__pct {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 600;
  color: #ae9069;
  background: #1d1a17;
}

.gx-shop-cat__name {
  display: block;
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  color: #e6dccd;
}

.gx-shop-products {
  padding: 44px 0 88px;
  background: #f7f4f0;
}

.gx-shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.gx-shop-toolbar__count {
  font-size: 15px;
  color: #625d58;
}

.gx-shop-toolbar__count strong {
  color: #171513;
  font-weight: 600;
}

.gx-shop-filter-toggle {
  display: none;
  align-items: center;
  height: 42px;
  padding: 0 16px;
  border: 1px solid #e2dad2;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #171513;
  cursor: pointer;
}

.gx-shop-sort {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.gx-shop-sort__label {
  font-size: 13px;
  color: #625d58;
  margin-right: 4px;
}

.gx-shop-sort__chip {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border: 1px solid #e2dad2;
  border-radius: 999px;
  background: #fff;
  color: #625d58;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.gx-shop-sort__chip.is-active,
.gx-shop-sort__chip:hover {
  border-color: #ae9069;
  background: #ae9069;
  color: #13110f;
}

.gx-shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  align-items: start;
}

.gx-shop-sidebar {
  position: sticky;
  top: 120px;
  max-height: calc(100vh - 140px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border: 1px solid #e2dad2;
  border-radius: 14px;
  padding: 18px 20px;
  scrollbar-width: thin;
  scrollbar-color: #d8ccbc transparent;
}

.gx-shop-sidebar::-webkit-scrollbar {
  width: 6px;
}

.gx-shop-sidebar::-webkit-scrollbar-thumb {
  background: #d8ccbc;
  border-radius: 999px;
}

.gx-filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.gx-filters__head h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  color: #171513;
}

.gx-filters__reset {
  font-size: 13px;
  color: #96764f;
  text-decoration: none;
}

.gx-filters__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1ece6;
  font-size: 14.5px;
  font-weight: 600;
  color: #171513;
  cursor: pointer;
}

.gx-switch {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #d8ccbc;
  flex-shrink: 0;
  transition: background 0.2s;
}

.gx-switch.is-on {
  background: #ae9069;
}

.gx-switch__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: left 0.2s;
}

.gx-switch.is-on .gx-switch__knob {
  left: 20px;
}

.gx-filters__group {
  padding: 18px 0 6px;
  border-bottom: 1px solid #f1ece6;
}

.gx-filters__group:last-child {
  border-bottom: none;
}

.gx-filters__title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #96764f;
  margin-bottom: 12px;
}

.gx-filters__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gx-filters__check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  text-decoration: none;
  color: #171513;
  font-size: 14px;
}

.gx-filters__box {
  width: 20px;
  height: 20px;
  border: 1.5px solid #d8ccbc;
  border-radius: 5px;
  flex-shrink: 0;
  background: #fff;
}

.gx-filters__check.is-active .gx-filters__box {
  background: #ae9069;
  border-color: #ae9069;
  box-shadow: inset 0 0 0 3px #fff;
}

.gx-filters__name {
  flex: 1;
}

.gx-filters__count {
  color: #938c85;
  font-size: 13px;
}

/* Price chips */
.gx-filters__price-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gx-filters__price-chip {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #e2dad2;
  border-radius: 999px;
  background: #fff;
  color: #4a453f;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.gx-filters__price-chip:hover {
  border-color: #ae9069;
  color: #171513;
}

.gx-filters__price-chip.is-active {
  border-color: #ae9069;
  background: rgba(174, 144, 105, 0.14);
  color: #7a5f38;
  font-weight: 600;
}

/* Nested category tree */
.gx-filters__tree {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gx-filters__tree--child {
  margin: 4px 0 8px 12px;
  padding-left: 10px;
  border-left: 1px solid #ebe4dc;
}

.gx-filters__node {
  margin: 0;
}

.gx-filters__row {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
}

.gx-filters__toggle-cat {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: #171513;
}

.gx-filters__toggle-cat:hover .gx-filters__name,
.gx-filters__leaf:hover .gx-filters__name,
.gx-filters__go:hover {
  color: #96764f;
}

.gx-filters__chevron {
  flex: 0 0 auto;
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  color: #938c85;
  transform: rotate(-90deg);
  transition: transform 0.18s ease, color 0.18s ease;
}

.gx-filters__node.is-open > .gx-filters__row .gx-filters__chevron {
  transform: rotate(0deg);
  color: #ae9069;
}

.gx-filters__leaf {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px 6px 24px;
  text-decoration: none;
  color: #171513;
  font-size: 14px;
}

.gx-filters__leaf.is-current .gx-filters__name,
.gx-filters__node.is-active > .gx-filters__row .gx-filters__name {
  color: #7a5f38;
  font-weight: 600;
}

.gx-filters__go {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #938c85;
  text-decoration: none;
}

.gx-filters__go:hover,
.gx-filters__go.is-current {
  color: #ae9069;
  background: rgba(174, 144, 105, 0.12);
}

.gx-filters__children {
  margin: 0;
}

.gx-filters__children[hidden] {
  display: none;
}

.gx-filters__tree .gx-filters__name {
  font-size: 14px;
  line-height: 1.3;
}

.gx-filters__tree .gx-filters__count {
  margin-left: auto;
  font-size: 12.5px;
}

.gx-shop-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.gx-shop-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(174, 144, 105, 0.5);
  border-radius: 999px;
  background: rgba(174, 144, 105, 0.12);
  color: #7a5f38;
  font-size: 13px;
  text-decoration: none;
}

.gx-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.gx-product-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.gx-product-card {
  background: #fff;
  border: 1px solid #e2dad2;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s, border-color 0.2s;
}

.gx-product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(174, 144, 105, 0.55);
  box-shadow: 0 8px 30px rgba(20, 15, 10, 0.08);
}

.gx-product-card__media {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: #fbf8f4;
}

.gx-product-card__media a {
  display: block;
  position: absolute;
  inset: 0;
}

.gx-product-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Same media height as other cards; full voucher visible via letterbox */
.gx-product-card--voucher .gx-product-card__media {
  background: #fff;
}

.gx-product-card--voucher .gx-product-card__media img {
  object-fit: contain;
  object-position: center;
}

.gx-product-card__ph {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #938c85;
  font-size: 13px;
}

.gx-product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(26, 42, 54, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(26, 42, 54, 0.08);
}

.gx-product-card__wish {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(4px);
  color: #4c3222;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(15, 14, 13, 0.08);
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.gx-product-card__wish:hover {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 8px rgba(15, 14, 13, 0.12);
}

.gx-product-card__wish.is-active {
  color: var(--logo-blue, #b1d0e6);
  background: rgba(177, 208, 230, 0.3);
  box-shadow: 0 2px 10px rgba(127, 169, 196, 0.3);
}

.gx-product-card__wish.is-active:hover {
  color: var(--logo-blue-deep, #7fa9c4);
  box-shadow: 0 3px 12px rgba(127, 169, 196, 0.36);
}

.gx-product-card__brand {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #938c85;
  min-height: 1.2em;
  line-height: 1.2;
}

.gx-product-card__brand--empty {
  visibility: hidden;
}

.gx-product-card__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: #171513;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(15px * 1.35 * 2);
  margin: 0;
}

.gx-product-card__title a {
  color: inherit;
  text-decoration: none;
}

.gx-product-card__meta {
  font-size: 13px;
  line-height: 1.4;
  color: #625d58;
  margin-top: -4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(13px * 1.4 * 2);
}

.gx-product-card__meta--empty {
  visibility: hidden;
}

.gx-product-card__stock {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #625d58;
}

.gx-product-card__stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4f8a5b;
  flex-shrink: 0;
}

.gx-product-card__stock-dot.is-out {
  background: #a8998a;
}

.gx-product-card__foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-top: auto;
}

.gx-product-card__cta {
  width: 100%;
  height: 42px;
  padding: 0 14px;
}

.gx-product-card__price {
  font-size: 19px;
  font-weight: 600;
  color: #171513;
  line-height: 1.2;
}

.gx-product-card__price.is-sale,
.gx-product-card__price.is-sale .amount {
  color: #7a2e2a;
}

.gx-product-card__price del {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #938c85;
}

.gx-product-card__tax {
  font-size: 11.5px;
  color: #938c85;
  margin-top: 2px;
}

.gx-shop-more {
  margin-top: 48px;
  text-align: center;
}

.gx-shop-more p {
  color: #625d58;
  margin: 0 0 14px;
}

.gx-shop-more__sentinel {
  width: 100%;
  height: 1px;
  margin-top: 8px;
}

.gx-shop-more__status {
  font-size: 13.5px;
  color: #938c85;
}

.gx-shop-more__fallback {
  margin-top: 8px;
}

.gx-shop-more__fallback[hidden] {
  display: none !important;
}

.gx-shop-more.is-loading .gx-shop-more__status {
  display: block;
}

.gx-btn--outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  border: 1.5px solid #ae9069;
  border-radius: 8px;
  background: transparent;
  color: #7a5f38;
  font-weight: 600;
  text-decoration: none;
}

.gx-shop-empty {
  background: #fff;
  border: 1px solid #e2dad2;
  border-radius: 16px;
  padding: 56px 32px;
  text-align: center;
}

.gx-shop-empty h2 {
  font-family: var(--font-display);
  font-size: 28px;
  margin: 0 0 10px;
}

.gx-shop-empty p {
  color: #625d58;
  margin: 0 0 22px;
}

@media (max-width: 1199px) {
  .gx-product-grid,
  .gx-product-grid--4 {
    grid-template-columns: repeat(3, 1fr);
  }

  .gx-shop-layout {
    grid-template-columns: 1fr;
  }

  .gx-shop-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    display: none;
  }

  .gx-shop-sidebar.is-open {
    display: block;
  }

  .gx-shop-filter-toggle {
    display: inline-flex;
  }
}

@media (max-width: 767px) {
  .gx-shop-hero__inner {
    padding: 150px 0 36px;
  }

  .gx-shop-hero__bg img {
    object-position: 72% center;
  }

  .gx-product-grid,
  .gx-product-grid--4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .gx-shop-sort__label {
    width: 100%;
  }
}
