/* ============================================================
   Gadwal Shop Page Pro — Srilatha Gadwal Saree House
   Heritage Maroon / Temple Gold / Ivory Silk
   ============================================================ */

#gspp {
	--maroon:      #741A2F;
	--maroon-deep: #4E0F1F;
	--gold:        #C9A84C;
	--gold-soft:   #E8D9A8;
	--ivory:       #FBF7F0;
	--ink:         #2B1B1E;
	--muted:       #8A7A6D;
	--line:        #EBE2D4;
	--card:        #FFFFFF;
	--radius:      14px;
	--shadow:      0 2px 10px rgba(78, 15, 31, .07);
	--shadow-lift: 0 10px 28px rgba(78, 15, 31, .14);

	font-family: 'DM Sans', system-ui, sans-serif;
	color: var(--ink);
	background: var(--ivory);
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 16px 96px;
}
#gspp *, #gspp *::before, #gspp *::after { box-sizing: border-box; }
#gspp button { font-family: inherit; cursor: pointer; }
#gspp :focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Header ---------- */
.gspp-head { text-align: center; padding: 36px 0 22px; }
.gspp-head__title {
	font-family: 'Playfair Display', serif;
	font-weight: 700;
	font-size: clamp(1.7rem, 4vw, 2.6rem);
	color: var(--maroon);
	margin: 0 0 4px;
	letter-spacing: .01em;
}
.gspp-head__sub {
	margin: 0 0 20px;
	color: var(--muted);
	font-size: .95rem;
	letter-spacing: .06em;
	text-transform: uppercase;
}

/* ---------- Search ---------- */
.gspp-search {
	position: relative;
	max-width: 560px;
	margin: 0 auto;
}
.gspp-search input {
	width: 100%;
	padding: 13px 44px 13px 46px;
	border: 1.5px solid var(--line);
	border-radius: 999px;
	background: var(--card);
	font: inherit;
	font-size: 1rem;
	color: var(--ink);
	box-shadow: var(--shadow);
	transition: border-color .2s, box-shadow .2s;
}
.gspp-search input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,168,76,.15); outline: none; }
.gspp-search__icon {
	position: absolute; left: 16px; top: 50%; translate: 0 -50%;
	width: 20px; height: 20px; color: var(--muted); pointer-events: none;
}
.gspp-search__clear {
	position: absolute; right: 10px; top: 50%; translate: 0 -50%;
	width: 28px; height: 28px; border: 0; border-radius: 50%;
	background: var(--line); color: var(--maroon);
	font-size: 1.1rem; line-height: 1;
}

/* ---------- Layout ---------- */
.gspp-layout { display: grid; grid-template-columns: 264px 1fr; gap: 28px; align-items: start; }

/* ---------- Sidebar ---------- */
.gspp-side {
	position: sticky; top: 24px;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}
