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

:root {
  --bg: #f7f4ef;
  --bg2: #ffffff;
  --bg3: #eee8df;
  --surface: #ffffff;
  --border: rgba(17, 17, 17, 0.08);
  --border2: rgba(17, 17, 17, 0.16);
  --text: #111111;
  --text2: #55514c;
  --text3: #8a837a;
  --accent: #c1121f;
  --accent2: #e01b2f;
  --green: #237a4b;
  --font: "Inter", sans-serif;
  --font-serif: "PT Serif", serif;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(17, 17, 17, 0.025) 1px, transparent 1px);
  background-size: 88px 88px;
  opacity: .35;
  z-index: -1;
}

.sf-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 40px;
  height: 68px;
  background: rgba(247, 244, 239, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.sf-logo {
  flex-shrink: 0;
  text-decoration: none;
  color: var(--text);
  font: 900 26px/1 "Inter", sans-serif;
  letter-spacing: -1px;
}

.sf-logo::after {
  content: "Ъ";
  color: var(--accent);
  font-family: var(--font-serif);
  margin-left: 2px;
}

.sf-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-left: auto;
}

.sf-search {
  flex: 1;
  min-width: 220px;
  max-width: 520px;
}

.sf-search input {
  width: 100%;
  height: 38px;
}

.sf-menu a {
  text-decoration: none;
  color: var(--text2);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 7px;
  border: 1px solid transparent;
  transition: all .2s ease;
}

.sf-menu a:hover {
  color: var(--text);
  background: var(--bg3);
  border-color: var(--border2);
}

.sf-catalog-btn {
  border: 1px solid #111;
  background: #111;
  color: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  font: 700 13px/1 var(--font);
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease;
}

.sf-catalog-btn:hover { transform: translateY(-1px); opacity: .92; }

.sf-catalog-overlay {
  position: fixed;
  inset: 68px 0 0;
  background: rgba(8, 8, 8, 0.35);
  z-index: 104;
}

.sf-catalog-mega {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  height: min(560px, calc(100vh - 68px));
  background: #fff;
  border-bottom: 1px solid var(--border);
  z-index: 105;
}

.sf-catalog-wrap {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  height: 100%;
}

.sf-catalog-side {
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 8px;
}

.sf-catalog-l1 { display: grid; gap: 4px; }

.sf-catalog-l1-item {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  min-height: 42px;
  text-align: left;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font: 600 13px/1.2 var(--font);
}

.sf-catalog-l1-item span { color: var(--text3); font-size: 12px; }
.sf-catalog-l1-item:hover { background: #f3f4f6; }
.sf-catalog-l1-item.active { background: #111; color: #fff; }
.sf-catalog-l1-item.active span { color: rgba(255,255,255,.72); }

.sf-catalog-main {
  overflow-y: auto;
  padding: 20px 26px;
}

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

.sf-catalog-col h5 { margin: 0 0 10px; font-size: 15px; line-height: 1.2; }
.sf-catalog-col h5 a { color: #121212; text-decoration: none; }

.sf-catalog-col a {
  display: block;
  color: #4d4d4d;
  text-decoration: none;
  font-size: 13px;
  margin: 0 0 8px;
}

.sf-catalog-col a:hover { color: #111; }

.sf-catalog-popular {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sf-catalog-popular b { font-size: 12px; color: var(--text3); font-weight: 700; }

.sf-catalog-chip {
  text-decoration: none;
  color: #2f2f2f;
  background: #f2f3f5;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
}

.sf-catalog-chip:hover { color: #111; background: #e8ebef; }

.sf-authbox {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

#sf-auth-state {
  font-size: 12px;
  color: var(--text2);
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 999px;
}

.sf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: 8px;
  text-decoration: none;
  padding: 9px 14px;
  font: 600 13px/1.2 var(--font);
  cursor: pointer;
  transition: all .2s ease;
}

.sf-btn:hover {
  background: var(--accent2);
  border-color: var(--accent2);
  transform: translateY(-1px);
}

.sf-btn-sm {
  padding: 7px 10px;
  font-size: 12px;
}

.sf-btn-light {
  background: var(--bg3);
  color: var(--text);
  border-color: var(--border2);
}

.sf-btn-light:hover {
  background: var(--bg2);
  color: var(--text);
}

.sf-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
}

.sf-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.4);
  backdrop-filter: blur(2px);
}

.sf-modal-card {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100vw - 24px));
  background: #fffdfa;
  border: 1px solid var(--border2);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 20px 56px rgba(17, 17, 17, 0.22);
}

.sf-modal-card h2 {
  margin: 0 0 8px;
  font-size: 30px;
  letter-spacing: -1px;
}

.sf-modal-sub {
  margin: 0 0 14px;
  color: var(--text2);
}

.sf-modal-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 8px;
}

.sf-modal-form input {
  min-width: 0;
}

.sf-modal-x {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border2);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: 19px;
  line-height: 1;
}

main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body { padding-top: 68px; }
body[data-page="admin"],
body[data-page="operator"],
body[data-page="superadmin"],
body[data-page="seller-entry"] { padding-top: 0; }

.sf-page {
  display: grid;
  gap: 16px;
}
.home-shell { gap: 18px; }

.sf-hidden { display: none; }

.sf-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.seller-entry-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 1fr) 520px;
}

.seller-entry-brand {
  padding: 34px clamp(28px, 5vw, 72px);
  background:
    radial-gradient(circle at 88% 10%, rgba(193, 18, 31, 0.10), transparent 34%),
    radial-gradient(circle at 15% 100%, rgba(197, 155, 75, 0.16), transparent 34%),
    #f6f2ec;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.seller-entry-brand::before {
  content: "�";
  position: absolute;
  right: -30px;
  bottom: -130px;
  font-family: var(--font-serif);
  font-size: 420px;
  line-height: .8;
  color: rgba(16, 16, 16, 0.035);
  pointer-events: none;
}

.seller-entry-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.seller-entry-logo { font: 900 30px/1 var(--font); letter-spacing: -1px; text-decoration: none; color: var(--text); z-index: 1; }
.seller-entry-logo::after { content: "�"; color: var(--accent); margin-left: 2px; }
.seller-entry-links { display: flex; gap: 18px; z-index: 1; }
.seller-entry-links a { color: var(--text2); text-decoration: none; font-size: 13px; }
.seller-entry-hero { max-width: 650px; padding: 86px 0 56px; z-index: 1; }
.seller-entry-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(184, 15, 24, .18);
  background: rgba(184, 15, 24, .09);
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 24px;
}
.seller-entry-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.seller-entry-hero h1 { margin: 0 0 18px; font: 900 clamp(48px, 6vw, 92px)/.94 var(--font); letter-spacing: -0.075em; }
.seller-entry-hero p { margin: 0; color: var(--text2); font-size: 18px; line-height: 1.65; max-width: 560px; }
.seller-entry-cta-row { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.seller-entry-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; z-index: 1; }
.seller-entry-point {
  background: rgba(255, 255, 255, .48);
  border: 1px solid var(--border2);
  border-radius: 18px;
  padding: 18px;
  min-height: 112px;
  backdrop-filter: blur(10px);
}
.seller-entry-point b { display: block; font-size: 22px; letter-spacing: -0.04em; margin-bottom: 6px; }
.seller-entry-point span { color: var(--text2); font-size: 13px; line-height: 1.45; }

.seller-entry-card {
  background: rgba(255, 255, 255, 0.58);
  border-left: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.seller-entry-card > * {
  width: 100%;
  max-width: 430px;
}

.seller-entry-card-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.seller-entry-card h2 { margin: 0 0 10px; font-size: 32px; letter-spacing: -0.055em; }
.seller-entry-sub { margin: 0 0 18px; color: var(--text2); font-size: 14px; line-height: 1.55; }
.seller-entry-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border-radius: 14px;
  background: #fbf7f0;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.seller-entry-tabs button {
  border: 0;
  background: transparent;
  color: var(--text2);
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;
}
.seller-entry-tabs button.active { background: var(--text); color: #fff; }
.seller-entry-field { margin: 10px 0 6px; }
.seller-entry-field label { font-size: 13px; font-weight: 800; }
.seller-entry-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 10px; }
.seller-entry-row.single { grid-template-columns: 1fr; }
.seller-entry-row input { width: 100%; height: 48px; border: 1px solid var(--border2); border-radius: 13px; padding: 0 14px; background: #fff; }
.seller-entry-row input:focus { outline: none; border-color: rgba(193, 18, 31, .55); box-shadow: 0 0 0 4px rgba(193, 18, 31, .08); }
.pass-row { position: relative; grid-template-columns: 1fr auto; }
.pass-row input { padding-right: 88px; }
.seller-pass-toggle {
  position: absolute;
  right: 7px;
  top: 7px;
  height: 34px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid var(--border2);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.seller-entry-actions { margin-top: 4px; display: flex; gap: 8px; flex-wrap: wrap; }
.seller-entry-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  color: #9d968e;
  font-size: 12px;
}
.seller-entry-divider::before,
.seller-entry-divider::after {
  content: "";
  height: 1px;
  background: var(--border);
  flex: 1;
}
.seller-entry-hint {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fbf7f0;
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 13px;
}
.seller-entry-hint b { color: var(--text); }

@media (max-width: 980px) {
  .seller-entry-shell { grid-template-columns: 1fr; }
  .seller-entry-brand { padding: 26px 22px 24px; }
  .seller-entry-hero { padding: 52px 0 30px; }
  .seller-entry-points { grid-template-columns: 1fr 1fr 1fr; }
  .seller-entry-card { border-left: 0; border-top: 1px solid var(--border2); }
}

@media (max-width: 720px) {
  .seller-entry-links { display: none; }
  .seller-entry-points { grid-template-columns: 1fr; }
  .seller-entry-hero h1 { font-size: clamp(42px, 14vw, 70px); }
  .seller-entry-hero p { font-size: 16px; }
  .seller-entry-cta-row { display: none; }
  .seller-entry-card { padding: 18px 14px 24px; }
}

.sf-block h1,
.sf-block h2 {
  margin: 0 0 14px;
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: -0.5px;
}

.sf-block h1 { font-size: clamp(26px, 2.8vw, 38px); }
.sf-block h2 { font-size: clamp(22px, 2.2vw, 30px); }

.sf-hero {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  padding: 34px;
  background: linear-gradient(135deg, #ffffff 0%, #f2ede5 100%);
  border: 1px solid var(--border2);
  border-radius: 18px;
}

.sf-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
}

.home-hero {
  min-height: calc(100vh - 140px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  background: linear-gradient(135deg, #fff 0%, #f2ede5 100%);
  border: 1px solid var(--border2);
  border-radius: 18px;
  padding: 36px;
}

.home-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(44px, 7vw, 88px);
  line-height: .95;
  letter-spacing: -2.5px;
}

.home-copy h1 em {
  color: var(--accent);
  font-style: normal;
}

.home-copy p {
  margin: 0 0 18px;
  max-width: 520px;
  color: var(--text2);
}

.home-tag {
  display: inline-flex;
  border: 1px solid var(--border2);
  padding: 5px 12px;
  font-size: 12px;
  margin-bottom: 14px;
}

.home-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.home-stats {
  display: flex;
  gap: 28px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.home-stats strong { font-size: 28px; line-height: 1; }
.home-stats span { display: block; color: var(--text3); font-size: 12px; }

.home-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.home-product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  transition: transform .2s ease, border-color .2s ease;
}

.home-product-card:hover {
  transform: translateY(-3px);
  border-color: var(--border2);
}

.home-product-wide {
  grid-column: span 2;
  min-height: 180px;
  background: linear-gradient(140deg, #f0e9df 0%, #fff 100%);
}

.home-product-card h3 {
  margin: 8px 0 0;
  font-size: 18px;
  line-height: 1.2;
}

.home-product-card p {
  margin: 8px 0 0;
  color: var(--text2);
  font-size: 13px;
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  padding: 3px 9px;
}

.sf-tag {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--border2);
  border-radius: 999px;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 10px;
}

.sf-hero-title {
  margin: 0 0 10px;
  font-size: clamp(30px, 4.5vw, 54px);
  line-height: 1;
  letter-spacing: -1.2px;
}

.sf-hero-sub {
  margin: 0 0 16px;
  max-width: 640px;
  color: var(--text2);
}

.sf-stats {
  display: flex;
  gap: 16px;
  margin-top: 18px;
}

.sf-stats div {
  display: grid;
  gap: 2px;
}

.sf-stats strong {
  font-size: 18px;
  line-height: 1;
}

.sf-stats span {
  font-size: 12px;
  color: var(--text3);
}

.sf-hero-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sf-promo-card {
  background: #fff;
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 14px;
}

.sf-promo-card h3 {
  margin: 4px 0 6px;
  font-size: 16px;
  line-height: 1.25;
}

.sf-promo-card p {
  margin: 0;
  font-size: 13px;
  color: var(--text2);
}

.sf-promo-wide {
  grid-column: span 2;
  background: linear-gradient(140deg, #fff 0%, #f3ece3 100%);
}

.sf-promo-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  padding: 3px 8px;
}

.sf-marquee {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #111;
  color: #fff;
  padding: 10px 0;
}

.sf-marquee-track {
  display: inline-flex;
  gap: 20px;
  white-space: nowrap;
  animation: sf-scroll 28s linear infinite;
  padding-left: 16px;
}

.sf-marquee-track span {
  font-size: 12px;
  letter-spacing: .2px;
  opacity: .9;
}

@keyframes sf-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.sf-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

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

.section-header h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -1px;
}

.home-section {
  background: transparent;
}

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

.sf-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.products-grid.sf-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.sf-promo-section {
  padding: 0;
}

.sf-promo-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
}

.sf-promo-banner {
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 18px;
  min-height: 170px;
  display: grid;
  align-content: end;
  gap: 8px;
}

.sf-promo-banner h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
}

.sf-promo-banner p {
  margin: 0;
  color: var(--text2);
}

