/* 7Praxis Store Showcase. Colors and fonts are set on the settings page (inline CSS variables); these are fallbacks. */
.spx-show, .spx-cats {
	--spx-navy: #0A1628; --spx-navy-2: #0F1F35; --spx-navy-3: #162232;
	--spx-slate: #8A9BB0; --spx-line: rgba(138,155,176,.18);
	--spx-blue: #30B0FF; --spx-volt: #FFFA54; --spx-coral: #FF5C5C;
	--spx-tile: #AEBBC5; --spx-white: #fff;
	--spx-display: 'Space Grotesk', 'Readex Pro', sans-serif;
	--spx-body: 'Inter', 'Readex Pro', sans-serif;
	--spx-ease: cubic-bezier(.2,.7,.1,1);
	box-sizing: border-box;
}
.spx-show[dir="rtl"], .spx-cats[dir="rtl"] { --spx-display: var(--spx-arabic, 'Readex Pro', sans-serif); --spx-body: var(--spx-arabic-body, 'IBM Plex Sans Arabic', sans-serif); }
.spx-show [dir="rtl"], .spx-cats [dir="rtl"] { font-family: var(--spx-arabic-body, 'IBM Plex Sans Arabic', sans-serif); }
.spx-show *, .spx-show *::before, .spx-show *::after, .spx-cats * { box-sizing: border-box; }

