:root {
  --bg: #f7f8fb;
  --card: #ffffff;
  --text: #12172a;
  --muted: #747b8f;
  --line: #e8ebf2;
  --line-strong: #dfe3ec;
  --soft: #f3f5f9;
  --purple: #7c3aed;
  --purple-2: #6d5dfc;
  --purple-soft: #f0e9ff;
  --green: #16a064;
  --red: #ef4d2f;
  --blue-soft: #eaf4ff;
  --orange-soft: #fff0df;
  --radius: 24px;
  --shadow: 0 10px 30px rgba(22, 28, 45, .05);
}

/* Landing */
.landing {
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7f8fb 56%, #eef7f2 100%);
}
.landing-header {
  width: min(calc(100% - 32px), 1160px);
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin: 0 auto;
  padding: 14px 0;
}
.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 21px;
  font-weight: 950;
}
.landing-brand span {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: #12172a;
}
.landing-brand span::after {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 4px;
  background: #2ed37e;
}
.landing-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
}
.landing-nav a {
  color: #515b72;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}
.landing-header-cta {
  white-space: nowrap;
}
.landing-hero {
  width: min(calc(100% - 32px), 1160px);
  min-height: calc(100vh - 136px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(330px, .8fr);
  align-items: center;
  gap: clamp(28px, 6vw, 78px);
  margin: 0 auto;
  padding: 34px 0 70px;
}
.landing-hero-copy {
  max-width: 690px;
}
.landing-kicker {
  width: fit-content;
  margin-bottom: 14px;
  padding: 8px 12px;
  border: 1px solid #dcefe5;
  border-radius: 999px;
  background: #f1fbf6;
  color: #127747;
  font-size: 13px;
  font-weight: 900;
}
.landing-hero h1 {
  max-width: 760px;
  margin-bottom: 18px;
  color: #101525;
  font-size: clamp(38px, 7vw, 76px);
  line-height: .96;
  letter-spacing: 0;
}
.landing-hero-copy > p:not(.landing-kicker) {
  max-width: 610px;
  margin-bottom: 26px;
  color: #505a70;
  font-size: clamp(17px, 2vw, 21px);
}
.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.landing-actions .primary-btn,
.landing-actions .secondary-btn,
.landing-final .primary-btn {
  min-height: 52px;
  border-radius: 16px;
  padding: 0 20px;
}
.landing-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.landing-proof span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: #3d465d;
  font-size: 13px;
  font-weight: 850;
}
.landing-phone {
  justify-self: center;
  width: min(100%, 410px);
  padding: 14px;
  border: 1px solid #dfe4eb;
  border-radius: 36px;
  background: #111827;
  box-shadow: 0 26px 70px rgba(18, 23, 42, .18);
}
.landing-phone-screen {
  min-height: 640px;
  overflow: hidden;
  border-radius: 26px;
  background: #fbfcfd;
}
.landing-shop-head {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  padding: 20px 18px 14px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.landing-shop-logo {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #2ed37e;
  color: #0d3421;
  font-weight: 950;
}
.landing-shop-head strong,
.landing-shop-head span {
  display: block;
}
.landing-shop-head strong {
  margin-bottom: 3px;
  color: #12172a;
  font-size: 17px;
}
.landing-shop-head span {
  color: #758095;
  font-size: 13px;
  font-weight: 700;
}
.landing-search-row {
  display: grid;
  grid-template-columns: 1fr 32px;
  align-items: center;
  gap: 10px;
  margin: 16px 16px 12px;
  padding: 12px 12px 12px 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: #9aa3b4;
  font-size: 13px;
  font-weight: 800;
}
.landing-search-row b {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: #2ed37e;
}
.landing-tabs {
  display: flex;
  gap: 8px;
  overflow: hidden;
  padding: 0 16px 12px;
}
.landing-tabs span {
  white-space: nowrap;
  padding: 9px 12px;
  border-radius: 999px;
  background: #eef1f6;
  color: #5e687c;
  font-size: 13px;
  font-weight: 850;
}
.landing-tabs .active {
  background: #12172a;
  color: #fff;
}
.landing-products {
  display: grid;
  gap: 12px;
  padding: 0 16px 18px;
}
.landing-products article {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 13px;
  align-items: center;
  min-height: 136px;
  padding: 10px;
  border: 1px solid #e8ebf2;
  border-radius: 20px;
  background: #fff;
}
.landing-product-img {
  height: 116px;
  border-radius: 16px;
}
.landing-product-img-a {
  background:
    radial-gradient(circle at 35% 38%, #fff 0 13%, transparent 14%),
    linear-gradient(135deg, #e6e1ff, #b8f4d4);
}
.landing-product-img-b {
  background:
    radial-gradient(circle at 52% 42%, #ffffff 0 18%, transparent 19%),
    linear-gradient(135deg, #e9f7ff, #bee9ff);
}
.landing-product-img-c {
  background:
    radial-gradient(circle at 46% 42%, #fff 0 14%, transparent 15%),
    linear-gradient(135deg, #fff2cf, #ffd8c2);
}
.landing-products h2 {
  margin-bottom: 10px;
  color: #12172a;
  font-size: 17px;
  line-height: 1.18;
}
.landing-products strong {
  color: #127747;
  font-size: 16px;
}
.landing-strip,
.landing-section,
.landing-final {
  width: min(calc(100% - 32px), 1160px);
  margin: 0 auto;
}
.landing-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  padding: 20px 0 56px;
  color: #12172a;
  font-size: clamp(20px, 3vw, 30px);
}
.landing-strip span {
  color: #566074;
}
.landing-section {
  padding: 54px 0;
}
.landing-section-head {
  max-width: 640px;
  margin-bottom: 26px;
}
.landing-section h2,
.landing-final h2 {
  margin-bottom: 14px;
  color: #12172a;
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.03;
}
.landing-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.landing-steps article {
  min-height: 250px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.landing-steps span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-bottom: 32px;
  border-radius: 12px;
  background: #12172a;
  color: #fff;
  font-weight: 950;
}
.landing-steps h3 {
  margin: 0 0 10px;
  color: #12172a;
  font-size: 20px;
}
.landing-steps p {
  margin-bottom: 0;
}
.landing-fit {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(300px, .8fr);
  gap: 34px;
  align-items: center;
}
.landing-fit > div:first-child p:not(.landing-kicker) {
  max-width: 560px;
  font-size: 18px;
}
.landing-fit-list {
  display: grid;
  gap: 10px;
}
.landing-fit-list span {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #27304a;
  font-weight: 850;
}
.landing-final {
  margin-bottom: 48px;
  padding: clamp(34px, 7vw, 68px);
  border-radius: 8px;
  background: #12172a;
  text-align: center;
}
.landing-final h2 {
  color: #fff;
}
.landing-final p {
  max-width: 520px;
  margin: 0 auto 24px;
  color: #c9d1df;
  font-size: 18px;
}

@media (max-width: 860px) {
  .landing-header {
    grid-template-columns: 1fr auto;
  }

  .landing-nav {
    display: none;
  }

  .landing-hero,
  .landing-fit,
  .landing-steps {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    min-height: auto;
    padding-top: 24px;
  }

  .landing-phone {
    width: min(100%, 380px);
  }

  .landing-phone-screen {
    min-height: 560px;
  }
}

@media (max-width: 560px) {
  .landing-header {
    width: min(calc(100% - 24px), 1160px);
  }

  .landing-header-cta {
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }

  .landing-hero,
  .landing-strip,
  .landing-section,
  .landing-final {
    width: min(calc(100% - 24px), 1160px);
  }

  .landing-hero h1 {
    font-size: 42px;
  }

  .landing-actions {
    display: grid;
  }

  .landing-products article {
    grid-template-columns: 96px 1fr;
  }

  .landing-product-img {
    height: 96px;
  }

  .landing-final {
    padding: 32px 18px;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; letter-spacing: 0; }
h1 { font-size: clamp(28px, 7vw, 40px); line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: 22px; line-height: 1.15; }
p { color: var(--muted); line-height: 1.5; }

input, textarea, select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  background: #fff;
  color: var(--text);
  outline: none;
  font-weight: 600;
}
textarea {
  min-height: 110px;
  padding-top: 12px;
  resize: vertical;
}
input:focus, textarea:focus, select:focus {
  border-color: rgba(124, 58, 237, .45);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, .08);
}
label {
  display: grid;
  gap: 8px;
  color: #27304a;
  font-size: 13px;
  font-weight: 800;
}

.primary-btn, .secondary-btn, .danger-btn, .ghost-btn, button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  padding: 0 16px;
  text-decoration: none;
  font-weight: 800;
}
.primary-btn {
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  color: #fff;
  box-shadow: 0 10px 22px rgba(124, 58, 237, .16);
}
.secondary-btn, .ghost-btn {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
}
.danger-btn { background: #fff2ef; color: #bf2c15; }

.flash {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 800;
}
.flash-success { background: #eaf8f1; color: #13794d; }
.flash-error { background: #fff0ee; color: #b42318; }

/* Auth */
.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}
.auth-card {
  width: min(100%, 420px);
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.auth-card h1 { margin-bottom: 8px; }
.auth-card p { margin-bottom: 20px; }
.auth-card a { color: var(--purple); font-weight: 800; }
.form-stack { display: grid; gap: 14px; }

/* Super admin */
.topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  width: min(calc(100% - 24px), 1080px);
  margin: 12px auto 0;
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
}
.brand { font-weight: 900; text-decoration: none; }
.topbar nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}
.topbar nav a {
  white-space: nowrap;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: #48516a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}
.link-btn { background: transparent; min-height: auto; padding: 0; }

/* App navigation */
.mobile-app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 64px;
  display: grid;
  grid-template-columns: 1fr 44px;
  align-items: center;
  gap: 12px;
  padding: 10px 15px;
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  backdrop-filter: blur(16px);
}
.mobile-brand {
  overflow: hidden;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 18px;
  font-weight: 900;
}
.mobile-preview, .menu-toggle {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  color: #fff;
}
.mobile-preview {
  display: grid;
  place-items: center;
  text-decoration: none;
  font-size: 26px;
  line-height: 1;
}
.menu-toggle {
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(18, 23, 42, .28);
  backdrop-filter: blur(6px);
}
.menu-overlay[hidden] { display: none; }
body.drawer-open { overflow: hidden; }
.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 70;
  width: min(84vw, 310px);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 14px;
  padding: 18px;
  background: #fff;
  border-right: 1px solid var(--line);
  transform: translateX(-104%);
  transition: transform .22s ease;
}
body.drawer-open .app-sidebar { transform: translateX(0); }
.drawer-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 12px;
  background: var(--soft);
  color: var(--purple);
  font-size: 24px;
}
.brand-mark {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding-right: 40px;
  color: var(--text);
  text-decoration: none;
}
.brand-mark span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #a78bfa, var(--purple));
}
.brand-mark span::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: #fff;
  transform: rotate(45deg);
}
.brand-mark strong { font-size: 28px; letter-spacing: -0.03em; }
.store-switcher, .sidebar-user {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  text-decoration: none;
}
.store-switcher img, .store-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
}
.store-avatar {
  display: grid;
  place-items: center;
  background: var(--purple-soft);
  color: var(--purple);
  font-weight: 900;
}
.store-switcher strong, .sidebar-user strong {
  display: block;
  font-size: 14px;
}
.store-switcher small, .sidebar-user small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}
.app-nav {
  display: grid;
  align-content: start;
  gap: 6px;
}
.app-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 14px;
  color: #303a58;
  text-decoration: none;
  font-weight: 800;
}
.app-nav a span {
  width: 22px;
  color: var(--purple);
  text-align: center;
}
.app-nav a.active {
  background: var(--purple-soft);
  color: var(--purple);
}
.sidebar-arrow {
  width: 30px;
  min-height: 30px;
  padding: 0;
  background: transparent;
  color: var(--text);
  font-size: 24px;
}
.logout-form {
  display: flex;
  justify-content: flex-end;
}
.logout-button {
  width: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 18px;
}

