:root {
  --bg: #f4f6f5;
  --surface: #ffffff;
  --surface-soft: #f7f9f8;
  --surface-accent: #f0f6f3;
  --text: #17211d;
  --text-soft: #5f6d66;
  --text-muted: #87928c;
  --line: #dee5e1;
  --line-strong: #cfd9d3;
  --brand: #3c8368;
  --brand-strong: #326f59;
  --brand-soft: #edf6f2;
  --brand-soft-2: #f6faf8;
  --brand-line: #cfe2d8;
  --brand-muted: #78a994;
  --danger: #ad4536;
  --danger-soft: #fff0ed;
  --warning: #9a6f1c;
  --warning-soft: #fff5df;
  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 14px;
  --sidebar-w: 244px;
  --topbar-h: 68px;
  --content-pad: clamp(20px, 2.6vw, 38px);
  --shadow-card: none;
  --shadow-modal: none;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: auto;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.52;
  letter-spacing: -0.006em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button, a, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}

button, a {
  touch-action: manipulation;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

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

img, svg {
  display: block;
}

[hidden] {
  display: none !important;
}

button:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid rgb(60 131 104 / 22%);
  outline-offset: 3px;
}

input, select, textarea {
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: #76aa94;
  box-shadow: none;
  outline: 2px solid #e2efe9;
  outline-offset: 1px;
}

svg.lucide {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
  flex: 0 0 auto;
}

h1, h2, h3, p {
  margin: 0;
}

h1, h2, h3 {
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI", sans-serif;
}

h1 {
  font-size: clamp(28px, 2.8vw, 36px);
  line-height: 1.12;
  font-weight: 680;
  letter-spacing: -.035em;
}

h2 {
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -.024em;
}

h3 {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: -.016em;
}

.muted {
  color: var(--text-soft);
}

.small {
  font-size: 12.5px;
}

.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

/* Interaction motion: short, targeted, and blur-free. */
.nav-item, .icon-button, .btn, .text-button, .platform-tab, .filter-button, .product-card, .favorite-button, .add-button, .global-search, .field input, .field select, .field textarea, .switch-control > span, .switch-control > span::after {
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease, opacity 140ms ease;
}

/* App shell */
.sidebar {
  transition: transform 180ms ease;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 24px 18px 18px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}

.sidebar::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.brand {
  display: flex;
  align-items: center;
  max-width: 100%;
  margin-bottom: 30px;
}

.brand-wordmark {
  width: min(176px, 100%);
  height: auto;
  object-fit: contain;
}

.nav-label {
  margin: 0 10px 10px;
  color: #99a49e;
  font-size: 9.5px;
  font-weight: 720;
  letter-spacing: .14em;
}

.nav-item {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 4px;
  padding: 10px 12px;
  border-radius: 9px;
  color: #6f7d75;
  font-size: 13.25px;
  font-weight: 540;
}

.nav-item:hover {
  background: #f3f7f5;
  color: #416658;
}

.nav-item.active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 650;
}

.nav-item .count {
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 999px;
  background: #dfeee7;
  font-size: 10px;
}

.nav-divider {
  height: 1px;
  margin: 18px 9px;
  background: #edf1ef;
}

.side-spacer {
  flex: 1 1 auto;
  min-height: 24px;
}


.side-footer {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 16px 6px 0;
  border-top: 1px solid #edf1ef;
  color: var(--text-muted);
  font-size: 11px;
}

.side-footer svg {
  width: 15px;
  color: var(--brand);
}

.shell {
  min-height: 100vh;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--topbar-h);
  min-height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 var(--content-pad);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.breadcrumbs {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
}

.breadcrumbs span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  color: #34463c;
  font-weight: 560;
}

.breadcrumbs svg {
  width: 13px;
}

.top-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.global-search {
  width: clamp(240px, 28vw, 360px);
  min-width: 0;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8faf9;
  color: #8b9790;
}

.global-search:focus-within {
  border-color: #b9d7ca;
  background: #fff;
  box-shadow: none;
}

.global-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #2b3b32;
  font-size: 12px;
}

.global-search input::placeholder {
  color: #9aa59f;
  opacity: 1;
}

.icon-button {
  position: relative;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  color: #53645a;
}

.icon-button:hover {
  background: #f2f6f4;
  color: var(--text);
}

.cart-count {
  position: absolute;
  top: 1px;
  right: 0;
  min-width: 15px;
  padding: 1px 4px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 9px;
  line-height: 1.25;
  text-align: center;
}

.top-separator {
  height: 24px;
  border-left: 1px solid var(--line);
}

.mobile-toggle {
  display: none;
}

.avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
}

.profile-button {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 560;
}

.mobile-overlay {
  display: none;
}

/* Buttons */
.btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: #35775f;
}

.btn-secondary {
  border: 1px solid var(--line-strong);
  background: #fff;
}

.btn-secondary:hover {
  border-color: #d2e0d9;
  background: #f7faf8;
}

