/* Shop */
/* Canonical shop-archive rules are in the "Shop archive module" section below.
 * Only rules NOT in the canonical block live here. */

/* Space below shop header bar (above the hero/layout area) */
.ds-shop-header {
	margin-bottom: 1.5rem;
}

/* Pagination — scoped to .ds-shop-results to add top margin without touching global Woo styles */
.ds-shop-results .woocommerce-pagination {
	margin-top: 1.3rem;
}

/* Tablet range only (1024px–981px): narrow the sidebar column slightly */
@media (max-width: 1024px) and (min-width: 981px) {
	.ds-shop-layout {
		grid-template-columns: 260px minmax(0, 1fr);
		gap: 1.25rem;
	}

	.ds-filter-card {
		top: 100px;
		padding: 0.9rem;
	}
}

/* Product card grids/badges are centralized in assets/css/components/product-card.css */

/* Categories carousel: enforce horizontal slider layout */
.categories-carousel-section .section-header {
	text-align: center;
	margin: 0 auto 1.55rem;
}

.categories-carousel-section .section-label {
	display: inline-block;
	margin: 0 0 0.42rem;
	color: var(--ds-primary);
	font-size: 0.9rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.categories-carousel-section .section-title {
	margin: 0;
	color: var(--ds-text);
	font-size: clamp(2rem, 4.6vw, 3.25rem);
	line-height: 1.04;
	letter-spacing: -0.02em;
	font-weight: 800;
}

.categories-carousel-section .section-header > p {
	margin: 0.62rem auto 0;
	/* No max-width: carousel subtitle spans full container width so text wraps
	   naturally at any viewport size without clipping the responsive carousel layout. */
	color: var(--ds-muted);
	font-size: 1.02rem;
	line-height: 1.55;
}

.categories-carousel-section .categories-carousel-shell {
	position: relative;
}

.categories-carousel-section .categories-carousel {
	--cards-per-view: 3;
	--carousel-gap: 1rem;
	width: 100%;
	overflow: hidden;
}

.categories-carousel-section .categories-track {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: stretch;
	gap: var(--carousel-gap);
	will-change: transform;
	transition: transform 280ms ease;
}

.categories-carousel-section .category-card {
	flex: 0 0 calc((100% - (var(--carousel-gap) * (var(--cards-per-view) - 1))) / var(--cards-per-view)) !important;
	max-width: calc((100% - (var(--carousel-gap) * (var(--cards-per-view) - 1))) / var(--cards-per-view)) !important;
	width: auto !important;
	min-width: 0 !important;
	display: block;
	position: relative;
	border-radius: 16px;
	background: #12192a;
	border: 1px solid #d8ddd1;
	overflow: hidden;
}

.categories-carousel-section .category-card > img {
	width: 100%;
	height: 100%;
	min-height: 260px;
	object-fit: cover;
	filter: saturate(0.95) brightness(0.92);
}

.categories-carousel-section .category-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(14, 18, 30, 0.2) 0%, rgba(14, 18, 30, 0.52) 56%, rgba(14, 18, 30, 0.84) 100%);
	pointer-events: none;
}

.categories-carousel-section .category-content {
	position: absolute;
	inset: 0;
	z-index: 2;
	padding: 1rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.46rem;
	color: var(--ds-bg);
	text-align: center;
}

.categories-carousel-section .category-content h3 {
	margin: 0;
	color: var(--ds-surface);
	font-size: clamp(1.3rem, 2.4vw, 2rem);
	font-weight: 800;
	line-height: 1.08;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.42);
}

.categories-carousel-section .category-count {
	margin: 0;
	color: rgb(249 249 246 / 0.96) !important;
	font-size: 0.84rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.categories-carousel-section .category-description {
	margin: 0;
	color: rgba(241, 246, 239, 0.92);
	font-size: 0.92rem;
	line-height: 1.45;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.categories-carousel-section .category-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: 0.28rem;
	padding: 0.36rem 0.62rem;
	border-radius: 999px;
	background: rgb(74 125 78 / 0.3);
	border: 1px solid rgba(180, 213, 176, 0.4);
	color: #dff3dd !important;
	font-weight: 700;
	font-size: 0.98rem;
	line-height: 1.1;
	width: max-content;
	margin-left: auto;
	margin-right: auto;
	text-shadow: none;
}

.categories-carousel-section .category-link svg {
	width: 18px;
	height: 18px;
}

.categories-carousel-section .category-card:hover .category-link,
.categories-carousel-section .category-card:focus-visible .category-link {
	background: rgb(74 125 78 / 0.44);
	color: var(--ds-surface) !important;
}

.categories-carousel-section .categories-carousel-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border-radius: 999px;
	border: 1px solid #d6ddd1;
	background: rgb(249 249 246 / 0.96);
	color: var(--ds-text);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	z-index: 3;
	box-shadow: 0 6px 14px rgb(34 34 59 / 0.14);
}