.gspp-side__top {
	display: flex; justify-content: space-between; align-items: center;
	padding: 16px 18px;
	border-bottom: 1px solid var(--line);
	background: linear-gradient(180deg, #fff, #FDFAF4);
}
.gspp-side__heading {
	font-family: 'Playfair Display', serif;
	font-weight: 700; font-size: 1.05rem; color: var(--maroon);
}
.gspp-reset {
	border: 0; background: none; color: var(--maroon);
	font-size: .82rem; font-weight: 700; letter-spacing: .04em;
	text-transform: uppercase; text-decoration: underline;
	text-underline-offset: 3px;
}
.gspp-reset--big {
	border: 1.5px solid var(--maroon); border-radius: 999px;
	text-decoration: none; padding: 10px 22px; margin-top: 14px;
}

/* Collapsible sections */
.gspp-acc { border-bottom: 1px solid var(--line); }
.gspp-acc:last-child { border-bottom: 0; }
.gspp-acc__head {
	width: 100%; display: flex; justify-content: space-between; align-items: center;
	padding: 14px 18px; border: 0; background: none;
	font-weight: 700; font-size: .92rem; letter-spacing: .03em; color: var(--ink);
}
.gspp-acc__chev {
	width: 9px; height: 9px;
	border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
	transform: rotate(45deg);
	transition: transform .25s;
}
.gspp-acc.is-open .gspp-acc__chev { transform: rotate(225deg); }
.gspp-acc__body {
	display: none;
	padding: 2px 18px 16px;
}
.gspp-acc.is-open .gspp-acc__body { display: block; }

/* Category checkboxes */
.gspp-check {
	display: flex; align-items: center; gap: 10px;
	padding: 7px 0; font-size: .93rem; cursor: pointer;
}
.gspp-check input {
	appearance: none; width: 18px; height: 18px; margin: 0;
	border: 1.5px solid #CBB88E; border-radius: 5px; background: #fff;
	display: grid; place-content: center; flex: 0 0 auto;
	transition: background .15s, border-color .15s;
}
.gspp-check input::after {
	content: ""; width: 9px; height: 5px;
	border-left: 2px solid #fff; border-bottom: 2px solid #fff;
	transform: rotate(-45deg) translate(1px, -1px) scale(0);
	transition: transform .15s;
}
.gspp-check input:checked { background: var(--maroon); border-color: var(--maroon); }
.gspp-check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.gspp-check em { margin-left: auto; font-style: normal; color: var(--muted); font-size: .8rem; }

/* Price chips + inputs */
.gspp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.gspp-chip {
	border: 1.5px solid var(--line); border-radius: 999px;
	background: #fff; color: var(--ink);
	padding: 7px 13px; font-size: .82rem; font-weight: 500;
	transition: all .15s;
}
.gspp-chip:hover { border-color: var(--gold); }
.gspp-chip.is-active {
	background: var(--maroon); border-color: var(--maroon); color: #fff;
}
.gspp-price-inputs { display: flex; align-items: center; gap: 8px; }
.gspp-price-inputs input {
	width: 100%; min-width: 0;
	padding: 9px 10px; border: 1.5px solid var(--line); border-radius: 9px;
	font: inherit; font-size: .9rem; background: #fff;
}
.gspp-price-inputs input:focus { border-color: var(--gold); outline: none; }
.gspp-price-inputs span { color: var(--muted); }
.gspp-go {
	border: 0; border-radius: 9px;
	background: var(--maroon); color: #fff;
	padding: 9px 14px; font-weight: 700; font-size: .85rem;
}
.gspp-go:hover { background: var(--maroon-deep); }

/* ---------- Toolbar ---------- */
.gspp-toolbar {
	display: flex; justify-content: space-between; align-items: center;
	gap: 12px; margin-bottom: 6px; min-height: 42px;
}
.gspp-count { color: var(--muted); font-size: .9rem; }
.gspp-sort { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.gspp-sort select {
	padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 9px;
	background: #fff; font: inherit; font-size: .9rem; color: var(--ink);
}

/* Active filter pills */
.gspp-active { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.gspp-pill {
	display: inline-flex; align-items: center; gap: 7px;
	background: #fff; border: 1px solid var(--gold-soft);
	border-radius: 999px; padding: 5px 7px 5px 12px;
	font-size: .8rem; color: var(--maroon); font-weight: 500;
}
.gspp-pill button {
	border: 0; background: var(--ivory); color: var(--maroon);
	width: 18px; height: 18px; border-radius: 50%;
	font-size: .85rem; line-height: 1; display: grid; place-content: center;
}

/* ---------- Product grid ---------- */
.gspp-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

/* Card */
.gspp-card {
	grid-column: span 1;
	display: flex; flex-direction: column;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	text-decoration: none; color: inherit;
	box-shadow: var(--shadow);
	transition: transform .25s, box-shadow .25s;
}
.gspp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.gspp-card__media { position: relative; aspect-ratio: 3 / 4; background: #F3EBDD; overflow: hidden; }
.gspp-card__img {
	width: 100%; height: 100%; object-fit: cover; display: block;
	transition: transform .5s;
}
.gspp-card:hover .gspp-card__img { transform: scale(1.05); }
.gspp-card__badge {
	position: absolute; top: 10px; left: 10px;
	background: var(--maroon); color: #fff;
	font-size: .72rem; font-weight: 700; letter-spacing: .05em;
	padding: 5px 9px; border-radius: 6px;
	border: 1px solid var(--gold);
}
.gspp-card__body { padding: 12px 14px 15px; display: flex; flex-direction: column; gap: 4px; }
.gspp-card__cat {
	font-size: .7rem; font-weight: 700; letter-spacing: .1em;
	text-transform: uppercase; color: var(--gold);
}
.gspp-card__title {
	font-size: .95rem; font-weight: 500; line-height: 1.35; margin: 0;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	min-height: 2.6em;
}
.gspp-card__pricerow { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.gspp-card__price { font-weight: 700; font-size: 1.05rem; color: var(--maroon); }
.gspp-card__mrp { color: var(--muted); font-size: .84rem; }
.gspp-card__rating {
	align-self: flex-start;
	font-size: .76rem; font-weight: 700; color: #fff;
	background: #2E7D32; border-radius: 5px; padding: 2px 7px; margin-top: 2px;
}

/* ---------- Zari offer banner (signature element) ---------- */
.gspp-banner {
	grid-column: 1 / -1;
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	background:
		radial-gradient(120% 160% at 85% 10%, rgba(201,168,76,.28), transparent 55%),
		linear-gradient(115deg, var(--maroon-deep) 0%, var(--maroon) 60%, #8C2A3F 100%);
	color: var(--ivory);
	box-shadow: var(--shadow-lift);
}
.gspp-banner__zari {
	position: absolute; inset: 0 auto 0 0; width: 10px;
	background: repeating-linear-gradient(
		45deg,
		var(--gold) 0 6px,
		var(--maroon-deep) 6px 9px,
		var(--gold-soft) 9px 12px,
		var(--maroon-deep) 12px 15px
	);
}
.gspp-banner__body { padding: 26px 26px 26px 34px; }
.gspp-banner__eyebrow {
	font-size: .72rem; font-weight: 700; letter-spacing: .18em;
	text-transform: uppercase; color: var(--gold-soft);
}
.gspp-banner__title {
	font-family: 'Playfair Display', serif;
	font-size: clamp(1.3rem, 3vw, 1.9rem);
	font-weight: 700; color: #fff;
	margin: 6px 0 4px;
}
.gspp-banner__sub { margin: 0 0 16px; color: rgba(251,247,240,.85); font-size: .92rem; }
.gspp-banner__row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.gspp-banner__code {
	border: 1.5px dashed var(--gold); border-radius: 9px;
	background: rgba(201,168,76,.12); color: var(--gold-soft);
	font-weight: 700; letter-spacing: .12em; font-size: .88rem;
	padding: 9px 16px;
	transition: background .15s;
}
.gspp-banner__code:hover { background: rgba(201,168,76,.22); }
.gspp-banner__code.is-copied { background: var(--gold); color: var(--maroon-deep); border-style: solid; }
.gspp-banner__cta {
	background: var(--gold); color: var(--maroon-deep);
	border-radius: 999px; padding: 10px 20px;
	font-weight: 700; font-size: .88rem; text-decoration: none;
	transition: transform .15s, box-shadow .15s;
}
.gspp-banner__cta:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.25); }

/* ---------- Skeletons ---------- */
.gspp-skel {
	border-radius: var(--radius);
	background: #F1E8D8;
	aspect-ratio: 3 / 4.6;
	position: relative; overflow: hidden;
}
.gspp-skel::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.6) 50%, transparent 70%);
	animation: gspp-shimmer 1.3s infinite;
}
@keyframes gspp-shimmer { from { translate: -100% 0; } to { translate: 100% 0; } }

/* ---------- Empty / end states ---------- */
.gspp-empty { text-align: center; padding: 60px 20px; }
.gspp-empty__title { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--maroon); margin: 0 0 6px; }
.gspp-empty__sub { color: var(--muted); margin: 0; }
.gspp-end { text-align: center; color: var(--gold); letter-spacing: .12em; padding: 30px 0 10px; font-size: .85rem; text-transform: uppercase; }
.gspp-sentinel { height: 1px; }

