:root {
  color-scheme: light;
  --brand: var(--primary-color, #1d4ed8);
  --brand-strong: #1e40af;
  --accent: #0ea5e9;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

html,
body {
  height: 100%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  background: #f3f6fb;
  color: var(--ink);
  min-height: 100vh;
  position: relative;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 {
  letter-spacing: -0.3px;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: auto;
  z-index: -1;
  pointer-events: none;
}

body::before {
  width: 520px;
  height: 520px;
  right: -220px;
  top: -200px;
  background: radial-gradient(circle at 30% 30%, rgba(14, 165, 233, 0.35), transparent 65%);
  filter: blur(0);
}

body::after {
  width: 600px;
  height: 600px;
  left: -260px;
  bottom: -260px;
  background: radial-gradient(circle at 70% 70%, rgba(29, 78, 216, 0.28), transparent 70%);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--brand-strong);
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}

.site-main {
  padding: 26px 0 44px;
  flex: 1 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  transition: transform 0.25s ease;
  will-change: transform;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.topbar {
  background: #0f172a;
  color: #e2e8f0;
  font-size: 12px;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 6px 18px;
}

.topbar-left,
.topbar-right {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.topbar a {
  color: inherit;
}

.topbar a:hover {
  color: #fff;
}

.top-pill {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
}

.site-logo img {
  height: 40px;
  max-width: 180px;
  object-fit: contain;
}

.brand-text {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.2px;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
  font-weight: 600;
}

.nav-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  flex: 1;
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-shortcuts {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.nav-shortcuts-wrap {
  max-height: 80px;
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.2s ease, transform 0.25s ease;
}

.nav-shortcuts-wrap.is-hidden {
  max-height: 0;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}

.nav-shortcuts a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  font-weight: 600;
  font-size: 13px;
  color: #111827;
}

.nav-shortcuts a:hover {
  border-color: rgba(249, 115, 22, 0.6);
  color: #ea580c;
}

.nav-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(249, 115, 22, 0.14);
  color: #f97316;
}

.nav-label {
  white-space: nowrap;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.nav-topup {
  padding: 8px 14px;
}

.user-menu {
  position: relative;
}

.user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
  color: #111827;
}

.user-trigger:hover {
  border-color: rgba(249, 115, 22, 0.5);
  color: #ea580c;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #f97316;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.user-name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-caret {
  font-size: 12px;
  color: #94a3b8;
}

.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  background: #fff;
  color: #111827;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
  display: none;
  z-index: 60;
}

.user-menu.open .user-dropdown {
  display: block;
}

.user-balance {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
}

.user-balance span {
  display: block;
  font-size: 12px;
  color: #6b7280;
}

.user-balance strong {
  display: block;
  font-size: 16px;
  margin-top: 2px;
}

.user-topup {
  display: inline-flex;
  margin-top: 8px;
  font-size: 12px;
  color: #2563eb;
}

.user-dropdown a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: inherit;
  font-size: 13px;
}

.user-dropdown a:hover {
  background: #f1f5f9;
}

.nav-search {
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 340px;
}

.nav-search input {
  width: 100%;
  padding: 10px 38px 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
}

.nav-search button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  color: #0f172a;
  font-size: 12px;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 20px rgba(29, 78, 216, 0.2);
}

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

.btn.outline {
  background: #fff;
  color: var(--brand-strong);
  border-color: rgba(30, 64, 175, 0.2);
  box-shadow: none;
}

.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
  box-shadow: none;
}

.btn.gray {
  background: #0f172a;
  color: #fff;
  box-shadow: none;
}

.section {
  margin: 26px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
}

.section-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.hero {
  background: linear-gradient(120deg, rgba(29, 78, 216, 0.12), rgba(14, 165, 233, 0.2));
  border-radius: 24px;
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  right: -120px;
  top: -100px;
  background: rgba(255, 255, 255, 0.35);
}

.hero h1 {
  font-size: 32px;
  margin: 0 0 12px;
}

.hero p {
  margin: 0 0 16px;
  color: #1e293b;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.12);
}

.hero-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.hero-list {
  display: grid;
  gap: 10px;
  font-size: 13px;
  color: #1f2937;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
}

.product-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow);
}

.product-gallery {
  display: grid;
  gap: 12px;
}

.product-gallery .thumb {
  border-radius: 16px;
}

.product-thumb-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.product-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 14px;
  font-size: 13px;
}

.product-meta .meta-item {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
}

.product-detail {
  --detail-bg: #f8fafc;
  --detail-panel: #ffffff;
  --detail-panel-soft: #f5f7fb;
  --detail-border: rgba(239, 68, 68, 0.7);
  --detail-border-soft: rgba(239, 68, 68, 0.35);
  --detail-text: #111827;
  --detail-muted: #6b7280;
  background: var(--detail-bg);
  border-radius: 24px;
  padding: 24px;
  color: var(--detail-text);
  position: relative;
  overflow: hidden;
}

