/**
 * C & C Fashion — Store Admin Panel
 * SocialMint brand tokens (mint / navy)
 */

:root {
	/* SocialMint dark-only admin tokens */
	--cc-store-bg: #050d18;
	--cc-store-surface: #0e1a2c;
	--cc-store-surface-muted: #152338;
	--cc-store-input-bg: #0a1526;
	--cc-store-header-bg: rgba(5, 13, 24, 0.92);
	--cc-store-nav-active: rgba(34, 212, 139, 0.16);
	--cc-store-primary: #22d48b;
	--cc-store-primary-dark: #63e6b6;
	--cc-store-accent: #4b93f7;
	--cc-store-gradient: linear-gradient(135deg, #4aefad 0%, #22d48b 50%, #1bb874 100%);
	--cc-store-on-primary: #04120c;
	--cc-store-text: #f3f8fc;
	--cc-store-muted: #9eb0c4;
	--cc-store-border: rgba(255, 255, 255, 0.09);
	--cc-store-danger: #dc2626;
	--cc-store-success: #22d48b;
	--cc-store-warning: #e0b84a;
	--cc-store-radius: 16px;
	--cc-store-header: 64px;
	--cc-store-bottom-nav: 68px;
	--cc-store-sidebar: 240px;
	--cc-store-overlay: rgba(0, 0, 0, 0.62);
	--cc-store-chart-bar: #22d48b;
	--cc-store-chart-bar-empty: #1a2a3d;
	--cc-store-chart-height: 9.5rem;
	--cc-store-chart-max-width: 100%;
	--cc-store-font: "Figtree", "Noto Sans Sinhala", "Noto Sans Tamil", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--cc-store-display: "Outfit", "Figtree", "Noto Sans Sinhala", sans-serif;
	color-scheme: dark;
}

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

body.cc-store-screen {
	margin: 0;
	font-family: var(--cc-store-font);
	background: var(--cc-store-bg);
	color: var(--cc-store-text);
	-webkit-font-smoothing: antialiased;
}

html:has(body.cc-store-screen) {
	margin-top: 0 !important;
	padding-top: 0 !important;
	background: var(--cc-store-bg);
}

body.cc-store-screen #wpadminbar,
body.cc-store-screen .site-header,
body.cc-store-screen .site-footer,
body.cc-store-screen .mobile-bottom-nav {
	display: none !important;
}

/* --------------------------------------------------------------------------
   Store login page
   -------------------------------------------------------------------------- */
.cc-store-login-page {
	position: relative;
	min-height: 100vh;
	min-height: 100dvh;
	overflow: hidden;
}

.cc-store-login-page__bg {
	position: fixed;
	inset: 0;
	background:
		radial-gradient(circle at 15% 20%, rgba(34, 212, 139, 0.22), transparent 42%),
		radial-gradient(circle at 85% 10%, rgba(75, 147, 247, 0.14), transparent 35%),
		linear-gradient(180deg, #050d18 0%, #0a1526 45%, #07101c 100%);
	z-index: 0;
}

.cc-store-login-page__shell {
	position: relative;
	z-index: 1;
	min-height: 100vh;
	min-height: 100dvh;
	display: grid;
	grid-template-columns: 1fr;
}

.cc-store-login-page__hero {
	display: none;
	padding: 2.5rem;
	color: #fff;
	background:
		linear-gradient(155deg, rgba(11, 31, 58, 0.96), rgba(14, 26, 44, 0.94), rgba(5, 13, 24, 0.92)),
		radial-gradient(circle at 20% 20%, rgba(34, 212, 139, 0.35), transparent 50%),
		#050d18;
}

.cc-store-login-page__hero-inner {
	max-width: 440px;
	margin: auto;
}

.cc-store-login-page__badge {
	display: inline-flex;
	margin: 0;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cc-store-login-page__hero-title {
	margin: 1rem 0 0;
	font-size: clamp(1.85rem, 4vw, 2.6rem);
	line-height: 1.1;
}

.cc-store-login-page__hero-lead {
	margin: 1rem 0 0;
	font-size: 1rem;
	line-height: 1.65;
	opacity: 0.92;
}

.cc-store-login-page__features {
	margin: 1.75rem 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.85rem;
}

.cc-store-login-page__features li {
	position: relative;
	padding-left: 1.5rem;
	font-size: 0.95rem;
	line-height: 1.45;
}

.cc-store-login-page__features li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	font-weight: 700;
}

.cc-store-login-page__main {
	display: grid;
	place-items: center;
	padding: 1.25rem;
	padding-top: max(1.25rem, env(safe-area-inset-top));
	padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
}

.cc-store-login-page__card {
	width: min(100%, 420px);
	background: rgba(14, 26, 44, 0.94);
	backdrop-filter: blur(16px);
	border: 1px solid var(--cc-store-border);
	border-radius: 24px;
	padding: clamp(1.5rem, 5vw, 2.25rem);
	box-shadow:
		0 24px 60px rgba(0, 0, 0, 0.35),
		0 2px 8px rgba(0, 0, 0, 0.2);
}

.cc-store-login-page__logo:not(.cc-store-admin-logo) {
	width: 56px;
	height: 56px;
	border-radius: 16px;
	display: grid;
	place-items: center;
	margin-bottom: 1.25rem;
	background: var(--cc-store-gradient);
	color: var(--cc-store-on-primary);
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.cc-store-login-page__logo.cc-store-admin-logo {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 140px;
	margin-bottom: 1.25rem;
	border-radius: 0;
	background: transparent;
	object-fit: contain;
	display: block;
}

.cc-store-login-page__title {
	margin: 0;
	font-size: 1.65rem;
	line-height: 1.15;
}

.cc-store-login-page__subtitle {
	margin: 0.45rem 0 0;
	color: var(--cc-store-muted);
	font-size: 0.95rem;
}

.cc-store-login-page__alert {
	margin-top: 1rem;
	padding: 0.85rem 1rem;
	border-radius: 12px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: var(--cc-store-danger);
	font-size: 0.9rem;
}

.cc-store-login-page__form {
	display: grid;
	gap: 1rem;
	margin-top: 1.35rem;
}

.cc-store-login-page__remember {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	font-size: 0.9rem;
	color: var(--cc-store-muted);
}

.cc-store-login-page__footer {
	margin-top: 1.35rem;
	text-align: center;
	font-size: 0.9rem;
}

.cc-store-login-page__footer a {
	color: var(--cc-store-primary-dark);
	font-weight: 600;
	text-decoration: none;
}

.cc-store-btn--lg {
	padding: 0.95rem 1.15rem;
	font-size: 1rem;
}

/* Legacy login classes (admin shell) */
.cc-store-login__shell,
.cc-store-login {
	display: none;
}

.cc-store-login__eyebrow,
.cc-store-app__brand-eyebrow {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--cc-store-primary);
}

.cc-store-login__title {
	margin: 0.35rem 0 0;
	font-size: 1.6rem;
	line-height: 1.2;
}

.cc-store-login__lead {
	margin: 0.75rem 0 1.5rem;
	color: var(--cc-store-muted);
	font-size: 0.95rem;
	line-height: 1.5;
}

.cc-store-login__notice {
	padding: 0.85rem 1rem;
	border-radius: var(--cc-store-radius);
	margin-bottom: 1rem;
	font-size: 0.9rem;
}

.cc-store-login__notice--error {
	background: #fef2f2;
	color: var(--cc-store-danger);
	border: 1px solid #fecaca;
}

.cc-store-login__form {
	display: grid;
	gap: 1rem;
}

.cc-store-login__remember {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.9rem;
	color: var(--cc-store-muted);
}

.cc-store-login__footer {
	margin: 1.25rem 0 0;
	text-align: center;
	font-size: 0.9rem;
}

.cc-store-login__footer a {
	color: var(--cc-store-primary-dark);
	text-decoration: none;
}

/* Fields & buttons */
.cc-store-field {
	display: grid;
	gap: 0.65rem;
}

.cc-store-field__label {
	font-size: 0.85rem;
	font-weight: 600;
}

.cc-store-field__input,
.cc-store-field__select,
.cc-store-field__textarea {
	width: 100%;
	padding: 0.8rem 0.95rem;
	border: 1px solid var(--cc-store-border);
	border-radius: 12px;
	font: inherit;
	color: var(--cc-store-text);
	background: var(--cc-store-input-bg);
}

.cc-store-field__textarea {
	min-height: 110px;
	resize: vertical;
}

.cc-store-field__input:focus,
.cc-store-field__select:focus,
.cc-store-field__textarea:focus {
	outline: 2px solid rgba(34, 212, 139, 0.25);
	border-color: var(--cc-store-primary);
}

.cc-store-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.8rem 1.1rem;
	border: 0;
	border-radius: 12px;
	font: inherit;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s ease, transform 0.15s ease;
}

.cc-store-btn:active {
	transform: scale(0.98);
}

.cc-store-btn--primary {
	background: var(--cc-store-gradient);
	color: var(--cc-store-on-primary, #04120c);
	font-weight: 700;
}

.cc-store-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
	transform: none;
}

.cc-store-btn--secondary {
	background: var(--cc-store-nav-active);
	color: var(--cc-store-primary-dark);
}

.cc-store-btn--ghost {
	background: transparent;
	color: var(--cc-store-muted);
	border: 1px solid var(--cc-store-border);
}

.cc-store-btn--block {
	width: 100%;
}

.cc-store-btn--sm {
	min-height: 2rem;
	padding: 0.35rem 0.75rem;
	font-size: 0.8rem;
	line-height: 1;
	border-radius: 10px;
}

/* App shell */
.cc-store-app {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.cc-store-app__header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: var(--cc-store-header-bg);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--cc-store-border);
}

