/* Mall of Anitoy – storefront styles.
   Palette: jade green + saffron (deliberately unlike TikTok's black / pink / cyan).
   Themes: light (default), dark and win95 (themes.css). */

:root {
	--font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-display: "Lexend", var(--font);
	--radius: 14px;
	--radius-sm: 10px;
	--radius-lg: 22px;
	--container: 1200px;
	--gutter: 16px;
	--header-h: 64px;

	--bg: #f3f6f4;
	--surface: #ffffff;
	--surface-2: #eaf1ed;
	--surface-3: #dbe7e1;
	--text: #10201b;
	--muted: #5a6a64;
	--border: #d6e1db;
	--brand: #0b7a5c;
	--brand-strong: #075a44;
	--brand-soft: #d6efe5;
	--on-brand: #ffffff;
	--accent: #f5a623;
	--accent-strong: #dc8a07;
	--on-accent: #241600;
	--price: #c2410c;
	--sale-bg: #fff0e3;
	--ok: #15803d;
	--warn: #a16207;
	--danger: #b91c1c;
	--topbar-bg: #075a44;
	--topbar-text: #dff3eb;
	--shadow: 0 1px 2px rgb(10 40 30 / 0.06), 0 10px 28px -14px rgb(10 40 30 / 0.25);
	--shadow-lg: 0 24px 60px -20px rgb(10 40 30 / 0.35);
	--hero-bg: radial-gradient(1200px 400px at 85% -10%, #bfe9d8 0%, transparent 60%), radial-gradient(800px 380px at 0% 110%, #ffe2b0 0%, transparent 55%), #eef6f2;
	color-scheme: light;
}

:root[data-theme="dark"] {
	--bg: #0c1513;
	--surface: #13201c;
	--surface-2: #182a25;
	--surface-3: #20362f;
	--text: #e5f0eb;
	--muted: #95a9a2;
	--border: #243832;
	--brand: #2fcf9c;
	--brand-strong: #7ae6c2;
	--brand-soft: #123d31;
	--on-brand: #04241a;
	--accent: #fbbf24;
	--accent-strong: #fcd34d;
	--on-accent: #1d1300;
	--price: #fb923c;
	--sale-bg: #3a2414;
	--ok: #4ade80;
	--warn: #fbbf24;
	--danger: #f87171;
	--topbar-bg: #081311;
	--topbar-text: #a6c7bc;
	--shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 30px -16px rgb(0 0 0 / 0.6);
	--shadow-lg: 0 30px 70px -24px rgb(0 0 0 / 0.75);
	--hero-bg: radial-gradient(1000px 420px at 85% -10%, #134a3a 0%, transparent 60%), radial-gradient(800px 380px at 0% 110%, #3b2a0c 0%, transparent 55%), #0f1a17;
	color-scheme: dark;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: 120px;
}

body {
	margin: 0;
	font: 15px/1.55 var(--font);
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	padding-bottom: calc(64px + env(safe-area-inset-bottom));
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--brand);
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}

h1,
h2,
h3 {
	font-family: var(--font-display);
	line-height: 1.25;
	margin: 0 0 0.5em;
	letter-spacing: -0.01em;
}
h1 {
	font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem);
}
h2 {
	font-size: 1.2rem;
}
h3 {
	font-size: 1rem;
}
p {
	margin: 0 0 0.75em;
}

:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.narrow {
	max-width: 820px;
}
.page {
	padding-block: 16px 40px;
}
.section {
	padding-block: 28px;
}
.section--band {
	background: var(--surface-2);
	padding-block: 28px;
}
.card-pad {
	padding: 18px;
}
.muted {
	color: var(--muted);
}
.small {
	font-size: 0.85rem;
}
.center {
	text-align: center;
}
.mono {
	font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
	letter-spacing: 0.04em;
}
.ok {
	color: var(--ok);
}
.row-between {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}
.plain {
	list-style: none;
	margin: 0;
	padding: 0;
}
.sr-only,
.hp {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.skip-link {
	position: absolute;
	left: 8px;
	top: -60px;
	z-index: 100;
	background: var(--surface);
	padding: 8px 12px;
	border-radius: 8px;
}
.skip-link:focus {
	top: 8px;
}
.window {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}
.titlebar,
.start-btn,
.start-menu,
.tray-clock {
	display: none;
}

/* ------------------------------------------------------------------ buttons, chips, tags */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 0 18px;
	border-radius: 999px;
	border: 1px solid transparent;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none !important;
	transition:
		transform 0.12s ease,
		background-color 0.15s ease,
		box-shadow 0.15s ease;
	white-space: nowrap;
}
.btn:active:not(:disabled) {
	transform: translateY(1px) scale(0.99);
}
.btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
.btn--primary {
	background: var(--brand);
	color: var(--on-brand);
}
.btn--primary:hover:not(:disabled) {
	background: var(--brand-strong);
}
.btn--accent {
	background: var(--accent);
	color: var(--on-accent);
	box-shadow: 0 6px 18px -8px var(--accent-strong);
}
.btn--accent:hover:not(:disabled) {
	background: var(--accent-strong);
}
.btn--ghost {
	background: transparent;
	border-color: var(--border);
	color: var(--text);
}
.btn--ghost:hover {
	background: var(--surface-2);
}
.btn--lg {
	min-height: 50px;
	padding: 0 24px;
	font-size: 1rem;
}
.btn--sm {
	min-height: 32px;
	padding: 0 12px;
	font-size: 0.85rem;
}
.btn--block {
	width: 100%;
}

.icon-btn {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 999px;
	border: 1px solid transparent;
	background: transparent;
	color: var(--text);
	cursor: pointer;
}
.icon-btn:hover {
	background: var(--surface-2);
	text-decoration: none;
}
.icon-btn--accent {
	background: var(--accent);
	color: var(--on-accent);
	width: 36px;
	height: 36px;
}
.icon-btn--accent:hover {
	background: var(--accent-strong);
}

.badge {
	position: absolute;
	top: 2px;
	right: 0;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--accent);
	color: var(--on-accent);
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}

.chip {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 0 14px;
	margin: 0 6px 6px 0;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--text);
	font-size: 0.88rem;
	text-decoration: none !important;
}
.chip:hover {
	border-color: var(--brand);
}
.chip[aria-pressed="true"],
.chip[aria-current="page"] {
	background: var(--brand);
	border-color: var(--brand);
	color: var(--on-brand);
}

.tag {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 6px;
	font-size: 0.75rem;
	font-weight: 700;
}
.tag--sale {
	background: var(--sale-bg);
	color: var(--price);
}
.tag--muted {
	background: var(--surface-3);
	color: var(--muted);
}

.eyebrow {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--brand);
}
.eyebrow--pill {
	display: inline-flex;
	gap: 6px;
	align-items: center;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--brand-soft);
	text-transform: none;
	letter-spacing: 0;
	font-size: 0.82rem;
}

/* ------------------------------------------------------------------ header */

.topbar {
	background: var(--topbar-bg);
	color: var(--topbar-text);
	font-size: 0.8rem;
}
.topbar__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 32px;
	gap: 12px;
}
.topbar p {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 6px;
}
.topbar a {
	color: inherit;
}
.topbar__links {
	display: flex;
	gap: 16px;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	border-radius: 0;
	border-width: 0 0 1px;
	box-shadow: 0 6px 20px -18px rgb(0 0 0 / 0.5);
}
.site-header__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: var(--header-h);
}
.logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--text);
	text-decoration: none !important;
	flex-shrink: 0;
}
.logo img {
	border-radius: 12px;
	box-shadow: 0 0 0 2px var(--brand-soft);
}
.logo__text {
	display: flex;
	flex-direction: column;
	line-height: 1;
}
.logo__text small {
	font-size: 0.7rem;
	color: var(--muted);
}
.logo__text strong {
	font-family: var(--font-display);
	font-size: 1.25rem;
	color: var(--brand);
}

.search {
	flex: 1;
	display: flex;
	max-width: 620px;
	margin-inline: auto;
	border: 2px solid var(--brand);
	border-radius: 999px;
	background: var(--surface);
	overflow: hidden;
}
.search input {
	flex: 1;
	min-width: 0;
	border: 0;
	padding: 0 16px;
	min-height: 40px;
	background: transparent;
}
.search input:focus {
	outline: none;
}
.search:focus-within {
	box-shadow: 0 0 0 4px var(--brand-soft);
}
.search button {
	border: 0;
	background: var(--brand);
	color: var(--on-brand);
	padding: 0 18px;
	cursor: pointer;
}
.header-actions {
	display: flex;
	align-items: center;
	gap: 2px;
}