.product-detail::after {
  display: none;
}

.product-detail > * {
  position: relative;
  z-index: 1;
}

.product-detail a {
  color: inherit;
}

.product-detail a:hover {
  color: #1d4ed8;
}

.product-detail .product-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--detail-muted);
  margin-bottom: 16px;
}

.product-detail .product-layout {
  gap: 20px;
}

.product-detail .product-panel {
  background: var(--detail-panel);
  border: 1px solid var(--detail-border);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.product-detail .product-media-panel {
  padding: 16px;
}

.product-detail .product-info-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-detail .product-gallery {
  display: grid;
  gap: 16px;
}

.product-detail .product-gallery-main {
  position: relative;
}

.product-detail .product-gallery.has-thumbs {
  grid-template-columns: 1fr;
}

.product-detail .product-thumb-column {
  order: 2;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.product-detail .thumb {
  background-color: #f1f5f9;
  background-size: cover;
  background-position: center;
  border-radius: 14px;
  border: 1px solid var(--detail-border);
}

.product-detail .thumb-mini {
  height: 64px;
  border-radius: 10px;
  flex: 0 0 72px;
}

.product-detail .thumb-mini.is-active {
  border-color: #1d4ed8;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.product-detail .main-thumb {
  min-height: 320px;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  border-color: var(--detail-border);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.product-detail .thumb-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  font-size: 12px;
  color: var(--detail-muted);
}

.product-detail .thumb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--detail-border);
  background: #fff;
  color: #1f2937;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
}

.product-detail .product-gallery-main {
  order: 1;
}

.product-detail .thumb-nav:hover {
  background: #f8fafc;
}

.product-detail .thumb-prev {
  left: 10px;
}

.product-detail .thumb-next {
  right: 10px;
}

.product-detail .product-info-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.product-detail .product-title {
  margin: 0;
  font-size: 22px;
  color: #111827;
}

.product-detail .product-code {
  font-size: 12px;
  color: var(--detail-muted);
  margin-top: 4px;
}

.product-detail .status-pill {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.35);
}

.product-detail .status-pill.sold {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.35);
}

.product-detail .product-note {
  font-size: 12px;
  color: var(--detail-muted);
}

.product-detail .product-price-box {
  background: #f3f4f6;
  border: 1px solid var(--detail-border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.product-detail .price-old {
  font-size: 13px;
  color: #9ca3af;
  text-decoration: line-through;
}

.product-detail .price-main {
  font-size: 28px;
  font-weight: 800;
  color: #ec4899;
}

.product-detail .price-discount {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  background: #1d4ed8;
  color: #fff;
  border: 1px solid rgba(29, 78, 216, 0.4);
}

.product-detail .price-note {
  flex-basis: 100%;
  font-size: 12px;
  color: var(--detail-muted);
}

.product-detail .product-info-block {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 14px;
}

.product-detail .product-info-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #ef4444;
  margin-bottom: 10px;
}

.product-detail .product-info-list {
  display: grid;
  gap: 8px;
}

.product-detail .info-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.4);
  font-size: 13px;
  color: var(--detail-muted);
}

.product-detail .info-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.product-detail .info-row strong {
  color: #111827;
  font-weight: 600;
}

.product-detail .meta-empty {
  color: #64748b;
}

.product-detail .product-actions {
  margin-top: 10px;
}

.product-detail .product-actions .btn {
  width: 100%;
  border-radius: 12px;
}

.product-detail .btn-buy {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35);
}

.product-detail .btn.ghost {
  background: #fff;
  border-color: rgba(148, 163, 184, 0.35);
  color: #6b7280;
  box-shadow: none;
}

.product-detail .product-desc-panel h3 {
  margin-top: 0;
  color: #111827;
  font-size: 16px;
}

.product-detail .muted {
  color: var(--detail-muted);
}

.status-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
  background: rgba(14, 165, 233, 0.12);
  color: #0369a1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-pill.sold {
  background: rgba(248, 113, 113, 0.16);
  color: #b91c1c;
}

.amount-pos {
  color: #15803d;
  font-weight: 600;
}

.amount-neg {
  color: #dc2626;
  font-weight: 600;
}

.balance-note {
  font-family: Consolas, Menlo, monospace;
  font-size: 12px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-5 {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.support-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
  justify-content: start;
}

.card {
  background: var(--surface);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.12);
}

.card .thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #eef2f7;
  background-size: cover;
  background-position: center;
}

.category-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.15), rgba(14, 165, 233, 0.35));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #1e293b;
  font-size: 20px;
  letter-spacing: 0.4px;
}