.btn-soft {
  background: var(--brand-soft);
  color: var(--brand);
}

.btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.btn svg {
  width: 15px;
  height: 15px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 0;
  color: var(--brand);
  font-size: 12px;
  font-weight: 650;
}

/* Content */
.main {
  width: 100%;
  max-width: 1440px;
  flex: 1 0 auto;
  margin: 0 auto;
  padding: 30px var(--content-pad) 14px;
}

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

.intro > div:first-child {
  min-width: 0;
}

.intro h1 {
  font-size: clamp(28px, 2.45vw, 35px);
  font-weight: 690;
}

.intro p, .page-heading p {
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 12.5px;
  line-height: 1.6;
}

.date-label {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  color: var(--text-muted);
  font-size: 11px;
}

.date-label svg {
  width: 14px;
}

.page-heading {
  margin-bottom: 24px;
}

.hero {
  display: block;
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.hero-copy {
  min-width: 0;
  padding: clamp(26px, 2.8vw, 36px);
}

.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
}

.hero .eyebrow svg {
  width: 14px;
  height: 14px;
}

.hero h2 {
  margin: 9px 0 8px;
  font-size: clamp(28px, 2.8vw, 38px);
  font-weight: 680;
  line-height: 1.15;
  letter-spacing: -.038em;
}

.hero h2 em {
  color: var(--brand);
  font-style: normal;
}

.hero p {
  max-width: 560px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.65;
}

.hero .text-button {
  margin-top: 9px;
}

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

.section-heading h2 {
  font-size: 18px;
  font-weight: 660;
}

.section-heading p {
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 11px;
}

.platform-tabs, .admin-tabs {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.platform-tabs::-webkit-scrollbar, .admin-tabs::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.platform-tabs {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  margin: 0 calc(var(--content-pad) * -1) 15px;
  padding: 2px var(--content-pad) 4px;
  overscroll-behavior-inline: contain;
}

.platform-tab {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: #34483e;
  font-size: 11.5px;
  font-weight: 590;
  white-space: nowrap;
}

.platform-tab:hover {
  border-color: var(--brand-line);
  background: var(--brand-soft-2);
  color: var(--brand-strong);
}

.platform-tab:focus-visible {
  outline: 2px solid rgb(60 131 104 / 18%);
  outline-offset: 2px;
}

.platform-tab.active {
  border-color: var(--brand-line);
  background: var(--brand-soft);
  color: var(--brand-strong);
  box-shadow: inset 0 0 0 1px rgb(60 131 104 / 4%);
}

.platform-tab .brand-icon.small-icon {
  width: 22px;
  height: 22px;
  padding: 2px;
  border: 1px solid #edf1ef;
  border-radius: 6px;
  background: #fff;
}

.platform-tab .brand-icon.small-icon img {
  width: 16px;
  height: 16px;
}

.platform-tab:hover .brand-icon.small-icon,
.platform-tab.active .brand-icon.small-icon {
  border-color: #e2ebe6;
  background: #fff;
}

.platform-tab .platform-count {
  min-width: 20px;
  padding: 2px 5px;
  border-radius: 999px;
  background: #f0f4f2;
  color: #718078;
  font-size: 9.5px;
  font-weight: 650;
  text-align: center;
}

.platform-tab.active .platform-count {
  background: #e1efe8;
  color: var(--brand-strong);
}

.platform-tab > svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.catalog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.catalog-bar h3 {
  min-width: 0;
  font-size: 14px;
  font-weight: 650;
}

.catalog-bar h3 span {
  margin-left: 7px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 450;
  white-space: nowrap;
}

.catalog-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.catalog-controls select, .filter-button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #5e6e65;
  font-size: 11px;
}

.catalog-controls select {
  max-width: 180px;
  padding: 7px 30px 7px 10px;
}

.filter-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
}

.filter-button svg {
  width: 13px;
  height: 13px;
}

.filter-button.has-active-filter {
  border-color: var(--brand-line);
  color: var(--brand-strong);
  background: var(--brand-soft-2);
}

.filter-count {
  min-width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  padding: 0 4px;
  border-radius: 999px;
  background: #4b8d72;
  color: #fff;
  font-size: 8px;
  font-weight: 750;
  line-height: 1;
}

