/* ==========================================================================
   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;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
.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: 760px;
  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: 16px 0;
}
.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; }
}

/* ==========================================================================
   BLOG — index grid + single post
   ========================================================================== */

/* ── Blog index ── */
.blog-wrap {
  padding: 48px 0 80px;
}

/* Zrušiť WP/WC zebra efekt — všetky možné selektory */
.blog-grid > div,
.blog-grid > article,
.blog-grid > div:nth-child(odd),
.blog-grid > div:nth-child(even),
.blog-grid > article:nth-child(odd),
.blog-grid > article:nth-child(even),
body .blog-grid .blog-card,
body .blog-card,
.blog-card:nth-child(odd),
.blog-card:nth-child(even) {
  background: #fff !important;
}

/* Kategórie filtre */
.blog-cats-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  padding-top: 4px;
}
.blog-cats-filter a {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--c-border);
  color: var(--c-graphite);
  text-decoration: none;
  transition: all 0.15s;
  background: #fff;
}
.blog-cats-filter a:hover,
.blog-cats-filter a.active {
  border-color: var(--c-lime);
  color: var(--c-lime-dark);
  background: #f4fce8;
}
.blog-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--c-border);
}
.blog-header .eyebrow {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-lime-dark);
  margin-bottom: 8px;
}
.blog-header-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--c-anthracite);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.blog-header-desc {
  margin-top: 8px;
  color: var(--c-graphite);
}

/* 3-stĺpcový grid, všetky karty rovnaké */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--c-border);
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.blog-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}



.blog-card-img-wrap {
  display: block;
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--c-bg-soft);
  flex-shrink: 0;
  width: 100%;
}
/* Featured: img-wrap ako flex child s fixnou šírkou */

.blog-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.blog-card:hover .blog-card-img { transform: scale(1.03); }
.blog-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-border);
}
.blog-card-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--c-lime);
  color: var(--c-anthracite);
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 1;
}
.blog-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-date {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-steel);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.blog-card-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--c-anthracite);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.blog-card-title a {
  color: inherit;
  text-decoration: none;
}
.blog-card-title a:hover { color: var(--c-lime-dark); }
.blog-card-excerpt {
  font-size: 14px;
  color: var(--c-graphite);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-read-more {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--c-anthracite);
  text-decoration: none;
  border-bottom: 1px solid var(--c-anthracite);
  padding-bottom: 1px;
  align-self: flex-start;
  transition: color 0.15s, border-color 0.15s;
}
.blog-read-more:hover {
  color: var(--c-lime-dark);
  border-color: var(--c-lime-dark);
}
.blog-empty {
  text-align: center;
  padding: 80px 0;
}
.blog-empty h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--c-anthracite);
  margin-bottom: 12px;
}

/* ── Single post ── */
.blog-single-wrap {
  padding: 16px 0 80px;
}
.blog-single-header {
  max-width: 100%;
  padding-top: 0;
}
.blog-single-header .blog-single-title {
  margin-top: 12px;
}
.blog-single-header {
  margin-bottom: 32px;
}
.blog-single-cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.blog-cat-tag {
  display: inline-block;
  background: var(--c-lime);
  color: var(--c-anthracite);
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  text-decoration: none;
}
.blog-single-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-anthracite);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.blog-single-meta {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--c-steel);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.blog-meta-sep { color: var(--c-border); }
.blog-single-hero {
  margin-bottom: 40px;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 16/7;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.blog-single-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-single-body {
  max-width: 100%;
}
.blog-single-body img {
  display: block;
  margin: 16px auto;
  max-width: 100%;
  border-radius: var(--r-xl);
}
.blog-single-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--c-border);
  max-width: 780px;
}
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.blog-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  padding: 4px 10px;
  border: 1px solid var(--c-border);
  border-radius: 20px;
  color: var(--c-graphite);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.blog-tag:hover {
  border-color: var(--c-lime);
  color: var(--c-lime-dark);
}
.blog-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--c-border);
}
.blog-post-nav-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  padding: 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.blog-post-nav-item:hover {
  border-color: var(--c-lime);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.blog-post-nav-item.next { text-align: right; }
.blog-post-nav-label {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-steel);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.blog-post-nav-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-anthracite);
  line-height: 1.3;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  
  
  
}
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-single-title { font-size: 28px; }
  .blog-post-nav { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-single-title { font-size: 24px; }
  .blog-single-wrap { padding: 24px 0 48px; }
}

/* ==========================================================================
   SERVICES PAGE (page-services.php)
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 80px;
}

.service-card {
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

.service-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--c-bg-soft);
}
.service-card-img figure,
.service-card-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

.service-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-card-body h2,
.service-card-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--c-anthracite);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  line-height: 1.25;
}
.service-card-body h2 a,
.service-card-body h3 a {
  color: var(--c-lime-dark) !important;
  text-decoration: none;
  border-bottom: none !important;
}
.service-card-body p {
  font-size: 14px;
  color: var(--c-graphite);
  line-height: 1.65;
  margin-bottom: 12px;
}
.service-card-body a:not(h2 a):not(h3 a) {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--c-anthracite);
  text-decoration: none;
  border-bottom: 1px solid var(--c-anthracite);
  padding-bottom: 1px;
  margin-top: auto;
  align-self: flex-start;
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ==========================================================================
   SERVICE DETAIL PAGE (page-service-detail.php)
   ========================================================================== */