/* ---------- Mobile bottom bar & sheets ---------- */
.gspp-mbar { display: none; }
.gspp-backdrop {
	position: fixed; inset: 0; z-index: 9998;
	background: rgba(43,27,30,.5);
	backdrop-filter: blur(2px);
	opacity: 0; transition: opacity .25s;
}
.gspp-backdrop.is-on { opacity: 1; }
.gspp-sheet {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
	background: #fff;
	border-radius: 20px 20px 0 0;
	max-height: 78vh;
	display: flex; flex-direction: column;
	transform: translateY(100%);
	transition: transform .3s cubic-bezier(.32,.72,.33,1);
	box-shadow: 0 -12px 40px rgba(0,0,0,.25);
	padding-bottom: env(safe-area-inset-bottom);
}
.gspp-sheet.is-on { transform: translateY(0); }
.gspp-sheet__grab {
	width: 42px; height: 4px; border-radius: 999px;
	background: var(--line); margin: 10px auto 4px;
}
.gspp-sheet__title {
	font-family: 'Playfair Display', serif;
	color: var(--maroon); font-size: 1.1rem;
	margin: 6px 18px 10px;
	padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.gspp-sheet__body { overflow-y: auto; padding: 4px 18px 16px; }
.gspp-sheet__foot {
	display: flex; gap: 12px; align-items: center; justify-content: space-between;
	padding: 12px 18px;
	border-top: 1px solid var(--line);
	background: #fff;
}
.gspp-apply {
	flex: 1; border: 0; border-radius: 999px;
	background: var(--maroon); color: #fff;
	padding: 13px 20px; font-weight: 700; font-size: .95rem;
	max-width: 240px; margin-left: auto;
}
.gspp-radio {
	display: flex; align-items: center; gap: 12px;
	padding: 13px 2px; font-size: .95rem;
	border-bottom: 1px solid #F5EEE1; cursor: pointer;
}
.gspp-radio:last-child { border-bottom: 0; }
.gspp-radio input {
	appearance: none; width: 19px; height: 19px; margin: 0;
	border: 2px solid #CBB88E; border-radius: 50%;
	display: grid; place-content: center;
}
.gspp-radio input::after {
	content: ""; width: 9px; height: 9px; border-radius: 50%;
	background: var(--maroon); transform: scale(0); transition: transform .15s;
}
.gspp-radio input:checked { border-color: var(--maroon); }
.gspp-radio input:checked::after { transform: scale(1); }

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 1200px) {
	.gspp-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
	#gspp { padding-bottom: 120px; }
	.gspp-layout { grid-template-columns: 1fr; }
	.gspp-side { display: none; } /* filters move into the bottom sheet */
	.gspp-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.gspp-toolbar .gspp-sort { display: none; } /* sorting via bottom bar */
	.gspp-head { padding-top: 22px; }
	.gspp-card__body { padding: 10px 11px 13px; }
	.gspp-card__title { font-size: .86rem; }
	.gspp-banner__body { padding: 20px 18px 20px 26px; }

	.gspp-mbar {
		display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990;
		background: var(--maroon);
		box-shadow: 0 -6px 20px rgba(78,15,31,.35);
		padding-bottom: env(safe-area-inset-bottom);
	}
	.gspp-mbar__btn {
		flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
		border: 0; background: none; color: var(--ivory);
		font-size: .95rem; font-weight: 700; letter-spacing: .04em;
		padding: 15px 10px;
	}
	.gspp-mbar__btn svg { width: 18px; height: 18px; }
	.gspp-mbar__div { width: 1px; background: rgba(251,247,240,.25); margin: 10px 0; }
	.gspp-mbar__dot {
		width: 8px; height: 8px; border-radius: 50%;
		background: var(--gold); display: inline-block;
	}
}