.sf-promo-banner-main {
  background: linear-gradient(140deg, #111 0%, #2a2a2a 100%);
  color: #fff;
}

.sf-promo-banner-main p {
  color: rgba(255, 255, 255, 0.8);
}

.sf-promo-banner-light {
  background: #fff;
}

.sf-promo-banner-accent {
  background: linear-gradient(140deg, #c1121f 0%, #9e0f19 100%);
  color: #fff;
}

.sf-promo-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
  opacity: .85;
}

.sf-features {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.sf-features article {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  display: grid;
  gap: 4px;
}

.sf-features strong {
  font-size: 14px;
}

.sf-features span {
  color: var(--text3);
  font-size: 12px;
}

.sf-footer {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.sf-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 14px;
}

.sf-footer h3,
.sf-footer h4 {
  margin: 0 0 8px;
}

.sf-footer p {
  margin: 0;
  color: var(--text2);
}

.sf-footer a {
  display: block;
  margin-bottom: 6px;
  color: var(--text2);
  text-decoration: none;
  font-size: 13px;
}

.sf-footer a:hover {
  color: var(--text);
}

.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 92px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.admin-sidebar h1 {
  margin: 0 0 10px;
  font-size: 24px;
}

.admin-nav {
  display: grid;
  gap: 8px;
}

.admin-nav a {
  text-decoration: none;
  color: var(--text2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  transition: all .2s ease;
}

.admin-nav a:hover {
  color: var(--text);
  border-color: var(--border2);
  background: var(--bg3);
}

.admin-main {
  display: grid;
  gap: 12px;
}
.sa-shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 100vh; }
.sa-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  background: #111;
  color: #fff;
  padding: 22px 18px;
  display: grid;
  align-content: start;
  gap: 18px;
}
.sa-brand {
  border-bottom: 1px solid rgba(255,255,255,.12);
  padding-bottom: 14px;
}
.sa-brand-mark { font-size: 24px; font-weight: 900; letter-spacing: -1px; }
.sa-brand-mark span { color: var(--accent); margin-left: 3px; }
.sa-brand small { color: #979797; text-transform: uppercase; letter-spacing: .08em; font-size: 10px; }
.sa-group { display: grid; gap: 6px; }
.sa-group-title { font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: #787878; padding: 0 8px; font-weight: 700; }
.sa-nav { display: grid; gap: 5px; }
.sa-nav-btn {
  text-align: left;
  width: 100%;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,.03);
  color: #d0d0d0;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.sa-nav-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.sa-nav-btn.active { background: #fff; color: #111; border-color: #fff; }
.sa-content { padding: 24px 26px 30px; min-width: 0; }
.sa-topbar { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.sa-crumbs { font-size: 12px; color: var(--text3); margin-bottom: 4px; }
.sa-topbar h1 { margin: 0; font-size: 34px; line-height: 1.06; letter-spacing: -1.2px; }
.sa-top-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.sa-search { position: relative; width: min(340px, 38vw); }
.sa-search input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 0 36px 0 12px;
}
.sa-search span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--text3); }
.sa-btn {
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 0 14px;
  font-weight: 700;
  cursor: pointer;
}
.sa-btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.sa-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-bottom: 12px; }
.sa-stats.sf-hidden { display: none !important; }
.sa-stat { border: 1px solid var(--border); background: #fff; border-radius: 14px; padding: 12px; }
.sa-stat-label { font-size: 12px; color: var(--text3); margin-bottom: 8px; }
.sa-stat-value { font-size: 24px; font-weight: 900; letter-spacing: -.5px; }
.sa-workspace { border: 1px solid var(--border); border-radius: 18px; background: #fff; overflow: hidden; }
.sa-workspace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg,#fff,#fbf8f3);
}
.sa-title { font-size: 18px; font-weight: 800; }
.sa-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.sa-tab {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text2);
  text-decoration: none;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.sa-tab.active { background: #111; color: #fff; border-color: #111; }
.sa-toolbar { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.sa-toolbar input { height: 38px; min-width: 120px; }
.sa-toolbar .sf-btn { height: 38px; border-radius: 10px; padding: 0 12px; }
.sa-workspace-content { padding: 14px; }
.sa-workspace-content .sf-pre { margin: 0; max-height: 600px; }
.sa-note { color: var(--text2); font-size: 14px; }
.sa-note.sa-ok {
  color: #18784a;
}
.sa-note.sa-warn {
  color: #8f0f18;
  background: #fff1f2;
  border: 1px solid rgba(143, 15, 24, 0.22);
  border-radius: 10px;
  padding: 8px 10px;
}
.sa-missing-field {
  border-color: rgba(184, 15, 24, .62) !important;
  box-shadow: 0 0 0 4px rgba(184, 15, 24, .11) !important;
}
.sa-products-wrap { display: grid; gap: 10px; }
.sa-products-table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.sa-products-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  background: #fff;
}
.sa-products-table th,
.sa-products-table td {
  border-bottom: 1px solid var(--border);
  padding: 11px 12px;
  font-size: 13px;
  text-align: left;
  vertical-align: middle;
}
.sa-products-table th {
  background: #f8f3ea;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text2);
}
.sa-products-name { font-weight: 700; }
.sa-products-meta { color: var(--text3); font-size: 12px; }
.sa-products-actions { display: flex; gap: 6px; justify-content: flex-end; }
.sa-mini-btn {
  border: 1px solid var(--border2);
  border-radius: 8px;
  background: #fff;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.sa-mini-btn:hover { background: #f8f3ea; }
.sa-mini-btn.approve { color: #19663e; border-color: rgba(25, 102, 62, .35); }
.sa-mini-btn.reject { color: #8f0f18; border-color: rgba(143, 15, 24, .35); }
.sa-edit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 14px;
}
.sa-edit-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  overflow: visible;
  box-shadow: 0 18px 50px rgba(20, 20, 20, 0.07);
}
.sa-edit-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg,#fff,#fbf8f3);
}
.sa-edit-head h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.2px;
}
.sa-edit-body {
  display: grid;
  gap: 14px;
  padding: 18px 20px 20px;
}
.sa-edit-body label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--text2);
  font-weight: 700;
}
.sa-edit-body input,
.sa-edit-body select,
.sa-edit-body textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  padding: 9px 10px;
  font: inherit;
}
.sa-edit-body textarea {
  min-height: 100px;
  resize: vertical;
}
.sa-edit-check {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px !important;
}
.sa-edit-check input {
  width: 16px;
  height: 16px;
}
.sa-edit-status {
  font-size: 13px;
  color: var(--text2);
}
.sa-edit-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.sa-pe-topbar {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
  margin-bottom: 14px;
}
.sa-pe-crumbs { color: var(--text3); font-size: 12px; margin-bottom: 6px; }
.sa-pe-title { margin: 0; font-size: 34px; line-height: 1.1; letter-spacing: -1.2px; }
.sa-pe-top-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sa-pe-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 14px;
  align-items: start;
}
.sa-editor-mode .sa-workspace {
  border: 0;
  background: transparent;
  overflow: visible;
}
.sa-editor-mode .sa-workspace-head {
  border: 0;
  background: transparent;
  padding: 0;
  margin-bottom: 8px;
}
.sa-editor-mode .sa-title,
.sa-editor-mode .sa-tabs {
  display: none !important;
}
.sa-pe-stack { display: grid; gap: 14px; }
.sa-pe-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sa-pe-grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.sa-pe-slug-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.sa-pe-side { position: sticky; top: 18px; display: grid; gap: 14px; }
.sa-pe-photo-grid {
  display: grid;
  grid-template-columns: 320px minmax(280px, 1fr) minmax(260px, 1fr);
  gap: 10px;
  align-items: start;
}
.sa-pe-photo-main {
  width: 320px;
  max-width: 100%;
  height: 220px;
  min-height: 220px;
  max-height: 220px;
  border: 1px dashed var(--border2);
  border-radius: 18px;
  background: #f5eee4;
  display: grid;
  place-items: center;
  font-size: 58px;
  color: var(--text2);
  position: relative;
  overflow: hidden;
  align-self: start;
  justify-self: start;
}
.sa-pe-photo-main.empty { border-style: dashed; }
.sa-pe-photo-main span {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11px;
  font-weight: 800;
  background: #111;
  color: #fff;
  padding: 3px 7px;
  border-radius: 999px;
}
.sa-pe-photo-stack { display: grid; gap: 8px; }
.sa-pe-photo-item {
  min-height: 72px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 10px;
  color: var(--text3);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sa-pe-photo-item.muted { display: grid; place-items: center; color: var(--text3); }
.sa-pe-photo-preview-main {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  margin: 0;
  object-fit: contain;
  object-position: center;
  border-radius: 17px;
  display: block;
}
.sa-pe-photo-preview {
  width: 100%;
  height: 58px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 6px;
}
.sa-pe-photo-fallback {
  display: grid;
  place-items: center;
  background: #f0e8dc;
  color: var(--text3);
}
.sa-pe-photo-path {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}
.sa-pe-photo-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.sa-pe-photo-upload {
  min-height: 72px;
  border: 1px dashed var(--border2);
  border-radius: 14px;
  background: #fbf8f3;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  text-align: center;
  padding: 10px;
  cursor: pointer;
}
.sa-pe-photo-upload strong { font-size: 13px; }
.sa-pe-photo-upload span { color: var(--text3); font-size: 12px; }
.sa-pe-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 13px 14px;
  font-size: 13px;
}
.sa-pe-toggle strong { font-size: 13px; }
.sa-pe-toggle-note { margin-top: 4px; color: var(--text3); font-size: 12px; line-height: 1.4; }
.sa-pe-switch {
  width: 48px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: #ddd;
  position: relative;
  flex: 0 0 auto;
  cursor: pointer;
}
.sa-pe-switch::after {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 3px;
  left: 3px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}
