.dps-shop {
	--dps-accent: #08246b;
	--dps-ink: #111827;
	--dps-muted: #8a94a6;
	--dps-border: #e6e9ef;
	--dps-panel: #fff;
	--dps-soft: #f6f8fb;
	--dps-layout-gap: 36px;
	--dps-grid-gap: 24px;
	--dps-columns: 3;
	color: var( --dps-ink );
	font-family: inherit;
}

.dps-shop-layout {
	display: grid;
	grid-template-columns: minmax( 220px, 280px ) minmax( 0, 1fr );
	align-items: start;
	gap: var( --dps-layout-gap );
}

.dps-filter-panel {
	position: sticky;
	top: 32px;
	padding: 24px 22px 26px;
	border: 1px solid var( --dps-border );
	border-radius: 16px;
	background: var( --dps-panel );
	box-shadow: 0 12px 32px rgba( 16, 24, 40, 0.04 );
}

.dps-filter-panel__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin: 0 -22px 22px;
	padding: 0 22px 24px;
	border-bottom: 1px solid var( --dps-border );
}

.dps-filter-panel__title {
	margin: 0;
	color: #112049;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
}

.dps-filter-panel__subtitle {
	margin: 3px 0 0;
	color: var( --dps-muted );
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1.4;
	text-transform: uppercase;
}

.dps-filter-panel__reset {
	flex: 0 0 auto;
	min-height: 24px;
	padding: 6px 10px;
	border: 0;
	border-radius: 5px;
	background: var( --dps-accent );
	color: #fff;
	cursor: pointer;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.04em;
	line-height: 1;
	text-transform: uppercase;
}

.dps-filter-group + .dps-filter-group {
	margin-top: 24px;
}

.dps-filter-group__heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
	color: #112049;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.12em;
	line-height: 1.2;
	text-transform: uppercase;
}

.dps-filter-group__options {
	display: grid;
	gap: 10px;
}

.dps-check {
	display: grid;
	grid-template-columns: 16px minmax( 0, 1fr );
	align-items: center;
	gap: 11px;
	color: #5f6877;
	cursor: pointer;
	font-size: 15px;
	line-height: 1.25;
}

.dps-check__input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.dps-check__box {
	width: 16px;
	height: 16px;
	border: 1px solid #d1d6de;
	border-radius: 4px;
	background: #fff;
	box-shadow: inset 0 0 0 2px #fff;
}

.dps-check__input:checked + .dps-check__box {
	border-color: var( --dps-accent );
	background: var( --dps-accent );
}

.dps-check__input:focus-visible + .dps-check__box,
.dps-filter-panel__reset:focus-visible,
.dps-pagination__button:focus-visible,
.dps-product-card__cart:focus-visible {
	outline: 2px solid #34d3e8;
	outline-offset: 2px;
}

.dps-price-range__sliders {
	position: relative;
	height: 22px;
	margin-top: 4px;
}

.dps-price-range__sliders::before {
	position: absolute;
	top: 10px;
	right: 0;
	left: 0;
	height: 4px;
	border-radius: 999px;
	background: #dde2e9;
	content: "";
}

.dps-price-range input[type="range"] {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 22px;
	margin: 0;
	background: transparent;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}

.dps-price-range input[type="range"]::-webkit-slider-thumb {
	width: 16px;
	height: 16px;
	border: 3px solid var( --dps-accent );
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	pointer-events: auto;
	-webkit-appearance: none;
	appearance: none;
}

.dps-price-range input[type="range"]::-moz-range-thumb {
	width: 12px;
	height: 12px;
	border: 3px solid var( --dps-accent );
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	pointer-events: auto;
}

.dps-price-range__fields {
	display: grid;
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	gap: 8px;
	margin-top: 10px;
}

.dps-price-range__fields label {
	display: grid;
	gap: 4px;
	color: var( --dps-muted );
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
}

.dps-price-range__fields input {
	width: 100%;
	min-height: 34px;
	padding: 7px 8px;
	border: 1px solid var( --dps-border );
	border-radius: 6px;
	color: #263246;
	font-size: 13px;
}

.dps-price-range__labels {
	display: flex;
	justify-content: space-between;
	margin-top: 8px;
	color: var( --dps-muted );
	font-size: 11px;
	font-weight: 700;
}

.dps-shop-main {
	min-width: 0;
}

.dps-results-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 28px;
}

.dps-results-header__title {
	margin: 0;
	color: #172033;
	font-size: 22px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.25;
}

.dps-results-header__title strong,
.dps-results-header__title b {
	font-weight: 800;
}

