/**
 * NikahKit Public Stylesheet — Mobile-app style PWA
 * BEM notation matching templates exactly.
 */

/* ============================================================
 * CSS Variables — Theme tokens
 * ============================================================ */
:root {
	--nk-primary: #10b981;
	--nk-primary-dark: #059669;
	--nk-primary-light: #d1fae5;
	--nk-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
	--nk-bg: #f9fafb;
	--nk-surface: #ffffff;
	--nk-text: #111827;
	--nk-text-soft: #6b7280;
	--nk-text-mute: #9ca3af;
	--nk-border: #e5e7eb;
	--nk-border-soft: #f3f4f6;
	--nk-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
	--nk-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
	--nk-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
	--nk-success: #10b981;
	--nk-warning: #f59e0b;
	--nk-danger: #ef4444;
	--nk-info: #3b82f6;
	--nk-radius: 14px;
	--nk-radius-sm: 10px;
	--nk-radius-lg: 20px;
	--nk-header-h: 110px;
	--nk-bottom-h: 64px;
	--nk-max-w: 480px;
}

[data-theme="dark"] {
	--nk-bg: #0f172a;
	--nk-surface: #1e293b;
	--nk-text: #f1f5f9;
	--nk-text-soft: #94a3b8;
	--nk-text-mute: #64748b;
	--nk-border: #334155;
	--nk-border-soft: #1e293b;
	--nk-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* ============================================================
 * Reset & base
 * ============================================================ */
.nk-app, .nk-app * {
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}

.nk-app {
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: var(--nk-text);
	background: var(--nk-bg);
	min-height: 100vh;
	max-width: var(--nk-max-w);
	margin: 0 auto;
	position: relative;
	padding-bottom: calc(var(--nk-bottom-h) + 20px);
	overflow-x: hidden;
}

.nk-app a { color: inherit; text-decoration: none; }
.nk-app img { max-width: 100%; height: auto; display: block; }
.nk-app button {
	font-family: inherit;
	cursor: pointer;
	border: none;
	background: none;
	padding: 0;
	color: inherit;
}

/* ============================================================
 * Splash Screen
 * ============================================================ */
.nk-splash {
	position: fixed;
	inset: 0;
	background: var(--nk-gradient);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	transition: opacity 0.6s ease, visibility 0.6s ease;
	color: #fff;
}

.nk-splash.nk-hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.nk-splash__logo {
	width: 96px;
	height: 96px;
	margin-bottom: 20px;
	animation: nk-bounce 1.2s ease-in-out infinite;
}

.nk-splash__logo svg {
	width: 100%;
	height: 100%;
	filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.nk-splash__title {
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -0.5px;
	margin-bottom: 6px;
	color: #fff;
}

.nk-splash__tag {
	font-size: 13px;
	opacity: 0.9;
	color: #fff;
}

.nk-splash__loader {
	margin-top: 30px;
	width: 36px;
	height: 36px;
	border: 3px solid rgba(255, 255, 255, 0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: nk-spin 0.8s linear infinite;
}

@keyframes nk-spin { to { transform: rotate(360deg); } }
@keyframes nk-bounce {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}

/* ============================================================
 * Sticky Header
 * ============================================================ */
.nk-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--nk-surface);
	border-bottom: 1px solid var(--nk-border-soft);
	box-shadow: var(--nk-shadow-sm);
}

.nk-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px 8px;
}

.nk-header__brand {
	display: flex;
	align-items: center;
	gap: 10px;
}

.nk-header__logo {
	width: 36px;
	height: 36px;
	background: var(--nk-gradient);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	box-shadow: var(--nk-shadow);
}

.nk-header__logo svg { width: 22px; height: 22px; }

.nk-header__title {
	font-size: 17px;
	font-weight: 800;
	letter-spacing: -0.3px;
}

.nk-header__title--detail {
	font-size: 15px;
	font-weight: 600;
}

.nk-header__actions {
	display: flex;
	gap: 8px;
}