.theme-picker {
	position: relative;
}
.theme-menu {
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	z-index: 60;
	min-width: 210px;
	padding: 6px;
	box-shadow: var(--shadow-lg);
}
.theme-menu button {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 10px 12px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	text-align: left;
	cursor: pointer;
}
.theme-menu button:hover,
.theme-menu button[aria-checked="true"] {
	background: var(--surface-2);
}
.theme-menu button[aria-checked="true"]::after {
	content: "✓";
	margin-left: auto;
	color: var(--brand);
}
.swatch {
	width: 22px;
	height: 22px;
	border-radius: 6px;
	border: 1px solid var(--border);
}
.swatch--system {
	background: linear-gradient(135deg, #f3f6f4 50%, #0c1513 50%);
}
.swatch--light {
	background: linear-gradient(135deg, #ffffff 55%, #0b7a5c 55%);
}
.swatch--dark {
	background: linear-gradient(135deg, #13201c 55%, #2fcf9c 55%);
}
.swatch--win95 {
	background: linear-gradient(#000080 0 35%, #c0c0c0 35%);
	border-radius: 0;
}

.catnav {
	border-top: 1px solid var(--border);
}
.catnav__inner {
	display: flex;
	gap: 4px;
	overflow-x: auto;
	scrollbar-width: none;
}
.catnav__inner::-webkit-scrollbar {
	display: none;
}
.catnav a {
	flex-shrink: 0;
	padding: 10px 12px;
	color: var(--text);
	font-size: 0.9rem;
	font-weight: 500;
	border-bottom: 2px solid transparent;
	text-decoration: none;
}
.catnav a:hover,
.catnav a[aria-current="page"] {
	color: var(--brand);
	border-bottom-color: var(--brand);
}

/* ------------------------------------------------------------------ hero & home */

.hero {
	background: var(--hero-bg);
	padding-block: 36px 28px;
	overflow: hidden;
}
.hero__inner {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: 32px;
	align-items: center;
}
.hero h1 {
	font-size: clamp(1.9rem, 1.2rem + 3vw, 3.2rem);
	margin-top: 14px;
}
.hero h1 em {
	font-style: normal;
	color: var(--brand);
	background: linear-gradient(transparent 62%, color-mix(in srgb, var(--accent) 45%, transparent) 62%);
}
.hero__lead {
	font-size: 1.05rem;
	color: var(--muted);
	max-width: 52ch;
}
.hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 20px 0 14px;
}
.hero__proof {
	font-size: 0.9rem;
	color: var(--muted);
}
.hero__proof strong {
	color: var(--text);
}
.hero__art {
	position: relative;
	aspect-ratio: 1.1;
}
.hero__tile {
	position: absolute;
	overflow: hidden;
	box-shadow: var(--shadow-lg);
	border-radius: var(--radius-lg);
	transition: transform 0.3s ease;
}
.hero__tile:hover {
	transform: translateY(-4px) rotate(0deg) !important;
}
.hero__tile img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.hero__tile--1 {
	inset: 6% 26% 14% 12%;
	z-index: 2;
	transform: rotate(-2deg);
}
.hero__tile--2 {
	width: 38%;
	aspect-ratio: 1;
	right: 0;
	top: 0;
	transform: rotate(5deg);
}
.hero__tile--3 {
	width: 36%;
	aspect-ratio: 1;
	right: 4%;
	bottom: 0;
	z-index: 3;
	transform: rotate(-4deg);
}

.perks {
	list-style: none;
	padding: 0;
	margin: 18px 0 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}
.perks li {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 14px;
}
.perks__icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--brand-soft);
	color: var(--brand);
	flex-shrink: 0;
}
.perks strong {
	display: block;
	font-size: 0.92rem;
}
.perks small {
	color: var(--muted);
}

.section-head {
	display: flex;
	justify-content: space-between;
	align-items: end;
	gap: 12px;
	margin-bottom: 14px;
}
.section-head h2 {
	font-size: 1.35rem;
	margin: 0;
}
.section-head p {
	margin: 4px 0 0;
	font-size: 0.88rem;
}
.link-more {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	font-weight: 600;
	white-space: nowrap;
}

.cat-tiles {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 12px;
}
.cat-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 14px 8px;
	text-align: center;
	color: var(--text);
	text-decoration: none !important;
	transition:
		transform 0.15s ease,
		box-shadow 0.15s ease;
}
.cat-tile:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow);
}
.cat-tile img {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--surface-2);
}
.cat-tile span {
	font-weight: 600;
	font-size: 0.9rem;
}

