/*
 * JustDSL shop pages. Everything is scoped to .jdsl-shop / .jdsl-shop-page so
 * no other page is affected.
 */

.jdsl-shop {
	--jd-black: #111;
	--jd-red: var(--e-global-color-adaf8a2, #d10000);
	--jd-text: #2b2b2b;
	--jd-muted: #737373;
	--jd-line: #e5e5e5;
	--jd-soft: #f5f5f5;
	--jd-radius: 6px;
	--jd-font: "Noto Sans", var(--e-global-typography-primary-font-family, sans-serif), sans-serif;
	--jd-gap: 40px;
	--jd-cols: 4;

	max-width: 1440px;
	margin: 0 auto;
	padding: 28px 32px 72px;
	color: var(--jd-text);
	font-family: var(--jd-font);
	font-size: 15px;
	line-height: 1.5;
}

.jdsl-shop *,
.jdsl-shop *::before,
.jdsl-shop *::after {
	box-sizing: border-box;
}

.jdsl-shop a {
	color: inherit;
	text-decoration: none;
}

/* ------------------------------------------------------------------ *
 * Head
 * ------------------------------------------------------------------ */

.jdsl-shop__head {
	margin-bottom: 28px;
}

.jdsl-shop__crumbs {
	font-size: 13px;
	color: var(--jd-muted);
	display: flex;
	flex-wrap: wrap;
	gap: 0 8px;
}

.jdsl-shop__crumbs a:hover {
	color: var(--jd-black);
}

.jdsl-shop__title {
	margin: 10px 0 0;
	font-family: var(--jd-font);
	font-size: clamp(24px, 2.4vw, 32px);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--jd-black);
}

.jdsl-shop__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 18px;
}

.jdsl-pill {
	display: inline-flex;
	align-items: center;
	height: 36px;
	padding: 0 16px;
	border: 1px solid var(--jd-line);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
	background: #fff;
	transition: border-color .15s, background .15s, color .15s;
}

.jdsl-shop a.jdsl-pill:hover {
	border-color: var(--jd-black);
}

.jdsl-shop a.jdsl-pill.is-current {
	background: var(--jd-black);
	border-color: var(--jd-black);
	color: #fff;
}

/* ------------------------------------------------------------------ *
 * Layout
 * ------------------------------------------------------------------ */

.jdsl-shop__layout {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: var(--jd-gap);
	align-items: start;
}

.jdsl-shop__layout.is-full {
	grid-template-columns: minmax(0, 1fr);
}

.jdsl-shop__filters {
	position: sticky;
	top: 24px;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding-right: 8px;
	scrollbar-width: thin;
	scrollbar-color: #ccc transparent;
}

.admin-bar .jdsl-shop__filters {
	top: 56px;
	max-height: calc(100vh - 80px);
}

.jdsl-shop__main {
	min-width: 0;
	position: relative;
}

/* ------------------------------------------------------------------ *
 * Filters
 * ------------------------------------------------------------------ */

.jdsl-filters {
	display: flex;
	flex-direction: column;
}

/* Search */
.jdsl-fsearch {
	position: relative;
	margin: 0 0 18px;
}

.jdsl-shop .jdsl-fsearch input[type="search"] {
	width: 100%;
	height: 42px;
	padding: 0 44px 0 14px;
	border: 1px solid var(--jd-line);
	border-radius: var(--jd-radius);
	background: #fff;
	font-family: var(--jd-font);
	font-size: 14px;
	color: var(--jd-text);
	box-shadow: none;
	-webkit-appearance: none;
}

.jdsl-shop .jdsl-fsearch input[type="search"]:focus {
	border-color: var(--jd-black);
	outline: none;
}

.jdsl-shop .jdsl-fsearch button {
	position: absolute;
	top: 0;
	right: 0;
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	background: none;
	color: var(--jd-black);
	cursor: pointer;
}

/* Group */
.jdsl-fgroup {
	padding: 16px 0;
	border-top: 1px solid var(--jd-line);
}

.jdsl-fgroup__title {
	display: flex;
	align-items: center;
	gap: 8px;
	list-style: none;
	cursor: pointer;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--jd-black);
	user-select: none;
}