.nk-icon-btn {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--nk-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--nk-text);
	position: relative;
	transition: background 0.2s;
}

.nk-icon-btn:hover { background: var(--nk-primary-light); }
.nk-icon-btn svg { width: 18px; height: 18px; }

.nk-icon-sun { display: none; }
[data-theme="dark"] .nk-icon-sun { display: block; }
[data-theme="dark"] .nk-icon-moon { display: none; }

.nk-notif-dot {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 8px;
	height: 8px;
	background: var(--nk-danger);
	border-radius: 50%;
	border: 2px solid var(--nk-surface);
}

.nk-header__search {
	padding: 0 16px 12px;
}

.nk-search {
	position: relative;
	background: var(--nk-bg);
	border-radius: 999px;
	display: flex;
	align-items: center;
	padding: 0 14px;
	gap: 8px;
}

.nk-search__icon {
	width: 16px;
	height: 16px;
	color: var(--nk-text-mute);
	flex-shrink: 0;
}

.nk-search__input {
	flex: 1;
	border: none;
	background: transparent;
	padding: 10px 0;
	font-size: 13px;
	font-family: inherit;
	color: var(--nk-text);
	outline: none;
}

.nk-search__input::placeholder { color: var(--nk-text-mute); }

.nk-search__clear {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--nk-text-mute);
	color: #fff;
	font-size: 14px;
	line-height: 1;
}

.nk-search__results {
	position: absolute;
	left: 16px;
	right: 16px;
	background: var(--nk-surface);
	border-radius: var(--nk-radius);
	box-shadow: var(--nk-shadow-lg);
	max-height: 60vh;
	overflow-y: auto;
	z-index: 200;
	margin-top: -8px;
}

.nk-search__results:empty { display: none; }

.nk-search-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	border-bottom: 1px solid var(--nk-border-soft);
}

.nk-search-item img {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	object-fit: cover;
}

/* ============================================================
 * Main scroll area
 * ============================================================ */
.nk-main {
	padding: 0;
}

.nk-section {
	padding: 16px;
}

.nk-section__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.nk-section__title {
	font-size: 15px;
	font-weight: 700;
	color: var(--nk-text);
	margin: 0;
}

.nk-section__more {
	font-size: 12px;
	color: var(--nk-primary);
	font-weight: 600;
}

/* ============================================================
 * Banner Slider
 * ============================================================ */
.nk-banner-slider {
	overflow: hidden;
	margin: 12px 16px 0;
	border-radius: var(--nk-radius);
	position: relative;
}