.cc-store-app__header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 1rem;
	max-width: 1200px;
	margin: 0 auto;
}

.cc-store-app__brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.cc-store-app__brand-logo-link {
	display: inline-flex;
	flex-shrink: 0;
	text-decoration: none;
	color: inherit;
	border-radius: 12px;
	transition: opacity 0.2s ease, transform 0.15s ease;
}

.cc-store-app__brand-logo-link:hover,
.cc-store-app__brand-logo-link:focus-visible {
	opacity: 0.88;
}

.cc-store-app__brand-logo-link:active {
	transform: scale(0.98);
}

.cc-store-app__brand-mark:not(.cc-store-admin-logo) {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	background: var(--cc-store-gradient);
	color: var(--cc-store-on-primary, #04120c);
	font-size: 0.72rem;
	font-weight: 800;
	font-family: var(--cc-store-display);
	flex-shrink: 0;
}

.cc-store-app__brand-mark.cc-store-admin-logo {
	width: auto;
	height: auto;
	max-height: 64px;
	max-width: min(200px, 42vw);
	border: 0;
	border-radius: 0;
	background: transparent;
	object-fit: contain;
	display: block;
	flex-shrink: 0;
}

.cc-store-app__brand-user {
	margin: 0.15rem 0 0;
	font-size: 0.95rem;
	font-weight: 600;
}

.cc-store-app__header-actions {
	display: flex;
	gap: 0.75rem;
}

.cc-store-app__header-link {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--cc-store-primary-dark);
	text-decoration: none;
}

.cc-store-app__nav-backdrop {
	position: fixed;
	inset: 0;
	z-index: 44;
	background: var(--cc-store-overlay);
}

.cc-store-app__nav-backdrop[hidden] {
	display: none;
}

body.cc-store-nav-open {
	overflow: hidden;
}

.cc-store-app__layout {
	display: flex;
	flex: 1;
	width: 100%;
	min-width: 0;
}

.cc-store-app__sidebar {
	position: fixed;
	top: 0;
	right: 0;
	bottom: var(--cc-store-bottom-nav);
	z-index: 45;
	width: min(300px, 88vw);
	padding: 1rem 0.75rem;
	border-left: 1px solid var(--cc-store-border);
	background: var(--cc-store-bg);
	overflow-y: auto;
	transform: translateX(100%);
	transition: transform 0.25s ease, visibility 0.25s ease;
	visibility: hidden;
	pointer-events: none;
}

.cc-store-app.is-nav-open .cc-store-app__sidebar {
	transform: translateX(0);
	visibility: visible;
	pointer-events: auto;
	padding-top: max(1rem, env(safe-area-inset-top, 0px));
}

.cc-store-app__main {
	flex: 1;
	padding: 1rem 1rem calc(var(--cc-store-bottom-nav) + 1rem);
	min-width: 0;
}

.cc-store-app__bottom-nav {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 30;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	background: var(--cc-store-surface);
	border-top: 1px solid var(--cc-store-border);
	padding: 0.35rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
}

.cc-store-bottom-nav__item {
	border: 0;
	background: transparent;
	font: inherit;
	width: 100%;
	cursor: pointer;
}

.cc-store-bottom-nav__item,
.cc-store-nav__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.2rem;
	padding: 0.55rem 0.35rem;
	color: var(--cc-store-muted);
	text-decoration: none;
	font-size: 0.72rem;
	font-weight: 600;
	border-radius: 12px;
}

.cc-store-nav__item {
	flex-direction: row;
	justify-content: flex-start;
	gap: 0.65rem;
	padding: 0.8rem 0.9rem;
	font-size: 0.92rem;
	position: relative;
	z-index: 1;
}

.cc-store-bottom-nav__item.is-active,
.cc-store-nav__item.is-active {
	color: var(--cc-store-primary-dark);
	background: var(--cc-store-nav-active);
}

.cc-store-bottom-nav__item--add {
	color: var(--cc-store-primary-dark);
}

.cc-store-nav__icon {
	width: 1.25rem;
	text-align: center;
}

/* Content */
.cc-store-page__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.cc-store-page__title {
	margin: 0;
	font-size: 1.35rem;
	font-family: var(--cc-store-display);
	font-weight: 700;
	letter-spacing: -0.02em;
}

.cc-store-page__back {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-bottom: 0.75rem;
	color: var(--cc-store-primary-dark);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 600;
}