.category-thumb.has-image {
  background-size: cover;
  background-position: center;
  color: #fff;
  text-shadow: 0 6px 20px rgba(15, 23, 42, 0.35);
}

.p12 {
  padding: 12px 14px;
}

.muted {
  color: var(--muted);
  font-size: 12px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pill {
  font-size: 11px;
  background: #e0f2fe;
  color: #0369a1;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.price {
  font-weight: 800;
  color: #0f172a;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

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

.table th,
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.table th {
  background: #f8fafc;
  font-weight: 600;
}

.form-input,
input[type='text'],
input[type='email'],
input[type='password'],
input[type='number'],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 14px;
  background: #fff;
}

.footer {
  margin-top: auto;
  padding: 28px 0 34px;
  background: #0f172a;
  color: #cbd5f5;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.footer h4 {
  color: #fff;
  margin: 0 0 10px;
  font-size: 15px;
}

.footer-brand-image {
  width: 160px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 10px;
}

.footer a {
  color: #cbd5f5;
  font-size: 13px;
}

.footer a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 18px;
  font-size: 12px;
  color: #94a3b8;
}

.category-accounts .section-head {
  align-items: center;
}

.filter-bar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.filter-field {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-field.wide {
  grid-column: span 6;
}

.filter-field span {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.filter-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-count {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.account-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.category-page .account-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.account-card {
  background: var(--surface);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.account-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.14);
}

.category-page .account-card {
  border: 1px solid #ef4444;
  box-shadow: none;
}

.category-page .account-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.12);
}

.account-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #e2e8f0;
  background-size: cover;
  background-position: center;
  display: block;
}

.account-thumb.no-image {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.35), rgba(29, 78, 216, 0.2));
}

.account-code {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.badge-image {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.badge-image img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
}

.badge-image.badge-pin {
  top: 10px;
  right: 10px;
  left: auto;
}

.badge-text.badge-pin {
  position: absolute;
  top: 10px;
  right: 10px;
  left: auto;
  z-index: 2;
  background: #10b981;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.account-thumb.has-sale .badge-pin {
  top: 58px;
}

.account-sale {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #f97316;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
}

.account-fallback {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
}

.account-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.category-page .account-body {
  padding: 10px;
  gap: 6px;
}

.account-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.account-title h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.account-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

.account-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
  font-size: 12px;
  color: var(--muted);
}

.category-page .account-details {
  grid-template-columns: 1fr;
  font-size: 11px;
  gap: 4px;
}

.account-details .detail-item {
  display: flex;
  gap: 6px;
  align-items: baseline;
}

.account-details .detail-item span {
  color: #94a3b8;
}

.account-details .detail-item strong {
  color: #0f172a;
  font-weight: 600;
  min-width: 0;
  word-break: break-word;
}

.detail-empty {
  color: transparent;
}

.meta-empty {
  color: transparent;
}

.meta-label {
  display: block;
  font-size: 11px;
  color: #94a3b8;
}

.account-meta strong {
  color: #0f172a;
  font-weight: 700;
}

.account-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.category-page .account-price {
  gap: 8px;
  flex-wrap: wrap;
}

.category-page.marketing-price .account-price {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  border: 1px solid #ef4444;
  padding: 6px 8px;
  border-radius: 4px;
  background: #fff;
}

.category-page.marketing-price .account-price .price-old {
  order: 1;
  font-size: 12px;
  color: #9ca3af;
  text-decoration: line-through;
}

.category-page.marketing-price .account-price .price-main {
  order: 2;
  font-size: 14px;
  color: #ef4444;
}

.category-page.marketing-price .account-price .price-discount {
  display: none;
}

.account-price .price-main {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.account-price .price-old {
  font-size: 12px;
  color: #94a3b8;
  text-decoration: line-through;
}

.category-page .price-main {
  font-size: 15px;
  color: #1d4ed8;
}

.category-page .price-discount {
  background: #fce7f3;
  color: #db2777;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}

.category-page .account-actions {
  display: none;
}

.product-related-panel h3 {
  margin: 0;
  font-size: 18px;
}

.product-related-panel .account-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 200px));
  justify-content: flex-start;
  gap: 14px;
}

.product-related-panel .account-card {
  border: 1px solid var(--detail-border);
  box-shadow: none;
  max-width: 220px;
}

.product-related-panel .account-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.12);
}

.product-related-panel .account-thumb {
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--detail-border);
  background-position: 50% 20%;
}

.product-related-panel .account-body {
  padding: 10px;
  gap: 6px;
}

.product-related-panel .related-code {
  font-size: 12px;
  font-weight: 700;
  color: #1f2937;
}

.product-related-panel .account-details {
  grid-template-columns: 1fr;
  font-size: 11px;
  gap: 4px;
}

.product-related-panel .account-details .detail-item span {
  color: #6b7280;
}

.product-related-panel .account-details .detail-item strong {
  color: #111827;
}

