:root {
  --ink: #241916;
  --muted: #766961;
  --paper: #f7f2eb;
  --line: #d8c7b6;
  --brand: #6f2f1d;
  --brand-2: #2f5f56;
  --gold: #b9863a;
  --hide: #3c2219;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .56), rgba(247, 242, 235, .98)),
    var(--paper);
}

.theme-autumn {
  --ink: #281914;
  --muted: #755f54;
  --paper: #f6eee3;
  --line: #dfc4aa;
  --brand: #8a341f;
  --brand-2: #506f3c;
  --gold: #c78b2d;
  --hide: #4d2118;
}

.theme-winter {
  --ink: #182125;
  --muted: #60717a;
  --paper: #eef4f5;
  --line: #c9d8dc;
  --brand: #25525c;
  --brand-2: #7a4e68;
  --gold: #ad8d44;
  --hide: #122f36;
}

.theme-editorial {
  --ink: #211b19;
  --muted: #6d625e;
  --paper: #f5f1ec;
  --line: #d6cbc2;
  --brand: #4a352c;
  --brand-2: #8a6a3d;
  --gold: #b88a47;
  --hide: #1f1714;
}

.theme-compact {
  --ink: #20211f;
  --muted: #667065;
  --paper: #f3f5f1;
  --line: #cbd4c8;
  --brand: #2f5d50;
  --brand-2: #7b573c;
  --gold: #a47d39;
  --hide: #173c34;
}

.theme-luxe {
  --ink: #f7eee1;
  --muted: #cdbfac;
  --paper: #17120f;
  --line: #4a372c;
  --brand: #a76f3d;
  --brand-2: #6f8a7a;
  --gold: #d3a65a;
  --hide: #5b331e;
}

.theme-market {
  --ink: #1f2420;
  --muted: #687068;
  --paper: #f7f7f2;
  --line: #d7ddd2;
  --brand: #315f43;
  --brand-2: #9b5436;
  --gold: #bf8a38;
  --hide: #1d422e;
}

.theme-travel {
  --ink: #1d2229;
  --muted: #606a75;
  --paper: #eef2f0;
  --line: #cbd5d2;
  --brand: #2c4b66;
  --brand-2: #83633c;
  --gold: #c29955;
  --hide: #142f45;
}

.theme-contrast {
  --ink: #171717;
  --muted: #555;
  --paper: #fff;
  --line: #1f1f1f;
  --brand: #111;
  --brand-2: #8b2c1f;
  --gold: #9a6a1d;
  --hide: #000;
}

.theme-minimal {
  --ink: #242424;
  --muted: #777;
  --paper: #fafafa;
  --line: #e2e2e2;
  --brand: #5b4638;
  --brand-2: #3f625d;
  --gold: #a98443;
  --hide: #2d211b;
}

.theme-atelier {
  --ink: #221b16;
  --muted: #78685e;
  --paper: #f8f3ed;
  --line: #ddcabc;
  --brand: #7b3b2a;
  --brand-2: #47665d;
  --gold: #b68a42;
  --hide: #3f1f18;
}

.theme-panorama {
  --ink: #172027;
  --muted: #63717a;
  --paper: #edf2f2;
  --line: #c6d4d6;
  --brand: #2c5870;
  --brand-2: #8a633d;
  --gold: #c19a58;
  --hide: #17384a;
}

.theme-shelf {
  --ink: #1f241f;
  --muted: #687164;
  --paper: #f5f6f1;
  --line: #d4dacb;
  --brand: #315f43;
  --brand-2: #854634;
  --gold: #ad7d35;
  --hide: #1d402d;
}

.theme-salon {
  --ink: #19130f;
  --muted: #6d5d50;
  --paper: #17120f;
  --line: #4a372c;
  --brand: #ad7644;
  --brand-2: #758c7c;
  --gold: #d4a85f;
  --hide: #5a321f;
}

.theme-urban {
  --ink: #191919;
  --muted: #5f5f5f;
  --paper: #f2f2ef;
  --line: #cfcfca;
  --brand: #222;
  --brand-2: #8b3f2b;
  --gold: #a47b35;
  --hide: #000;
}

.theme-magazine {
  --ink: #2a2421;
  --muted: #716762;
  --paper: #f7f4f0;
  --line: #ded6cf;
  --brand: #584136;
  --brand-2: #987345;
  --gold: #bd9552;
  --hide: #2b201c;
}

.theme-desk {
  --ink: #21262a;
  --muted: #667075;
  --paper: #eef1ed;
  --line: #cbd2ca;
  --brand: #455a46;
  --brand-2: #6e4f38;
  --gold: #bd8e45;
  --hide: #283b2d;
}