.nk-banner-track {
	display: flex;
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nk-banner {
	min-width: 100%;
	height: 160px;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 20px 24px;
	color: #fff;
	overflow: hidden;
}

.nk-banner--1 {
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.nk-banner--2 {
	background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.nk-banner--3 {
	background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.nk-banner__badge {
	display: inline-block;
	background: rgba(255, 255, 255, 0.25);
	color: #fff;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	margin-bottom: 8px;
	width: fit-content;
	backdrop-filter: blur(8px);
}

.nk-banner__title {
	font-size: 22px;
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 6px;
	color: #fff;
}

.nk-banner__sub {
	font-size: 12px;
	opacity: 0.95;
	margin: 0 0 12px;
	color: #fff;
}

.nk-banner__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	color: var(--nk-text);
	padding: 8px 16px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	width: fit-content;
}

.nk-banner__deco {
	position: absolute;
	right: -20px;
	top: -20px;
	font-size: 100px;
	opacity: 0.15;
	transform: rotate(15deg);
	line-height: 1;
}

.nk-banner-dots {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 10px;
}

.nk-banner-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--nk-border);
	transition: all 0.2s;
	cursor: pointer;
}

.nk-banner-dot.active {
	width: 18px;
	background: var(--nk-primary);
	border-radius: 999px;
}

/* ============================================================
 * Categories Horizontal Scroll
 * ============================================================ */
.nk-categories {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	padding: 4px 16px 8px;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.nk-categories::-webkit-scrollbar { display: none; }

.nk-cat-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	scroll-snap-align: start;
	min-width: 64px;
	text-align: center;
}

.nk-cat-item__icon {
	width: 56px;
	height: 56px;
	background: var(--nk-primary-light);
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	transition: transform 0.2s;
}

.nk-cat-item:hover .nk-cat-item__icon { transform: translateY(-2px); }

.nk-cat-item__label {
	font-size: 11px;
	font-weight: 500;
	color: var(--nk-text);
	line-height: 1.2;
}

/* ============================================================
 * Flash Sale
 * ============================================================ */
.nk-flash {
	background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
	margin: 16px;
	border-radius: var(--nk-radius);
	padding: 14px;
}

[data-theme="dark"] .nk-flash {
	background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
}

.nk-flash__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.nk-flash__title-wrap {
	display: flex;
	align-items: center;
	gap: 6px;
}

.nk-flash__emoji {
	font-size: 22px;
	animation: nk-bounce 1.5s ease-in-out infinite;
}

.nk-flash__title {
	font-size: 14px;
	font-weight: 800;
	color: #b45309;
	margin: 0;
}

[data-theme="dark"] .nk-flash__title { color: #fbbf24; }

.nk-countdown {
	display: flex;
	gap: 4px;
	margin-left: 8px;
}

.nk-countdown__box {
	background: var(--nk-text);
	color: #fff;
	padding: 4px 8px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 700;
	min-width: 26px;
	text-align: center;
}

.nk-countdown__sep {
	color: var(--nk-text);
	font-weight: 700;
	font-size: 14px;
}

.nk-h-scroll {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding-bottom: 4px;
	scrollbar-width: none;
}

.nk-h-scroll::-webkit-scrollbar { display: none; }

.nk-h-scroll .nk-card {
	min-width: 150px;
	max-width: 150px;
	flex-shrink: 0;
}

/* ============================================================
 * Product Card
 * ============================================================ */
.nk-product-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}

.nk-card {
	background: var(--nk-surface);
	border-radius: var(--nk-radius);
	overflow: hidden;
	box-shadow: var(--nk-shadow-sm);
	display: flex;
	flex-direction: column;
	transition: transform 0.2s, box-shadow 0.2s;
	border: 1px solid var(--nk-border-soft);
}

.nk-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--nk-shadow);
}

.nk-card__media {
	position: relative;
	aspect-ratio: 1 / 1;
	background: var(--nk-bg);
	overflow: hidden;
}

.nk-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nk-card__discount {
	position: absolute;
	top: 6px;
	left: 6px;
	background: var(--nk-danger);
	color: #fff;
	padding: 2px 7px;
	border-radius: 6px;
	font-size: 10px;
	font-weight: 700;
}

.nk-card__platform {
	position: absolute;
	bottom: 6px;
	left: 6px;
	background: rgba(255, 255, 255, 0.95);
	padding: 2px 6px;
	border-radius: 6px;
	font-size: 10px;
	font-weight: 600;
	color: var(--nk-text);
}

.nk-card__platform--digital {
	background: rgba(16, 185, 129, 0.9);
	color: #fff;
}

.nk-card__wish {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--nk-text-mute);
	backdrop-filter: blur(8px);
	transition: color 0.2s;
}

.nk-card__wish svg { width: 14px; height: 14px; }
.nk-card__wish.active { color: var(--nk-danger); }
.nk-card__wish.active svg { fill: var(--nk-danger); }