.categories-carousel-section .categories-carousel-nav.prev {
	left: -12px;
}

.categories-carousel-section .categories-carousel-nav.next {
	right: -12px;
}

.categories-carousel-section .categories-carousel-nav:hover,
.categories-carousel-section .categories-carousel-nav:focus-visible {
	background: var(--ds-primary);
	color: var(--ds-surface);
	border-color: var(--ds-primary);
	outline: none;
}

.categories-carousel-section .categories-carousel-nav[disabled] {
	opacity: 0.42;
	pointer-events: none;
}

.categories-carousel-section .categories-carousel-dots {
	display: flex;
	justify-content: center;
	gap: 0.4rem;
	margin-top: 0.85rem;
}

.categories-carousel-section .categories-carousel-dot {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	border: 0;
	background: #c8d2c3;
}

.categories-carousel-section .categories-carousel-dot.is-active {
	background: var(--ds-primary);
}

.categories-carousel-section .categories-carousel-dots.hidden {
	display: none !important;
}

@media (max-width: 1100px) {
	.categories-carousel-section .categories-carousel {
		--cards-per-view: 2;
	}
}

@media (max-width: 680px) {
	.categories-carousel-section .categories-carousel {
		--cards-per-view: 1;
	}

	.categories-carousel-section .categories-carousel-nav {
		width: 34px;
		height: 34px;
	}

	.categories-carousel-section .categories-carousel-nav.prev {
		left: 4px;
	}

	.categories-carousel-section .categories-carousel-nav.next {
		right: 4px;
	}
}

/* Front-page featured product tabs: mobile usability + overflow control */
@media (max-width: 980px) {
	.products-section .product-tabs {
		display: flex;
		flex-wrap: nowrap;
		gap: 0.5rem;
		width: 100%;
		max-width: 100%;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
		padding: 0.2rem 0 0.4rem;
		margin: 0;
	}

	.products-section .product-tabs::-webkit-scrollbar {
		height: 6px;
	}

	.products-section .product-tabs .tab-btn {
		flex: 0 0 auto;
		min-height: 40px;
		padding: 0.55rem 0.85rem;
		font-size: 0.88rem;
		line-height: 1.2;
		white-space: nowrap;
	}

	.products-section .product-tabs .tab-btn .count {
		display: inline-flex;
		margin-left: 0.25rem;
		font-size: 0.8em;
	}

	.products-section .section-header {
		overflow: hidden;
	}

	.products-section .product-tabs-meta {
		margin-top: 0.6rem;
		padding: 0.72rem 0.82rem;
	}

	.products-section .product-tabs-meta-desc {
		font-size: 0.9rem;
		line-height: 1.42;
	}
}