.theme-autumn .hero {
  background:
    linear-gradient(90deg, rgba(52, 24, 15, .9), rgba(120, 62, 29, .34)),
    url("https://images.unsplash.com/photo-1584917865442-de89df76afd3?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.theme-winter .hero {
  background:
    linear-gradient(90deg, rgba(17, 38, 46, .92), rgba(54, 91, 99, .34)),
    url("https://images.unsplash.com/photo-1553062407-98eeb64c6a62?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.theme-editorial .hero,
.theme-luxe .hero {
  min-height: 520px;
  background:
    linear-gradient(90deg, rgba(20, 15, 12, .9), rgba(56, 42, 32, .28)),
    url("https://images.unsplash.com/photo-1594223274512-ad4803739b7c?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.theme-compact .hero,
.theme-market .hero {
  min-height: 340px;
}

.theme-travel .hero {
  background:
    linear-gradient(90deg, rgba(23, 35, 47, .9), rgba(69, 82, 85, .3)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.theme-contrast .hero,
.theme-minimal .hero {
  min-height: 360px;
}

.theme-atelier .hero {
  min-height: 500px;
  background:
    linear-gradient(90deg, rgba(43, 24, 17, .92), rgba(86, 55, 39, .24)),
    url("https://images.unsplash.com/photo-1594223274512-ad4803739b7c?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.theme-panorama .hero {
  min-height: 380px;
  background:
    linear-gradient(90deg, rgba(20, 38, 50, .9), rgba(63, 83, 88, .24)),
    url("https://images.unsplash.com/photo-1553062407-98eeb64c6a62?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.theme-shelf .hero {
  min-height: 320px;
  background:
    linear-gradient(90deg, rgba(27, 52, 38, .9), rgba(64, 84, 57, .28)),
    url("https://images.unsplash.com/photo-1594223274512-ad4803739b7c?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.theme-salon .hero {
  min-height: 560px;
  background:
    linear-gradient(90deg, rgba(18, 13, 10, .94), rgba(91, 55, 34, .28)),
    url("https://images.unsplash.com/photo-1590874103328-eac38a683ce7?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.theme-urban .hero {
  min-height: 360px;
  background:
    linear-gradient(90deg, rgba(18, 18, 18, .9), rgba(65, 58, 53, .2)),
    url("https://images.unsplash.com/photo-1600857062241-98e5dba7f214?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.theme-magazine .hero {
  min-height: 440px;
  background:
    linear-gradient(90deg, rgba(45, 34, 28, .88), rgba(118, 94, 72, .2)),
    url("https://images.unsplash.com/photo-1627123424574-724758594e93?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.theme-desk .hero {
  min-height: 400px;
  background:
    linear-gradient(90deg, rgba(32, 45, 36, .9), rgba(85, 72, 55, .24)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1800&q=80") center 60% / contain no-repeat,
    #eef1ed;
}

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

button {
  border: 0;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,0) 38%),
    linear-gradient(180deg, #8b4a31, var(--brand));
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  min-height: 40px;
  padding: 0 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .28),
    inset 0 -7px 14px rgba(38, 18, 12, .16),
    0 10px 22px rgba(61, 35, 24, .16);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

button:hover {
  background:
    linear-gradient(135deg, rgba(255,255,255,.2), rgba(255,255,255,0) 38%),
    linear-gradient(180deg, #3f786c, var(--brand-2));
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .32),
    inset 0 -7px 14px rgba(38, 18, 12, .14),
    0 13px 26px rgba(61, 35, 24, .2);
}

.site-header {
  position: sticky;
  top: 36px;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 24px;
  align-items: center;
  padding: 14px clamp(16px, 4vw, 56px);
  background: rgba(247, 242, 235, .95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.top-strip {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  justify-content: center;
  gap: clamp(12px, 4vw, 42px);
  flex-wrap: wrap;
  min-height: 36px;
  padding: 8px 16px;
  color: white;
  background: var(--hide);
  font-size: 13px;
  font-weight: 800;
}

.top-strip a {
  color: white;
}

.maintenance-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  color: white;
  background:
    linear-gradient(90deg, rgba(35, 20, 15, .92), rgba(47, 95, 86, .44)),
    url("https://images.unsplash.com/photo-1594223274512-ad4803739b7c?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.maintenance-page section {
  width: min(720px, 100%);
  display: grid;
  gap: 16px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
  background: rgba(20, 14, 11, .58);
  backdrop-filter: blur(12px);
}

.maintenance-page h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 1;
}

.maintenance-page p {
  max-width: 560px;
  margin: 0;
  font-size: 19px;
  line-height: 1.55;
}

.maintenance-page a {
  width: fit-content;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 6px;
  font-weight: 850;
}

.menu-toggle {
  min-width: 132px;
  min-height: 50px;
  position: relative;
  padding: 0 42px 0 18px;
  border: 1px solid rgba(61, 35, 24, .18);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,0) 38%),
    linear-gradient(180deg, #8b4a31, var(--brand));
  color: white;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .32),
    inset 0 -8px 18px rgba(38, 18, 12, .18),
    0 14px 30px rgba(61, 35, 24, .18);
  font-weight: 950;
}

.menu-toggle::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
}

.menu-toggle[aria-expanded="true"],
.menu-toggle:hover {
  background:
    linear-gradient(135deg, rgba(255,255,255,.2), rgba(255,255,255,0) 38%),
    linear-gradient(180deg, #3f786c, var(--brand-2));
}

.menu-toggle[aria-expanded="true"]::after {
  transform: translateY(-30%) rotate(225deg);
}

.cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  min-width: 58px;
  border: 1px solid rgba(111, 47, 29, .2);
  border-radius: 13px;
  padding: 0 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(245, 232, 216, .88)),
    #fffaf4;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 10px 20px rgba(61, 35, 24, .1);
  font-weight: 900;
}

.cart-button b {
  color: var(--brand);
}

.cart-button.is-empty {
  display: none;
}

.lang-select {
  width: auto;
  min-width: 82px;
  min-height: 44px;
  border-radius: 13px;
  border-color: rgba(111, 47, 29, .2);
  color: var(--brand);
  font-weight: 900;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(245, 232, 216, .9)),
    #fffaf4;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 10px 20px rgba(61, 35, 24, .1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(61, 35, 24, .18);
  border-radius: 16px;
  color: white;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.28), transparent 34%),
    linear-gradient(145deg, #8b4a31, var(--brand) 58%, #332018);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    inset 0 -10px 18px rgba(35,18,12,.22),
    0 12px 26px rgba(61,35,24,.2);
}

.brand-mark svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.nav,
.filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.menu-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: clamp(16px, 4vw, 56px);
  width: min(340px, calc(100vw - 32px));
  display: none;
  align-items: stretch;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 250, 244, .98);
  box-shadow: 0 24px 60px rgba(61, 35, 24, .22);
}

.menu-panel.open {
  display: flex;
}

.menu-panel a {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(111, 47, 29, .2);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(245, 232, 216, .88)),
    #fffaf4;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 10px 20px rgba(61, 35, 24, .1);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.15;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.menu-panel a::before {
  content: "";
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255,255,255,.55), rgba(255,255,255,0)),
    var(--brand);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}

.menu-panel a:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    0 14px 26px rgba(61, 35, 24, .16);
}

.menu-panel a:first-child {
  color: white;
  border-color: var(--brand-2);
  background:
    linear-gradient(180deg, rgba(71, 116, 104, .96), rgba(47, 95, 86, 1)),
    var(--brand-2);
}

.menu-panel a:first-child::before {
  background:
    linear-gradient(135deg, rgba(255,255,255,.35), rgba(255,255,255,0)),
    rgba(255,255,255,.2);
}

.nav:not(.menu-panel) a,
.filters a {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, .55);
}

.nav b {
  color: var(--brand);
}

.filters a.active {
  color: white;
  background: var(--brand-2);
  border-color: var(--brand-2);
}

.hero {
  min-height: 460px;
  display: flex;
  align-items: end;
  padding: clamp(32px, 7vw, 92px) clamp(16px, 4vw, 56px);
  color: white;
  background:
    linear-gradient(90deg, rgba(35, 20, 15, .88), rgba(79, 42, 25, .36)),
    url("https://images.unsplash.com/photo-1600857062241-98e5dba7f214?auto=format&fit=crop&w=1800&q=80") center/cover;
  border-bottom: 8px solid var(--brand);
}

.hero div {
  max-width: 720px;
}

.eyebrow {
  color: var(--gold);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 82px);
  line-height: .98;
  letter-spacing: 0;
}