/* Catalog cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.product-card:hover {
  border-color: #bdd3c8;
  transform: translateY(-1px);
}

.product-visual {
  position: relative;
  height: 122px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #f0f4f1;
}

.product-visual.google {
  background: #f0f4f7;
}

.product-visual.instagram {
  background: #f9eef4;
}

.product-visual.facebook {
  background: #edf3fb;
}

.product-visual.tiktok, .product-visual.x {
  background: #f0f2f3;
}

.product-visual.whatsapp {
  background: #eaf5ed;
}

.product-visual:focus-visible {
  outline: 3px solid rgb(60 131 104 / 22%);
  outline-offset: -3px;
}

.product-visual .brand-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid #e5ebe7;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 1;
}

.brand-icon img {
  width: 34px;
  height: 34px;
  display: block;
  object-fit: contain;
}

.brand-icon.small-icon {
  width: 18px;
  height: 18px;
}

.brand-icon.small-icon img {
  width: 17px;
  height: 17px;
}

.product-visual .brand-icon img {
  width: 34px;
  height: 34px;
}

.product-visual .brand-icon.facebook img {
  width: 29px;
  height: 34px;
}

.product-visual .brand-icon.x img {
  width: 32px;
  height: 32px;
}

.brand-icon > svg {
  width: 18px;
  height: 18px;
}

.favorite-button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #e1e8e4;
  border-radius: 50%;
  background: #fff;
  color: #89968e;
}

.favorite-button svg {
  width: 13px;
  height: 13px;
}

.favorite-button.saved {
  background: #fff;
  color: #d15a73;
}

.favorite-button.saved svg {
  fill: rgb(209 90 115 / 16%);
}

.visual-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  max-width: calc(100% - 54px);
  overflow: hidden;
  padding: 3px 6px;
  border-radius: 5px;
  background: rgb(255 255 255 / 78%);
  color: #6d7d74;
  font-size: 9px;
  font-weight: 560;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-info {
  min-width: 0;
  padding: 14px;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  margin-bottom: 5px;
  color: var(--text-muted);
  font-size: 10px;
  white-space: nowrap;
}

.product-meta svg {
  width: 10px;
  height: 10px;
}

.product-title {
  width: 100%;
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 7px;
  padding: 0;
  color: var(--text);
  font-size: 13.25px;
  font-weight: 670;
  line-height: 1.4;
  text-align: left;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-spec {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 9px;
  color: #75847b;
  font-size: 10px;
}

.product-spec span {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
}

.product-spec svg {
  width: 10px;
  height: 10px;
}

.product-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #edf1ef;
}

.product-footer > div:first-child {
  min-width: 0;
}

.price-label {
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1.35;
}

.price {
  margin-top: 1px;
  color: #39785f;
  font-size: 16px;
  font-weight: 730;
  letter-spacing: -.03em;
}

.stock {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 9px;
}

.add-button {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
}

.add-button:hover {
  background: #e3f0ea;
}

.add-button svg {
  width: 15px;
  height: 15px;
}

.result-count {
  margin-top: 24px;
  color: #95a19a;
  font-size: 10px;
  text-align: center;
}

/* Surfaces, forms, status */
.surface {
  margin-bottom: 18px;
  padding: clamp(18px, 2.3vw, 26px);
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.empty {
  padding: clamp(42px, 7vw, 66px) 22px;
  border: 1px dashed #d7e1db;
  border-radius: 13px;
  background: #fff;
  text-align: center;
}

.empty > .lucide {
  width: 38px;
  height: 38px;
  margin: 0 auto 14px;
  color: #8db2a1;
}

.empty h3 {
  font-size: 17px;
}

.empty p {
  max-width: 440px;
  margin: 8px auto 18px;
  color: var(--text-soft);
  font-size: 12px;
}

.auth-required {
  max-width: 650px;
  margin: 34px auto;
}

.row {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: #47836a;
  font-size: 10px;
  font-weight: 560;
}

.tag.pending, .tag.review {
  background: var(--warning-soft);
  color: var(--warning);
}

.tag.cancelled, .tag.rejected {
  background: #f9eae8;
  color: #a95750;
}

.order-card {
  margin-bottom: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.order-card h3 {
  margin: 13px 0 5px;
}

.order-card .order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.order-card .order-summary {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid #edf1ef;
}

.order-number {
  color: #65766c;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid .full, .field.full {
  grid-column: 1 / -1;
}

.field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field > span, .field > label {
  color: #55665c;
  font-size: 11px;
  font-weight: 650;
}

.field input, .field select, .field textarea {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: #293930;
  font-size: 13px;
}

.field textarea {
  min-height: 106px;
  resize: vertical;
}

.checkline {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #6e7e74;
  font-size: 11px;
  line-height: 1.6;
}

.checkline input {
  flex: 0 0 auto;
  margin: 3px 0 0;
  accent-color: var(--brand);
}

.form-note, .fineprint {
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.7;
}

.fineprint {
  margin-top: 13px;
}

.form-error {
  margin: 9px 0;
  padding: 9px 11px;
  border-radius: 7px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 11px;
}

.form-error:empty {
  display: none;
}

.divider {
  height: 1px;
  margin: 18px 0;
  background: #e9eeeb;
}

.panel-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .95fr);
  gap: 20px;
}

.info-list {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

.info-list div {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #708076;
}

.info-list svg {
  width: 17px;
  color: #4d8d72;
}

.info-list strong {
  display: block;
  color: #344b3b;
  font-size: 12px;
}

.info-list p {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.6;
}

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

.guide-number {
  margin-bottom: 16px;
  color: #d2e5dc;
  font-size: 34px;
  line-height: 1;
}

.guide-grid p {
  margin-top: 9px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.75;
}

.admin-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin: 20px 0;
  padding-bottom: 3px;
}

