.tsh-shop-archive {
  background: #f5f8fb;
  padding: 34px 0 72px;
}

.tsh-breadcrumbs {
  margin-bottom: 18px;
  color: var(--tsh-muted);
  font-size: 14px;
  font-weight: 700;
}

.tsh-breadcrumbs a { color: var(--tsh-navy); }

.tsh-archive-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 4vw, 52px);
  background: linear-gradient(135deg, var(--tsh-navy), #0d345e);
  color: #fff;
  border-radius: 18px;
  box-shadow: var(--tsh-shadow);
}

.tsh-archive-hero h1 {
  margin: 0 0 12px;
  max-width: 820px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.02;
}

.tsh-archive-hero p {
  margin: 0;
  max-width: 720px;
  color: rgba(255,255,255,.84);
  font-size: 18px;
}

.tsh-archive-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,.16);
}

.tsh-archive-search input {
  min-width: 0;
  flex: 1 1 auto;
  border: 1px solid var(--tsh-line);
  border-radius: 8px;
  padding: 0 14px;
  min-height: 46px;
  font: inherit;
}

.tsh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-weight: 850;
  cursor: pointer;
  text-align: center;
}

.tsh-button--primary {
  background: var(--tsh-orange);
  color: #fff;
}

.tsh-button--primary:hover { color: #fff; background: var(--tsh-orange-dark); }

.tsh-button--secondary {
  background: var(--tsh-navy);
  color: #fff;
}

.tsh-button--secondary:hover { color: #fff; background: var(--tsh-navy-2); }

.tsh-button--ghost {
  background: #fff;
  border-color: var(--tsh-line);
  color: var(--tsh-ink);
}

.tsh-archive-categories {
  margin: 32px 0;
}

.tsh-archive-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.tsh-archive-section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
}

.tsh-archive-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 14px;
}

.tsh-archive-category-card {
  display: grid;
  gap: 10px;
  min-height: 180px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--tsh-line);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(10,31,58,.06);
}

.tsh-archive-category-card__image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 82px;
  background: #f8fafc;
  border-radius: 10px;
}

.tsh-archive-category-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tsh-archive-category-card__fallback {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #e8f0f8;
  color: var(--tsh-navy);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .03em;
}

.tsh-archive-category-card strong {
  font-size: 16px;
  line-height: 1.15;
}

.tsh-archive-category-card span:last-child {
  color: var(--tsh-muted);
  font-size: 13px;
  font-weight: 750;
}

.tsh-mobile-filter-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.tsh-archive-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.tsh-product-filters {
  position: sticky;
  top: 18px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--tsh-line);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(10,31,58,.05);
}

.tsh-filter-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.tsh-filter-panel-heading h2 {
  margin: 0;
  font-size: 20px;
}

.tsh-filter-close { display: none; }

.tsh-filter-field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  font-weight: 800;
  color: var(--tsh-ink);
}

.tsh-filter-field span {
  font-size: 13px;
  color: var(--tsh-muted);
}

.tsh-filter-field select,
.tsh-filter-field input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--tsh-line);
  border-radius: 8px;
  padding: 0 10px;
  font: inherit;
}

.tsh-filter-prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tsh-filter-actions {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.tsh-filter-backdrop { display: none; }

.tsh-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -8px 0 20px;
}

.tsh-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: #fff;
  border: 1px solid var(--tsh-line);
  border-radius: 999px;
  color: var(--tsh-ink);
  font-size: 13px;
  font-weight: 800;
}

.tsh-archive-results {
  min-width: 0;
}

.tsh-results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--tsh-line);
  border-radius: 14px;
}

.tsh-results-toolbar p { margin: 0; font-weight: 850; }

.tsh-sort-form label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--tsh-muted);
  font-size: 14px;
  font-weight: 800;
}

.tsh-sort-form select {
  min-height: 40px;
  border: 1px solid var(--tsh-line);
  border-radius: 8px;
  padding: 0 10px;
  font: inherit;
  color: var(--tsh-ink);
}

.tsh-archive-results .products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  justify-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.woocommerce .tsh-shop-archive .tsh-archive-results ul.products::before,
body.woocommerce .tsh-shop-archive .tsh-archive-results ul.products::after,
body.woocommerce-page .tsh-shop-archive .tsh-archive-results ul.products::before,
body.woocommerce-page .tsh-shop-archive .tsh-archive-results ul.products::after {
  content: none !important;
  display: none !important;
}

.tsh-shop-archive .tsh-archive-results ul.products > li.product,
body.woocommerce .tsh-shop-archive .tsh-archive-results ul.products > li.product,
body.woocommerce-page .tsh-shop-archive .tsh-archive-results ul.products > li.product {
  float: none !important;
  clear: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  box-sizing: border-box;
  justify-self: stretch;
  grid-column: auto !important;
  grid-row: auto !important;
  order: initial !important;
}