@media (prefers-reduced-motion: reduce) {
	#gspp *, #gspp *::before, #gspp *::after {
		animation: none !important;
		transition: none !important;
	}
}

/* ============================================================
   v1.1.0 additions — 4/3/2 grid, reveal, image cycle, buttons
   ============================================================ */

/* Grid: desktop 4 / tablet 3 / mobile 2 (overrides base rules) */
@media (min-width: 1200px) {
	.gspp-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 901px) and (max-width: 1199px) {
	.gspp-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) and (max-width: 900px) {
	.gspp-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (max-width: 767px) {
	.gspp-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* Reveal-on-scroll */
.gspp-card, .gspp-banner {
	opacity: 0;
	transform: translateY(26px) scale(.98);
	transition: opacity .55s ease, transform .55s ease, box-shadow .25s;
}
.gspp-card.is-revealed, .gspp-banner.is-revealed {
	opacity: 1;
	transform: none;
}
.gspp-card.is-revealed:hover { transform: translateY(-5px); }

/* Multi-image cycling */
.gspp-card__media { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.gspp-card__media .gspp-card__img {
	position: absolute; inset: 0;
	opacity: 0;
	transition: opacity .35s ease, transform .5s;
}
.gspp-card__media .gspp-card__img.is-on { opacity: 1; }
.gspp-card__media::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.28) 50%, transparent 60%);
	translate: -120% 0;
}
.gspp-card:hover .gspp-card__media::after { animation: gspp-shine .9s ease; }
@keyframes gspp-shine { to { translate: 120% 0; } }