@media (max-width: 640px) {
	.hero {
		min-height: 200px;
		height: 200px;
	}

	.hero .container {
		padding: 0.5rem 0.75rem;
		gap: 0;
	}

	.hero-content {
		padding: 0.5rem 0.6rem;
	}

	.hero-particles {
		display: none;
	}

	.hero-badge {
		display: none;
	}

	.hero-title {
		font-size: clamp(1.15rem, 5vw, 1.5rem) !important;
		margin-bottom: 0.4rem;
	}

	.hero-subtitle {
		font-size: 0.78rem;
		margin-bottom: 0.6rem;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.hero-cta {
		gap: 0.4rem;
	}

	.hero-cta a,
	.hero-cta .btn-hero-primary,
	.hero-cta .btn-hero-secondary {
		min-height: 2rem;
		padding: 0.5rem 0.75rem;
		font-size: 0.8rem;
	}

	.products-section .product-tabs {
		gap: 0.42rem;
		padding-bottom: 0.35rem;
	}

	.products-section .product-tabs .tab-btn {
		min-height: 38px;
		padding: 0.5rem 0.74rem;
		font-size: 0.84rem;
	}
}

/* Shop archive module */
	.ds-shop-page {
		--ds-surface-2: #f3f5f2;
		--ds-border-soft: #ecece4;
		--ds-accent: var(--ds-primary);
		--ds-accent-soft: #e8f2e8;
		--ds-radius: 14px;
		width: calc(100% - 1.5rem);
		max-width: 1520px;
		margin: 0 auto;
		padding: 0.95rem 0.25rem 3.2rem;
		color: var(--ds-text);
	}

	.ds-shop-page a {
		color: inherit;
	}

	.ds-shop-page a:focus-visible,
	.ds-shop-page button:focus-visible,
	.ds-shop-page input:focus-visible,
	.ds-shop-page select:focus-visible {
		outline: 2px solid var(--ds-primary);
		outline-offset: 2px;
	}

	.ds-shop-hero {
		background:
			radial-gradient(120% 150% at 100% 0%, rgb(74 125 78 / 0.14) 0%, transparent 58%),
			radial-gradient(90% 120% at 0% 100%, rgba(196, 167, 125, 0.12) 0%, transparent 60%),
			var(--ds-surface);
		border: 1px solid var(--ds-border);
		border-radius: calc(var(--ds-radius) + 6px);
		padding: 2rem;
		box-shadow: 0 10px 24px rgb(34 34 59 / 0.06);
	}

	.ds-shop-hero-inner {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 210px;
		gap: 1.5rem;
		align-items: start;
	}

	.ds-shop-kicker {
		display: inline-flex;
		align-items: center;
		gap: 0.45rem;
		padding: 0.35rem 0.7rem;
		background: rgb(74 125 78 / 0.14);
		border-radius: 999px;
		font-size: 0.76rem;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		font-weight: 700;
		color: var(--ds-primary-dark);
	}

	.ds-shop-title {
		font-size: clamp(2rem, 3.2vw, 3rem);
		line-height: 1.02;
		margin: 0.92rem 0 0.72rem;
		letter-spacing: -0.02em;
		color: var(--ds-text);
	}

	.ds-shop-subtitle {
		margin: 0;
		font-size: 1.02rem;
		line-height: 1.7;
		color: var(--ds-muted);
		max-width: 68ch;
	}

	.ds-shop-insights {
		display: flex;
		flex-wrap: wrap;
		gap: 0.45rem;
		margin-top: 0.82rem;
	}

	.ds-shop-insights span {
		display: inline-flex;
		align-items: center;
		padding: 0.32rem 0.58rem;
		border-radius: 999px;
		border: 1px solid #d5e2d6;
		background: rgba(255, 255, 255, 0.9);
		font-size: 0.74rem;
		font-weight: 700;
		letter-spacing: 0.04em;
		text-transform: uppercase;
		color: var(--ds-primary-dark);
	}

	.ds-shop-quicklinks {
		display: flex;
		flex-wrap: wrap;
		gap: 0.6rem;
		margin-top: 1.1rem;
	}

	.ds-shop-quicklinks a {
		text-decoration: none;
		padding: 0.5rem 0.82rem;
		border-radius: 999px;
		border: 1px solid var(--ds-border);
		background: #fff;
		color: var(--ds-text);
		font-weight: 600;
		font-size: 0.85rem;
		transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
	}

	.ds-shop-quicklinks a:hover,
	.ds-shop-quicklinks a:focus-visible {
		background: #f3f8f3;
		border-color: rgb(74 125 78 / 0.35);
		color: var(--ds-primary-dark);
	}

	.ds-shop-quicklinks a.is-active {
		background: var(--ds-primary);
		border-color: var(--ds-primary);
		color: #fff;
	}

	.ds-stat-card {
		background: linear-gradient(160deg, #f6faf6 0%, #eef5ee 70%, #fbf9f2 100%);
		border: 1px solid #d7e4d8;
		border-radius: var(--ds-radius);
		padding: 1.1rem;
		display: grid;
		gap: 0.32rem;
		min-height: 100%;
		align-content: center;
		text-align: center;
	}

	.ds-stat-value {
		font-size: 1.9rem;
		line-height: 1;
		font-weight: 800;
		color: var(--ds-primary-dark);
	}

	.ds-stat-label {
		font-size: 0.79rem;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: 0.08em;
		color: var(--ds-muted);
	}

	.ds-active-filters {
		margin-top: 1.1rem;
		display: flex;
		flex-wrap: wrap;
		gap: 0.55rem;
		align-items: center;
	}

	.ds-active-filters-title {
		font-size: 0.82rem;
		color: #50604d;
		font-weight: 700;
	}

	.ds-filter-chip {
		display: inline-flex;
		align-items: center;
		gap: 0.45rem;
		padding: 0.35rem 0.4rem 0.35rem 0.62rem;
		border-radius: 999px;
		background: #ecf5ea;
		border: 1px solid #bfd5c0;
		font-size: 0.8rem;
		color: #2f4735;
	}

	.ds-filter-chip a {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 1.2rem;
		height: 1.2rem;
		border-radius: 999px;
		background: rgba(47, 103, 67, 0.16);
		text-decoration: none;
		font-weight: 700;
		line-height: 1;
		font-size: 0.82rem;
	}

	.ds-filter-chip-clear-all {
		margin-left: auto;
		font-size: 0.8rem;
		font-weight: 700;
		color: #355b3f;
		text-decoration: none;
	}

	.ds-mobile-filter-toggle {
		display: none;
	}

	.ds-shop-layout {
		display: grid;
		grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
		gap: 1.15rem;
		margin-top: 1.15rem;
		align-items: start;
	}

	.ds-discovery {
		margin-top: 0.78rem;
		background: var(--ds-surface);
		border: 1px solid var(--ds-border);
		border-radius: calc(var(--ds-radius) + 4px);
		padding: 0.78rem;
		box-shadow: 0 8px 20px rgb(34 34 59 / 0.05);
	}

	.ds-discovery-head {
		display: flex;
		align-items: flex-end;
		justify-content: space-between;
		gap: 0.8rem;
		margin-bottom: 0.8rem;
	}

	.ds-discovery-head h2 {
		margin: 0;
		font-size: 1.18rem;
		color: var(--ds-text);
		font-weight: 800;
	}

	.ds-discovery-head p {
		margin: 0;
		font-size: 0.86rem;
		color: var(--ds-muted);
	}

	.ds-discovery-grid {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 0.82rem;
	}

	.ds-discovery-card {
		position: relative;
		min-height: 165px;
		border-radius: 14px;
		border: 1px solid #d9ddd7;
		overflow: hidden;
		text-decoration: none;
		color: #fff;
		display: grid;
		align-items: end;
		box-shadow: 0 8px 16px rgb(34 34 59 / 0.08);
	}

	.ds-discovery-card-media {
		position: absolute;
		inset: 0;
		overflow: hidden;
		background: linear-gradient(135deg, #5f9366 0%, var(--ds-primary) 40%, var(--ds-primary-dark) 100%);
	}

	.ds-discovery-card-media::after {
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(165deg, rgba(47, 103, 67, 0.52) 0%, rgba(24, 29, 28, 0.42) 100%);
		pointer-events: none;
	}

	.ds-discovery-card-img {
		width: 100%;
		height: 100%;
		display: block;
		object-fit: cover;
		object-position: center;
		transition: transform 0.22s ease, filter 0.22s ease;
	}

	.ds-discovery-card:hover .ds-discovery-card-img {
		transform: scale(1.05);
		filter: saturate(1.06);
	}

	.ds-discovery-card-content {
		position: relative;
		z-index: 1;
		padding: 0.88rem;
		display: grid;
		gap: 0.15rem;
	}

	.ds-discovery-card-title {
		font-size: 1.34rem;
		line-height: 1.1;
		font-weight: 700;
		text-wrap: balance;
		color: var(--ds-bg);
		text-shadow: 0 2px 8px rgba(0, 0, 0, 0.26);
	}

	.ds-discovery-card-meta {
		font-size: 0.78rem;
		text-transform: uppercase;
		letter-spacing: 0.08em;
		opacity: 0.96;
		color: rgb(249 249 246 / 0.92);
	}

	.ds-brand-strip {
		margin-top: 0.95rem;
		padding-top: 0.95rem;
		border-top: 1px solid var(--ds-border-soft);
	}

	.ds-brand-strip-title {
		margin: 0 0 0.62rem;
		font-size: 0.86rem;
		font-weight: 700;
		color: var(--ds-primary-dark);
		text-transform: uppercase;
		letter-spacing: 0.07em;
	}

	.ds-brand-list {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(92px, 110px));
		justify-content: center;
		gap: 0.45rem 0.55rem;
	}

	.mobile-category-chips {
		display: none;
	}

	.ds-brand-item {
		text-decoration: none;
		color: var(--ds-text);
		display: grid;
		justify-items: center;
		gap: 0.38rem;
		transition: color 0.18s ease;
	}

	.ds-brand-badge {
		width: 110px;
		height: 54px;
		border-radius: 12px;
		border: 1px solid #dbe4dc;
		background:
			linear-gradient(165deg, rgb(74 125 78 / 0.08) 0%, rgb(74 125 78 / 0.02) 100%),
			var(--ds-bg);
		display: grid;
		place-items: center;
		overflow: hidden;
		font-size: 0.82rem;
		font-weight: 700;
		color: var(--ds-primary-dark);
		transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
	}

	.ds-brand-badge img {
		width: 84%;
		height: 70%;
		object-fit: contain;
		object-position: center;
	}

	/* Taxonomy archives already represent a selected category/brand; hide redundant discovery rail. */
	.ds-shop-page--taxonomy .ds-discovery {
		display: none;
	}

	.ds-brand-name {
		font-size: 0.8rem;
		font-weight: 600;
		color: var(--ds-text);
		text-align: center;
		text-wrap: balance;
	}

	.ds-brand-item:hover .ds-brand-badge,
	.ds-brand-item:focus-visible .ds-brand-badge {
		transform: translateY(-2px);
		border-color: var(--ds-primary);
		box-shadow: 0 8px 16px rgb(74 125 78 / 0.16);
	}

	.ds-brand-item:hover .ds-brand-name,
	.ds-brand-item:focus-visible .ds-brand-name {
		color: var(--ds-primary-dark);
	}

	.ds-shop-sidebar {
		position: sticky;
		top: 1rem;
	}

	.ds-filter-card {
		background: linear-gradient(180deg, var(--ds-surface) 0%, #fcfdfb 100%);
		border: 1px solid var(--ds-border);
		border-radius: 14px;
		padding: 1rem;
		display: grid;
		gap: 0;
		box-shadow: 0 8px 18px rgb(34 34 59 / 0.05);
	}

	.ds-active-filters--inline {
		margin-top: 0.9rem;
		margin-bottom: 0.25rem;
	}

	.ds-filter-header {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding-bottom: 1.2rem;
		border-bottom: none;
		margin-bottom: 1.5rem;
	}

	.ds-filter-header h2 {
		margin: 0;
		font-size: 1.05rem;
		font-weight: 700;
		letter-spacing: -0.01em;
	}

	.ds-filter-header a {
		font-size: 0.75rem;
		color: #666;
		font-weight: 600;
		text-decoration: none;
		transition: color 0.15s ease;
	}

	.ds-filter-header a:hover {
		color: var(--ds-text);
	}

	.ds-filter-group {
		border: none;
		border-radius: 0;
		padding: 1rem 0;
		background: transparent;
		border-bottom: 1px solid #f0f0ed;
	}

	.ds-filter-group:last-of-type {
		border-bottom: none;
	}

	.ds-filter-group h3,
	.ds-filter-group summary {
		margin: 0 0 0.8rem 0;
		font-size: 0.75rem;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: 0.1em;
		color: #666;
	}

	.ds-filter-group summary {
		cursor: pointer;
		list-style: none;
	}

	.ds-filter-group summary::-webkit-details-marker {
		display: none;
	}

	/* Firefox: remove default disclosure triangle from summary elements */
	.ds-filter-group summary::marker {
		display: none;
	}

	.ds-filter-search {
		display: grid;
		gap: 0.5rem;
		margin-bottom: 1.5rem;
	}

	.ds-filter-search label {
		font-size: 0.75rem;
		color: #666;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: 0.1em;
	}

	.ds-price-grid {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0.65rem;
		margin-top: 0.85rem;
	}

	.ds-price-grid label {
		display: grid;
		gap: 0.4rem;
	}

	.ds-price-grid span {
		font-size: 0.75rem;
		color: #666;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: 0.1em;
	}

	.ds-filter-card input[type="number"],
	.ds-filter-card input[type="search"] {
		width: 100%;
		border-radius: 8px;
		border: 1px solid #e8e6e1;
		padding: 0.65rem 0.75rem;
		font-size: 16px;
		background: #fefdfb;
		color: var(--ds-text);
		transition: border-color 0.15s ease, background 0.15s ease;
	}

	.ds-filter-card input[type="number"]:focus,
	.ds-filter-card input[type="search"]:focus {
		outline: none;
		border-color: var(--ds-accent);
		background: #fff;
	}

	.ds-checkbox-list {
		display: grid;
		gap: 0.65rem;
		padding-top: 0;
	}

	.ds-checkbox-list label {
		display: flex;
		gap: 0.65rem;
		align-items: center;
		font-size: 0.92rem;
		color: var(--ds-text);
		cursor: pointer;
		font-weight: 400;
		user-select: none;
	}

	.ds-checkbox-list input[type="checkbox"],
	.ds-checkbox-list input[type="radio"] {
		appearance: none;
		-webkit-appearance: none;
		width: 18px;
		height: 18px;
		cursor: pointer;
		flex-shrink: 0;
		border: 1.75px solid #c8c8c0;
		border-radius: 5px;
		background: #fff;
		transition: border-color 0.15s ease, background 0.15s ease;
	}

	.ds-checkbox-list input[type="radio"] {
		border-radius: 50%;
	}

	.ds-checkbox-list input[type="checkbox"]:checked,
	.ds-checkbox-list input[type="radio"]:checked {
		background: var(--ds-accent);
		border-color: var(--ds-accent);
	}

	.ds-checkbox-list input[type="checkbox"]:checked {
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M3 8l3.5 3.5L13 4'/%3E%3C/svg%3E");
		background-repeat: no-repeat;
		background-position: center;
		background-size: 10px;
	}

	.ds-checkbox-list input[type="radio"]:checked {
		box-shadow: inset 0 0 0 3.5px #fff;
	}

	.ds-checkbox-list input[type="checkbox"]:focus-visible,
	.ds-checkbox-list input[type="radio"]:focus-visible {
		outline: 2px solid var(--ds-primary);
		outline-offset: 2px;
	}

	.ds-checkbox-list input[type="checkbox"]:hover:not(:checked),
	.ds-checkbox-list input[type="radio"]:hover:not(:checked) {
		border-color: var(--ds-accent);
	}

	.ds-checkbox-list label:hover {
		color: var(--ds-accent);
	}

	.ds-filter-apply {
		border: 0;
		border-radius: 10px;
		background: var(--ds-accent);
		color: #fff;
		font-weight: 700;
		font-size: 0.92rem;
		padding: 0.75rem 1.2rem;
		cursor: pointer;
		transition: background 0.2s ease;
		width: 100%;
		margin-top: 1.5rem;
	}

	.ds-filter-apply:hover,
	.ds-filter-apply:focus-visible {
		background: var(--ds-primary-dark);
	}
	.ds-shop-results {
		background: transparent;
		border: 0;
		border-radius: 0;
		padding: 0;
		box-shadow: none;
		transition: opacity 0.18s ease;
	}

	.ds-shop-results.is-loading {
		opacity: 0.55;
		pointer-events: none;
	}

	/* Legacy product-card block removed; canonical rules live in product-card.css */

	.woocommerce nav.woocommerce-pagination ul {
		border: 0 !important;
		display: flex;
		gap: 0.42rem;
		padding-top: 0.5rem;
	}

	.woocommerce nav.woocommerce-pagination ul li {
		border: 0 !important;
	}

	.woocommerce nav.woocommerce-pagination ul li a,
	.woocommerce nav.woocommerce-pagination ul li span {
		border: 1px solid var(--ds-border) !important;
		border-radius: 9px;
		min-width: 2rem;
		height: 2rem;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.woocommerce nav.woocommerce-pagination ul li span.current {
		background: var(--ds-accent);
		color: #fff;
		border-color: var(--ds-accent) !important;
	}

	@media (max-width: 980px) {
		.ds-shop-layout {
			grid-template-columns: 1fr;
		}

		.ds-shop-sidebar {
			position: static;
			display: none;
		}

		.ds-shop-sidebar.is-open {
			display: block;
		}

		.ds-mobile-filter-toggle {
			position: sticky;
			top: calc(var(--ds-banner-height, 0px) + var(--ds-header-height, 56px) + 8px);
			z-index: var(--ds-z-header-mobile, 1150);
			display: inline-flex;
			align-items: center;
			justify-content: center;
			width: 100%;
			border: 1px solid var(--ds-border);
			background: #fff;
			border-radius: 12px;
			padding: 0.72rem;
			margin-bottom: 0.82rem;
			font-weight: 700;
			color: #2b3f30;
		}

		/* Product grid breakpoints are handled in product-card.css */

		.ds-discovery-grid {
			grid-template-columns: repeat(2, minmax(0, 1fr));
		}

		.ds-brand-list.ds-brand-carousel {
			display: flex;
			flex-wrap: nowrap;
			justify-content: flex-start;
			gap: 0.55rem;
			overflow-x: auto;
			overflow-y: hidden;
			padding-bottom: 0.25rem;
			-webkit-overflow-scrolling: touch;
			scroll-snap-type: x proximity;
		}

		.ds-brand-list.ds-brand-carousel .ds-brand-item {
			flex: 0 0 auto;
			scroll-snap-align: start;
		}
	}

	@media (max-width: 767px) {
		.ds-shop-page {
			width: calc(100% - 1rem);
			padding: 0.88rem 0 1.7rem;
		}

		.ds-shop-hero,
		.ds-shop-results,
		.ds-filter-card {
			padding: 0.82rem;
		}

		.ds-shop-hero-inner {
			grid-template-columns: 1fr;
		}

		.ds-shop-title {
			font-size: 1.58rem;
		}

		/* Product card image/grid mobile behavior is centralized in product-card.css */

		.ds-discovery-head {
			display: grid;
			grid-template-columns: 1fr;
			gap: 0.2rem;
			margin-bottom: 0.45rem;
		}

		.ds-discovery-head h2 {
			font-size: 1rem;
		}

		.ds-discovery-head p {
			display: none;
		}

		.shop-category-banners {
			display: none;
		}

		.mobile-category-chips {
			display: flex;
			flex-wrap: nowrap;
			gap: 0.45rem;
			overflow-x: auto;
			overflow-y: hidden;
			padding-bottom: 0.12rem;
			-webkit-overflow-scrolling: touch;
			scroll-snap-type: x proximity;
		}

		.mobile-category-chip {
			flex: 0 0 auto;
			display: inline-flex;
			align-items: center;
			gap: 0.38rem;
			min-height: 2.25rem;
			padding: 0.38rem 0.85rem;
			border: 1px solid rgb(var(--ds-primary-rgb) / 0.28);
			border-radius: 999px;
			background: var(--ds-surface);
			color: var(--ds-primary-dark);
			font-size: 0.83rem;
			font-weight: 600;
			text-decoration: none;
			scroll-snap-align: start;
			white-space: nowrap;
			box-shadow: 0 1px 3px rgb(34 34 59 / 0.06);
			transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
		}

		.mobile-category-chip:hover,
		.mobile-category-chip:focus-visible {
			background: rgb(var(--ds-primary-rgb) / 0.1);
			border-color: var(--ds-primary);
			box-shadow: 0 3px 8px rgb(var(--ds-primary-rgb) / 0.14);
			outline: none;
		}

		.mobile-category-chip__label {
			white-space: nowrap;
		}

		/* Count badge shown after chip label */
		.mobile-category-chip__count {
			display: inline-flex;
			align-items: center;
			justify-content: center;
			min-width: 1.25rem;
			height: 1.25rem;
			padding: 0 0.28rem;
			border-radius: 999px;
			background: rgb(var(--ds-primary-rgb) / 0.12);
			font-size: 0.7rem;
			font-weight: 700;
			color: var(--ds-primary-dark);
			line-height: 1;
		}

		.ds-brand-badge {
			width: 96px;
			height: 48px;
		}
	}

/* --------------------------------------------------------------------------
 * Shop Stabilization: canonical width/layout overrides.
 * This block intentionally wins over duplicate shop rules in style.css.
 * -------------------------------------------------------------------------- */
body.post-type-archive-product #primary.content-area,
body.tax-product_cat #primary.content-area,
body.tax-product_brand #primary.content-area {
	width: 100% !important;
	max-width: 100% !important;
}

body.post-type-archive-product .content-container.site-container,
body.tax-product_cat .content-container.site-container,
body.tax-product_brand .content-container.site-container {
	width: min(1680px, calc(100vw - 1.5rem)) !important;
	max-width: min(1680px, calc(100vw - 1.5rem)) !important;
	margin-inline: auto !important;
	padding-inline: 0 !important;
}

body.post-type-archive-product #main.site-main.woocommerce,
body.tax-product_cat #main.site-main.woocommerce,
body.tax-product_brand #main.site-main.woocommerce {
	width: 100% !important;
	max-width: 100% !important;
}

body.post-type-archive-product .ds-shop-page,
body.tax-product_cat .ds-shop-page,
body.tax-product_brand .ds-shop-page {
	width: 100% !important;
	max-width: 100% !important;
	margin-inline: 0 !important;
	padding-inline: 0.35rem !important;
}

@media (max-width: 980px) {
	body.post-type-archive-product .content-container.site-container,
	body.tax-product_cat .content-container.site-container,
	body.tax-product_brand .content-container.site-container {
		width: calc(100vw - 1rem) !important;
		max-width: calc(100vw - 1rem) !important;
	}
}

/* Legacy duplicated product-card systems removed.
 * Canonical grid/card styles now live in assets/css/components/product-card.css.
 */

/* Filter chip focus ring */
.ds-filter-chip:focus-within {
	outline: 2px solid var(--ds-primary, #4a7d4e);
	outline-offset: 2px;
}

/* Sort / per-page selects */
.ds-shop-controls__actions label {
	display: inline-flex;
	align-items: center;
	gap: 0.42rem;
	font-size: 0.84rem;
	font-weight: 600;
	color: var(--ds-muted);
	white-space: nowrap;
}

.ds-shop-controls__actions label span {
	font-size: 0.82rem;
}

.ds-shop-controls__actions select {
	appearance: none;
	-webkit-appearance: none;
	padding: 0.4rem 2rem 0.4rem 0.68rem;
	border: 1px solid var(--ds-border);
	border-radius: 8px;
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%237C7C8A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.58rem center;
	background-size: 12px;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--ds-text);
	cursor: pointer;
	transition: border-color 0.15s ease;
}

.ds-shop-controls__actions select:hover {
	border-color: var(--ds-primary);
}

.ds-shop-controls__actions select:focus-visible {
	outline: 2px solid var(--ds-primary);
	outline-offset: 2px;
	border-color: var(--ds-primary);
}

/* Search autocomplete: keyboard-active suggestion */
.ds-search-suggestion.is-keyboard-active {
	background: #f2f7f2;
	outline: 2px solid var(--ds-primary);
	outline-offset: -2px;
}

/* Search autocomplete: query match highlight */
.ds-search-highlight {
	background: transparent;
	color: inherit;
	font-weight: 800;
	text-decoration: underline;
	text-decoration-color: var(--ds-accent);
	text-underline-offset: 2px;
	text-decoration-thickness: 1.5px;
}

/* WC OVERRIDE - Product grid responsive layout
   Original: WooCommerce default product grid layout
   WC version: 9.x
   Reason: Ensure product grids adapt properly on mobile without horizontal overflow
   Risk: Low - Layout fix for mobile UX */
@media (max-width: 980px) {
	/* WC OVERRIDE
	   Selector:  .woocommerce ul.products
	   Reason:    Remove minimum width constraint on mobile product grids
	   WC ver:    9.x */
	.woocommerce ul.products,
	.woocommerce-page ul.products {
		min-width: 0;
	}
}

/* WC OVERRIDE - Category carousel image responsiveness
   Original: Custom category carousel component
   WC version: N/A (custom component)
   Reason: Ensure category card images have minimum height on mobile
   Risk: Low - Visual improvement */
@media (max-width: 980px) {
	.categories-carousel-section .category-card > img {
		min-height: 220px;
	}
}