.cc-store-stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.75rem;
	margin-bottom: 1.25rem;
}

.cc-store-stat {
	background: var(--cc-store-surface);
	border: 1px solid var(--cc-store-border);
	border-radius: var(--cc-store-radius);
	padding: 1rem;
}

.cc-store-stat__label {
	margin: 0;
	font-size: 0.78rem;
	color: var(--cc-store-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.cc-store-stat__value {
	margin: 0.35rem 0 0;
	font-size: 1.5rem;
	font-weight: 700;
}

.cc-store-stat--warning .cc-store-stat__value {
	color: var(--cc-store-warning);
}

a.cc-store-stat--link {
	display: block;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

a.cc-store-stat--link:hover,
a.cc-store-stat--link:focus-visible {
	border-color: var(--cc-store-primary);
	box-shadow: 0 4px 16px rgba(34, 212, 139, 0.12);
}

a.cc-store-stat--link:active {
	transform: scale(0.98);
}

.cc-store-filter-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.85rem;
	padding: 0.7rem 0.9rem;
	border: 1px solid #fde68a;
	border-radius: 12px;
	background: #fffbeb;
	color: #92400e;
	font-size: 0.88rem;
	font-weight: 600;
}

.cc-store-filter-banner__clear {
	border: 0;
	background: transparent;
	color: var(--cc-store-primary-dark);
	font: inherit;
	font-size: 0.82rem;
	font-weight: 700;
	cursor: pointer;
	text-decoration: underline;
}

.cc-store-panel--chart {
	margin-bottom: 1.25rem;
	max-width: var(--cc-store-chart-max-width);
}

.cc-store-dashboard-top {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.cc-store-chart__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-bottom: 0.85rem;
}

.cc-store-chart__header .cc-store-panel__title {
	margin: 0;
}

.cc-store-chart__tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.4rem;
}

.cc-store-chart__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-bottom: 0.85rem;
	padding: 0.7rem 0.85rem;
	border-radius: 12px;
	background: var(--cc-store-surface-muted);
	border: 1px solid rgba(34, 212, 139, 0.18);
	font-size: 0.88rem;
	color: var(--cc-store-text);
}

.cc-store-chart__summary-total strong {
	color: var(--cc-store-primary-dark);
	font-size: 1rem;
}

.cc-store-chart__summary-count {
	color: var(--cc-store-muted);
	font-size: 0.82rem;
	font-weight: 600;
}

.cc-store-chart__canvas {
	overflow-x: auto;
	height: var(--cc-store-chart-height);
	max-height: var(--cc-store-chart-height);
}

.cc-store-chart__svg {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 100%;
	max-height: var(--cc-store-chart-height);
	min-width: 0;
	aspect-ratio: 360 / 180;
}

.cc-store-chart__bar {
	fill: var(--cc-store-chart-bar);
}

.cc-store-chart__bar.is-empty {
	fill: var(--cc-store-chart-bar-empty);
}

.cc-store-chart__label {
	fill: var(--cc-store-muted);
	font-size: 10px;
	font-weight: 600;
}

.cc-store-chart__empty {
	padding: 2rem 1rem;
	text-align: center;
	color: var(--cc-store-muted);
	font-size: 0.88rem;
}

.cc-store-section {
	margin-top: 1.25rem;
}

.cc-store-section__title {
	margin: 0 0 0.75rem;
	font-size: 1rem;
}

.cc-store-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin-bottom: 1rem;
}

.cc-store-search {
	flex: 1;
	min-width: 180px;
	max-width: 22rem;
}

.cc-store-search--inline {
	flex: 0 1 16rem;
	min-width: 10rem;
	max-width: 16rem;
	padding: 0.55rem 0.8rem;
	font-size: 0.85rem;
}

.cc-store-toolbar--flush {
	margin-bottom: 0;
}

.cc-store-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-bottom: 1rem;
}

.cc-store-tab {
	padding: 0.45rem 0.8rem;
	border-radius: 999px;
	border: 1px solid var(--cc-store-border);
	background: var(--cc-store-surface);
	font: inherit;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--cc-store-muted);
	cursor: pointer;
}

.cc-store-tab.is-active {
	background: var(--cc-store-nav-active);
	border-color: var(--cc-store-primary-dark);
	color: var(--cc-store-primary-dark);
}

.cc-store-list {
	display: grid;
	gap: 0.75rem;
}

.cc-store-card-row {
	display: flex;
	align-items: stretch;
	gap: 0.65rem;
}

.cc-store-card-row__check {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	padding: 0 0.15rem;
	cursor: pointer;
}

.cc-store-card-row__check input,
.cc-store-table__check input {
	width: 1.05rem;
	height: 1.05rem;
	accent-color: var(--cc-store-primary-dark, #4f46e5);
	cursor: pointer;
}

.cc-store-card-row .cc-store-card {
	flex: 1 1 auto;
	min-width: 0;
}

.cc-store-bulk-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1rem;
	margin: 0 0 0.85rem;
	padding: 0.75rem 0.9rem;
	border: 1px solid var(--cc-store-border);
	border-radius: var(--cc-store-radius);
	background: var(--cc-store-surface);
}

.cc-store-bulk-bar[hidden] {
	display: none !important;
}

.cc-store-bulk-bar__select-all {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
}

.cc-store-bulk-bar__count {
	font-size: 0.85rem;
	color: var(--cc-store-muted);
}

.cc-store-bulk-bar__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-left: auto;
}

.cc-store-table__check {
	width: 2.25rem;
	text-align: center;
	vertical-align: middle;
}

.cc-store-card {
	display: block;
	background: var(--cc-store-surface);
	border: 1px solid var(--cc-store-border);
	border-radius: var(--cc-store-radius);
	padding: 1rem;
	text-decoration: none;
	color: inherit;
}

.cc-store-card__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
}

.cc-store-card__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
}

.cc-store-card__meta {
	margin: 0.35rem 0 0;
	font-size: 0.85rem;
	color: var(--cc-store-muted);
}

.cc-store-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.38rem 0.72rem;
	border-radius: 999px;
	border: 1px solid transparent;
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	line-height: 1.1;
	background: #f8fafc;
	color: #475569;
	box-shadow:
		0 1px 2px rgba(15, 23, 42, 0.06),
		inset 0 1px 0 rgba(255, 255, 255, 0.7);
	white-space: nowrap;
	flex-shrink: 0;
}

.cc-store-badge__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
	flex-shrink: 0;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}

