/* ==========================================================================
   Archive (shop, category, brand, search) and static page styles
   ========================================================================== */

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */

.breadcrumbs {
  padding: 16px 0;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--c-steel);
  border-bottom: 1px solid var(--c-border);
  background: #fff;
}
.breadcrumbs a {
  color: var(--c-graphite);
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--c-anthracite);
}
.breadcrumbs .sep {
  margin: 0 8px;
  color: var(--c-silver);
}
.breadcrumbs .breadcrumb-item {
  display: inline;
}

/* WooCommerce breadcrumb */
.woocommerce-breadcrumb {
  margin: 0;
  padding: 0;
  font-size: 12px;
}

/* ==========================================================================
   ARCHIVE HEADER
   ========================================================================== */

.archive-header {
  background: var(--c-bg-soft);
  padding: 32px 0;
  border-bottom: 1px solid var(--c-border);
}
.archive-eyebrow {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-lime-dark);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.archive-title {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--c-anthracite);
  margin-bottom: 8px;
  line-height: 1.15;
}
.archive-description {
  max-width: 720px;
  font-size: 15px;
  color: var(--c-graphite);
  line-height: 1.6;
}
.archive-description p { margin-bottom: 8px; }

/* ==========================================================================
   SHOP ROOT — categories grid
   ========================================================================== */

.shop-cats-section {
  padding: 40px 0 8px;
  background: #fff;
}
.shop-cats-section .section-head {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-border);
}

.shop-cats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1100px) {
  .shop-cats-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .shop-cats-grid { grid-template-columns: repeat(2, 1fr); }
}

.shop-cat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  text-decoration: none;
  transition: all 0.15s ease;
}
.shop-cat-card:hover {
  border-color: var(--c-anthracite);
  background: var(--c-bg-soft);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(42, 45, 52, 0.06);
}

.shop-cat-card-visual {
  width: 56px;
  height: 56px;
  background: var(--c-bg-cool);
  border-radius: var(--r-md);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--c-anthracite);
}
.shop-cat-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Eliminate white backgrounds on category photos. */
  mix-blend-mode: multiply;
}
.shop-cat-card-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.5;
}
.shop-cat-card:hover .shop-cat-card-icon svg {
  color: var(--c-lime-dark);
}

.shop-cat-card-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.shop-cat-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-anthracite);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shop-cat-card-count {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-steel);
}

/* ==========================================================================
   SUBCATS (existing - kept)
   ========================================================================== */

.archive-subcats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed var(--c-border-strong);
}
.archive-subcat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--c-anthracite);
  text-decoration: none;
  transition: all 0.15s ease;
}
.archive-subcat-pill:hover {
  border-color: var(--c-anthracite);
  background: var(--c-anthracite);
  color: #fff;
}
.archive-subcat-pill:hover .archive-subcat-count {
  background: rgba(157, 201, 60, 0.2);
  color: var(--c-lime);
}
.archive-subcat-count {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-steel);
  background: var(--c-bg-cool);
  padding: 1px 6px;
  border-radius: 8px;
  font-weight: 500;
}

/* ==========================================================================
   ARCHIVE LAYOUT
   ========================================================================== */

.archive-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 32px 0 64px;
  align-items: start;
}

/* SIDEBAR */
.archive-sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
}
.archive-sidebar-inner {
  position: relative;
}
/* Subtle scrollbar */
.archive-sidebar::-webkit-scrollbar { width: 6px; }
.archive-sidebar::-webkit-scrollbar-track { background: transparent; }
.archive-sidebar::-webkit-scrollbar-thumb {
  background: var(--c-border-strong);
  border-radius: 3px;
}

/* ============================================================
   NATIVE FILTERS SIDEBAR
   Custom WooCommerce filter sidebar (no plugin).
   Uses GET URL parameters: filter_<attr>=value1,value2
   ============================================================ */

/* CRITICAL reset — filter groups are <fieldset> and titles are <legend>.
   Browsers give these special default rendering (legend has its own
   padding-inline and is positioned "into" the fieldset border), which
   misaligns titles vs. checkboxes. Force them to behave as plain blocks. */
.ipkt-filters fieldset {
  border: 0 !important;
  border-bottom: 1px solid var(--c-border) !important;
  margin: 0 !important;
  padding: 0 20px 18px 20px !important;
  min-inline-size: 0 !important;
  display: block !important;
  background: #fff;
}
.ipkt-filters fieldset:last-of-type {
  border-bottom: 0 !important;
}
.ipkt-filters legend {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 8px 0 !important;
  padding: 20px 0 0 0 !important;
  border: 0 !important;
  float: none !important;
  position: static !important;
  white-space: normal !important;
  -webkit-padding-start: 0 !important;
  -webkit-padding-end: 0 !important;
  padding-inline-start: 0 !important;
  padding-inline-end: 0 !important;
}