.admin-tabs button {
  min-height: 36px;
  flex: 0 0 auto;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 11px;
  white-space: nowrap;
}

.admin-tabs button.active {
  border-color: var(--brand-line);
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.stat p {
  color: var(--text-muted);
  font-size: 11px;
}

.stat h2 {
  margin-top: 6px;
  font-size: 23px;
}

.table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

th {
  background: #fafcfb;
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 650;
  text-align: left;
  white-space: nowrap;
}

td, th {
  padding: 13px 14px;
  border-bottom: 1px solid #edf1ef;
  vertical-align: middle;
}

td {
  min-width: 90px;
}

td strong {
  font-size: 11px;
}

td .btn {
  min-height: 32px;
  padding: 6px 9px;
  font-size: 10px;
}

.inline-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.account-box {
  max-width: 650px;
}

.legal {
  max-width: 880px;
}

.legal h3 {
  margin: 20px 0 7px;
}

.legal p {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.85;
}

.link {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.danger-zone {
  margin-top: 22px;
}

.danger-zone button {
  color: var(--danger);
}

/* Dialog, cart, help */
dialog {
  width: 500px;
  max-width: calc(100vw - 24px);
  max-height: min(90dvh, 760px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  box-shadow: none;
}

dialog::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

dialog::backdrop {
  background: rgb(25 31 28 / 30%);
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid #e9efeb;
  background: rgb(255 255 255 / 98%);
}

.modal-head h2 {
  min-width: 0;
  overflow: hidden;
  font-size: 16.5px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-head .icon-button {
  width: 34px;
  height: 34px;
}

.modal-body {
  min-width: 0;
  padding: 16px;
}

.modal-body > p {
  margin-bottom: 13px;
  color: var(--text-soft);
  font-size: 11.5px;
  line-height: 1.65;
}

.modal-body .btn.full {
  width: 100%;
}

.modal-body .form-grid {
  gap: 12px;
}

.auth-switch {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 11px;
  text-align: center;
}

.auth-switch button {
  color: var(--brand);
  font-weight: 650;
}

.modal-brand {
  display: flex;
  justify-content: center;
  margin: 0 0 18px;
}

.modal-brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.product-detail-modal {
  width: 470px;
}

.product-detail-modal .modal-body {
  padding: 15px 16px 16px;
}

.product-detail-visual {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 11px;
  border-radius: 9px;
  background: #f0f6f2;
}

.product-detail-visual .brand-icon {
  width: 50px;
  height: 50px;
}

.product-detail-visual .brand-icon img {
  width: 42px;
  height: 42px;
}

.product-detail-visual .brand-icon.facebook img {
  width: 35px;
  height: 42px;
}

.product-detail-visual .brand-icon > svg {
  width: 42px;
  height: 42px;
}

.product-detail-modal .product-description {
  margin-bottom: 12px;
  color: var(--text-soft);
  font-size: 11.5px;
  line-height: 1.62;
}

.detail-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
  padding: 11px 12px;
  border-radius: 9px;
  background: #f6f9f7;
}

.detail-specs > div {
  min-width: 0;
}

.detail-specs span {
  display: block;
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1.35;
}

.detail-specs strong {
  display: block;
  margin-top: 2px;
  overflow-wrap: anywhere;
  font-size: 11px;
  font-weight: 620;
  line-height: 1.4;
}

.detail-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 13px;
}

.detail-price {
  color: #397b62;
  font-size: 21px;
  font-weight: 760;
  letter-spacing: -.035em;
}

.detail-stock {
  flex: 0 0 auto;
  color: var(--text-soft);
  font-size: 10px;
}

.product-detail-modal .btn.full {
  min-height: 40px;
}

.product-detail-modal .fineprint {
  margin-top: 11px;
  font-size: 9.5px;
  line-height: 1.58;
}

.filter-modal {
  width: 420px;
}

.filter-modal .modal-body {
  padding: 14px 16px 16px;
}

.filter-modal-form {
  display: grid;
  gap: 14px;
}

.filter-modal-intro {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid #e4ece7;
  border-radius: 10px;
  background: #f7faf8;
}

.filter-modal-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #dce8e1;
  border-radius: 8px;
  background: #fff;
  color: #47866c;
}

.filter-modal-icon svg {
  width: 14px;
  height: 14px;
}

.filter-modal-intro strong {
  display: block;
  margin: 1px 0 2px;
  font-size: 11.5px;
  font-weight: 680;
}

.filter-modal-intro p {
  margin: 0;
  color: var(--text-soft);
  font-size: 9.5px;
  line-height: 1.5;
}

.filter-modal-fields {
  display: grid;
  gap: 11px;
}

.filter-modal-fields .field {
  gap: 5px;
}

.filter-modal-fields .field > span {
  font-size: 10px;
  font-weight: 620;
}

.filter-modal-fields .field select, .filter-modal-fields .field input {
  min-height: 40px;
  border-radius: 9px;
  font-size: 11.5px;
}

.price-input-wrap {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: center;
  min-height: 40px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
}

.price-input-wrap:focus-within {
  border-color: #b8d8ca;
  box-shadow: none;
  outline: 2px solid #e4f0ea;
  outline-offset: 1px;
}

.price-input-wrap > span {
  padding: 0 0 0 11px;
  color: #718078;
  font-size: 10.5px;
  font-weight: 650;
}

.price-input-wrap input {
  min-width: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.filter-stock-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.filter-stock-copy {
  min-width: 0;
}

.filter-stock-copy strong {
  display: block;
  font-size: 10.5px;
  font-weight: 650;
}

.filter-stock-copy small {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1.4;
}

.switch-control {
  position: relative;
  width: 34px;
  height: 20px;
  flex: 0 0 auto;
}

.switch-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-control > span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #dce5df;
}

.switch-control > span::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border: 1px solid #cfd9d3;
  border-radius: 50%;
  background: #fff;
  box-shadow: none;
}