/* Layout */
.shell {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 88px 15px 32px;
}
.owner-shell { padding-top: 88px; }
.narrow-shell { width: min(100%, 760px); }
.page-heading, .dashboard-head {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}
.page-heading h1, .dashboard-head h1 { margin-bottom: 6px; }
.page-heading p, .dashboard-head p { margin-bottom: 0; }
.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--purple);
  font-size: 12px;
  font-weight: 900;
}

.hero-card, .form-section, .toolbar-card, .preview-card, .panel,
.dashboard-panel, .row-card, .lead-card, .product-admin-card, .stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  margin-bottom: 16px;
}
.pill-link {
  width: fit-content;
  padding: 10px 13px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 800;
}

/* Dashboard */
.dashboard-stats, .stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.stat {
  min-height: 110px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.stat::after {
  content: none;
}
.stat-purple::after { background: var(--purple-soft); }
.stat-green::after { background: #ddf7e9; }
.stat-blue::after { background: var(--blue-soft); }
.stat-orange::after { background: var(--orange-soft); }
.stat span {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}
.stat strong {
  display: block;
  margin-top: 10px;
  font-size: 30px;
  line-height: 1;
}
.stat small {
  display: block;
  margin-top: 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}
.dashboard-panel {
  margin-top: 18px;
  padding: 16px;
}
.panel-head, .title-row, .lead-top, .phone-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel-head h2 { margin: 0; }
.compact-btn {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 12px;
  font-size: 14px;
}
.dashboard-products {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.mini-product-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.mini-product-card img {
  width: 84px;
  height: 84px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--soft);
}
.mini-product-card strong, .mini-product-card span { display: block; }
.mini-product-card span { margin-top: 5px; font-weight: 800; }
.mini-product-card small, .status-dot, .badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
}
.mini-product-card small.active, .status-dot.on { background: #eaf8f1; color: var(--green); }
.mini-product-card small.out, .status-dot.off { background: #fff0e8; color: var(--red); }
.empty-state {
  padding: 18px;
  border: 1px dashed rgba(124, 58, 237, .25);
  border-radius: 18px;
  text-align: center;
}

/* Lists and products */
.toolbar-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  margin-bottom: 16px;
}
.chip-row, .contact-row, .category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}
.chip, .category-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: #4d5874;
  text-decoration: none;
  font-size: 12px;
  font-weight: 850;
}
.chip.active,
.category-tabs button.active,
.category-tabs a.active {
  background: var(--purple-soft);
  color: var(--purple);
}
.product-grid, .list, .orders-list {
  display: grid;
  gap: 12px;
}
.product-admin-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  padding: 10px;
}
.product-admin-card > img {
  width: 100px;
  height: 118px;
  border-radius: 16px;
  object-fit: cover;
  background: var(--soft);
}
.drag-handle { display: none; }
.product-admin-body {
  display: grid;
  gap: 8px;
  align-content: start;
}
.product-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.product-admin-card strong { font-size: 17px; }
.product-admin-card small { color: var(--purple); font-weight: 850; }
.product-admin-card p {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 13px;
}
.card-actions {
  grid-column: 1 / -1;
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  gap: 10px !important;
}
.toggle-btn {
  width: 52px;
  min-height: 30px;
  padding: 3px;
  border-radius: 999px;
  background: #e5e8f0;
  justify-content: flex-start;
}
.toggle-btn span {
  width: 24px;
  height: 24px;
  display: block;
  border-radius: 50%;
  background: #fff;
  transition: transform .18s ease;
}
.toggle-btn.active { background: var(--purple); }
.toggle-btn.active span { transform: translateX(22px); }
.fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  color: #fff;
  text-decoration: none;
  font-size: 30px;
}
.row-card, .lead-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}
.soft-row {
  grid-template-columns: 1fr auto;
  align-items: center;
}
.row-card span, .lead-card span, small { color: var(--muted); }
.timeline {
  display: none;
}

.lead-list {
  display: grid;
  gap: 14px;
}

.lead-card-rich {
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-color: #edf0f3;
  background: #fff;
}

.lead-card.lead-card-rich {
  grid-template-columns: 112px minmax(0, 1fr);
}

.lead-side {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.lead-preview {
  width: 92px;
  height: 92px;
  overflow: hidden;
  display: block;
  border-radius: 18px;
  background: #f6f7f8;
  text-decoration: none;
}

.lead-details-btn {
  width: 92px;
  min-height: 38px;
  gap: 6px;
  border-radius: 14px;
  border: 0;
  background: #e9fbf3;
  color: #16845f;
  font-size: 14px;
  font-weight: 950;
}

.lead-details-btn span {
  font-size: 16px;
  line-height: 1;
}

.lead-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.lead-preview-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  color: #20845f;
  font-weight: 950;
}

.lead-preview-placeholder span {
  color: #7a8190;
  font-size: 12px;
  font-weight: 900;
}

.lead-preview-placeholder strong {
  color: #16845f;
  font-size: 18px;
  font-weight: 950;
}

.lead-main {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 9px;
}

.lead-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.lead-top > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.lead-top strong,
.lead-product-link {
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 950;
}

.lead-top strong {
  font-size: 18px;
}

.lead-product-link {
  width: fit-content;
  max-width: 100%;
  font-size: 16px;
}

.lead-card-rich p {
  max-width: 680px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-items-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.lead-items-preview span,
.lead-items-preview small {
  min-height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #f7f8f9;
  color: #5f6675;
  font-size: 13px;
  font-weight: 850;
}

.lead-contact-line {
  width: fit-content;
  color: #6f7684;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.status-chip {
  min-height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eefbf5;
  color: #16845f;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.status-in_progress {
  background: #fff7df;
  color: #a16207;
}

.status-done {
  background: #edf5ff;
  color: #2563eb;
}

.status-archived {
  background: #f3f4f6;
  color: #667085;
}

.lead-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 16px;
  align-items: start;
}

.lead-detail-card,
.lead-product-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
}

.lead-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.lead-detail-head h2,
.lead-product-card h2 {
  margin: 4px 0 0;
  font-size: 28px;
  line-height: 1.1;
}

.lead-detail-head p,
.lead-product-empty p {
  margin: 4px 0 0;
  color: var(--muted);
}

.lead-detail-section {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.lead-detail-section > strong {
  font-size: 14px;
  font-weight: 950;
}

.lead-detail-section a {
  width: fit-content;
  color: #20845f;
  font-weight: 900;
}

.lead-detail-section p {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.55;
}

.lead-cart-items {
  display: grid;
  gap: 8px;
}

.lead-cart-items span {
  padding: 12px 14px;
  border-radius: 16px;
  background: #f7f8f9;
  color: var(--text);
  font-weight: 850;
}

.lead-detail-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.lead-detail-status label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 900;
}

.lead-product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  border-radius: 18px;
  object-fit: cover;
  background: var(--soft);
}

.lead-product-card strong {
  color: #20845f;
  font-size: 20px;
}

/* Generic owner forms */
.form-section, .preview-card, .panel {
  display: grid;
  gap: 14px;
  padding: 16px;
}
.grid-form, .form-grid, .quick-actions, .appearance-layout {
  display: grid;
  gap: 12px;
}
.check, .native-toggle, .phone-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.check input { width: auto; min-height: auto; }
.logo-uploader {
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(124, 58, 237, .25);
  border-radius: 24px;
  cursor: pointer;
}
.logo-uploader input { display: none; }
.logo-preview {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  object-fit: cover;
}
.preview-phone {
  max-width: 330px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
}
.preview-header {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  align-items: center;
}
.preview-header img {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  object-fit: cover;
}
.preview-header span { display: block; color: var(--muted); font-size: 12px; }
.preview-product {
  aspect-ratio: 1.25 / 1;
  border-radius: 20px;
  background: var(--soft);
}

.settings-visual-section {
  grid-column: 1 / -1;
}

.settings-section-head h2,
.settings-section-head p {
  margin: 0;
}

.settings-section-head p {
  margin-top: 4px;
  color: var(--muted);
}

.settings-visual-grid {
  display: grid;
  gap: 14px;
}

.settings-visual-controls {
  display: grid;
  gap: 14px;
}

/* Public catalog */
.catalog {
  --accent: var(--purple);
  width: min(100%, 720px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 74px 14px 0;
  background: #fff;
}

.catalog-app {
  position: relative;
}

.catalog-app-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 55;
  width: min(100%, 720px);
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgb(238 238 238 / 96%);
  transform: translateX(-50%);
}

.catalog-app-header-inner {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.catalog-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  text-decoration: none;
  font-size: 21px;
  font-weight: 950;
}

.catalog-brand img {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  object-fit: cover;
}

.catalog-brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-header-nav {
  display: none;
}