.hero p {
  max-width: 620px;
  font-size: 20px;
  line-height: 1.5;
}

.catalog-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 24px clamp(16px, 4vw, 56px) 0;
}

.catalog-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.catalog-menu-button {
  min-height: 54px;
  min-width: 156px;
  padding: 0 22px 0 58px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(61, 35, 24, .18);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,0) 38%),
    linear-gradient(180deg, #8b4a31, var(--brand));
  color: white;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .32),
    inset 0 -8px 18px rgba(38, 18, 12, .18),
    0 14px 30px rgba(61, 35, 24, .22);
  font-size: 16px;
  font-weight: 950;
}

.catalog-menu-button::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 9px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(238,221,199,.82)),
    url("https://images.unsplash.com/photo-1590874103328-eac38a683ce7?auto=format&fit=crop&w=120&q=70") center/cover;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 5px 12px rgba(30,18,12,.22);
}

.catalog-menu-button::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  opacity: .85;
}

.catalog-menu-button.active,
.catalog-menu-button:hover {
  background:
    linear-gradient(135deg, rgba(255,255,255,.2), rgba(255,255,255,0) 38%),
    linear-gradient(180deg, #3f786c, var(--brand-2));
}

.catalog-menu-button.active::after {
  transform: translateY(-30%) rotate(225deg);
}

.catalog-icon-list {
  position: absolute;
  left: 0;
  top: calc(100% + 12px);
  z-index: 20;
  width: min(340px, calc(100vw - 32px));
  max-height: 0;
  max-width: none;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  border: 1px solid transparent;
  border-radius: 16px;
  background: rgba(255, 250, 244, .98);
  box-shadow: 0 24px 60px rgba(61, 35, 24, .22);
  transition: max-height .24s ease, padding .24s ease, opacity .18s ease, transform .18s ease, border-color .18s ease;
}

.catalog-icon-list.open {
  max-height: 420px;
  padding: 14px;
  opacity: 1;
  transform: translateY(0);
  border-color: var(--line);
}

.filters.catalog-icon-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: stretch;
}