.sa-pe-switch.on { background: #111; }
.sa-pe-switch.on::after { left: 23px; }
.sa-pe-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.sa-pe-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text2);
}
.sa-pe-chip.active { background: #111; color: #fff; border-color: #111; }
.sa-pe-attrs { display: grid; gap: 8px; }
.sa-pe-attr-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  overflow: visible;
}
.sa-pe-summary { display: grid; grid-template-columns: 68px 1fr; gap: 10px; align-items: center; }
.sa-pe-summary-icon {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #f0e8dc;
  display: grid;
  place-items: center;
  font-size: 28px;
}
.sa-pe-summary-name { font-size: 14px; font-weight: 800; margin-bottom: 3px; }
.sa-pe-summary-meta { color: var(--text2); font-size: 12px; }
.sa-pe-status-list { display: grid; gap: 8px; margin-top: 10px; }
.sa-pe-status-list > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
}
.sa-pe-status-list span { color: var(--text3); font-size: 12px; }
.sa-pe-status-list b { font-size: 12px; }
.sa-pe-seo-preview {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}
.sa-pe-seo-title { color: #1a0dab; font-weight: 700; margin-bottom: 3px; }
.sa-pe-seo-url { color: #168a4a; font-size: 12px; margin-bottom: 6px; }
.sa-pe-seo-desc { color: #545454; font-size: 13px; line-height: 1.45; }
.sa-pe-bottom {
  position: sticky;
  bottom: 10px;
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 13px 14px;
  background: rgba(247, 244, 239, 0.88);
  backdrop-filter: blur(16px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  z-index: 25;
  box-shadow: 0 14px 34px rgba(20,20,20,.10);
}
.sa-pe-bottom-actions { display: flex; gap: 8px; flex-wrap: wrap; }
/* Superadmin category picker popup */
.sa-cat-modal-card {
  width: min(1100px, calc(100vw - 24px));
  max-height: min(90vh, 920px);
  overflow: auto;
  padding: 0;
}
.sa-cat-topbar {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.sa-cat-step {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f6f1ff;
  color: #7c3aed;
  font-size: 12px;
  font-weight: 800;
}
.sa-cat-topbar h2 {
  margin: 8px 0 0;
  font-size: 20px;
  letter-spacing: -.02em;
}
.sa-cat-search-wrap {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.sa-cat-search-wrap input {
  width: 100%;
  height: 46px;
  border-radius: 14px;
}
.sa-cat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 14px;
  padding: 14px 20px 0;
}
.sa-cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
.sa-cat-level-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text3);
  margin-bottom: 8px;
  font-weight: 800;
}
.sa-cat-list {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
}
.sa-cat-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  cursor: pointer;
}
.sa-cat-item b { display: block; font-size: 14px; line-height: 1.3; }
.sa-cat-item small { color: var(--text3); font-size: 12px; }
.sa-cat-item em { font-style: normal; color: var(--text3); font-size: 18px; }
.sa-cat-item.active {
  border-color: rgba(124,58,237,.5);
  background: #f6f1ff;
}
.sa-cat-item.leaf {
  border-color: var(--border);
  background: #fff;
}
.sa-cat-item.leaf.active {
  border-color: rgba(24,120,74,.35);
  background: #f1fcf4;
}
.sa-cat-path-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  font-size: 13px;
}
.sa-cat-side {
  display: grid;
  align-content: start;
  gap: 10px;
}
.sa-cat-hint {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fffdfa;
  color: var(--text2);
  font-size: 13px;
  line-height: 1.45;
  padding: 10px 12px;
}
.sa-cat-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.sa-cat-footer {
  margin-top: 14px;
  border-top: 1px solid var(--border);
  padding: 12px 20px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.sa-cat-footer-note {
  color: var(--text3);
  font-size: 12px;
}
@media (max-width: 960px) {
  .sa-cat-layout { grid-template-columns: 1fr; }
  .sa-cat-grid { grid-template-columns: 1fr; }
  .sa-cat-footer { flex-direction: column; align-items: stretch; }
  .sa-cat-actions { justify-content: stretch; }
  .sa-cat-actions .sa-mini-btn,
  .sa-cat-actions .sf-btn { flex: 1; }
}
@media (max-width: 1100px) {
  .sa-pe-layout { grid-template-columns: 1fr; }
  .sa-pe-side { position: static; }
}
@media (max-width: 760px) {
  .sa-pe-grid2,
  .sa-pe-grid3,
  .sa-pe-slug-row,
  .sa-pe-photo-grid,
  .sa-pe-attr-row { grid-template-columns: 1fr; }
  .sa-pe-topbar,
  .sa-pe-bottom { flex-direction: column; align-items: stretch; }
  .sa-pe-top-actions,
  .sa-pe-bottom-actions { width: 100%; }
  .sa-pe-bottom-actions .sf-btn,
  .sa-pe-bottom-actions .sa-mini-btn { width: 100%; }
}
.sa-entry {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f8f3ea 0%, #efe7dc 100%);
  border: 0;
  border-radius: 0;
}
.sa-entry-card {
  width: min(560px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 18px 50px rgba(20,20,20,.08);
}
.sa-entry-card h1 { margin: 0 0 8px; font-size: 34px; letter-spacing: -1px; }
.sa-entry-sub { margin: 0 0 14px; color: var(--text2); }

.admin-table-wrap {
  margin-top: 10px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
  background: #fff;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
  vertical-align: middle;
}

.admin-table th {
  background: #f8f3ea;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: var(--text2);
}

.admin-table tr:hover td {
  background: #fffcf7;
}

.admin-pill {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--border2);
  background: #fff;
}

.admin-pill.blocked,
.admin-pill.rejected,
.admin-pill.limited {
  color: #8f0f18;
  border-color: rgba(143, 15, 24, 0.35);
  background: #fff1f2;
}

.admin-pill.active,
.admin-pill.approved {
  color: #19663e;
  border-color: rgba(25, 102, 62, 0.35);
  background: #eefaf2;
}

.admin-action-btn {
  border: 1px solid var(--border2);
  background: #fff;
  border-radius: 7px;
  padding: 5px 9px;
  font-size: 12px;
  cursor: pointer;
}

.admin-action-btn:hover {
  background: var(--bg3);
}

.hm-home { gap: 20px; }
.hm-hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: 120px 40px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  background: linear-gradient(135deg, #fff 0%, #f1ece4 100%);
}
.hm-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hm-blob { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .09; }
.hm-blob1 { width: 520px; height: 520px; right: -120px; top: -140px; background: var(--accent); }
.hm-blob2 { width: 380px; height: 380px; left: 20%; bottom: -180px; background: #111; }
.hm-hero-content { position: relative; z-index: 1; }
.hm-hero-tag {
  display: inline-flex;
  padding: 5px 14px;
  border: 1px solid var(--border2);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 22px;
}
.hm-hero-title {
  margin: 0 0 16px;
  font-size: clamp(46px, 6vw, 90px);
  line-height: .94;
  letter-spacing: -3px;
}
.hm-hero-title em { font-style: normal; color: var(--accent); }
.hm-hero-sub {
  margin: 0 0 30px;
  max-width: 500px;
  color: var(--text2);
  font-size: 17px;
}
.hm-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hm-hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.hm-hero-stats strong { display: block; font-size: 27px; line-height: 1; }
.hm-hero-stats span { color: var(--text3); font-size: 12px; }
.hm-hero-visual {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hm-preview {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.hm-preview:hover { transform: translateY(-4px); border-color: var(--border2); }
.hm-preview-wide {
  grid-column: span 2;
  min-height: 200px;
  background: linear-gradient(140deg, #efe8dd 0%, #fff 100%);
}
.hm-preview-media {
  position: relative;
  min-height: 110px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}
.hm-preview-wide .hm-preview-media {
  min-height: 160px;
  font-size: 48px;
}
.hm-preview-media-soft { background: #efe8dd; }
.hm-media-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 56px;
  border-radius: 999px;
  background: rgba(17, 17, 17, .08);
  color: #111;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .02em;
}
.hm-preview-body { padding: 14px; }
.hm-preview h3 { margin: 0; font-size: 17px; line-height: 1.24; }
.hm-preview p { margin: 6px 0 0; color: var(--text2); font-size: 13px; }
.hm-preview p span {
  margin-left: 8px;
  color: var(--text3);
  text-decoration: line-through;
}
.hm-chip {
  display: inline-flex;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 9px;
  position: absolute;
  top: 10px;
  left: 10px;
}
.hm-chip-alt { background: #111; }
.hm-marquee {
  background: #111;
  border-radius: 10px;
  overflow: hidden;
  padding: 11px 0;
}
.hm-marquee-track {
  display: inline-flex;
  gap: 26px;
  color: #fff;
  white-space: nowrap;
  animation: sf-scroll 24s linear infinite;
  font-size: 13px;
  padding-left: 20px;
}
.hm-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 8px;
  margin-bottom: 14px;
}
.hm-section { padding: 80px 40px; }
.hm-section-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -1.3px;
}
.hm-cats {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}
.hm-cat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 10px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  display: grid;
  gap: 4px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.hm-cat-card:hover {
  transform: translateY(-3px);
  border-color: var(--border2);
  background: #f8f3eb;
}
.hm-cat-card b { font-size: 28px; line-height: 1; font-weight: 400; }
.hm-cat-card strong { font-size: 13px; }
.hm-cat-card span { color: var(--text3); font-size: 11px; }
.hm-promo-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
}
.hm-promo { padding: 0 40px 80px; }
.hm-promo-card {
  min-height: 220px;
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  border: 1px solid var(--border2);
}
.hm-promo-card span { font-size: 11px; text-transform: uppercase; letter-spacing: .7px; opacity: .8; }
.hm-promo-card h3 { margin: 8px 0 0; font-size: 28px; line-height: 1.15; }
.hm-promo-card p { margin: 8px 0 0; font-size: 13px; opacity: .9; }
.hm-promo-card button {
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .14);
  color: inherit;
  border-radius: 8px;
  padding: 8px 12px;
  width: fit-content;
  font: 600 13px/1 var(--font);
  cursor: pointer;
}
.hm-promo-main { color: #fff; background: #111; }
.hm-promo-light { color: var(--text); background: #fff; }
.hm-promo-light button {
  border-color: var(--border2);
  background: transparent;
}
.hm-promo-accent { color: #fff; background: var(--accent); }
.hm-features {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0 40px;
}
.hm-features article { border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.hm-features article b {
  font-size: 19px;
  line-height: 1;
  display: inline-flex;
  margin-bottom: 8px;
}
.hm-features strong { font-size: 14px; }
.hm-features span { display: block; margin-top: 4px; font-size: 12px; color: var(--text3); }
.hm-footer {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin: 0 40px 40px;
}
.hm-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 24px;
}
.hm-footer h3,
.hm-footer h4 { margin: 0 0 8px; }
.hm-footer p { margin: 0; color: var(--text2); max-width: 280px; }
.hm-footer a { display: block; margin: 0 0 6px; color: var(--text2); text-decoration: none; font-size: 13px; }
.hm-footer a:hover { color: var(--text); }

/* Catalog Lite */
#page-catalog {
  font-family: "Manrope", "Inter", sans-serif;
}

#page-catalog .sf-pre {
  margin-top: 14px;
  background: #fffdfa;
}

.catalog-lite-top {
  padding: 28px 42px 18px;
}

.catalog-lite-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted, #77716a);
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.2;
  font-weight: 500;
}

.catalog-lite-breadcrumbs a {
  color: var(--muted, #77716a);
  text-decoration: none;
}

.catalog-lite-breadcrumbs a:hover {
  color: var(--ink, #171717);
}

.catalog-lite-breadcrumbs span {
  color: var(--soft, #aaa39a);
  font-weight: 500;
}

.catalog-lite-breadcrumbs b {
  color: var(--ink, #171717);
  font-weight: 700;
}

.catalog-lite-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  margin-bottom: 14px;
}

.catalog-lite-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.catalog-lite-eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--accent);
}

.catalog-lite-intro h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 34px);
  line-height: .98;
  letter-spacing: -2px;
}

.catalog-lite-title-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.catalog-lite-title-count {
  font-size: 14px;
  color: var(--text3);
  font-weight: 600;
}

.catalog-lite-title-count b {
  color: var(--text2);
  font-weight: 800;
}

.catalog-lite-intro h1 em { color: var(--accent); font-style: normal; }

.catalog-lite-text {
  max-width: 460px;
  color: var(--text2);
  font-weight: 600;
}

.catalog-lite-banner {
  min-height: 82px;
  border-radius: 22px;
  background: #111;
  color: #fff;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.catalog-lite-banner::after {
  content: "Є";
  position: absolute;
  right: 16px;
  bottom: -52px;
  font-family: var(--font-serif);
  font-size: 136px;
  line-height: 1;
  color: rgba(255,255,255,.06);
}

.catalog-lite-banner-main {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.catalog-lite-banner-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.catalog-lite-banner-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.catalog-lite-pill {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
  font-size: 13px;
  white-space: nowrap;
}

.catalog-lite-banner strong { display: block; font-size: 18px; letter-spacing: -.4px; }
.catalog-lite-banner span { color: rgba(255,255,255,.62); font-size: 13px; }
.catalog-lite-banner button {
  border: 0;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
}

.catalog-lite-shell {
  padding: 0 42px 80px;
  display: grid;
  grid-template-columns: 296px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.catalog-lite-filters {
  position: sticky;
  top: 92px;
  background: #fffdfa;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 20px;
}

.catalog-lite-filter-head h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.catalog-lite-filter-group {
  border-top: 1px solid var(--border);
  padding: 14px 0;
}

.catalog-lite-filter-group:first-of-type {
  border-top: 0;
  padding-top: 4px;
}

.catalog-lite-filter-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text2);
}

.catalog-lite-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.catalog-lite-filters input,
.catalog-lite-filters select {
  width: 100%;
  min-width: 0;
  height: 40px;
  border-radius: 10px;
}

.catalog-color-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.catalog-color-chip {
  border: 1px solid var(--border2);
  background: #fff;
  border-radius: 10px;
  width: 34px;
  height: 34px;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.catalog-color-chip.active {
  border-color: #111;
  box-shadow: inset 0 0 0 2px #111;
}

.catalog-color-dot {
  width: 100%;
  height: 100%;
  border-radius: 7px;
  border: 1px solid rgba(0,0,0,.09);
}

.catalog-color-toggle {
  margin-top: 8px;
  border: none;
  background: none;
  color: #1d4ed8;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.catalog-lite-content { min-width: 0; }

.catalog-lite-toolbar {
  margin-bottom: 14px;
  background: rgba(255,253,250,.72);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.catalog-lite-found {
  color: var(--text2);
  font-weight: 700;
}

.catalog-lite-found b { color: var(--text); }

.catalog-lite-sorts {
  display: flex;
  align-items: center;
  gap: 8px;
}

.catalog-lite-sorts select {
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border2);
  padding: 0 12px;
}

.catalog-lite-quick {
  display: flex;
  gap: 10px;
  overflow: auto;
  margin: 0 0 14px;
}

.quick-cat {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fffdfa;
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
}

.quick-cat.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

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

#page-catalog .catalog-lite-grid .sf-card {
  background: #fffdfa;
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  padding: 0;
  transition: .22s ease;
}

#page-catalog .catalog-lite-grid .sf-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(30,20,10,.08);
  border-color: rgba(193,18,31,.24);
}

#page-catalog .catalog-lite-grid .sf-card-img {
  height: 190px;
  border-radius: 0;
  margin: 0;
  background: linear-gradient(135deg, rgba(193,18,31,.08), transparent 52%), #f0ebe3;
}

#page-catalog .catalog-lite-grid .p-img {
  position: relative;
  display: grid;
  place-items: center;
  font-size: 52px;
}

#page-catalog .catalog-lite-grid .catalog-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

#page-catalog .catalog-lite-grid .tag {
  position: absolute;
  left: 12px;
  top: 12px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 800;
}

#page-catalog .catalog-lite-grid .fav {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border2);
  background: rgba(255,255,255,.9);
  cursor: pointer;
}

#page-catalog .catalog-lite-grid .p-body { padding: 14px; }

#page-catalog .catalog-lite-grid .brand {
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
  margin-bottom: 6px;
}

#page-catalog .catalog-lite-grid .name {
  font-size: 14px;
  font-weight: 700;
  min-height: 40px;
  line-height: 1.35;
}

#page-catalog .catalog-lite-grid .catalog-title-link {
  color: inherit;
  text-decoration: none;
}

#page-catalog .catalog-lite-grid .catalog-title-link:hover { text-decoration: underline; }

#page-catalog .catalog-lite-grid .rating {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 10px 0 12px;
  font-size: 12px;
  color: var(--text2);
}

#page-catalog .catalog-lite-grid .stars { color: #b89145; letter-spacing: -1px; }

#page-catalog .catalog-lite-grid .price-row { margin-bottom: 12px; }

#page-catalog .catalog-lite-grid .price {
  font-size: 21px;
  letter-spacing: -.7px;
  font-weight: 900;
}

#page-catalog .catalog-lite-grid .delivery {
  display: flex;
  justify-content: space-between;
  color: #218c56;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}

#page-catalog .catalog-lite-grid .delivery span:last-child {
  color: var(--text2);
  font-weight: 700;
}

#page-catalog .catalog-lite-grid .sf-card .sf-link {
  display: inline-flex;
  margin: 0;
  border: 1px solid #111;
  border-radius: 999px;
  background: #111;
  color: #fff;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

#page-catalog .catalog-lite-grid .buy {
  width: 100%;
  box-sizing: border-box;
  justify-content: center;
}

/* Product Lite */
#page-product { font-family: "Manrope", "Inter", sans-serif; }
.product-lite-wrap { max-width: 1240px; margin: 0 auto; padding: 28px 28px 80px; }
.product-lite-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text2);
  font-size: 13px;
  margin: 8px 0 20px;
  line-height: 1.2;
  font-weight: 500;
}
.product-lite-breadcrumbs a {
  color: var(--text2);
  text-decoration: none;
}
.product-lite-breadcrumbs a:hover { color: var(--accent); }
.product-lite-breadcrumbs span { color: var(--text3); }
.product-lite-breadcrumbs b { color: var(--text2); font-weight: 500; }
.product-lite-layout { display: grid; grid-template-columns: 112px minmax(520px,1.08fr) 420px; gap: 22px; align-items: start; }
.product-lite-thumbs { display: grid; gap: 10px; position: sticky; top: 94px; }
.product-lite-thumb { height: 92px; border-radius: 16px; border: 1px solid var(--border); background: #fffdfa; font-size: 34px; cursor: pointer; }
.product-lite-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; display: block; }
.product-lite-thumb.active { border-color: var(--accent); }
.product-lite-gallery { border: 1px solid var(--border); background: #fffdfa; border-radius: 28px; overflow: hidden; min-height: 620px; position: sticky; top: 94px; }
.product-lite-main-image {
  min-height: 520px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 38%, rgba(193,18,31,.10), transparent 36%), linear-gradient(135deg, #fffdfa, #efe6da);
  font-size: 150px;
}
.product-lite-main-photo {
  width: 100%;
  height: 520px;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
}
.product-lite-no-image {
  font-size: 24px;
  color: var(--text2);
  position: relative;
  z-index: 1;
}
.product-lite-main-image::before,
.product-lite-main-image::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 22%;
  pointer-events: none;
  filter: blur(16px);
  opacity: .6;
}
.product-lite-main-image::before {
  left: -6%;
  background: linear-gradient(90deg, rgba(23,23,23,.10), rgba(23,23,23,0));
}
.product-lite-main-image::after {
  right: -6%;
  background: linear-gradient(270deg, rgba(23,23,23,.10), rgba(23,23,23,0));
}
.product-lite-note { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border); padding: 18px 22px; color: var(--text2); font-size: 13px; }
.product-lite-note span { min-width: 0; }
#product-article {
  flex: 0 1 auto;
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}
.product-lite-buy { border: 1px solid var(--border); background: #fffdfa; border-radius: 28px; padding: 24px; position: sticky; top: 94px; box-shadow: 0 22px 70px rgba(23,23,23,.07); }
#product-view { margin-bottom: 14px; }
#product-view .product-lite-title { font-family: "PT Serif", serif; font-size: clamp(30px,3vw,44px); line-height: 1.08; margin: 0 0 10px; }
#product-view .product-lite-sub { margin: 0 0 10px; color: var(--text2); }
#product-view .product-lite-price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
#product-view .price { font-size: 36px; font-weight: 800; color: var(--text); margin: 0; }
#product-view .product-lite-old { color: var(--text3); text-decoration: line-through; font-weight: 700; }
#product-view .product-lite-saving { color: var(--accent); font-weight: 800; font-size: 13px; margin-bottom: 6px; }
#product-view h1 { font-family: "PT Serif", serif; font-size: clamp(30px,3vw,44px); line-height: 1.08; margin: 0 0 10px; }
#product-view p { margin: 0 0 8px; color: var(--text2); }
.product-state-card {
  border: 1px solid var(--border);
  background: #fff7f7;
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 10px;
}

.catalog-lite-pager {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text2);
  font-weight: 700;
}

