/* ==========================================================================
   Shop · category · warehouse archives.

   Card values are MEASURED from the source's rendered .factory-catalog-card
   (tools/measure.mjs + tools/probe-card.js at 1440), not read off app.css:

     card    bg #fffdf7 · 1px rgba(16,42,58,.12) · radius 18px · pad 16px
             shadow 0 14px 28px rgba(16,42,58,.07) · overflow hidden
     media   radius 28px · pad 16px · square · object-fit contain
     name    Inter 15.68px/19.6px w900 #142231 centred · min-height 30px
     badge   Inter 9.92px w900 #2e5354 uppercase · ls .2976px
             bg rgba(73,132,133,.1) · 1px rgba(73,132,133,.25) · radius 8px
     price   Inter 17.6px w700 #a76535 centred
     grid    5 across at 1440 (col-6 / col-md-3 / col-lg-20 → 2 / 4 / 5)
   ========================================================================== */

.wbs-shop { padding: clamp(24px, 4vw, 48px) 0 clamp(40px, 6vw, 72px); }

.wbs-shop__head { margin-bottom: 26px; }
.wbs-shop__title {
	font-family: var(--wbs-font-heading);
	font-weight: 800;
	font-size: clamp(1.8rem, 3vw, 2.6rem);
	line-height: 1.1;
	color: var(--wbs-ink-deep);
	margin: 0 0 10px;
}
.wbs-shop__lede { max-width: 68ch; color: var(--wbs-muted); }

/* --- per-warehouse shipping rates ---------------------------------------- */
.wbs-shiprates {
	display: grid; gap: 10px; list-style: none; margin: 18px 0 0; padding: 0;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.wbs-shiprate {
	display: grid; gap: 2px;
	padding: 12px 14px;
	background: var(--wbs-white);
	border: 1px solid var(--wbs-sage-cool);
	border-radius: var(--wbs-radius);
}
.wbs-shiprate__name { font-size: 14px; }
.wbs-shiprate__cost {
	font-family: var(--wbs-font-heading);
	font-weight: 700; font-size: 18px; color: var(--wbs-rust);
}
.wbs-shiprate__note { font-size: 12.5px; color: var(--wbs-muted); }

/* --- toolbar --------------------------------------------------------------- */
.wbs-shop__bar {
	display: flex; flex-wrap: wrap; gap: 14px;
	align-items: center; justify-content: space-between;
	padding-bottom: 14px; margin-bottom: 20px;
	border-bottom: 1px solid var(--wbs-sage-cool);
}
.wbs-shop__count { margin: 0; font-size: 14px; color: var(--wbs-muted); }
.woocommerce .wbs-shop__bar .woocommerce-ordering { margin: 0; float: none; }
.woocommerce .wbs-shop__bar select {
	padding: 9px 12px;
	border: 1px solid var(--wbs-sage-cool);
	border-radius: var(--wbs-radius-pill);
	background: var(--wbs-white);
	font-family: var(--wbs-font-body);
	font-size: 14px;
	color: var(--wbs-ink);
}

/* --- layout ---------------------------------------------------------------- */
.wbs-shop__layout {
	display: grid; gap: clamp(20px, 3vw, 36px);
	grid-template-columns: 232px minmax(0, 1fr);
	align-items: start;
}
@media (max-width: 900px) {
	.wbs-shop__layout { grid-template-columns: 1fr; }
	.wbs-shop__filters { order: 2; }
}

/* --- sidebar ---------------------------------------------------------------- */
.wbs-filter__group { margin-bottom: 22px; }
.wbs-filter__title {
	font-family: var(--wbs-font-heading);
	font-size: 12px; font-weight: 700;
	letter-spacing: .1em; text-transform: uppercase;
	color: var(--wbs-muted);
	margin: 0 0 8px;
}
.wbs-filter__list { list-style: none; margin: 0; padding: 0; }
.wbs-filter__link {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 8px 10px; border-radius: 8px;
	color: var(--wbs-ink); font-size: 14px;
}
.wbs-filter__link:hover { background: var(--wbs-mist); color: var(--wbs-ink); }
.wbs-filter__link.is-active {
	background: var(--wbs-teal); color: #fff; font-weight: 600;
}
.wbs-filter__count { font-size: 12px; opacity: .7; }
.wbs-filter__reset { font-size: 14px; font-weight: 600; border-bottom: 1px solid currentColor; }

/* --- the grid ----------------------------------------------------------------
   Woo emits <ul class="products"> with <li class="product">. base.css already
   kills the ::before/::after clearfix, which would otherwise become a real grid
   item and shunt every card one cell to the right. */
.woocommerce .wbs-shop__main ul.products {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.woocommerce .wbs-shop__main ul.products li.product {
	width: auto;
	float: none;
	margin: 0;
	padding: 0;
	clear: none;
}
@media (max-width: 1200px) { .woocommerce .wbs-shop__main ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px)  { .woocommerce .wbs-shop__main ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .woocommerce .wbs-shop__main ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

/* --- pagination ---------------------------------------------------------------- */
.woocommerce nav.woocommerce-pagination { margin-top: 28px; }
.woocommerce nav.woocommerce-pagination ul { border: 0; display: flex; gap: 6px; justify-content: center; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; margin: 0; overflow: visible; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	min-width: 38px; padding: 9px 12px;
	border: 1px solid var(--wbs-sage-cool);
	border-radius: 10px;
	background: var(--wbs-white);
	color: var(--wbs-ink);
	font-size: 14px;
}
.woocommerce nav.woocommerce-pagination ul li span.current {
	background: var(--wbs-teal); border-color: var(--wbs-teal); color: #fff;
}

.wbs-shop__empty { color: var(--wbs-muted); }