.ipkt-filters {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 0;
  overflow: hidden;
}

/* Header */
.ipkt-filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--c-border);
}
.ipkt-filters-title {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-anthracite);
  margin: 0;
}
.ipkt-filters-reset {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--c-steel);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: var(--r-sm);
  transition: all 0.15s ease;
}
.ipkt-filters-reset:hover {
  color: var(--c-orange);
  background: rgba(232, 93, 44, 0.06);
}

/* Active filter chips */
.ipkt-filters-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg-soft);
}
.ipkt-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 10px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  color: var(--c-anthracite);
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.ipkt-chip svg {
  flex-shrink: 0;
  color: var(--c-steel);
}
.ipkt-chip:hover {
  background: var(--c-anthracite);
  border-color: var(--c-anthracite);
  color: #fff;
}
.ipkt-chip:hover svg { color: #fff; }

/* Filter group (one attribute set) */
.ipkt-filter-group {
  border: none;
  margin: 0;
  padding: 14px 20px;
  border-bottom: 1px solid var(--c-border);
}
.ipkt-filter-group:last-of-type {
  border-bottom: none;
}
.ipkt-filter-group-title {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-steel);
  margin: 0 0 8px 0;
  padding: 0;
  display: block;
  width: 100%;
}

/* Terms list */
.ipkt-filter-terms {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

/* Custom checkbox */
.ipkt-filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  margin: 0;
  border-radius: var(--r-sm);
  cursor: pointer;
  position: relative;
  user-select: none;
  font-size: 13px;
  color: var(--c-graphite);
  transition: all 0.12s ease;
}
.ipkt-filter-check:hover {
  color: var(--c-anthracite);
  background: transparent;
}
.ipkt-filter-check:hover .ipkt-filter-check-label {
  color: var(--c-anthracite);
}
.ipkt-filter-check[hidden] { display: none; }
.ipkt-filter-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Custom checkbox box */
.ipkt-filter-check-box {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--c-border);
  border-radius: 4px;
  flex-shrink: 0;
  background: #fff;
  position: relative;
  transition: all 0.15s ease;
}
.ipkt-filter-check input:checked ~ .ipkt-filter-check-box {
  background: var(--c-lime);
  border-color: var(--c-lime);
}
.ipkt-filter-check input:checked ~ .ipkt-filter-check-box::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 9px;
  border: solid var(--c-anthracite);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.ipkt-filter-check input:focus-visible ~ .ipkt-filter-check-box {
  outline: 2px solid var(--c-lime-dark);
  outline-offset: 2px;
}

.ipkt-filter-check-label {
  flex: 1;
  line-height: 1.3;
}
.ipkt-filter-check-count {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-silver);
  font-weight: 400;
  padding-left: 8px;
  flex-shrink: 0;
}

/* Toggle "show more" button */
.ipkt-filter-toggle {
  background: none;
  border: none;
  padding: 8px 0 0 0;
  margin: 0;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--c-lime-dark);
  cursor: pointer;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ipkt-filter-toggle:hover { color: var(--c-anthracite); }

/* Price filter */
.ipkt-price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ipkt-price-inputs input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--c-anthracite);
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease;
  /* Hide number input arrows */
  -moz-appearance: textfield;
}
.ipkt-price-inputs input::-webkit-outer-spin-button,
.ipkt-price-inputs input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.ipkt-price-inputs input:focus {
  border-color: var(--c-anthracite);
}
.ipkt-price-sep {
  color: var(--c-silver);
  font-family: var(--f-mono);
  font-size: 14px;
}

/* Stock filter — emphasize label, no special background */
.ipkt-filter-stock .ipkt-filter-check-label {
  font-weight: 600;
  color: var(--c-anthracite);
}

/* No-JS fallback submit button */
.ipkt-filters-submit {
  padding: 14px 16px;
  border-top: 1px solid var(--c-border);
}
.ipkt-filters-submit .btn-primary {
  width: 100%;
  background: var(--c-anthracite);
  color: #fff;
  border: none;
  padding: 11px 16px;
  border-radius: var(--r-md);
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
}

/* MAIN */
.archive-main { min-width: 0; }

.archive-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  margin-bottom: 20px;
  gap: 16px;
}
.archive-result-count,
.woocommerce-result-count {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--c-steel);
  margin: 0;
}
.archive-sorting select,
.woocommerce-ordering select {
  font-family: var(--f-sans);
  font-size: 13px;
  padding: 8px 28px 8px 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--c-anthracite);
  cursor: pointer;
}

