/* ==========================================================================
   Diwali Special page  (template-diwali-special.php)
   Brand: maroon #ab2438, deep green #00211a, gold accents.
   All selectors are prefixed .dsp- so nothing leaks into other pages.
   ========================================================================== */

.dsp-page {
	--dsp-maroon: #ab2438;
	--dsp-maroon-dark: #7a1f1f;
	--dsp-green: #00211a;
	--dsp-gold: #d9a441;
	--dsp-gold-soft: #fcd782;
	--dsp-cream: #fef7ef;
	--dsp-line: #ecdccb;
	--dsp-text: #2b2b2b;
	--dsp-muted: #6f6a64;
	background: #fff;
}

.dsp-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}

/* ---------- Hero ---------- */
.dsp-hero {
	padding: 10px 0 0;
}
.dsp-hero-inner {
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(171, 36, 56, .15);
	background: var(--dsp-cream);
}
.dsp-hero-img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 460px;
	object-fit: cover;
}
.dsp-intro {
	text-align: center;
	max-width: 860px;
	margin: 28px auto 0;
}
.dsp-title {
	font-family: "Playfair Display", serif;
	color: var(--dsp-maroon);
	font-size: clamp(28px, 4vw, 42px);
	font-weight: 700;
	margin: 0 0 10px;
	position: relative;
	display: inline-block;
	padding: 0 46px;
}
.dsp-title::before,
.dsp-title::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 30px;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--dsp-gold));
}
.dsp-title::before { left: 0; }
.dsp-title::after  { right: 0; transform: scaleX(-1); }
.dsp-intro-text {
	color: var(--dsp-muted);
	font-size: 15px;
	line-height: 1.7;
}
.dsp-intro-text p:last-child { margin-bottom: 0; }

.dsp-cat-pills {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 20px;
}
.dsp-pill {
	display: inline-block;
	padding: 8px 18px;
	border: 1px solid var(--dsp-line);
	border-radius: 999px;
	color: var(--dsp-green);
	background: #fff;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: all .2s ease;
}
.dsp-pill:hover {
	border-color: var(--dsp-maroon);
	color: var(--dsp-maroon);
}
.dsp-pill.is-active {
	background: var(--dsp-maroon);
	border-color: var(--dsp-maroon);
	color: #fff;
}

/* ---------- Layout ---------- */
.dsp-shop.sec-space {
	padding-top: 36px;
	padding-bottom: 50px;
}

/* ---------- Sidebar ---------- */
.dsp-sidebar {
	position: sticky;
	top: 110px;
	background: #fff;
	border: 1px solid var(--dsp-line);
	border-radius: 14px;
	padding: 6px 20px 20px;
	max-height: calc(100vh - 130px);
	overflow-y: auto;
	scrollbar-width: thin;
}
.dsp-sidebar-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 0 12px;
	border-bottom: 2px solid var(--dsp-maroon);
}
.dsp-sidebar-head h2 {
	font-family: "Playfair Display", serif;
	font-size: 20px;
	color: var(--dsp-green);
	margin: 0;
}
.dsp-close {
	display: none;
	background: none;
	border: 0;
	font-size: 30px;
	line-height: 1;
	color: var(--dsp-green);
	padding: 0 4px;
	cursor: pointer;
}
.dsp-block {
	padding: 16px 0;
	border-bottom: 1px dashed var(--dsp-line);
}
.dsp-block-title {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--dsp-green);
	margin: 0 0 12px;
	font-family: "Open Sans", sans-serif;
}

/* search */
.dsp-search {
	display: flex;
	border: 1px solid var(--dsp-line);
	border-radius: 8px;
	overflow: hidden;
}
.dsp-search input {
	flex: 1;
	min-width: 0;
	border: 0;
	padding: 9px 12px;
	font-size: 14px;
	outline: none;
}
.dsp-search button {
	border: 0;
	background: var(--dsp-maroon);
	color: #fff;
	padding: 0 14px;
	cursor: pointer;
}
.dsp-search:focus-within { border-color: var(--dsp-maroon); }

/* location */
.dsp-loc {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}
.dsp-loc-btn {
	flex: 1 1 auto;
	text-align: center;
	padding: 7px 8px;
	font-size: 13px;
	border: 1px solid var(--dsp-line);
	border-radius: 6px;
	color: var(--dsp-green);
	text-decoration: none;
	white-space: nowrap;
}
.dsp-loc-btn:hover { border-color: var(--dsp-maroon); color: var(--dsp-maroon); }
.dsp-loc-btn.is-active {
	background: var(--dsp-green);
	border-color: var(--dsp-green);
	color: #fff;
}