.gspp-card__dots {
	position: absolute; bottom: 8px; left: 0; right: 0; z-index: 2;
	display: flex; justify-content: center; gap: 5px;
}
.gspp-card__dots i {
	width: 6px; height: 6px; border-radius: 50%;
	background: rgba(255,255,255,.55);
	transition: .2s;
}
.gspp-card__dots i.is-on { background: var(--gold); width: 14px; border-radius: 999px; }

/* Title link */
.gspp-card__title a { color: inherit; text-decoration: none; }
.gspp-card__title a:hover { color: var(--maroon); }

/* Add to Cart + View buttons */
.gspp-card__btns { display: flex; gap: 8px; margin-top: 9px; }
.gspp-btn-cart {
	flex: 1.4; border: 0; border-radius: 9px;
	background: var(--maroon); color: #fff;
	padding: 10px 8px; font-weight: 700; font-size: .82rem; letter-spacing: .03em;
	text-align: center; text-decoration: none;
	transition: background .2s, transform .12s;
}
.gspp-btn-cart:hover { background: var(--maroon-deep); color: #fff; }
.gspp-btn-cart:active { transform: scale(.96); }
.gspp-btn-cart.is-added { background: #2E7D32; }
.gspp-btn-cart.is-busy { opacity: .7; pointer-events: none; }
.gspp-btn-view {
	flex: 1; border: 1.5px solid var(--gold); border-radius: 9px;
	background: #fff; color: var(--maroon);
	padding: 10px 8px; font-weight: 700; font-size: .82rem;
	text-align: center; text-decoration: none;
	transition: .15s;
}
.gspp-btn-view:hover { background: var(--gold); color: var(--maroon-deep); }

/* Toast */
.gspp-toast {
	position: fixed; left: 50%; bottom: 110px; z-index: 10001;
	translate: -50% 20px;
	background: var(--ink); color: #fff;
	padding: 11px 20px; border-radius: 999px; font-size: .88rem;
	opacity: 0; pointer-events: none;
	transition: .3s;
}
.gspp-toast.is-on { opacity: 1; translate: -50% 0; }

@media (max-width: 900px) {
	.gspp-card__btns { flex-direction: row; }
	.gspp-btn-cart, .gspp-btn-view { font-size: .78rem; padding: 9px 6px; }
}
@media (prefers-reduced-motion: reduce) {
	.gspp-card, .gspp-banner { opacity: 1; transform: none; }
}

/* ============================================================
   v1.2.0 — icon cart button, banner saree image, swipe support
   ============================================================ */

/* Hide product quantity count */
.gspp-count { display: none !important; }

/* Icon-only cart button */
.gspp-btn-cart {
	flex: 0 0 44px;
	width: 44px; height: 40px;
	padding: 0;
	display: grid; place-content: center;
}
.gspp-btn-cart svg { width: 19px; height: 19px; }
.gspp-btn-view { flex: 1; }

/* Banner with saree image */
.gspp-banner { display: flex; align-items: stretch; }
.gspp-banner__body { flex: 1; min-width: 0; }
.gspp-banner__saree {
	position: relative;
	flex: 0 0 210px;
	overflow: hidden;
}
.gspp-banner__saree img {
	width: 100%; height: 100%;
	object-fit: cover; display: block;
}
.gspp-banner__saree::before {
	content: ""; position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(90deg, var(--maroon) 0%, rgba(116,26,47,.25) 35%, transparent 70%);
}
.gspp-banner__saree::after {
	content: ""; position: absolute; inset: auto 0 0 0; height: 3px; z-index: 2;
	background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 14px);
}

/* Media swipe affordance */
.gspp-card__media { touch-action: pan-y; }

@media (max-width: 900px) {
	.gspp-banner__saree { flex-basis: 130px; }
	.gspp-btn-cart { flex-basis: 42px; width: 42px; height: 38px; }
}
@media (max-width: 480px) {
	.gspp-banner__saree { flex-basis: 104px; }
}

/* ============================================================
   v1.2.1 — larger product images, heading colour
   ============================================================ */

/* Taller image area = bigger product view */
.gspp-card__media { aspect-ratio: 5 / 7; }

/* Slightly tighter body so the photo dominates the card */
.gspp-card__body { padding: 10px 12px 12px; gap: 3px; }
.gspp-card__title { min-height: 0; }

/* Heading: maroon-to-gold silk gradient text */
.gspp-head__title {
	background: linear-gradient(100deg, var(--maroon) 0%, #9C2E48 45%, var(--gold) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}

/* ============================================================
   v1.3.0 — bigger cards (3-col desktop), sharper images
   ============================================================ */
@media (min-width: 1200px) {
	.gspp-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}
@media (max-width: 767px) {
	#gspp { padding-left: 12px; padding-right: 12px; }
	.gspp-grid { gap: 10px; }
}

/* ============================================================
   v1.3.1 — mobile: bigger images, edge-to-edge, 1/2-col toggle
   ============================================================ */

.gspp-viewtoggle { display: none; }

@media (max-width: 767px) {
	/* Nearly edge-to-edge */
	#gspp { padding-left: 8px; padding-right: 8px; }
	.gspp-grid { gap: 8px; }

	/* Taller image on mobile = much bigger saree view */
	.gspp-card__media { aspect-ratio: 4 / 5.9; }
	.gspp-card__body { padding: 8px 9px 10px; }
	.gspp-btn-view { font-size: .76rem; padding: 8px 6px; }
	.gspp-btn-cart { flex-basis: 40px; width: 40px; height: 36px; }

	/* Grid view toggle button */
	.gspp-viewtoggle {
		display: grid; place-content: center;
		margin-left: auto;
		width: 40px; height: 40px;
		border: 1.5px solid var(--line); border-radius: 10px;
		background: #fff; color: var(--maroon);
	}
	.gspp-viewtoggle svg { width: 18px; height: 18px; grid-area: 1 / 1; transition: opacity .2s; }
	.gspp-viewtoggle .gspp-vt-1 { opacity: 0; }
	.gspp-viewtoggle.is-single .gspp-vt-2 { opacity: 0; }
	.gspp-viewtoggle.is-single .gspp-vt-1 { opacity: 1; }

	/* Single-column large view */
	.gspp-grid.is-single { grid-template-columns: 1fr; gap: 14px; }
	.gspp-grid.is-single .gspp-card__media { aspect-ratio: 4 / 5; }
	.gspp-grid.is-single .gspp-card__body { padding: 12px 14px 14px; }
	.gspp-grid.is-single .gspp-card__title { font-size: 1rem; }
	.gspp-grid.is-single .gspp-btn-view { font-size: .88rem; padding: 11px 8px; }
	.gspp-grid.is-single .gspp-btn-cart { flex-basis: 46px; width: 46px; height: 42px; }
}

/* ============================================================
   v1.4.0 — full-bleed width, theme-conflict fixes, wide grid
   ============================================================ */

/* Break out of the theme container to true full width */
#gspp {
	max-width: none;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding-left: clamp(14px, 3vw, 44px);
	padding-right: clamp(14px, 3vw, 44px);
}
body { overflow-x: hidden; }

/* Wide screens get 4 large columns */
@media (min-width: 1440px) {
	.gspp-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
	.gspp-layout { grid-template-columns: 288px 1fr; gap: 34px; }
}

/* ---- Harden against Astra / Elementor global styles ---- */
#gspp .gspp-acc__head,
#gspp .gspp-reset,
#gspp .gspp-viewtoggle,
#gspp .gspp-chip {
	background: none !important;
	background-color: transparent !important;
	color: var(--ink) !important;
	border-radius: 0;
	box-shadow: none !important;
	text-transform: none;
}
#gspp .gspp-acc__head { font-weight: 700 !important; padding: 14px 18px !important; }
#gspp .gspp-reset { color: var(--maroon) !important; text-transform: uppercase; }
#gspp .gspp-chip {
	background: #fff !important;
	border: 1.5px solid var(--line) !important;
	border-radius: 999px !important;
	color: var(--ink) !important;
	padding: 7px 13px !important;
}
#gspp .gspp-chip.is-active {
	background: var(--maroon) !important;
	border-color: var(--maroon) !important;
	color: #fff !important;
}
#gspp .gspp-viewtoggle {
	background: #fff !important;
	border: 1.5px solid var(--line) !important;
	border-radius: 10px !important;
	color: var(--maroon) !important;
}
#gspp .gspp-go, #gspp .gspp-apply {
	background: var(--maroon) !important;
	color: #fff !important;
	border-radius: 9px !important;
	box-shadow: none !important;
}
#gspp .gspp-apply { border-radius: 999px !important; }
#gspp .gspp-btn-cart {
	background: var(--maroon) !important;
	color: #fff !important;
	border-radius: 9px !important;
	box-shadow: none !important;
}
#gspp .gspp-btn-cart.is-added { background: #2E7D32 !important; }
#gspp .gspp-btn-view {
	background: #fff !important;
	color: var(--maroon) !important;
	border: 1.5px solid var(--gold) !important;
	border-radius: 9px !important;
	text-decoration: none !important;
	box-shadow: none !important;
}
#gspp .gspp-btn-view:hover { background: var(--gold) !important; color: var(--maroon-deep) !important; }