.cc-store-badge__text {
	max-width: 9.5rem;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cc-store-badge--pending {
	background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
	color: #b45309;
	border-color: #fcd34d;
}

.cc-store-badge--pending .cc-store-badge__dot,
.cc-store-badge--processing .cc-store-badge__dot {
	animation: cc-store-badge-pulse 1.8s ease-in-out infinite;
}

.cc-store-badge--payment-checking {
	background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
	color: #c2410c;
	border-color: #fdba74;
}

.cc-store-badge--planning {
	background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
	color: #6d28d9;
	border-color: #c4b5fd;
}

.cc-store-badge--processing {
	background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
	color: #1d4ed8;
	border-color: #93c5fd;
}

.cc-store-badge--completed {
	background: linear-gradient(135deg, #ecfdf5 0%, #dcfce7 100%);
	color: #15803d;
	border-color: #86efac;
}

.cc-store-badge--on-hold {
	background: linear-gradient(135deg, rgba(34, 212, 139, 0.08) 0%, rgba(75, 147, 247, 0.1) 100%);
	color: var(--cc-store-primary-dark);
	border-color: rgba(34, 212, 139, 0.28);
}

.cc-store-badge--cancelled,
.cc-store-badge--failed {
	background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
	color: #b91c1c;
	border-color: #fca5a5;
}

.cc-store-badge--refunded {
	background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
	color: #be123c;
	border-color: #fda4af;
}

.cc-store-badge--draft,
.cc-store-badge--checkout-draft {
	background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
	color: #64748b;
	border-color: #cbd5e1;
}

@keyframes cc-store-badge-pulse {
	0%,
	100% {
		opacity: 1;
		transform: scale(1);
	}

	50% {
		opacity: 0.45;
		transform: scale(0.82);
	}
}

.cc-store-product-card {
	display: grid;
	grid-template-columns: 72px 1fr;
	gap: 0.85rem;
	align-items: center;
}

.cc-store-product-card__image {
	width: 72px;
	height: 88px;
	border-radius: 10px;
	object-fit: cover;
	background: #f3e8ff;
}

.cc-store-product-card__image--empty {
	display: grid;
	place-items: center;
	color: var(--cc-store-muted);
	font-size: 0.75rem;
}

.cc-store-detail-grid {
	display: grid;
	gap: 1rem;
}

.cc-store-panel {
	display: flex;
	flex-direction: column;
	gap: 1.35rem;
	background: var(--cc-store-surface);
	border: 1px solid var(--cc-store-border);
	border-radius: var(--cc-store-radius);
	padding: 1.35rem 1.25rem;
}

.cc-store-panel__title {
	margin: 0;
	font-size: 0.95rem;
}

.cc-store-panel p,
.cc-store-panel address {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.55;
	white-space: pre-line;
}

.cc-store-items {
	display: grid;
	gap: 0.75rem;
}

.cc-store-updates {
	display: grid;
	gap: 0.85rem;
	margin-bottom: 0.35rem;
}

.cc-store-update {
	padding: 0.85rem 0.95rem;
	border: 1px solid var(--cc-store-border);
	border-radius: calc(var(--cc-store-radius) - 4px);
	background: var(--cc-store-bg);
}

.cc-store-update__meta {
	margin: 0 0 0.35rem;
	color: var(--cc-store-muted);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.cc-store-update__text {
	color: var(--cc-store-text);
	font-size: 0.92rem;
	line-height: 1.55;
}

.cc-store-field__textarea {
	width: 100%;
	min-height: 108px;
	padding: 0.85rem 0.95rem;
	border: 1px solid var(--cc-store-border);
	border-radius: calc(var(--cc-store-radius) - 4px);
	background: var(--cc-store-bg);
	color: var(--cc-store-text);
	font: inherit;
	line-height: 1.55;
	resize: vertical;
}

.cc-store-item {
	display: grid;
	grid-template-columns: 56px 1fr auto;
	gap: 0.75rem;
	align-items: center;
}

.cc-store-item__image {
	width: 56px;
	height: 68px;
	border-radius: 8px;
	object-fit: cover;
	background: #f3e8ff;
}

.cc-store-form {
	display: grid;
	gap: 1.5rem;
}

.cc-store-form .cc-store-panel {
	gap: 1.5rem;
}

.cc-store-form__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.65rem;
}

.cc-store-save-progress {
	display: grid;
	gap: 0.55rem;
	padding: 1rem 1.1rem;
	border: 1px solid var(--cc-store-border);
	border-radius: var(--cc-store-radius);
	background: var(--cc-store-surface);
	box-shadow: 0 10px 30px rgba(42, 20, 53, 0.08);
}

.cc-store-save-progress[hidden] {
	display: none !important;
}

.cc-store-save-progress__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.cc-store-save-progress__label {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--cc-store-text);
}

.cc-store-save-progress__pct {
	flex-shrink: 0;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--cc-store-primary-dark);
}

.cc-store-save-progress__track {
	position: relative;
	overflow: hidden;
	height: 10px;
	border-radius: 999px;
	background: #f3e8ff;
}

.cc-store-save-progress__bar {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--cc-store-gradient);
	transition: width 0.35s ease;
}

.cc-store-save-progress.is-indeterminate .cc-store-save-progress__bar {
	width: 38% !important;
	animation: cc-store-progress-indeterminate 1.15s ease-in-out infinite;
}

@keyframes cc-store-progress-indeterminate {
	0% {
		transform: translateX(-120%);
	}

	100% {
		transform: translateX(320%);
	}
}

.cc-store-form.is-submitting {
	cursor: wait;
}

.cc-store-form.is-submitting .cc-store-panel,
.cc-store-form.is-submitting .cc-store-panel--images {
	opacity: 0.72;
}

.cc-store-form.is-submitting button[type="submit"] {
	opacity: 1;
}

.cc-store-form > .cc-store-btn {
	justify-self: end;
}

.cc-store-panel > .cc-store-btn {
	display: block;
	width: fit-content;
	margin-left: auto;
}

.cc-store-form__row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}

.cc-store-checkboxes {
	display: grid;
	gap: 0.45rem;
}

.cc-store-checkboxes label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.9rem;
}

.cc-store-category-add {
	display: grid;
	gap: 0.65rem;
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--cc-store-border);
}

.cc-store-category-add .cc-store-btn {
	justify-self: end;
}

.cc-store-radios {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	margin-top: 0.55rem;
}

.cc-store-radios--stacked {
	flex-direction: column;
	gap: 0.55rem;
}

.cc-store-radio {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.9rem;
	cursor: pointer;
}

.cc-store-stock-fields {
	margin-top: 0;
}

.cc-store-panel--stock > .cc-store-field__label:first-child {
	margin-bottom: 0.25rem;
}

.cc-store-panel--stock .cc-store-stock-fields {
	display: grid;
	gap: 1rem;
}

.cc-store-panel--stock .cc-store-stock-fields[data-stock-status-wrap] {
	display: grid;
	gap: 0.85rem;
}

.cc-store-stock-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.45rem 0;
}

.cc-store-stock-row__label {
	font-size: 0.9rem;
	color: var(--cc-store-text);
}

.cc-store-switch {
	position: relative;
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	cursor: pointer;
}

.cc-store-switch input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.cc-store-switch__track {
	position: relative;
	width: 40px;
	height: 22px;
	border-radius: 999px;
	background: #d1d5db;
	transition: background 0.2s ease;
}

.cc-store-switch__track::after {
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--cc-store-surface);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.16);
	transition: transform 0.2s ease;
}

.cc-store-switch input:checked + .cc-store-switch__track {
	background: #1f2937;
}

