/* ==========================================================================
   Catalogue header - templates/woocommerce/archive-product.php
   (24 Sep 2026)

   The assurance bar under the title, and the stacked toolbar: full-width
   search, with the product count and the sort control on the line below.

   Kept out of store.css on purpose - that file is compiled from the design
   system and carries a "do not hand-edit" header.
   ========================================================================== */

/* ------------------------------------------------------------ assurances */

.pt-store .pt-shop-assure{
	display:inline-flex;flex-wrap:wrap;align-items:center;gap:0;
	margin:22px 0 0;padding:11px 8px;list-style:none;
	border-radius:999px;background:var(--surface);
	border:1px solid var(--line);box-shadow:0 8px 22px rgba(11,27,46,.06);
}
.pt-store .pt-shop-assure li{
	display:inline-flex;align-items:center;gap:9px;padding:2px 18px;
	font-family:var(--font-body),system-ui,sans-serif;
	font-size:13.5px;font-weight:600;line-height:1.35;color:var(--ink);
}
.pt-store .pt-shop-assure li + li{border-left:1px solid var(--line)}
.pt-store .pt-shop-assure-i{flex:0 0 auto;width:17px;height:17px;color:var(--verify)}

/* --------------------------------------------------------------- toolbar */

.pt-store .pt-toolbar.is-stacked{
	flex-direction:column;flex-wrap:wrap;align-items:stretch;
	justify-content:flex-start;gap:14px;margin:clamp(22px,2.6vw,32px) 0 0;
}
.pt-store .pt-toolbar.is-stacked .pt-store-tools{
	display:flex;flex-direction:column;align-items:stretch;gap:14px;width:100%;flex:1 1 auto;
}
.pt-store .pt-toolbar.is-stacked .pt-search{
	width:100%;height:54px;gap:12px;
	background-color:var(--surface);border-color:var(--line);
	box-shadow:0 6px 18px rgba(11,27,46,.05);
}
.pt-store .pt-toolbar.is-stacked .pt-search:focus-within{
	border-color:var(--accent);
	box-shadow:0 0 0 4px var(--accent-soft),0 6px 18px rgba(11,27,46,.05);
}
.pt-store .pt-search-i{flex:0 0 auto;width:18px;height:18px;color:var(--muted)}
.pt-store .pt-toolbar.is-stacked .pt-search-input{
	flex:1 1 auto;min-width:0;width:100%;height:100%;
	border:0;background:transparent;outline:none;
	font-family:var(--font-body),system-ui,sans-serif;font-size:16px;color:var(--ink);
}
.pt-store .pt-toolbar.is-stacked .pt-search-input::placeholder{color:var(--muted)}
.pt-store .pt-search-input::-webkit-search-cancel-button{cursor:pointer}

.pt-store .pt-tools-row{
	display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;
}
.pt-store .pt-store-count{
	margin:0;font-family:var(--font-body),system-ui,sans-serif;
	font-size:14px;line-height:1.4;color:var(--muted);font-variant-numeric:tabular-nums;
}
/* width:auto, because the theme sets width:100% on every select: the sort
   control stretched the whole width of the row instead of sitting at its end. */
.pt-store .pt-toolbar.is-stacked .pt-sort{
	width:auto;min-width:190px;max-width:100%;flex:0 0 auto;
	background-color:var(--surface);border-color:var(--line);
	box-shadow:0 6px 18px rgba(11,27,46,.05);
}
.pt-store .pt-toolbar.is-stacked .pt-filter-row{
	display:flex;flex-wrap:wrap;gap:8px;
}

/* ---------------------------------------------------------- narrow view */

@media (max-width:700px){
	.pt-store .pt-shop-assure{
		display:flex;width:100%;border-radius:16px;padding:6px 4px;
	}
	.pt-store .pt-shop-assure li{
		width:100%;padding:8px 14px;font-size:13px;
	}
	/* stacked, the vertical rule between items becomes a horizontal one */
	.pt-store .pt-shop-assure li + li{
		border-left:0;border-top:1px solid var(--line);
	}
	.pt-store .pt-tools-row{gap:12px}
	.pt-store .pt-toolbar.is-stacked .pt-sort{flex:0 0 auto;max-width:60%}
}

/* ------------------------------------------------------------- size sheet */