.switch-control input:checked + span {
  background: #4b8d72;
}

.switch-control input:checked + span::after {
  transform: translateX(14px);
}

.switch-control input:focus-visible + span {
  outline: 2px solid #add1c1;
  outline-offset: 2px;
}

.filter-modal-actions {
  display: grid;
  grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr);
  gap: 8px;
  padding-top: 2px;
}

.filter-modal-actions .btn {
  min-height: 39px;
  justify-content: center;
  font-size: 10.5px;
}

.filter-modal-actions .btn svg {
  width: 13px;
  height: 13px;
}

.filter-modal-actions .btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.cart-item {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #edf1ee;
}

.cart-item > .brand-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: #f3f7f4;
}

.cart-item > .brand-icon img {
  width: 27px;
  height: 27px;
}

.cart-item > .brand-icon.facebook img {
  width: 23px;
  height: 29px;
}

.cart-item-main {
  min-width: 0;
  flex: 1;
}

.cart-item h3 {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-item p {
  margin-top: 2px;
  color: var(--brand);
  font-size: 11px;
}

.quantity {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.quantity button {
  min-width: 30px;
  min-height: 30px;
  padding: 4px 7px;
}

.quantity span {
  min-width: 28px;
  padding: 0 5px;
  font-size: 11px;
  text-align: center;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0;
}

.cart-total strong {
  color: var(--brand);
  font-size: 19px;
}

.cart-notice {
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 8px;
  background: #f2f7f3;
  color: #6e8074;
  font-size: 11px;
}

.payment-box {
  margin: 15px 0;
  padding: 15px;
  border: 1px solid #dfeae3;
  border-radius: 9px;
  background: #f2f8f4;
}

.payment-box h3 {
  font-size: 14px;
}

.payment-box strong {
  display: block;
  margin: 7px 0;
  overflow-wrap: anywhere;
  font: 700 21px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .03em;
}

.payment-box p {
  color: #708176;
  font-size: 11px;
}

.payment-amount {
  margin-bottom: 13px;
  color: var(--brand);
  font-size: 24px;
  font-weight: 730;
}

.delivery-text {
  overflow-wrap: anywhere;
  padding: 15px;
  border: 1px solid #dfe8e2;
  border-radius: 9px;
  background: #f4f8f5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  white-space: pre-wrap;
}

.help-faq details {
  padding: 15px 0;
  border-bottom: 1px solid #e6ede8;
}

.help-faq summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
}

.help-faq details p {
  margin-top: 11px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.8;
}

.ticket {
  margin-top: 11px;
  padding: 16px;
  border: 1px solid #e3ebe6;
  border-radius: 9px;
  background: #f8faf9;
}

.ticket p {
  margin-top: 7px;
  color: var(--text-soft);
  font-size: 12px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.ticket .reply {
  margin-top: 13px;
  padding: 11px;
  border-radius: 7px;
  background: #e9f4ed;
  color: #557a68;
}

/* Reusable spacing and admin layout utilities */
.form-submit {
  margin-top: 18px;
}

.form-intro {
  margin: 8px 0 20px;
}

.empty-note {
  margin-top: 14px;
}

.form-section {
  margin-top: 20px;
}

.admin-section-head {
  margin-bottom: 17px;
}

.admin-meta {
  margin-top: 7px;
}

.admin-message {
  margin: 15px 0;
  white-space: pre-wrap;
}

/* Feedback and footer */
#toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  pointer-events: none;
}

.toast {
  max-width: min(360px, calc(100vw - 32px));
  margin-top: 8px;
  padding: 11px 14px;
  border: 1px solid var(--brand-line);
  border-radius: 9px;
  background: #f3f8f5;
  color: var(--text);
  box-shadow: none;
  font-size: 12px;
}

.toast.error {
  background: #a34435;
}

.initial-loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--brand);
  text-align: center;
}

