/**
 * Store Kit — design tokens.
 *
 * Every value below can be overridden by a child theme by redeclaring the
 * custom property. Tokens marked "dynamic" are also written from the plugin
 * settings via wp_add_inline_style().
 */

:root {
	/* Ink */
	--sk-primary: #111827;
	--sk-primary-soft: #374151;
	--sk-muted: #6b7280;
	--sk-faint: #9ca3af;

	/* Surfaces */
	--sk-bg: #f8fafc;
	--sk-card: #ffffff;
	--sk-card-alt: #f9fafb;
	--sk-border: #e5e7eb;
	--sk-border-strong: #d1d5db;

	/* Accent — dynamic */
	--sk-accent: #2563eb;
	--sk-accent-rgb: 37, 99, 235;
	--sk-accent-hover: #1e4fc4;
	--sk-accent-soft: rgba(37, 99, 235, 0.08);
	--sk-accent-ring: rgba(37, 99, 235, 0.28);
	--sk-accent-contrast: #ffffff;

	/* Status */
	--sk-success: #047857;
	--sk-success-bg: #ecfdf5;
	--sk-danger: #b91c1c;
	--sk-danger-bg: #fef2f2;
	--sk-warning: #b45309;
	--sk-warning-bg: #fffbeb;
	--sk-info: #1d4ed8;
	--sk-info-bg: #eff6ff;

	/* Shape — dynamic */
	--sk-radius: 18px;
	--sk-radius-sm: 12px;
	--sk-radius-btn: 12px;
	--sk-radius-pill: 999px;

	/* Depth */
	--sk-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
	--sk-shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
	--sk-shadow-lift: 0 18px 45px rgba(16, 24, 40, 0.12);

	/* Space */
	--sk-space-1: 4px;
	--sk-space-2: 8px;
	--sk-space-3: 12px;
	--sk-space-4: 16px;
	--sk-space-5: 20px;
	--sk-space-6: 24px;
	--sk-space-8: 32px;
	--sk-space-10: 40px;
	--sk-space-12: 48px;
	--sk-space-16: 64px;

	/* Layout — dynamic */
	--sk-container: 1240px;
	--sk-gap: 32px;
	--sk-sidebar: 380px;
	--sk-sidebar-checkout: minmax(0, 1fr);
	--sk-field-height: 44px;
	/* Desktop field text. Bumped back to 16px on small screens in
	 * responsive.css, below which iOS Safari zooms the page on focus. */
	--sk-field-font: 0.9375rem;
	--sk-sticky-offset: 24px;

	/* Type — the --sk-t-* and --sk-lh-* tokens are written from the
	 * typography settings and consumed by the prose and product rules. */
	--sk-font: inherit;
	--sk-t-h1: 40px;
	--sk-t-h2: 30px;
	--sk-t-h3: 22px;
	--sk-t-h4: 18px;
	--sk-t-body: 16px;
	--sk-t-small: 14px;
	--sk-lh-h1: 1.2;
	--sk-lh-h2: 1.25;
	--sk-lh-h3: 1.3;
	--sk-lh-h4: 1.4;
	--sk-lh-body: 1.7;
	--sk-lh-small: 1.55;
	--sk-fw-h1: 650;
	--sk-fw-h2: 650;
	--sk-fw-h3: 620;
	--sk-fw-h4: 620;
	--sk-fw-body: 400;
	--sk-fw-small: 400;
	--sk-t-price: 22px;
	--sk-t-card_title: 16px;
	--sk-t-card_price: 15px;
	--sk-t-cart_price: 15px;
	--sk-t-total: 18px;
	--sk-t-button: 16px;
	--sk-lh-price: 1.3;
	--sk-lh-card_title: 1.4;
	--sk-lh-card_price: 1.4;
	--sk-lh-cart_price: 1.4;
	--sk-lh-total: 1.3;
	--sk-lh-button: 1.2;
	--sk-fw-price: 650;
	--sk-fw-card_title: 620;
	--sk-fw-card_price: 650;
	--sk-fw-cart_price: 620;
	--sk-fw-total: 700;
	--sk-fw-button: 650;
	--sk-fs-xs: 0.75rem;
	--sk-fs-sm: 0.8125rem;
	--sk-fs-base: 0.9375rem;
	--sk-fs-md: 1rem;
	--sk-fs-lg: 1.125rem;
	--sk-fs-xl: 1.375rem;
	--sk-fs-2xl: 1.875rem;
	--sk-lh-tight: 1.25;
	--sk-lh-base: 1.6;
	--sk-tracking-tight: -0.02em;
	--sk-tracking-wide: 0.06em;

	/* Motion */
	--sk-ease: cubic-bezier(0.4, 0, 0.2, 1);
	--sk-duration: 180ms;
	--sk-transition: all var(--sk-duration) var(--sk-ease);
}