.catalog-icon-list a {
  width: 100%;
  max-width: none;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px 8px 8px;
  border: 1px solid rgba(111, 47, 29, .2);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(245, 232, 216, .88)),
    #fffaf4;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 10px 20px rgba(61, 35, 24, .12);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.1;
  transform: translateY(0);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.catalog-icon-list a small {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.catalog-icon-list a:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    0 14px 26px rgba(61, 35, 24, .18);
}

.catalog-icon-list a span {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #efe3d7;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.catalog-icon-list svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.catalog-icon-list a.active {
  background:
    linear-gradient(180deg, rgba(71, 116, 104, .96), rgba(47, 95, 86, 1)),
    var(--brand-2);
  color: white;
  border-color: var(--brand-2);
}

.catalog-icon-list a.active small {
  color: rgba(255,255,255,.82);
}

.catalog-icon-list a.active span {
  background: rgba(255, 255, 255, .2);
  color: white;
}

.price-filter {
  width: min(360px, 36vw);
  margin-left: auto;
}

.range-filter {
  display: grid;
  gap: 8px;
}

.range-values {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.range-track {
  --range-start: 0%;
  --range-end: 100%;
  position: relative;
  height: 30px;
}

.range-track::before,
.range-track::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 13px;
  height: 5px;
  border-radius: 999px;
}

.range-track::before {
  background: #e4d6c5;
}

.range-track::after {
  left: var(--range-start);
  right: calc(100% - var(--range-end));
  background: var(--brand-2);
}

.range-track input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: none;
  appearance: none;
  -webkit-appearance: none;
}

.range-track input[type="range"]::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 4px 12px rgba(61, 35, 24, .24);
  cursor: pointer;
  pointer-events: auto;
  appearance: none;
  -webkit-appearance: none;
}

.range-track input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 4px 12px rgba(61, 35, 24, .24);
  cursor: pointer;
  pointer-events: auto;
}

