/*
 * LUBO.pl — Katalog produktów (archiwum WooCommerce)
 * Ładowany na: is_shop(), is_product_category(), is_product_tag()
 * Zależy od: main.css, product-card.css
 */

/* ==================== WRAPPER STRONY ==================== */
.lubo-shop-page { padding-bottom: 64px; }

/* ==================== NAGŁÓWEK KATEGORII ==================== */
.cat-archive-header { padding: 28px 0 20px; }
.cat-archive-header h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--ink);
}
.cat-archive-header .desc {
  font-size: 14px;
  color: var(--ink-3);
  margin: 0;
  max-width: 640px;
  line-height: 1.6;
}

/* ==================== LAYOUT KATALOGU ==================== */
.shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  padding-top: 4px;
  padding-bottom: 56px;
  align-items: start;
}

/* ==================== SIDEBAR — CIEMNY ==================== */
.shop-sidebar {
  position: sticky;
  top: 64px;
  align-self: start;
  background: #0f1829;
  border-radius: 10px;
  padding: 6px 0 12px;
  overflow: hidden;
}

.filter-reset {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  padding: 10px 16px 8px;
  transition: color 0.12s;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.filter-reset:hover { color: var(--orange); }

.filter-group {
  border-top: 1px solid rgba(255,255,255,0.07);
  background: transparent;
  margin: 0;
  overflow: hidden;
}
.filter-group:first-child { border-top: none; }
.filter-group.is-active .filter-group-head { color: var(--orange); }

.filter-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.45);
}

.filter-clear-one {
  font-size: 18px;
  font-weight: 300;
  color: rgba(255,255,255,0.3);
  line-height: 1;
  text-decoration: none;
  padding: 0 2px;
}
.filter-clear-one:hover { color: var(--orange); }

.filter-group-body {
  padding: 2px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

/* Opcje filtra */
.filter-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.1s, color 0.1s;
}
.filter-opt:hover {
  background: rgba(255,255,255,0.07);
  color: #fff;
}
.filter-opt.active {
  color: var(--orange);
  background: rgba(232,93,31,0.12);
  font-weight: 600;
}

/* ==================== TOOLBARA ==================== */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}
.shop-count { font-size: 13px; color: var(--ink-4); }
.shop-count strong { color: var(--ink); }
.shop-sort { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.shop-sort select {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 6px 10px;
  font-size: 13px;
  color: var(--ink);
  background: #fff;
  outline: none;
}
.shop-sort select:focus { border-color: var(--steel); }

/* ==================== BREADCRUMBS ==================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-4);
  padding: 16px 0;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb .sep { color: var(--ink-4); }
.breadcrumb .current { color: var(--ink); font-weight: 500; }

/* ==================== PAGINACJA ==================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}
.pagination a,
.pagination .current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 13px;
  color: var(--ink-2);
  font-family: "IBM Plex Mono", monospace;
}
.pagination a:hover { border-color: var(--orange); color: var(--orange); }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .dots { color: var(--ink-4); padding: 0 4px; }

/* ==================== AKTYWNE FILTRY (pigułki) ==================== */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}
.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(232,93,31,0.08);
  border: 1px solid rgba(232,93,31,0.25);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--orange);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.12s;
}
.active-filter-tag:hover { background: rgba(232,93,31,0.15); }
.active-filter-tag .rm { font-size: 14px; font-weight: 400; opacity: 0.7; }
.active-filter-clear {
  font-size: 12px;
  color: var(--ink-4);
  text-decoration: none;
  margin-left: 4px;
}
.active-filter-clear:hover { color: var(--orange); }

/* ==================== PUSTA SIATKA ==================== */
.no-products {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 0;
  color: var(--ink-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.no-products p { font-size: 15px; margin: 0; color: var(--ink-3); }

/* ==================== WC OVERRIDES ==================== */
.woocommerce-result-count { font-size: 13px; color: var(--ink-4); margin: 0; }
.woocommerce-result-count strong { color: var(--ink); font-weight: 600; }
.woocommerce-ordering { margin: 0; }
.woocommerce-ordering select {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 6px 10px;
  font-size: 13px;
  color: var(--ink);
  background: #fff;
  outline: none;
  font-family: inherit;
}
.woocommerce-ordering select:focus { border-color: var(--steel); }
nav.woocommerce-pagination ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
  list-style: none;
  padding: 0;
}
nav.woocommerce-pagination ul li a,
nav.woocommerce-pagination ul li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 13px;
  color: var(--ink-2);
  font-family: "IBM Plex Mono", monospace;
  text-decoration: none;
}
nav.woocommerce-pagination ul li a:hover { border-color: var(--orange); color: var(--orange); }
nav.woocommerce-pagination ul li span.current { background: var(--ink); color: #fff; border-color: var(--ink); }