/* ---------- Showcase ---------- */
.spx-show {
	position: relative; overflow: hidden; isolation: isolate;
	background: radial-gradient(120% 90% at 85% 10%, var(--spx-navy-3) 0%, var(--spx-navy) 60%);
	color: var(--spx-white); font-family: var(--spx-body);
	padding: clamp(28px, 4vw, 56px) 0 clamp(24px, 3vw, 40px);
}
.spx-show[dir="rtl"] { background: radial-gradient(120% 90% at 15% 10%, var(--spx-navy-3) 0%, var(--spx-navy) 60%); }
.spx-glow {
	position: absolute; z-index: -1; width: 52vw; height: 52vw; max-width: 760px; max-height: 760px;
	inset-inline-end: -8vw; top: -10%; border-radius: 50%;
	background: radial-gradient(circle, rgba(48,176,255,.20) 0%, rgba(48,176,255,0) 65%);
	pointer-events: none;
}
.spx-show::after { /* fine grid texture */
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
	background-image: linear-gradient(var(--spx-line) 1px, transparent 1px), linear-gradient(90deg, var(--spx-line) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(80% 70% at 50% 40%, #000 0%, transparent 75%);
	-webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000 0%, transparent 75%);
}
.spx-inner { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }

.spx-stage { display: grid; }
.spx-slide {
	grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	align-items: center; gap: clamp(24px, 5vw, 80px); min-height: clamp(420px, 62vh, 600px);
	opacity: 0; visibility: hidden; transition: opacity .6s var(--spx-ease), visibility 0s linear .6s;
}
.spx-slide.is-active { opacity: 1; visibility: visible; transition: opacity .6s var(--spx-ease), visibility 0s; }

/* copy column: staggered entrance */
.spx-copy > * { opacity: 0; transform: translateY(18px); transition: opacity .55s var(--spx-ease), transform .7s var(--spx-ease); }
.spx-slide.is-active .spx-copy > * { opacity: 1; transform: none; }
.spx-slide.is-active .spx-copy > :nth-child(2) { transition-delay: .07s; }
.spx-slide.is-active .spx-copy > :nth-child(3) { transition-delay: .14s; }
.spx-slide.is-active .spx-copy > :nth-child(4) { transition-delay: .21s; }
.spx-slide.is-active .spx-copy > :nth-child(5) { transition-delay: .28s; }

.spx-meta { display: flex; align-items: center; gap: 16px; margin: 0 0 18px; }
.spx-count { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 15px; letter-spacing: .04em; color: var(--spx-white); }
.spx-count small { color: var(--spx-slate); font-size: 13px; margin-inline-start: 2px; }
.spx-eyebrow {
	display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
	border: 1px solid rgba(48,176,255,.35); background: rgba(48,176,255,.08);
	color: var(--spx-blue); font-size: 13px; font-weight: 600; text-decoration: none; letter-spacing: .02em;
}
.spx-eyebrow:hover, .spx-eyebrow:focus-visible { color: var(--spx-white); background: rgba(48,176,255,.2); }
.spx-title { margin: 0 0 20px; font-family: var(--spx-display); font-weight: 700; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.12; letter-spacing: -.01em; }
.spx-show[dir="rtl"] .spx-title { letter-spacing: 0; line-height: 1.3; }
.spx-title, .spx-points li, .spx-thumb-name, .spx-chip { unicode-bidi: plaintext; }
.spx-title a, .spx-title a:hover { color: var(--spx-white); text-decoration: none; }
.spx-points { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.spx-points li { position: relative; padding-inline-start: 26px; color: #C3CEDB; font-size: 16px; line-height: 1.55; }
.spx-points li::before {
	content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 14px; height: 8px;
	background: linear-gradient(90deg, var(--spx-volt) 0 33%, var(--spx-blue) 33% 66%, var(--spx-coral) 66%);
	border-radius: 2px; transform: skewX(-20deg);
}
.spx-price { margin: 0 0 28px; font-family: 'Space Grotesk', 'Readex Pro', sans-serif; font-weight: 700; font-size: clamp(28px, 2.6vw, 38px); color: var(--spx-white); line-height: 1; }
.spx-price del { color: var(--spx-slate); font-size: .55em; font-weight: 500; margin-inline-end: 10px; opacity: 1; }
.spx-price ins { text-decoration: none; background: none; color: var(--spx-white); }
.spx-price .woocommerce-Price-currencySymbol { font-size: .55em; font-weight: 500; color: var(--spx-slate); margin-inline: 4px; }

.spx-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.spx-show .spx-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px;
	border-radius: 999px; font-family: var(--spx-body); font-weight: 600; font-size: 16px; line-height: 1;
	text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
	transition: transform .2s var(--spx-ease), background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.spx-show .spx-btn--primary { background: var(--spx-blue); color: var(--spx-ink, var(--spx-navy)); box-shadow: 0 10px 30px -10px rgba(48,176,255,.7); }
.spx-show .spx-btn--primary:hover, .spx-show .spx-btn--primary:focus-visible { background: color-mix(in srgb, var(--spx-blue) 80%, #fff); color: var(--spx-ink, var(--spx-navy)); transform: translateY(-2px); }
.spx-show .spx-btn--ghost { background: transparent; color: var(--spx-white); border-color: rgba(255,255,255,.35); }
.spx-show .spx-btn--ghost:hover, .spx-show .spx-btn--ghost:focus-visible { background: var(--spx-white); color: var(--spx-navy); border-color: var(--spx-white); }
.spx-show .spx-btn--disabled { background: var(--spx-navy-3); color: var(--spx-slate); cursor: default; }
.spx-show .spx-btn.loading { opacity: .7; pointer-events: none; }
.spx-show .spx-btn.added::after { content: "✓"; font-weight: 700; }
.spx-show a.added_to_cart { color: var(--spx-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; margin-inline-start: 6px; }
.spx-show a.added_to_cart:hover { color: var(--spx-white); }

/* media column */
.spx-media { position: relative; display: block; aspect-ratio: 1 / 1; max-height: 560px; width: 100%; justify-self: center; text-decoration: none; }
.spx-tile {
	position: absolute; inset: 6% 6% 6% 6%; border-radius: 32px; overflow: hidden; display: block;
	background: radial-gradient(90% 90% at 50% 40%, #BAC6CF 0%, var(--spx-tile) 70%);
	box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.25);
	transform: scale(.94) rotate(-1.5deg); transition: transform .9s var(--spx-ease);
}
.spx-slide.is-active .spx-tile { transform: none; }
.spx-tile img { width: 100%; height: 100%; object-fit: contain; display: block; transform: scale(1.06); transition: transform 7s linear; }
.spx-slide.is-active .spx-tile img { transform: scale(1); }
/* three decorative speed stripes sweeping in behind the tile (colors from settings) */
.spx-stripes { position: absolute; inset: 0; display: block; pointer-events: none; }
.spx-stripes i {
	position: absolute; display: block; height: 14px; border-radius: 999px; inset-inline-start: -12%;
	transform: translateX(-30%) skewX(-24deg); opacity: 0; transition: transform 1s var(--spx-ease), opacity .6s;
}
.spx-show[dir="rtl"] .spx-stripes i { transform: translateX(30%) skewX(24deg); }
.spx-stripes i:nth-child(1) { top: 66%; width: 44%; background: var(--spx-volt); }
.spx-stripes i:nth-child(2) { top: 71.5%; width: 58%; background: var(--spx-stripe2, var(--spx-blue)); transition-delay: .08s; }
.spx-stripes i:nth-child(3) { top: 77%; width: 36%; background: var(--spx-coral); transition-delay: .16s; }
.spx-slide.is-active .spx-stripes i { opacity: 1; transform: translateX(0) skewX(-24deg); }
.spx-show[dir="rtl"] .spx-slide.is-active .spx-stripes i { transform: translateX(0) skewX(24deg); }
.spx-tag {
	position: absolute; top: 10%; inset-inline-end: 10%; padding: 7px 14px; border-radius: 999px;
	background: var(--spx-navy); color: var(--spx-volt); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	box-shadow: 0 8px 20px -8px rgba(0,0,0,.6);
}

/* nav: thumbnails with progress + arrows */
.spx-nav { display: flex; align-items: center; gap: 20px; margin-top: clamp(20px, 3vw, 36px); padding-top: 22px; border-top: 1px solid var(--spx-line); }
.spx-thumbs { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 10px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.spx-thumbs::-webkit-scrollbar { display: none; }
.spx-show .spx-thumb {
	all: unset; box-sizing: border-box; position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px 14px;
	border-radius: 14px; cursor: pointer; scroll-snap-align: start; color: var(--spx-slate);
	transition: background-color .25s, color .25s;
}
.spx-show .spx-thumb:hover { background: rgba(255,255,255,.04); color: #C3CEDB; }
.spx-show .spx-thumb.is-active { background: rgba(255,255,255,.06); color: var(--spx-white); }
.spx-show .spx-thumb:focus-visible { outline: 2px solid var(--spx-blue); outline-offset: 2px; }
.spx-thumb-img { flex: none; width: 44px; height: 44px; border-radius: 10px; overflow: hidden; background: var(--spx-tile); }
.spx-thumb-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spx-thumb-name { font-size: 13px; line-height: 1.35; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.spx-thumb-bar { position: absolute; inset-inline: 12px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--spx-line); overflow: hidden; }
.spx-thumb-bar i { display: block; height: 100%; width: 0; background: var(--spx-blue); }
.spx-thumb.is-active .spx-thumb-bar i { width: 100%; }
.spx-show.is-playing .spx-thumb.is-active .spx-thumb-bar i { width: 0; animation: spx-progress var(--spx-dur, 7000ms) linear forwards; }
.spx-show.is-paused .spx-thumb.is-active .spx-thumb-bar i { animation-play-state: paused; }
@keyframes spx-progress { to { width: 100%; } }
.spx-arrows { display: flex; gap: 10px; flex: none; }
.spx-show .spx-arrow {
	all: unset; box-sizing: border-box; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
	border: 1.5px solid rgba(255,255,255,.25); color: var(--spx-white); transition: background-color .2s, border-color .2s, color .2s;
}
.spx-show .spx-arrow:hover, .spx-show .spx-arrow:focus-visible { background: var(--spx-white); color: var(--spx-navy); border-color: var(--spx-white); }
.spx-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spx-show[dir="rtl"] .spx-arrow svg { transform: scaleX(-1); }

/* ---------- Category strip ---------- */
.spx-cats { background: var(--spx-navy-2); border-top: 1px solid var(--spx-line); border-bottom: 1px solid var(--spx-line); font-family: var(--spx-body); }
.spx-cats-inner { max-width: 1240px; margin: 0 auto; padding: 14px clamp(16px, 3vw, 32px); display: flex; align-items: center; gap: 18px; }
.spx-cats-title { flex: none; color: var(--spx-slate); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.spx-cats-list {
	list-style: none; margin: 0; padding: 2px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1;
	mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
	-webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
}
.spx-cats[dir="rtl"] .spx-cats-list { mask-image: linear-gradient(270deg, #000 calc(100% - 48px), transparent); -webkit-mask-image: linear-gradient(270deg, #000 calc(100% - 48px), transparent); }
.spx-cats-list::-webkit-scrollbar { display: none; }
.spx-cats-list li { flex: none; margin: 0; }
.spx-cats .spx-chip {
	display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; white-space: nowrap;
	border: 1px solid var(--spx-line); background: rgba(255,255,255,.03); color: #D6DEE8; font-size: 14px; font-weight: 500; text-decoration: none;
	transition: background-color .2s, border-color .2s, color .2s;
}
.spx-cats .spx-chip span { font-size: 12px; color: var(--spx-slate); font-family: 'Space Grotesk', sans-serif; }
.spx-cats .spx-chip:hover, .spx-cats .spx-chip:focus-visible { border-color: var(--spx-blue); color: var(--spx-white); background: rgba(48,176,255,.1); }
.spx-cats .spx-chip--all { background: var(--spx-white); color: var(--spx-navy); border-color: var(--spx-white); font-weight: 600; }
.spx-cats .spx-chip--all:hover, .spx-cats .spx-chip--all:focus-visible { background: var(--spx-blue); border-color: var(--spx-blue); color: var(--spx-navy); }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
	.spx-slide { grid-template-columns: minmax(0, 1fr); gap: 8px; min-height: 0; align-content: start; }
	.spx-media { order: -1; max-width: 460px; }
	.spx-copy { text-align: start; }
	.spx-arrows { display: none; }
}
@media (max-width: 767px) {
	.spx-show { padding-top: 16px; }
	.spx-media { max-width: min(68vw, 280px); }
	.spx-title { font-size: 26px; margin-bottom: 14px; }
	.spx-meta { margin-bottom: 12px; }
	.spx-points { margin-bottom: 18px; }
	.spx-price { margin-bottom: 18px; }
	.spx-tile { border-radius: 24px; }
	.spx-stripes { display: none; }
	.spx-points li:nth-child(n+3) { display: none; }
	.spx-show .spx-btn { flex: 1 1 0; min-width: 140px; padding: 0 18px; }
	.spx-thumbs { grid-auto-columns: 64px; }
	.spx-thumb-name { display: none; }
	.spx-show .spx-thumb { justify-content: center; padding: 8px 8px 14px; }
	.spx-cats-title { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.spx-show *, .spx-show *::before, .spx-show *::after { transition-duration: .01ms !important; animation: none !important; }
}