.home-shop {
  width: calc(100% - 32px);
  margin: 0 auto 56px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

.home-shop.no-promos {
  grid-template-columns: 1fr;
}

.layout {
  display: block;
  padding: 24px 0 0;
}

.promo-sidebar {
  position: sticky;
  top: 92px;
  margin-top: 24px;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf4;
}

.promo-sidebar h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.promo-mini {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.promo-mini img {
  width: 72px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
}

.promo-mini span {
  display: grid;
  gap: 3px;
}

.promo-mini small {
  color: var(--brand);
  font-weight: 850;
}

.promo-mini b,
.promo-price {
  color: var(--brand);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.empty-catalog {
  grid-column: 1 / -1;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf4;
  color: var(--muted);
  font-weight: 800;
}

.theme-editorial .grid {
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 30px;
}

.theme-editorial .product:first-child {
  grid-column: span 2;
}

.theme-editorial .product:first-child .product-link img {
  aspect-ratio: 16 / 9;
}

.theme-compact .home-shop {
  grid-template-columns: 220px 1fr;
  gap: 14px;
}

.theme-compact .grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.theme-compact .product-body {
  padding: 12px;
}

.theme-luxe .site-header,
.theme-luxe .panel,
.theme-luxe .product,
.theme-luxe .gallery,
.theme-luxe .detail-copy,
.theme-luxe .contact-band,
.theme-luxe .content-page {
  background: #211914;
}

.theme-luxe .product {
  box-shadow: 0 20px 52px rgba(0, 0, 0, .28);
}

.theme-market .product {
  box-shadow: none;
}

.theme-market .grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.theme-market .product img {
  aspect-ratio: 1 / 1;
}

.theme-travel .home-shop {
  grid-template-columns: 340px 1fr;
}

.theme-travel .grid {
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
}

.theme-travel .product img {
  aspect-ratio: 5 / 4;
}

.theme-contrast .site-header,
.theme-contrast .product,
.theme-contrast .panel,
.theme-contrast .gallery,
.theme-contrast .detail-copy {
  border-width: 2px;
  box-shadow: none;
}

.theme-contrast .filters a,
.theme-contrast button {
  border-radius: 0;
}

.theme-minimal .hero {
  border-bottom-width: 1px;
}

.theme-minimal .product,
.theme-minimal .panel,
.theme-minimal .gallery,
.theme-minimal .detail-copy,
.theme-minimal .promo-sidebar,
.theme-minimal .contact-band {
  box-shadow: none;
  background: #fff;
}

.theme-minimal .grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.theme-atelier .home-shop {
  grid-template-columns: 360px 1fr;
  gap: 34px;
}

.theme-atelier .grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.theme-atelier .product:nth-child(3n + 1) img {
  aspect-ratio: 3 / 4;
}

.theme-panorama .home-shop {
  width: 100%;
  padding: 0 clamp(16px, 4vw, 56px) 56px;
  grid-template-columns: 1fr;
}

.theme-panorama .grid {
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}

.theme-panorama .product img {
  aspect-ratio: 16 / 9;
}

.theme-shelf .home-shop {
  grid-template-columns: 220px 1fr;
  gap: 14px;
}

.theme-shelf .grid {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.theme-shelf .product-body {
  padding: 11px;
}

.theme-shelf .product p {
  display: none;
}

.theme-salon .site-header {
  background: rgba(250, 244, 235, .96);
}

.theme-salon .panel,
.theme-salon .product,
.theme-salon .gallery,
.theme-salon .detail-copy,
.theme-salon .contact-band,
.theme-salon .content-page,
.theme-salon .promo-sidebar {
  background: #fbf5ec;
}

.theme-salon .grid {
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 34px;
}

.theme-salon .product {
  box-shadow: 0 24px 64px rgba(0, 0, 0, .35);
}

.theme-urban .home-shop {
  width: 100%;
  grid-template-columns: 300px 1fr;
  gap: 0;
}

.theme-urban .promo-sidebar {
  border-radius: 0;
  top: 71px;
}

.theme-urban .grid {
  gap: 0;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.theme-urban .product {
  border-radius: 0;
  box-shadow: none;
}

.theme-magazine .grid {
  grid-template-columns: repeat(6, 1fr);
}

.theme-magazine .product {
  grid-column: span 2;
}

.theme-magazine .product:nth-child(5n + 1) {
  grid-column: span 3;
}

.theme-magazine .product:nth-child(5n + 1) img {
  aspect-ratio: 5 / 3;
}

.theme-desk .home-shop {
  grid-template-columns: 1fr 2.1fr;
}

.theme-desk .promo-sidebar {
  position: static;
}

.theme-desk .grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.theme-desk .product img {
  aspect-ratio: 1 / 1;
}

.home-shop.no-promos,
.theme-atelier .home-shop.no-promos,
.theme-shelf .home-shop.no-promos,
.theme-urban .home-shop.no-promos,
.theme-desk .home-shop.no-promos {
  grid-template-columns: 1fr;
}

.product {
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(61, 35, 24, .08);
  transition: transform .18s ease, box-shadow .18s ease;
}

.product:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 52px rgba(61, 35, 24, .14);
}

.product-link {
  display: block;
}

.product img,
.gallery-main {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #eadfce;
}

.product-body {
  padding: 16px;
}

.pill {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--brand-2);
  font-size: 12px;
  font-weight: 800;
}

.promo-badge {
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 9px;
  border-radius: 6px;
  background: #fff1d7;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.old-price {
  color: var(--muted);
  text-decoration: line-through;
}

.product h2 {
  margin: 0 0 8px;
  font-size: 21px;
}

.product h2 a:hover,
.back-link:hover,
.detail-actions a:hover {
  color: var(--brand);
}

.product-mini-specs {
  min-height: 112px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 10px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.product-mini-specs dt {
  font-weight: 850;
}

.product-mini-specs dd {
  margin: 0;
}

.card-colors {
  display: flex;
  gap: 6px;
  margin: 0 0 14px;
}

.card-colors i {
  width: 17px;
  height: 17px;
  border: 1px solid rgba(0, 0, 0, .18);
  border-radius: 50%;
  background: var(--swatch);
}

.buy-row,
.cart-item,
.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.product .buy-row {
  align-items: center;
  gap: 10px;
}

.product .buy-row button {
  min-height: 36px;
  padding: 0 10px;
  font-size: 13px;
  white-space: nowrap;
}

.buy-row strong,
.cart-item strong {
  white-space: nowrap;
}

.buy-row span {
  display: grid;
  gap: 3px;
}

.buy-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.just-added button {
  background: var(--brand-2);
}

.panel {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 56px;
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.inline-notice {
  width: min(1180px, calc(100% - 32px));
  margin: 20px auto 0;
}

.panel.narrow {
  width: min(760px, calc(100% - 32px));
}

.notice {
  padding: 14px;
  border-radius: 6px;
  background: #edf7f2;
  color: #17483a;
}

.product-detail {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 64px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 34px;
  align-items: start;
}

.product-detail-modal {
  grid-template-columns: .9fr 1fr;
  gap: 18px;
}

.product-detail-modal .detail-copy {
  padding: 18px;
}

.product-detail-modal .detail-copy h1 {
  margin: 8px 0 10px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.08;
}

.product-detail-modal .detail-copy p {
  font-size: 14px;
  line-height: 1.48;
}

.product-detail-modal .detail-summary {
  margin: 10px 0;
  gap: 5px 10px;
  font-size: 13px;
}

.product-detail-modal .detail-price {
  margin: 14px 0;
  font-size: 22px;
}

.product-detail-modal .product-colors {
  margin: 10px 0 2px;
  gap: 7px;
}

.product-detail-modal .product-colors span {
  min-height: 30px;
  padding: 4px 8px;
  font-size: 12px;
}

.gallery,
.detail-copy {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.gallery {
  overflow: hidden;
}

.gallery-main {
  aspect-ratio: 1 / 1;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  background: #fffaf4;
}

.thumb {
  min-height: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: white;
}

.thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
}

.detail-copy {
  padding: clamp(22px, 4vw, 38px);
}

.detail-copy h1 {
  margin: 12px 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.detail-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 800;
}

.detail-price {
  display: block;
  margin: 24px 0;
  font-size: 28px;
}

.detail-summary,
.spec-table {
  display: grid;
  grid-template-columns: minmax(120px, auto) 1fr;
  gap: 8px 14px;
  margin: 16px 0;
}

.detail-summary dt,
.spec-table dt {
  color: var(--muted);
  font-weight: 850;
}

.detail-summary dd,
.spec-table dd {
  margin: 0;
  font-weight: 800;
}

.product-colors {
  display: grid;
  gap: 10px;
  margin: 18px 0 4px;
}

.product-colors strong {
  font-size: 14px;
}

.product-colors span,
.color-tile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.product-colors i,
.color-tile span {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(0, 0, 0, .18);
  border-radius: 50%;
  background: var(--swatch);
}

.product-colors span {
  width: fit-content;
}

.color-picker {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf4;
}

.color-table {
  display: grid;
  gap: 6px;
}

.color-row {
  display: grid;
  grid-template-columns: 1fr 72px;
  gap: 8px;
  align-items: center;
}

.color-select {
  min-height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}

.color-select input {
  width: auto;
  min-height: auto;
  transform: scale(1.25);
}

.admin-promo-form {
  display: grid;
  gap: 10px;
  margin: 20px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf4;
}

.admin-edit-toggle {
  margin: 12px 0 8px;
}

.admin-product-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 12px 0 8px;
}

.admin-product-actions .admin-edit-toggle {
  margin: 0;
}

.admin-product-actions form {
  margin: 0;
}

.product-inline-editor {
  margin-top: -28px;
}

.wide-form {
  width: 100%;
}

.promo-fields {
  display: grid;
  gap: 12px;
}

.promo-fields[hidden],
[hidden] {
  display: none !important;
}

.detail-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.qty-field {
  width: 110px;
  color: var(--muted);
}

.qty-field input {
  min-height: 42px;
}

.product-tabs {
  width: min(1180px, calc(100% - 32px));
  margin: -34px auto 64px;
  display: grid;
  gap: 12px;
}

.product-tabs details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 16px 18px;
}

.product-tabs summary {
  cursor: pointer;
  color: var(--brand);
  font-size: 18px;
  font-weight: 900;
}

.product-modal[hidden] {
  display: none;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 34px);
}

.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 19, 15, .62);
  backdrop-filter: blur(4px);
}