.trust {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}
.trust__item {
	padding: 20px;
}
.trust__item .icon {
	color: var(--brand);
	margin-bottom: 8px;
}

/* ------------------------------------------------------------------ product cards */

.product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 14px;
}
.product-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition:
		transform 0.15s ease,
		box-shadow 0.15s ease,
		border-color 0.15s ease;
}
.product-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow);
	border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
}
.product-card__media {
	position: relative;
	display: block;
	aspect-ratio: 1;
	background: var(--surface-2);
}
.product-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.is-soldout .product-card__media img {
	filter: grayscale(0.7) opacity(0.7);
}
.product-card__off {
	position: absolute;
	top: 8px;
	left: 8px;
}
.product-card__views {
	position: absolute;
	right: 8px;
	bottom: 8px;
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 3px 8px;
	border-radius: 999px;
	background: rgb(0 0 0 / 0.62);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 600;
}
.product-card__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 10px 12px 12px;
	flex: 1;
}
.product-card__title {
	font-family: var(--font);
	font-weight: 500;
	font-size: 0.9rem;
	line-height: 1.4;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.8em;
}
.product-card__title a {
	color: var(--text);
}
.product-card__foot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	margin-top: auto;
}
.price-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px;
}
.price {
	color: var(--price);
	font-weight: 700;
	font-size: 1.05rem;
}
.price small {
	font-weight: 500;
	font-size: 0.75rem;
}
.price--lg {
	font-size: 1.9rem;
	font-family: var(--font-display);
}
.price-was {
	color: var(--muted);
	font-size: 0.82rem;
}
.tt-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	margin: 0;
	font-size: 0.78rem;
	color: var(--muted);
}
.tt-stats__rating {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	color: var(--text);
	font-weight: 600;
}
.tt-stats__rating .icon {
	color: var(--accent);
	fill: var(--accent);
}

.rail {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(180px, 210px);
	gap: 14px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 10px;
	scrollbar-width: thin;
}
.rail > * {
	scroll-snap-align: start;
}

/* ------------------------------------------------------------------ videos */

.video-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 14px;
}
.video-card {
	margin: 0;
	overflow: hidden;
}
.video-card__play {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: #000;
	cursor: pointer;
	aspect-ratio: 9 / 16;
}
.video-card--compact .video-card__play {
	aspect-ratio: 3 / 4;
}
.video-card__play img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.92;
	transition: transform 0.3s ease;
}
.video-card__play:hover img {
	transform: scale(1.03);
}
.video-card__views {
	position: absolute;
	left: 8px;
	bottom: 8px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 8px;
	border-radius: 999px;
	background: rgb(0 0 0 / 0.6);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 600;
}
.video-card__btn {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 56px;
	height: 56px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: rgb(255 255 255 / 0.9);
	color: var(--brand-strong);
	box-shadow: 0 6px 20px rgb(0 0 0 / 0.3);
}
.video-card__btn .icon {
	fill: currentColor;
	margin-left: 3px;
}
.video-card figcaption {
	padding: 10px 12px;
}
.video-card__title {
	margin: 0 0 4px;
	font-size: 0.85rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.modal {
	position: fixed;
	inset: 0;
	z-index: 90;
	display: grid;
	place-items: center;
	background: rgb(0 0 0 / 0.75);
	padding: 16px;
}
.modal__frame {
	position: relative;
	width: min(380px, 100%);
	aspect-ratio: 9 / 16;
	max-height: 86vh;
	background: #000;
	border-radius: var(--radius);
	overflow: hidden;
}
.modal__frame iframe {
	width: 100%;
	height: 100%;
	border: 0;
}
.modal__close {
	position: absolute;
	top: -48px;
	right: 0;
	background: rgb(255 255 255 / 0.15);
	color: #fff;
}

/* ------------------------------------------------------------------ breadcrumbs, listing */

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
	font-size: 0.82rem;
	color: var(--muted);
}
.breadcrumbs li + li::before {
	content: "›";
	margin-right: 4px;
}
.breadcrumbs span[aria-current] {
	display: inline-block;
	max-width: 46ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: bottom;
}
.page-head {
	margin-bottom: 16px;
}
.page-head h1 {
	margin-bottom: 4px;
}
.listing {
	display: grid;
	grid-template-columns: 250px 1fr;
	gap: 20px;
	align-items: start;
}
.filters {
	padding: 14px;
	position: sticky;
	top: calc(var(--header-h) + 60px);
}
.filters summary {
	display: flex;
	gap: 6px;
	align-items: center;
	font-weight: 700;
	cursor: pointer;
	margin-bottom: 8px;
}
.filters fieldset {
	border: 0;
	padding: 0;
	margin: 0 0 12px;
}
.filters legend {
	font-weight: 600;
	font-size: 0.85rem;
	margin-bottom: 6px;
}
.toolbar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}
.toolbar p {
	margin: 0;
}
.sort {
	display: flex;
	flex-wrap: wrap;
}
.pager {
	display: flex;
	justify-content: center;
	margin-top: 20px;
}

.empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-align: center;
	padding: 40px 20px;
}
.empty .icon {
	color: var(--muted);
}

/* ------------------------------------------------------------------ product page */

.pdp__hero {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}
.gallery {
	padding: 10px;
	position: sticky;
	top: calc(var(--header-h) + 56px);
}
.gallery__main {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	border-radius: var(--radius-sm);
	scrollbar-width: none;
	background: var(--surface-2);
}
.gallery__main::-webkit-scrollbar {
	display: none;
}
.gallery__main img {
	flex: 0 0 100%;
	aspect-ratio: 1;
	object-fit: cover;
	scroll-snap-align: center;
}
.gallery__thumbs {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding-top: 10px;
}
.gallery__thumbs button {
	position: relative;
	flex: 0 0 64px;
	height: 64px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 10px;
	overflow: hidden;
	cursor: pointer;
	background: var(--surface-2);
}
.gallery__thumbs button[aria-selected="true"] {
	border-color: var(--brand);
}
.gallery__thumbs img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.gallery__video .icon {
	position: absolute;
	inset: 0;
	margin: auto;
	color: #fff;
	fill: #fff;
	filter: drop-shadow(0 1px 3px rgb(0 0 0 / 0.6));
}

.buybox {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}
.gallery,
.checkout__main,
.listing__results {
	min-width: 0;
}
.buybox__title {
	font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem);
	margin: 0;
}
.buybox__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	align-items: center;
}
.buybox__meta a {
	display: inline-flex;
	gap: 4px;
	align-items: center;
}
.buybox__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 12px;
	padding: 14px 16px;
	background: var(--sale-bg);
	border-color: transparent;
}
.buybox__price p {
	flex-basis: 100%;
	margin: 0;
}
.variants {
	border: 0;
	padding: 0;
	margin: 0;
}
.variants legend {
	margin-bottom: 8px;
	font-size: 0.92rem;
}
.variants__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.variant {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 4px 12px 4px 4px;
	border: 1.5px solid var(--border);
	border-radius: 12px;
	background: var(--surface);
	cursor: pointer;
	font-size: 0.9rem;
}
.variant:not(:has(img)) {
	padding-left: 12px;
}
.variant img {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	object-fit: cover;
}
.variant input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.variant:has(input:checked) {
	border-color: var(--brand);
	background: var(--brand-soft);
	box-shadow: 0 0 0 1px var(--brand);
}
.variant:has(input:focus-visible) {
	outline: 3px solid var(--accent);
}
.variant.is-out {
	opacity: 0.55;
}
.variant small {
	color: var(--muted);
}
.qty-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}
.stepper {
	display: inline-flex;
	border: 1px solid var(--border);
	border-radius: 999px;
	overflow: hidden;
	background: var(--surface);
}
.stepper button {
	width: 38px;
	border: 0;
	background: transparent;
	cursor: pointer;
	display: grid;
	place-items: center;
}
.stepper button:hover {
	background: var(--surface-2);
}
.stepper input {
	width: 44px;
	text-align: center;
	border: 0;
	background: transparent;
	min-height: 38px;
	-moz-appearance: textfield;
	appearance: textfield;
}
.stepper input::-webkit-inner-spin-button {
	-webkit-appearance: none;
}
.buybox__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}
.assurance {
	list-style: none;
	margin: 0;
	padding: 12px 16px;
	display: grid;
	gap: 8px;
	font-size: 0.88rem;
}
.assurance li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}
.assurance .icon {
	color: var(--brand);
	flex-shrink: 0;
	margin-top: 2px;
}
.notice {
	padding: 10px 14px;
	border-radius: var(--radius-sm);
	background: color-mix(in srgb, var(--warn) 14%, var(--surface));
	color: var(--text);
	font-size: 0.9rem;
	margin: 0;
}
.pdp__details {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 16px;
	margin-top: 28px;
	align-items: start;
}
.prose p {
	white-space: normal;
}
.specs {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 8px 16px;
	margin: 0;
	font-size: 0.9rem;
}
.specs dt {
	color: var(--muted);
}
.specs dd {
	margin: 0;
}
.buybar {
	display: none;
}