/* -------------------------------------------------------------------------
 * Page shell
 * ---------------------------------------------------------------------- */

.sk-page {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--sk-container);
	margin-inline: auto;
	padding-block: var(--sk-space-6) var(--sk-space-12);
	color: var(--sk-primary);
	font-family: var(--sk-font);
	font-size: var(--sk-fs-base);
	line-height: var(--sk-lh-base);
}

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

.sk-page__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--sk-space-3) var(--sk-space-4);
	margin-bottom: var(--sk-space-8);
}

.sk-page__title {
	margin: 0;
	color: var(--sk-primary);
	font-size: var(--sk-fs-2xl);
	font-weight: 650;
	line-height: var(--sk-lh-tight);
	letter-spacing: var(--sk-tracking-tight);
}

.sk-page__meta {
	margin: 0;
	color: var(--sk-muted);
	font-size: var(--sk-fs-base);
}

.sk-page__head .sk-back {
	margin-inline-start: auto;
}

/* -------------------------------------------------------------------------
 * Container escape
 *
 * common.js marks any ancestor that caps the width below the configured
 * container width. !important is used deliberately here: page builders set
 * these limits through inline styles and ID selectors that nothing else can
 * beat.
 * ---------------------------------------------------------------------- */

.sk-expand .sk-unconstrained {
	max-width: none !important;
	width: auto !important;
}

/* Theme wrappers that sit between the plugin grid and the WooCommerce
 * markup. display:contents hands the real elements back to the grid. */
.sk .sk-passthrough {
	display: contents !important;
}

/* overflow:clip clips like hidden but does not create a scroll container,
 * so position:sticky keeps resolving against the viewport. */
.sk .sk-clip-x {
	overflow-x: clip !important;
}

.sk .sk-clip-y {
	overflow-y: clip !important;
}

/* -------------------------------------------------------------------------
 * Primitives
 * ---------------------------------------------------------------------- */

.sk-card {
	background: var(--sk-card);
	border: 1px solid var(--sk-border);
	border-radius: var(--sk-radius);
	box-shadow: var(--sk-shadow-sm);
}

.sk-link {
	color: var(--sk-accent);
	font-weight: 550;
	text-decoration: none;
	transition: var(--sk-transition);
}

.sk-link:hover,
.sk-link:focus-visible {
	color: var(--sk-accent-hover);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.sk .sk-page .sk-section-title,
.sk-page .sk-section-title {
	margin: 0;
	color: var(--sk-primary);
	font-size: var(--sk-fs-lg);
	font-weight: 620;
	line-height: var(--sk-lh-tight);
	letter-spacing: var(--sk-tracking-tight);
	text-transform: none;
}

.sk .sk-page .sk-section-note,
.sk-page .sk-section-note {
	display: flex;
	align-items: center;
	gap: var(--sk-space-2);
	margin: var(--sk-space-2) 0 0;
	color: var(--sk-muted);
	font-size: var(--sk-fs-sm);
}

.sk-icon {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	vertical-align: middle;
}

/* Prices and totals line up better with tabular figures. */
.sk-page .amount,
.sk-page .woocommerce-Price-amount,
.sk-page .order-total .amount {
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
}

/* -------------------------------------------------------------------------
 * Trust badges
 * ---------------------------------------------------------------------- */

.sk-badges {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--sk-space-3) var(--sk-space-4);
	margin: var(--sk-space-5) 0 0;
	padding: var(--sk-space-4) 0 0;
	border-top: 1px solid var(--sk-border);
	list-style: none;
}

.sk-badges__item {
	display: flex;
	align-items: flex-start;
	gap: var(--sk-space-2);
	margin: 0;
	color: var(--sk-muted);
	font-size: var(--sk-fs-xs);
	line-height: 1.45;
}

.sk-badges__item .sk-icon {
	width: 16px;
	height: 16px;
	margin-top: 1px;
	color: var(--sk-success);
}

.sk-badges__copy {
	display: block;
}

.sk-badges__title {
	display: block;
	color: var(--sk-primary-soft);
	font-weight: 600;
}

.sk-badges__text {
	display: block;
}

.sk-badges--compact {
	grid-template-columns: 1fr;
	gap: var(--sk-space-2);
}

/* -------------------------------------------------------------------------
 * Motion preferences
 * ---------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.sk-page *,
	.sk-page *::before,
	.sk-page *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}