.dps-results-header__subtitle {
	margin: 4px 0 0;
	color: #8a94a6;
	font-size: 14px;
	line-height: 1.35;
}

.dps-products-grid {
	display: grid;
	grid-template-columns: repeat( var( --dps-columns ), minmax( 0, 1fr ) );
	gap: var( --dps-grid-gap );
}

.dps-product-card {
	display: flex;
	min-width: 0;
	min-height: 100%;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var( --dps-border );
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 24px rgba( 16, 24, 40, 0.04 );
}

.dps-product-card__media {
	display: block;
	margin: 16px 16px 0;
	overflow: hidden;
	border-radius: 10px;
	background: linear-gradient( 135deg, #d7eef2 0%, #f6eddc 100% );
	aspect-ratio: 1 / 1;
}

.dps-product-card__image,
.dps-product-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 180ms ease;
}

.dps-product-card:hover .dps-product-card__image,
.dps-product-card:hover .dps-product-card__media img {
	transform: scale( 1.03 );
}

.dps-product-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 18px 16px 16px;
}

.dps-product-card__title {
	margin: 0 0 16px;
	color: #1b2333;
	font-size: 17px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.35;
}

.dps-product-card__title a {
	color: inherit;
	text-decoration: none;
}

.dps-product-card__meta {
	display: block;
	margin-top: auto;
	color: #a0a9b8;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
}

.dps-product-card__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 7px;
}

.dps-product-card__price {
	flex: 1 1 auto;
	min-width: 0;
	color: var( --dps-accent );
	font-size: 20px;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.2;
}

.dps-product-card__price del {
	color: #8a94a6;
	font-size: 0.78em;
	font-weight: 600;
}

.dps-product-card__price ins {
	text-decoration: none;
}

.dps-product-card__cart {
	position: relative;
	display: inline-flex;
	width: 38px;
	min-width: 38px;
	height: 38px;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: var( --dps-accent );
	color: #fff;
	font-size: 0;
	line-height: 1;
	text-decoration: none;
	box-shadow: 0 10px 20px rgba( 8, 36, 107, 0.24 );
}

.dps-product-card__cart svg {
	width: 19px;
	height: 19px;
	fill: currentColor;
}

.dps-product-card__cart.loading {
	opacity: 0.72;
}

.dps-product-card__cart.added {
	background: #027a48;
}

.dps-product-card__cart--options {
	flex: 1 1 100%;
	width: 100%;
	min-width: 92px;
	padding: 0 14px;
	background: #f3f6fb;
	color: var( --dps-accent );
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: uppercase;
	box-shadow: 0 8px 18px rgba( 16, 24, 40, 0.08 );
}

.dps-product-card__cart--options:hover,
.dps-product-card__cart--options:focus {
	background: var( --dps-accent );
	color: #fff;
}