/* checkboxes */
.dsp-check-list,
.dsp-bucket-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.dsp-check-list li + li { margin-top: 8px; }
.dsp-check {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	margin: 0;
	font-size: 14px;
	color: var(--dsp-text);
}
.dsp-check input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.dsp-check-box {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	border: 1.5px solid #bfb2a3;
	border-radius: 4px;
	position: relative;
	transition: all .15s ease;
}
.dsp-check input:checked + .dsp-check-box {
	background: var(--dsp-maroon);
	border-color: var(--dsp-maroon);
}
.dsp-check input:checked + .dsp-check-box::after {
	content: "";
	position: absolute;
	left: 5px; top: 1px;
	width: 5px; height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.dsp-check input:focus-visible + .dsp-check-box {
	outline: 2px solid var(--dsp-gold);
	outline-offset: 2px;
}
.dsp-check-label { flex: 1; }
.dsp-count {
	font-size: 12px;
	color: var(--dsp-muted);
	background: var(--dsp-cream);
	border-radius: 999px;
	padding: 1px 8px;
}

/* price */
.dsp-bucket-list li + li { margin-top: 2px; }
.dsp-bucket-list a {
	display: block;
	padding: 5px 10px;
	margin: 0 -10px;
	border-radius: 6px;
	font-size: 14px;
	color: var(--dsp-text);
	text-decoration: none;
}
.dsp-bucket-list a:hover { background: var(--dsp-cream); color: var(--dsp-maroon); }
.dsp-bucket-list a.is-active {
	background: var(--dsp-cream);
	color: var(--dsp-maroon);
	font-weight: 700;
}
.dsp-bucket-list a.is-active::after { content: " ✓"; }

.dsp-price-inputs {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	margin-top: 12px;
}
.dsp-price-inputs label {
	flex: 1;
	margin: 0;
	min-width: 0;
}
.dsp-price-inputs label span {
	display: block;
	font-size: 11px;
	color: var(--dsp-muted);
	margin-bottom: 3px;
}
.dsp-price-inputs input {
	width: 100%;
	border: 1px solid var(--dsp-line);
	border-radius: 6px;
	padding: 7px 8px;
	font-size: 14px;
}
.dsp-price-inputs input:focus { outline: none; border-color: var(--dsp-maroon); }
.dsp-dash { padding-bottom: 8px; color: var(--dsp-muted); }

.dsp-actions {
	padding-top: 18px;
	text-align: center;
}
.dsp-actions .btn-theme.dsp-apply {
	width: 100%;
	min-width: 0;
}
.dsp-reset {
	display: inline-block;
	margin-top: 10px;
	font-size: 13px;
	color: var(--dsp-maroon);
	text-decoration: underline;
}

/* ---------- Toolbar ---------- */
.dsp-toolbar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	padding: 12px 16px;
	background: var(--dsp-cream);
	border-radius: 12px;
	margin-bottom: 16px;
}
.dsp-result-count {
	margin: 0;
	font-size: 14px;
	color: var(--dsp-muted);
	flex: 1 1 auto;
}
.dsp-result-count strong { color: var(--dsp-green); }
.dsp-sort {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.dsp-sort label { margin: 0; }
.dsp-sort select {
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid var(--dsp-line);
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2300211a'/%3E%3C/svg%3E") no-repeat right 10px center;
	border-radius: 8px;
	padding: 8px 30px 8px 12px;
	font-size: 14px;
	color: var(--dsp-green);
	cursor: pointer;
}
.dsp-sort select:focus { outline: none; border-color: var(--dsp-maroon); }
.dsp-go {
	border: 0;
	background: var(--dsp-maroon);
	color: #fff;
	border-radius: 8px;
	padding: 8px 14px;
}
.dsp-filter-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--dsp-green);
	background: #fff;
	color: var(--dsp-green);
	border-radius: 8px;
	padding: 8px 14px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
}
.dsp-badge {
	background: var(--dsp-maroon);
	color: #fff;
	border-radius: 999px;
	font-size: 11px;
	min-width: 18px;
	height: 18px;
	line-height: 18px;
	text-align: center;
	padding: 0 5px;
}