/* Kill theme link underlines/colours inside cards */
#gspp .gspp-card a,
#gspp .gspp-card__title a {
	text-decoration: none !important;
	color: inherit !important;
	border-bottom: 0 !important;
	box-shadow: none !important;
}
#gspp .gspp-card__title a:hover { color: var(--maroon) !important; }

/* Sort control on one line */
#gspp .gspp-sort { white-space: nowrap; }
#gspp .gspp-sort select {
	appearance: auto;
	background: #fff !important;
	color: var(--ink) !important;
	border: 1.5px solid var(--line) !important;
	border-radius: 9px !important;
}

/* Long category lists scroll inside the panel */
/* Only the long Category list scrolls; Price & Colour show in full */
/* Category list shows fully; the whole sidebar scrolls as one (no nested scroll trap) */
#gspp .gspp-acc__body--scroll { max-height: none; overflow: visible; }
#gspp .gspp-acc__body { max-height: none; overflow: visible; }

/* Breathing room below the (theme) header */
.gspp-head { padding-top: 30px; }

/* ============================================================
   v1.4.2 — visible search button + live "searching" spinner
   ============================================================ */

/* Room for the search button on the right */
#gspp .gspp-search input { padding-right: 96px; }

/* Clear (×) sits just left of the search button */
#gspp .gspp-search__clear {
	right: 62px;
	background: var(--line);
}