/* ------------------------------------------------------------------ cart, checkout, order */

.checkout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	gap: 20px;
	align-items: start;
}
.checkout__main {
	display: grid;
	gap: 16px;
}
.checkout h2 {
	display: flex;
	align-items: center;
	gap: 8px;
}
.summary {
	position: sticky;
	top: calc(var(--header-h) + 56px);
	display: grid;
	gap: 12px;
}
.form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
.field {
	display: grid;
	gap: 4px;
	font-size: 0.88rem;
	font-weight: 500;
}
.field--wide {
	grid-column: 1 / -1;
}
.field input,
.field select,
.field textarea,
.toolbar input,
.table input {
	width: 100%;
	min-height: 44px;
	padding: 8px 12px;
	border: 1.5px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--surface);
	font-weight: 400;
}
.field textarea {
	min-height: 64px;
	resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--brand);
	box-shadow: 0 0 0 3px var(--brand-soft);
}
.field [aria-invalid="true"] {
	border-color: var(--danger);
}
.form-error {
	color: var(--danger);
	font-size: 0.9rem;
	margin: 0;
}
.pay-methods {
	display: grid;
	gap: 8px;
	margin-bottom: 10px;
}
.pay-method {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	border: 1.5px solid var(--border);
	border-radius: var(--radius-sm);
	cursor: pointer;
}
.pay-method:has(input:checked) {
	border-color: var(--brand);
	background: var(--brand-soft);
}
.pay-method input {
	accent-color: var(--brand);
	width: 18px;
	height: 18px;
}
.pay-method strong {
	display: block;
	font-size: 0.92rem;
}
.pay-method small {
	display: block;
}
.pay-method__logo {
	display: grid;
	place-items: center;
	flex: 0 0 52px;
	height: 34px;
	border-radius: 8px;
	font-size: 0.72rem;
	font-weight: 800;
	color: #fff;
}
.pay-badges {
	list-style: none;
	padding: 0;
	margin: 0 0 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.pay-badge {
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 0.75rem;
	font-weight: 700;
	color: #fff;
	background: #475569;
}
.pay-badge--cod {
	background: #0f766e;
}
.pay-badge--vietqr {
	background: #1d4ed8;
}

.lines,
.summary__lines {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
}
.line {
	display: grid;
	grid-template-columns: 56px 1fr auto;
	gap: 10px;
	align-items: start;
	font-size: 0.88rem;
}
.line img {
	width: 56px;
	height: 56px;
	border-radius: 8px;
	object-fit: cover;
	background: var(--surface-2);
}
.line a {
	color: var(--text);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.line p {
	margin: 2px 0 0;
}
.line .stepper {
	margin-top: 6px;
	transform: scale(0.88);
	transform-origin: left center;
}
.line__issue {
	color: var(--warn);
	font-size: 0.8rem;
}
.line__remove {
	border: 0;
	background: none;
	color: var(--muted);
	cursor: pointer;
	font-size: 0.8rem;
	padding: 0;
	margin-left: 8px;
	text-decoration: underline;
}
.totals {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 6px;
	margin: 0;
	font-size: 0.92rem;
}
.totals dd {
	margin: 0;
	text-align: right;
}
.totals__grand {
	font-weight: 700;
	font-size: 1.1rem;
	padding-top: 8px;
	border-top: 1px dashed var(--border);
}
dd.totals__grand {
	color: var(--price);
}
.ship-meter p {
	font-size: 0.85rem;
	margin: 0 0 6px;
}
.ship-meter__bar {
	height: 8px;
	border-radius: 999px;
	background: var(--surface-3);
	overflow: hidden;
}
.ship-meter__bar span {
	display: block;
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, var(--brand), var(--accent));
	transition: width 0.4s ease;
}

.banner {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	margin-bottom: 16px;
}
.banner p {
	margin: 2px 0 0;
}
.banner--success {
	border-color: var(--ok);
	background: color-mix(in srgb, var(--ok) 10%, var(--surface));
}
.banner--success .icon {
	color: var(--ok);
}
.steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	list-style: none;
	padding: 0;
	margin: 0 0 14px;
	counter-reset: step;
}
.steps li {
	position: relative;
	text-align: center;
	font-size: 0.82rem;
	color: var(--muted);
	padding-top: 34px;
}
.steps li::before {
	counter-increment: step;
	content: counter(step);
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--surface-3);
	font-weight: 700;
	z-index: 1;
}
.steps li + li::after {
	content: "";
	position: absolute;
	top: 13px;
	right: 50%;
	width: 100%;
	height: 3px;
	background: var(--surface-3);
}
.steps li.is-done {
	color: var(--text);
	font-weight: 600;
}
.steps li.is-done::before {
	background: var(--brand);
	color: var(--on-brand);
	content: "✓";
}
.steps li.is-done::after {
	background: var(--brand);
}
.status {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 600;
	background: var(--surface-3);
}
.status--pending {
	background: color-mix(in srgb, var(--warn) 18%, var(--surface));
}
.status--confirmed,
.status--shipped {
	background: var(--brand-soft);
}
.status--delivered {
	background: color-mix(in srgb, var(--ok) 18%, var(--surface));
}
.status--cancelled {
	background: color-mix(in srgb, var(--danger) 14%, var(--surface));
}
.timeline {
	margin: 0;
	padding-left: 18px;
	font-size: 0.88rem;
	display: grid;
	gap: 4px;
}
.vietqr__body {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 20px;
	align-items: center;
}
.vietqr__code svg {
	width: 100%;
	height: auto;
	border-radius: 12px;
	border: 6px solid #fff;
	box-shadow: var(--shadow);
}
.kv {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 8px 14px;
	margin: 0;
	font-size: 0.92rem;
}
.kv dt {
	color: var(--muted);
}
.kv dd {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 6px;
}
.copy {
	border: 1px solid var(--border);
	background: var(--surface);
	border-radius: 6px;
	padding: 3px 5px;
	cursor: pointer;
	display: inline-grid;
	place-items: center;
}
.faq {
	display: grid;
	gap: 10px;
	margin-bottom: 20px;
}
.faq summary {
	font-weight: 600;
	cursor: pointer;
}
.faq details p {
	margin: 10px 0 0;
}
.prose section {
	margin-bottom: 14px;
}