.product-related-panel .account-price .price-main {
  font-size: 14px;
  color: #1d4ed8;
}

.product-related-panel .account-price .price-old {
  font-size: 11px;
}

.product-related-panel .badge-image img {
  width: 44px;
  height: 44px;
}

.product-related-panel .account-sale {
  top: 8px;
  right: 8px;
  font-size: 11px;
  padding: 3px 8px;
}

.price-old {
  color: #94a3b8;
  text-decoration: line-through;
}

.category-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.category-tab {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  background: #f8fafc;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.category-tab.active {
  background: #fff;
  border-color: #0f172a;
  color: #0f172a;
  box-shadow: inset 0 -2px 0 #0f172a;
}

.category-tab:hover {
  border-color: #94a3b8;
  color: #0f172a;
}

.category-page .section-head,
.category-page .category-tabs {
  user-select: none;
}

.category-page .category-type-title {
  font-size: 20px;
}

.category-page .category-parent-title {
  font-size: 18px;
  font-weight: 700;
}

.account-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.account-actions .pill.sold {
  background: rgba(248, 113, 113, 0.16);
  color: #b91c1c;
}

.fade-up {
  animation: fadeUp 0.6s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .nav-main {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-panel {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  body.nav-open .nav-panel {
    display: flex;
  }

  .nav-actions {
    margin-left: 0;
    flex-wrap: wrap;
  }

  .nav-search {
    max-width: none;
  }

  .nav-row {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-shortcuts {
    justify-content: flex-start;
  }

  .user-dropdown {
    right: auto;
    left: 0;
    width: 100%;
    min-width: 0;
  }

  .product-layout {
    grid-template-columns: 1fr;
  }

  .product-detail {
    padding: 18px;
  }

  .product-detail .product-gallery.has-thumbs {
    grid-template-columns: 1fr;
  }

  .product-detail .product-thumb-column {
    order: 2;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .product-detail .thumb-mini {
    flex: 0 0 72px;
  }

  .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-field,
  .filter-field.wide {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .filter-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .account-meta {
    grid-template-columns: 1fr;
  }

  .account-details {
    grid-template-columns: 1fr;
  }

  .product-detail .product-info-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-detail .product-price-box {
    padding: 14px;
  }

  .product-detail .product-title {
    font-size: 20px;
  }

}

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

/* ========== MOBILE GLOBAL UI ========== */
.m-global,
.m-bottom-nav {
  display: none;
}

@media (max-width: 900px) {
  .pc-only {
    display: none !important;
  }

  body:not(.page-home) {
    background: #f5f6fb;
  }

  body:not(.page-home)::before,
  body:not(.page-home)::after {
    display: none;
  }

  body:not(.page-home) .site-header,
  body:not(.page-home) .footer {
    display: none;
  }

  body:not(.page-home) .site-main {
    padding: 0 0 130px;
  }

  body:not(.page-home) .site-main.container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  body:not(.page-home) .container {
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .m-global {
    display: block;
    position: sticky;
    top: 0;
    z-index: 60;
  }

  .m-global .m-shell {
    padding: 14px 16px 10px;
  }

  .m-global .m-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .m-global .m-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 16px;
    color: #0f172a;
  }

  .m-global .m-logo img {
    height: 32px;
    max-width: 140px;
    object-fit: contain;
  }

  .m-global .m-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .m-global .m-action {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #111827;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
  }

  .m-global .m-action svg {
    width: 18px;
    height: 18px;
  }

  .m-global .m-action-label {
    width: 40px;
    height: auto;
    padding: 4px 5px;
    border-radius: 12px;
    flex-direction: column;
    gap: 2px;
  }

  .m-global .m-action-label span {
    font-size: 8px;
    font-weight: 600;
    color: #6b7280;
  }

  .m-global .m-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #d52b2b;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .m-global .m-search {
    margin-top: 12px;
    background: #fff;
    border: 1.5px solid #d52b2b;
    border-radius: 14px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  }

  .m-global .m-search svg {
    width: 16px;
    height: 16px;
    color: #9ca3af;
  }

  .m-global .m-search input {
    border: 0;
    outline: none;
    flex: 1;
    font-size: 13px;
    background: transparent;
  }

  .m-bottom-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    background: #fff;
    border-radius: 18px;
    padding: 8px 10px;
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.2);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    z-index: 40;
  }

  .m-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: #64748b;
    text-decoration: none;
    padding: 6px 4px;
    border-radius: 12px;
  }

  .m-bottom-nav a svg {
    width: 18px;
    height: 18px;
  }

  .m-bottom-nav a.is-active {
    background: #eaf0ff;
    color: #1d4ed8;
    font-weight: 700;
  }


}

@media (min-width: 901px) {
  .m-only {
    display: none !important;
  }
}