/* Search button (maroon, right side) */
.gspp-search__go {
	position: absolute; right: 6px; top: 50%; translate: 0 -50%;
	width: 46px; height: 38px;
	border: 0; border-radius: 999px;
	background: var(--maroon) !important;
	color: #fff !important;
	display: grid; place-content: center;
	transition: background .2s;
}
.gspp-search__go:hover { background: var(--maroon-deep) !important; }
.gspp-search__goicon { width: 20px; height: 20px; color: #fff; }

/* Spinner shown while a search is running */
.gspp-search__spinner {
	position: absolute;
	width: 18px; height: 18px;
	border: 2px solid rgba(255,255,255,.4);
	border-top-color: #fff;
	border-radius: 50%;
	opacity: 0;
	animation: gspp-spin .7s linear infinite;
}
.gspp-search.is-searching .gspp-search__spinner { opacity: 1; }
.gspp-search.is-searching .gspp-search__goicon { opacity: 0; }
@keyframes gspp-spin { to { transform: rotate(360deg); } }

@media (max-width: 767px) {
	#gspp .gspp-search input { padding-right: 92px; }
	.gspp-search__go { width: 44px; height: 40px; }
}

/* ============================================================
   v1.7.0 — out-of-stock cards
   ============================================================ */
.gspp-card.is-oos .gspp-card__media { position: relative; }
.gspp-card.is-oos .gspp-card__img { filter: grayscale(.55) opacity(.72); }

.gspp-card__oos {
	position: absolute; top: 10px; left: 10px; z-index: 3;
	background: rgba(43,27,30,.82); color: #fff;
	font-size: .7rem; font-weight: 700; letter-spacing: .05em;
	padding: 5px 10px; border-radius: 6px;
	border: 1px solid rgba(255,255,255,.35);
	text-transform: uppercase;
}

/* Sold-out button (non-clickable) */
#gspp .gspp-btn-cart.is-soldout {
	background: #EDE4D6 !important;
	color: var(--muted) !important;
	cursor: not-allowed;
	pointer-events: none;
}
#gspp .gspp-btn-cart.is-soldout svg { width: 19px; height: 19px; }

/* Slight de-emphasis of the whole OOS card, but still visible/tappable for View */
.gspp-card.is-oos .gspp-card__title a { color: var(--muted) !important; }
.gspp-card.is-oos .gspp-card__price { color: var(--muted); }