.catalog-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.catalog-icon-button {
  position: relative;
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 13px;
  background: transparent;
  color: var(--text);
}

.catalog-icon-button svg,
.catalog-card-favorite svg,
.catalog-secondary-action svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.catalog-count {
  position: absolute;
  top: 1px;
  right: 1px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.catalog-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(18, 23, 42, .34);
  backdrop-filter: blur(8px);
}

.catalog-drawer-overlay[hidden] {
  display: none;
}

.catalog-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 210;
  width: min(84vw, 330px);
  display: grid;
  align-content: start;
  gap: 20px;
  padding: 22px 18px;
  background: #fff;
  border-right: 1px solid var(--line);
  transform: translateX(-105%);
  transition: transform .2s ease;
}

.catalog-drawer.open {
  transform: translateX(0);
}

.catalog-drawer-close {
  top: 14px;
  right: 14px;
}

.catalog-drawer-shop {
  min-width: 0;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  padding-right: 44px;
}

.catalog-drawer-shop img {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  object-fit: cover;
}

.catalog-drawer-shop strong,
.catalog-drawer-shop span {
  display: block;
}

.catalog-drawer-shop strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.1;
}

.catalog-drawer-shop span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.catalog-drawer-section {
  display: grid;
  gap: 8px;
}

.catalog-drawer-section > strong {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.catalog-drawer-section button,
.catalog-drawer-section a {
  min-height: 42px;
  justify-content: flex-start;
  padding: 0 12px;
  border-radius: 14px;
  background: #f7f8f8;
  color: var(--text);
  text-align: left;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
}

.catalog-drawer-section button.active,
.catalog-drawer-section a.active {
  background: color-mix(in srgb, var(--accent) 16%, #fff);
  color: #20845f;
}

.catalog-store-head {
  padding: 8px 0 14px;
}

.catalog-store-head h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.08;
}

.catalog-store-head p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.catalog-hero {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
  padding: 8px 0 18px;
}
.catalog-hero img {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
}
.catalog-hero h1 { margin: 0 0 4px; font-size: 28px; }
.catalog-hero p { margin: 0; }
.contact-row a,
.category-tabs button,
.category-tabs a {
  white-space: nowrap;
  min-height: 38px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--soft);
  color: var(--text);
  border: 0;
  text-decoration: none;
  font-weight: 800;
}

.catalog-category-tabs {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0 -14px 14px;
  padding: 0 14px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.catalog-category-tabs::-webkit-scrollbar {
  display: none;
}

.catalog-mobile-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.catalog-inline-search {
  min-height: 52px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 0 15px;
  border-radius: 18px;
  background: #f6f4fb;
  color: #7a8194;
}

.catalog-inline-search svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.catalog-inline-search input {
  min-height: 50px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  outline: none;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.catalog-inline-search:focus-within,
.catalog-inline-search input:focus {
  border-color: transparent;
  outline: none;
  box-shadow: none;
}

.catalog-inline-search input::placeholder {
  color: #b5aecb;
}

.catalog-view-toggle {
  display: flex;
  gap: 4px;
  padding: 5px;
  border-radius: 18px;
  background: #f7f7f9;
}

.catalog-view-toggle button {
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: transparent;
  color: var(--text);
}

.catalog-view-toggle button.active {
  background: #fff;
  color: #20845f;
  box-shadow: 0 8px 18px rgba(18, 23, 42, .06);
}

.catalog-view-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.catalog-grid { display: grid; gap: 16px; }
.catalog-card {
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
}

.catalog-card-image {
  position: relative;
}

.catalog-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: block;
  object-fit: cover;
  background: var(--soft);
}

.catalog-card-image .category-chip {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(255, 255, 255, .92);
  color: var(--text);
}

.catalog-card-favorite {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  min-height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, .92);
  color: var(--text);
}

.catalog-card-favorite.active {
  color: #e11d48;
}

.catalog-card-favorite.active svg {
  fill: currentColor;
}

.catalog-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
}

.catalog-card-body-category {
  display: none;
  justify-self: start;
}