.pt-store .pt-sz{position:fixed;inset:0;z-index:140;display:flex;align-items:center;justify-content:center}
.pt-store .pt-sz[hidden]{display:none}
.pt-store .pt-sz-scrim{
	position:absolute;inset:0;background:rgba(11,27,46,.5);
	opacity:0;transition:opacity .22s ease;
}
.pt-store .pt-sz.is-open .pt-sz-scrim{opacity:1}
.pt-store .pt-sz-panel{
	position:relative;width:min(420px,calc(100vw - 32px));max-height:min(84vh,640px);
	overflow:auto;padding:26px 24px 22px;border-radius:20px;
	background:var(--surface);box-shadow:0 30px 70px rgba(6,15,27,.34);
	transform:translateY(12px) scale(.98);opacity:0;
	transition:transform .22s cubic-bezier(.4,0,.2,1),opacity .22s ease;
}
.pt-store .pt-sz.is-open .pt-sz-panel{transform:none;opacity:1}
.pt-store .pt-sz-panel:focus{outline:none}
/* .pt-sz scoping, not .pt-sz-x alone: the theme styles every <button> with
   padding:12px 24px and a width of its own, which left no content box and
   shrank the icon inside to zero width. */
.pt-store .pt-sz .pt-sz-x{
	position:absolute;top:14px;right:14px;width:34px;height:34px;
	min-width:0;padding:0;flex:0 0 auto;
	display:inline-flex;align-items:center;justify-content:center;
	border:0;border-radius:999px;background:var(--surface-cool);color:var(--ink);cursor:pointer;
}
.pt-store .pt-sz .pt-sz-x svg{width:17px;height:17px;flex:0 0 auto}
.pt-store .pt-sz-x:hover{background:var(--sky-200)}
.pt-store .pt-sz-eyebrow{
	margin:0 0 6px;font-family:var(--font-mono),ui-monospace,monospace;
	font-size:11.5px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--accent);
}
.pt-store .pt-sz-title{
	margin:0 0 16px;padding-right:40px;font-family:var(--font-display),system-ui,sans-serif;
	font-size:21px;font-weight:700;letter-spacing:-.01em;line-height:1.2;color:var(--ink);
}
.pt-store .pt-sz-list{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none}
.pt-store .pt-sz .pt-sz-row{
	display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;
	min-height:56px;padding:0 18px;border-radius:14px;cursor:pointer;
	background:var(--surface);border:1px solid var(--line);
	transition:border-color .16s ease,background .16s ease,transform .16s ease;
}
.pt-store .pt-sz-row:hover{border-color:var(--accent);background:#F5F9FE}
.pt-store .pt-sz-row:focus-visible{outline:3px solid var(--accent-soft);outline-offset:2px}
.pt-store .pt-sz-row.is-loading{opacity:.6;pointer-events:none}
.pt-store .pt-sz-row.is-off{cursor:not-allowed;opacity:.55;background:var(--surface-cool)}
.pt-store .pt-sz-mass{
	font-family:var(--font-mono),ui-monospace,monospace;
	font-size:15px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--ink);
}
.pt-store .pt-sz-price{font-size:15px;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
.pt-store .pt-sz-row.is-off .pt-sz-price{font-size:13px;font-weight:600;color:var(--muted)}
.pt-store .pt-sz-note{margin:14px 0 0;font-size:12.5px;line-height:1.5;color:var(--muted)}

body.pt-sz-locked{overflow:hidden}

@media (prefers-reduced-motion:reduce){
	.pt-store .pt-sz-scrim,.pt-store .pt-sz-panel{transition:none}
}

/* ---------------------------------------------------------- live search */

/* The card wrapper carries display:grid of its own, which outranks the
   browser's [hidden]{display:none}: filtered-out products kept their space and
   the grid was left full of holes. */
.pt-store .pt-pc-wrap[hidden]{display:none}
.pt-store .pt-store-empty-js[hidden]{display:none}
.pt-store .pt-store-empty-js{
	display:flex;flex-direction:column;align-items:flex-start;gap:12px;
	padding:clamp(22px,3vw,34px) 0 0;
}
.pt-store .pt-store-empty-js .pt-store-empty{
	margin:0;font-size:16px;line-height:1.6;color:var(--muted);
}
.pt-store .pt-store-guess{
	display:inline-flex;align-items:center;min-height:44px;width:auto;min-width:0;
	padding:0 20px;border-radius:999px;cursor:pointer;
	background:var(--surface);border:1px solid var(--sky-400);
	font-family:var(--font-body),system-ui,sans-serif;
	font-size:14.5px;font-weight:600;color:var(--accent);
	transition:background .16s ease,border-color .16s ease;
}
.pt-store .pt-store-guess:hover{background:var(--surface-cool);border-color:var(--accent)}
.pt-store .pt-store-guess:focus-visible{outline:3px solid var(--accent-soft);outline-offset:2px}