.catalog-lite-pager .sf-btn[disabled] {
  opacity: .5;
  cursor: not-allowed;
}

.catalog-lite-empty {
  margin-top: 12px;
  border: 1px dashed var(--border2);
  border-radius: 12px;
  padding: 12px;
  color: var(--text2);
  background: #fffdfa;
  text-align: center;
}
.product-unavailable-panel {
  margin-top: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #fffdfa 0%, #f6efe6 100%);
  border-radius: 28px;
  padding: 30px;
}
.product-state-badge {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(143, 15, 24, .35);
  color: #8f0f18;
  background: #fff1f2;
  font-size: 12px;
  font-weight: 800;
  text-transform: lowercase;
}
.product-state-title { margin: 0; font-size: 28px; line-height: 1.1; }
.product-state-text { margin: 0; color: var(--text2); }
.product-state-actions { margin-top: 10px; }
.product-unavailable .product-lite-thumbs,
.product-unavailable .product-lite-main-image,
.product-unavailable .product-lite-note,
.product-unavailable .product-lite-layout,
.product-unavailable .product-lite-content-grid,
.product-unavailable .product-lite-related,
.product-unavailable .product-lite-choice-title,
.product-unavailable .product-lite-chips,
.product-unavailable .product-lite-order,
.product-unavailable .product-lite-quick-info {
  display: none !important;
}
.product-lite-vendor { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.product-lite-vendor-left { display: flex; align-items: center; gap: 12px; }
.product-lite-vendor-logo { width: 42px; height: 42px; border-radius: 14px; background: #171717; color: #fff; display: grid; place-items: center; font-weight: 800; }
.product-lite-vendor-name { font-weight: 800; }
.product-lite-vendor-meta { color: var(--text2); font-size: 12px; }
.product-lite-rating-pill { display: inline-flex; align-items: center; gap: 5px; padding: 8px 10px; border-radius: 999px; background: #f0ebe3; font-weight: 800; font-size: 13px; }
.product-lite-choice-title { font-size: 13px; color: var(--text2); font-weight: 700; margin: 14px 0 8px; }
.product-lite-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.product-lite-chip { border: 1px solid var(--border2); border-radius: 999px; background: #fffdfa; padding: 9px 13px; cursor: pointer; font-weight: 700; font-size: 13px; }
.product-lite-chip.active { background: #171717; color: #fff; border-color: #171717; }
.product-lite-quick-info { display: grid; gap: 10px; margin-top: 16px; }
.product-lite-info-line { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 12px; border-radius: 16px; background: #f0ebe3; }
.product-lite-info-line b { display: block; margin-bottom: 2px; }
.product-lite-info-line span { color: var(--text2); font-size: 13px; }
.product-lite-order h3 { margin: 12px 0 10px; }
.product-lite-order .sf-row { margin-bottom: 10px; }
.product-lite-order .sf-btn { width: 100%; margin-bottom: 10px; height: 48px; border-radius: 14px; }
.product-lite-content { margin-top: 24px; display: grid; gap: 18px; }
.product-lite-content-grid { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 22px; margin-top: 24px; }
.product-lite-panel { border: 1px solid var(--border); background: #fffdfa; border-radius: 28px; padding: 26px; }
.product-lite-panel h2 { font-family: "PT Serif", serif; font-size: 30px; margin: 0 0 16px; }
.product-lite-panel + .product-lite-panel { margin-top: 18px; }
.product-lite-desc p { color: var(--text2); margin: 0 0 10px; }
.product-lite-specs { display: grid; gap: 10px; }
.product-lite-spec { display: grid; grid-template-columns: 220px 1fr; gap: 14px; padding-bottom: 10px; border-bottom: 1px dashed var(--border2); }
.product-lite-spec span { color: var(--text2); }
.product-lite-spec b { color: var(--text); }
.product-lite-seller { position: sticky; top: 94px; height: fit-content; }
.product-lite-score { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.product-lite-score-item { background: #f0ebe3; border-radius: 18px; padding: 14px; }
.product-lite-score-item b { display: block; font-size: 22px; }
.product-lite-score-item span { color: var(--text2); font-size: 12px; }
.product-lite-review { padding: 16px 0; border-top: 1px solid var(--border); }
.product-lite-review:first-child { border-top: 0; padding-top: 0; }
.product-lite-review-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-weight: 800; }
.product-lite-review p { margin: 0; color: var(--text2); font-size: 14px; }
.product-lite-related { margin-top: 28px; }
.product-lite-related-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 16px; }
.product-lite-related-head h2 { margin: 0; font-family: "PT Serif", serif; font-size: 34px; }
.product-lite-related-head a { color: var(--accent); font-weight: 800; text-decoration: none; }
.product-lite-related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.product-lite-r-card { border: 1px solid var(--border); background: #fffdfa; border-radius: 22px; overflow: hidden; text-decoration: none; color: inherit; transition: .2s; }
.product-lite-r-card:hover { transform: translateY(-3px); box-shadow: 0 18px 46px rgba(23,23,23,.08); }
.product-lite-r-img { aspect-ratio: 1.1; background: #f0ebe3; display: grid; place-items: center; font-size: 52px; }
.product-lite-r-body { padding: 14px; }
.product-lite-r-brand { color: var(--accent); text-transform: uppercase; font-size: 11px; font-weight: 800; letter-spacing: .5px; }
.product-lite-r-name { margin: 5px 0 10px; font-weight: 700; line-height: 1.35; }
.product-lite-r-price { font-weight: 800; font-size: 18px; }

.sf-wire {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 8px;
}

.sf-wire-lg { height: 80px; max-width: 760px; }
.sf-wire-md { height: 36px; width: 56%; margin: 10px 0 20px; }

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

.sf-cat {
  display: block;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  color: var(--text2);
  font-size: 13px;
  text-decoration: none;
  transition: all .2s ease;
}

.sf-cat:hover {
  background: var(--bg3);
  border-color: var(--border2);
  color: var(--text);
}

.sf-filters,
.sf-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sf-filters { margin-bottom: 12px; }
.sf-row { margin-bottom: 8px; }

input,
select,
textarea {
  height: 36px;
  border: 1px solid var(--border2);
  border-radius: 8px;
  background: var(--bg2);
  color: var(--text);
  padding: 0 10px;
  font: 14px var(--font);
  outline: none;
  min-width: 160px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(193, 18, 31, 0.12);
}

textarea {
  min-height: 90px;
  padding-top: 8px;
  height: auto;
}

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

.sf-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  transition: all .2s ease;
}

.sf-card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
}

.sf-card h3 {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.3;
}

.sf-card p {
  margin: 0 0 8px;
  font-weight: 700;
}

.sf-card-img {
  height: 140px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f2ede5 0%, #e7dfd2 100%);
  margin-bottom: 10px;
}

.sf-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.sf-link:hover { text-decoration: underline; }

.sf-product {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  white-space: pre-wrap;
}

.sf-form {
  margin-top: 12px;
  background: #fffcf8;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}

.sf-form h3 {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--text2);
  font-weight: 700;
}

.sf-pre {
  margin: 0;
  background: #f6f1e9;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  white-space: pre-wrap;
  color: #3d3a36;
  font-size: 12px;
  max-height: 280px;
  overflow: auto;
}

.sf-msg {
  margin: 0;
  color: var(--green);
  font-size: 13px;
}

@media (max-width: 1200px) {
  .sf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .sf-nav {
    padding: 0 20px;
    gap: 16px;
    height: 68px;
  }
  body { padding-top: 68px; }
  .sf-search { max-width: 300px; }
  .sf-menu { display: none; }
  .sf-authbox { margin-left: auto; }
  .hm-hero { grid-template-columns: 1fr; min-height: auto; gap: 22px; padding: 28px 22px; }
  .hm-hero-title { font-size: clamp(40px, 10vw, 64px); }
  .hm-section { padding: 60px 20px; }
  .hm-promo { padding: 0 20px 60px; }
  .hm-features { margin: 0 20px; }
  .hm-footer { margin: 0 20px 24px; }
  .hm-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hm-promo-grid { grid-template-columns: 1fr; }
  .hm-features { grid-template-columns: 1fr 1fr; }
  .hm-footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; }
  .admin-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sa-shell { grid-template-columns: 1fr; min-height: auto; }
  .sa-sidebar { position: static; top: auto; height: auto; grid-template-columns: 1fr 1fr; }
  .sa-content { padding: 18px; }
  .sa-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .sf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-lite-top { padding: 24px 18px 18px; }
  .catalog-lite-intro { grid-template-columns: 1fr; align-items: start; }
  .catalog-lite-shell { padding: 0 18px 60px; grid-template-columns: 1fr; }
  .catalog-lite-filters { position: static; }
  .catalog-lite-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-lite-toolbar { flex-wrap: wrap; }
  .product-lite-layout { grid-template-columns: 90px 1fr; }
  .product-lite-buy { grid-column: 1 / -1; position: static; }
  .product-lite-gallery { position: static; min-height: auto; }
  .product-lite-content-grid { grid-template-columns: 1fr; }
  .product-lite-seller { position: static; }
  .sf-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-hero { grid-template-columns: 1fr; min-height: auto; }
  .home-copy h1 { font-size: clamp(38px, 10vw, 56px); }
  .categories-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sf-hero-grid { grid-template-columns: 1fr; }
  .sf-actions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .products-grid.sf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-promo-grid { grid-template-columns: 1fr; }
  .sf-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .sf-nav { padding: 0 12px; }
  .sf-block { padding: 12px; }
  .sf-modal-form { grid-template-columns: 1fr; }
  .sf-grid { grid-template-columns: 1fr; }
  .catalog-lite-banner { grid-template-columns: 1fr; }
  .catalog-lite-banner-actions { justify-content: space-between; }
  .catalog-lite-grid { grid-template-columns: 1fr; }
  .catalog-lite-sorts { width: 100%; }
  .catalog-lite-sorts select { flex: 1; min-width: 0; }
  .product-lite-wrap { padding: 20px 16px 56px; }
  .product-lite-layout { grid-template-columns: 1fr; }
  .product-lite-thumbs { display: flex; overflow-x: auto; position: static; }
  .product-lite-thumb { min-width: 86px; height: 78px; }
  .product-lite-main-image { min-height: 340px; font-size: 110px; }
  .product-lite-buy, .product-lite-panel { border-radius: 22px; padding: 20px; }
  .product-lite-spec { grid-template-columns: 1fr; gap: 3px; }
  .product-lite-related-grid { grid-template-columns: repeat(2, 1fr); }
  .hm-hero-visual { grid-template-columns: 1fr; }
  .hm-preview-wide { grid-column: auto; min-height: 150px; }
  .hm-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-features { grid-template-columns: 1fr; }
  .hm-footer-grid { grid-template-columns: 1fr; }
  .admin-nav { grid-template-columns: 1fr; }
  .sa-sidebar { grid-template-columns: 1fr; }
  .sa-topbar { flex-direction: column; }
  .sa-top-actions, .sa-search { width: 100%; }
  .sa-stats { grid-template-columns: 1fr; }
  .home-visual { grid-template-columns: 1fr; }
  .home-product-wide { grid-column: auto; }
  .categories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  input, select, textarea { width: 100%; min-width: 0; }
  .sf-row, .sf-filters { flex-direction: column; }
  .sf-wire-md { width: 100%; }
  .sf-actions-grid { grid-template-columns: 1fr; }
  .sf-stats { flex-wrap: wrap; }
  .sf-hero-cards { grid-template-columns: 1fr; }
  .sf-promo-wide { grid-column: auto; }
  .sf-features { grid-template-columns: 1fr; }
  .sf-footer-grid { grid-template-columns: 1fr; }
}

body[data-page="seller"] { padding-top: 0; }

/* Home page precise tune */
.hm-hero-tag {
  align-items: center;
  gap: 8px;
}
.hm-hero-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent2);
  animation: hm-pulse 1.8s infinite;
}
@keyframes hm-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.75); }
}
.hm-marquee-track span {
  position: relative;
  padding-right: 16px;
}
.hm-marquee-track span::after {
  content: "";
  position: absolute;
  right: 3px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  transform: translateY(-50%);
}
.hm-promo-card {
  transition: transform .22s ease;
}
.hm-promo-card:hover {
  transform: translateY(-3px);
}

/* Home visual pass 2 */
#page-home.hm-home { gap: 0; }
#page-home .hm-hero {
  min-height: calc(100vh - 68px);
  padding: 56px 40px 64px;
  gap: 60px;
}
#page-home .hm-hero-stats {
  gap: 36px;
  margin-top: 46px;
  padding-top: 34px;
}
#page-home .hm-hero-stats strong { font-size: 28px; letter-spacing: -.4px; }
#page-home .hm-hero-stats span { font-size: 13px; }
#page-home .hm-marquee {
  border-radius: 0;
  padding: 12px 0;
  margin: 0;
}
#page-home .hm-section { padding: 80px 40px; }
#page-home .hm-promo { padding: 0 40px 80px; }
#page-home .hm-promo-card { border-radius: 18px; }
#page-home .hm-features {
  margin: 0;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 34px 40px;
  background: #fff;
  gap: 24px;
}
#page-home .hm-features article {
  border: 0;
  border-radius: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 14px;
  align-items: start;
}
#page-home .hm-features article b {
  width: 42px;
  height: 42px;
  margin: 0;
  border-radius: 10px;
  border: 1px solid rgba(193,18,31,.22);
  background: rgba(193,18,31,.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
}
#page-home .hm-features article strong { margin-top: 2px; font-size: 14px; }
#page-home .hm-features article span { margin-top: 2px; font-size: 13px; }
#page-home .hm-footer {
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  margin: 0;
  padding: 62px 40px 34px;
}
#page-home .hm-footer-grid {
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 34px;
}
#page-home .hm-footer-brand h3 {
  font-size: 30px;
  letter-spacing: -1.2px;
  margin-bottom: 10px;
}
#page-home .hm-footer-brand p {
  max-width: 280px;
  font-size: 14px;
  line-height: 1.7;
}
#page-home .hm-footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
#page-home .hm-footer-socials a {
  width: 36px;
  height: 36px;
  margin: 0;
  border: 1px solid var(--border2);
  border-radius: 8px;
  background: var(--bg3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text2);
  text-decoration: none;
}
#page-home .hm-footer h4 {
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
#page-home .hm-footer a {
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--text3);
}
#page-home .hm-footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text3);
}
#page-home .hm-footer-bottom div {
  display: flex;
  gap: 20px;
}
#page-home .hm-footer-bottom a {
  margin: 0;
  font-size: 13px;
  color: var(--text3);
}
@media (max-width: 960px) {
  #page-home .hm-hero { padding: 26px 20px 48px; min-height: auto; }
  #page-home .hm-section { padding: 60px 20px; }
  #page-home .hm-promo { padding: 0 20px 60px; }
  #page-home .hm-features { padding: 28px 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #page-home .hm-footer { padding: 46px 20px 24px; }
  #page-home .hm-footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
}
@media (max-width: 620px) {
  #page-home .hm-features { grid-template-columns: 1fr; }
  #page-home .hm-footer-grid { grid-template-columns: 1fr; }
}
/* Home visual pass 3: match plan for marquee/features/footer */
#page-home .hm-marquee {
  background: #111;
  border-radius: 0 !important;
  overflow: hidden;
  padding: 12px 0;
  margin: 0;
}
#page-home .hm-marquee-track {
  display: inline-flex;
  gap: 0;
  color: #fff;
  white-space: nowrap;
  animation: sf-scroll 22s linear infinite;
  padding-left: 0;
}
#page-home .hm-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .4px;
  padding: 0 28px;
}
#page-home .hm-marquee-track span::after { content: none !important; }
#page-home .hm-marquee-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  display: inline-flex;
}