.initial-loading > div {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.initial-loading img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.initial-loading h1 {
  font-size: 20px;
}

.initial-loading p {
  max-width: 420px;
  color: var(--text-soft);
  font-size: 12px;
}

.noscript-notice {
  margin: 0;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff8e7;
  color: #665424;
  font-size: 12px;
  text-align: center;
}

.loading-box {
  padding: 52px 18px;
  color: var(--text-muted);
  text-align: center;
}

.skeleton {
  min-height: 190px;
  border-radius: 10px;
  background: #e7eeea;
}

.footer {
  width: 100%;
  max-width: 1440px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto;
  padding: 20px var(--content-pad) 22px;
  color: var(--text-muted);
  font-size: 9.5px;
}

.footer div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer button {
  padding: 0;
  color: var(--text-soft);
  font-size: 10px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.footer-brand img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 5px;
}


/* Production marketplace + admin control center */
.store-status-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  padding: 13px 15px;
  border: 1px solid var(--brand-line);
  border-radius: 10px;
  background: var(--brand-soft-2);
  color: var(--text-soft);
}

.store-status-banner > svg {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--brand-strong);
}

.store-status-banner div {
  display: grid;
  gap: 2px;
}

.store-status-banner strong {
  color: var(--text);
  font-size: 12px;
}

.store-status-banner span {
  font-size: 11px;
}

.stock.low-stock,
.warning-text {
  color: var(--warning);
}

.admin-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.admin-route-chip {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
}

.admin-content {
  display: grid;
  gap: 16px;
}

.admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-control-card {
  min-height: 100%;
}

.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-section-head > div:first-child {
  min-width: 0;
}

.admin-section-head p {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.55;
}

.admin-status-list {
  display: grid;
  gap: 0;
  margin-top: 2px;
  border-top: 1px solid var(--line);
}

.admin-status-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  border-bottom: 1px solid #edf1ef;
  font-size: 11px;
}

.admin-status-list > div:last-child {
  border-bottom: 0;
}

.admin-status-list > div > span {
  color: var(--text-soft);
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 650;
}

.status-dot::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--text-muted);
}

.status-dot.on {
  color: var(--brand-strong);
}

.status-dot.on::before {
  background: var(--brand);
}

.status-dot.off {
  color: var(--danger);
}

.status-dot.off::before {
  background: var(--danger);
}

.admin-mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  padding: 9px 0;
  border-top: 1px solid #edf1ef;
}

.admin-mini-row:first-of-type {
  margin-top: 4px;
}

.admin-mini-row > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.admin-mini-row > div:last-child {
  justify-items: end;
}

.admin-mini-row strong {
  font-size: 11px;
}

.admin-mini-row span {
  color: var(--text-muted);
  font-size: 9.5px;
}

.admin-mini-row code,
td code {
  max-width: 220px;
  overflow: hidden;
  color: var(--text-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-sub {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 9.5px;
  line-height: 1.35;
}

.admin-settings-surface {
  width: 100%;
}

.settings-section {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.settings-section:first-of-type {
  border-top: 0;
  padding-top: 4px;
}

.settings-section h3 {
  margin-bottom: 12px;
}

.toggle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.settings-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 84px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
  cursor: pointer;
}

.settings-toggle input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--brand);
}

.settings-toggle span {
  display: grid;
  gap: 4px;
}

.settings-toggle strong {
  font-size: 11px;
}

.settings-toggle small {
  color: var(--text-muted);
  font-size: 9.5px;
  line-height: 1.45;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 8px;
}

.choice-check {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.choice-check input {
  width: 15px;
  height: 15px;
  accent-color: var(--brand);
}

.choice-check > span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 600;
}

.admin-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
}

.admin-callout svg {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--text-muted);
}

.admin-callout div {
  display: grid;
  gap: 4px;
}

.admin-callout strong {
  font-size: 11px;
}

.admin-callout p {
  color: var(--text-muted);
  font-size: 10px;
}

