/**
 * Pro Sub BD theme styles.
 * Design tokens mirror the source app (dark premium + gold accent).
 * Utility classes below are a hand-written subset — no build step required.
 */

:root {
	--background: oklch(0.16 0.02 265);
	--foreground: oklch(0.97 0.01 265);
	--card: oklch(0.21 0.02 265);
	--muted: oklch(0.26 0.02 265);
	--muted-foreground: oklch(0.72 0.02 265);
	--border: oklch(0.3 0.02 265);
	--primary: oklch(0.82 0.16 85);
	--primary-foreground: oklch(0.2 0.03 85);
	--destructive: oklch(0.62 0.2 25);
	--radius: 0.75rem;
	--gradient-gold: linear-gradient(135deg, oklch(0.86 0.16 92), oklch(0.74 0.15 68));
	--gradient-hero: linear-gradient(160deg, oklch(0.2 0.03 275), oklch(0.16 0.02 265) 60%);
	--shadow-card: 0 10px 30px -12px oklch(0.1 0.02 265 / 0.7);
	--font-heading: "Space Grotesk", system-ui, sans-serif;
	--font-body: "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--font-body);
	background: var(--background);
	color: var(--foreground);
	line-height: 1.6;
}

h1, h2, h3, h4, summary { font-family: var(--font-heading); line-height: 1.25; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
.antialiased { -webkit-font-smoothing: antialiased; }

/* Layout */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { inset: 0; }
.inset-x-0 { left: 0; right: 0; }
.top-0 { top: 0; }
.top-2 { top: 0.5rem; }
.top-1\/2 { top: 50%; }
.bottom-0 { bottom: 0; }
.bottom-4 { bottom: 1rem; }
.left-2 { left: 0.5rem; }
.right-2 { right: 0.5rem; }
.right-4 { right: 1rem; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-stretch { align-items: stretch; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-end { justify-content: flex-end; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-auto { margin-top: auto; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.ml-2 { margin-left: 0.5rem; }
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.px-2 { padding-inline: 0.5rem; }
.px-3 { padding-inline: 0.75rem; }
.px-4 { padding-inline: 1rem; }
.px-6 { padding-inline: 1.5rem; }
.py-0\.5 { padding-block: 0.125rem; }
.py-1 { padding-block: 0.25rem; }
.py-1\.5 { padding-block: 0.375rem; }
.py-2 { padding-block: 0.5rem; }
.py-3 { padding-block: 0.75rem; }
.py-4 { padding-block: 1rem; }
.py-8 { padding-block: 2rem; }
.py-10 { padding-block: 2.5rem; }
.py-14 { padding-block: 3.5rem; }
.py-20 { padding-block: 5rem; }

/* Sizing */
.h-full { height: 100%; }
.h-9 { height: 2.25rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-56 { height: 14rem; }
.h-3\.5 { height: 0.875rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.w-full { width: 100%; }
.w-fit { width: fit-content; }
.w-9 { width: 2.25rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-3\.5 { width: 0.875rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.min-w-full { min-width: 100%; }
.min-h-screen { min-height: 100vh; }
.max-w-md { max-width: 28rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.aspect-video { aspect-ratio: 16 / 9; }
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }
.overflow-hidden { overflow: hidden; }

/* Typography */
.text-\[10px\] { font-size: 10px; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-6xl { font-size: 3.75rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.tracking-tight { letter-spacing: -0.02em; }
.leading-relaxed { line-height: 1.75; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.line-through { text-decoration: line-through; }
.line-clamp-2 {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.text-foreground { color: var(--foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-primary { color: var(--primary); }
.text-primary-foreground { color: var(--primary-foreground); }
.text-white { color: #fff; }
.text-transparent { color: transparent; }
.bg-clip-text { -webkit-background-clip: text; background-clip: text; }

/* Surfaces */
.bg-background { background-color: var(--background); }
.bg-background\/70 { background-color: color-mix(in oklab, var(--background) 70%, transparent); }
.bg-background\/80 { background-color: color-mix(in oklab, var(--background) 80%, transparent); }
.bg-background\/95 { background-color: color-mix(in oklab, var(--background) 95%, transparent); }
.bg-card { background-color: var(--card); }
.bg-muted { background-color: var(--muted); }
.bg-transparent { background-color: transparent; }
.bg-primary\/10 { background-color: color-mix(in oklab, var(--primary) 10%, transparent); }
.bg-destructive\/10 { background-color: color-mix(in oklab, var(--destructive) 12%, transparent); }
.bg-\[\#229ED9\] { background-color: #229ed9; }
.group-hover\:bg-primary { background-color: transparent; }
.group:hover .group-hover\:bg-primary { background-color: var(--primary); }
.group:hover .group-hover\:text-primary-foreground { color: var(--primary-foreground); }
.bg-gold { background-image: var(--gradient-gold); }
.bg-hero { background-image: var(--gradient-hero); }
.bg-gradient-to-t.from-background\/95.to-transparent {
	background-image: linear-gradient(to top, color-mix(in oklab, var(--background) 95%, transparent), transparent);
}
.backdrop-blur { backdrop-filter: blur(10px); }
.opacity-25 { opacity: 0.25; }
.shadow-card { box-shadow: var(--shadow-card); }

/* Borders */
.border { border: 1px solid var(--border); }
.border-t { border-top: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }
.border-border { border-color: var(--border); }
.border-primary\/30 { border-color: color-mix(in oklab, var(--primary) 30%, transparent); }
.border-primary\/40 { border-color: color-mix(in oklab, var(--primary) 40%, transparent); }
.border-destructive\/40 { border-color: color-mix(in oklab, var(--destructive) 40%, transparent); }
.hover\:border-primary\/40:hover { border-color: color-mix(in oklab, var(--primary) 40%, transparent); }
.has-\[\:checked\]\:border-primary:has(:checked) { border-color: var(--primary); }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: var(--radius); }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* Effects */
.transition-colors { transition: color 0.2s, background-color 0.2s, border-color 0.2s; }
.transition-transform { transition: transform 0.25s ease; }
.duration-500 { transition-duration: 0.5s; }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:scale-110:hover { transform: scale(1.1); }
.hover\:-translate-y-1:hover { transform: translateY(-0.25rem); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.rotate-180 { transform: rotate(180deg); }
.hover\:text-primary:hover { color: var(--primary); }
.cursor-pointer { cursor: pointer; }
.outline-none { outline: none; }
.sr-only {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* Component bits */
.psbd-chip.is-active { border-color: var(--primary); color: var(--primary); }
.psbd-card.is-hidden, .psbd-group.is-hidden { display: none; }

/* Missing utilities used by product cards */
[hidden] { display: none !important; }
.aspect-square { aspect-ratio: 1 / 1; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Whole product card is clickable and equal height */
.psbd-card { display: flex; }
.psbd-card > [data-psbd-order] { display: flex; flex-direction: column; width: 100%; height: 100%; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; font: inherit; }
.psbd-card > [data-psbd-order] > span:first-child { aspect-ratio: 1 / 1; width: 100%; }
.psbd-card > [data-psbd-order] > span:first-child img { max-height: 100%; }
.psbd-chip.is-active { background: var(--primary); color: var(--primary-foreground); }
.psbd-widget ul { list-style: none; margin: 0; padding: 0; }
.psbd-widget li + li { margin-top: 0.4rem; }
.custom-logo { max-height: 44px; width: auto; }

nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
nav.fixed ul li { flex: 1; text-align: center; }
nav.fixed ul li a { display: block; padding: 0.25rem; }

.pagination, .nav-links { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
.nav-links .page-numbers {
	padding: 0.35rem 0.7rem;
	border: 1px solid var(--border);
	border-radius: 0.5rem;
}
.nav-links .page-numbers.current { background-image: var(--gradient-gold); color: var(--primary-foreground); }

.prose-legal { color: var(--muted-foreground); }
.prose-legal h2, .prose-legal h3 { color: var(--foreground); margin-top: 1.5rem; }
.prose-legal ul, .prose-legal ol { padding-left: 1.25rem; }
.prose-legal a { color: var(--primary); text-decoration: underline; }

/* Responsive */
@media (min-width: 640px) {
	.sm\:hidden { display: none; }
	.sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.sm\:text-2xl { font-size: 1.5rem; }
	.sm\:text-3xl { font-size: 1.875rem; }
	.sm\:text-5xl { font-size: 3rem; }
	.sm\:py-20 { padding-block: 5rem; }
	.sm\:h-80 { height: 20rem; }
}

@media (min-width: 1024px) {
	.lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
	* { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Order flow modal */
.psbd-modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.psbd-modal[hidden] { display: none; }
.psbd-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(2px); }
.psbd-modal-card {
	position: relative;
	width: 100%;
	max-width: 30rem;
	max-height: 88vh;
	overflow-y: auto;
	border: 1px solid var(--border);
	border-radius: 1rem;
	background: var(--card);
	color: var(--foreground);
	padding: 1rem 1.1rem 1.25rem;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.psbd-package, .psbd-method { background: var(--background); transition: border-color 0.15s ease, transform 0.15s ease; }
.psbd-package:hover, .psbd-method:hover { border-color: var(--primary); }
.psbd-package.is-active { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; }
.psbd-package[disabled] { opacity: 0.5; cursor: not-allowed; }
.psbd-input {
	width: 100%;
	border: 1px solid var(--border);
	border-radius: 0.6rem;
	background: var(--background);
	color: var(--foreground);
	padding: 0.55rem 0.7rem;
	font: inherit;
}
.psbd-input:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.psbd-myorders-list code { background: var(--background); }