#page-home .hm-features {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  padding: 36px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0;
}
#page-home .hm-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border: 0;
  padding: 0;
}
#page-home .hm-feature-icon {
  width: 42px;
  height: 42px;
  background: rgba(193,18,31,.12);
  border: 1px solid rgba(193,18,31,.2);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
  margin: 0;
}
#page-home .hm-feature-item strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 3px;
}
#page-home .hm-feature-item span {
  display: block;
  margin-top: 0;
  font-size: 13px;
  color: var(--text3);
  line-height: 1.5;
}

#page-home .hm-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
  padding: 64px 40px 36px;
  margin: 0;
}
#page-home .hm-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
#page-home .hm-footer-brand h3 {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -1.5px;
  margin: 0 0 14px;
}
#page-home .hm-footer-brand p {
  font-size: 14px;
  color: var(--text3);
  line-height: 1.7;
  max-width: 260px;
  margin: 0;
}
#page-home .hm-footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
#page-home .hm-footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  color: var(--text2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}
#page-home .hm-footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin: 0 0 18px;
}
#page-home .hm-footer-col a {
  display: block;
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--text3);
  text-decoration: none;
}
#page-home .hm-footer-col a:hover,
#page-home .hm-footer-socials a:hover,
#page-home .hm-footer-bottom a:hover { color: var(--text2); }
#page-home .hm-footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
#page-home .hm-footer-bottom span,
#page-home .hm-footer-bottom a {
  font-size: 13px;
  color: var(--text3);
}
#page-home .hm-footer-bottom div {
  display: flex;
  gap: 20px;
}



/* Home visual pass 4: side gutters */
#page-home {
  --hm-side: 40px;
}
#page-home .hm-features {
  padding-left: var(--hm-side) !important;
  padding-right: var(--hm-side) !important;
}
#page-home .hm-footer {
  padding-left: var(--hm-side) !important;
  padding-right: var(--hm-side) !important;
}
@media (max-width: 960px) {
  #page-home { --hm-side: 20px; }
}
@media (max-width: 600px) {
  #page-home { --hm-side: 20px; }
}

/* Home visual pass 6: strict mobile rules from plan (960/600) */
@media (max-width: 960px) {
  #page-home { --hm-side: 20px; }
  #page-home .hm-hero {
    grid-template-columns: 1fr !important;
    padding: 100px 20px 60px !important;
  }
  #page-home .hm-hero-visual {
    display: none !important;
  }
  #page-home .hm-promo-grid {
    grid-template-columns: 1fr !important;
  }
  #page-home .hm-features {
    grid-template-columns: 1fr 1fr !important;
    padding: 36px 20px !important;
  }
  #page-home .hm-footer {
    padding: 64px 20px 36px !important;
  }
  #page-home .hm-footer-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  #page-home .hm-section {
    padding: 60px 20px !important;
  }
  #page-home .hm-promo {
    padding: 0 20px 60px !important;
  }
}
@media (max-width: 600px) {
  #page-home .hm-features {
    grid-template-columns: 1fr !important;
  }
  #page-home .hm-footer-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Mobile header: search overlay + right drawer */
.sf-mobile-actions,
.sf-mobile-search,
.sf-mobile-drawer {
  display: none;
}

@media (max-width: 960px) {
  .sf-search,
  .sf-menu,
  .sf-authbox {
    display: none !important;
  }

  .sf-mobile-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .sf-mobile-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border2);
    background: var(--bg3);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
  }

  .sf-mobile-icon-btn-close {
    background: #fff;
  }

  .sf-mobile-search,
  .sf-mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 310;
    display: block;
  }

  .sf-mobile-search-backdrop,
  .sf-mobile-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, .34);
    backdrop-filter: blur(2px);
  }

  .sf-mobile-search-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    background: #fffdfa;
    border-bottom: 1px solid var(--border);
    padding: 12px 12px 10px;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform .22s ease, opacity .22s ease;
  }

  body.sf-mobile-search-open .sf-mobile-search-panel {
    transform: translateY(0);
    opacity: 1;
  }

  .sf-mobile-search-head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
  }

  #sf-mobile-search-input {
    width: 100%;
    min-width: 0;
    height: 40px;
    border-radius: 10px;
    background: #fff;
  }

  .sf-mobile-search-results {
    margin-top: 10px;
    max-height: min(58vh, 440px);
    overflow: auto;
    display: grid;
    gap: 6px;
  }

  .sf-mobile-search-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    color: var(--text);
  }

  .sf-mobile-search-item b {
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
  }

  .sf-mobile-search-item span {
    font-size: 13px;
    color: var(--text2);
    white-space: nowrap;
  }

  .sf-mobile-search-empty {
    margin: 6px 0 2px;
    color: var(--text3);
    font-size: 13px;
    padding: 4px;
  }

  .sf-mobile-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(86vw, 340px);
    height: 100%;
    background: #fffdfa;
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform .24s ease;
    padding: 12px;
    overflow: auto;
  }

  body.sf-mobile-drawer-open .sf-mobile-drawer-panel {
    transform: translateX(0);
  }

  .sf-mobile-drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
  }

  .sf-mobile-drawer-head b {
    font-size: 16px;
    letter-spacing: -.01em;
  }

  .sf-mobile-drawer-nav {
    display: grid;
    gap: 6px;
  }

  .sf-mobile-drawer-nav a {
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    padding: 11px 12px;
    font-weight: 600;
    font-size: 14px;
  }
}

/* Mobile header fix: hidden overlays must stay hidden on load */
@media (max-width: 960px) {
  .sf-mobile-search.sf-hidden,
  .sf-mobile-drawer.sf-hidden {
    display: none !important;
  }
}

/* Home hero spacing tweak */
#page-home .hm-hero {
  padding: 26px 40px 64px !important;
}
@media (max-width: 960px) {
  #page-home .hm-hero {
    padding: 12px 20px 40px !important;
  }
}
@media (max-width: 600px) {
  #page-home .hm-hero {
    padding: 8px 20px 28px !important;
  }
}

/* Home categories: real data + placeholder thumbs */
#page-home .hm-cat-card {
  align-content: start;
}
#page-home .hm-cat-thumb {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  border: 1px solid var(--border2);
  background: linear-gradient(135deg, #f5eee3 0%, #ffffff 100%);
  color: var(--text2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  margin: 0 auto 8px;
  letter-spacing: .04em;
}
@media (max-width: 900px) {
  #page-home .hm-cat-thumb {
    width: 46px;
    height: 46px;
    margin-bottom: 6px;
  }
}

/* Catalog card real image */
.catalog-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Catalog image fit fix */
#page-home .p-img,
#catalog-grid .p-img {
  background: #eee8df;
  overflow: hidden;
}
#page-home .catalog-card-photo,
#catalog-grid .catalog-card-photo {
  width: calc(100% - 18px);
  height: calc(100% - 18px);
  margin: 9px;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  display: block;
  background: #eee8df;
}

/* Product card refinement: image fill + compact content */
#home-products .sf-card.product,
#page-catalog .catalog-lite-grid .sf-card.product {
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
}

#home-products .sf-card.product .p-img,
#page-catalog .catalog-lite-grid .sf-card.product .p-img {
  position: relative;
  aspect-ratio: 4 / 3;
  height: auto;
  min-height: 210px;
  background: #eee8df;
  display: grid;
  place-items: center;
}

#home-products .sf-card.product .catalog-card-photo,
#page-catalog .catalog-lite-grid .sf-card.product .catalog-card-photo {
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  display: block;
}

#home-products .sf-card.product .p-body,
#page-catalog .catalog-lite-grid .sf-card.product .p-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 12px 14px;
  min-height: 0;
}

#home-products .sf-card.product .brand,
#page-catalog .catalog-lite-grid .sf-card.product .brand {
  margin: 0;
  line-height: 1.2;
}

#home-products .sf-card.product .name,
#page-catalog .catalog-lite-grid .sf-card.product .name {
  margin: 0;
  min-height: 0;
  line-height: 1.3;
}

#home-products .sf-card.product .rating,
#page-catalog .catalog-lite-grid .sf-card.product .rating {
  margin: 0;
  line-height: 1.2;
}

#home-products .sf-card.product .price-row,
#page-catalog .catalog-lite-grid .sf-card.product .price-row {
  margin: 0;
}

#home-products .sf-card.product .delivery,
#page-catalog .catalog-lite-grid .sf-card.product .delivery {
  margin: 0;
}

#home-products .sf-card.product .buy,
#page-catalog .catalog-lite-grid .sf-card.product .buy {
  margin-top: auto;
}

@media (max-width: 700px) {
  #home-products .sf-card.product .p-img,
  #page-catalog .catalog-lite-grid .sf-card.product .p-img {
    min-height: 180px;
  }
}

/* Product card image: fit full image into same frame */
#home-products .sf-card.product .catalog-card-photo,
#page-catalog .catalog-lite-grid .sf-card.product .catalog-card-photo {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #eee8df;
}

/* Product card image hard-fit (no crop) */
#home-products .sf-card.product .catalog-card-photo-wrap,
#page-catalog .catalog-lite-grid .sf-card.product .catalog-card-photo-wrap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 10px;
  box-sizing: border-box;
}
#home-products .sf-card.product .catalog-card-photo,
#page-catalog .catalog-lite-grid .sf-card.product .catalog-card-photo {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block;
  margin: 0;
  border-radius: 0;
}

/* Product card image background-fit */
#home-products .sf-card.product .p-img,
#page-catalog .catalog-lite-grid .sf-card.product .p-img {
  height: 210px;
  min-height: 210px;
  max-height: 210px;
}
#home-products .sf-card.product .catalog-card-photo-bg,
#page-catalog .catalog-lite-grid .sf-card.product .catalog-card-photo-bg {
  width: 100%;
  height: 100%;
  display: block;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}
@media (max-width: 700px) {
  #home-products .sf-card.product .p-img,
  #page-catalog .catalog-lite-grid .sf-card.product .p-img {
    height: 190px;
    min-height: 190px;
    max-height: 190px;
  }
}

/* Product card image balanced mode: cover backdrop + contain main */
#home-products .sf-card.product .catalog-card-photo-wrap,
#page-catalog .catalog-lite-grid .sf-card.product .catalog-card-photo-wrap {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}

#home-products .sf-card.product .catalog-card-photo-bg-cover,
#page-catalog .catalog-lite-grid .sf-card.product .catalog-card-photo-bg-cover {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  transform: scale(1.06);
  filter: blur(8px) saturate(.9);
  opacity: .34;
}

#home-products .sf-card.product .catalog-card-photo-bg-main,
#page-catalog .catalog-lite-grid .sf-card.product .catalog-card-photo-bg-main {
  position: absolute;
  inset: 8px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}

/* Ozon-like product image slot */
#home-products .sf-card.product .p-img,
#page-catalog .catalog-lite-grid .sf-card.product .p-img {
  height: 220px !important;
  min-height: 220px !important;
  max-height: 220px !important;
  background: #fff !important;
  border-bottom: 1px solid var(--border);
}

#home-products .sf-card.product .catalog-card-photo-wrap,
#page-catalog .catalog-lite-grid .sf-card.product .catalog-card-photo-wrap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  box-sizing: border-box;
  background: #fff;
}

#home-products .sf-card.product .catalog-card-photo-bg-cover,
#page-catalog .catalog-lite-grid .sf-card.product .catalog-card-photo-bg-cover {
  display: none !important;
}