.catalog-card-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.catalog-card h2 {
  min-height: 46px;
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  font-size: 19px;
  line-height: 1.2;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.catalog-card-title strong {
  color: #20845f;
  font-size: 17px;
  white-space: nowrap;
}

.catalog-description {
  max-height: 42px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.catalog-description,
.catalog-description * {
  margin: 0;
}

.catalog-description * {
  display: inline;
}

.catalog-card-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.accent-btn {
  width: 100%;
  background: var(--accent);
  color: #fff;
}

.catalog-details-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 900;
}

.catalog-secondary-action {
  width: 48px;
  min-width: 48px;
  min-height: 46px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
}

.catalog-secondary-action.active {
  border-color: transparent;
  background: color-mix(in srgb, var(--accent) 18%, #fff);
  color: #20845f;
}

.catalog-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  margin-top: 24px;
  margin-right: -14px;
  margin-left: -14px;
  padding: 18px 14px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgb(238 238 238 / 96%);
}

.catalog-footer .catalog-brand {
  font-size: 20px;
}

.catalog-footer-brand {
  display: grid;
  gap: 10px;
}

.catalog-footer-brand p {
  max-width: 320px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.catalog-footer-section {
  display: grid;
  gap: 10px;
}

.catalog-footer-section strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 950;
}

.catalog-footer-section a {
  width: fit-content;
  color: #5f6675;
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
}

.catalog-footer-section a:hover {
  color: var(--accent);
}

@media (max-width: 719px) {
  .catalog-view-list {
    gap: 14px;
  }

  .catalog-view-list .catalog-card {
    display: grid;
    grid-template-columns: 38% minmax(0, 1fr);
    height: auto;
    min-height: 178px;
    border-radius: 24px;
  }

  .catalog-view-list .catalog-card-image {
    min-height: 100%;
  }

  .catalog-view-list .catalog-card img {
    height: 100%;
    aspect-ratio: auto;
    border-radius: 24px;
  }

  .catalog-view-list .catalog-card-image .category-chip {
    display: none;
  }

  .catalog-view-list .catalog-card-favorite {
    top: 12px;
    right: 12px;
    width: 42px;
    min-height: 42px;
  }

  .catalog-view-list .catalog-card-body {
    min-width: 0;
    display: grid;
    grid-template-rows: auto auto auto;
    padding: 18px 14px 14px;
    align-content: center;
  }

  .catalog-view-list .catalog-card-body-category {
    display: inline-flex;
    margin-bottom: 2px;
    background: #f4f1fb;
  }

  .catalog-view-list .catalog-card-title {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding-right: 44px;
  }

  .catalog-view-list .catalog-card h2 {
    min-height: auto;
    font-size: 17px;
  }

  .catalog-view-list .catalog-card-title strong {
    font-size: 18px;
  }

  .catalog-view-list .catalog-card-actions {
    margin-top: 4px;
  }

  .catalog-view-grid {
    gap: 18px;
  }
}

.catalog-search-card {
  display: grid;
  gap: 14px;
}

.catalog-search-card h2 {
  margin: 0;
}

.catalog-search {
  min-height: 48px;
}

.catalog-empty-state {
  margin-top: 18px;
  border: 0;
  background: transparent;
}

/* Public catalog refresh */
.catalog {
  width: min(100%, 760px);
  padding: 86px 16px 0;
  background: #fff;
}

.catalog-app-header {
  width: min(100%, 760px);
  min-height: 68px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(18, 23, 42, .06);
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 10px 34px rgba(18, 23, 42, .05);
  backdrop-filter: blur(18px);
}

.catalog-brand {
  gap: 10px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.catalog-brand img {
  width: 36px;
  height: 36px;
  border-radius: 13px;
}

.catalog-icon-button {
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  background: transparent;
}

.catalog-icon-button:hover {
  background: rgba(18, 23, 42, .045);
}

.catalog-count {
  top: 3px;
  right: 3px;
  box-shadow: 0 0 0 2px #fff;
}

.catalog-store-head {
  padding: 4px 0 14px;
}

.catalog-store-head h1 {
  font-size: 34px;
  letter-spacing: -0.035em;
}

.contact-row a,
.category-tabs button,
.category-tabs a {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(18, 23, 42, .05);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 8px 24px rgba(18, 23, 42, .035);
}

.catalog-category-tabs {
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 6px;
}

.catalog-grid {
  gap: 20px;
}

.catalog-card {
  overflow: hidden;
  border: 1px solid rgba(18, 23, 42, .07);
  border-radius: 30px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 52px rgba(18, 23, 42, .07);
}

.catalog-card img {
  aspect-ratio: 4 / 5.15;
  border-radius: 30px 30px 12px 12px;
}

.catalog-card-image .category-chip {
  left: 14px;
  bottom: 14px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 10px 24px rgba(18, 23, 42, .08);
  backdrop-filter: blur(12px);
}

.catalog-card-favorite {
  top: 14px;
  right: 14px;
  width: 46px;
  min-height: 46px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 12px 26px rgba(18, 23, 42, .08);
  backdrop-filter: blur(12px);
}

.catalog-card-body {
  gap: 14px;
  padding: 15px 15px 16px;
}

.catalog-card h2 {
  font-size: 18px;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.catalog-card-title strong {
  color: #137e58;
  font-size: 18px;
  letter-spacing: -0.015em;
}

.catalog-details-button {
  min-height: 50px;
  border-radius: 17px;
  font-size: 16px;
}

.catalog-secondary-action {
  width: 52px;
  min-width: 52px;
  min-height: 50px;
  border-radius: 17px;
  background: #fff;
}

.catalog-footer {
  border-top: 1px solid rgba(18, 23, 42, .06);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(18px);
}

@media (min-width: 1040px) {
  .catalog {
    width: min(100%, 1440px);
    padding: 32px 48px 0;
    background: #fff;
  }

  .catalog-app-header {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    margin: 0 0 40px;
    min-height: 84px;
    padding: 14px 26px;
    border: 0;
    border-radius: 0;
    transform: none;
  }

  .catalog-app-header-inner {
    max-width: 1344px;
    margin: 0 auto;
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .catalog-header-nav {
    min-width: 0;
    display: flex;
    justify-content: center;
    gap: 16px;
  }

  .catalog-header-nav a {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    padding: 0 20px;
    border-radius: 999px;
    color: var(--text);
    text-decoration: none;
    font-size: 16px;
    font-weight: 800;
  }

  .catalog-header-nav a.active {
    background: #eafaf3;
    color: #20845f;
  }

  .catalog-mobile-tools {
    display: none;
  }

  .catalog-store-head {
    padding-top: 22px;
  }

  .catalog-store-head h1 {
    font-size: 40px;
  }

  .catalog-category-tabs {
    margin-top: 8px;
    margin-bottom: 16px;
  }

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

  .catalog-footer {
    margin-right: -48px;
    margin-left: -48px;
    padding-right: 48px;
    padding-left: 48px;
  }
}

.product-public-page {
  padding-bottom: 104px;
}

.product-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 6px 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.product-breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.product-breadcrumbs strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.product-public-slider {
  position: relative;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 26px;
  background: var(--soft);
}

.product-public-slider::-webkit-scrollbar {
  display: none;
}

.product-public-slider img {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 4 / 5;
  display: block;
  object-fit: cover;
  scroll-snap-align: start;
}

.product-public-slider img.active {
  display: block;
}

.product-public-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
}

.product-public-dots button {
  width: 7px;
  min-width: 7px;
  height: 7px;
  min-height: 7px;
  padding: 0;
  border-radius: 50%;
  background: #d4d4d8;
}

.product-public-dots button.active {
  width: 18px;
  border-radius: 999px;
  background: var(--accent);
}

.product-public-info {
  display: grid;
  gap: 16px;
  padding-top: 18px;
}

.product-public-title {
  display: grid;
  gap: 10px;
}

.product-public-title h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.08;
}

.product-public-title > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-public-title strong {
  color: #20845f;
  font-size: 20px;
  white-space: nowrap;
}

.product-public-fields {
  border-bottom: 0;
}

.product-public-description {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.product-public-description h2 {
  margin: 0;
  font-size: 18px;
}

.product-public-description div {
  color: var(--text);
  line-height: 1.55;
}

.product-order-section {
  display: grid;
  gap: 14px;
  margin-top: 4px;
  padding: 16px;
  scroll-margin-top: 82px;
  border-radius: 22px;
  background: #f7f8f8;
}

.product-order-head {
  display: grid;
  gap: 4px;
}

.product-order-head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
}

.product-order-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.product-order-form {
  display: grid;
  gap: 10px;
}

.product-order-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.product-order-form input,
.product-order-form textarea {
  min-height: 50px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
}

.product-order-form textarea {
  min-height: 92px;
  padding-top: 13px;
  resize: vertical;
}

.product-order-form .accent-btn {
  min-height: 52px;
  margin-top: 2px;
  border-radius: 16px;
  color: #fff;
  font-size: 16px;
  font-weight: 950;
}

.product-action-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 50;
  width: min(100%, 720px);
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
}

.product-action-icon {
  width: 50px;
  min-width: 50px;
  min-height: 50px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
}

.product-action-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-action-icon.active {
  border-color: transparent;
  background: color-mix(in srgb, var(--accent) 16%, #fff);
  color: var(--accent);
}

.product-action-icon.active svg {
  fill: currentColor;
}

.product-action-cta {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 950;
}

.product-action-bar .product-action-icon:first-child:nth-last-child(2) + .product-action-cta {
  grid-column: span 2;
}

.product-desktop-actions {
  display: none;
}

.product-purchase-panel {
  display: grid;
  gap: 14px;
  padding: 4px 0 2px;
}

.product-purchase-price {
  display: block;
  color: #333844;
  font-size: 28px;
  line-height: 1;
  font-weight: 950;
}

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

.product-quantity-row span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.product-quantity-control {
  width: 144px;
  min-height: 42px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
}

.product-quantity-control button {
  min-height: 42px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #2b3142;
  font-size: 19px;
  font-weight: 900;
}

.product-quantity-control input {
  min-height: 42px;
  padding: 0;
  border: 0;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 900;
  appearance: textfield;
}

.product-quantity-control input::-webkit-outer-spin-button,
.product-quantity-control input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.product-secondary-actions {
  display: none;
}

.product-desktop-favorite {
  display: none;
}

.catalog-cart-card {
  width: min(100% - 28px, 520px);
  max-height: min(760px, calc(100vh - 28px));
  display: grid;
  grid-template-rows: auto minmax(0, auto) auto auto;
  gap: 16px;
  overflow: auto;
}

.catalog-favorites-card {
  width: min(100% - 28px, 520px);
  max-height: min(680px, calc(100vh - 28px));
  display: grid;
  gap: 16px;
  overflow: auto;
}

.catalog-cart-head {
  display: grid;
  gap: 5px;
  padding-right: 44px;
}

.catalog-cart-head h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.1;
}

.catalog-cart-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.catalog-cart-items {
  display: grid;
  gap: 10px;
}

.catalog-favorites-items {
  display: grid;
  gap: 10px;
}

.catalog-cart-item {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.catalog-favorite-item {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.catalog-favorite-item img {
  width: 72px;
  height: 86px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--soft);
}

.catalog-favorite-item > div {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.catalog-favorite-item a {
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 900;
}

.catalog-favorite-item span {
  color: #20845f;
  font-size: 14px;
  font-weight: 900;
}

.catalog-cart-item img {
  width: 72px;
  height: 86px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--soft);
}

.catalog-cart-item > div {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.catalog-cart-item a {
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 900;
}

.catalog-cart-item span {
  color: #20845f;
  font-size: 14px;
  font-weight: 900;
}

.catalog-cart-qty {
  width: fit-content;
  display: grid;
  grid-template-columns: 30px 28px 30px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8f9fa;
}

.catalog-cart-qty button {
  min-height: 30px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.catalog-cart-qty strong {
  text-align: center;
  font-size: 13px;
}

.catalog-cart-remove {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 50%;
  background: #fff1f2;
  color: #e11d48;
  font-size: 22px;
  line-height: 1;
}

.catalog-cart-empty {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 18px;
  background: #f7f8f9;
  text-align: center;
}

.catalog-cart-empty[hidden] {
  display: none;
}

.catalog-cart-empty strong {
  font-size: 17px;
}

.catalog-cart-empty span {
  color: var(--muted);
  line-height: 1.45;
}

.catalog-cart-form {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.catalog-cart-form[hidden] {
  display: none;
}

.catalog-cart-form label {
  display: grid;
  gap: 7px;
  color: #25304a;
  font-size: 13px;
  font-weight: 900;
}

.catalog-cart-form input,
.catalog-cart-form textarea {
  min-height: 48px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
}

.catalog-cart-form textarea {
  min-height: 86px;
  padding-top: 13px;
  resize: vertical;
}

.catalog-cart-form .accent-btn {
  min-height: 52px;
  margin-top: 4px;
  border-radius: 16px;
  color: #fff;
  font-size: 16px;
  font-weight: 950;
}

.catalog-success-card {
  width: min(100% - 28px, 430px);
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 30px 24px 24px;
  text-align: center;
}

.catalog-success-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: color-mix(in srgb, var(--accent) 16%, #fff);
  color: var(--accent);
}

.catalog-success-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.catalog-success-card h2 {
  margin: 2px 0 0;
  color: var(--text);
  font-size: 28px;
  line-height: 1.08;
}

.catalog-success-card p {
  max-width: 320px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.48;
}

.catalog-success-button {
  min-height: 52px;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 950;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(18, 23, 42, .36);
  overflow-y: auto;
}
.modal[hidden] { display: none; }
.modal-card {
  width: min(100%, 520px);
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 50%;
}
.text-page {
  display: block;
}

.catalog-page-wrap {
  display: grid;
  gap: 20px;
  padding: 12px 0 36px;
}

.catalog-page-head h1 {
  max-width: 820px;
  margin: 0;
  color: var(--text);
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.catalog-page-content {
  max-width: 820px;
  color: #2d3038;
  font-size: 16px;
  line-height: 1.72;
  white-space: normal;
}

.catalog-page-content p,
.catalog-page-content div {
  margin: 0 0 16px;
}

.catalog-page-content p:last-child,
.catalog-page-content div:last-child {
  margin-bottom: 0;
}

.catalog-page-content ul,
.catalog-page-content ol {
  margin: 14px 0 18px;
  padding-left: 24px;
}

.catalog-page-content li {
  margin: 6px 0;
}

.catalog-page-content strong,
.catalog-page-content b {
  color: var(--text);
  font-weight: 900;
}

.catalog-page-content a {
  color: #20845f;
  text-underline-offset: 3px;
}

.catalog-page-content br {
  line-height: 1.8;
}

/* Product form */
.product-phone-page {
  min-height: 100vh;
  background: #fff;
  color: #0f1426;
}
.product-phone-form {
  width: min(100%, 390px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 20px 30px;
  background: #fff;
}
.phone-form-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 64px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(16px);
}
.phone-form-topbar a, .phone-form-topbar button {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  background: transparent;
  color: var(--purple);
}
.phone-form-topbar a {
  color: var(--text);
  text-decoration: none;
  font-size: 30px;
}
.phone-form-topbar strong {
  text-align: center;
  font-size: 15px;
  font-weight: 900;
}
.phone-upload {
  height: 174px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  border: 1.5px dashed rgba(124, 58, 237, .18);
  border-radius: 14px;
  background: #fbfaff;
  text-align: center;
  cursor: pointer;
}
.phone-upload input, .thumb-plus input { display: none; }
.phone-upload img {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
}
.upload-glyph {
  color: var(--purple);
  font-size: 42px;
  line-height: 1;
}
.phone-upload strong { font-size: 14px; font-weight: 900; }
.phone-upload small { color: var(--muted); font-size: 12px; }
.phone-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 10px 0 20px;
}
.phone-thumbs img, .thumb-skeleton, .thumb-plus {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  object-fit: cover;
  background: var(--soft);
}
.thumb-skeleton { background: #ead8bf; }
.thumb-plus {
  display: grid;
  place-items: center;
  color: var(--purple);
  font-size: 30px;
  cursor: pointer;
}
.phone-section {
  display: grid;
  gap: 14px;
  margin: 0 -20px;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
}
.phone-section:first-of-type { border-top: 0; padding-top: 0; }
.phone-section h2, .phone-section-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
}
.phone-section label {
  color: #151b2f;
  font-size: 12px;
  font-weight: 900;
}
.phone-section input, .phone-section select, .phone-section textarea {
  min-height: 48px;
  border-radius: 12px;
}
.select-row { position: relative; display: block; }
.select-row select { appearance: none; padding-right: 38px; }
.select-row b {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #8a90a0;
  font-size: 22px;
}
.phone-editor {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.phone-editor-tools {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 15px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  color: #3f4961;
  font-weight: 900;
}
.phone-editor textarea {
  border: 0;
  border-radius: 0;
}
.phone-editor small {
  display: block;
  padding: 0 12px 10px;
  text-align: right;
  color: #9aa1af;
}
.variant-group {
  display: grid;
  gap: 8px;
}
.variant-group h3 {
  margin: 2px 0 4px;
  font-size: 12px;
}
.variant-row {
  min-height: 46px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 750;
}
.variant-row b, .variant-row em {
  color: #9aa1af;
  font-style: normal;
}
.color-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #d8dce6;
}
.color-0 { background: #d7b892; }
.color-1 { background: #000; }
.color-2 { background: #fff; }
.add-inline {
  justify-content: start;
  width: fit-content;
  min-height: 34px;
  padding: 0;
  background: transparent;
  color: var(--purple);
}
.phone-toggle-row input {
  appearance: none;
  width: 46px;
  height: 28px;
  min-height: 28px;
  padding: 3px;
  border: 0;
  border-radius: 999px;
  background: #e5e8f0;
}
.phone-toggle-row input::after {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform .18s ease;
}
.phone-toggle-row input:checked { background: var(--purple); }
.phone-toggle-row input:checked::after { transform: translateX(18px); }
.phone-status {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 12px;
  background: var(--soft);
}
.phone-status label { display: block; }
.phone-status input { display: none; }
.phone-status span {
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #4f566c;
  font-size: 13px;
  font-weight: 850;
}
.phone-status input:checked + span {
  background: var(--purple-soft);
  color: var(--purple);
}
.phone-save-button {
  position: sticky;
  bottom: 16px;
  z-index: 10;
  width: 100%;
  min-height: 54px;
  margin-top: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  color: #fff;
  font-weight: 900;
}

@media (max-width: 719px) {
  .hero-card, .form-section, .toolbar-card, .preview-card, .panel, .dashboard-panel {
    margin-left: -15px;
    margin-right: -15px;
    border-radius: 24px;
  }
}

@media (min-width: 720px) {
  .topbar { grid-template-columns: auto 1fr auto; align-items: center; }
  .desktop-only { display: inline-flex; }
  .page-heading, .dashboard-head {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
  .dashboard-stats, .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dashboard-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mini-product-card {
    display: block;
    overflow: hidden;
    padding: 0;
  }
  .mini-product-card img {
    width: 100%;
    height: 148px;
    border-radius: 16px 16px 0 0;
  }
  .mini-product-card div { padding: 12px; }
  .toolbar-card {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-admin-card {
    display: block;
    overflow: hidden;
    padding: 0;
  }
  .product-admin-card > img {
    width: 100%;
    height: 172px;
    border-radius: 24px 24px 0 0;
  }
  .product-admin-body { padding: 12px 12px 0; }
  .card-actions { padding: 10px 12px 12px; }
  .form-grid, .grid-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .appearance-layout { grid-template-columns: 1.05fr .95fr; align-items: start; }
  .appearance-layout .form-section:last-child { grid-column: 1 / -1; }
  .settings-social-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row-card, .lead-card {
    grid-template-columns: 1fr auto auto;
    align-items: center;
  }
  .lead-card.lead-card-rich {
    grid-template-columns: 112px minmax(0, 1fr);
  }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-phone-page {
    padding: 24px 0;
    background: var(--bg);
  }
  .product-phone-form {
    border: 1px solid var(--line);
    border-radius: 28px;
    overflow: hidden;
  }
}

@media (min-width: 1040px) {
  body:has(.app-sidebar) { padding-left: 276px; }
  .mobile-app-header, .menu-overlay, .drawer-close { display: none; }
  .app-sidebar {
    top: 16px;
    left: 16px;
    bottom: 16px;
    width: 244px;
    border: 1px solid var(--line);
    border-radius: 24px;
    transform: none;
  }
  .shell {
    width: min(100%, 1160px);
    padding: 28px 28px 56px;
    margin: 0;
  }
  .owner-shell { padding-top: 28px; }
  .fab { display: none; }
}

/* Product editor essentials */
.product-editor-form {
  padding-bottom: 28px;
}

.photo-editor {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.main-photo-drop {
  height: 174px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  border: 1.5px dashed #cdeedd;
  border-radius: 14px;
  background: #fff;
  text-align: center;
  cursor: pointer;
}

.main-photo-drop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.main-photo-drop strong {
  font-size: 15px;
  font-weight: 900;
}

.main-photo-drop small {
  color: var(--muted);
  font-size: 12px;
}

.image-input {
  display: none;
}

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.image-preview-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  color: var(--muted);
  cursor: pointer;
}

.image-preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview-card span {
  position: absolute;
  left: 6px;
  bottom: 6px;
  max-width: calc(100% - 12px);
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: var(--text);
  font-size: 10px;
  font-weight: 800;
}

.image-preview-card button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  min-height: 24px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #b42318;
  font-size: 18px;
  line-height: 1;
}

.image-preview-card.empty {
  border-style: dashed;
  background: #fff;
}

.image-preview-card.empty b {
  color: #20845f;
  font-size: 28px;
}

.image-preview-card.empty span {
  position: static;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
}

.product-main-fields {
  border-top: 0;
  padding-top: 0;
}

.new-category-field[hidden] {
  display: none;
}

.rich-editor {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.rich-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 5px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
  overflow-x: auto;
}

.rich-toolbar button,
.rich-toolbar select {
  flex: 0 0 auto;
  width: auto;
  min-width: 38px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #303a58;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.rich-toolbar select {
  min-width: 92px;
}

.rich-toolbar button:hover,
.rich-toolbar select:hover {
  background: #fff;
  border-color: var(--line);
}

.rich-content {
  min-height: 120px;
  padding: 12px 14px;
  color: var(--text);
  line-height: 1.45;
  outline: none;
}

.rich-content:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
}

@media (max-width: 719px) {
  .rich-toolbar {
    gap: 3px;
    padding: 4px;
    scrollbar-width: none;
  }

  .rich-toolbar::-webkit-scrollbar {
    display: none;
  }

  .rich-toolbar button,
  .rich-toolbar select {
    min-width: 34px;
    min-height: 32px;
    padding: 0 8px;
    font-size: 12px;
  }

  .rich-toolbar select {
    min-width: 84px;
  }
}

/* Product form inside admin layout */
.product-page {
  max-width: 980px;
}

.product-page-heading {
  margin-bottom: 18px;
}

.product-editor-form {
  width: 100%;
  max-width: none;
  min-height: auto;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 18px;
  background: transparent;
}

.product-side-panel {
  align-self: start;
  display: grid;
  gap: 14px;
}

.photo-editor {
  align-self: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.product-main-fields {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.product-form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 2px;
}

.product-form-actions .primary-btn,
.product-form-actions .secondary-btn {
  min-width: 160px;
}

@media (max-width: 719px) {
  .product-page {
    padding-top: 88px;
  }

  .product-editor-form {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .photo-editor,
  .product-main-fields {
    margin-left: -15px;
    margin-right: -15px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .product-side-panel {
    gap: 14px;
  }

  .product-form-actions {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin-left: -15px;
    margin-right: -15px;
    padding: 12px 15px;
    background: #fff;
    border-top: 1px solid var(--line);
  }

  .product-form-actions .secondary-btn {
    display: none;
  }

  .product-form-actions .primary-btn {
    width: 100%;
  }
}

@media (min-width: 1180px) {
  .product-grid, .dashboard-products { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Clean neutral admin direction */
:root {
  --bg: #ffffff;
  --card: #ffffff;
  --text: #27272a;
  --muted: #71717a;
  --line: #e4e4e7;
  --line-strong: #d4d4d8;
  --soft: #f6f7f7;
  --purple: #48d598;
  --purple-2: #48d598;
  --purple-soft: #eafaf3;
  --green: #239e70;
  --shadow: none;
}

body {
  background: #fff;
  color: var(--text);
}

h1 {
  letter-spacing: -0.02em;
}

input,
textarea,
select {
  border-color: var(--line);
  border-radius: 12px;
  background: #fff;
  font-weight: 500;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #48d598;
  box-shadow: 0 0 0 3px rgba(72, 213, 152, .14);
}

.primary-btn,
.phone-save-button,
.mobile-preview,
.menu-toggle {
  background: #48d598;
  color: #143b2a;
  box-shadow: none;
}

.primary-btn {
  color: #143b2a;
}

.secondary-btn,
.ghost-btn,
.pill-link {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: none;
}

.hero-card,
.form-section,
.toolbar-card,
.preview-card,
.panel,
.dashboard-panel,
.row-card,
.lead-card,
.product-admin-card,
.stat,
.auth-card,
.catalog-card,
.store-switcher,
.sidebar-user,
.mini-product-card {
  box-shadow: none;
  border-color: var(--line);
}

.hero-card,
.form-section,
.toolbar-card,
.preview-card,
.panel,
.dashboard-panel {
  background: #fff;
}

.eyebrow,
.chip.active,
.app-nav a.active,
.category-tabs button.active,
.category-tabs a.active,
.phone-status input:checked + span {
  background: #eafaf3;
  color: #20845f;
}

.app-nav a span,
.auth-card a,
.phone-form-topbar button,
.phone-upload .upload-glyph,
.thumb-plus,
.add-inline,
.product-admin-card small {
  color: #20845f;
}

.brand-mark span {
  background: #48d598;
}

.stat::after,
.stat-purple::after,
.stat-green::after,
.stat-blue::after,
.stat-orange::after {
  content: none;
}

.mobile-app-header {
  background: #fff;
  border-color: var(--line);
  backdrop-filter: none;
}

.menu-toggle {
  color: #143b2a;
}

.fab {
  background: #48d598;
  color: #143b2a;
  box-shadow: none;
}

.toggle-btn.active,
.phone-toggle-row input:checked {
  background: #48d598;
}

.catalog {
  --accent: #48d598;
}

.accent-btn {
  color: #ffffff;
}

.phone-upload {
  background: #fff;
  border-color: #d7f4e7;
}

.phone-form-topbar {
  background: #fff;
  backdrop-filter: none;
}

@media (min-width: 1040px) {
  body:has(.app-sidebar) {
    padding-left: 0;
  }

  .app-sidebar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    z-index: 60;
    width: 100%;
    min-height: 56px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 8px 24px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: #fff;
    transform: none;
  }

  .brand-mark {
    grid-template-columns: 30px auto;
    padding-right: 0;
  }

  .brand-mark strong {
    font-size: 28px;
  }

  .brand-mark span {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .app-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
  }

  .app-nav a {
    min-height: 36px;
    padding: 0 10px;
    border-radius: 999px;
    white-space: nowrap;
    color: #3f3f46;
    font-size: 14px;
  }

  .app-nav a span {
    display: none;
  }

  .logout-form { display: block; }
  .logout-button {
    width: 38px;
    min-height: 38px;
  }

  .shell {
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 28px 28px 56px;
  }

  .owner-shell {
    padding-top: 28px;
  }
}

@media (min-width: 1040px) {
  .app-sidebar {
    height: 56px;
    min-height: 56px;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: none;
    align-content: center;
    padding-top: 0;
    padding-bottom: 0;
  }

  .brand-mark,
  .app-nav,
  .logout-form {
    align-self: center;
  }

  .shell {
    padding-top: 24px;
  }

  .owner-shell {
    padding-top: 24px;
  }
}

/* Stable product photo editor */
.product-editor-form {
  align-items: start;
}

.photo-editor {
  min-width: 0;
  overflow: hidden;
}

.main-photo-drop {
  width: 100%;
  height: 260px;
  min-height: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.main-photo-drop:not(:has(img)) {
  padding: 14px;
}

.main-photo-drop img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.image-preview-grid {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}

.image-preview-card {
  width: 100%;
  min-width: 0;
  height: auto;
  aspect-ratio: 1 / 1;
}

.image-preview-card[hidden] {
  display: none !important;
}

.image-preview-card.new-upload img,
.image-preview-card > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 719px) {
  .main-photo-drop {
    height: 190px;
  }
}

/* Products list layout */
.product-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

.product-admin-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  border-radius: 24px;
}

.product-admin-card > img {
  width: 84px;
  height: 84px;
  border-radius: 16px;
  object-fit: cover;
  background: var(--soft);
}

.product-admin-body {
  min-width: 0;
  display: grid;
  gap: 5px;
  align-content: center;
  padding: 0;
}

.product-admin-card strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 17px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-admin-card small {
  color: #20845f;
  font-size: 14px;
  font-weight: 850;
}

.product-description {
  margin: 0;
  max-width: 560px;
  max-height: 20px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-description * {
  display: inline;
  margin-top: 0;
  margin-bottom: 0;
}

.product-description br {
  display: none;
}

.product-description ul,
.product-description ol {
  display: inline;
  padding-left: 0;
  list-style: none;
}

.product-description li {
  display: inline;
}

.product-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 2px;
}

.card-actions {
  grid-column: auto;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 10px !important;
  padding: 0;
}

.card-actions form {
  display: flex;
  margin: 0;
}

@media (min-width: 720px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .product-admin-card {
    display: grid;
    grid-template-columns: 84px minmax(220px, 1fr) minmax(130px, auto);
    align-items: center;
    gap: 14px;
    padding: 14px;
    overflow: visible;
  }

  .product-admin-card > img {
    width: 84px;
    height: 84px;
    border-radius: 16px;
  }

  .product-admin-body {
    min-width: 0;
    padding: 0;
    gap: 6px;
  }

  .product-description {
    max-height: 20px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .card-actions {
    grid-column: auto;
    justify-content: flex-end;
    padding: 0;
  }
}

@media (min-width: 1180px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 719px) {
  .product-admin-card {
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 12px;
  }

  .product-admin-card > img {
    width: 82px;
    height: 98px;
    border-radius: 14px;
  }

  .product-description {
    max-width: 100%;
  }

  .card-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
    padding-top: 4px;
  }
}

/* Product list columns */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.product-admin-card {
  display: grid;
  grid-template-columns: 72px minmax(220px, 1fr) minmax(130px, 180px) minmax(110px, 140px) 70px 104px;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

.product-list-image {
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--soft);
}

.product-list-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-list-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.product-list-main strong {
  overflow: hidden;
  color: var(--text);
  font-size: 16px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-list-main small {
  color: #20845f;
  font-size: 14px;
  font-weight: 850;
}

.product-list-category,
.product-list-status,
.product-list-toggle,
.product-list-edit {
  min-width: 0;
  display: flex;
  align-items: center;
}

.product-list-toggle {
  justify-content: center;
  margin: 0;
}

.product-list-edit {
  justify-content: flex-end;
}

.product-description {
  max-width: 100%;
  max-height: 19px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-description,
.product-description * {
  margin: 0;
}

.product-description * {
  display: inline;
}

.product-description br {
  display: none;
}

.product-description ul,
.product-description ol {
  display: inline;
  padding-left: 0;
  list-style: none;
}

.product-description li {
  display: inline;
}

.product-list-edit .ghost-btn {
  white-space: nowrap;
}

.product-list-category .category-chip,
.product-list-status .status-dot {
  margin: 0;
}

.product-list-category {
  justify-content: flex-start;
}

.product-list-status {
  justify-content: flex-start;
}

.product-list-toggle .toggle-btn {
  flex: 0 0 auto;
  border: 0;
  cursor: pointer;
  justify-content: flex-start;
}

.product-list-toggle .toggle-btn:disabled {
  opacity: .65;
  cursor: wait;
}

@media (min-width: 900px) {
  .product-admin-card {
    grid-template-columns: 72px minmax(220px, 1fr) 160px 130px 58px 104px;
  }
}

@media (max-width: 899px) {
  .product-admin-card {
    grid-template-columns: 68px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .product-list-image {
    width: 68px;
    height: 78px;
    grid-row: 1 / span 3;
  }

  .product-list-main {
    grid-column: 2 / 4;
  }

  .product-list-category,
  .product-list-status {
    align-self: start;
  }

  .product-list-toggle {
    grid-column: 2;
    justify-content: flex-start;
  }

  .product-list-edit {
    grid-column: 3;
  }
}

@media (max-width: 560px) {
  .product-admin-card {
    grid-template-columns: 64px minmax(0, 1fr);
    padding: 12px;
  }

  .product-list-image {
    width: 64px;
    height: 78px;
  }

  .product-list-main {
    grid-column: 2;
  }

  .product-list-category,
  .product-list-status {
    grid-column: 2;
  }

  .product-list-toggle {
    grid-column: 1;
    justify-content: flex-start;
  }

  .product-list-edit {
    grid-column: 2;
    justify-content: flex-end;
  }
}

/* Cleaner product list: media, info, actions */
.product-admin-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
}

.product-list-image {
  width: 88px;
  height: 88px;
  border-radius: 18px;
}

.product-list-main {
  gap: 6px;
}

.product-list-main strong {
  font-size: 17px;
}

.product-list-main small {
  font-size: 15px;
}

.product-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 2px;
}

.product-list-meta .category-chip,
.product-list-meta .status-dot {
  margin: 0;
}

.product-list-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.product-list-actions .product-list-toggle {
  margin: 0;
}

.product-list-actions .ghost-btn {
  white-space: nowrap;
}

@media (min-width: 900px) {
  .product-admin-card {
    grid-template-columns: 88px minmax(0, 1fr) auto;
  }
}

@media (max-width: 719px) {
  .product-admin-card {
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 12px;
  }

  .product-list-image {
    width: 76px;
    height: 88px;
  }

  .product-list-main {
    grid-column: 2;
  }

  .product-list-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
    padding-top: 4px;
  }
}

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

.product-admin-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  padding: 0;
  border-radius: 24px;
}

.product-list-image {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 0;
}

.product-list-image .status-dot {
  position: absolute;
  top: 12px;
  right: 12px;
  margin: 0;
  background: rgba(234, 248, 241, .94);
  backdrop-filter: blur(8px);
}

.product-list-image .status-dot.off {
  background: rgba(255, 240, 232, .94);
}

.product-list-image .image-category {
  position: absolute;
  left: 12px;
  bottom: 12px;
  margin: 0;
  background: rgba(255, 255, 255, .92);
  color: #4f4d68;
  backdrop-filter: blur(8px);
}

.product-list-main {
  display: grid;
  gap: 7px;
  padding: 14px 14px 12px;
}

.product-list-main strong {
  font-size: 17px;
}

.product-list-main small {
  font-size: 15px;
}

.product-list-meta {
  gap: 7px;
  min-height: 30px;
  align-items: center;
}

.product-list-meta .category-chip {
  margin: 0;
}

.product-list-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px 14px;
}

.product-list-actions .product-list-toggle {
  display: flex;
  align-items: center;
  margin: 0;
}

.product-list-actions .toggle-btn {
  width: 52px;
  min-width: 52px;
  height: 30px;
  min-height: 30px;
  padding: 3px;
  border: 0;
  line-height: 1;
}

.product-list-actions .toggle-btn span {
  width: 24px;
  height: 24px;
}

.product-list-actions .ghost-btn {
  min-height: 40px;
  padding: 0 16px;
}

@media (max-width: 1040px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .product-list-image {
    aspect-ratio: 16 / 10;
  }
}

/* Rich product management cards */
.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-admin-card {
  border-radius: 28px;
  border-color: #e7e7ec;
  background: #fff;
}

.product-list-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
}

.product-list-image .status-dot {
  top: 14px;
  right: 14px;
  padding: 7px 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.product-list-image .image-category {
  left: 14px;
  bottom: 14px;
  padding: 7px 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.product-list-main {
  padding: 16px 16px 14px;
}

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

.product-title-row strong {
  min-width: 0;
}

.product-title-row span {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3f3f6;
  color: #62617d;
  font-size: 12px;
  font-weight: 850;
}

.product-card-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.product-card-stats span {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 0 8px;
  color: #62617d;
  font-size: 12px;
  text-align: center;
}

.product-card-stats span + span {
  border-left: 1px solid var(--line);
}

.product-card-stats svg,
.icon-action svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-card-stats b {
  overflow: hidden;
  max-width: 100%;
  color: #38364f;
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-list-actions {
  margin: 0 16px;
  padding: 14px 0 16px;
  border-top: 1px solid var(--line);
}

.product-icon-actions {
  display: flex;
  gap: 10px;
}

.product-icon-actions form {
  display: flex;
  margin: 0;
}

.icon-action {
  width: 46px;
  min-width: 46px;
  min-height: 44px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: #565474;
  text-decoration: none;
}

.icon-action.danger {
  color: #e11d48;
}

.icon-action:hover {
  background: #f8f8fa;
}

@media (max-width: 1120px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .product-list-image {
    aspect-ratio: 16 / 11;
  }
}

/* Flat product search and filters */
.product-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.product-toolbar input {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  background: #fff;
}

.filter-button {
  width: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--soft);
  color: var(--text);
}

.filter-button.active {
  background: var(--purple-soft);
  color: #20845f;
}

.filter-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.product-filter-panel {
  position: relative;
  z-index: 80;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 12px;
  max-height: 0;
  margin: -8px 0 0;
  padding: 0 14px;
  overflow: visible;
  border-radius: 20px;
  background: #f8faf9;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: max-height .22s ease, margin .22s ease, padding .22s ease, opacity .18s ease, transform .22s ease;
}

.product-filter-panel.open {
  max-height: 180px;
  margin: -4px 0 18px;
  padding: 14px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.custom-select {
  position: relative;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.custom-select-toggle {
  width: 100%;
  min-height: 44px;
  justify-content: space-between;
  gap: 12px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
}

.custom-select-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .16s ease;
}

.custom-select.open .custom-select-toggle svg {
  transform: rotate(180deg);
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 120;
  width: 100%;
  display: grid;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .1);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity .14s ease, transform .14s ease;
}

.custom-select.open .custom-select-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.custom-select-menu button {
  min-height: 38px;
  justify-content: flex-start;
  padding: 0 10px;
  border-radius: 11px;
  background: transparent;
  color: var(--text);
}

.custom-select-menu button:hover {
  background: var(--soft);
}

.product-grid.is-loading {
  opacity: .55;
  pointer-events: none;
}

.product-grid {
  position: relative;
  z-index: 1;
}

.product-empty-state {
  grid-column: 1 / -1;
}

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

.add-product-btn {
  gap: 8px;
  color: #fff;
}

.add-product-btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}

/* Product category picker */
.category-picker-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 10px;
}

.category-picker-row .select-row {
  min-width: 0;
}

.category-add-button {
  width: 52px;
  min-width: 52px;
  min-height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: #20845f;
}

.category-add-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.category-modal {
  place-items: center;
}

.category-modal-card {
  display: grid;
  gap: 14px;
  width: min(100%, 420px);
  border: 1px solid var(--line);
}

.category-modal-card h2,
.category-modal-card p {
  margin: 0;
}

.category-modal-card p {
  color: var(--muted);
}

.product-fields-settings p {
  margin: -4px 0 4px;
  color: var(--muted);
}

.product-field-list {
  display: grid;
  gap: 10px;
}

.product-field-item {
  min-height: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.product-field-item span {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-field-edit,
.product-field-add {
  color: #20845f;
}

.product-field-edit {
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 13px;
  background: var(--purple-soft);
}

.product-field-add {
  gap: 8px;
  width: fit-content;
}

.product-field-edit svg,
.product-field-add svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-field-modal {
  place-items: center;
}

.product-field-modal-card {
  display: grid;
  gap: 14px;
  width: min(100%, 420px);
  border: 1px solid var(--line);
}

.product-field-modal-card h2,
.product-field-modal-card p {
  margin: 0;
}

.product-field-modal-card p {
  color: var(--muted);
}

.accent-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 48px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.settings-field {
  display: grid;
  gap: 8px;
  color: #27304a;
  font-size: 13px;
  font-weight: 800;
}

.settings-base-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 14px;
  align-items: end;
}

.settings-cart-toggle {
  display: grid;
  gap: 8px;
  justify-items: start;
  color: #27304a;
  font-size: 13px;
  font-weight: 800;
}

.settings-select {
  font-size: 13px;
}

.accent-preset {
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  background: var(--preset);
}

.accent-preset.active {
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--preset);
}

.cta-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cta-preset {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.cta-preset.active {
  border-color: transparent;
  background: #eafaf3;
  color: #20845f;
}

.order-form-settings {
  align-content: start;
}

.order-form-settings p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.telegram-settings-card {
  margin-top: 14px;
}

.telegram-connect-btn {
  width: fit-content;
  gap: 8px;
  color: #143b2a;
}

.telegram-connect-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.telegram-connected-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #f7f8f9;
}

.telegram-connected-row div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.telegram-connected-row strong {
  color: var(--text);
  font-weight: 950;
}

.telegram-connected-row span,
.telegram-hint {
  color: var(--muted);
  line-height: 1.45;
}

.telegram-hint {
  padding: 12px 14px;
  border-radius: 16px;
  background: #f7f8f9;
}

.order-field-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.order-field-option {
  position: relative;
  cursor: pointer;
}

.order-field-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.order-field-option span {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-weight: 850;
}

.order-field-option input:checked + span {
  border-color: transparent;
  background: #eafaf3;
  color: #20845f;
}

.settings-social-grid {
  display: grid;
  gap: 14px;
}

.icon-input {
  position: relative;
  display: block;
}

.icon-input svg {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #20845f;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(-50%);
  pointer-events: none;
}

.icon-input input {
  padding-left: 46px;
}

.custom-product-fields {
  display: grid;
  gap: 14px;
  padding-top: 4px;
}

.custom-product-fields h2 {
  margin: 0;
  font-size: 16px;
}

.catalog-custom-fields {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.catalog-custom-fields div {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 8px;
}

.catalog-custom-fields dt,
.catalog-custom-fields dd {
  margin: 0;
  font-size: 13px;
}

.catalog-custom-fields dt {
  color: var(--muted);
}

.catalog-custom-fields dd {
  color: var(--text);
  font-weight: 750;
}

/* Pages admin */
.pages-empty-state {
  max-width: 520px;
  margin: 44px auto 0;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 34px 22px;
  border: 0;
  background: transparent;
}

.pages-empty-state strong {
  font-size: 22px;
}

.pages-empty-state p {
  max-width: 360px;
  margin: 0 0 8px;
}

.pages-list {
  display: grid;
  gap: 10px;
}

.page-list-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 46px;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.page-list-card div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.page-list-card strong,
.page-list-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-list-card > div > span {
  color: var(--muted);
}

.page-list-card .badge {
  margin: 0;
}

.page-list-card .badge.on {
  background: #eaf8f1;
  color: var(--green);
}

.page-list-card .badge.off {
  background: #fff0e8;
  color: var(--red);
}

.pages-add-bottom {
  width: fit-content;
  margin-top: 14px;
}

/* Categories admin */
.categories-empty-state {
  max-width: 520px;
  margin: 44px auto 0;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 34px 22px;
  border: 0;
  background: transparent;
}

.categories-empty-state strong {
  font-size: 22px;
}

.category-admin-list {
  display: grid;
  gap: 10px;
}

.category-admin-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto 46px;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.category-admin-card > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.category-admin-card strong,
.category-admin-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-admin-card > div > span {
  color: var(--muted);
}

.category-admin-card .status-dot {
  margin: 0;
}

.category-admin-card form {
  margin: 0;
  display: flex;
}

.category-admin-card .toggle-btn {
  border: 0;
  cursor: pointer;
}

.categories-add-bottom {
  width: fit-content;
  margin-top: 14px;
}

.category-admin-modal-card {
  width: min(100%, 420px);
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
}

.category-admin-modal-card h2,
.category-admin-modal-card p {
  margin: 0;
}

.category-admin-modal-card p {
  color: var(--muted);
}

.page-editor-page {
  max-width: 760px;
}

.page-editor-form {
  gap: 16px;
}

.page-editor-form textarea {
  min-height: 220px;
  resize: vertical;
}

.page-rich-content {
  min-height: 260px;
}

.page-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 2px;
}

.page-status-row .status-dot {
  margin: 0;
}

.native-switch {
  display: inline-flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
}

.native-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.native-switch span {
  position: relative;
  width: 52px;
  height: 30px;
  display: block;
  border-radius: 999px;
  background: #e5e8f0;
  transition: background .18s ease;
}

.native-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  transition: transform .18s ease;
}

.native-switch input:checked + span {
  background: var(--purple);
}

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

/* Product edit actions */
.product-edit-actions {
  align-self: start;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.product-edit-actions .product-edit-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.product-edit-actions .product-edit-status {
  margin: 0;
}

.product-edit-actions .product-icon-actions form {
  display: flex;
  margin: 0;
}

@media (min-width: 720px) {
  .product-edit-actions {
    grid-column: 1;
  }

  .product-main-fields {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .category-admin-card {
    grid-template-columns: minmax(0, 1fr) 46px;
  }

  .category-admin-card .status-dot {
    grid-column: 1;
    grid-row: 2;
  }

  .category-admin-card form {
    grid-column: 1;
    grid-row: 3;
  }

  .category-admin-card .category-edit-button {
    grid-column: 2;
    grid-row: 1 / span 3;
  }

  .page-list-card {
    grid-template-columns: minmax(0, 1fr) 46px;
  }

  .page-list-card .badge {
    grid-column: 1;
    grid-row: 2;
  }
}

@media (max-width: 719px) {
  .product-page {
    padding-top: 70px;
    padding-bottom: 92px;
  }

  .product-page-heading {
    margin: 0 -15px;
    padding: 12px 15px 10px;
    border-bottom: 0;
    background: #fff;
  }

  .product-page-heading h1 {
    margin: 0;
    font-size: 25px;
    line-height: 1.12;
  }

  .product-editor-form {
    gap: 0;
    padding-bottom: 0;
  }

  .product-side-panel {
    gap: 0;
  }

  .product-side-panel .photo-editor {
    margin: 0 -15px;
    padding: 12px 15px 16px;
    border: 0;
    border-radius: 0;
  }

  .product-side-panel .main-photo-drop {
    height: 188px;
    border-radius: 14px;
  }

  .product-side-panel .main-photo-drop img {
    border-radius: 13px;
  }

  .product-side-panel .image-preview-grid {
    gap: 8px;
  }

  .product-side-panel .image-preview-card {
    border-radius: 13px;
  }

  .product-edit-actions {
    margin: 0 -15px;
    padding: 12px 15px 14px;
    border-right: 0;
    border-left: 0;
    border-bottom: 0;
    border-radius: 0;
  }

  .product-edit-actions .product-icon-actions {
    gap: 8px;
  }

  .product-edit-actions .icon-action {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 14px;
  }

  .product-main-fields {
    margin-top: 0;
    padding: 16px 15px 110px;
    border-top: 1px solid var(--line);
  }

  .product-form-actions {
    box-shadow: 0 -10px 28px rgba(15, 23, 42, .06);
  }
}

@media (max-width: 760px) {
  .settings-base-row {
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 10px;
  }

  .lead-card-rich {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .lead-card.lead-card-rich {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .lead-side {
    gap: 8px;
  }

  .lead-preview {
    width: 76px;
    height: 76px;
    border-radius: 16px;
  }

  .lead-details-btn {
    width: 76px;
    min-height: 34px;
    padding: 0 10px;
    font-size: 13px;
  }

  .lead-top {
    display: grid;
    gap: 8px;
  }

  .lead-top strong {
    font-size: 16px;
  }

  .lead-detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .lead-detail-status {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 1040px) {
  .catalog-app-header {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    margin: 0 0 40px;
    border: 1px solid #f1f2f5;
    box-shadow: 0 1px 0 rgba(18, 23, 42, .025);
    border-radius: 0;
    transform: none;
  }

  .catalog-app-header-inner {
    max-width: 1344px;
    margin: 0 auto;
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .catalog-mobile-tools {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) auto;
    gap: 14px;
    justify-content: flex-end;
    align-items: center;
    margin: -64px 0 22px;
    pointer-events: none;
  }

  .catalog-inline-search {
    display: grid;
    pointer-events: auto;
    background: #f6f6f8;
    color: #8a90a3;
    box-shadow: none;
  }

  .catalog-view-toggle {
    pointer-events: auto;
    background: #f6f6f8;
    box-shadow: none;
  }

  .catalog-view-toggle button.active {
    box-shadow: none;
  }

  .catalog-view-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .catalog-view-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .catalog-view-grid .catalog-card {
    display: grid;
    grid-template-columns: 47% minmax(0, 1fr);
    min-height: 360px;
  }

  .catalog-view-grid .catalog-card-image,
  .catalog-view-grid .catalog-card img {
    height: 100%;
  }

  .catalog-view-grid .catalog-card img {
    aspect-ratio: auto;
    border-radius: 30px 0 0 30px;
  }

  .catalog-view-grid .catalog-card-body {
    align-content: center;
    padding: 24px;
  }

  .catalog-view-grid .catalog-card h2 {
    font-size: 24px;
  }

  .catalog-view-grid .catalog-card-title {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalog-view-grid .catalog-card-title strong {
    font-size: 22px;
  }
}

/* Public catalog final layout reset */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.catalog.catalog-app {
  background: #fff;
}

@media (min-width: 1040px) {
  .catalog.catalog-app {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 0 0px;
  }

  .catalog-app-header {
    position: static;
    inset: auto;
    width: 100%;
    min-height: 92px;
    margin: 0 0 24px;
    padding: 0;
    display: block;
    border: 0;
    border-bottom: 1px solid #eef0f4;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 1px 0 rgba(18, 23, 42, .02);
    transform: none;
  }

  .catalog-app-header-inner,
  .catalog-store-head,
  .catalog-mobile-tools,
  .catalog-category-tabs,
  .catalog-grid,
  .catalog-page-wrap,
  .catalog-empty-state,
  .catalog-footer {
    width: min(calc(100% - 96px), 1344px);
    margin-right: auto;
    margin-left: auto;
  }

  .catalog-app-header-inner {
    min-height: 92px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
  }

  .catalog-header-nav {
    min-width: 0;
    display: flex;
    justify-content: center;
    gap: 18px;
  }

  .catalog-store-head {
    padding: 0 0 18px;
  }

  .catalog-page-wrap {
    padding-top: 0;
    padding-bottom: 58px;
  }

  .catalog-page-head h1 {
    font-size: 44px;
  }

  .catalog-mobile-tools {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin-top: 0;
    margin-bottom: 22px;
    pointer-events: none;
  }

  .catalog-inline-search {
    display: grid;
    pointer-events: auto;
    background: #f6f6f8;
    color: #8a90a3;
    box-shadow: none;
  }

  .catalog-view-toggle {
    pointer-events: auto;
    background: #f6f6f8;
    box-shadow: none;
  }

  .catalog-view-toggle button.active {
    box-shadow: none;
  }

  .catalog-category-tabs {
    margin-top: 0;
    margin-bottom: 34px;
    padding-right: 0;
    padding-left: 0;
  }

  .catalog-grid,
  .catalog-view-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }

  .catalog-view-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .catalog-view-grid .catalog-card {
    min-height: 360px;
    display: grid;
    grid-template-columns: 47% minmax(0, 1fr);
  }

  .catalog-view-grid .catalog-card-image,
  .catalog-view-grid .catalog-card img {
    height: 100%;
  }

  .catalog-view-grid .catalog-card img {
    aspect-ratio: auto;
    border-radius: 30px 0 0 30px;
  }

  .catalog-view-grid .catalog-card-body {
    align-content: center;
    padding: 24px;
  }

  .catalog-view-grid .catalog-card h2 {
    font-size: 24px;
  }

  .catalog-view-grid .catalog-card-title {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalog-view-grid .catalog-card-title strong {
    font-size: 22px;
  }

  .catalog-footer {
    width: 100%;
    margin-top: 56px;
    padding: 28px max(48px, calc((100% - 1344px) / 2)) 34px;
    border-top: 0;
    background: #f7f8f9;
    grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(160px, 1fr));
    gap: 44px;
    align-items: start;
  }

  .catalog-footer .catalog-brand {
    font-size: 22px;
  }

  .catalog-footer-section {
    gap: 12px;
  }

  .catalog-footer-section strong {
    margin-bottom: 2px;
  }

  .catalog-footer-section a {
    font-size: 15px;
  }

  .catalog-footer-no-pages {
    grid-template-columns: minmax(260px, 1.4fr) repeat(2, minmax(180px, 1fr));
  }
}

/* Public product page desktop layout */
@media (min-width: 1040px) {
  .product-public-page.catalog.catalog-app {
    display: grid;
    grid-template-columns:
      minmax(48px, 1fr)
      minmax(360px, 500px)
      minmax(0, 700px)
      minmax(48px, 1fr);
    column-gap: 48px;
    align-items: start;
    padding-bottom: 72px;
  }

  .product-public-page .catalog-app-header,
  .product-public-page .catalog-drawer-overlay,
  .product-public-page .catalog-drawer,
  .product-public-page .cart-item-source,
  .product-public-page .product-public-footer {
    grid-column: 1 / -1;
  }

  .product-public-page .product-breadcrumbs {
    grid-column: 2 / 4;
    width: 100%;
    margin: 0 0 18px;
    padding: 0;
  }

  .product-public-page .product-public-gallery {
    grid-column: 2 / 3;
    position: sticky;
    top: 28px;
    min-width: 0;
  }

  .product-public-page .product-public-info {
    grid-column: 3 / 4;
    min-width: 0;
    padding-top: 0;
  }

  .product-public-page .product-public-slider {
    border-radius: 30px;
  }

  .product-public-page .product-public-slider img {
    max-height: 680px;
    border-radius: 30px;
  }

  .product-public-page .product-public-title {
    gap: 18px;
    padding-bottom: 0;
    border-bottom: 1px solid var(--line);
  }

  .product-public-page .product-public-title h1 {
    max-width: 680px;
    font-size: 42px;
    line-height: 1.02;
  }

  .product-public-page .product-public-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 0 0 20px;
  }

  .product-public-page .product-public-meta .category-chip {
    width: fit-content;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 999px;
    background: #f3f5f8;
    color: #4e5870;
    font-size: 14px;
  }

  .product-public-page .product-public-title strong {
    color: #137e58;
    font-size: 28px;
    line-height: 1;
  }

  .product-public-page .product-purchase-panel {
    display: grid;
    gap: 14px;
    padding: 12px 0 4px;
    border-bottom: 0;
  }

  .product-public-page .product-purchase-price {
    display: block;
    color: #333844;
    font-size: 36px;
    line-height: 1;
    font-weight: 950;
  }

  .product-public-page .product-quantity-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    justify-content: start;
    gap: 14px;
  }

  .product-public-page .product-quantity-row span {
    color: #6d7484;
    font-size: 15px;
    font-weight: 850;
  }

  .product-public-page .product-quantity-control {
    width: 154px;
    min-height: 44px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: #fff;
  }

  .product-public-page .product-quantity-control button {
    min-height: 44px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #2b3142;
    font-size: 20px;
    font-weight: 900;
  }

  .product-public-page .product-quantity-control input {
    min-height: 44px;
    padding: 0;
    border: 0;
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
    border-radius: 0;
    text-align: center;
    font-size: 16px;
    font-weight: 900;
    appearance: textfield;
  }

  .product-public-page .product-quantity-control input::-webkit-outer-spin-button,
  .product-public-page .product-quantity-control input::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
  }

  .product-public-page .product-desktop-actions {
    display: grid;
    grid-template-columns: minmax(160px, 224px) minmax(190px, 1fr) auto;
    gap: 12px;
    align-items: center;
  }

  .product-public-page .product-desktop-order {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 950;
  }

  .product-public-page .product-desktop-cart {
    min-height: 52px;
    border: 1px solid #2b3142;
    border-radius: 14px;
    background: #fff;
    color: #2b3142;
    font-size: 16px;
    font-weight: 900;
  }

  .product-public-page .product-desktop-favorite {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 4px;
    background: transparent;
    color: #2f3544;
    white-space: nowrap;
    font-size: 16px;
    font-weight: 850;
  }

  .product-public-page .product-desktop-favorite svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .product-public-page .product-public-fields {
    display: grid;
    gap: 0;
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
  }

  .product-public-page .product-public-fields div {
    padding: 14px 16px;
    background: #fff;
  }

  .product-public-page .product-public-description {
    padding-top: 18px;
  }

  .product-public-page .product-public-description h2 {
    font-size: 22px;
  }

  .product-public-page .product-order-section {
    margin-top: 12px;
    padding: 22px;
    border-radius: 26px;
  }

  .product-public-page .product-order-form {
    gap: 12px;
  }

  .product-public-page .product-public-footer {
    margin-top: 72px;
  }

  .product-public-page .product-action-bar {
    display: none;
  }
}