.cc-store-switch input:checked + .cc-store-switch__track::after {
	transform: translateX(18px);
}

.cc-store-switch input:focus-visible + .cc-store-switch__track {
	outline: 2px solid var(--cc-store-primary);
	outline-offset: 2px;
}

.cc-store-variation {
	border-top: 1px solid var(--cc-store-border);
	padding-top: 0.85rem;
	margin-top: 0.85rem;
}

.cc-store-variation:first-child {
	border-top: 0;
	padding-top: 0;
	margin-top: 0;
}

.cc-store-panel--collapsible {
	gap: 0;
}

.cc-store-panel__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.cc-store-panel__toggle-label {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	min-width: 0;
}

.cc-store-panel__toggle .cc-store-panel__title {
	margin: 0;
}

.cc-store-panel__chevron {
	flex-shrink: 0;
	width: 0.55rem;
	height: 0.55rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	color: var(--cc-store-muted);
	transform: rotate(45deg);
	transition: transform 0.2s ease, color 0.2s ease;
}

.cc-store-panel--collapsible.is-open .cc-store-panel__chevron {
	transform: rotate(-135deg);
	color: var(--cc-store-primary-dark);
}

.cc-store-panel__collapsible {
	display: grid;
	gap: 0.85rem;
	padding-top: 1rem;
}

.cc-store-panel__collapsible[hidden] {
	display: none !important;
}

.cc-store-variation__title {
	margin: 0 0 0.65rem;
	font-size: 0.9rem;
	font-weight: 700;
}

.cc-store-image-preview {
	width: 120px;
	height: 150px;
	border-radius: 12px;
	object-fit: cover;
	background: #f3e8ff;
}

.cc-store-panel--images {
	background: linear-gradient(180deg, #fff 0%, #fcf7ff 100%);
}

.cc-store-image-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 88px;
	margin-bottom: 1rem;
	padding: 1rem;
	border: 1px dashed var(--cc-store-border);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.7);
	color: var(--cc-store-muted);
	font-size: 0.88rem;
	text-align: center;
}

.cc-store-image-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.cc-store-upload-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.15rem;
}

.cc-store-upload-zone {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 1rem 0.9rem;
	border: 1.5px dashed #d8b4fe;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.92);
	text-align: left;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.cc-store-upload-zone__content {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	flex: 1;
	min-width: 0;
}

.cc-store-upload-zone__text {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.cc-store-upload-zone:hover,
.cc-store-upload-zone:focus-within {
	border-color: var(--cc-store-primary);
	background: var(--cc-store-surface-muted);
}

.cc-store-upload-zone.has-file {
	border-style: solid;
	border-color: var(--cc-store-primary);
	background: var(--cc-store-surface-muted);
}

.cc-store-upload-zone__input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.cc-store-upload-zone__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: var(--cc-store-nav-active);
	color: var(--cc-store-primary-dark);
	font-size: 1.15rem;
	line-height: 1;
}

.cc-store-upload-zone__title {
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--cc-store-text);
}

.cc-store-upload-zone__hint {
	font-size: 0.78rem;
	color: var(--cc-store-muted);
}

.cc-store-upload-zone__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	padding: 0.5rem 0.95rem;
	border-radius: 999px;
	background: var(--cc-store-primary);
	color: #fff;
	font-size: 0.82rem;
	font-weight: 600;
}

.cc-store-upload-zone__file {
	min-height: 1rem;
	font-size: 0.78rem;
	color: var(--cc-store-primary-dark);
	font-weight: 500;
	word-break: break-word;
}

.cc-store-upload-note {
	margin-top: 1rem;
	text-align: center;
}

.cc-store-image-thumb {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--cc-store-border);
	background: #f3e8ff;
}

.cc-store-image-thumb.is-featured {
	border-color: var(--cc-store-primary);
	box-shadow: 0 0 0 2px rgba(34, 212, 139, 0.15);
}

.cc-store-image-thumb img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.cc-store-size-guide-preview {
	position: relative;
	margin-bottom: 1rem;
	border: 1px solid var(--cc-store-border);
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
}

.cc-store-size-guide-preview img {
	display: block;
	width: 100%;
	height: auto;
}

.cc-store-size-guide-preview__actions {
	display: flex;
	justify-content: flex-end;
	padding: 0.5rem 0.75rem;
	background: rgba(255, 255, 255, 0.92);
	border-top: 1px solid var(--cc-store-border);
}

.cc-store-image-thumb--pending {
	border-style: dashed;
}

.cc-store-image-thumb__badge--overlay {
	position: absolute;
	left: 0.4rem;
	bottom: 0.4rem;
	z-index: 1;
	box-shadow: 0 2px 8px rgba(42, 20, 53, 0.18);
}

.cc-store-image-thumb__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.35rem;
	padding: 0.45rem;
	background: rgba(255, 255, 255, 0.96);
}

.cc-store-image-thumb__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.35rem 0.5rem;
	border-radius: 999px;
	background: var(--cc-store-nav-active);
	color: var(--cc-store-primary-dark);
	font-size: 0.72rem;
	font-weight: 700;
}

.cc-store-attribute-group + .cc-store-attribute-group {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--cc-store-border);
}

.cc-store-attribute-group__title {
	margin: 0 0 0.65rem;
	font-size: 0.95rem;
}

.cc-store-attribute-group__hint {
	font-size: 0.78rem;
	font-weight: 500;
	color: var(--cc-store-muted);
}

.cc-store-attribute-options {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.cc-store-attribute-option {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.45rem 0.7rem;
	border: 1px solid var(--cc-store-border);
	border-radius: 999px;
	background: var(--cc-store-surface);
	font-size: 0.88rem;
}

.cc-store-field__help {
	margin: 0.35rem 0 0;
	font-size: 0.82rem;
	color: var(--cc-store-muted);
	line-height: 1.45;
}

.cc-store-field .cc-store-field__help {
	display: block;
}

.cc-store-field__optional {
	font-weight: 400;
	color: var(--cc-store-muted);
}

.cc-store-password-wrap {
	position: relative;
	display: block;
}

.cc-store-password-wrap .cc-store-field__input {
	width: 100%;
	padding-right: 4.25rem;
}

.cc-store-password-toggle {
	position: absolute;
	top: 50%;
	right: 0.45rem;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2rem;
	padding: 0.35rem 0.55rem;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--cc-store-primary-dark);
	font: inherit;
	font-size: 0.75rem;
	font-weight: 700;
	cursor: pointer;
}

.cc-store-password-toggle:hover,
.cc-store-password-toggle:focus-visible {
	background: var(--cc-store-nav-active);
	outline: none;
}

