.troeon-shop-archive {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

@media (max-width: 992px) {
  .troeon-shop-archive {
    grid-template-columns: 1fr;
  }
}

.troeon-shop-archive__filters {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding-right: 8px;
  z-index: 2;
}

@media (max-width: 992px) {
  .troeon-shop-archive__filters {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

.troeon-shop-archive__filters .widget + .widget {
  margin-top: 18px;
}

.troeon-shop-archive__filters .widget-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.troeon-shop-archive__filters .widget-title::after {
  content: "";
  width: 12px;
  height: 12px;
  color: rgba(0, 0, 0, 0.55);
  background:
    linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat;
  transition: opacity 160ms ease;
  flex-shrink: 0;
}

.troeon-shop-archive__filters .widget[data-troeon-collapsed="0"] .widget-title::after {
  /* Expanded state: minus */
  background: linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat;
}

.troeon-shop-archive__filters .widget .troeon-filter-widget__body {
  margin-top: 10px;
}

.troeon-shop-archive__filters .widget[data-troeon-collapsed="1"] .troeon-filter-widget__body {
  display: none;
}

/* Prevent huge lists from forcing endless scrolling */
.troeon-shop-archive__filters .woocommerce-widget-layered-nav-list {
  max-height: 260px;
  overflow: auto;
  padding-right: 6px;
}

.troeon-shop-archive__filters .troeon-filter-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.troeon-shop-archive__filters .troeon-filter-actions a {
  font-size: 14px;
  text-decoration: underline;
}

/* Category dropdown */
.troeon-category-dropdown__select {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
}

/* Layered nav: Gender / Colour / Size — faux-checkbox links (real <a href>) */
.woocommerce-widget-layered-nav--attribute-checkboxes .woocommerce-widget-layered-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce-widget-layered-nav--attribute-checkboxes .woocommerce-widget-layered-nav-list > li {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  position: relative;
  z-index: 1;
}

.woocommerce-widget-layered-nav--attribute-checkboxes .woocommerce-widget-layered-nav-list > li:last-child {
  margin-bottom: 0;
}

.troeon-filter-checkbox-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  user-select: none;
  pointer-events: auto;
}

.troeon-filter-checkbox-link:hover,
.troeon-filter-checkbox-link:focus {
  color: inherit;
  text-decoration: none;
  outline: none;
}

.troeon-filter-checkbox-link:focus-visible .troeon-filter-checkbox-link__box {
  outline: 2px solid rgba(26, 107, 62, 0.85);
  outline-offset: 2px;
}

.troeon-filter-checkbox-link__box {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  box-sizing: border-box;
  border: 2px solid rgba(0, 0, 0, 0.35);
  border-radius: 3px;
  background: #fff;
  position: relative;
}

.troeon-filter-checkbox-link.is-selected .troeon-filter-checkbox-link__box {
  background: #1a6b3e;
  border-color: #1a6b3e;
}

.troeon-filter-checkbox-link.is-selected .troeon-filter-checkbox-link__box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 4px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.troeon-filter-checkbox-link__text {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.troeon-filter-checkbox-link__swatch {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.troeon-filter-checkbox-link .count,
.troeon-filter-checkbox-link.is-disabled .count {
  font-size: 0.92em;
  opacity: 0.82;
}

.troeon-filter-checkbox-link.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
}

/* Product card: only image, title, add-to-cart, favorite */
.troeon-product-card {
  display: grid;
  gap: 10px;
}

.troeon-product-card__media {
  position: relative;
}

.troeon-product-card__media a {
  display: block;
}

.troeon-product-card__media img {
  width: 100%;
  height: auto;
  display: block;
}

.troeon-product-card__fav {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

.troeon-product-card__title {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
}

.troeon-product-card__title a {
  text-decoration: none;
}

.troeon-product-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.troeon-product-card__actions .button {
  width: 100%;
}