.jdsl-fgroup__title::-webkit-details-marker {
	display: none;
}

.jdsl-fgroup__title::after {
	content: "";
	width: 8px;
	height: 8px;
	margin-left: auto;
	border-right: 1.6px solid currentColor;
	border-bottom: 1.6px solid currentColor;
	transform: rotate(45deg) translate(-2px, -2px);
	transition: transform .2s;
}

.jdsl-fgroup:not([open]) .jdsl-fgroup__title::after {
	transform: rotate(-45deg);
}

.jdsl-fgroup__badge {
	display: inline-grid;
	place-items: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--jd-black);
	color: #fff;
	font-size: 11px;
	letter-spacing: 0;
}

.jdsl-fgroup__list {
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.jdsl-fitem {
	margin: 0;
	padding: 0;
}

.jdsl-fgroup:not(.is-expanded) .jdsl-fitem.is-extra {
	display: none;
}

.jdsl-fitem a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 5px 0;
	font-size: 14px;
	line-height: 1.35;
	color: var(--jd-text);
}

.jdsl-fitem a:hover {
	color: var(--jd-black);
}

.jdsl-check {
	position: relative;
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	border: 1.5px solid #bdbdbd;
	border-radius: 4px;
	background: #fff;
	transition: border-color .15s, background .15s;
}

.jdsl-fitem a:hover .jdsl-check {
	border-color: var(--jd-black);
}

.jdsl-fitem.is-selected .jdsl-check {
	border-color: var(--jd-black);
	background: var(--jd-black);
}

.jdsl-fitem.is-selected .jdsl-check::after {
	content: "";
	position: absolute;
	left: 4px;
	top: 1px;
	width: 4px;
	height: 8px;
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate(45deg);
}

.jdsl-fitem.is-selected .jdsl-fitem__name {
	font-weight: 600;
	color: var(--jd-black);
}

.jdsl-swatch {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--sw, conic-gradient(#e53935, #fdd835, #43a047, #1e88e5, #8e24aa, #e53935));
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14);
}

.jdsl-fitem.is-selected .jdsl-swatch {
	box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--jd-black);
}

.jdsl-fitem__name {
	flex: 1;
	min-width: 0;
}

.jdsl-fitem__count {
	font-size: 12px;
	color: var(--jd-muted);
	font-variant-numeric: tabular-nums;
}

/* Short values (sizes): a grid of boxes */
.jdsl-fgroup__list.is-compact {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
	gap: 6px;
}

.jdsl-fgroup__list.is-compact .jdsl-fitem a {
	justify-content: center;
	height: 38px;
	padding: 0 6px;
	border: 1px solid var(--jd-line);
	border-radius: var(--jd-radius);
	font-size: 13px;
	text-align: center;
	transition: border-color .15s, background .15s, color .15s;
}

.jdsl-fgroup__list.is-compact .jdsl-fitem a:hover {
	border-color: var(--jd-black);
}

.jdsl-fgroup__list.is-compact .jdsl-fitem.is-selected a {
	border-color: var(--jd-black);
	background: var(--jd-black);
	color: #fff;
}

.jdsl-fgroup__list.is-compact .jdsl-fitem.is-selected .jdsl-fitem__name {
	color: #fff;
}

.jdsl-fgroup__list.is-compact .jdsl-fitem__name {
	flex: none;
}