/* Grid */
.products,
ul.products {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0;
  margin: 0;
  width: 100%;
}
/* Kill WooCommerce default ::before/::after pseudoelements that
   are added for clearfix — they appear as phantom grid items and
   push the first product out of column 1. */
.products::before,
.products::after,
ul.products::before,
ul.products::after {
  content: none !important;
  display: none !important;
}
/* Each product wrapped in <li.product-li> by content-product.php */
.products > li,
ul.products > li,
.products > .product-li,
ul.products > .product-li {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
  min-width: 0;
}
.products > li > .prod-card,
ul.products > li > .prod-card,
.products > .product-li > .prod-card,
.products > .prod-card,
ul.products > .prod-card {
  width: 100%;
  height: 100%;
}

/* PAGINATION */
.archive-pagination {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--c-border);
}
/* The <ul.page-numbers> wrapper — center, no list bullets */
.archive-pagination ul.page-numbers,
.archive-pagination > ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.archive-pagination ul.page-numbers li,
.archive-pagination > ul li {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
}
/* Each individual page link/span */
.archive-pagination a.page-numbers,
.archive-pagination span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-graphite);
  text-decoration: none;
  background: #fff;
  transition: all 0.15s ease;
  box-sizing: border-box;
}
.archive-pagination a.page-numbers:hover {
  border-color: var(--c-anthracite);
  color: var(--c-anthracite);
  background: var(--c-bg-soft);
}
.archive-pagination span.page-numbers.current,
.archive-pagination .page-numbers.current {
  background: var(--c-anthracite);
  color: #fff;
  border-color: var(--c-anthracite);
}
.archive-pagination .page-numbers.dots {
  border: none;
  background: transparent;
  color: var(--c-steel);
}
.archive-pagination a.prev,
.archive-pagination a.next {
  padding: 0 18px;
  font-weight: 500;
}

.archive-empty {
  text-align: center;
  padding: 64px 24px;
  background: var(--c-bg-soft);
  border-radius: var(--r-lg);
}

/* ============================================================
   FILTER LOADING OVERLAY (shown when HUSKY is processing)
   ============================================================ */
.archive-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  z-index: 10;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--c-anthracite);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--r-lg);
  backdrop-filter: blur(2px);
}
.archive-loading-overlay.is-active {
  display: flex;
}
.archive-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--c-border);
  border-top-color: var(--c-lime);
  border-radius: 50%;
  animation: ipkt-spin 0.7s linear infinite;
}
@keyframes ipkt-spin {
  to { transform: rotate(360deg); }
}
.archive-empty h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--c-anthracite);
  margin-bottom: 12px;
}
.archive-empty a {
  color: var(--c-anthracite);
  border-bottom: 1px solid var(--c-anthracite);
  font-weight: 500;
}

/* ==========================================================================
   STATIC PAGE TEMPLATE
   ========================================================================== */

.page-template-default {
  padding-bottom: 64px;
}
.page-header-static {
  padding: 32px 0 20px;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 32px;
}
.page-title-static {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--c-anthracite);
  line-height: 1.15;
}

/* Prose — generic content styling for pages and blog posts */
.page-prose {
  max-width: none;
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-ink);
}
.page-prose h2 {
  font-size: 26px;
  font-weight: 600;
  color: var(--c-anthracite);
  margin: 32px 0 12px;
  letter-spacing: -0.02em;
}
.page-prose h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--c-anthracite);
  margin: 24px 0 8px;
}
.page-prose h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-anthracite);
  margin: 20px 0 6px;
}
.page-prose p { margin-bottom: 16px; }
.page-prose a {
  color: var(--c-lime-dark);
  border-bottom: 1px solid var(--c-lime);
  text-decoration: none;
}
.page-prose a:hover {
  background: var(--c-lime-soft);
}
.page-prose ul,
.page-prose ol {
  margin: 12px 0 20px 24px;
}
.page-prose li {
  margin-bottom: 6px;
}
.page-prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-md);
  margin: 24px auto;
  display: block;
}

.page-prose figure,
.page-prose .wp-block-image {
  margin: 24px auto;
  text-align: center;
}

.page-prose figure img,
.page-prose .wp-block-image img {
  margin: 0 auto;
}

.page-prose figcaption,
.page-prose .wp-element-caption {
  font-size: 13px;
  color: var(--c-steel);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}
.page-prose blockquote {
  border-left: 3px solid var(--c-lime);
  padding: 8px 16px;
  margin: 24px 0;
  background: var(--c-bg-soft);
  font-style: italic;
  color: var(--c-graphite);
}
.page-prose code {
  background: var(--c-bg-cool);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
}
.page-prose pre {
  background: var(--c-anthracite);
  color: #fff;
  padding: 16px;
  border-radius: var(--r-md);
  overflow-x: auto;
  margin: 16px 0;
}
.page-prose pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}
.page-prose hr {
  border: 0;
  height: 1px;
  background: var(--c-border);
  margin: 32px 0;
}
.page-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
.page-prose th,
.page-prose td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--c-border);
}
.page-prose th {
  font-weight: 600;
  background: var(--c-bg-soft);
  color: var(--c-anthracite);
}