/* ============================================================
   v1.8.0 — image tap opens product; dots cycle; swipe cycles
   ============================================================ */
.gspp-card__media { display: block; cursor: pointer; }
.gspp-card__dots {
	cursor: pointer;
	padding: 8px 12px;      /* larger tap target */
	bottom: 2px;
}
.gspp-card__dots i { pointer-events: none; }

/* ============================================================
   v1.8.1 — ensure Sold Out badge always sits above images
   ============================================================ */
#gspp .gspp-card__oos {
	z-index: 6 !important;
	pointer-events: none;
}
#gspp .gspp-card__badge { z-index: 6 !important; }
#gspp .gspp-card__media .gspp-card__img { z-index: 1; }
#gspp .gspp-card__dots { z-index: 5; }

/* ============================================================
   v1.9.0 — colour swatch filter
   ============================================================ */
.gspp-swatches {
	display: flex; flex-wrap: wrap; gap: 8px;
}
.gspp-swatch {
	display: inline-flex; align-items: center; gap: 7px;
	border: 1.5px solid var(--line); border-radius: 999px;
	background: #fff !important; color: var(--ink) !important;
	padding: 5px 11px 5px 6px; font-size: .82rem; font-weight: 500;
	transition: border-color .15s, transform .15s, box-shadow .15s;
}
.gspp-swatch:hover { border-color: var(--gold); transform: translateY(-1px); }
.gspp-swatch__dot {
	width: 18px; height: 18px; border-radius: 50%;
	flex: 0 0 auto; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
.gspp-swatch__name { line-height: 1; }
.gspp-swatch em { font-style: normal; color: var(--muted); font-size: .72rem; }
.gspp-swatch.is-active {
	border-color: var(--maroon);
	box-shadow: 0 0 0 1.5px var(--maroon);
}
.gspp-swatch.is-active .gspp-swatch__name { color: var(--maroon); font-weight: 700; }

/* pill dot for active colour in the applied-filters row */
.gspp-pill__swatch {
	width: 12px; height: 12px; border-radius: 50%;
	display: inline-block; margin-right: 2px;
	box-shadow: inset 0 0 0 1px rgba(0,0,0,.1);
}


/* ============================================================
   v1.9.1 — show all colour swatches (no inner scroll)
   ============================================================ */
#gspp .gspp-swatches { max-height: none; overflow: visible; }

/* ============================================================
   v1.10.0 — crawlable pagination links (hidden from humans,
   visible to Googlebot for a full crawl path to every product)
   ============================================================ */
.gspp-seo-pagination {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ============================================================
   v1.10.3 — harden colour swatches against theme button styles
   ============================================================ */
#gspp .gspp-swatches { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; }

#gspp .gspp-swatch,
#gspp button.gspp-swatch {
	display: inline-flex !important;
	align-items: center !important;
	gap: 7px !important;
	width: auto !important;
	min-width: 0 !important;
	border: 1.5px solid var(--line) !important;
	border-radius: 999px !important;
	background: #fff !important;
	background-image: none !important;
	color: var(--ink) !important;
	padding: 5px 12px 5px 6px !important;
	margin: 0 !important;
	font-size: .82rem !important;
	font-weight: 500 !important;
	line-height: 1.2 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	box-shadow: none !important;
	text-shadow: none !important;
}
#gspp .gspp-swatch:hover { border-color: var(--gold) !important; transform: translateY(-1px); }

#gspp .gspp-swatch .gspp-swatch__dot {
	display: inline-block !important;
	width: 18px !important; height: 18px !important;
	border-radius: 50% !important;
	flex: 0 0 auto !important;
	box-shadow: inset 0 0 0 1px rgba(0,0,0,.12) !important;
}
#gspp .gspp-swatch .gspp-swatch__name { color: var(--ink) !important; line-height: 1 !important; }
#gspp .gspp-swatch em {
	font-style: normal !important; color: var(--muted) !important;
	font-size: .72rem !important; background: none !important;
}
#gspp .gspp-swatch.is-active,
#gspp button.gspp-swatch.is-active {
	border-color: var(--maroon) !important;
	box-shadow: 0 0 0 1.5px var(--maroon) !important;
	background: #fff !important;
}
#gspp .gspp-swatch.is-active .gspp-swatch__name { color: var(--maroon) !important; font-weight: 700 !important; }