.jdsl-shop .jdsl-fgroup__more {
	margin-top: 8px;
	padding: 0;
	border: 0;
	background: none;
	font-family: var(--jd-font);
	font-size: 13px;
	font-weight: 500;
	color: var(--jd-black);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

/* Price */
.jdsl-fprice {
	margin-top: 14px;
}

.jdsl-range {
	position: relative;
	height: 20px;
	margin: 0 8px;
}

.jdsl-range::before,
.jdsl-range::after {
	content: "";
	position: absolute;
	top: 9px;
	height: 3px;
	border-radius: 3px;
}

.jdsl-range::before {
	left: 0;
	right: 0;
	background: var(--jd-line);
}

.jdsl-range::after {
	left: var(--from, 0%);
	right: calc(100% - var(--to, 100%));
	background: var(--jd-black);
}

.jdsl-range input[type="range"] {
	position: absolute;
	inset: 0 -8px;
	z-index: 1;
	width: calc(100% + 16px);
	height: 20px;
	margin: 0;
	background: none;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}

.jdsl-range input[type="range"]::-webkit-slider-runnable-track {
	background: none;
}

.jdsl-range input[type="range"]::-webkit-slider-thumb {
	width: 18px;
	height: 18px;
	border: 2px solid var(--jd-black);
	border-radius: 50%;
	background: #fff;
	pointer-events: auto;
	cursor: grab;
	-webkit-appearance: none;
}

.jdsl-range input[type="range"]::-moz-range-thumb {
	width: 14px;
	height: 14px;
	border: 2px solid var(--jd-black);
	border-radius: 50%;
	background: #fff;
	pointer-events: auto;
	cursor: grab;
}

.jdsl-range input[type="range"]::-moz-range-track {
	background: none;
}

.jdsl-fprice__inputs {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	margin-top: 14px;
}

.jdsl-fprice__inputs label {
	flex: 1;
	min-width: 0;
}

.jdsl-fprice__inputs label span {
	display: block;
	margin-bottom: 4px;
	font-size: 12px;
	color: var(--jd-muted);
}

.jdsl-shop .jdsl-fprice__inputs input {
	width: 100%;
	height: 40px;
	padding: 0 10px;
	border: 1px solid var(--jd-line);
	border-radius: var(--jd-radius);
	font-family: var(--jd-font);
	font-size: 14px;
	color: var(--jd-text);
	-moz-appearance: textfield;
}

.jdsl-shop .jdsl-fprice__inputs input:focus {
	border-color: var(--jd-black);
	outline: none;
}

.jdsl-fprice__dash {
	padding-bottom: 10px;
	color: var(--jd-muted);
}

.jdsl-shop .jdsl-fprice__apply {
	width: 100%;
	height: 40px;
	margin-top: 10px;
	border: 1px solid var(--jd-black);
	border-radius: var(--jd-radius);
	background: #fff;
	color: var(--jd-black);
	font-family: var(--jd-font);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.jdsl-js .jdsl-fprice__apply {
	display: none;
}

/* ------------------------------------------------------------------ *
 * Toolbar
 * ------------------------------------------------------------------ */

.jdsl-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--jd-line);
}

.jdsl-toolbar--empty {
	border-bottom: 0;
	padding-bottom: 0;
}

.jdsl-toolbar__count .woocommerce-result-count {
	margin: 0;
	float: none;
	font-size: 14px;
	color: var(--jd-muted);
}

.jdsl-toolbar__actions {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-left: auto;
}

/* Sort */
.jdsl-shop .woocommerce-ordering {
	margin: 0;
	float: none;
}

.jdsl-shop .woocommerce-ordering select {
	height: 40px;
	min-width: 220px;
	padding: 0 40px 0 14px;
	border: 1px solid var(--jd-line);
	border-radius: var(--jd-radius);
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23111' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center;
	font-family: var(--jd-font);
	font-size: 14px;
	color: var(--jd-text);
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}

.jdsl-shop .woocommerce-ordering select:focus {
	border-color: var(--jd-black);
	outline: none;
}

/* Columns switcher (JustDSL Toolkit) */
.jdsl-shop .wepcs-block {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.jdsl-shop .wepcs-title {
	margin: 0;
	font-size: 13px;
	font-weight: 500;
	color: var(--jd-muted);
}

.jdsl-shop .wepcs-buttons {
	gap: 6px;
}

.jdsl-shop .wepcs-btn {
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid var(--jd-line);
	border-radius: var(--jd-radius);
	background: #fff;
	color: var(--jd-text);
	font-family: var(--jd-font);
	font-size: 13px;
	font-weight: 500;
	opacity: 1;
	outline: none;
}

.jdsl-shop .wepcs-btn:hover {
	border-color: var(--jd-black);
}

.jdsl-shop .wepcs-btn.active {
	background: var(--jd-black);
	border-color: var(--jd-black);
	color: #fff;
	outline: none;
}

/* ------------------------------------------------------------------ *
 * Selected-filter chips
 * ------------------------------------------------------------------ */

.jdsl-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
}