/* ==========================================================================
   SEARCH RESULTS
   ========================================================================== */

.search-hero {
  background: var(--c-anthracite);
  color: #fff;
  padding: 48px 0 56px;
}
.search-hero-eyebrow {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-lime);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.search-hero-title {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.search-hero-title em {
  font-style: normal;
  color: var(--c-lime);
}
.search-hero-count {
  font-family: var(--f-mono);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}
.search-hero-form {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 6px;
  display: flex;
  gap: 4px;
  max-width: 640px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}
.search-hero-form input {
  flex: 1;
  border: none;
  padding: 14px 16px;
  font-family: var(--f-sans);
  font-size: 15px;
  color: var(--c-ink);
  outline: none;
}
.search-hero-form button {
  background: var(--c-lime);
  color: var(--c-anthracite);
  border: none;
  padding: 0 24px;
  border-radius: var(--r-md);
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.search-hero-form button:hover {
  background: var(--c-lime-light);
}

.search-results-page > .container { padding-top: 32px; padding-bottom: 64px; }

.search-section {
  margin-bottom: 48px;
}
.search-section-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--c-anthracite);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-section-count {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--c-steel);
  background: var(--c-bg-cool);
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 500;
}

.search-text-results {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.search-text-item {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 20px;
  transition: border-color 0.15s ease;
}
.search-text-item:hover {
  border-color: var(--c-anthracite);
}
.search-text-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}
.search-text-item h3 a {
  color: var(--c-anthracite);
  text-decoration: none;
}
.search-text-item h3 a:hover {
  color: var(--c-lime-dark);
}
.search-text-meta {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-steel);
  margin-bottom: 8px;
}
.search-text-excerpt {
  font-size: 14px;
  color: var(--c-graphite);
  line-height: 1.6;
}

.search-empty {
  text-align: center;
  padding: 80px 24px;
}
.search-empty h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--c-anthracite);
  margin-bottom: 16px;
}
.search-empty h2 em {
  font-style: normal;
  color: var(--c-lime-dark);
}
.search-empty p {
  color: var(--c-graphite);
  margin-bottom: 12px;
}
.search-empty ul {
  list-style: none;
  padding: 0;
  margin: 16px auto;
  max-width: 480px;
}
.search-empty li {
  padding: 8px 0;
  color: var(--c-graphite);
  font-size: 14px;
  border-bottom: 1px solid var(--c-border);
}
.search-empty code {
  background: var(--c-bg-cool);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: var(--f-mono);
  font-size: 12px;
}
.search-empty-cta {
  margin-top: 24px;
}
.search-empty-cta a {
  color: var(--c-anthracite);
  border-bottom: 1px solid var(--c-anthracite);
  font-weight: 500;
}

/* ==========================================================================
   404 PAGE
   ========================================================================== */

.error-404-page {
  padding: 64px 0 96px;
}
.error-404-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.error-404-code {
  font-family: var(--f-mono);
  font-size: 96px;
  font-weight: 600;
  color: var(--c-lime);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 16px;
}
.error-404-title {
  font-size: 36px;
  font-weight: 600;
  color: var(--c-anthracite);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.error-404-lead {
  font-size: 16px;
  color: var(--c-graphite);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.error-404-page .search-hero-form {
  margin: 0 auto 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--c-border);
}
.error-404-suggestions h3,
.error-404-cats h3 {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--c-steel);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.error-404-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.error-404-cats {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--c-border);
}
.error-404-cats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.error-404-cat-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  color: var(--c-anthracite);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
}
.error-404-cat-link:hover {
  border-color: var(--c-anthracite);
  background: var(--c-anthracite);
  color: var(--c-lime);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 980px) {
  .archive-layout { grid-template-columns: 1fr; }
  .archive-sidebar-inner { position: relative; top: auto; max-height: none; }
  .products,
  ul.products { grid-template-columns: repeat(2, 1fr); }
  .archive-title { font-size: 28px; }
  .search-hero-title { font-size: 28px; }
  .error-404-code { font-size: 72px; }
  .error-404-title { font-size: 28px; }
  .error-404-cats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .archive-toolbar { flex-direction: column; align-items: stretch; gap: 8px; }
  .products,
  ul.products { grid-template-columns: 1fr; }
  .error-404-cats-grid { grid-template-columns: 1fr; }
}