.product-modal-card {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
  max-height: min(760px, calc(100vh - 28px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .32);
}

.product-modal-close {
  position: sticky;
  top: 12px;
  float: right;
  z-index: 2;
  width: 34px;
  min-height: 34px;
  margin: 12px 12px 0 0;
  padding: 0;
  border-radius: 12px;
  background: var(--brand);
  color: white;
  font-size: 19px;
  line-height: 1;
}

.product-tabs-modal {
  width: auto;
  margin: 0;
  padding: 0 18px 18px;
}

.product-tabs-modal details {
  padding: 12px 14px;
}

.product-tabs-modal summary {
  font-size: 15px;
}

.modal-loading {
  padding: 80px;
  text-align: center;
  color: var(--muted);
  font-weight: 900;
}

.modal-open {
  overflow: hidden;
}

.detail-actions a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(111, 47, 29, .2);
  border-radius: 12px;
  padding: 0 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(245, 232, 216, .88)),
    #fffaf4;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 10px 20px rgba(61, 35, 24, .1);
  color: var(--brand);
  font-weight: 900;
}

.product-detail-modal .detail-actions button,
.product-detail-modal .detail-actions a {
  min-height: 34px;
  padding: 0 11px;
  font-size: 13px;
}

.product-detail-modal .qty-field {
  width: 88px;
  font-size: 12px;
}

.product-detail-modal .qty-field input {
  min-height: 34px;
}

.error {
  padding: 14px;
  border-radius: 6px;
  background: #fff1ee;
  color: #8b2c1f;
}

.dev-link {
  overflow-wrap: anywhere;
  color: var(--brand-2);
}

.cart-list,
.checkout-form,
.admin-form,
.contact-form {
  display: grid;
  gap: 12px;
}

.content-page {
  width: min(1080px, calc(100% - 32px));
  margin: 34px auto 64px;
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(111, 47, 29, .1), rgba(47, 95, 86, .08)),
    white;
  box-shadow: 0 24px 64px rgba(61, 35, 24, .1);
}

.rich-page {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: center;
}

.content-hero-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.content-copy {
  padding: clamp(4px, 2vw, 18px);
}

.content-page h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 58px);
}

