:root {
  --ink: #0e1a28;
  --ink-soft: #2a3b4f;
  --muted: #5c6d7e;
  --line: rgba(14, 26, 40, 0.1);
  --paper: #f3f5f7;
  --paper-2: #e8ecef;
  --surface: #ffffff;
  --accent: #d97706;
  --accent-2: #b45309;
  --accent-soft: rgba(217, 119, 6, 0.12);
  --steel: #1e4d6b;
  --ok: #0f766e;
  --err: #b91c1c;
  --shadow: 0 18px 50px rgba(14, 26, 40, 0.08);
  --radius: 14px;
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(30, 77, 107, 0.14), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(217, 119, 6, 0.1), transparent 55%),
    linear-gradient(180deg, #eef2f5 0%, var(--paper) 40%, #e7ebef 100%);
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: clip;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--steel); text-decoration: none; }
a:hover { color: var(--accent-2); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  overflow-wrap: anywhere;
}
p { margin: 0 0 1em; }
.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(243, 245, 247, 0.92);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 0.85rem 0;
  position: relative;
}
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  color: var(--ink);
  flex-shrink: 0;
  z-index: 2;
}
.logo:hover { color: var(--ink); }
.logo-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  background: var(--ink);
  color: #fff;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  letter-spacing: 0.04em;
}
.logo-text { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.logo-dot { color: var(--accent); }
.header-search {
  display: flex;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: visible;
  box-shadow: 0 2px 10px rgba(14,26,40,0.04);
  position: relative;
}
.search-field {
  flex: 1;
  min-width: 0;
  position: relative;
}
.header-search input {
  flex: 1;
  border: 0;
  padding: 0.7rem 1.1rem;
  font: inherit;
  background: transparent;
  outline: none;
  min-width: 0;
  width: 100%;
  border-radius: 999px 0 0 999px;
}
.header-search button {
  border: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.25rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 0 999px 999px 0;
}
.header-search button:hover { background: var(--accent); }
.search-suggest {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  right: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  z-index: 80;
  overflow: hidden;
  max-height: min(70vh, 420px);
  overflow-y: auto;
}
.search-suggest[hidden] { display: none !important; }
.search-suggest-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem 1rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  text-decoration: none;
}
.search-suggest-item:last-child { border-bottom: 0; }
.search-suggest-item:hover,
.search-suggest-item.is-active {
  background: var(--accent-soft);
  color: var(--ink);
}
.search-suggest-item strong {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}
.search-suggest-item span {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}
.search-suggest-type {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.search-suggest-empty {
  padding: 0.9rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.92rem;
  font-weight: 600;
  flex-shrink: 0;
}
.header-nav a { color: var(--ink-soft); white-space: nowrap; }
.header-nav a:hover { color: var(--accent); }

/* Burger — single element with 3 bars via box-shadow */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 2;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover { background: rgba(14, 26, 40, 0.06); }
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle-bar {
  position: relative;
}
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
body.nav-open .nav-toggle-bar {
  background: transparent;
}
body.nav-open .nav-toggle-bar::before {
  top: 0;
  transform: rotate(45deg);
}
body.nav-open .nav-toggle-bar::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Mobile drawer — sibling of header, not inside backdrop-filter */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 26, 40, 0.45);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.nav-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 88vw);
  z-index: 210;
  background: #fff;
  box-shadow: -16px 0 48px rgba(14, 26, 40, 0.2);
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  visibility: hidden;
  transition: transform 0.28s ease, visibility 0.28s;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) 0;
}
.mobile-nav.is-open {
  transform: translateX(0);
  visibility: visible;
}
.mobile-nav[hidden] {
  display: flex;
}
.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.mobile-nav-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}
.mobile-nav-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: var(--paper);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0.85rem 1.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  gap: 0.15rem;
}
.mobile-nav-links a {
  display: block;
  padding: 0.9rem 0.85rem;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
}
.mobile-nav-links a:hover {
  background: var(--accent-soft);
  color: var(--accent-2);
}
.mobile-nav-links .btn {
  margin-top: 0.75rem;
  width: 100%;
  text-align: center;
}