#home-products .sf-card.product .catalog-card-photo-bg-main,
#page-catalog .catalog-lite-grid .sf-card.product .catalog-card-photo-bg-main {
  width: 100%;
  height: 100%;
  display: block;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}

@media (max-width: 700px) {
  #home-products .sf-card.product .p-img,
  #page-catalog .catalog-lite-grid .sf-card.product .p-img {
    height: 190px !important;
    min-height: 190px !important;
    max-height: 190px !important;
  }
}

/* Final image output for normalized square uploads (home + catalog) */
#home-products .sf-card.product .p-img,
#page-catalog .catalog-lite-grid .sf-card.product .p-img {
  position: relative;
  aspect-ratio: 1 / 1;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0;
  background: #eee8df !important;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

#home-products .sf-card.product .catalog-card-photo-wrap,
#page-catalog .catalog-lite-grid .sf-card.product .catalog-card-photo-wrap {
  position: absolute;
  inset: 0;
  display: block;
}

#home-products .sf-card.product .catalog-card-photo-bg-main,
#page-catalog .catalog-lite-grid .sf-card.product .catalog-card-photo-bg-main {
  position: absolute;
  inset: -1px;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover !important;
  transform: scale(1.02);
  transform-origin: center;
}

#home-products .sf-card.product .p-img > :not(.tag):not(.fav):not(.catalog-card-photo-wrap),
#page-catalog .catalog-lite-grid .sf-card.product .p-img > :not(.tag):not(.fav):not(.catalog-card-photo-wrap) {
  font-size: 72px;
  line-height: 1;
}