.content-page div {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.map-frame {
  grid-column: 1 / -1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf4;
}

.map-frame iframe {
  width: 100%;
  height: min(420px, 62vh);
  display: block;
  border: 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  justify-content: stretch;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item small {
  color: var(--muted);
  font-weight: 800;
}

.remove-btn {
  width: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(245, 232, 216, .88)),
    #fffaf4;
  color: #8b2c1f;
  font-size: 24px;
  line-height: 1;
}

.remove-btn:hover {
  background: var(--brand);
  color: white;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 42px;
  padding: 9px 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 88px;
  resize: vertical;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.check {
  display: flex;
  align-items: center;
}

.check input {
  width: auto;
}

.dropzone {
  min-height: 116px;
  place-items: center;
  justify-items: center;
  padding: 18px;
  border: 2px dashed var(--line);
  border-radius: 8px;
  background: #fffaf4;
  color: var(--ink);
  text-align: center;
  cursor: pointer;
}

.dropzone small {
  color: var(--muted);
}

.dropzone input {
  max-width: 360px;
  border: 0;
  background: transparent;
}

.dropzone.drag-over {
  border-color: var(--brand);
  background: #fff3e3;
}

.thumb-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, 72px);
  gap: 10px;
}

.thumb-item {
  position: relative;
  display: block;
}

.thumb-item img,
.thumb-preview img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #eadfce;
}

.thumb-item input[type="checkbox"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.thumb-remove {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,0) 38%),
    linear-gradient(180deg, #a64230, #8b2c1f);
  color: white;
  font-size: 15px;
  line-height: 1;
}

.thumb-item input[type="checkbox"]:checked + .thumb-remove {
  background: #111;
}

.thumb-item:has(input[type="checkbox"]:checked) img {
  opacity: .28;
  filter: grayscale(1);
}

.existing-preview {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf4;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
}

.admin-single {
  display: grid;
  gap: 18px;
}

.directory-grid {
  grid-template-columns: minmax(260px, .9fr) minmax(300px, 1fr);
}

.directory-grid .wide-form {
  grid-column: 1 / -1;
}

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

.custom-fields {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf4;
}

.admin-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 24px;
}

.admin-tabs a,
.admin-edit {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 13px;
  font-weight: 800;
  background: #fffaf4;
}

.admin-tabs a.active {
  color: white;
  background: var(--brand);
  border-color: var(--brand);
}