.nk-card__body {
	padding: 8px 10px 10px;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.nk-card__title {
	font-size: 12px;
	font-weight: 600;
	color: var(--nk-text);
	margin: 0;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 32px;
}

.nk-card__price-row {
	display: flex;
	align-items: baseline;
	gap: 6px;
	flex-wrap: wrap;
}

.nk-card__price {
	font-size: 14px;
	font-weight: 800;
	color: var(--nk-primary-dark);
}

.nk-card__price-strike {
	font-size: 11px;
	color: var(--nk-text-mute);
	text-decoration: line-through;
}

.nk-card__meta {
	display: flex;
	justify-content: space-between;
	font-size: 10px;
	color: var(--nk-text-mute);
}

/* ============================================================
 * Bottom Navigation
 * ============================================================ */
.nk-bottom-nav {
	position: fixed;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	max-width: var(--nk-max-w);
	height: var(--nk-bottom-h);
	background: var(--nk-surface);
	display: flex;
	justify-content: space-around;
	align-items: center;
	border-top: 1px solid var(--nk-border);
	box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
	z-index: 90;
	padding-bottom: env(safe-area-inset-bottom, 0);
}

.nk-nav-item {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 8px 4px;
	color: var(--nk-text-mute);
	transition: color 0.2s;
}

.nk-nav-item svg { width: 22px; height: 22px; }

.nk-nav-item span {
	font-size: 10px;
	font-weight: 500;
}

.nk-nav-item.active { color: var(--nk-primary); }

.nk-nav-item.active svg {
	stroke-width: 2.5;
}

/* ============================================================
 * FAB — Floating WhatsApp
 * ============================================================ */
.nk-fab {
	position: fixed;
	bottom: calc(var(--nk-bottom-h) + 16px);
	right: calc(50% - var(--nk-max-w) / 2 + 16px);
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
	z-index: 80;
	transition: transform 0.2s;
}

.nk-fab:hover { transform: scale(1.08); }
.nk-fab svg { width: 26px; height: 26px; }

@media (max-width: 480px) {
	.nk-fab { right: 16px; }
}

/* ============================================================
 * Product Detail
 * ============================================================ */
.nk-pd {
	padding-bottom: 90px;
}

.nk-pd__gallery {
	aspect-ratio: 1 / 1;
	background: var(--nk-bg);
	overflow: hidden;
}

.nk-pd__gallery img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nk-pd__body {
	padding: 16px;
	background: var(--nk-surface);
	border-radius: var(--nk-radius-lg) var(--nk-radius-lg) 0 0;
	margin-top: -20px;
	position: relative;
	z-index: 2;
}

.nk-pd__title {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 10px;
	color: var(--nk-text);
}

.nk-pd__price-row {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 12px;
}

.nk-pd__price {
	font-size: 22px;
	font-weight: 800;
	color: var(--nk-primary-dark);
}

.nk-pd__price-strike {
	font-size: 14px;
	color: var(--nk-text-mute);
	text-decoration: line-through;
}

.nk-pd__discount {
	background: var(--nk-danger);
	color: #fff;
	padding: 2px 8px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 700;
}

.nk-pd__meta {
	display: flex;
	gap: 16px;
	padding: 12px 0;
	border-top: 1px solid var(--nk-border-soft);
	border-bottom: 1px solid var(--nk-border-soft);
	font-size: 12px;
	color: var(--nk-text-soft);
	margin-bottom: 16px;
}

.nk-pd__desc {
	font-size: 13px;
	line-height: 1.6;
	color: var(--nk-text-soft);
}

/* Sticky buy bar */
.nk-buybar {
	position: fixed;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	max-width: var(--nk-max-w);
	background: var(--nk-surface);
	padding: 10px 14px;
	display: flex;
	gap: 10px;
	border-top: 1px solid var(--nk-border);
	z-index: 90;
}

.nk-buybar__chat {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--nk-primary-light);
	color: var(--nk-primary-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.nk-buybar__btn {
	flex: 1;
	height: 44px;
	border-radius: 12px;
	font-weight: 700;
	font-size: 14px;
	background: var(--nk-bg);
	color: var(--nk-text);
}

.nk-buybar__btn--primary {
	background: var(--nk-gradient);
	color: #fff;
	box-shadow: var(--nk-shadow);
}

/* ============================================================
 * Account / Member Area
 * ============================================================ */
.nk-account-header {
	background: var(--nk-gradient);
	color: #fff;
	padding: 28px 16px 20px;
	text-align: center;
}

.nk-avatar {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	font-weight: 700;
	color: #fff;
	margin: 0 auto 12px;
	border: 3px solid rgba(255, 255, 255, 0.5);
}

.nk-account-name {
	margin: 0;
	color: #fff;
	font-size: 17px;
	font-weight: 700;
}

.nk-account-email {
	margin: 4px 0 0;
	color: rgba(255, 255, 255, 0.85);
	font-size: 12px;
}

.nk-account-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	padding: 16px;
	background: var(--nk-surface);
	margin-bottom: 12px;
}

.nk-stat-card {
	text-align: center;
	padding: 12px 6px;
	background: var(--nk-bg);
	border-radius: var(--nk-radius-sm);
}

.nk-stat-value {
	font-size: 18px;
	font-weight: 800;
	color: var(--nk-primary-dark);
}

.nk-stat-label {
	font-size: 10px;
	color: var(--nk-text-soft);
	margin-top: 2px;
}

.nk-tabs {
	display: flex;
	overflow-x: auto;
	gap: 4px;
	padding: 4px 12px 8px;
	background: var(--nk-surface);
	scrollbar-width: none;
}

.nk-tabs::-webkit-scrollbar { display: none; }

.nk-tab {
	padding: 8px 14px;
	font-size: 12px;
	font-weight: 600;
	color: var(--nk-text-soft);
	background: var(--nk-bg);
	border-radius: 999px;
	white-space: nowrap;
	flex-shrink: 0;
}

.nk-tab.active {
	background: var(--nk-primary);
	color: #fff;
}

.nk-tab-pane { display: none; padding: 12px 16px; }
.nk-tab-pane.active { display: block; }

.nk-menu-list {
	background: var(--nk-surface);
	border-radius: var(--nk-radius);
	overflow: hidden;
}

.nk-menu-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border-bottom: 1px solid var(--nk-border-soft);
}