/* chips */
.dsp-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 18px;
}
.dsp-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	border: 1px solid var(--dsp-maroon);
	color: var(--dsp-maroon);
	border-radius: 999px;
	padding: 4px 12px;
	font-size: 13px;
	text-decoration: none;
}
.dsp-chip:hover { background: var(--dsp-maroon); color: #fff; }
.dsp-chip-clear {
	font-size: 13px;
	color: var(--dsp-muted);
	text-decoration: underline;
}

/* ---------- Product grid (re-uses content-product.php cards) ---------- */
.dsp-grid .row.pro-grid-row {
	margin-left: -10px;
	margin-right: -10px;
}
.dsp-grid .row.pro-grid-row > .col-lg-3 {
	flex: 0 0 auto;
	width: 33.3333%;
	max-width: 33.3333%;
	padding-left: 10px;
	padding-right: 10px;
}
@media (min-width: 1400px) {
	.dsp-grid .row.pro-grid-row > .col-lg-3 {
		width: 25%;
		max-width: 25%;
	}
}
@media (max-width: 991px) {
	.dsp-grid .row.pro-grid-row > .col-lg-3 {
		width: 50%;
		max-width: 50%;
	}
}
.dsp-grid .product-best-slider .card.card-01 {
	transition: box-shadow .2s ease, transform .2s ease;
}
.dsp-grid .product-best-slider .card.card-01:hover {
	box-shadow: 0 8px 24px rgba(0, 33, 26, .12);
	transform: translateY(-2px);
}

/* ---------- Pagination ---------- */
.dsp-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 30px;
	padding-top: 24px;
	border-top: 1px solid var(--dsp-line);
}
.dsp-pg-list {
	display: flex;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.dsp-pg {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--dsp-line);
	border-radius: 10px;
	background: #fff;
	color: var(--dsp-green);
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	transition: all .15s ease;
}
a.dsp-pg:hover {
	border-color: var(--dsp-maroon);
	color: var(--dsp-maroon);
}
.dsp-pg.is-current {
	background: var(--dsp-maroon);
	border-color: var(--dsp-maroon);
	color: #fff;
	box-shadow: 0 4px 12px rgba(171, 36, 56, .3);
}
.dsp-pg-gap {
	border-color: transparent;
	background: transparent;
	min-width: 24px;
	padding: 0;
}
.dsp-pg-nav i { font-size: 12px; }
.dsp-pg.is-disabled {
	opacity: .4;
	cursor: not-allowed;
}
.dsp-pg-info {
	flex-basis: 100%;
	text-align: center;
	margin: 8px 0 0;
	font-size: 13px;
	color: var(--dsp-muted);
}

/* ---------- Empty state ---------- */
.dsp-empty {
	text-align: center;
	padding: 60px 20px;
	border: 1px dashed var(--dsp-line);
	border-radius: 14px;
	background: var(--dsp-cream);
}
.dsp-empty-icon {
	font-size: 42px;
	color: var(--dsp-gold);
	margin-bottom: 12px;
}
.dsp-empty h3 {
	font-family: "Playfair Display", serif;
	color: var(--dsp-green);
	font-size: 22px;
}
.dsp-empty p {
	color: var(--dsp-muted);
	max-width: 440px;
	margin: 0 auto 20px;
}

/* ---------- Mobile / tablet: sidebar becomes a slide-in drawer ---------- */
@media (max-width: 991px) {
	.dsp-filter-toggle { display: inline-flex; }
	.dsp-result-count { flex-basis: 100%; order: 3; }
	.dsp-sort { margin-left: auto; }

	.dsp-sidebar-col {
		position: static;
		width: 0;
		padding: 0;
		flex: 0 0 0;
	}
	.dsp-sidebar {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		width: 320px;
		max-width: 88vw;
		max-height: none;
		border-radius: 0;
		border: 0;
		z-index: 10001;
		transform: translateX(-100%);
		transition: transform .28s ease;
		box-shadow: 4px 0 24px rgba(0, 0, 0, .15);
	}
	.dsp-close { display: block; }
	.dsp-actions {
		position: sticky;
		bottom: -20px;
		background: #fff;
		padding-bottom: 20px;
		margin: 0 -20px -20px;
		padding-left: 20px;
		padding-right: 20px;
		border-top: 1px solid var(--dsp-line);
	}
	.dsp-backdrop {
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, .45);
		z-index: 10000;
		opacity: 0;
		visibility: hidden;
		transition: opacity .25s ease, visibility .25s ease;
	}
	body.dsp-filters-open { overflow: hidden; }
	body.dsp-filters-open .dsp-sidebar { transform: translateX(0); }
	body.dsp-filters-open .dsp-backdrop { opacity: 1; visibility: visible; }
}

@media (max-width: 575px) {
	.dsp-hero { padding-top: 0; }
	.dsp-hero .container { padding-left: 0; padding-right: 0; }
	.dsp-hero-inner { border-radius: 0; box-shadow: none; }
	.dsp-intro { padding: 0 16px; }
	.dsp-title { padding: 0 34px; }
	.dsp-title::before, .dsp-title::after { width: 22px; }
	.dsp-pill { padding: 6px 14px; font-size: 13px; }
	.dsp-toolbar { padding: 10px 12px; }
	.dsp-sort { width: 100%; margin-left: 0; }
	.dsp-sort label { flex: 1; }
	.dsp-sort select { width: 100%; }
	.dsp-pg { min-width: 38px; height: 38px; padding: 0 10px; font-size: 14px; }
	.dsp-pg-list { gap: 4px; flex-basis: 100%; justify-content: center; order: -1; margin-bottom: 6px; }
	.dsp-pg-nav { flex: 1 1 0; max-width: 160px; }
}