.cc-store-toast {
	position: fixed;
	left: 50%;
	bottom: calc(var(--cc-store-bottom-nav) + 0.75rem);
	transform: translateX(-50%);
	background: #1f2937;
	color: #fff;
	padding: 0.7rem 1rem;
	border-radius: 999px;
	font-size: 0.85rem;
	z-index: 50;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.cc-store-toast.is-visible {
	opacity: 1;
}

.cc-store-loading,
.cc-store-empty {
	padding: 2rem 1rem;
	text-align: center;
	color: var(--cc-store-muted);
}

.cc-store-table td.cc-store-empty--cell,
.cc-store-empty--cell {
	text-align: center !important;
	padding: 2.5rem 1rem;
	vertical-align: middle;
}

.cc-store-pagination {
	display: flex;
	justify-content: flex-end;
	gap: 0.5rem;
	margin-top: 1rem;
}

.cc-store-catalog-grid {
	display: grid;
	gap: 1rem;
}

.cc-store-panel__lead {
	margin: -0.25rem 0 1rem;
	font-size: 0.875rem;
	line-height: 1.55;
	color: var(--cc-store-muted);
}

.cc-store-panel--spaced {
	margin-top: 1rem;
}

.cc-store-upload-zone--compact {
	padding: 0.75rem;
	flex-wrap: wrap;
}

.cc-store-upload-zone--compact .cc-store-upload-zone__btn {
	margin-left: auto;
}

.cc-store-field--checkbox {
	display: flex;
	align-items: center;
	gap: 0.625rem;
}

.cc-store-field--checkbox input {
	width: 1rem;
	height: 1rem;
	margin: 0;
}

.cc-store-table__meta {
	display: block;
	margin-top: 0.2rem;
	font-size: 0.78rem;
	color: var(--cc-store-muted);
}

.cc-store-panel--table {
	overflow: hidden;
}

.cc-store-table-wrap {
	overflow-x: auto;
}

.cc-store-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.88rem;
}

.cc-store-table th,
.cc-store-table td {
	padding: 0.75rem 0.55rem;
	border-bottom: 1px solid var(--cc-store-border);
	text-align: left;
	vertical-align: middle;
}

.cc-store-table th {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--cc-store-muted);
	font-weight: 700;
}

.cc-store-table th:last-child,
.cc-store-table td:last-child {
	text-align: right;
}

.cc-store-table td:last-child .cc-store-btn + .cc-store-btn {
	margin-left: 0.35rem;
}

.cc-store-table__thumb {
	width: 36px;
	height: 36px;
	object-fit: cover;
	border-radius: 8px;
	margin-right: 0.5rem;
	vertical-align: middle;
}

.cc-store-table__actions {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.35rem;
	min-width: 120px;
}

.cc-store-toolbar--wrap {
	flex-wrap: wrap;
	gap: 0.45rem;
}

.cc-store-chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin: 0 0 1rem;
}

.cc-store-chip {
	border: 1px solid var(--cc-store-border);
	background: var(--cc-store-surface);
	color: var(--cc-store-text);
	border-radius: 999px;
	padding: 0.4rem 0.8rem;
	font-size: 0.82rem;
	cursor: pointer;
}

.cc-store-chip.is-active {
	background: var(--cc-store-gradient);
	border-color: transparent;
	color: var(--cc-store-on-primary, #04120c);
	font-weight: 700;
}

.cc-store-chip--you {
	font-size: 0.72rem;
	padding: 0.18rem 0.5rem;
	background: var(--cc-store-nav-active);
	border-color: var(--cc-store-border);
	color: var(--cc-store-muted);
	cursor: default;
	vertical-align: middle;
}

.cc-store-panel__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.cc-store-panel__toolbar .cc-store-panel__title {
	margin: 0;
}

.cc-store-panel__meta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.75rem;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	background: var(--cc-store-nav-active);
	color: var(--cc-store-muted);
	font-size: 0.78rem;
	font-weight: 600;
}

.cc-store-panel--users-form .cc-store-form > .cc-store-btn {
	justify-self: stretch;
	width: 100%;
	margin-left: 0;
}

.cc-store-panel--customer-edit {
	max-width: 560px;
}

.cc-store-table__name {
	font-weight: 600;
}

.cc-store-table__muted {
	color: var(--cc-store-muted);
	font-size: 0.85rem;
}

.cc-store-role-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.28rem 0.65rem;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 600;
	border: 1px solid var(--cc-store-border);
	background: var(--cc-store-surface);
	white-space: nowrap;
}

.cc-store-role-badge--admin {
	background: rgba(236, 72, 153, 0.12);
	border-color: rgba(236, 72, 153, 0.35);
	color: var(--cc-store-primary-dark);
}

.cc-store-role-badge--manager {
	background: var(--cc-store-nav-active);
	color: var(--cc-store-text);
}

.cc-store-btn--danger {
	color: #dc2626;
}

.cc-store-btn--danger:hover,
.cc-store-btn--danger:focus-visible {
	background: rgba(220, 38, 38, 0.1);
	color: #b91c1c;
}

@media (min-width: 900px) {
	.cc-store-users-grid {
		grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
	}

	.cc-store-catalog-grid {
		grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
		align-items: start;
	}

	.cc-store-login-page__shell {
		grid-template-columns: 1.05fr 0.95fr;
	}

	.cc-store-login-page__hero {
		display: grid;
		align-items: center;
	}

	.cc-store-login-page__main {
		padding: 2rem;
	}
}