.jdsl-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 32px;
	padding: 0 12px;
	border: 1px solid var(--jd-line);
	border-radius: 999px;
	background: var(--jd-soft);
	font-size: 13px;
	color: var(--jd-text);
}

.jdsl-chip span {
	font-size: 15px;
	line-height: 1;
	color: var(--jd-muted);
}

.jdsl-shop a.jdsl-chip:hover {
	border-color: var(--jd-black);
	color: var(--jd-black);
}

.jdsl-shop a.jdsl-chips__clear {
	margin-left: 4px;
	font-size: 13px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ------------------------------------------------------------------ *
 * Product grid
 * ------------------------------------------------------------------ */

.jdsl-shop ul.products {
	display: grid !important;
	grid-template-columns: repeat(var(--jd-cols), minmax(0, 1fr));
	gap: 36px 20px;
	margin: 28px 0 0 !important;
	padding: 0 !important;
	list-style: none;
}

.jdsl-shop ul.products::before,
.jdsl-shop ul.products::after {
	content: none !important;
	display: none !important;
}

.jdsl-shop ul.products li.product.jdsl-card {
	display: flex;
	flex-direction: column;
	width: auto !important;
	min-width: 0;
	margin: 0 !important;
	padding: 0;
	float: none !important;
	flex: none !important;
	text-align: center;
}

/* Media */
.jdsl-shop ul.products li.product .jdsl-card__media {
	position: relative;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	border-radius: var(--jd-radius);
	background: var(--jd-soft);
}

.jdsl-shop ul.products li.product .jdsl-card__image,
.jdsl-shop ul.products li.product .jdsl-card__image img {
	display: block;
	width: 100%;
	height: 100%;
}

.jdsl-shop ul.products li.product .jdsl-card__image img {
	margin: 0 !important;
	object-fit: cover;
	transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}

.jdsl-shop ul.products li.product.jdsl-card:hover .jdsl-card__image img {
	transform: scale(1.04);
}

.jdsl-shop ul.products li.product .jdsl-card__badges {
	position: absolute;
	top: 10px;
	left: 10px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	pointer-events: none;
}

.jdsl-badge {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .02em;
	color: #fff;
	background: var(--jd-red);
}

.jdsl-badge--out {
	background: var(--jd-black);
}

/* Any other plugin badge printed on the image stays out of the way. */
.jdsl-shop ul.products li.product .jdsl-card__media .onsale {
	display: none !important;
}

/* Body */
.jdsl-shop ul.products li.product .jdsl-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding-top: 14px;
}

.jdsl-shop ul.products li.product .jdsl-card__title {
	margin: 0;
	padding: 0;
	font-family: var(--jd-font);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--jd-black);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.8em;
}

.jdsl-shop ul.products li.product .jdsl-card__title a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.jdsl-shop ul.products li.product.jdsl-card .star-rating {
	margin: 6px auto 0;
	font-size: 12px;
}

.jdsl-shop ul.products li.product.jdsl-card .price {
	display: flex;
	justify-content: center;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0 8px;
	margin: 8px 0 0;
	font-family: var(--jd-font);
	font-size: 15px;
	font-weight: 600;
	color: var(--jd-black);
}

.jdsl-shop ul.products li.product.jdsl-card .price del {
	order: 2;
	font-size: 13px;
	font-weight: 400;
	color: var(--jd-muted);
	opacity: 1;
}

.jdsl-shop ul.products li.product.jdsl-card .price ins {
	order: 1;
	text-decoration: none;
	color: var(--jd-red);
	font-weight: 700;
}

/* Actions: swatches first, then the two buttons on one row. */
.jdsl-shop ul.products li.product .jdsl-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto;
	padding-top: 12px;
}

.jdsl-shop ul.products li.product .jdsl-card__actions > * {
	min-width: 0;
}

.jdsl-shop ul.products li.product .jdsl-card__actions .wvs-archive-variations-wrapper {
	order: -1;
	flex: 1 0 100%;
	margin: 0 0 4px;
}