.dps-product-card__cart-label {
	display: inline-block;
	max-width: 104px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dps-product-card__cart.added::after,
.dps-product-card__cart.added::before,
.dps-product-card__cart.loading::after,
.dps-product-card__cart.loading::before {
	display: none;
	content: none;
}

.dps-product-card__footer .added_to_cart {
	display: inline-flex;
	height: 38px;
	min-height: 38px;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0 15px;
	border: 1px solid rgba( 8, 36, 107, 0.12 );
	border-radius: 12px;
	background: #f3f6fb;
	color: var( --dps-accent );
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 38px;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	box-shadow: 0 8px 18px rgba( 16, 24, 40, 0.08 );
}

.woocommerce .dps-product-card__footer a.added_to_cart,
.dps-product-card__footer a.added_to_cart {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.dps-product-card__footer .added_to_cart::after {
	display: none;
	content: none;
}

.dps-product-card__footer .added_to_cart:hover,
.dps-product-card__footer .added_to_cart:focus {
	background: var( --dps-accent );
	color: #fff;
}

.dps-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 72px;
}

.dps-pagination__button {
	display: inline-grid;
	min-width: 40px;
	height: 40px;
	place-items: center;
	border: 1px solid var( --dps-border );
	border-radius: 9px;
	background: #fff;
	color: #566070;
	cursor: pointer;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
}

.dps-pagination__button.is-active {
	border-color: var( --dps-accent );
	background: var( --dps-accent );
	color: #fff;
}

.dps-pagination__button:disabled {
	cursor: not-allowed;
	opacity: 0.45;
}

.dps-pagination__dots {
	display: inline-grid;
	min-width: 30px;
	height: 40px;
	place-items: center;
	color: #98a2b3;
	font-weight: 700;
}

.dps-empty {
	margin: 0;
	padding: 18px 20px;
	border: 1px dashed #cfd5de;
	border-radius: 10px;
	background: #f8fafc;
	color: #475569;
	font-size: 14px;
}

.dps-shop.is-loading .dps-shop-results {
	position: relative;
	min-height: 240px;
	opacity: 0.52;
	pointer-events: none;
}

@media ( max-width: 1024px ) {
	.dps-shop-layout {
		grid-template-columns: minmax( 200px, 240px ) minmax( 0, 1fr );
	}
}

@media ( max-width: 767px ) {
	.dps-shop-layout {
		grid-template-columns: minmax( 0, 1fr );
	}

	.dps-filter-panel {
		position: static;
	}

	.dps-results-header {
		margin-bottom: 20px;
	}

	.dps-results-header__title {
		font-size: 20px;
	}

	.dps-pagination {
		flex-wrap: wrap;
		margin-top: 36px;
	}
}

.dps-sort {
	position: relative;
	flex: 0 0 auto;
}

.dps-sort-select {
	display: inline-flex;
	align-items: center;
	height: 42px;
	padding: 0 36px 0 16px;
	border: 1px solid var( --dps-border );
	border-radius: 10px;
	background-color: #fff;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px;
	color: #475569;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dps-sort-select:hover {
	border-color: #cbd5e1;
}

.dps-sort-select:focus-visible {
	outline: 2px solid #34d3e8;
	outline-offset: 2px;
}

.dps-product-card__out-of-stock {
	flex: 1 1 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 38px;
	padding: 0 14px;
	border-radius: 12px;
	background: #f3f4f6;
	color: #9ca3af;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0;
	cursor: not-allowed;
}

@media ( max-width: 767px ) {
	.dps-results-header {
		flex-direction: column;
		align-items: stretch;
	}
	.dps-sort {
		width: 100%;
		margin-top: 12px;
	}
	.dps-sort-select {
		width: 100%;
	}
}

/* Carousel Layout Styles */
.dps-carousel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 28px;
}

.dps-carousel-title {
	margin: 0;
	color: #172033;
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.dps-carousel-arrows {
	display: flex;
	gap: 12px;
}

.dps-carousel-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid var( --dps-border );
	border-radius: 8px;
	background: #fff;
	color: #566070;
	cursor: pointer;
	transition: all 0.2s ease;
	padding: 0;
}

.dps-carousel-arrow svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.dps-carousel-arrow:hover,
.dps-carousel-arrow:focus-visible {
	border-color: #cbd5e1;
	background: #f8fafc;
	color: #1e293b;
}

.dps-carousel-arrow:focus-visible {
	outline: 2px solid #34d3e8;
	outline-offset: 2px;
}

.dps-carousel-wrapper {
	width: 100%;
	overflow: hidden;
}

.dps-carousel-track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	gap: var( --dps-grid-gap );
	padding-bottom: 12px; /* Avoid clipping shadows */
	margin-bottom: -12px;
	/* Hide scrollbars */
	scrollbar-width: none;
}

.dps-carousel-track::-webkit-scrollbar {
	display: none;
}

.dps-carousel-track .dps-product-card {
	flex: 0 0 calc( ( 100% - ( var( --dps-columns ) - 1 ) * var( --dps-grid-gap ) ) / var( --dps-columns ) );
	min-width: 0;
	scroll-snap-align: start;
}

.dps-carousel-footer {
	display: flex;
	justify-content: center;
	margin-top: 48px;
}

.dps-carousel-view-all {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 32px;
	border: 2px solid #08246b;
	border-radius: 8px;
	background: transparent;
	color: #08246b;
	text-decoration: none;
	font-size: 15px;
	font-weight: 800;
	transition: all 0.2s ease;
}

.dps-carousel-view-all:hover,
.dps-carousel-view-all:focus-visible {
	background: #08246b;
	color: #ffffff;
	box-shadow: 0 10px 20px rgba( 8, 36, 107, 0.15 );
}

.dps-carousel-view-all:focus-visible {
	outline: 2px solid #34d3e8;
	outline-offset: 2px;
}

/* Ensure mobile columns responsive works with scroll-snap */
@media ( max-width: 767px ) {
	.dps-carousel-header {
		margin-bottom: 20px;
	}
	
	.dps-carousel-title {
		font-size: 20px;
	}
	
	.dps-carousel-footer {
		margin-top: 36px;
	}
}