/* Catalog root landing mode (/catalog without category) */
#page-catalog.catalog-root-mode .catalog-lite-shell {
  display: none;
}
#page-catalog.catalog-root-mode #catalog-root-landing {
  display: block;
}
.catalog-root-landing {
  padding: 0 42px 60px;
}
.catalog-root-mobile-tabs {
  display: none;
  gap: 8px;
  overflow: auto;
  margin-bottom: 14px;
}
.catalog-root-mobile-tabs a {
  white-space: nowrap;
  background: #fffdfa;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--text2);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.catalog-root-mobile-tabs a.active {
  background: #111;
  color: #fff;
  border-color: #111;
}
.catalog-root-shell {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.catalog-root-side {
  position: sticky;
  top: 92px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255,253,250,.9);
}
.catalog-root-side-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.catalog-root-side-head b { display: block; font-size: 18px; }
.catalog-root-side-head span { color: var(--text3); font-size: 12px; }
.catalog-root-list {
  padding: 8px;
  display: grid;
  gap: 4px;
}
.catalog-root-item {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px 10px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text2);
}
.catalog-root-item:hover { background: rgba(17,17,17,.05); color: var(--text); }
.catalog-root-item.active { background: #111; color: #fff; }
.catalog-root-item i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 16px;
}
.catalog-root-item.active i {
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.15);
}
.catalog-root-item b { display: block; font-size: 14px; }
.catalog-root-item span { display: block; font-size: 11px; color: var(--text3); }
.catalog-root-item.active span { color: rgba(255,255,255,.66); }
.catalog-root-topline {
  background: #111;
  color: #fff;
  border-radius: 20px;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.catalog-root-topline b { display: block; font-size: 18px; }
.catalog-root-topline span { color: rgba(255,255,255,.7); font-size: 13px; }
.catalog-root-topline a {
  background: #fff;
  color: #111;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.catalog-root-featured {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.catalog-root-featured a {
  background: #fffdfa;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  text-decoration: none;
  color: var(--text);
}
.catalog-root-featured b { display: block; margin: 8px 0 4px; font-size: 14px; }
.catalog-root-featured span { color: var(--text3); font-size: 12px; }
.catalog-root-featured i { font-style: normal; font-size: 22px; }
.catalog-root-section {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fffdfa;
}
.catalog-root-section-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.catalog-root-section-title { font-size: 22px; font-weight: 900; letter-spacing: -.03em; }
.catalog-root-section-sub { color: var(--text3); font-size: 13px; margin-top: 4px; }
.catalog-root-subgrid {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.catalog-root-subcard {
  background: #fbf7f0;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
}
.catalog-root-subcard-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.catalog-root-subcard-top b { font-size: 14px; }
.catalog-root-subcard-top span { color: var(--text3); font-size: 11px; white-space: nowrap; }
.catalog-root-sublinks { display: flex; flex-wrap: wrap; gap: 6px; }
.catalog-root-sublinks a {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 11px;
  color: var(--text2);
  text-decoration: none;
  background: #fff;
}
@media (max-width: 960px) {
  .catalog-root-landing { padding: 0 18px 56px; }
  .catalog-root-shell { grid-template-columns: 1fr; }
  .catalog-root-side { display: none; }
  .catalog-root-mobile-tabs { display: flex; }
  .catalog-root-featured { grid-template-columns: 1fr 1fr; }
  .catalog-root-subgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .catalog-root-featured { grid-template-columns: 1fr; }
  .catalog-root-subgrid { grid-template-columns: 1fr; }
  .catalog-root-topline { flex-direction: column; align-items: flex-start; }
}
/* Seller products page (premium mock-like) */
.spm-page {
  --spm-bg: #f7f2e8;
  --spm-bg2: #fdf9f2;
  --spm-bg3: #ede5d4;
  --spm-surface: #fff;
  --spm-gold: #c8a642;
  --spm-gold2: #e0c06a;
  --spm-gold-d: #9a7b28;
  --spm-crimson: #8b1a1a;
  --spm-text: #1a1209;
  --spm-text2: #6b5535;
  --spm-text3: #a0896a;
  --spm-border: rgba(200, 166, 66, 0.22);
  --spm-border2: rgba(200, 166, 66, 0.45);
  --spm-green: #2a6b3a;
  color: var(--spm-text);
}
.spm-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.spm-eyebrow { font-size: 10px; text-transform: uppercase; letter-spacing: 2px; color: var(--spm-gold-d); margin-bottom: 4px; }
.spm-title { margin: 0; font-size: 36px; line-height: 1.08; letter-spacing: -0.6px; font-weight: 700; font-family: "Georgia", serif; }
.spm-header-actions { display: flex; align-items: center; gap: 8px; }
.spm-btn { height: 40px; border-radius: 4px; border: 1px solid var(--spm-border2); background: var(--spm-surface); color: var(--spm-text2); padding: 0 14px; cursor: pointer; font-size: 13px; }
.spm-btn:hover { border-color: var(--spm-gold); color: var(--spm-text); }
.spm-btn-primary { background: var(--spm-gold); border-color: var(--spm-gold); color: #20170c; }
.spm-btn-primary:hover { background: var(--spm-gold2); color: #140f08; }
.spm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.spm-stat-card { background: var(--spm-surface); border: 1px solid var(--spm-border); border-radius: 5px; padding: 14px 15px; }
.spm-stat-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1.8px; color: var(--spm-text3); margin-bottom: 8px; }
.spm-stat-value { font-size: 26px; font-family: "Georgia", serif; font-weight: 700; line-height: 1; }
.spm-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.spm-search { flex: 1; min-width: 210px; max-width: 360px; }
.spm-search input {
  width: 100%; height: 38px; border: 1px solid var(--spm-border); border-radius: 4px; background: var(--spm-surface);
  padding: 0 12px; font-size: 13px;
}
.spm-search input:focus { outline: none; border-color: var(--spm-gold); }
.spm-select {
  height: 38px; border: 1px solid var(--spm-border); border-radius: 4px; background: var(--spm-surface);
  color: var(--spm-text2); padding: 0 28px 0 10px; font-size: 13px;
}
.spm-tabs { display: inline-flex; border: 1px solid var(--spm-border); border-radius: 4px; overflow: hidden; }
.spm-tab { border: 0; border-right: 1px solid var(--spm-border); background: var(--spm-surface); color: var(--spm-text3); padding: 8px 12px; font-size: 12px; cursor: pointer; }
.spm-tab:last-child { border-right: 0; }
.spm-tab.active { background: #1a1209; color: var(--spm-gold2); }
.spm-count { margin-left: auto; font-size: 12px; color: var(--spm-text3); border: 1px solid var(--spm-border); border-radius: 999px; padding: 5px 10px; background: var(--spm-bg3); }
.spm-table-wrap { background: var(--spm-surface); border: 1px solid var(--spm-border); border-radius: 6px; overflow: auto; }
.spm-table { width: 100%; min-width: 900px; border-collapse: collapse; }
.spm-table thead tr { background: #1a1209; border-bottom: 1px solid var(--spm-gold); }
.spm-table th { padding: 12px 14px; text-align: left; color: rgba(200,166,66,.72); font-size: 10px; text-transform: uppercase; letter-spacing: 1.8px; font-weight: 500; }
.spm-table th.right, .spm-table td.right { text-align: right; }
.spm-table td { padding: 12px 14px; border-bottom: 1px solid var(--spm-border); vertical-align: middle; }
.spm-table tbody tr:last-child td { border-bottom: 0; }
.spm-product-name { font-size: 15px; font-weight: 700; color: var(--spm-text); line-height: 1.2; }
.spm-product-meta { font-size: 11px; color: var(--spm-text3); margin-top: 2px; }
.spm-price { font-size: 16px; font-weight: 700; font-family: "Georgia", serif; }
.spm-stock-pill, .spm-status-pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 9px; font-size: 11px; }
.spm-stock-pill.stock-in { color: var(--spm-green); border: 1px solid rgba(42,107,58,.2); background: rgba(42,107,58,.1); }
.spm-stock-pill.stock-low { color: var(--spm-gold-d); border: 1px solid rgba(200,166,66,.32); background: rgba(200,166,66,.13); }
.spm-stock-pill.stock-out { color: var(--spm-crimson); border: 1px solid rgba(139,26,26,.25); background: rgba(139,26,26,.1); }
.spm-status-pill { border-radius: 2px; letter-spacing: 1px; text-transform: uppercase; font-size: 10px; }
.spm-status-pill.st-active { color: var(--spm-green); border: 1px solid rgba(42,107,58,.2); background: rgba(42,107,58,.1); }
.spm-status-pill.st-pending { color: var(--spm-gold-d); border: 1px solid rgba(200,166,66,.32); background: rgba(200,166,66,.13); }
.spm-status-pill.st-draft { color: var(--spm-text3); border: 1px solid rgba(160,137,106,.3); background: rgba(160,137,106,.12); }
.spm-status-pill.st-danger { color: var(--spm-crimson); border: 1px solid rgba(139,26,26,.24); background: rgba(139,26,26,.09); }
.spm-actions { display: flex; justify-content: flex-end; gap: 6px; }
.spm-mini-btn { border: 1px solid var(--spm-border2); background: #fff; color: var(--spm-text2); border-radius: 3px; height: 28px; padding: 0 9px; font-size: 11px; cursor: pointer; }
.spm-mini-btn:hover { background: var(--spm-bg3); color: var(--spm-text); }
.spm-mini-btn.danger { border-color: rgba(139,26,26,.28); color: var(--spm-crimson); }
.spm-empty-row td { text-align: center; color: var(--spm-text3); padding: 26px 12px; }
.spm-footer { display: flex; justify-content: space-between; gap: 10px; align-items: center; background: var(--spm-bg3); border: 1px solid var(--spm-border); border-radius: 5px; margin-top: 10px; padding: 10px 12px; font-size: 12px; color: var(--spm-text3); }
.spm-error { color: #8f0f18; }

@media (max-width: 980px) {
  .spm-title { font-size: 30px; }
  .spm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spm-count { margin-left: 0; }
}
@media (max-width: 700px) {
  .spm-header { flex-direction: column; align-items: flex-start; }
  .spm-header-actions { width: 100%; }
  .spm-btn { flex: 1; }
  .spm-tabs { width: 100%; overflow: auto; }
}
/* SPM v2 closer to mock */
.spm-page { position: relative; }
.spm-col-check { width: 44px; text-align: center; }
.spm-check { width: 15px; height: 15px; border: 1px solid var(--spm-border2); }
.spm-product-cell { display: flex; align-items: center; gap: 10px; }
.spm-thumb {
  width: 46px; height: 46px; border-radius: 3px; border: 1px solid var(--spm-border);
  background: var(--spm-bg3); display: grid; place-items: center; font-size: 20px;
}
.spm-product-sku { font-size: 11px; color: var(--spm-text3); }
.spm-sales { font-size: 12px; color: var(--spm-text2); }
.spm-table tbody tr:hover { background: rgba(200,166,66,.05); }
.spm-pagination {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; background: var(--spm-bg3); border-top: 1px solid var(--spm-border);
}
.spm-pag-info { font-size: 12px; color: var(--spm-text3); }
.spm-pag-btns { display: flex; gap: 6px; }
.spm-pag-btn {
  width: 30px; height: 30px; border-radius: 3px; border: 1px solid var(--spm-border);
  background: #fff; color: var(--spm-text2); cursor: pointer;
}
.spm-pag-btn:hover { border-color: var(--spm-gold); color: var(--spm-gold-d); }
.spm-pag-btn:disabled { opacity: .45; cursor: not-allowed; }

.spm-overlay {
  position: fixed; inset: 0; background: rgba(26, 18, 9, .52);
  opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 380;
}
.spm-editor {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(680px, 92vw);
  background: var(--spm-bg2); border-left: 1.5px solid var(--spm-gold);
  transform: translateX(100%); transition: transform .3s ease;
  z-index: 390; display: flex; flex-direction: column;
}
.spm-page.editor-open .spm-overlay { opacity: 1; pointer-events: auto; }
.spm-page.editor-open .spm-editor { transform: translateX(0); }
.spm-page.editor-route-open .spm-overlay { display: none; }
.spm-page.editor-route-open .spm-table-wrap,
.spm-page.editor-route-open .spm-stats,
.spm-page.editor-route-open .spm-filters,
.spm-page.editor-route-open .spm-footer { display: none; }
.spm-page.editor-route-open .spm-header {
  margin-bottom: 10px;
}
.spm-page.editor-route-open .spm-editor {
  position: relative;
  inset: auto;
  transform: none;
  width: 100%;
  max-width: none;
  border: 1px solid var(--spm-line);
  border-radius: 18px;
  box-shadow: 0 24px 56px rgba(16,16,16,.1);
  min-height: calc(100vh - 170px);
}
.spm-editor-top {
  height: 56px; background: #1a1209; border-bottom: 1px solid var(--spm-gold);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px;
}
.spm-editor-title { color: var(--spm-gold2); text-transform: uppercase; letter-spacing: 1.8px; font-size: 12px; }
.spm-editor-sub { color: rgba(224,192,106,.65); font-size: 11px; margin-top: 2px; }
.spm-editor-close {
  width: 34px; height: 34px; border-radius: 3px; border: 1px solid rgba(224,192,106,.35);
  background: transparent; color: var(--spm-gold2); font-size: 20px; cursor: pointer;
}
.spm-editor-tabs { display: flex; border-bottom: 1px solid var(--spm-border); background: var(--spm-bg3); }
.spm-editor-tab {
  border: 0; background: transparent; padding: 10px 14px; color: var(--spm-text3); cursor: pointer;
  border-bottom: 2px solid transparent; font-size: 12px;
}
.spm-editor-tab.active { color: var(--spm-gold-d); border-bottom-color: var(--spm-gold); }
.spm-editor-body { flex: 1; overflow: auto; padding: 18px; display: grid; gap: 12px; }
.spm-field { display: grid; gap: 6px; }
.spm-field span { color: var(--spm-text3); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.spm-field input, .spm-field textarea {
  border: 1px solid var(--spm-border); border-radius: 4px; background: #fff; padding: 10px 12px;
  font-size: 14px; color: var(--spm-text);
}
.spm-field input:focus, .spm-field textarea:focus { outline: none; border-color: var(--spm-gold); }
.spm-upload-box {
  border: 1px dashed var(--spm-border2); border-radius: 8px; background: #fff; color: var(--spm-text3);
  min-height: 120px; display: grid; place-items: center; text-align: center; padding: 10px;
}
.spm-editor-footer {
  border-top: 1px solid var(--spm-border); background: var(--spm-bg3); padding: 12px 16px;
  display: flex; gap: 8px; align-items: center;
}
#spm-editor-note { margin-right: auto; color: var(--spm-text3); font-size: 12px; }

@media (max-width: 700px) {
  .spm-pagination { gap: 8px; flex-wrap: wrap; }
  .spm-editor-footer { flex-wrap: wrap; }
  #spm-editor-note { width: 100%; }
}
/* SPM Vseya style override */
.spm-page {
  --spm-bg:#f6f2ec;
  --spm-paper:#fffdf9;
  --spm-paper2:#fbf7f0;
  --spm-ink:#101010;
  --spm-muted:#716b63;
  --spm-muted2:#9b948b;
  --spm-line:rgba(16,16,16,.12);
  --spm-line2:rgba(16,16,16,.2);
  --spm-red:#b80f18;
  --spm-red2:#d31824;
  --spm-soft-red:rgba(184,15,24,.08);
  --spm-gold:#c59b4b;
  --spm-green:#18784a;
  --spm-soft-green:rgba(24,120,74,.09);
  --spm-shadow:0 22px 70px rgba(28,20,12,.09);
  color:var(--spm-ink);
  font-family:inherit;
}
.spm-header { margin-bottom: 22px; }
.spm-eyebrow {
  color:var(--spm-red); background:var(--spm-soft-red); border:1px solid rgba(184,15,24,.15);
  border-radius:999px; padding:7px 12px; font-size:12px; font-weight:900; display:inline-flex; margin-bottom:14px;
}
.spm-title { font-size: clamp(34px,4vw,56px); line-height:.98; letter-spacing:-.065em; font-weight:900; font-family:inherit; }
.spm-title em { color: var(--spm-red); font-style: normal; }
.spm-header-actions { gap: 10px; }
.spm-profile-chip{
  display:flex;
  align-items:center;
  gap:10px;
  background:#fff;
  border:1px solid var(--spm-line);
  border-radius:14px;
  padding:7px 10px;
  min-height:42px;
}
.spm-profile-avatar{
  width:28px;height:28px;border-radius:10px;
  background:var(--spm-ink);color:#fff;
  display:flex;align-items:center;justify-content:center;
  font-size:12px;font-weight:900;
}
.spm-profile-meta{display:grid;line-height:1.15}
.spm-profile-meta b{font-size:12px;font-weight:900;color:var(--spm-ink)}
.spm-profile-meta span{font-size:11px;color:var(--spm-muted2);font-weight:700}
.spm-btn {
  border:1px solid var(--spm-line); border-radius:13px; min-height:42px; padding:0 16px;
  font-weight:900; font-size:13px; background:#fff; color:var(--spm-ink);
}
.spm-btn:hover { transform: translateY(-1px); border-color:var(--spm-line2); }
.spm-btn-primary { background:var(--spm-red); border-color:var(--spm-red); color:#fff; box-shadow:0 14px 28px rgba(184,15,24,.18); }
.spm-btn-primary:hover { background:var(--spm-red2); color:#fff; }

.spm-stats { gap: 14px; margin-bottom: 22px; }
.spm-stat-card {
  background:var(--spm-paper); border:1px solid var(--spm-line); border-radius:22px; padding:18px;
  box-shadow:0 12px 40px rgba(28,20,12,.05); position:relative; overflow:hidden;
}
.spm-stat-card::after { content:""; position:absolute; inset:0 auto auto 0; width:100%; height:3px; background:linear-gradient(90deg,var(--spm-red),transparent); }
.spm-stat-label { color:var(--spm-muted); font-size:12px; font-weight:900; text-transform:uppercase; letter-spacing:.08em; margin-bottom:8px; }
.spm-stat-value { font-size:30px; line-height:1; letter-spacing:-.055em; font-weight:900; font-family:inherit; }

.spm-filters {
  background:var(--spm-paper); border:1px solid var(--spm-line); border-radius:22px; padding:14px;
  display:flex; align-items:center; gap:10px; margin-bottom:16px; flex-wrap:wrap;
  box-shadow:0 12px 40px rgba(28,20,12,.05);
}
.spm-search { min-width:240px; max-width:420px; }
.spm-search input {
  height:44px; background:#fff; border:1px solid var(--spm-line); border-radius:13px;
  padding:0 14px; font-size:14px; color:var(--spm-ink);
}
.spm-search input:focus { border-color:rgba(184,15,24,.55); box-shadow:0 0 0 4px rgba(184,15,24,.08); }
.spm-select {
  height:44px; background:#fff; border:1px solid var(--spm-line); border-radius:13px;
  padding:0 13px; font-size:13px; font-weight:700; color:var(--spm-ink);
}
.spm-tabs { display:flex; gap:6px; padding:4px; border-radius:14px; background:var(--spm-paper2); border:1px solid var(--spm-line); overflow:auto; }
.spm-tab { border:0; border-radius:10px; padding:9px 12px; font-size:13px; font-weight:900; color:var(--spm-muted); background:transparent; }
.spm-tab.active { background:var(--spm-ink); color:#fff; }
.spm-count {
  margin-left:auto; display:inline-flex; padding:8px 12px; border-radius:999px;
  background:var(--spm-soft-red); color:var(--spm-red); font-weight:900; font-size:12px; border:0;
}

.spm-table-wrap {
  background:var(--spm-paper); border:1px solid var(--spm-line); border-radius:24px;
  box-shadow:var(--spm-shadow); overflow:hidden;
}
.spm-table thead tr { background:#111; border-bottom:0; }
.spm-table th {
  color:rgba(255,255,255,.62); font-size:11px; font-weight:900; text-transform:uppercase;
  letter-spacing:.08em; padding:14px 16px;
}
.spm-table td { padding:15px 16px; border-bottom:1px solid var(--spm-line); }
.spm-table tbody tr:hover { background:rgba(184,15,24,.035); }
.spm-check {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  border: 1px solid var(--spm-line2);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #fff;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
  position: relative;
}
.spm-table .spm-col-check .spm-check,
.spm-table td .spm-check {
  width: 17px !important;
  min-width: 17px !important;
  max-width: 17px !important;
  height: 17px !important;
  min-height: 17px !important;
  max-height: 17px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-grid !important;
  place-items: center !important;
  vertical-align: middle !important;
  flex: 0 0 17px !important;
}
.spm-check:checked { background:var(--spm-red); border-color:var(--spm-red); }
.spm-check::after {
  content: "";
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  transform-origin: center;
  transition: transform .12s ease;
}
.spm-check:checked::after {
  transform: rotate(-45deg) scale(1);
}

.spm-thumb {
  width:52px; height:52px; border-radius:16px; background:var(--spm-paper2); border:1px solid var(--spm-line);
  font-size:24px;
}
.spm-product-name { font-size:14px; font-weight:900; line-height:1.25; margin-bottom:4px; }
.spm-product-sku, .spm-product-meta { font-size:12px; color:var(--spm-muted2); font-weight:700; }
.spm-price { font-size:17px; font-weight:900; letter-spacing:-.04em; font-family:inherit; }
.spm-sales { font-size:12px; color:var(--spm-muted); font-weight:700; }

.spm-stock-pill, .spm-status-pill {
  border-radius:999px; padding:6px 10px; font-size:12px; font-weight:900; border:0;
}
.spm-stock-pill.stock-in, .spm-status-pill.st-active { background:var(--spm-soft-green); color:var(--spm-green); }
.spm-stock-pill.stock-low, .spm-status-pill.st-pending { background:rgba(197,155,75,.14); color:#8a6414; }
.spm-stock-pill.stock-out, .spm-status-pill.st-danger { background:var(--spm-soft-red); color:var(--spm-red); }
.spm-status-pill.st-draft { background:var(--spm-paper2); color:var(--spm-muted); border:1px solid var(--spm-line); }

.spm-mini-btn {
  min-height:34px; border-radius:11px; border:1px solid var(--spm-line); background:#fff;
  color:var(--spm-muted); padding:0 10px; font-size:12px; font-weight:900;
}
.spm-mini-btn:hover { background:var(--spm-paper2); }
.spm-mini-btn[data-action='edit'] { color:var(--spm-red); border-color:rgba(184,15,24,.2); background:var(--spm-soft-red); }
.spm-mini-btn.danger { color:var(--spm-muted); border-color:var(--spm-line); }

.spm-pagination {
  padding:16px 18px; background:var(--spm-paper2); border-top:1px solid var(--spm-line);
}
.spm-pag-info { font-size:13px; color:var(--spm-muted); font-weight:700; }
.spm-pag-btn { width:36px; height:36px; border-radius:12px; border:1px solid var(--spm-line); background:#fff; color:var(--spm-muted); font-weight:900; }
.spm-pag-btn:hover { border-color:var(--spm-line2); color:var(--spm-ink); }

.spm-footer {
  background:transparent; border:0; padding:8px 2px 0; margin-top:8px;
  color:var(--spm-muted); font-size:12px; font-weight:700;
}
.spm-error { color: var(--spm-red); }

.spm-overlay { background: rgba(16,16,16,.42); }
.spm-editor {
  width:740px; max-width:96vw; background:var(--spm-paper); border-left:1px solid var(--spm-line);
  box-shadow:-20px 0 70px rgba(16,16,16,.14);
}
.spm-editor-top {
  background:var(--spm-paper); border-bottom:1px solid var(--spm-line);
  min-height:72px; padding:0 24px;
}
.spm-editor-title { font-size:24px; font-weight:900; letter-spacing:-.055em; color:var(--spm-ink); text-transform:none; }
.spm-editor-sub { font-size:12px; color:var(--spm-muted); font-weight:700; }
.spm-editor-close { width:42px; height:42px; border-radius:14px; border:1px solid var(--spm-line); background:#fff; color:var(--spm-muted); }
.spm-editor-tabs { gap:6px; padding:10px 16px; background:var(--spm-paper2); border-bottom:1px solid var(--spm-line); }
.spm-editor-tabs { position: sticky; top: 0; z-index: 8; }
.spm-page.editor-route-open .spm-editor-tabs { top: calc(var(--seller-topbar, 72px) + 2px); }
.spm-editor-tab { border-radius:11px; padding:10px 12px; font-size:13px; font-weight:900; color:var(--spm-muted); border:0; }
.spm-editor-tab.active { background:var(--spm-ink); color:#fff; border-bottom-color:transparent; }
.spm-editor-body { padding:16px 18px; }
.spm-field span { font-size:13px; font-weight:900; text-transform:none; letter-spacing:0; color:var(--spm-ink); }
.spm-field input,.spm-field textarea { min-height:48px; border:1px solid var(--spm-line); border-radius:13px; padding:0 14px; }
.spm-field textarea { min-height:110px; padding-top:13px; line-height:1.55; }
.spm-field input:focus,.spm-field textarea:focus { border-color:rgba(184,15,24,.55); box-shadow:0 0 0 4px rgba(184,15,24,.08); }
.spm-field input.is-invalid, .spm-field textarea.is-invalid { border-color: rgba(184,15,24,.65); box-shadow: 0 0 0 3px rgba(184,15,24,.08); }
.spm-field input.is-valid, .spm-field textarea.is-valid { border-color: var(--spm-line); box-shadow: none; }
.spm-form-section { margin-bottom: 10px; }
.spm-main-fast { margin-bottom: 8px; }
.spm-main-top { display: grid; gap: 8px; margin-bottom: 8px; }
.spm-main-triple { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.spm-field-priority > span { color: var(--spm-ink); }
.spm-req { color: var(--spm-red); font-weight: 900; }
.spm-hint { display: block; margin-top: 4px; font-size: 12px; color: var(--spm-muted2); font-weight: 700; }
.spm-inline-error { display: block; min-height: 14px; margin-top: 4px; font-size: 12px; color: var(--spm-red); font-weight: 700; }
.spm-inline-error[hidden] { display: none !important; }
.spm-category-picker-card {
  min-height: 42px; border: 1px solid var(--spm-line); border-radius: 11px; background: #fff;
  padding: 8px 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.spm-category-picker-meta { min-width: 0; }
.spm-category-picker-title { font-size: 11px; color: var(--spm-muted2); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.spm-category-picker-path { font-size: 13px; color: var(--spm-ink); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.spm-category-picker-card .spm-btn { min-height: 36px; }
.spm-main-fast #spm-edit-name { min-height: 44px; font-size: 16px; font-weight: 800; }
.spm-main-fast #spm-edit-sku,
.spm-main-fast #spm-edit-vendor-code { min-height: 38px; font-size: 13px; color: var(--spm-muted); }
.spm-main-fast .spm-field input { min-height: 36px; padding: 0 10px; border-radius: 10px; }
.spm-main-fast .spm-field textarea { min-height: 76px; padding-top: 9px; border-radius: 10px; }
.spm-main-fast .spm-field span { font-size: 12px; }
.spm-main-fast .spm-inline-error { min-height: 12px; margin-top: 2px; }
.spm-main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 12px;
  align-items: start;
}
.spm-main-card, .spm-side-card {
  border: 1px solid var(--spm-line);
  border-radius: 14px;
  background: #fff;
}
.spm-main-card { padding: 12px; }
.spm-side-card { padding: 12px; position: sticky; top: 16px; }
.spm-side-title { font-size: 14px; font-weight: 900; margin-bottom: 8px; color: var(--spm-ink); }
.spm-side-status-box {
  border: 1px solid #ead7b8;
  background: #fff7e8;
  border-radius: 11px;
  padding: 10px;
  margin-bottom: 10px;
}
.spm-side-status { font-size: 13px; font-weight: 900; color: #8a5200; }
.spm-side-checklist { display: grid; gap: 6px; margin-bottom: 10px; }
.spm-side-check { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.spm-side-check span { color: var(--spm-muted); font-weight: 800; }
.spm-side-check b { font-weight: 900; color: #8a6414; }
.spm-side-check b.ok { color: #18784a; }
.spm-side-preview {
  border: 1px dashed var(--spm-line2);
  border-radius: 12px;
  background: var(--spm-paper2);
  padding: 8px;
}
.spm-side-preview-meta { font-size: 12px; color: var(--spm-muted); margin-top: 8px; }
.spm-catalog-preview-card {
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  background: #fff;
}
.spm-catalog-preview-card .p-img {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 148px;
  margin-bottom: 0;
  border-radius: 0;
  background: #eee8df;
  display: grid;
  place-items: center;
}
.spm-catalog-preview-card .catalog-card-photo-wrap {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
}
.spm-catalog-preview-card .catalog-card-photo-wrap.spm-side-preview-empty::before {
  content: "Фото товара";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--spm-muted2);
}
.spm-catalog-preview-card .catalog-card-photo-bg-main {
  width: 100%;
  height: 100%;
  display: block;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.spm-catalog-preview-card .tag {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 11px;
  font-weight: 900;
  border-radius: 999px;
  padding: 2px 8px;
  background: #101010;
  color: #fff;
}
.spm-catalog-preview-card .fav {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(0, 0, 0, .15);
  border-radius: 999px;
  background: #fff;
  color: #444;
  font-size: 12px;
  line-height: 1;
}
.spm-catalog-preview-card .p-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.spm-catalog-preview-card .brand {
  font-size: 11px;
  font-weight: 800;
  color: var(--spm-muted);
  line-height: 1.2;
}
.spm-catalog-preview-card .name {
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  color: var(--spm-ink);
}
.spm-catalog-preview-card .rating {
  font-size: 11px;
  color: var(--spm-muted);
  display: flex;
  gap: 6px;
  align-items: center;
}
.spm-catalog-preview-card .price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.spm-catalog-preview-card .price {
  font-size: 15px;
  font-weight: 900;
  color: var(--spm-ink);
}
.spm-catalog-preview-card .product-lite-old {
  font-size: 11px;
  color: var(--spm-muted2);
  text-decoration: line-through;
}
.spm-catalog-preview-card .delivery {
  font-size: 11px;
  color: var(--spm-muted);
  display: flex;
  justify-content: space-between;
  gap: 6px;
}
.spm-catalog-preview-card .buy {
  margin-top: 2px;
  font-size: 12px;
}
.spm-brand-field { position: relative; }
.spm-brand-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 1px);
  z-index: 35;
  background: #fff;
  border: 1px solid var(--spm-line);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 10px 24px rgba(16,16,16,.08);
  max-height: 220px;
  overflow: auto;
}
.spm-brand-suggest-item {
  display: block;
  width: 100%;
  min-height: 40px;
  border: 0;
  border-bottom: 1px solid rgba(16,16,16,.06);
  background: #fff;
  text-align: left;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 800;
  color: var(--spm-ink);
  cursor: pointer;
}
.spm-brand-suggest-item:last-child { border-bottom: 0; }
.spm-brand-suggest-item:hover { background: var(--spm-paper2); }
.spm-attr-value-wrap { position: relative; }
.spm-attr-value-wrap { width: 100%; min-width: 0; }
.spm-attr-value-wrap .spm-select { width: 100%; min-width: 0; }
.spm-attr-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 1px);
  z-index: 120;
  background: #fff;
  border: 1px solid var(--spm-line);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 10px 24px rgba(16,16,16,.08);
  max-height: 220px;
  overflow: auto;
}
.spm-attr-color-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.spm-upload-box { border:1.5px dashed var(--spm-line2); border-radius:18px; background:var(--spm-paper2); color:var(--spm-muted); font-weight:800; }
.spm-complete {
  background: var(--spm-paper2);
  border: 1px solid var(--spm-line);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 18px;
}
.spm-complete-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 9px;
}
.spm-complete-head span { font-size: 12px; font-weight: 900; color: var(--spm-muted); text-transform: uppercase; letter-spacing: .08em; }
.spm-complete-head b { font-size: 18px; color: var(--spm-red); }
.spm-complete-track { height: 7px; background: rgba(16,16,16,.08); border-radius: 999px; overflow: hidden; }
.spm-complete-fill { height: 100%; width: 0; background: linear-gradient(90deg,var(--spm-red),#e15661); border-radius: 999px; transition: width .25s ease; }
.spm-form-section { margin-bottom: 22px; }
.spm-form-title {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.04em;
  color: var(--spm-ink);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.spm-form-title::after { content: ""; height: 1px; background: var(--spm-line); flex: 1; }
.spm-dropzone {
  position: relative;
  border: 1.5px dashed var(--spm-line2);
  border-radius: 16px;
  background: var(--spm-paper2);
  padding: 20px 16px;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.spm-dropzone:hover, .spm-dropzone.is-dragover { border-color: rgba(184,15,24,.45); background: rgba(184,15,24,.04); }
.spm-dropzone:focus-within { border-color: rgba(184,15,24,.55); box-shadow: 0 0 0 4px rgba(184,15,24,.08); }
.spm-dropzone input[type='file'] {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer;
}
.spm-dropzone-inner { text-align: center; }
.spm-dropzone-title { font-size: 15px; font-weight: 900; color: var(--spm-ink); }
.spm-dropzone-sub { margin-top: 4px; font-size: 12px; color: var(--spm-muted); font-weight: 700; }
.spm-dropzone-tip { margin-top: 8px; font-size: 12px; color: var(--spm-red); font-weight: 800; }
.spm-upload-progress { margin-top: 10px; }
.spm-upload-progress-bar { height: 7px; background: rgba(16,16,16,.08); border-radius: 999px; overflow: hidden; }
.spm-upload-progress-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg,var(--spm-red),#e15661); transition: width .2s ease; }
.spm-upload-progress-text { margin-top: 6px; font-size: 12px; color: var(--spm-muted); font-weight: 700; }
.spm-upload-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin-top: 10px; }
.spm-upload-placeholder {
  min-height: 100px;
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px dashed var(--spm-line2);
  border-radius: 14px;
  color: var(--spm-muted2);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}
.spm-upload-card {
  border: 1px solid var(--spm-line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  position: relative;
}
.spm-upload-card.is-main { border-color: rgba(184,15,24,.55); box-shadow: 0 0 0 2px rgba(184,15,24,.14); }
.spm-upload-badge-main {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  background: var(--spm-red);
  color: #fff;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 8px;
}
.spm-upload-card.is-dragging { opacity: .45; }
.spm-upload-note { color: var(--spm-muted2); font-size: 12px; margin-top: 10px; }
.spm-editor-footer {
  background:rgba(255,253,249,.92); border-top:1px solid var(--spm-line); padding:14px 24px;
}
.spm-editor-footer { position: sticky; bottom: 0; z-index: 9; backdrop-filter: blur(6px); }
#spm-editor-note { color:var(--spm-muted); font-weight:700; font-size:13px; }
.spm-price-compact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}
.spm-price-compact .spm-form-title,
.spm-price-compact .spm-field:nth-child(2) {
  grid-column: 1 / -1;
}
.spm-upload-preview {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.spm-upload-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
}
.spm-upload-actions .spm-mini-btn { min-height: 30px; font-size: 11px; }
.spm-price-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.spm-price-block, .spm-stock-block, .spm-delivery-block {
  border: 1px solid var(--spm-line);
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  margin-bottom: 0;
}
.spm-delivery-block { grid-column: 1 / -1; }
.spm-price-block .spm-form-title,
.spm-stock-block .spm-form-title,
.spm-delivery-block .spm-form-title { margin-bottom: 10px; }
.spm-economy {
  margin-top: 10px;
  border: 1px solid var(--spm-line);
  border-radius: 12px;
  background: var(--spm-paper2);
  padding: 8px 10px;
}
.spm-economy-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--spm-muted);
  padding: 4px 0;
}
.spm-economy-row b { color: var(--spm-ink); font-weight: 900; }
.spm-economy-row.total { border-top: 1px solid var(--spm-line); margin-top: 4px; padding-top: 8px; }
.spm-economy-row.total b { color: var(--spm-red); }
.spm-stock-modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}
.spm-stock-modes .spm-mini-btn.active {
  color: var(--spm-red);
  border-color: rgba(184,15,24,.3);
  background: rgba(184,15,24,.06);
}
.spm-delivery-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.spm-delivery-card {
  border: 1px solid var(--spm-line);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.spm-delivery-card input { margin-top: 2px; }
.spm-delivery-card b { display: block; font-size: 13px; color: var(--spm-ink); }
.spm-delivery-card small { display: block; font-size: 12px; color: var(--spm-muted); line-height: 1.35; }
.spm-delivery-card.active {
  border-color: rgba(184,15,24,.45);
  background: rgba(184,15,24,.05);
}
.spm-attrs-section { max-width: 980px; }
.spm-attrs-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--spm-muted);
  border: 1px solid var(--spm-line);
  border-radius: 999px;
  padding: 3px 10px;
  font-weight: 800;
}
.spm-attrs-empty {
  border: 1px dashed var(--spm-line2);
  border-radius: 14px;
  background: #fff;
  padding: 22px 18px;
  text-align: center;
}
.spm-attrs-empty-title { font-size: 18px; font-weight: 900; color: var(--spm-ink); }
.spm-attrs-empty-sub { margin: 8px auto 14px; max-width: 680px; color: var(--spm-muted); font-size: 13px; line-height: 1.45; }
.spm-attrs-wrap { display: grid; gap: 8px; }
.spm-attr-row {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(220px, 1fr) auto;
  gap: 8px;
  align-items: start;
  border: 1px solid var(--spm-line);
  border-radius: 12px;
  background: #fff;
  padding: 8px;
}
.spm-attr-col-key, .spm-attr-col-value { display: grid; gap: 6px; min-width: 0; position: relative; }
.spm-color-chip {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--spm-line);
}
.spm-color-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.spm-color-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.2);
  cursor: pointer;
}
.spm-color-swatch.active {
  outline: 2px solid var(--spm-red);
  outline-offset: 1px;
}

@media (max-width:1050px) {
  .spm-stats { grid-template-columns:1fr 1fr; }
}
@media (max-width:760px) {
  .spm-title { font-size: clamp(32px,10vw,44px); }
  .spm-stats { grid-template-columns:1fr; }
  .spm-filters { align-items:stretch; flex-direction:column; }
  .spm-header-actions { width:100%; }
  .spm-profile-chip { width:100%; }
  .spm-search { min-width:0; max-width:none; width:100%; }
  .spm-count { margin-left:0; }
  .spm-table { min-width:900px; }
  .spm-upload-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .spm-price-compact { grid-template-columns: 1fr; }
  .spm-main-triple { grid-template-columns: 1fr; }
  .spm-price-layout { grid-template-columns: 1fr; }
  .spm-main-layout { grid-template-columns: 1fr; }
  .spm-side-card { position: static; }
  .spm-delivery-cards { grid-template-columns: 1fr; }
  .spm-stock-modes { grid-template-columns: 1fr; }
  .spm-attr-row { grid-template-columns: 1fr; }
  .spm-category-picker-card { flex-direction: column; align-items: flex-start; }
  .spm-category-picker-card .spm-btn { width: 100%; }
}

/* Seller shell top logo hard override */
#page-seller .seller-top-logo{
  display:inline-flex;
  align-items:baseline;
  gap:2px;
  font-family:inherit;
  font-weight:900;
  letter-spacing:-.055em;
  font-size:25px;
  line-height:1;
  color:#101010;
  text-decoration:none;
}
#page-seller .seller-top-logo span{
  color:#b80f18;
  margin-left:2px;
}

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

@media (max-width: 760px) {
  .sf-catalog-btn,
  .sf-catalog-overlay,
  .sf-catalog-mega {
    display: none !important;
  }
}

/* Seller editor final layering fix (authoritative overrides) */
#page-seller .seller-topbar {
  z-index: 500 !important;
}
#page-seller .spm-page.editor-route-open .spm-overlay {
  display: none !important;
}
#page-seller .spm-page.editor-route-open .spm-header {
  display: none !important;
}
#page-seller .spm-page.editor-route-open .spm-editor {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 8px 0 0 !important;
  min-height: calc(100vh - 120px) !important;
  height: auto !important;
  overflow: visible !important;
  border: 1px solid var(--spm-line) !important;
  border-radius: 18px !important;
  box-shadow: 0 24px 56px rgba(16,16,16,.1) !important;
}
#page-seller .spm-page.editor-route-open .spm-editor-top {
  position: sticky !important;
  top: var(--seller-topbar, 72px) !important;
  z-index: 420 !important;
  background: var(--spm-paper) !important;
}
#page-seller .spm-page.editor-route-open .spm-editor-tabs {
  position: sticky !important;
  top: calc(var(--seller-topbar, 72px) + 70px) !important;
  z-index: 419 !important;
  background: var(--spm-paper2) !important;
  padding: 8px 14px !important;
  border-bottom: 1px solid var(--spm-line) !important;
  gap: 8px !important;
}
#page-seller .spm-page.editor-route-open .spm-editor-tab {
  border-radius: 10px !important;
  padding: 9px 12px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}
#page-seller .spm-page.editor-route-open .spm-editor-body {
  overflow: auto !important;
  max-height: none !important;
  scroll-padding-top: 132px !important;
}