/* Category bar — full-bleed horizontal scroll */
.cat-bar {
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.65);
  min-width: 0;
}
.cat-bar-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 0.55rem max(1rem, calc((100vw - var(--max)) / 2 + 1rem));
  min-width: 0;
}
.cat-bar-track::-webkit-scrollbar { display: none; }
.cat-bar-track a {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--line);
  scroll-snap-align: start;
  line-height: 1.2;
}
.cat-bar-track a:hover {
  background: var(--accent-soft);
  color: var(--accent-2);
  border-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 0;
  background: var(--accent);
  color: #fff !important;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.25);
}
.btn:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
}
.btn-sm { padding: 0.5rem 0.95rem; font-size: 0.88rem; box-shadow: none; }
.btn-outline {
  background: transparent;
  color: var(--ink) !important;
  border: 1.5px solid var(--ink);
  box-shadow: none;
}
.btn-outline:hover { background: var(--ink); color: #fff !important; }
.btn-ghost {
  background: transparent;
  color: #fff !important;
  border: 1.5px solid rgba(255,255,255,0.75);
  box-shadow: none;
}
.btn-ghost:hover {
  background: #fff;
  color: var(--ink) !important;
  border-color: #fff;
}
.btn-dark { background: var(--ink); box-shadow: none; }
.btn-dark:hover { background: var(--steel); }
.btn-block { width: 100%; }

/* Hero — desktop first viewport */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: calc(100vh - 7.5rem);
  min-height: calc(100svh - 7.5rem);
  display: grid;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      105deg,
      rgba(14, 26, 40, 0.92) 0%,
      rgba(14, 26, 40, 0.72) 42%,
      rgba(14, 26, 40, 0.35) 100%
    ),
    url("https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1920&q=80") center / cover no-repeat;
  transform: scale(1.02);
  animation: heroDrift 22s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(-1.5%, -0.8%, 0); }
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 4rem;
  color: #fff;
  max-width: 34rem;
  animation: riseIn 0.85s ease both;
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 7vw, 6rem);
  letter-spacing: -0.045em;
  margin: 0 0 0.85rem;
  line-height: 0.92;
}
.hero-brand span { color: var(--accent); }
.hero h1 {
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.94);
  margin: 0 0 0.85rem;
  max-width: 22ch;
  line-height: 1.3;
}
.hero p {
  color: rgba(255,255,255,0.72);
  font-size: 1.08rem;
  line-height: 1.55;
  max-width: 38ch;
  margin: 0 0 1.85rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Sections */
.section { padding: 3.5rem 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0; }
.section-head p { margin: 0; color: var(--muted); max-width: 42ch; }
.section-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

/* Category mosaic */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
}
.cat-tile {
  position: relative;
  display: block;
  min-height: 180px;
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff !important;
  background: var(--ink);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cat-tile-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.4s ease;
}
.cat-tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,26,40,0.15) 0%, rgba(14,26,40,0.55) 45%, rgba(14,26,40,0.88) 100%);
  z-index: 1;
}
.cat-tile-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 180px;
  padding: 1.1rem;
  gap: 0.2rem;
}
.cat-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.cat-tile:hover .cat-tile-img {
  transform: scale(1.08);
}
.cat-tile strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.2;
}
.cat-tile-body > span {
  font-size: 0.82rem;
  opacity: 0.85;
}

/* Product cards — interaction containers */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: fadeUp 0.6s ease both;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.product-card img {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  background: var(--paper-2);
}
.product-body { padding: 1rem 1.05rem 1.15rem; display: flex; flex-direction: column; flex: 1; gap: 0.35rem; }
.product-cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.product-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--ink);
  font-weight: 700;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-meta { font-size: 0.85rem; color: var(--muted); }
.product-price {
  margin-top: auto;
  padding-top: 0.55rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
}
.product-price small { font-weight: 500; font-size: 0.8rem; color: var(--muted); }