.nk-menu-item:last-child { border-bottom: none; }

.nk-menu-icon {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--nk-primary-light);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	flex-shrink: 0;
}

.nk-menu-label {
	flex: 1;
	font-size: 13px;
	font-weight: 500;
}

.nk-menu-arrow {
	color: var(--nk-text-mute);
}

/* ============================================================
 * Auth / Login Form
 * ============================================================ */
.nk-auth-wrap {
	padding: 24px 20px;
	background: var(--nk-surface);
	border-radius: var(--nk-radius);
	margin: 20px 16px;
	box-shadow: var(--nk-shadow-sm);
}

.nk-auth-title {
	font-size: 20px;
	font-weight: 800;
	margin: 0 0 6px;
	text-align: center;
}

.nk-auth-sub {
	font-size: 13px;
	color: var(--nk-text-soft);
	margin-bottom: 20px;
	text-align: center;
}

.nk-form-group { margin-bottom: 14px; }

.nk-form-label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	margin-bottom: 6px;
	color: var(--nk-text);
}

.nk-form-control {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--nk-border);
	border-radius: var(--nk-radius-sm);
	font-size: 13px;
	font-family: inherit;
	color: var(--nk-text);
	background: var(--nk-bg);
	outline: none;
	transition: border-color 0.2s;
}

.nk-form-control:focus {
	border-color: var(--nk-primary);
	background: var(--nk-surface);
}

textarea.nk-form-control { min-height: 80px; resize: vertical; }

/* ============================================================
 * Buttons
 * ============================================================ */
.nk-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 20px;
	border-radius: var(--nk-radius-sm);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	border: none;
	transition: all 0.2s;
	font-family: inherit;
}

.nk-btn-primary {
	background: var(--nk-gradient);
	color: #fff;
	box-shadow: var(--nk-shadow);
}

.nk-btn-primary:hover { transform: translateY(-1px); }

.nk-btn-outline {
	background: transparent;
	color: var(--nk-primary);
	border: 1px solid var(--nk-primary);
}

.nk-btn-block { width: 100%; }

.nk-btn-lg {
	padding: 13px 24px;
	font-size: 14px;
}

/* ============================================================
 * Badges
 * ============================================================ */
.nk-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 600;
}