/* ------------------------------------------------------------------ drawer, toast */

.drawer {
	position: fixed;
	inset: 0;
	z-index: 80;
}
.drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgb(0 0 0 / 0.45);
	animation: fade 0.2s ease;
}
.drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(420px, 100%);
	display: flex;
	flex-direction: column;
	border-radius: var(--radius-lg) 0 0 var(--radius-lg);
	box-shadow: var(--shadow-lg);
	animation: slide-in 0.25s ease;
}
.drawer__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 16px;
	border-bottom: 1px solid var(--border);
}
.drawer__header h2 {
	margin: 0;
}
.drawer__body {
	flex: 1;
	overflow-y: auto;
	padding: 16px;
}
.drawer__footer {
	display: grid;
	gap: 10px;
	padding: 16px;
	border-top: 1px solid var(--border);
}
@keyframes slide-in {
	from {
		transform: translateX(100%);
	}
}
@keyframes fade {
	from {
		opacity: 0;
	}
}
.toast-region {
	position: fixed;
	left: 50%;
	bottom: calc(80px + env(safe-area-inset-bottom));
	transform: translateX(-50%);
	z-index: 95;
	display: grid;
	gap: 8px;
	width: min(420px, calc(100% - 32px));
}
.toast {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	border-radius: var(--radius-sm);
	background: var(--text);
	color: var(--bg);
	box-shadow: var(--shadow-lg);
	animation: fade 0.2s ease;
	font-size: 0.9rem;
}
.toast a {
	color: var(--accent);
	font-weight: 600;
}

/* ------------------------------------------------------------------ dock (mobile bottom nav) */