.admin-tabs {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

@media (max-width: 980px) {
  .admin-overview-grid,
  .toggle-grid {
    grid-template-columns: 1fr;
  }

  .settings-toggle {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .admin-page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-route-chip {
    display: none;
  }

  .admin-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-section-head .btn,
  .admin-section-head > .tag {
    align-self: flex-start;
  }

  .admin-mini-row {
    align-items: flex-start;
  }

  .choice-grid {
    grid-template-columns: 1fr 1fr;
  }

  .store-status-banner {
    padding: 11px 12px;
  }
}

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

@media (min-width: 1500px) {
  .product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .product-visual {
    height: 124px;
  }
}

@media (max-width: 1240px) {
  :root {
    --sidebar-w: 214px;
    --content-pad: 26px;
  }
  .sidebar {
    padding-inline: 15px;
  }
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .date-label {
    display: none;
  }
}

@media (max-width: 980px) {
  :root {
    --content-pad: 20px;
  }
  .breadcrumbs {
    display: none;
  }
  .top-actions {
    width: 100%;
  }
  .global-search {
    width: min(300px, 45vw);
    margin-right: auto;
  }
  .panel-columns, .guide-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  :root {
    --content-pad: 16px;
    --topbar-h: 64px;
  }
  body.menu-open {
    overflow: hidden;
  }
  .sidebar {
    width: min(286px, 84vw);
    transform: translateX(-102%);
    box-shadow: none;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .mobile-overlay.open {
    position: fixed;
    inset: 0;
    z-index: 29;
    display: block;
    background: rgb(25 31 28 / 24%);
  }
  .shell {
    margin-left: 0;
  }
  .topbar {
    gap: 7px;
    padding-inline: var(--content-pad);
  }
  .mobile-toggle {
    display: inline-grid;
  }
  .top-actions {
    gap: 6px;
  }
  .global-search {
    width: auto;
    min-width: 0;
    flex: 1 1 180px;
    margin-right: 0;
  }
  .top-separator {
    display: none;
  }
  .main {
    padding-top: 22px;
  }
  .intro {
    margin-bottom: 16px;
  }
  .intro h1 {
    font-size: 26px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .product-visual {
    height: 108px;
  }
  .platform-tabs {
    margin-inline: calc(var(--content-pad) * -1);
  }
  .footer {
    flex-wrap: wrap;
  }
  .profile-button > span:not(.avatar) {
    display: none;
  }
}

@media (max-width: 560px) {
  :root {
    --content-pad: 12px;
    --topbar-h: 60px;
  }
  body {
    font-size: 13px;
  }
  .topbar {
    gap: 4px;
    padding-inline: 8px;
  }
  .icon-button {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }
  .mobile-toggle {
    width: 34px;
  }
  .global-search {
    min-height: 36px;
    padding: 6px 8px;
    border-color: #e6ebe8;
    border-radius: 8px;
    background: #f7f9f8;
  }
  .global-search svg {
    width: 15px;
    height: 15px;
  }
  .global-search input {
    font-size: 11px;
  }
  .top-actions > .btn {
    min-height: 34px;
    padding: 7px 9px;
    border-radius: 8px;
    font-size: 10.5px;
  }
  .top-actions > .btn svg {
    display: none;
  }
  .main {
    padding-top: 18px;
  }
  .intro {
    margin-bottom: 14px;
  }
  .intro h1 {
    font-size: 23px;
  }
  .intro p {
    max-width: 330px;
    font-size: 11px;
  }
  .hero {
    margin-bottom: 15px;
    border-radius: 12px;
  }
  .hero-copy {
    padding: 19px 18px;
  }
  .hero h2 {
    margin: 7px 0;
    font-size: 25px;
  }
  .hero p {
    font-size: 11px;
    line-height: 1.55;
  }
  .hero .text-button {
    margin-top: 5px;
    font-size: 11px;
  }
  .section-heading {
    margin-bottom: 10px;
  }
  .section-heading h2 {
    font-size: 15.5px;
  }
  .section-heading p {
    font-size: 10px;
  }
  .platform-tabs {
    gap: 6px;
    margin-bottom: 12px;
  }
  .platform-tab {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 10px;
  }
  .platform-tab .platform-count {
    display: none;
  }
  .brand-icon.small-icon {
    width: 16px;
    height: 16px;
  }
  .brand-icon.small-icon img {
    width: 15px;
    height: 15px;
  }
  .platform-tab .brand-icon.small-icon {
    width: 20px;
    height: 20px;
    padding: 2px;
  }
  .platform-tab .brand-icon.small-icon img {
    width: 14px;
    height: 14px;
  }
  .catalog-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
  }
  .catalog-bar h3 {
    width: 100%;
    font-size: 12px;
  }
  .catalog-bar h3 span {
    font-size: 9px;
  }
  .catalog-controls {
    width: 100%;
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    gap: 7px;
  }
  .catalog-controls select, .filter-button {
    min-height: 34px;
    font-size: 10px;
  }
  .catalog-controls select {
    width: 100%;
    min-width: 0;
    max-width: none;
    padding-right: 28px;
  }
  .filter-button {
    width: auto;
    min-width: 68px;
    justify-content: center;
    padding-inline: 9px;
    white-space: nowrap;
  }
  .product-grid {
    gap: 9px;
  }
  .product-card {
    border-radius: 10px;
  }
  .product-visual {
    height: 96px;
  }
  .product-visual .brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .product-visual .brand-icon img {
    width: 30px;
    height: 30px;
  }
  .product-visual .brand-icon.facebook img {
    width: 25px;
    height: 30px;
  }
  .product-visual .brand-icon.x img {
    width: 28px;
    height: 28px;
  }
  .favorite-button {
    top: 7px;
    right: 7px;
    width: 26px;
    height: 26px;
  }
  .visual-tag {
    top: 7px;
    left: 7px;
    max-width: calc(100% - 46px);
    font-size: 8px;
  }
  .product-info {
    padding: 10px;
  }
  .product-title {
    min-height: 31px;
    margin-bottom: 6px;
    font-size: 11px;
    line-height: 1.38;
  }
  .product-meta, .product-spec {
    font-size: 8.5px;
  }
  .product-spec {
    gap: 4px 7px;
  }
  .product-footer {
    margin-top: 8px;
    padding-top: 8px;
  }
  .price-label {
    display: none;
  }
  .price {
    font-size: 14px;
  }
  .stock {
    font-size: 8px;
  }
  .add-button {
    width: 29px;
    height: 29px;
  }
  .surface {
    padding: 15px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full, .field.full {
    grid-column: auto;
  }
  .field input, .field select, .field textarea {
    font-size: 16px;
  }
  .row {
    align-items: flex-start;
  }
  .stats {
    gap: 9px;
  }
  .stat {
    padding: 13px;
  }
  .stat h2 {
    font-size: 19px;
  }
  dialog {
    max-width: calc(100vw - 16px);
    max-height: 92dvh;
    border-radius: 12px;
  }
  .modal-head {
    padding: 11px 12px 9px;
  }
  .modal-head h2 {
    font-size: 15px;
  }
  .modal-body {
    padding: 13px;
  }
  .filter-modal .modal-body {
    padding: 11px 12px 12px;
  }
  .filter-modal-form {
    gap: 11px;
  }
  .filter-modal-intro {
    gap: 9px;
    padding: 9px 10px;
  }
  .filter-modal-icon {
    width: 28px;
    height: 28px;
  }
  .filter-modal-intro strong {
    font-size: 10.5px;
  }
  .filter-modal-intro p {
    font-size: 9px;
  }
  .filter-modal-fields {
    gap: 9px;
  }
  .filter-modal-fields .field select, .filter-modal-fields .field input, .price-input-wrap {
    min-height: 38px;
  }
  .filter-stock-option {
    padding: 10px;
  }
  .filter-modal-actions {
    grid-template-columns: .7fr 1.3fr;
    gap: 7px;
  }
  .filter-modal-actions .btn {
    min-height: 37px;
    padding-inline: 9px;
  }
  .product-detail-modal .modal-body {
    padding: 12px 13px 13px;
  }
  .product-detail-visual {
    height: 76px;
    margin-bottom: 9px;
  }
  .product-detail-visual .brand-icon {
    width: 44px;
    height: 44px;
  }
  .product-detail-visual .brand-icon img {
    width: 36px;
    height: 36px;
  }
  .product-detail-visual .brand-icon.facebook img {
    width: 30px;
    height: 36px;
  }
  .product-detail-modal .product-description {
    font-size: 10.5px;
    line-height: 1.55;
  }
  .detail-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin: 10px 0;
    padding: 10px;
  }
  .detail-specs span {
    font-size: 8.5px;
  }
  .detail-specs strong {
    font-size: 10px;
  }
  .detail-price {
    font-size: 19px;
  }
  .detail-stock {
    font-size: 9px;
  }
  .product-detail-modal .btn.full {
    min-height: 38px;
    font-size: 11px;
  }
  .product-detail-modal .fineprint {
    font-size: 9px;
  }
  .footer {
    padding-top: 18px;
    padding-bottom: 20px;
    font-size: 9px;
  }
  #toasts {
    right: 12px;
    bottom: 12px;
  }
}

@media (max-width: 390px) {
  :root {
    --content-pad: 10px;
  }
  .topbar {
    padding-inline: 6px;
  }
  .mobile-toggle {
    width: 32px;
    height: 32px;
  }
  .global-search {
    min-height: 34px;
  }
  .top-actions {
    gap: 4px;
  }
  .top-actions > .btn {
    min-height: 32px;
    padding-inline: 8px;
  }
  .intro h1 {
    font-size: 22px;
  }
  .hero-copy {
    padding: 17px 16px;
  }
  .hero h2 {
    font-size: 23px;
  }
  .product-grid {
    gap: 8px;
  }
  .product-visual {
    height: 90px;
  }
  .product-info {
    padding: 9px;
  }
  .product-title {
    font-size: 10.5px;
  }
  .product-meta, .product-spec {
    font-size: 8px;
  }
  .price {
    font-size: 13px;
  }
  .add-button {
    width: 28px;
    height: 28px;
  }
  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }
  .detail-price-row {
    gap: 8px;
  }
}

@media (max-width: 340px) {
  .global-search input::placeholder {
    color: transparent;
  }
  .catalog-controls {
    gap: 6px;
  }
  .catalog-controls select, .filter-button {
    min-height: 33px;
    font-size: 9.5px;
  }
  .filter-button {
    min-width: 64px;
    padding-inline: 8px;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .product-visual {
    height: 112px;
  }
  .product-info {
    padding: 11px;
  }
  .product-title {
    min-height: 0;
    font-size: 12px;
  }
  .product-meta, .product-spec {
    font-size: 9px;
  }
  .price {
    font-size: 14px;
  }
  .detail-specs {
    grid-template-columns: 1fr 1fr;
  }
}

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