/* Layout helpers */
.page-hero {
  padding: 2.5rem 0 1.5rem;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-hero p { color: var(--muted); max-width: 55ch; }

.layout-2 {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  padding-bottom: 3rem;
}
.catalog-main { min-width: 0; }
.sidebar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  position: sticky;
  top: 7.5rem;
  max-height: calc(100vh - 8.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.sidebar h3 { font-size: 1rem; margin-bottom: 0.75rem; }
.cat-nav { display: flex; flex-direction: column; gap: 0.15rem; }
.cat-nav-link {
  display: block;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
}
.cat-nav-root {
  font-weight: 700;
  color: var(--ink);
  margin-top: 0.35rem;
}
.cat-nav-children {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin: 0.1rem 0 0.35rem;
  padding-left: 0.65rem;
  border-left: 2px solid var(--paper-2);
}
.cat-nav-link.depth-1 {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.35rem 0.5rem;
}
.cat-nav-link:hover,
.cat-nav-link.active {
  background: var(--accent-soft);
  color: var(--accent-2);
}
.cat-mobile-label,
.cat-mobile-select { display: none; }
.subcat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 600;
}
.chip:hover {
  background: var(--accent-soft);
  color: var(--accent-2);
  border-color: transparent;
}
.toolbar-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-width: 0;
}
.toolbar-count { color: var(--muted); font-size: 0.9rem; white-space: nowrap; }
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Product detail */
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
  padding-bottom: 3rem;
}
.product-gallery {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
.product-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.product-info h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.price-xl {
  font-size: 2rem;
  font-weight: 800;
  margin: 0.5rem 0 1rem;
}
.price-xl small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.seller-box, .contact-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  margin-top: 1rem;
}
.seller-box h3, .contact-box h3 { font-size: 1.05rem; }
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

/* Forms */
.form-group { margin-bottom: 0.9rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--ink-soft);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-group textarea { min-height: 110px; resize: vertical; }
.auth-wrap {
  max-width: 440px;
  margin: 2.5rem auto 4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem;
  box-shadow: var(--shadow);
  animation: riseIn 0.5s ease both;
}
.auth-wrap h1 { font-size: 1.7rem; }
.auth-wrap .muted { color: var(--muted); margin-bottom: 1.25rem; }
.demo-creds {
  background: var(--paper);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 0.86rem;
  margin-bottom: 1.25rem;
  color: var(--ink-soft);
}
.demo-creds code {
  font-family: ui-monospace, monospace;
  background: #fff;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  border: 1px solid var(--line);
}