.dock {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 50;
	display: flex;
	justify-content: space-around;
	padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
	background: color-mix(in srgb, var(--surface) 92%, transparent);
	backdrop-filter: blur(12px);
	border-top: 1px solid var(--border);
}
.dock__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	flex: 1;
	padding: 4px 0;
	border: 0;
	background: none;
	color: var(--muted);
	font-size: 0.68rem;
	cursor: pointer;
	text-decoration: none !important;
}
.dock__item[aria-current="page"] {
	color: var(--brand);
}
.dock__icon {
	position: relative;
}
.dock__icon .badge {
	top: -6px;
	right: -12px;
}

/* ------------------------------------------------------------------ footer */

.site-footer {
	margin-top: 40px;
	background: var(--surface);
	border-top: 1px solid var(--border);
	padding-top: 32px;
	font-size: 0.9rem;
}
.site-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: 24px;
}
.site-footer h2 {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--muted);
}
.site-footer li {
	margin-bottom: 6px;
}
.site-footer a {
	color: var(--text);
}
.site-footer__bottom {
	border-top: 1px solid var(--border);
	margin-top: 20px;
	padding-block: 14px;
	font-size: 0.8rem;
	color: var(--muted);
}

/* ------------------------------------------------------------------ admin */

.admin {
	padding-bottom: 0;
}
.admin__bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 12px 20px;
	background: var(--brand-strong);
	color: #fff;
}
.admin__bar a {
	color: #fff;
}
.admin__bar nav {
	display: flex;
	gap: 16px;
}
.table-wrap {
	overflow-x: auto;
}
.table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.88rem;
}
.table th,
.table td {
	text-align: left;
	padding: 10px 12px;
	border-bottom: 1px solid var(--border);
	vertical-align: top;
}
.table th {
	font-size: 0.78rem;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.table .num {
	text-align: right;
}
.table input {
	min-height: 36px;
	max-width: 130px;
}
.admin-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
}
.admin-product {
	margin-bottom: 14px;
}
.admin-import {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-bottom: 16px;
}
.admin-import p {
	flex-basis: 100%;
}

/* ------------------------------------------------------------------ responsive */

@media (min-width: 900px) {
	body {
		padding-bottom: 0;
	}
	.dock {
		display: none;
	}
	.toast-region {
		bottom: 24px;
	}
}

@media (max-width: 899px) {
	.hide-mobile,
	.topbar__links a:not(:first-child) {
		display: none;
	}
	.hero__inner,
	.pdp__hero,
	.pdp__details,
	.checkout,
	.listing {
		grid-template-columns: minmax(0, 1fr);
	}
	.hero__art {
		max-width: 420px;
		width: 100%;
		margin-inline: auto;
	}
	.perks {
		grid-template-columns: repeat(2, 1fr);
	}
	.trust {
		grid-template-columns: 1fr;
	}
	.filters,
	.gallery,
	.summary {
		position: static;
	}
	.filters details:not([open]) {
		margin: 0;
	}
	.site-footer__grid {
		grid-template-columns: 1fr 1fr;
	}
	.buybar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: calc(60px + env(safe-area-inset-bottom));
		z-index: 45;
		display: grid;
		grid-template-columns: 1fr auto auto;
		gap: 8px;
		align-items: center;
		padding: 10px 16px;
		border-radius: 0;
		border-width: 1px 0 0;
		box-shadow: 0 -8px 24px -18px rgb(0 0 0 / 0.5);
		transform: translateY(150%);
		transition: transform 0.2s ease;
	}
	.buybar.is-visible {
		transform: none;
	}
	.vietqr__body {
		grid-template-columns: 1fr;
	}
	.vietqr__code {
		max-width: 240px;
		margin-inline: auto;
	}
}

@media (max-width: 560px) {
	:root {
		--header-h: 56px;
	}
	.site-header__inner {
		flex-wrap: wrap;
		gap: 8px;
		padding-block: 8px;
	}
	.search {
		order: 3;
		flex-basis: 100%;
		max-width: none;
	}
	.header-actions {
		margin-left: auto;
	}
	.topbar__links {
		display: none;
	}
	.product-grid,
	.video-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}
	.rail {
		grid-auto-columns: 46%;
	}
	.form-grid {
		grid-template-columns: 1fr;
	}
	.perks li {
		padding: 10px;
	}
	.perks__icon {
		width: 36px;
		height: 36px;
	}
	.buybox__actions {
		grid-template-columns: 1fr;
	}
	.site-footer__grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}