.nk-badge-success { background: #d1fae5; color: #059669; }
.nk-badge-warning { background: #fef3c7; color: #b45309; }
.nk-badge-danger { background: #fee2e2; color: #b91c1c; }
.nk-badge-info { background: #dbeafe; color: #1e40af; }
.nk-badge-mute { background: #f3f4f6; color: #6b7280; }

/* ============================================================
 * Checkout Page
 * ============================================================ */
.nk-payment-methods {
	background: var(--nk-surface);
	border-radius: var(--nk-radius);
	overflow: hidden;
}

.nk-payment-option {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border-bottom: 1px solid var(--nk-border-soft);
	cursor: pointer;
	transition: background 0.2s;
}

.nk-payment-option:last-child { border-bottom: none; }
.nk-payment-option:hover { background: var(--nk-bg); }
.nk-payment-option.selected { background: var(--nk-primary-light); }

.nk-payment-logo {
	width: 40px;
	height: 40px;
	background: var(--nk-bg);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
}

.nk-payment-name {
	flex: 1;
	font-size: 13px;
	font-weight: 600;
}

.nk-checkout-summary {
	background: var(--nk-surface);
	border-radius: var(--nk-radius);
	padding: 16px;
}

.nk-summary-row {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	margin-bottom: 8px;
}

.nk-summary-row.total {
	border-top: 1px solid var(--nk-border-soft);
	padding-top: 10px;
	margin-top: 10px;
	font-size: 16px;
	font-weight: 800;
	color: var(--nk-primary-dark);
}

.nk-pd-cta {
	position: fixed;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	max-width: var(--nk-max-w);
	background: var(--nk-surface);
	padding: 12px 16px;
	border-top: 1px solid var(--nk-border);
	z-index: 90;
}

/* ============================================================
 * Empty state
 * ============================================================ */
.nk-empty {
	text-align: center;
	padding: 40px 20px;
	color: var(--nk-text-soft);
}

.nk-empty-icon {
	font-size: 56px;
	opacity: 0.5;
	margin-bottom: 12px;
}

.nk-empty-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--nk-text);
	margin: 0 0 4px;
}

.nk-empty-sub {
	font-size: 12px;
	color: var(--nk-text-soft);
}

/* ============================================================
 * Load more
 * ============================================================ */
.nk-load-more {
	text-align: center;
	padding: 20px 16px;
}

.nk-load-more button {
	padding: 10px 24px;
	background: var(--nk-surface);
	border: 1px solid var(--nk-border);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	color: var(--nk-primary);
}

/* ============================================================
 * Toast notification
 * ============================================================ */
.nk-toast {
	position: fixed;
	bottom: 90px;
	left: 50%;
	transform: translateX(-50%) translateY(20px);
	background: var(--nk-text);
	color: #fff;
	padding: 10px 18px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	opacity: 0;
	transition: all 0.3s;
	z-index: 9000;
	pointer-events: none;
	white-space: nowrap;
}

.nk-toast.show {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

/* ============================================================
 * PWA Install Banner
 * ============================================================ */
.nk-pwa-banner {
	position: fixed;
	bottom: calc(var(--nk-bottom-h) + 12px);
	left: 50%;
	transform: translateX(-50%) translateY(120px);
	width: calc(100% - 24px);
	max-width: 440px;
	background: var(--nk-surface);
	padding: 14px;
	border-radius: var(--nk-radius);
	box-shadow: var(--nk-shadow-lg);
	display: flex;
	align-items: center;
	gap: 12px;
	z-index: 85;
	transition: transform 0.3s;
}

.nk-pwa-banner.show {
	transform: translateX(-50%) translateY(0);
}

.nk-pwa-icon {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: var(--nk-gradient);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	flex-shrink: 0;
}

.nk-pwa-text {
	flex: 1;
	font-size: 12px;
	line-height: 1.3;
}

.nk-pwa-text strong { font-size: 13px; display: block; }

.nk-pwa-btn {
	background: var(--nk-primary);
	color: #fff;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
}

.nk-pwa-close {
	color: var(--nk-text-mute);
	font-size: 18px;
	width: 24px;
	height: 24px;
}

/* ============================================================
 * Utility classes
 * ============================================================ */
.nk-hidden { display: none !important; }
.nk-text-center { text-align: center; }
.nk-mt-2 { margin-top: 16px; }
.nk-mb-2 { margin-bottom: 16px; }
.nk-mb-3 { margin-bottom: 24px; }

/* ============================================================
 * Container helper
 * ============================================================ */
.nk-container {
	padding: 0;
}

/* ============================================================
 * Bottom sheet & backdrop
 * ============================================================ */
.nk-sheet-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 200;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s;
}

.nk-sheet-backdrop.open {
	opacity: 1;
	pointer-events: all;
}

.nk-sheet {
	position: fixed;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%) translateY(100%);
	width: 100%;
	max-width: var(--nk-max-w);
	background: var(--nk-surface);
	border-radius: var(--nk-radius-lg) var(--nk-radius-lg) 0 0;
	padding: 20px;
	z-index: 250;
	transition: transform 0.3s;
	max-height: 80vh;
	overflow-y: auto;
}

.nk-sheet.open {
	transform: translateX(-50%) translateY(0);
}

/* ============================================================
 * Product Detail — additional styles
 * ============================================================ */
.nk-detail-card {
	background: var(--nk-surface);
	border-radius: var(--nk-radius-lg) var(--nk-radius-lg) 0 0;
	padding: 20px 16px;
	margin-top: -20px;
	position: relative;
	z-index: 2;
}

.nk-detail-hero { position: relative; aspect-ratio: 1; background: var(--nk-bg); }
.nk-detail-hero__img { width: 100%; height: 100%; object-fit: cover; }

.nk-detail-title {
	font-size: 18px;
	font-weight: 800;
	margin: 0 0 8px;
	line-height: 1.3;
}

.nk-detail-price {
	font-size: 22px;
	font-weight: 800;
	color: var(--nk-primary-dark);
}

.nk-detail-price-strike {
	font-size: 14px;
	color: var(--nk-text-mute);
	text-decoration: line-through;
	margin-left: 8px;
}

.nk-detail-discount-badge {
	display: inline-block;
	background: var(--nk-danger);
	color: #fff;
	padding: 2px 8px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 700;
	margin-left: 6px;
}

.nk-detail-discount-row {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 6px 0 14px;
}

.nk-detail-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 0;
	border-top: 1px solid var(--nk-border-soft);
	border-bottom: 1px solid var(--nk-border-soft);
	font-size: 12px;
	color: var(--nk-text-soft);
	margin-bottom: 16px;
}

.nk-detail-meta__dot {
	width: 4px;
	height: 4px;
	background: var(--nk-text-mute);
	border-radius: 50%;
}

.nk-detail-platform {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--nk-primary-light);
	color: var(--nk-primary-dark);
	padding: 8px 12px;
	border-radius: 10px;
	margin-bottom: 14px;
	font-size: 12px;
	font-weight: 600;
}