.jdsl-shop ul.products li.product .jdsl-card__actions .button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	flex: 1 1 0;
	height: 40px;
	margin: 0 !important;
	padding: 0 10px !important;
	border: 1px solid var(--jd-black) !important;
	border-radius: var(--jd-radius) !important;
	background: var(--jd-black) !important;
	color: #fff !important;
	font-family: var(--jd-font) !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-transform: none !important;
	box-shadow: none !important;
	transition: background .15s, color .15s;
}

.jdsl-shop ul.products li.product .jdsl-card__actions .button:hover {
	background: #333 !important;
	border-color: #333 !important;
}

.jdsl-shop ul.products li.product .jdsl-card__actions .button.sp-wqv-view-button {
	background: #fff !important;
	color: var(--jd-black) !important;
}

.jdsl-shop ul.products li.product .jdsl-card__actions .button.sp-wqv-view-button:hover {
	background: var(--jd-black) !important;
	color: #fff !important;
}

.jdsl-shop ul.products li.product .jdsl-card__actions .button.loading {
	opacity: .6;
}

.jdsl-shop ul.products li.product .jdsl-card__actions .added_to_cart {
	flex: 1 0 100%;
	font-size: 13px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Swatches inside cards (variation swatches plugin) */
.jdsl-shop ul.products li.product.jdsl-card .variable-items-wrapper {
	justify-content: center;
	gap: 6px;
	margin: 0 !important;
	padding: 0 !important;
}

.jdsl-shop ul.products li.product.jdsl-card .variable-items-wrapper .variable-item {
	margin: 0 !important;
}

.jdsl-shop ul.products li.product.jdsl-card .variable-items-wrapper .button-variable-item {
	min-width: 32px;
	height: 26px !important;
	padding: 0 6px !important;
	border-radius: 4px !important;
	box-shadow: 0 0 0 1px var(--jd-line) !important;
	background: #fff;
	font-size: 12px;
	color: var(--jd-text);
}

.jdsl-shop ul.products li.product.jdsl-card .variable-items-wrapper .button-variable-item .variable-item-span {
	padding: 0 !important;
}

.jdsl-shop ul.products li.product.jdsl-card .variable-items-wrapper .button-variable-item:hover,
.jdsl-shop ul.products li.product.jdsl-card .variable-items-wrapper .button-variable-item.selected {
	box-shadow: 0 0 0 1px var(--jd-black) !important;
}

.jdsl-shop ul.products li.product.jdsl-card .variable-items-wrapper .color-variable-item {
	width: 20px !important;
	height: 20px !important;
	border-radius: 50% !important;
	padding: 2px !important;
	box-shadow: 0 0 0 1px var(--jd-line) !important;
}

.jdsl-shop ul.products li.product.jdsl-card .variable-items-wrapper .color-variable-item.selected,
.jdsl-shop ul.products li.product.jdsl-card .variable-items-wrapper .color-variable-item:hover {
	box-shadow: 0 0 0 1px var(--jd-black) !important;
}

.jdsl-shop ul.products li.product.jdsl-card .wvs_archive_reset_variations,
.jdsl-shop ul.products li.product.jdsl-card .reset_variations {
	display: inline-block;
	margin-top: 6px;
	font-size: 12px;
	color: var(--jd-muted) !important;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ------------------------------------------------------------------ *
 * Pagination
 * ------------------------------------------------------------------ */

.jdsl-shop .woocommerce-pagination {
	margin-top: 48px;
	text-align: center;
}

.jdsl-shop .woocommerce-pagination ul.page-numbers {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	border: 0 !important;
}

.jdsl-shop .woocommerce-pagination ul.page-numbers li {
	float: none;
	border: 0 !important;
	overflow: visible;
}

.jdsl-shop .woocommerce-pagination ul.page-numbers li .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	border: 1px solid var(--jd-line);
	border-radius: var(--jd-radius);
	font-size: 14px;
	color: var(--jd-text);
	background: #fff;
}

.jdsl-shop .woocommerce-pagination ul.page-numbers li a.page-numbers:hover {
	border-color: var(--jd-black);
	background: #fff;
	color: var(--jd-black);
}

.jdsl-shop .woocommerce-pagination ul.page-numbers li span.current {
	background: var(--jd-black);
	border-color: var(--jd-black);
	color: #fff;
}

.jdsl-shop .woocommerce-pagination ul.page-numbers li span.dots {
	border-color: transparent;
}

/* ------------------------------------------------------------------ *
 * Empty state, description, notices
 * ------------------------------------------------------------------ */

.jdsl-empty {
	margin-top: 28px;
	padding: 56px 24px;
	border: 1px dashed var(--jd-line);
	border-radius: var(--jd-radius);
	text-align: center;
}

.jdsl-empty__title {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: var(--jd-black);
}

.jdsl-empty__text {
	margin: 8px 0 20px;
	color: var(--jd-muted);
}

.jdsl-btn {
	display: inline-flex;
	align-items: center;
	height: 44px;
	padding: 0 22px;
	border-radius: var(--jd-radius);
	background: var(--jd-black);
	color: #fff !important;
	font-size: 14px;
	font-weight: 600;
}

.jdsl-btn:hover {
	background: #333;
}

.jdsl-shop__description {
	max-width: 860px;
	margin-top: 56px;
	padding-top: 28px;
	border-top: 1px solid var(--jd-line);
	font-size: 14px;
	line-height: 1.7;
	color: var(--jd-muted);
}

.jdsl-shop__description .term-description > :first-child,
.jdsl-shop__description .page-description > :first-child {
	margin-top: 0;
}

.jdsl-shop .woocommerce-notices-wrapper:empty {
	display: none;
}

/* While new results load. */
.jdsl-shop__main.is-loading ul.products {
	opacity: .45;
	transition: opacity .2s;
}

/* ------------------------------------------------------------------ *
 * Mobile drawer
 * ------------------------------------------------------------------ */

.jdsl-drawer__head,
.jdsl-drawer__foot,
.jdsl-drawer__overlay,
.jdsl-filters-toggle {
	display: none;
}

.jdsl-filters-toggle {
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 40px;
	padding: 0 16px;
	border: 1px solid var(--jd-black);
	border-radius: var(--jd-radius);
	background: var(--jd-black);
	color: #fff;
	font-family: var(--jd-font);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.jdsl-filters-toggle__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: #fff;
	color: var(--jd-black);
	font-size: 12px;
}

.jdsl-filters-toggle__count[hidden] {
	display: none;
}

/* ------------------------------------------------------------------ *
 * Responsive
 * ------------------------------------------------------------------ */

@media (max-width: 1280px) {
	.jdsl-shop {
		--jd-cols: 3;
		--jd-gap: 32px;
	}
}

@media (max-width: 1024px) {
	.jdsl-shop {
		padding: 24px 24px 56px;
	}

	.jdsl-shop__layout {
		grid-template-columns: 220px minmax(0, 1fr);
	}

	.jdsl-shop ul.products {
		gap: 28px 16px;
	}
}

/* Filters move into the drawer at 768px. */
@media (max-width: 768px) {
	.jdsl-shop {
		--jd-cols: 2;
		padding: 16px 16px 48px;
		font-size: 14px;
	}

	.jdsl-shop__head {
		margin-bottom: 18px;
	}

	.jdsl-shop__cats {
		flex-wrap: nowrap;
		overflow-x: auto;
		margin: 14px -16px 0;
		padding: 0 16px 4px;
		scrollbar-width: none;
	}

	.jdsl-shop__cats::-webkit-scrollbar {
		display: none;
	}

	.jdsl-shop__layout {
		display: block;
	}

	.jdsl-shop__filters {
		position: static;
		max-height: none;
		overflow: visible;
		padding: 0;
	}

	.jdsl-filters-toggle {
		display: inline-flex;
	}

	.jdsl-shop__filters.is-drawer {
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		z-index: 100000;
		display: flex;
		flex-direction: column;
		width: min(88vw, 380px);
		max-height: none;
		padding: 0;
		background: #fff;
		box-shadow: 0 0 40px rgba(0, 0, 0, .18);
		transform: translateX(-105%);
		transition: transform .28s cubic-bezier(.2, .7, .2, 1);
		visibility: hidden;
	}

	.jdsl-shop.is-filters-open .jdsl-shop__filters.is-drawer {
		transform: none;
		visibility: visible;
	}

	.jdsl-shop__filters.is-drawer .jdsl-drawer__head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 16px 20px;
		border-bottom: 1px solid var(--jd-line);
	}

	.jdsl-drawer__title {
		font-size: 16px;
		font-weight: 600;
		color: var(--jd-black);
	}

	.jdsl-drawer__close {
		display: inline-flex;
		padding: 6px;
		margin: -6px;
		border: 0;
		background: none;
		color: var(--jd-black);
		cursor: pointer;
	}

	.jdsl-shop__filters.is-drawer .jdsl-drawer__body {
		flex: 1;
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: 18px 20px;
	}

	.jdsl-shop__filters.is-drawer .jdsl-drawer__foot {
		display: block;
		padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
		border-top: 1px solid var(--jd-line);
	}

	.jdsl-drawer__done {
		width: 100%;
		justify-content: center;
		border: 0;
		cursor: pointer;
		font-family: var(--jd-font);
	}

	.jdsl-shop.is-filters-open .jdsl-drawer__overlay {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 99999;
		background: rgba(0, 0, 0, .35);
	}

	.jdsl-toolbar__actions > .jdsl-filters-toggle {
		flex: 1 1 0;
		min-width: 0;
	}

	.jdsl-toolbar {
		position: sticky;
		top: 0;
		z-index: 20;
		margin: 0 -16px;
		padding: 10px 16px;
		background: #fff;
		gap: 10px;
	}

	.jdsl-toolbar__count {
		order: 2;
		flex: 1 0 100%;
	}

	.jdsl-toolbar__count .woocommerce-result-count {
		font-size: 13px;
	}

	.jdsl-toolbar__actions {
		flex: 1 0 100%;
		flex-wrap: nowrap;
		gap: 10px;
		margin: 0;
	}

	.jdsl-toolbar__actions > .woocommerce-ordering {
		flex: 1 1 0;
		min-width: 0;
	}


	.jdsl-shop .woocommerce-ordering select {
		width: 100%;
		min-width: 0;
	}

	.jdsl-shop ul.products {
		gap: 28px 12px;
		margin-top: 18px !important;
	}

	.jdsl-shop ul.products li.product .jdsl-card__title {
		font-size: 13px;
	}

	.jdsl-shop ul.products li.product.jdsl-card .price {
		font-size: 14px;
	}

	.jdsl-shop ul.products li.product .jdsl-card__actions .button {
		flex: 1 0 100%;
		width: 100%;
		height: 38px;
		font-size: 12px !important;
	}

	.jdsl-badge {
		font-size: 11px;
		padding: 3px 6px;
	}
}

/* ------------------------------------------------------------------ *
 * The base theme colours every <button> on hover/focus (#c36); keep ours
 * in the shop palette.
 * ------------------------------------------------------------------ */

.jdsl-shop .jdsl-filters-toggle:hover,
.jdsl-shop .jdsl-filters-toggle:focus,
.jdsl-shop .jdsl-drawer__done:hover,
.jdsl-shop .jdsl-drawer__done:focus {
	background: #333;
	border-color: #333;
	color: #fff;
}

.jdsl-shop .jdsl-drawer__close:hover,
.jdsl-shop .jdsl-drawer__close:focus {
	background: none;
	color: var(--jd-red);
}

.jdsl-shop .wepcs-btn:focus {
	background: #fff;
	color: var(--jd-text);
}

.jdsl-shop .wepcs-btn.active:hover,
.jdsl-shop .wepcs-btn.active:focus {
	background: var(--jd-black);
	color: #fff;
}

.jdsl-shop .wepcs-btn:hover {
	background: #fff;
	color: var(--jd-black);
}

.jdsl-shop button:focus-visible,
.jdsl-shop a:focus-visible,
.jdsl-shop select:focus-visible {
	outline: 2px solid var(--jd-black);
	outline-offset: 2px;
}
