/* ==========================================================================
   1.8.480 — Shop-wide dense grid, view switcher, and full-width Sort/Filter
   toolbar (extends 1.8.478/479). Scoped to body.idx-dense. Enqueued only on
   non-sign Woo product archives (signs keep 478 CSS unchanged).
   Column cap 6 (auto: 6 at >=1280, 4 at 1024, 3 at 768, 2 below).
   DTF (.idx-dense-keep-layout) gets the toolbar/full-width chrome but not
   the column override (2-col + pressing-card layout is unchanged).
   ========================================================================== */

/* ==========================================================================
   1.8.478 — Signs category (and descendants) dense grid, view switcher,
   and full-width Sort / Filter toolbar. Scoped to body.idx-dense only.
   Does not change the rest of the shop. Overrides Woo columns-4 via CSS grid.
   ========================================================================== */

/* ---- Full-width layout: hide the (unrendered / empty) sidebar column ---- */
.idx-shop-archive.idx-dense .idxshop-layout {
	grid-template-columns: minmax(0, 1fr) !important;
	gap: 0;
}
.idx-shop-archive.idx-dense .idxshop-side,
.idx-shop-archive.idx-dense .idxshop-overlay,
.idx-shop-archive.idx-dense .idxshop-filter-btn {
	display: none !important;
}

/* --------------------------------------------------------------------------
   Auto grid (default / Medium-Auto)
   Cap 6 auto: >=1280: 6, 1024–1279: 4, 768–1023: 3, <768: 2,
   <360: 1 (existing shop-archive rule, kept).
   -------------------------------------------------------------------------- */
.idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 0.7rem;
	margin: 0 0 2rem;
	padding: 0;
}
@media (max-width: 359.98px) {
	html:not([class*="idx-dense-view-"]) .idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products,
	html.idx-dense-view-auto .idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}
@media (min-width: 768px) {
	.idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
		gap: 0.85rem;
	}
}
@media (min-width: 1024px) {
	.idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products {
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
		gap: 0.9rem;
	}
}
@media (min-width: 1280px) {
	.idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products {
		grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
		gap: 0.85rem;
	}
}
/* 1.8.480 — cap 6: no 7-col auto step (1600px). */
/* 1.8.480 — cap 6: no 8-col auto step (1920px). */