.nk-detail-platform__icon { font-size: 18px; }

.nk-detail-flash {
	background: linear-gradient(135deg, #fef3c7, #fde68a);
	padding: 12px;
	border-radius: var(--nk-radius);
	margin: 12px 0;
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	color: #b45309;
}

.nk-detail-section-title {
	font-size: 14px;
	font-weight: 700;
	margin: 18px 0 8px;
}

.nk-detail-desc {
	font-size: 13px;
	color: var(--nk-text-soft);
	line-height: 1.6;
}

.nk-detail-desc__short { display: block; }
.nk-detail-desc__full { display: none; }
.nk-detail-desc.expanded .nk-detail-desc__short { display: none; }
.nk-detail-desc.expanded .nk-detail-desc__full { display: block; }

/* ============================================================
 * Section headers
 * ============================================================ */
.nk-section-header,
.nk-section__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.nk-section-title,
.nk-section__title {
	font-size: 15px;
	font-weight: 700;
	color: var(--nk-text);
	margin: 0;
}

.nk-section__link {
	font-size: 12px;
	color: var(--nk-primary);
	font-weight: 600;
}

/* ============================================================
 * Banner content wrapper (legacy)
 * ============================================================ */
.nk-banner__content {
	position: relative;
	z-index: 2;
}

/* ============================================================
 * Product grid latest (load-more target)
 * ============================================================ */
.nk-product-grid-latest {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}

.nk-product-scroll {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	scrollbar-width: none;
}

.nk-product-scroll::-webkit-scrollbar { display: none; }

.nk-product-scroll .nk-card {
	min-width: 150px;
	max-width: 150px;
	flex-shrink: 0;
}

/* ============================================================
 * Category grid (alternate layout)
 * ============================================================ */
.nk-cat-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	padding: 12px 16px;
}