.page-service-detail { padding-bottom: 80px; }

.service-detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
  padding-top: 0;
}

/* Nadpis cez plnú šírku nad gridom */
.service-detail-main .page-header-static {
  margin-bottom: 24px;
}



/* ── Pravý stĺpec ── */
.service-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 24px;
}

/* Licencia */
.sd-license-card {
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #fff;
}
.sd-license-img-link { display: block; }
.sd-license-img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.2s;
}
.sd-license-img-link:hover .sd-license-img { opacity: 0.9; }
.sd-license-info {
  padding: 14px 16px;
  border-top: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sd-license-label {
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-steel);
}
.sd-license-number {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-anthracite);
}

/* Kontakt */
.sd-contact-card {
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  background: #fff;
  padding: 20px;
}
.sd-contact-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-anthracite);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-border);
}
.sd-contact-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sd-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--c-graphite);
}
.sd-contact-list li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--c-lime-dark);
}
.sd-contact-list a {
  color: var(--c-anthracite);
  text-decoration: none;
  font-weight: 500;
}
.sd-contact-list a:hover { color: var(--c-lime-dark); }
.sd-contact-btn {
  display: block;
  text-align: center;
  padding: 11px 16px;
  border: 1.5px solid var(--c-lime);
  border-radius: var(--r-md);
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-lime-dark);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.sd-contact-btn:hover {
  background: var(--c-lime);
  color: var(--c-anthracite);
}

@media (max-width: 900px) {
  .service-detail-layout {
    grid-template-columns: 1fr;
  }
  .service-detail-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .sd-license-card { flex: 0 0 200px; }
  .sd-contact-card { flex: 1; min-width: 260px; }
}
@media (max-width: 600px) {
  .service-detail-sidebar { flex-direction: column; }
  .sd-license-card { flex: none; }
}

/* ==========================================================================
   CONTACT PAGE (page-contact.php)
   ========================================================================== */

.page-contact { padding-bottom: 80px; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  align-items: start;
  padding-top: 0;
}



/* ── Ľavý stĺpec ── */
.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: #fff;
}
.contact-info-item svg {
  flex-shrink: 0;
  color: var(--c-lime-dark);
  margin-top: 2px;
}
.contact-info-label {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-steel);
  margin-bottom: 3px;
}
.contact-info-value {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-anthracite);
  text-decoration: none;
}
.contact-info-value:hover { color: var(--c-lime-dark); }

.contact-page-prose { margin-bottom: 32px; }

/* Licencia v kontakt stránke — horizontálna */
.contact-license { margin-top: 24px; }
.contact-license-link {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border: none;
  background: transparent;
  text-decoration: none;
  transition: opacity 0.2s;
}
.contact-license-link:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.contact-license-img {
  width: 80px;
  height: auto;
  flex-shrink: 0;
  border-radius: var(--r-md);
}
.contact-license-caption {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ── Pravý stĺpec: formulár ── */
.contact-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-form-card {
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  background: #fff;
  padding: 32px;
}
.contact-form-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-anthracite);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.contact-form-desc {
  font-size: 13px;
  color: var(--c-steel);
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--c-border);
}

/* Polia */
.cf-row { display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px; }
.cf-row-2 { flex-direction: row; }
.cf-row-2 .cf-field { flex: 1; }
.cf-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; }
.cf-row .cf-field { margin-bottom: 0; }

.cf-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-anthracite);
  font-family: var(--f-sans);
}
.cf-field label span { color: var(--c-orange); }

.cf-field input,
.cf-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  font-family: var(--f-sans);
  font-size: 14px;
  color: var(--c-anthracite);
  background: #fff;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.cf-field input:focus,
.cf-field textarea:focus {
  outline: none;
  border-color: var(--c-lime);
}
.cf-field textarea { resize: vertical; }

.cf-gdpr {
  margin-bottom: 20px;
}
.cf-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--c-graphite);
  cursor: pointer;
  line-height: 1.5;
}
.cf-checkbox-label input { margin-top: 2px; flex-shrink: 0; }
.cf-checkbox-label a { color: var(--c-lime-dark); }

.cf-submit {
  width: 100%;
  padding: 14px 24px;
  background: var(--c-lime);
  color: var(--c-anthracite);
  border: none;
  border-radius: var(--r-md);
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s;
}
.cf-submit:hover { background: var(--c-lime-dark); color: #fff; }

.contact-success {
  padding: 16px 20px;
  background: #f0faf0;
  border: 1.5px solid var(--c-lime);
  border-radius: var(--r-md);
  color: #2d6a2d;
  font-weight: 500;
  font-size: 14px;
}
.contact-error {
  padding: 12px 16px;
  background: #fff5f5;
  border: 1.5px solid var(--c-orange);
  border-radius: var(--r-md);
  color: var(--c-orange);
  font-size: 13px;
  margin-bottom: 16px;
}

@media (max-width: 1024px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-form-wrap { position: static; }
  .contact-form-card { max-width: 600px; }
}
@media (max-width: 600px) {
  .contact-info-grid { grid-template-columns: 1fr; }
  .cf-row-2 { flex-direction: column; }
  .contact-form-card { padding: 20px; }
}

/* ── YouTube / video embed v článkoch ── */
.ipkt-video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--r-xl);
  margin: 28px 0;
  background: #000;
}
.ipkt-video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
  border: none;
}