/* Forced column counts — only at breakpoints that offer that choice. */
@media (min-width: 1024px) {
	html.idx-dense-view-4 .idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
	html.idx-dense-view-6 .idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
	html.idx-dense-view-8 .idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products { grid-template-columns: repeat(8, minmax(0, 1fr)) !important; }
}
@media (min-width: 768px) and (max-width: 1023.98px) {
	html.idx-dense-view-2 .idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	html.idx-dense-view-3 .idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 767.98px) {
	html.idx-dense-view-1 .idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products { grid-template-columns: minmax(0, 1fr) !important; }
	html.idx-dense-view-2 .idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* ---- Tightened card internals (grid views) ---- */
.idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products li.product .woocommerce-loop-product__title,
.idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products li.product h2.woocommerce-loop-product__title {
	padding: 0.55rem 0.65rem 0.2rem;
	font-family: "Oswald", var(--font-head, sans-serif);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: var(--sx-navy, #0f143a);
	white-space: normal !important;
	max-width: none !important;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	min-height: calc(1.25em * 2);
	text-wrap: wrap;
}
@media (min-width: 1280px) {
	.idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products li.product .woocommerce-loop-product__title {
		font-size: 16px;
	}
}
.idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products li.product .idx-sign-card-desc {
	padding: 0 0.65rem 0.3rem;
	font-size: 12.5px;
	line-height: 1.4;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	min-height: calc(1.4em * 3);
	max-height: calc(1.4em * 3);
	color: #5b6080;
}
.idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products li.product .price {
	padding: 0.15rem 0.65rem 0.5rem;
	font-size: 14px;
	margin-top: auto;
}
.idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products li.product .price .idxsb-from {
	font-size: 12px;
}
.idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products li.product .price .idxsb-from .amount,
.idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products li.product .price .amount {
	font-size: 14px;
}
.idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products li.product a.button,
.idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products li.product .button {
	display: flex;
	width: auto;
	align-self: stretch;
	margin: 0 0.65rem 0.65rem !important;
	padding: 0.4rem 0.4rem !important;
	min-height: 34px;
	font-size: 0.68rem !important;
	letter-spacing: 0.04em !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	border-radius: 0 !important;
}
.idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products li.product a img {
	aspect-ratio: 1 / 1;
	width: 100%;
	height: auto;
	object-fit: cover;
}

/* --------------------------------------------------------------------------
   List view — one product per row: image left (~160px), name + desc,
   price and Build your sign on the right.
   -------------------------------------------------------------------------- */
html.idx-dense-view-list .idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products {
	grid-template-columns: minmax(0, 1fr) !important;
	gap: 0.75rem;
}
html.idx-dense-view-list .idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products li.product {
	display: grid;
	grid-template-columns: 160px minmax(0, 1fr) auto;
	grid-template-rows: auto auto;
	align-items: center;
	column-gap: 1.1rem;
	row-gap: 0.35rem;
	padding: 0.75rem 0.9rem 0.75rem 0.75rem;
}
html.idx-dense-view-list .idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products li.product a.woocommerce-loop-product__link {
	display: contents;
	color: inherit;
	text-decoration: none;
}
html.idx-dense-view-list .idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products li.product a img {
	grid-column: 1;
	grid-row: 1 / 3;
	width: 160px;
	height: 160px;
	max-width: 160px;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-bottom: 0;
	border-radius: 0;
	flex: none;
	align-self: center;
}
html.idx-dense-view-list .idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products li.product .woocommerce-loop-product__title,
html.idx-dense-view-list .idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products li.product h2.woocommerce-loop-product__title {
	grid-column: 2;
	grid-row: 1;
	align-self: end;
	padding: 0 0 0.15rem;
	font-size: 1.15rem;
	min-height: 0;
	-webkit-line-clamp: unset;
	line-clamp: unset;
	overflow: visible;
	white-space: normal !important;
}
html.idx-dense-view-list .idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products li.product .idx-sign-card-desc {
	grid-column: 2;
	grid-row: 2;
	align-self: start;
	padding: 0;
	font-size: 13px;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	min-height: 0;
	max-height: calc(1.4em * 3);
	overflow: hidden;
}
html.idx-dense-view-list .idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products li.product .price {
	grid-column: 3;
	grid-row: 1;
	align-self: end;
	margin: 0;
	padding: 0;
	text-align: right;
	white-space: nowrap;
	font-size: 14px;
}
html.idx-dense-view-list .idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products li.product a.button,
html.idx-dense-view-list .idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products li.product .button {
	grid-column: 3;
	grid-row: 2;
	align-self: start;
	justify-self: end;
	margin: 0 !important;
	width: auto;
	min-width: 10.5rem;
	padding: 0.5rem 0.85rem !important;
	font-size: 0.72rem !important;
	white-space: nowrap;
}
html.idx-dense-view-list .idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products li.product .onsale {
	left: 0.85rem;
	top: 0.85rem;
}
@media (max-width: 699.98px) {
	html.idx-dense-view-list .idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products li.product {
		grid-template-columns: 100px minmax(0, 1fr);
		grid-template-rows: auto auto auto auto;
		column-gap: 0.75rem;
		row-gap: 0.25rem;
		padding: 0.65rem;
	}
	html.idx-dense-view-list .idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products li.product a img {
		grid-column: 1;
		grid-row: 1 / 5;
	}
	html.idx-dense-view-list .idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products li.product .woocommerce-loop-product__title,
	html.idx-dense-view-list .idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products li.product h2.woocommerce-loop-product__title {
		grid-column: 2;
		grid-row: 1;
	}
	html.idx-dense-view-list .idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products li.product .idx-sign-card-desc {
		grid-column: 2;
		grid-row: 2;
		padding-top: 0;
	}
	html.idx-dense-view-list .idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products li.product .price {
		grid-column: 2;
		grid-row: 3;
		justify-self: start;
	}
	html.idx-dense-view-list .idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products li.product a.button {
		grid-column: 2;
		grid-row: 4;
		justify-self: start;
	}
	html.idx-dense-view-list .idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products li.product a img {
		width: 100px;
		height: 100px;
		max-width: 100px;
	}
	html.idx-dense-view-list .idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products li.product .price {
		text-align: left;
		margin: 0;
	}
	html.idx-dense-view-list .idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products li.product a.button {
		margin: 0.35rem 0 0 !important;
		min-width: 0;
		width: 100%;
		justify-self: start;
	}
}

/* --------------------------------------------------------------------------
   Toolbar: result count | Sort / Availability / Price | view switcher
   -------------------------------------------------------------------------- */
.idx-shop-archive.idx-dense .idxshop-toolbar {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 0.65rem 1rem;
	padding: 0.6rem 0.75rem;
}
.idx-shop-archive.idx-dense .idxshop-toolbar .woocommerce-result-count {
	margin: 0;
	order: 0;
	flex-basis: auto;
	justify-self: start;
}
.idx-shop-archive.idx-dense .idx-dense-tools {
	justify-self: center;
	display: flex;
	align-items: center;
	gap: 0.45rem;
}
.idx-shop-archive.idx-dense .idx-dense-switcher {
	justify-self: end;
	display: none; /* shown only when html.idx-js (works without JS = default grid) */
	align-items: center;
	gap: 0;
}
html.idx-js .idx-shop-archive.idx-dense .idx-dense-switcher {
	display: inline-flex;
}

/* Square navy-outline buttons (dropdown summaries + view icons) */
.idx-dense-dd__btn,
.idx-dense-sheet-toggle,
.idx-dense-switcher .idx-signs-switcher__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	margin: 0;
	padding: 0.45rem 0.7rem;
	border: 1.5px solid var(--sx-navy, #0f143a);
	border-radius: 0;
	background: #fff;
	color: var(--sx-navy, #0f143a);
	font-family: "Oswald", var(--font-head, sans-serif);
	font-weight: 600;
	font-size: 0.78rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1;
	cursor: pointer;
	list-style: none;
	box-sizing: border-box;
}
.idx-dense-dd__btn::-webkit-details-marker { display: none; }
.idx-dense-dd__btn::marker { content: none; }
.idx-dense-dd__btn:hover,
.idx-dense-sheet-toggle:hover,
.idx-dense-switcher .idx-signs-switcher__btn:hover {
	background: #f5f6fa;
}
.idx-dense-dd__btn:focus-visible,
.idx-dense-sheet-toggle:focus-visible,
.idx-dense-switcher .idx-signs-switcher__btn:focus-visible,
.idx-dense-sheet__close:focus-visible {
	outline: 3px solid var(--sx-yellow, #f3c91a);
	outline-offset: 2px;
}
.idx-dense-dd__btn.is-active,
.idx-dense-dd[open] > .idx-dense-dd__btn {
	box-shadow: inset 0 -3px 0 var(--sx-yellow, #f3c91a);
}
.idx-dense-dd__value {
	font-weight: 500;
	letter-spacing: 0.03em;
	text-transform: none;
	opacity: 0.8;
	max-width: 10em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.idx-dense-dd { position: relative; }
.idx-dense-dd__panel {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	z-index: 30;
	min-width: 240px;
	padding: 0.45rem;
	background: #fff;
	border: 1.5px solid var(--sx-navy, #0f143a);
	border-radius: 0;
	box-shadow: 0 12px 28px rgba(15, 20, 58, 0.14);
}
.idx-dense-dd--price .idx-dense-dd__panel { min-width: 260px; }
.idx-dense-dd .idxshop-sort,
.idx-dense-dd .idxshop-sort__list { margin: 0; padding: 0; list-style: none; }
.idx-dense-dd .idxshop-cats__item { margin: 0; }
.idx-dense-dd .idxshop-cats__link {
	display: block;
	padding: 0.5rem 0.7rem;
	color: var(--sx-navy, #0f143a);
	text-decoration: none;
	font-family: "Oswald", var(--font-head, sans-serif);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}
.idx-dense-dd .idxshop-cats__item.is-current > .idxshop-cats__row > .idxshop-cats__link {
	background: var(--sx-navy, #0f143a);
	color: #fff;
	box-shadow: inset 4px 0 0 var(--sx-yellow, #f3c91a);
}
.idx-dense-dd .idxshop-filters__form { padding: 0.35rem; }
.idx-dense-dd .idxshop-acc__body--price { display: flex; align-items: center; gap: 0.4rem; }
.idx-dense-dd .idxshop-price input {
	width: 6.5rem;
	height: 36px;
	padding: 0 0.5rem;
	border: 1.5px solid var(--sx-line, #e2e0e8);
	border-radius: 0;
	font-size: 0.9rem;
}

/* View switcher icons */
.idx-dense-switcher .idx-signs-switcher__btn {
	width: 36px;
	height: 36px;
	padding: 0;
	border-right-width: 0;
}
.idx-dense-switcher .idx-signs-switcher__btn:last-child { border-right-width: 1.5px; }
.idx-dense-switcher .idx-signs-switcher__btn[aria-pressed="true"] {
	background: var(--sx-navy, #0f143a);
	color: var(--sx-yellow, #f3c91a);
	border-color: var(--sx-navy, #0f143a);
}

/* Which view buttons are offered */
.idx-dense-switcher .idx-signs-switcher__btn[data-view="1"],
.idx-dense-switcher .idx-signs-switcher__btn[data-view="2"],
.idx-dense-switcher .idx-signs-switcher__btn[data-view="3"] { display: none; }
@media (min-width: 768px) and (max-width: 1023.98px) {
	.idx-dense-switcher .idx-signs-switcher__btn[data-view="4"],
	.idx-dense-switcher .idx-signs-switcher__btn[data-view="auto"],
	.idx-dense-switcher .idx-signs-switcher__btn[data-view="8"], .idx-dense-switcher .idx-signs-switcher__btn[data-view="6"] { display: none; }
	.idx-dense-switcher .idx-signs-switcher__btn[data-view="2"],
	.idx-dense-switcher .idx-signs-switcher__btn[data-view="3"] { display: inline-flex; }
	.idx-dense-switcher .idx-signs-switcher__btn[data-view="2"] { border-right-width: 0; }
}
@media (max-width: 767.98px) {
	.idx-dense-switcher .idx-signs-switcher__btn[data-view="4"],
	.idx-dense-switcher .idx-signs-switcher__btn[data-view="auto"],
	.idx-dense-switcher .idx-signs-switcher__btn[data-view="8"], .idx-dense-switcher .idx-signs-switcher__btn[data-view="6"],
	.idx-dense-switcher .idx-signs-switcher__btn[data-view="3"] { display: none; }
	.idx-dense-switcher .idx-signs-switcher__btn[data-view="1"],
	.idx-dense-switcher .idx-signs-switcher__btn[data-view="2"] { display: inline-flex; }
	.idx-dense-switcher .idx-signs-switcher__btn[data-view="1"] { border-right-width: 0; }
}

/* Sheet chrome is phone-only; on desktop the wrap is transparent and dropdowns are inline. */
.idx-dense-sheet-toggle { display: none; }
.idx-dense-sheet__scrim,
.idx-dense-sheet__head { display: none; }

@media (max-width: 767.98px) {
	.idx-shop-archive.idx-dense .idxshop-toolbar {
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"count sheet"
			"view view";
	}
	.idx-shop-archive.idx-dense .idxshop-toolbar .woocommerce-result-count { grid-area: count; }
	.idx-shop-archive.idx-dense .idx-dense-tools { grid-area: sheet; justify-self: end; }
	.idx-shop-archive.idx-dense .idx-dense-switcher { grid-area: view; justify-self: end; }

	.idx-dense-sheet-toggle { display: inline-flex; }
	/* Hide the individual dropdown summaries; they appear inside the sheet once open. */
	.idx-dense-sheet {
		/* closed: not visible */
	}
	.idx-dense-tools:not(.is-sheet-open) .idx-dense-sheet__panel {
		display: none;
	}
	.idx-dense-tools.is-sheet-open .idx-dense-sheet__scrim {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 1490;
		background: rgba(15, 20, 58, 0.55);
	}
	.idx-dense-tools.is-sheet-open .idx-dense-sheet__panel,
	/* Without JS: if we can't open a sheet, details still work if we show the panel as a stacked block.
	   The toggle is JS-enhanced; no-JS falls back to showing Sort/Filter details inline below the toolbar. */
	html:not(.idx-js) .idx-dense-sheet__panel {
		display: block;
	}
	.idx-dense-tools.is-sheet-open .idx-dense-sheet__panel {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 1500;
		max-height: min(86vh, 640px);
		overflow: auto;
		background: #fff;
		border-top: 3px solid var(--sx-yellow, #f3c91a);
		box-shadow: 0 -16px 40px rgba(15, 20, 58, 0.18);
		padding: 0 1rem 1.25rem;
	}
	.idx-dense-tools.is-sheet-open .idx-dense-sheet__head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		position: sticky;
		top: 0;
		background: #fff;
		padding: 0.85rem 0;
		z-index: 1;
	}
	.idx-dense-sheet__title {
		font-family: "Oswald", var(--font-head, sans-serif);
		font-weight: 600;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		font-size: 0.9rem;
		color: var(--sx-navy, #0f143a);
	}
	.idx-dense-sheet__close {
		width: 36px;
		height: 36px;
		border: 1.5px solid var(--sx-navy, #0f143a);
		border-radius: 0;
		background: #fff;
		color: var(--sx-navy, #0f143a);
		font-size: 1.5rem;
		line-height: 1;
		cursor: pointer;
	}
	.idx-dense-tools.is-sheet-open .idx-dense-dd {
		display: block;
		border-top: 1px solid var(--sx-line, #e2e0e8);
	}
	.idx-dense-tools.is-sheet-open .idx-dense-dd__btn { width: 100%; justify-content: space-between; border: 0; padding: 0.85rem 0; box-shadow: none; }
	.idx-dense-tools.is-sheet-open .idx-dense-dd__panel {
		position: static;
		border: 0;
		box-shadow: none;
		min-width: 0;
		padding: 0 0 0.75rem;
	}
	/* no-JS phone: show dropdowns stacked (toggle hidden, details usable) */
	html:not(.idx-js) .idx-dense-sheet-toggle { display: none; }
	html:not(.idx-js) .idx-dense-sheet__panel {
		position: static;
		display: flex;
		flex-direction: column;
		gap: 0.35rem;
		padding: 0;
		border: 0;
		box-shadow: none;
		max-height: none;
		overflow: visible;
	}
}

@media (min-width: 768px) {
	.idx-dense-sheet-toggle { display: none !important; }
	.idx-dense-sheet { display: contents; }
	.idx-dense-sheet__panel { display: contents; }
	.idx-dense-sheet__scrim,
	.idx-dense-sheet__head { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
	.idx-dense-sheet__panel,
	.idx-dense-sheet__scrim,
	.idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products li.product,
	.idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products li.product a.button {
		transition: none !important;
	}
}


/* ---- 1.8.479 per-page picker (.idx-signs-dd) inside the 480 toolbar ---- */
.idx-dense-tools .idx-signs-dd { position: relative; display: inline-block; }
.idx-dense-tools .idx-signs-dd__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
	padding: 0.45rem 0.7rem;
	border: 1.5px solid var(--sx-navy, #0f143a);
	border-radius: 0;
	background: #fff;
	color: var(--sx-navy, #0f143a);
	font-family: "Oswald", var(--font-head, sans-serif);
	font-weight: 600;
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1;
	cursor: pointer;
	white-space: nowrap;
	list-style: none;
}
.idx-dense-tools .idx-signs-dd__btn::-webkit-details-marker { display: none; }
.idx-dense-tools .idx-signs-dd__btn::marker { content: ""; }
.idx-dense-tools .idx-signs-dd__btn.is-active,
.idx-dense-tools .idx-signs-dd[open] .idx-signs-dd__btn {
	box-shadow: inset 0 -3px 0 #F3C91A;
}
.idx-dense-tools .idx-signs-dd__panel {
	position: absolute;
	top: calc(100% + 4px);
	right: 0;
	left: auto;
	z-index: 40;
	min-width: 11rem;
	background: #fff;
	border: 1.5px solid var(--sx-navy, #0f143a);
	box-shadow: 4px 4px 0 rgba(15, 20, 58, 0.12);
	padding: 0.4rem 0;
}
@media (max-width: 767.98px) {
	.idx-dense-tools.is-sheet-open .idx-signs-dd { display: block; border-top: 1px solid var(--sx-line, #e2e0e8); }
	.idx-dense-tools.is-sheet-open .idx-signs-dd__btn { width: 100%; justify-content: space-between; border: 0; padding: 0.85rem 0; box-shadow: none; }
	.idx-dense-tools.is-sheet-open .idx-signs-dd__panel {
		position: static;
		right: auto;
		left: auto;
		min-width: 0;
		border: 0;
		box-shadow: none;
		padding: 0 0 0.75rem;
	}
}

/* Hide the leftover empty-archive filter-only toolbar; 480 renders a full one. */
.idx-shop-archive.idx-dense .idxshop-toolbar--empty { display: none !important; }

/* Square, one-line, full-width Add to cart / Select options. */
.idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products li.product a.button,
.idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products li.product .button {
	display: block;
	width: auto;
	box-sizing: border-box;
	margin: 0 0.65rem 0.65rem !important;
	padding: 0.42rem 0.4rem !important;
	border-radius: 0 !important;
	font-size: 0.68rem !important;
	letter-spacing: 0.06em !important;
	white-space: nowrap !important;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: center;
	line-height: 1.2;
}

/* Sale / out-of-stock badges stay visible on tight cards. */
.idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products li.product .onsale {
	z-index: 2;
}
.idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products li.product.outofstock a img {
	opacity: 0.62;
}
.idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products li.product .stock,
.idx-shop-archive.idx-dense:not(.idx-dense-keep-layout) .idxshop-main ul.products li.product .outofstock-badge {
	z-index: 2;
}

/* Brand / Color / Size panels can be tall — scroll. */
.idx-dense-dd--brand .idx-dense-dd__panel,
.idx-dense-dd--color .idx-dense-dd__panel,
.idx-dense-dd--size .idx-dense-dd__panel,
.idx-dense-dd--style .idx-dense-dd__panel {
	min-width: 14rem;
	max-height: min(70vh, 24rem);
	overflow: auto;
}

/* Toolbar can wrap when Brand/Color/Size join the middle group. */
.idx-shop-archive.idx-dense .idxshop-toolbar { row-gap: 0.5rem; }
@media (max-width: 1100px) and (min-width: 768px) {
	.idx-shop-archive.idx-dense .idx-dense-tools { flex-wrap: wrap; }
}

/* No short descriptions on non-sign cards (477 stays sign-builder-only). */