/* Dashboard */
.dash {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.5rem 0 3rem;
  align-items: start;
}
.dash-nav {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.1rem 0.75rem;
  position: sticky;
  top: 7.5rem;
}
.dash-nav a {
  display: block;
  color: rgba(255,255,255,0.75);
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
}
.dash-nav a:hover, .dash-nav a.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.dash-nav .brand {
  font-family: var(--font-display);
  font-weight: 800;
  padding: 0.4rem 0.85rem 1rem;
  font-size: 1.1rem;
}
.dash-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.stat {
  background: linear-gradient(160deg, #fff, var(--paper));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 0.15rem;
}
.stat span { color: var(--muted); font-size: 0.88rem; }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
table.data th, table.data td {
  text-align: left;
  padding: 0.75rem 0.6rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.data th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.badge-ok { background: rgba(15,118,110,0.12); color: var(--ok); }
.badge-pending { background: var(--accent-soft); color: var(--accent-2); }
.badge-new { background: rgba(30,77,107,0.12); color: var(--steel); }
.badge-off { background: rgba(185,28,28,0.1); color: var(--err); }
.actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.actions form { display: inline; }

/* Sellers */
.seller-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-bottom: 3rem;
}
.seller-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.seller-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.seller-card h3 { margin-bottom: 0.2rem; font-size: 1.15rem; }
.seller-card .company { color: var(--accent-2); font-weight: 700; font-size: 0.9rem; margin-bottom: 0.5rem; }

/* Flashes */
.flashes { padding-top: 1rem; }
.flash {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  font-weight: 600;
  animation: riseIn 0.35s ease both;
}
.flash-success { background: rgba(15,118,110,0.12); color: var(--ok); }
.flash-error { background: rgba(185,28,28,0.1); color: var(--err); }
.flash-info { background: rgba(30,77,107,0.1); color: var(--steel); }

/* Steps / about */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.step {
  padding: 1.5rem 1.25rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.step-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer a { color: rgba(255,255,255,0.75); display: block; margin-bottom: 0.4rem; }
.site-footer a:hover { color: var(--accent); }
.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}
.site-footer p { margin: 0 0 0.45rem; }
.site-footer p a {
  display: inline;
  margin: 0;
}
.footer-lead { max-width: 36ch; font-size: 0.95rem; }
.logo-footer .logo-mark { background: var(--accent); color: var(--ink); }
.logo-footer .logo-text { color: #fff; }
.btn-footer {
  display: inline-flex !important;
  margin-top: 0.85rem;
  margin-bottom: 0;
  background: var(--accent);
  color: #fff !important;
  border: 1.5px solid var(--accent);
  box-shadow: none;
}
.btn-footer:hover {
  background: #fff;
  color: var(--ink) !important;
  border-color: #fff;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
}
.footer-dev a {
  display: inline;
  margin: 0;
  color: var(--accent);
}
.footer-dev a:hover { color: #fff; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.sort-select {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  font: inherit;
  background: #fff;
}

@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-nav { gap: 0.55rem; font-size: 0.85rem; }
}

@media (min-width: 861px) {
  .mobile-nav,
  .nav-backdrop {
    display: none !important;
  }
}

@media (max-width: 860px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "logo toggle"
      "search search";
  }
  .logo { grid-area: logo; }
  .nav-toggle { display: inline-flex; grid-area: toggle; }
  .header-search { grid-area: search; }
  .header-nav { display: none; }

  .layout-2,
  .dash,
  .product-detail {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 1rem;
  }
  .cat-nav { display: none; }
  .cat-mobile-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--ink-soft);
  }
  .cat-mobile-select {
    display: block;
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    font: inherit;
    background: #fff;
    margin-bottom: 0;
  }
  .sidebar h3 { display: none; }

  .dash-nav {
    position: static;
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.65rem;
    border-radius: var(--radius);
  }
  .dash-nav .brand { display: none; }
  .dash-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0.55rem 0.85rem;
  }

  .cat-grid,
  .product-grid,
  .seller-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero {
    min-height: auto;
    align-items: center;
  }
  .hero .container {
    width: min(100% - 1.25rem, var(--max));
  }
  .hero-content {
    padding: 3rem 0 2.5rem;
    max-width: none;
  }
  .hero-brand { font-size: clamp(2.6rem, 14vw, 3.6rem); }
  .hero h1 { max-width: none; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; text-align: center; }
  .section { padding: 2.25rem 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .price-xl { font-size: 1.55rem; }
  .dash-panel,
  .auth-wrap { padding: 1.15rem; }
  .auth-wrap { margin: 1.5rem auto 3rem; }
  table.data { min-width: 640px; }
  .dash-panel { overflow-x: auto; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 1.25rem, var(--max)); }
  .cat-grid,
  .product-grid,
  .seller-grid,
  .steps,
  .stats-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .logo-text { font-size: 1.05rem; }
  .logo-mark { font-size: 1.05rem; }
  .header-search button { padding-inline: 0.95rem; }
  .hero-content { padding: 2.75rem 0 2.25rem; }
  .hero p { max-width: none; }
  .cat-tile { min-height: 160px; }
  .cat-tile-body { min-height: 160px; }
  .subcat-chips { gap: 0.4rem; }
  .chip { font-size: 0.8rem; padding: 0.4rem 0.7rem; }
  .footer-bottom { flex-direction: column; }
  .btn-outline[style] { margin-left: 0 !important; margin-top: 0.5rem; }
}