.admin-form {
  align-self: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-list {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.admin-product-toolbar {
  display: flex;
  gap: 12px;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.admin-filter-form {
  display: flex;
  gap: 8px;
  align-items: end;
  flex-wrap: wrap;
}

.admin-filter-form label {
  min-width: min(260px, 100%);
}

.stack-form,
.field-builder {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.field-builder {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
}

.existing-field {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.field-builder button {
  align-self: end;
}

.stats-page {
  display: grid;
  gap: 18px;
}

.stats-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.stats-menu {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.stats-menu a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 850;
  background: #fffaf4;
}

.stats-menu a.active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

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

.stats-cards article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf4;
}

.stats-cards span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.stats-cards strong {
  display: block;
  margin-top: 6px;
  font-size: 32px;
}

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

.stats-list {
  display: grid;
  gap: 8px;
}

.stats-list p {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.stats-list small {
  display: block;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.admin-list-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.category-sort-row {
  cursor: grab;
}

.category-sort-row.is-dragging {
  opacity: .55;
  background: #fff3e3;
}

.drag-handle {
  width: 30px;
  min-height: 30px;
  margin-right: 8px;
  padding: 0;
  border-radius: 6px;
  background: #efe3d7;
  color: var(--brand);
  cursor: grab;
  font-weight: 900;
}

.admin-list-row a {
  color: var(--brand);
  font-weight: 850;
}

.admin-list-row span:last-child,
.inline-form {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.inline-form button {
  min-height: 34px;
  padding: 0 10px;
}

.theme-form {
  display: grid;
  gap: 12px;
}

.theme-sample {
  position: relative;
  overflow: hidden;
}

.theme-sample-classic { --brand: #6f2f1d; --brand-2: #2f5f56; --gold: #b9863a; }
.theme-sample-autumn { --brand: #8a341f; --brand-2: #506f3c; --gold: #c78b2d; }
.theme-sample-winter { --brand: #25525c; --brand-2: #7a4e68; --gold: #ad8d44; }
.theme-sample-editorial { --brand: #4a352c; --brand-2: #8a6a3d; --gold: #b88a47; }
.theme-sample-compact { --brand: #2f5d50; --brand-2: #7b573c; --gold: #a47d39; }
.theme-sample-luxe { --brand: #a76f3d; --brand-2: #6f8a7a; --gold: #d3a65a; }
.theme-sample-market { --brand: #315f43; --brand-2: #9b5436; --gold: #bf8a38; }
.theme-sample-travel { --brand: #2c4b66; --brand-2: #83633c; --gold: #c29955; }
.theme-sample-contrast { --brand: #111; --brand-2: #8b2c1f; --gold: #fff; }
.theme-sample-minimal { --brand: #5b4638; --brand-2: #3f625d; --gold: #a98443; }
.theme-sample-atelier { --brand: #7b3b2a; --brand-2: #47665d; --gold: #b68a42; }
.theme-sample-panorama { --brand: #2c5870; --brand-2: #8a633d; --gold: #c19a58; }
.theme-sample-shelf { --brand: #315f43; --brand-2: #854634; --gold: #ad7d35; }
.theme-sample-salon { --brand: #ad7644; --brand-2: #758c7c; --gold: #d4a85f; }
.theme-sample-urban { --brand: #222; --brand-2: #8b3f2b; --gold: #a47b35; }
.theme-sample-magazine { --brand: #584136; --brand-2: #987345; --gold: #bd9552; }
.theme-sample-desk { --brand: #455a46; --brand-2: #6e4f38; --gold: #bd8e45; }

.theme-sample::after {
  content: "";
  display: block;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(90deg, var(--brand) 0 28%, transparent 28% 32%, var(--brand-2) 32% 62%, transparent 62% 66%, var(--gold) 66% 100%);
}

.theme-sample-luxe,
.theme-sample-luxe input {
  color: #f7eee1;
  background: #211914;
}

.theme-sample-contrast::after {
  border-color: #111;
  background: linear-gradient(90deg, #111 0 35%, #fff 35% 70%, #8b2c1f 70%);
}

.theme-slug {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.settings-block {
  display: grid;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.settings-block h3 {
  margin: 0;
}

.site-mode-form {
  margin-bottom: 18px;
}

.admin-page-preview {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.html-editor {
  display: grid;
  gap: 12px;
}

.html-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf4;
}

.html-toolbar button {
  min-height: 34px;
  padding: 0 11px;
}

.html-editor textarea {
  min-height: 180px;
  font-family: Consolas, "Courier New", monospace;
}

.html-preview {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.html-preview > div,
.html-content {
  line-height: 1.7;
}

.html-preview img,
.html-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.html-content table {
  width: 100%;
  border-collapse: collapse;
}

.html-content th,
.html-content td {
  padding: 10px;
  border: 1px solid var(--line);
}

.telegram-status {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf4;
}

.danger-btn {
  background:
    linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,0) 38%),
    linear-gradient(180deg, #a64230, #8b2c1f);
}

.table-wrap {
  overflow-x: auto;
  margin-top: 24px;
}

.contact-band {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 64px;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 28px;
  align-items: start;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(111, 47, 29, .08), rgba(47, 95, 86, .08)),
    #fffaf4;
}

.contact-band h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
}

.contact-band p {
  color: var(--muted);
  line-height: 1.6;
}

.contact-form {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

table {
  width: 100%;
  border-collapse: collapse;
}

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

.footer {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 24px;
  padding: 24px clamp(16px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fffaf4;
}

.footer div {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer h3,
.footer p {
  margin: 0;
}

.footer h3,
.footer strong {
  color: var(--ink);
}

@media (max-width: 980px) {
  .home-shop,
  .admin-grid,
  .admin-subgrid,
  .stats-grid,
  .product-detail,
  .contact-band,
  .rich-page,
  .footer {
    grid-template-columns: 1fr;
  }

  .catalog-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-menu {
    align-items: flex-start;
  }

  .catalog-icon-list.open {
    max-height: 70vh;
  }

  .filters.catalog-icon-list {
    grid-template-columns: 1fr;
  }

  .price-filter {
    width: 100%;
    margin-left: 0;
  }

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

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .theme-editorial .product:first-child {
    grid-column: auto;
  }

  .theme-travel .home-shop,
  .theme-compact .home-shop,
  .theme-atelier .home-shop,
  .theme-shelf .home-shop,
  .theme-urban .home-shop,
  .theme-desk .home-shop {
    grid-template-columns: 1fr;
  }

  .theme-magazine .grid {
    grid-template-columns: 1fr;
  }

  .theme-magazine .product,
  .theme-magazine .product:nth-child(5n + 1) {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .site-header {
    grid-template-columns: 1fr auto auto auto;
    gap: 8px;
    padding: 10px 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .brand-mark svg {
    width: 24px;
    height: 24px;
  }

  .menu-toggle {
    min-width: 92px;
    min-height: 40px;
    padding: 0 30px 0 12px;
    border-radius: 11px;
    font-size: 13px;
  }

  .lang-select {
    min-width: 66px;
    max-width: 70px;
    padding: 8px 6px;
  }

  .cart-button {
    min-width: 42px;
    min-height: 40px;
    padding: 0 8px;
  }

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

  .product .buy-row button {
    width: auto;
    align-self: flex-start;
  }

  .hero {
    min-height: 360px;
  }

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

  .product-modal {
    padding: 8px;
  }

  .product-detail-modal {
    padding: 10px;
  }

  .product-tabs-modal {
    padding: 0 10px 10px;
  }

  .cart-item,
  .buy-row,
  .admin-head,
  .footer,
  .detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}