.tsh-archive-product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--tsh-line);
  border-radius: 16px;
  box-shadow: 0 9px 24px rgba(10,31,58,.06);
}

.tsh-archive-product-card__image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 20px;
  background: #f8fafc;
}

.tsh-archive-product-card__image img {
  width: 100%;
  height: 180px;
  object-fit: contain;
}

.tsh-condition-pill {
  position: absolute;
  left: 14px;
  top: 14px;
  max-width: calc(100% - 28px);
  padding: 5px 9px;
  background: var(--tsh-navy);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.tsh-archive-product-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 18px;
}

.tsh-archive-product-card h2 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.22;
}

.tsh-archive-product-card h2 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.tsh-card-meta {
  display: grid;
  gap: 7px;
  margin: 0 0 14px;
}

.tsh-card-meta div {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 8px;
}

.tsh-card-meta dt {
  color: var(--tsh-muted);
  font-size: 12px;
  font-weight: 850;
}

.tsh-card-meta dd {
  min-width: 0;
  margin: 0;
  font-size: 13px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.tsh-card-price {
  margin-top: auto;
  color: var(--tsh-ink);
  font-size: 20px;
  font-weight: 900;
}

.tsh-card-stock {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 850;
}

.tsh-card-stock.is-in-stock { color: #09733f; }
.tsh-card-stock.is-out-of-stock { color: #9b1c1c; }

.tsh-card-return {
  margin: 6px 0 14px;
  color: var(--tsh-muted);
  font-size: 13px;
  font-weight: 800;
}

.tsh-card-actions {
  display: grid;
  gap: 9px;
}

.tsh-card-actions .button,
.tsh-card-actions .added_to_cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  background: var(--tsh-orange);
  color: #fff;
  border-radius: 8px;
  font-weight: 850;
}

.tsh-request-link {
  color: var(--tsh-navy);
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.tsh-request-part-panel,
.tsh-empty-results {
  margin-top: 22px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--tsh-line);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(10,31,58,.05);
}

.tsh-request-part-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.tsh-empty-results--search {
  margin-top: 22px;
}

.tsh-request-part-panel h2,
.tsh-empty-results h2 {
  margin: 0 0 6px;
}

.tsh-request-part-panel p,
.tsh-empty-results p {
  margin: 0;
  color: var(--tsh-muted);
}

.tsh-request-part-panel__actions,
.tsh-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.woocommerce-pagination {
  margin-top: 24px;
}

.woocommerce-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce-pagination a,
.woocommerce-pagination span {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--tsh-line);
  border-radius: 8px;
  font-weight: 850;
}

.woocommerce-pagination .current {
  background: var(--tsh-navy);
  color: #fff;
}

@media (max-width: 1180px) {
  .tsh-archive-layout {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 18px;
  }

  .tsh-archive-results .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.woocommerce .tsh-shop-archive .tsh-archive-results ul.products,
  body.woocommerce-page .tsh-shop-archive .tsh-archive-results ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .tsh-shop-archive {
    padding-top: 24px;
  }

  .tsh-archive-hero {
    grid-template-columns: 1fr;
  }

  .tsh-archive-search {
    flex-direction: column;
  }

  .tsh-mobile-filter-bar {
    display: flex;
  }

  .tsh-results-toolbar .tsh-sort-form {
    display: none;
  }

  .tsh-archive-layout {
    display: block;
  }

  .tsh-product-filters {
    position: fixed;
    z-index: 1001;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(88vw, 380px);
    overflow-y: auto;
    border-radius: 0;
    transform: translateX(105%);
    transition: transform .2s ease;
  }

  body.tsh-filter-open .tsh-product-filters {
    transform: translateX(0);
  }

  .tsh-filter-close {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--tsh-line);
    border-radius: 999px;
    background: #fff;
    color: var(--tsh-ink);
    font-size: 24px;
    cursor: pointer;
  }

  .tsh-filter-backdrop {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: rgba(7,31,58,.45);
  }

  body.tsh-filter-open .tsh-filter-backdrop {
    display: block;
  }
}

@media (max-width: 640px) {
  .tsh-wrap {
    width: min(100% - 32px, 1280px);
  }

  .tsh-archive-hero {
    padding: 24px;
  }

  .tsh-archive-hero h1 {
    font-size: 34px;
  }

  .tsh-archive-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tsh-archive-results .products {
    grid-template-columns: 1fr;
  }

  body.woocommerce .tsh-shop-archive .tsh-archive-results ul.products,
  body.woocommerce-page .tsh-shop-archive .tsh-archive-results ul.products {
    grid-template-columns: 1fr;
  }

  .tsh-results-toolbar,
  .tsh-mobile-filter-bar,
  .tsh-request-part-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .tsh-sort-form label {
    align-items: stretch;
    flex-direction: column;
  }

  .tsh-request-part-panel__actions,
  .tsh-empty-actions {
    flex-direction: column;
  }

  .tsh-button {
    width: 100%;
  }
}