/* ============================================================
 * Card rating/sold extras
 * ============================================================ */
.nk-card__rating,
.nk-card__sold {
	font-size: 10px;
	color: var(--nk-text-mute);
}

/* ============================================================
 * Header variants
 * ============================================================ */
.nk-header--detail {
	background: transparent;
	position: absolute;
	box-shadow: none;
	border-bottom: none;
}

.nk-header--detail .nk-header__title--detail {
	color: #fff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Legacy header classes */
.nk-header-brand,
.nk-header-icon,
.nk-header-search,
.nk-brand-icon,
.nk-search-form,
.nk-notif-btn,
.nk-theme-toggle { /* aliases used by partials */ }

.nk-header-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 800;
	color: var(--nk-text);
}

.nk-brand-icon {
	width: 32px;
	height: 32px;
	background: var(--nk-gradient);
	color: #fff;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 14px;
}

.nk-header-icon {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--nk-bg);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--nk-text);
	margin-left: 6px;
}

.nk-header-search {
	flex: 1;
	background: var(--nk-bg);
	border-radius: 999px;
	padding: 6px 12px;
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 8px;
}

.nk-header-search input {
	flex: 1;
	border: none;
	background: transparent;
	font-size: 13px;
	outline: none;
	font-family: inherit;
}

.nk-search-form { display: contents; }

/* ============================================================
 * PWA install banner — alternate class names
 * ============================================================ */
.nk-install-banner {
	position: fixed;
	bottom: calc(var(--nk-bottom-h) + 12px);
	left: 50%;
	transform: translateX(-50%) translateY(120px);
	width: calc(100% - 24px);
	max-width: 440px;
	background: var(--nk-surface);
	padding: 14px;
	border-radius: var(--nk-radius);
	box-shadow: var(--nk-shadow-lg);
	display: flex;
	align-items: center;
	gap: 12px;
	z-index: 85;
	transition: transform 0.3s;
}

.nk-install-banner.show {
	transform: translateX(-50%) translateY(0);
}

.nk-install-banner__icon {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: var(--nk-gradient);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	flex-shrink: 0;
}

.nk-install-banner__content { flex: 1; }
.nk-install-banner__title { font-size: 13px; font-weight: 700; }
.nk-install-banner__sub { font-size: 11px; color: var(--nk-text-soft); margin-top: 2px; }

.nk-install-banner__btn {
	background: var(--nk-primary);
	color: #fff;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
}

.nk-install-banner__close {
	color: var(--nk-text-mute);
	font-size: 18px;
	width: 24px;
	height: 24px;
}

/* ============================================================
 * Misc
 * ============================================================ */
.nk-apply-coupon { background: var(--nk-primary); color: #fff; padding: 10px 18px; border-radius: 10px; font-weight: 700; }
.nk-discount-row { display: flex; justify-content: space-between; color: var(--nk-success); }
.nk-discount-amount, .nk-total-amount { font-weight: 700; }
.nk-checkout-form { padding: 0; }
.nk-admin-card { background: var(--nk-surface); border-radius: var(--nk-radius); padding: 14px; box-shadow: var(--nk-shadow-sm); }
.nk-logout { color: var(--nk-danger); }