@media (min-width: 640px) {
	.cc-store-stats {
		grid-template-columns: repeat(2, 1fr);
	}

	.cc-store-upload-grid {
		grid-template-columns: 1fr 1fr;
	}

	.cc-store-form__row {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 900px) {
	.cc-store-app {
		display: grid;
		grid-template-columns: var(--cc-store-sidebar) minmax(0, 1fr);
		grid-template-rows: auto 1fr;
		min-height: 100vh;
		min-height: 100dvh;
	}

	.cc-store-app__header {
		grid-column: 2;
		grid-row: 1;
	}

	.cc-store-app__header-inner {
		max-width: none;
		margin: 0;
		padding: 0.85rem 1.25rem;
	}

	.cc-store-app__layout {
		display: contents;
	}

	.cc-store-app__sidebar {
		grid-column: 1;
		grid-row: 1 / -1;
		position: sticky;
		top: 0;
		align-self: start;
		width: var(--cc-store-sidebar);
		height: 100vh;
		height: 100dvh;
		padding: 1rem 0.75rem 2rem;
		padding-top: max(1rem, env(safe-area-inset-top, 0px));
		border-left: 0;
		border-right: 1px solid var(--cc-store-border);
		background: var(--cc-store-surface);
		transform: none;
		visibility: visible;
		overflow-y: auto;
		pointer-events: auto;
		flex-shrink: 0;
		z-index: 10;
	}

	.cc-store-app__nav-backdrop {
		display: none;
	}

	.cc-store-app__bottom-nav {
		display: none;
	}

	.cc-store-app__main {
		grid-column: 2;
		grid-row: 2;
		padding: 1.25rem 1.5rem 2rem;
		min-width: 0;
	}

	.cc-store-stats {
		grid-template-columns: repeat(4, 1fr);
	}

	.cc-store-detail-grid {
		grid-template-columns: 1.2fr 0.8fr;
	}

	.cc-store-list--products-desktop {
		grid-template-columns: repeat(2, 1fr);
	}

	.cc-store-dashboard-top {
		display: grid;
		grid-template-columns: minmax(0, 1.45fr) minmax(12.5rem, 16rem);
		gap: 1rem;
		align-items: stretch;
		margin-bottom: 1rem;
	}

	.cc-store-panel--chart {
		max-width: none;
		width: 100%;
		height: 100%;
		margin-bottom: 0;
		padding: 1.15rem 1.2rem;
		gap: 0.85rem;
	}

	.cc-store-dashboard-top .cc-store-stats {
		grid-template-columns: 1fr;
		grid-template-rows: repeat(4, minmax(0, 1fr));
		margin: 0;
		align-self: stretch;
	}

	.cc-store-dashboard-top .cc-store-stat {
		display: flex;
		flex-direction: column;
		justify-content: center;
		min-height: 0;
		padding: 0.85rem 1rem;
	}

	.cc-store-dashboard-top .cc-store-stat__value {
		font-size: 1.35rem;
	}

	:root {
		--cc-store-chart-height: 11rem;
		--cc-store-chart-max-width: none;
	}

	.cc-store-chart__header {
		margin-bottom: 0.65rem;
	}

	.cc-store-chart__summary {
		margin-bottom: 0.65rem;
		padding: 0.55rem 0.75rem;
	}

	.cc-store-chart__canvas {
		max-width: none;
		height: var(--cc-store-chart-height);
		max-height: var(--cc-store-chart-height);
	}

	.cc-store-chart__svg {
		width: 100%;
		max-width: none;
		height: 100%;
		max-height: var(--cc-store-chart-height);
	}

	.cc-store-chart__empty {
		padding: 1.25rem 1rem;
	}
}

@media (min-width: 1100px) {
	.cc-store-list--products-desktop {
		grid-template-columns: repeat(3, 1fr);
	}

	.cc-store-app__header-inner,
	.cc-store-app__main {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}

	.cc-store-panel--chart {
		max-width: none;
	}

	.cc-store-dashboard-top {
		grid-template-columns: minmax(0, 1.55fr) minmax(13rem, 17rem);
	}

	:root {
		--cc-store-chart-height: 12rem;
		--cc-store-chart-max-width: none;
	}
}

/* --------------------------------------------------------------------------
   Theme toggle removed — dark only
   -------------------------------------------------------------------------- */

.cc-store-theme-toggle,
.cc-store-login-page__theme {
	display: none !important;
}

.cc-store-app__header-actions {
	align-items: center;
}

.cc-store-login-page__theme {
	position: absolute;
	top: max(1rem, env(safe-area-inset-top));
	right: max(1rem, env(safe-area-inset-right));
	z-index: 5;
}

/* --------------------------------------------------------------------------
   Dark mode
   -------------------------------------------------------------------------- */

html[data-store-theme="dark"] {
	--cc-store-bg: #050d18;
	--cc-store-surface: #0e1a2c;
	--cc-store-surface-muted: #152338;
	--cc-store-input-bg: #0a1526;
	--cc-store-header-bg: rgba(5, 13, 24, 0.92);
	--cc-store-nav-active: rgba(34, 212, 139, 0.16);
	--cc-store-text: #f3f8fc;
	--cc-store-muted: #9eb0c4;
	--cc-store-border: rgba(255, 255, 255, 0.09);
	--cc-store-primary: #22d48b;
	--cc-store-primary-dark: #63e6b6;
	--cc-store-accent: #4b93f7;
	--cc-store-gradient: linear-gradient(135deg, #4aefad 0%, #22d48b 50%, #1bb874 100%);
	--cc-store-on-primary: #04120c;
	--cc-store-overlay: rgba(0, 0, 0, 0.62);
	--cc-store-chart-bar: #22d48b;
	--cc-store-chart-bar-empty: #1a2a3d;
	color-scheme: dark;
}

html[data-store-theme="dark"] .cc-store-login-page {
	background: var(--cc-store-bg);
}

html[data-store-theme="dark"] .cc-store-login-page__bg {
	background:
		radial-gradient(circle at 12% 18%, rgba(34, 212, 139, 0.22), transparent 42%),
		radial-gradient(circle at 88% 0%, rgba(75, 147, 247, 0.14), transparent 36%),
		linear-gradient(180deg, #050d18 0%, #0a1526 45%, #07101c 100%);
}

html[data-store-theme="dark"] .cc-store-login-page__card {
	background: rgba(18, 18, 26, 0.94);
	border-color: var(--cc-store-border);
	box-shadow:
		0 24px 60px rgba(0, 0, 0, 0.35),
		0 2px 8px rgba(0, 0, 0, 0.2);
}

html[data-store-theme="dark"] .cc-store-login-page__hero {
	background:
		linear-gradient(145deg, rgba(34, 212, 139, 0.28) 0%, rgba(34, 212, 139, 0.14) 55%, rgba(18, 18, 26, 0.4) 100%);
}

html[data-store-theme="dark"] .cc-store-login-page__alert,
html[data-store-theme="dark"] .cc-store-login__notice--error {
	background: rgba(127, 29, 29, 0.28);
	border-color: rgba(248, 113, 113, 0.35);
	color: #fecaca;
}

html[data-store-theme="dark"] .cc-store-btn--secondary {
	background: var(--cc-store-surface-muted);
	color: var(--cc-store-primary-dark);
}

html[data-store-theme="dark"] .cc-store-bottom-nav__item.is-active,
html[data-store-theme="dark"] .cc-store-nav__item.is-active {
	background: var(--cc-store-nav-active);
	color: var(--cc-store-primary-dark);
}

html[data-store-theme="dark"] .cc-store-tab.is-active,
html[data-store-theme="dark"] .cc-store-chip.is-active {
	background: rgba(34, 212, 139, 0.28);
	border-color: var(--cc-store-primary);
	color: var(--cc-store-primary-dark);
}

html[data-store-theme="dark"] .cc-store-tab,
html[data-store-theme="dark"] .cc-store-chip {
	background: var(--cc-store-surface);
	color: var(--cc-store-muted);
}

html[data-store-theme="dark"] .cc-store-role-badge--admin {
	background: rgba(34, 212, 139, 0.18);
	border-color: rgba(34, 212, 139, 0.45);
	color: var(--cc-store-primary-dark);
}

html[data-store-theme="dark"] .cc-store-btn--danger {
	color: #f87171;
}

html[data-store-theme="dark"] .cc-store-btn--danger:hover,
html[data-store-theme="dark"] .cc-store-btn--danger:focus-visible {
	background: rgba(248, 113, 113, 0.12);
	color: #fca5a5;
}

html[data-store-theme="dark"] .cc-store-chart__summary {
	background: var(--cc-store-surface-muted);
	border-color: var(--cc-store-border);
}

html[data-store-theme="dark"] .cc-store-filter-banner {
	background: rgba(120, 53, 15, 0.22);
	border-color: rgba(251, 191, 36, 0.35);
	color: #fde68a;
}

html[data-store-theme="dark"] .cc-store-upload-zone {
	background: var(--cc-store-surface-muted);
	border-color: rgba(34, 212, 139, 0.45);
}

html[data-store-theme="dark"] .cc-store-upload-zone:hover,
html[data-store-theme="dark"] .cc-store-upload-zone:focus-within,
html[data-store-theme="dark"] .cc-store-upload-zone.has-file {
	background: var(--cc-store-nav-active);
	border-color: var(--cc-store-primary);
}

html[data-store-theme="dark"] .cc-store-upload-zone__icon {
	background: rgba(34, 212, 139, 0.28);
}

html[data-store-theme="dark"] .cc-store-panel--images,
html[data-store-theme="dark"] .cc-store-image-thumb,
html[data-store-theme="dark"] .cc-store-product-card__image,
html[data-store-theme="dark"] .cc-store-image-empty {
	background: var(--cc-store-surface-muted);
}

html[data-store-theme="dark"] .cc-store-image-thumb__actions {
	background: rgba(27, 20, 36, 0.96);
}

html[data-store-theme="dark"] .cc-store-image-thumb__badge {
	background: rgba(34, 212, 139, 0.28);
	color: var(--cc-store-primary-dark);
}

html[data-store-theme="dark"] .cc-store-switch__track {
	background: #4b5563;
}

html[data-store-theme="dark"] .cc-store-switch input:checked + .cc-store-switch__track {
	background: var(--cc-store-primary);
}

html[data-store-theme="dark"] .cc-store-save-progress {
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

html[data-store-theme="dark"] .cc-store-save-progress__track {
	background: rgba(34, 212, 139, 0.28);
}

html[data-store-theme="dark"] .cc-store-toast {
	background: #f4edf8;
	color: #1b1424;
}

html[data-store-theme="dark"] .cc-store-chart__bar.is-empty {
	fill: var(--cc-store-chart-bar-empty);
}

html[data-store-theme="dark"] .cc-store-chart__bar {
	fill: var(--cc-store-chart-bar);
}

html[data-store-theme="dark"] .cc-store-badge--pending {
	background: linear-gradient(135deg, rgba(120, 53, 15, 0.45) 0%, rgba(146, 64, 14, 0.35) 100%);
	color: #fcd34d;
	border-color: rgba(251, 191, 36, 0.45);
}

html[data-store-theme="dark"] .cc-store-badge--payment-checking {
	background: linear-gradient(135deg, rgba(154, 52, 18, 0.45) 0%, rgba(194, 65, 12, 0.32) 100%);
	color: #fdba74;
	border-color: rgba(251, 146, 60, 0.45);
}

html[data-store-theme="dark"] .cc-store-badge--planning {
	background: linear-gradient(135deg, rgba(91, 33, 182, 0.45) 0%, rgba(109, 40, 217, 0.32) 100%);
	color: #c4b5fd;
	border-color: rgba(167, 139, 250, 0.45);
}

html[data-store-theme="dark"] .cc-store-badge--processing {
	background: linear-gradient(135deg, rgba(30, 58, 138, 0.45) 0%, rgba(29, 78, 216, 0.32) 100%);
	color: #93c5fd;
	border-color: rgba(96, 165, 250, 0.45);
}

html[data-store-theme="dark"] .cc-store-badge--completed {
	background: linear-gradient(135deg, rgba(20, 83, 45, 0.45) 0%, rgba(22, 101, 52, 0.32) 100%);
	color: #86efac;
	border-color: rgba(74, 222, 128, 0.4);
}

html[data-store-theme="dark"] .cc-store-badge--on-hold {
	background: linear-gradient(135deg, rgba(88, 28, 135, 0.45) 0%, rgba(107, 33, 168, 0.32) 100%);
	color: #e9d5ff;
	border-color: rgba(192, 132, 252, 0.4);
}

html[data-store-theme="dark"] .cc-store-badge--cancelled,
html[data-store-theme="dark"] .cc-store-badge--failed {
	background: linear-gradient(135deg, rgba(127, 29, 29, 0.45) 0%, rgba(153, 27, 27, 0.32) 100%);
	color: #fca5a5;
	border-color: rgba(248, 113, 113, 0.4);
}

html[data-store-theme="dark"] .cc-store-badge--refunded {
	background: linear-gradient(135deg, rgba(136, 19, 55, 0.45) 0%, rgba(190, 18, 60, 0.32) 100%);
	color: #fda4af;
	border-color: rgba(251, 113, 133, 0.4);
}

html[data-store-theme="dark"] .cc-store-badge--draft,
html[data-store-theme="dark"] .cc-store-badge--checkout-draft {
	background: linear-gradient(135deg, rgba(51, 65, 85, 0.45) 0%, rgba(71, 85, 105, 0.32) 100%);
	color: #cbd5e1;
	border-color: rgba(148, 163, 184, 0.35);
}

html[data-store-theme="dark"] .cc-store-attribute-option {
	background: var(--cc-store-input-bg);
	border-color: var(--cc-store-border);
}

html[data-store-theme="dark"] .cc-store-stat--warning .cc-store-stat__value {
	color: #fbbf24;
}

@media (prefers-reduced-motion: reduce) {
	.cc-store-theme-toggle {
		transition: none;
	}
}

/* --------------------------------------------------------------------------
   Pay slip preview modal
   -------------------------------------------------------------------------- */
.cc-store-slip-modal {
	position: fixed;
	inset: 0;
	z-index: 1200;
	display: grid;
	place-items: center;
	padding: 20px;
}

.cc-store-slip-modal[hidden] {
	display: none;
}

body.cc-store-slip-modal-open {
	overflow: hidden;
}

.cc-store-slip-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.78);
}

.cc-store-slip-modal__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(920px, 100%);
	max-height: min(90vh, 900px);
	padding: 16px;
	border: 1px solid var(--cc-store-border);
	border-radius: calc(var(--cc-store-radius) + 8px);
	background: var(--cc-store-surface);
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.cc-store-slip-modal__close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid var(--cc-store-border);
	border-radius: 999px;
	background: var(--cc-store-surface-muted);
	color: var(--cc-store-text);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.cc-store-slip-modal__close:hover {
	border-color: rgba(34, 212, 139, 0.45);
	background: rgba(34, 212, 139, 0.12);
}

.cc-store-slip-modal__content {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 240px;
	max-height: calc(90vh - 80px);
	overflow: auto;
}

.cc-store-slip-modal__content img {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: calc(90vh - 100px);
	margin: 0 auto;
	border-radius: 12px;
}

.cc-store-slip-modal__content iframe {
	display: block;
	width: 100%;
	min-height: 70vh;
	border: 0;
	border-radius: 12px;
	background: #fff;
}

.cc-store-slip-modal__error {
	margin: 0;
	padding: 24px;
	color: var(--cc-store-danger);
	font-size: 14px;
	text-align: center;
}

html[data-store-theme="dark"] .cc-store-slip-modal__dialog {
	background: #171322;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

html[data-store-theme="dark"] .cc-store-slip-modal__close {
	background: rgba(255, 255, 255, 0.04);
	color: #f4edf8;
}
