/* ══════════════════════════════════════════
   Zotax05 — Dark Forge Design System
   ══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  --ink:      #09090b;
  --ink-2:    #111113;
  --ink-3:    #18181b;
  --ink-4:    #27272a;
  --ink-5:    #3f3f46;
  --muted:    #71717a;
  --soft:     #a1a1aa;
  --line:     rgba(255,255,255,.07);
  --line-2:   rgba(255,255,255,.12);
  --text:     #f4f4f5;
  --text-2:   #a1a1aa;
  --amber:    #f59e0b;
  --amber-2:  #fbbf24;
  --amber-d:  #d97706;
  --amber-bg: rgba(245,158,11,.1);
  --green:    #22c55e;
  --green-bg: rgba(34,197,94,.1);
  --red:      #ef4444;
  --red-bg:   rgba(239,68,68,.1);
  --blue:     #3b82f6;
  --photo-bg: linear-gradient(145deg, #f8fafc 0%, #ebe7dd 100%);
  --photo-bg-flat: #f8fafc;
  --photo-line: rgba(15, 23, 42, .08);

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --nav-h: 64px;
  --font-display: 'Space Grotesk', 'Manrope', sans-serif;
  --font: 'Manrope', sans-serif;

  /* Legacy aliases */
  --shell-bg:            var(--ink);
  --shell-card:          var(--ink-2);
  --shell-card-soft:     var(--ink-3);
  --shell-text:          var(--text);
  --shell-text-soft:     var(--text-2);
  --shell-text-muted:    var(--muted);
  --shell-line:          var(--line);
  --shell-line-strong:   var(--line-2);
  --shell-brand:         var(--amber);
  --shell-brand-strong:  var(--amber-d);
  --shell-brand-soft:    var(--amber-bg);
  --shell-success:       var(--green);
  --shell-danger:        var(--red);
  --shell-shadow:        0 18px 40px rgba(0,0,0,.4);
  --shell-shadow-soft:   0 10px 24px rgba(0,0,0,.3);
  --shell-radius-xl:     var(--r-xl);
  --shell-radius-lg:     var(--r-lg);
  --shell-radius-md:     var(--r-md);
  --shell-radius-sm:     var(--r-sm);
  --shell-header-offset: var(--nav-h);
}

/* ══ RESET ══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font);
  background: var(--ink);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button { border: 0; background: none; cursor: pointer; }
::selection { background: var(--amber); color: var(--ink); }

/* ══ SCROLLBAR ══ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ink-2); }
::-webkit-scrollbar-thumb { background: var(--ink-5); border-radius: 3px; }

/* ══ UTILITIES ══ */
.shell-hidden { display: none !important; }

/* ══ LAYOUT ══ */
.page-shell {
  width: min(1400px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 80px;
}
.page-shell.page-shell-narrow {
  width: min(1180px, calc(100vw - 32px));
}
.wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}
.section { padding: 80px 0; }
.section-inner { max-width: 1400px; margin: 0 auto; padding: 0 32px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 18px;
}

/* ══ TYPOGRAPHY ══ */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text);
  margin: 0;
}
.section-copy {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.7;
  margin: 10px 0 0;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 22px;
  transition: color .15s;
}
.back-link:hover { color: var(--amber); }

/* ══ KICKER / SECTION KICKER ══ */
.kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--amber-bg);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

/* ══ BUTTONS ══ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .15s;
  line-height: 1;
}
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: var(--amber-2); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(245,158,11,.25); }
.btn-ghost { background: transparent; color: var(--text-2); border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); background: var(--amber-bg); }
.btn-dark { background: var(--ink-3); color: var(--text); border: 1px solid var(--line-2); }
.btn-dark:hover { background: var(--ink-4); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--r-md); }

/* Legacy button aliases */
.shell-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all .15s;
  line-height: 1;
}
.shell-btn-primary { background: var(--amber); color: var(--ink); }
.shell-btn-primary:hover { background: var(--amber-2); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(245,158,11,.25); }
.shell-btn-secondary { background: transparent; color: var(--text-2); border: 1px solid var(--line-2); }
.shell-btn-secondary:hover { border-color: var(--amber); color: var(--amber); background: var(--amber-bg); }
.shell-link { color: var(--amber); font-size: 14px; font-weight: 700; transition: color .15s; }
.shell-link:hover { color: var(--amber-2); }

/* ══ BADGES ══ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-red   { background: var(--red-bg);   color: var(--red); }
.badge-gray  { background: rgba(255,255,255,.06); color: var(--soft); }
.badge-amber { background: var(--amber-bg); color: var(--amber); }

/* Legacy pill aliases */
.shell-pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.shell-pill.is-success { background: var(--green-bg); color: var(--green); }
.shell-pill.is-danger  { background: var(--red-bg);   color: var(--red); }
.shell-pill.is-muted   { background: rgba(255,255,255,.06); color: var(--soft); }

/* ══ CARDS ══ */
.shell-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

/* ══ FORMS ══ */
.shell-form-input,
.shell-form-textarea,
.shell-form-select,
.form-in {
  width: 100%;
  border: 1px solid var(--line-2);
  background: var(--ink-3);
  color: var(--text);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  outline: 0;
  transition: border-color .18s, box-shadow .18s;
  font-size: 14px;
}
.shell-form-textarea,
.form-ta {
  min-height: 80px;
  resize: vertical;
}
.shell-form-input:focus,
.shell-form-textarea:focus,
.shell-form-select:focus,
.form-in:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245,158,11,.12);
}
.shell-form-input::placeholder,
.form-in::placeholder { color: var(--muted); }
.form-lbl {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 5px;
  margin-top: 8px;
}
.form-lbl:first-child { margin-top: 0; }
.form-hint { font-size: 11px; color: var(--muted); text-align: center; margin-top: 8px; line-height: 1.5; }

/* ══ STATUS ══ */
.shell-status {
  display: none;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  background: rgba(59,130,246,.12);
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(59,130,246,.2);
  margin-bottom: 12px;
}
.shell-status.is-error { background: var(--red-bg); color: var(--red); border-color: rgba(239,68,68,.2); }

/* ══ TOAST ══ */
.toast-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  color: var(--text);
  padding: 12px 18px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 16px 48px rgba(0,0,0,.5);
  pointer-events: all;
  animation: tIn .2s cubic-bezier(.2,.8,.3,1);
  border-left: 3px solid var(--amber);
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.out { animation: tOut .2s forwards; }
@keyframes tIn  { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
@keyframes tOut { to   { opacity:0; transform:translateY(6px); } }

/* ══ HEADER ══ */
.shell-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(9,9,11,.9);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
}
.shell-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}
.shell-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.shell-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.shell-brand-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}
.shell-brand-name span { color: var(--amber); }
.shell-desktop-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.shell-desktop-nav a {
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  transition: color .12s, background .12s;
}
.shell-desktop-nav a:hover,
.shell-desktop-nav a.is-active {
  color: var(--text);
  background: var(--ink-3);
}
.shell-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: flex-end;
}
.shell-catalog-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--ink-3);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  flex-shrink: 0;
}
.shell-catalog-toggle:hover,
.shell-catalog-toggle.is-open {
  border-color: var(--amber);
  background: var(--amber-bg);
  color: var(--amber);
}
.shell-catalog-toggle-mark {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  width: 14px;
  height: 14px;
}
.shell-catalog-toggle-mark span {
  display: block;
  background: currentColor;
  border-radius: 1px;
}
.shell-catalog-toggle-label { }
.shell-catalog-toggle-arrow { font-size: 16px; line-height: 1; margin-left: 2px; }
.shell-search-form {
  flex: 1;
  max-width: 520px;
  position: relative;
}
.shell-search-form input {
  width: 100%;
  height: 40px;
  padding: 0 80px 0 40px;
  background: var(--ink-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.shell-search-form input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245,158,11,.12);
}
.shell-search-form input::placeholder { color: var(--muted); }
.shell-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  font-size: 15px;
}
.shell-search-submit {
  position: absolute;
  right: 6px;
  top: 6px;
  bottom: 6px;
  padding: 0 12px;
  border-radius: 4px;
  background: var(--amber);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background .15s;
}
.shell-search-submit:hover { background: var(--amber-2); }
.shell-cart-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--amber);
  color: var(--ink);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 700;
  transition: all .15s;
  flex-shrink: 0;
}
.shell-cart-link:hover { background: var(--amber-2); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(245,158,11,.3); }
.shell-cart-meta { display: none; }
.simpleCart_quantity {
  min-width: 18px;
  height: 18px;
  background: var(--ink);
  color: var(--amber);
  border-radius: 9px;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.shell-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: var(--ink-3);
  border: 1px solid var(--line-2);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
}

/* ══ MEGA MENU ══ */
/* ══ MEGA MENU ══ */
.shell-mega {
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 190;
  background: var(--ink-2);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
  display: none;
  overflow: hidden;
  max-height: calc(100vh - var(--nav-h));
}
.shell-mega.is-open { display: block; }
.shell-mega-inner {
  display: flex;
  width: 100%;
  max-height: calc(100vh - var(--nav-h));
}

/* ── Sidebar (left column: root category list) ── */
.shell-mega-sidebar {
  width: min(640px, 54vw);
  flex-shrink: 0;
  border-right: 1px solid var(--line);
  overflow-y: auto;
  max-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
}
.shell-mega-sidebar-head {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.shell-mega-sidebar-kicker {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin-bottom: 8px;
}
.shell-mega-search {
  display: flex; align-items: center; gap: 6px;
  background: var(--ink-3); border: 1px solid var(--line-2);
  border-radius: var(--r-sm); padding: 6px 10px;
}
.shell-mega-search-icon { color: var(--muted); font-size: 14px; flex-shrink: 0; }
.shell-mega-search input {
  flex: 1; background: none; border: none; outline: none;
  font-size: 13px; color: var(--text); min-width: 0;
}
.shell-mega-search input::placeholder { color: var(--muted); }
.shell-mega-root-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 6px;
}
.shell-mega-roots-empty { padding: 12px 16px; font-size: 13px; color: var(--muted); }

/* Root category buttons */
.shell-mega-root {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 10px;
  font-size: 13px; font-weight: 600;
  color: var(--text-2);
  background: rgba(255,255,255,.02);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  text-align: left; cursor: pointer;
  transition: background .1s, color .1s, border-color .1s;
  min-width: 0;
}
.shell-mega-root:hover { background: var(--ink-4); border-color: var(--line-2); color: var(--text); }
.shell-mega-root.is-active { background: var(--amber-bg); border-color: rgba(245,158,11,.28); color: var(--amber); }
.shell-mega-root-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.shell-mega-root-icon {
  width: 28px; height: 28px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: .75;
  border-radius: 8px;
  background: rgba(245,158,11,.12);
  border: 1px solid rgba(245,158,11,.18);
}
.shell-mega-root-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(74%) sepia(91%) saturate(1379%) hue-rotate(344deg) brightness(100%) contrast(93%);
}
.shell-mega-root.is-active .shell-mega-root-icon { opacity: 1; }
.shell-mega-root-copy { min-width: 0; }
.shell-mega-root-title { display: block; font-size: 13px; font-weight: 600; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.shell-mega-root-count { display: block; font-size: 11px; font-weight: 400; color: var(--muted); margin-top: 1px; }
.shell-mega-root.is-active .shell-mega-root-count { color: var(--amber); opacity: .7; }

/* ── Content (right column: panel) ── */
#shell-mega-content {
  flex: 1; overflow-y: auto;
  max-height: calc(100vh - var(--nav-h));
}
.shell-mega-panel {
  padding: 20px 24px;
}
.shell-mega-mobile-back {
  display: none; margin-bottom: 12px;
  background: none; border: none; color: var(--amber);
  font-size: 13px; font-weight: 600; cursor: pointer; padding: 0;
}

/* Panel header */
.shell-mega-panel-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 16px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.shell-mega-panel-copy h3 {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  color: var(--text); margin: 0; margin-top: 2px;
}
.shell-mega-panel-kicker {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); margin-bottom: 3px;
}
.shell-mega-panel-actions { display: flex; gap: 8px; flex-shrink: 0; align-items: center; }
.shell-mega-panel-action {
  padding: 7px 14px; border-radius: var(--r-sm);
  background: var(--amber); color: var(--ink);
  font-size: 13px; font-weight: 700; text-decoration: none;
  transition: background .1s;
}
.shell-mega-panel-action:hover { background: var(--amber-2); }
.shell-mega-panel-action-secondary {
  background: var(--ink-4); color: var(--text-2);
}
.shell-mega-panel-action-secondary:hover { background: var(--ink-3); color: var(--text); }

/* Quick links strip */
.shell-mega-quick-strip { margin-bottom: 16px; }
.shell-mega-quick-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--muted); margin-bottom: 8px;
}
.shell-mega-quick-links { display: flex; flex-wrap: wrap; gap: 6px; }
.shell-mega-quick-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 20px;
  background: var(--ink-3); border: 1px solid var(--line-2);
  font-size: 12px; font-weight: 600; color: var(--text-2);
  text-decoration: none; transition: all .1s;
}
.shell-mega-quick-link strong { color: var(--amber); font-size: 11px; }
.shell-mega-quick-link:hover { background: var(--amber-bg); color: var(--amber); border-color: rgba(245,158,11,.3); }

/* Section grid */
.shell-mega-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.shell-mega-section-card {
  background: var(--ink-3); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 12px;
  transition: border-color .1s;
}
.shell-mega-section-card:hover { border-color: var(--line-2); }
.shell-mega-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 6px; margin-bottom: 8px;
}
.shell-mega-section-head h4 { margin: 0; font-size: 13px; font-weight: 700; line-height: 1.3; }
.shell-mega-section-head h4 a { color: var(--text); text-decoration: none; }
.shell-mega-section-head h4 a:hover { color: var(--amber); }
.shell-mega-section-count { font-size: 11px; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.shell-mega-links { display: flex; flex-direction: column; gap: 2px; }
.shell-mega-links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 6px; border-radius: var(--r-sm);
  text-decoration: none; transition: background .1s;
}
.shell-mega-links a:hover { background: var(--ink-4); }
.shell-mega-link-label { font-size: 12px; color: var(--text-2); }
.shell-mega-link-count { font-size: 11px; color: var(--muted); flex-shrink: 0; }
.shell-mega-links a:hover .shell-mega-link-label { color: var(--amber); }
.shell-mega-section-link .shell-mega-link-label { color: var(--amber); font-weight: 600; font-size: 11px; }
.shell-mega-section-link .shell-mega-link-count { color: var(--amber); }

/* Old compat classes (keep in case any old panels render) */
.shell-mega-content { flex: 1; overflow-y: auto; max-height: calc(100vh - var(--nav-h)); }
.shell-mega-item { padding: 9px 11px; border-radius: var(--r-sm); font-size: 13px; color: var(--text-2); cursor: pointer; transition: background .1s, color .1s; display: flex; align-items: center; gap: 9px; }
.shell-mega-item:hover { background: var(--ink-4); color: var(--amber); }

/* Mobile overrides */
.is-mobile-roots .shell-mega-sidebar { width: 100%; }
.is-mobile-roots #shell-mega-content { display: none; }
.is-mobile-panel .shell-mega-sidebar { display: none; }
.is-mobile-panel .shell-mega-panel { width: 100%; }
.is-mobile-panel .shell-mega-mobile-back { display: block; }

/* Backdrop */
.shell-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 180;
  background: rgba(0,0,0,.5);
  display: none;
}
.shell-menu-backdrop.is-open { display: block; }

/* Mobile panel */
.shell-mobile-panel {
  position: fixed;
  top: var(--shell-header-offset, var(--nav-h));
  left: 0;
  right: 0;
  bottom: auto;
  height: calc(100vh - var(--shell-header-offset, var(--nav-h)));
  height: calc(100dvh - var(--shell-header-offset, var(--nav-h)));
  max-height: calc(100vh - var(--shell-header-offset, var(--nav-h)));
  max-height: calc(100dvh - var(--shell-header-offset, var(--nav-h)));
  z-index: 260;
  background: var(--ink-2);
  padding: 24px;
  display: none;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.shell-mobile-panel.is-open { display: flex; }
.shell-mobile-panel a {
  padding: 13px 16px;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  transition: background .1s, color .1s;
}
.shell-mobile-panel a:hover { background: var(--ink-4); color: var(--text); }
.shell-mobile-primary {
  background: var(--amber) !important;
  color: var(--ink) !important;
  font-weight: 700 !important;
  margin-top: 12px;
}

/* ══ FOOTER ══ */
.shell-footer {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  padding: 52px 0 24px;
}
.shell-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}
.shell-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.shell-footer-grid section h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.shell-footer-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.shell-footer-list a,
.shell-footer-list span {
  font-size: 13px;
  color: var(--muted);
  transition: color .12s;
}
.shell-footer-list a:hover { color: var(--amber); }
.shell-footer-copy {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 12px;
  color: var(--muted);
}

/* ══ HOME: HERO ══ */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: -200px;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,.08) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,.06) 0%, transparent 65%);
  pointer-events: none;
}
.hero-left {
  padding: 80px 60px 80px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
  border-right: 1px solid var(--line);
}
.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow::before { content: ''; display: block; width: 32px; height: 1px; background: var(--amber); }
.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 66px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -2.5px;
  color: var(--text);
  margin-bottom: 24px;
}
.hero-h1 .accent { color: var(--amber); }
.hero-h1 .stroke { -webkit-text-stroke: 1.5px var(--text-2); color: transparent; }
.hero-sub { font-size: 16px; color: var(--text-2); line-height: 1.65; margin-bottom: 40px; max-width: 420px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats {
  display: flex;
  gap: 36px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.hero-stat-n { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--text); letter-spacing: -1px; }
.hero-stat-l { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Hero right */
.hero-right {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 48px 48px 40px;
  gap: 12px;
}
.hero-right-label {
  position: absolute;
  top: 32px;
  left: 40px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-right-label span { color: var(--amber); }
.hcard {
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: border-color .15s, transform .15s, box-shadow .15s;
  text-decoration: none;
}
.hcard:hover { border-color: var(--amber); transform: translateX(4px); box-shadow: -3px 0 0 var(--amber); }
.hcard-ico {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
  background: var(--ink-4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.hcard-name { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.hcard-price-old {
  font-size: 11px;
  color: var(--muted);
  text-decoration: line-through;
  margin-bottom: 1px;
}
.hcard-price { font-size: 12px; color: var(--text-2); font-weight: 700; }
.hcard-pct {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--amber);
  background: var(--amber-bg);
  padding: 3px 9px;
  border-radius: 10px;
}

/* ══ HOME: TICKER ══ */
.ticker {
  background: var(--amber);
  color: var(--ink);
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.ticker-inner { display: inline-flex; gap: 48px; animation: ticker 28s linear infinite; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-sep { opacity: .4; }

/* ══ HOME: CATEGORIES ══ */
.cat-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.cat-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 12px 18px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, transform .15s, background .15s;
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(245,158,11,.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity .2s;
}
.cat-card:hover { border-color: rgba(245,158,11,.4); transform: translateY(-4px); }
.cat-card:hover::before { opacity: 1; }
.cat-ico { font-size: 28px; margin-bottom: 10px; }
.cat-name { font-size: 13px; font-weight: 600; color: var(--text); }
.cat-count { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ══ HOME: PRODUCT GRID (hits) ══ */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.prod-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .18s, transform .18s, box-shadow .18s;
  position: relative;
}
.prod-card:hover {
  border-color: rgba(245,158,11,.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,.4), 0 0 0 1px rgba(245,158,11,.15);
}
.prod-img {
  height: 170px;
  background: var(--photo-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.prod-img img { width: 100%; height: 100%; object-fit: contain; padding: 16px; filter: drop-shadow(0 10px 18px rgba(15,23,42,.12)); mix-blend-mode: multiply; }
.prod-img-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 60%, rgba(245,158,11,.12) 0%, transparent 68%);
  pointer-events: none;
}
.prod-body { padding: 14px; }
.prod-sku { font-size: 11px; font-family: monospace; color: var(--muted); letter-spacing: .04em; margin-bottom: 6px; }
.prod-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prod-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; gap: 8px; }
.prod-price { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--text); letter-spacing: -0.3px; }
.prod-price-old { font-size: 12px; color: var(--muted); text-decoration: line-through; margin-top: 1px; }
.prod-add {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  border: none;
  background: var(--ink-4);
  color: var(--amber);
  font-size: 20px;
  font-weight: 300;
  cursor: pointer;
  transition: background .15s, transform .1s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.prod-add:hover { background: var(--amber); color: var(--ink); transform: scale(1.06); }
.prod-discount {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--amber);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

/* ══ HOME: TRUST BLOCK ══ */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.trust-item {
  padding: 32px 28px;
  background: var(--ink);
}
.trust-ico { font-size: 26px; margin-bottom: 12px; }
.trust-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.trust-text { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ══ HOME: SALES PANEL ══ */
.home-sales-panel {
  padding: 24px;
  min-height: 320px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
#home-sales { min-height: 240px; }

/* ══ PRODUCT TILES (from home.js / products.js) ══ */
.product-tile {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .18s, transform .18s, box-shadow .18s;
  display: flex;
  flex-direction: column;
}
.product-tile:hover {
  border-color: rgba(245,158,11,.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}
.product-tile-media {
  display: block;
  height: 180px;
  background: var(--photo-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.product-tile-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 56%, rgba(245,158,11,.12), transparent 70%);
  pointer-events: none;
}
.product-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  filter: drop-shadow(0 10px 18px rgba(15,23,42,.13));
  mix-blend-mode: multiply;
  position: relative;
  z-index: 1;
}
.product-tile-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.product-tile-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background: var(--amber-bg);
  color: var(--amber);
}
.product-tile-title {
  display: block;
  padding: 4px 14px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-tile-title:hover { color: var(--amber); }
.product-tile-meta {
  padding: 0 14px 8px;
  font-size: 11px;
  color: var(--muted);
  font-family: monospace;
}
.product-tile-price-wrap { padding: 8px 14px 0; }
.product-tile-price-meta {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}
.product-tile-price-meta-accent { color: var(--amber); }
.product-tile-price {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}
.product-tile-price-row { display: flex; align-items: center; gap: 10px; }
.product-tile-price-main { flex: 1; }
.product-tile-price-old-block { margin-bottom: 2px; }
.product-tile-price-old {
  font-size: 13px;
  text-decoration: line-through;
  color: var(--muted);
  font-weight: 400;
}
.product-tile-sale-badge {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background: var(--amber);
  color: var(--ink);
}
.product-tile-actions { padding: 10px 14px 14px; margin-top: auto; }
.product-tile-cart {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all .15s;
}
.product-tile-cart.shell-btn-primary { background: var(--amber); color: var(--ink); }
.product-tile-cart.shell-btn-primary:hover { background: var(--amber-2); }
.product-tile-cart.shell-btn-secondary { background: transparent; color: var(--text-2); border: 1px solid var(--line-2); }

/* Skeleton tiles */
.product-tile-skeleton { pointer-events: none; }
.product-tile-skeleton * { visibility: hidden; }
.product-tile-skeleton { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-lg); }

/* Home product grid (home.js renders this) */
.home-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 960px) {
  .home-product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .home-product-grid { grid-template-columns: 1fr; }
}

/* ══ CATALOG CARDS (products.js renders these) ══ */
/* ══ CATALOG CARD (products.js renders these) ══ */
.catalog-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .15s, transform .15s, box-shadow .15s;
  position: relative;
  cursor: pointer;
}
.catalog-card:hover {
  border-color: rgba(245,158,11,.35);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}

/* Image area */
.catalog-card-media {
  display: flex;
  height: 180px;
  background: var(--photo-bg);
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.catalog-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 56%, rgba(245,158,11,.12), transparent 70%);
  pointer-events: none;
}
.catalog-card-image {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 18px;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(15,23,42,.13));
  mix-blend-mode: multiply;
  position: relative;
  z-index: 1;
}

/* Card body */
.catalog-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Badges row (availability + SKU/PN) */
.catalog-card-top { margin-bottom: 6px; }
.catalog-card-badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.catalog-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}
.catalog-card-badge.is-ok { background: var(--green-bg); color: var(--green); }
.catalog-card-badge.is-no { background: var(--red-bg); color: var(--red); }
.catalog-card-badge.is-pending { background: var(--amber-bg); color: var(--amber); }
.catalog-card-code { font-family: monospace; font-size: 10px; color: var(--muted); }
.catalog-card-meta { display: none; } /* hide brand/PN meta — already shown in code */

/* Product title */
.catalog-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  text-decoration: none;
  margin-bottom: 8px;
}
.catalog-card-title:hover { color: var(--amber); }

/* BriefSpecs — hidden on card for cleaner look */
.catalog-card-copy { display: none; }

/* Price row */
.catalog-price-row-card {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 10px;
}
.catalog-card-price-meta {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 2px;
}
.catalog-price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}
.catalog-price.request { font-size: 13px; letter-spacing: 0; font-family: var(--font); color: var(--muted); }

/* Actions: qty + add button */
.catalog-card-actions { display: flex; gap: 8px; align-items: center; }
.catalog-card-qty {
  display: flex;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.catalog-card-qty-btn {
  width: 30px; height: 34px;
  border: none;
  background: var(--ink-3);
  color: var(--text-2);
  font-size: 18px; font-weight: 300;
  cursor: pointer;
  transition: background .12s;
}
.catalog-card-qty-btn:hover { background: var(--ink-4); color: var(--amber); }
.catalog-card-qty-input {
  width: 36px; text-align: center;
  border: none;
  border-left: 1px solid var(--line-2);
  border-right: 1px solid var(--line-2);
  background: var(--ink-2);
  font-size: 13px; font-weight: 700;
  color: var(--text); outline: none;
}
/* Add to cart button */
.catalog-card .catalog-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 12px;
  background: var(--amber);
  color: var(--ink);
  border: none;
  border-radius: var(--r-sm);
  font-size: 13px; font-weight: 700;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  font-family: var(--font);
  white-space: nowrap;
}
.catalog-card .catalog-btn:hover { background: var(--amber-2); }
.catalog-card .catalog-btn.is-disabled {
  background: var(--ink-3);
  color: var(--muted);
  cursor: not-allowed;
  border: 1px solid var(--line-2);
}

/* Products grid layouts */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.products-grid.products-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ══ CATALOG PAGE ══ */
#page-catalog,
.catalog-wrap-outer {
  min-height: calc(100vh - var(--nav-h));
}
.catalog-wrap,
.catalog-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - var(--nav-h));
}

/* Sidebar / Filters */
.sidebar,
.catalog-sidebar,
.catalog-filters {
  background: var(--ink-2);
  border-right: 1px solid var(--line);
  padding: 24px;
  position: sticky;
  top: var(--nav-h);
  align-self: start;
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}
.sidebar-head,
.catalog-facet-head {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sidebar-reset { font-size: 12px; color: var(--amber); cursor: pointer; text-transform: none; letter-spacing: 0; font-weight: 600; }

/* Facet card (from products.js) */
.catalog-facet-card {
  background: transparent;
}
.catalog-facet-body { }
.catalog-facet-empty { font-size: 13px; color: var(--muted); padding: 12px 0; line-height: 1.5; }
.catalog-facet-toolbar {
  margin-bottom: 12px;
}
.catalog-facet-search,
.catalog-input {
  width: 100%;
  padding: 7px 9px;
  background: var(--ink-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--text);
  outline: none;
}
.catalog-input:focus { border-color: var(--amber); }
.catalog-input::placeholder { color: var(--muted); }
.catalog-facet-toolbar-actions { margin-top: 6px; }
.catalog-facet-more {
  font-size: 12px;
  font-weight: 600;
  color: var(--amber);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.catalog-facet-section { margin-bottom: 20px; }
.catalog-facet-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.catalog-facet-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 0;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-2);
  transition: color .1s;
}
.catalog-facet-option:hover { color: var(--amber); }
.catalog-facet-option input[type="checkbox"] { accent-color: var(--amber); }
.catalog-facet-option-count { margin-left: auto; font-size: 11px; color: var(--muted); }
.catalog-facet-picker {
  background: var(--ink-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-top: 8px;
}
.catalog-facet-picker-grid { display: flex; }
.catalog-facet-picker-col { flex: 1; border-right: 1px solid var(--line); }
.catalog-facet-picker-col:last-child { border-right: none; }
.catalog-facet-picker-item {
  display: flex;
  flex-direction: column;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  transition: background .1s, color .1s;
}
.catalog-facet-picker-item:hover { background: var(--ink-4); color: var(--amber); }
.catalog-facet-picker-item.is-active { background: var(--amber-bg); color: var(--amber); }
.catalog-facet-picker-name { font-weight: 600; font-size: 13px; }
.catalog-facet-picker-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.catalog-facet-picker-values { padding: 8px; overflow-y: auto; max-height: 280px; }
.catalog-facet-picker-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-2);
  border-radius: 4px;
  transition: background .1s, color .1s;
}
.catalog-facet-picker-option:hover { background: var(--ink-5); color: var(--amber); }
.catalog-facet-picker-actions { padding: 10px 12px; border-top: 1px solid var(--line); }

/* Filter groups */
.filter-g { margin-bottom: 14px; }
.filter-g-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.filter-row { display: flex; align-items: center; gap: 9px; padding: 5px 0; cursor: pointer; font-size: 13px; color: var(--text-2); }
.filter-row:hover { color: var(--amber); }
.fcheck {
  width: 16px; height: 16px; border-radius: 4px;
  border: 1.5px solid var(--ink-5); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all .12s;
}
.fcheck.on { background: var(--amber); border-color: var(--amber); }
.fcheck.on::after { content: '✓'; color: var(--ink); font-size: 10px; font-weight: 700; }
.fcount { margin-left: auto; font-size: 11px; color: var(--muted); }
.price-inputs { display: flex; flex-direction: column; gap: 4px; }
.price-in {
  width: 100%; padding: 4px 7px;
  background: var(--ink-3); border: 1px solid var(--line-2);
  border-radius: var(--r-sm); font-size: 12px; color: var(--text); outline: none;
}
.price-in:focus { border-color: var(--amber); }
.filter-divider { height: 1px; background: var(--line); margin: 6px 0 16px; }

/* Catalog toolbar */
.cat-toolbar,
.catalog-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.breadcrumbs,
.catalog-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  flex: 1;
  flex-wrap: wrap;
}
.breadcrumbs span,
.catalog-breadcrumbs a { cursor: pointer; transition: color .1s; }
.breadcrumbs span:hover,
.catalog-breadcrumbs a:hover { color: var(--amber); }
.breadcrumbs .cur { color: var(--text); font-weight: 600; }
.tb-count,
.catalog-count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.tb-sort,
.catalog-sort {
  padding: 7px 11px;
  background: var(--ink-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--text-2);
  outline: none;
  cursor: pointer;
}
.view-tog,
.view-toggle {
  display: flex;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.view-b {
  width: 36px; height: 36px;
  border: none; background: transparent;
  cursor: pointer; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  transition: background .12s, color .12s;
}
.view-b.on { background: var(--amber); color: var(--ink); }
.view-b:hover:not(.on) { background: var(--ink-4); color: var(--text); }

/* Active filter chips */
.active-chips { padding: 10px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.chip {
  display: flex; align-items: center; gap: 5px; padding: 4px 10px;
  background: var(--amber-bg); border: 1px solid rgba(245,158,11,.3);
  border-radius: 20px; font-size: 12px; font-weight: 600; color: var(--amber); cursor: pointer;
  transition: all .1s;
}
.chip:hover { background: var(--amber); color: var(--ink); }
.chip-clear { font-size: 12px; color: var(--amber); cursor: pointer; font-weight: 600; margin-left: 4px; }

/* Catalog content area */
.cat-content,
.catalog-content { padding: 24px; background: var(--ink); }
.cat-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* Table/List view */
.cat-list-table { background: var(--ink-2); border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; }
.tbl-head {
  display: grid;
  grid-template-columns: 52px 1fr 120px 90px 120px 130px;
  gap: 12px; padding: 12px 18px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--muted);
  border-bottom: 1px solid var(--line); background: var(--ink-3);
}
.tbl-row {
  display: grid;
  grid-template-columns: 52px 1fr 120px 90px 120px 130px;
  gap: 12px; padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  align-items: center; cursor: pointer;
  transition: background .1s;
}
.tbl-row:last-child { border-bottom: none; }
.tbl-row:hover { background: var(--ink-3); }
.tbl-thumb {
  width: 44px; height: 44px;
  background: var(--photo-bg-flat); border-radius: 8px;
  border: 1px solid var(--photo-line);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  overflow: hidden;
}
.tbl-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 5px; filter: drop-shadow(0 5px 8px rgba(15,23,42,.12)); mix-blend-mode: multiply; }
.tbl-name { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.3; }
.tbl-sku { font-family: monospace; font-size: 11px; color: var(--muted); }
.tbl-price { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--text); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 28px; padding-bottom: 28px; }
.pag-btn {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--ink-3);
  color: var(--text-2); cursor: pointer; font-size: 13px; font-weight: 600;
  transition: all .12s;
}
.pag-btn.on { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.pag-btn:hover:not(.on) { border-color: var(--amber); color: var(--amber); }

/* ══ PRODUCT DETAIL ══ */
.detail-shell,
.pdp-wrap {
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 52px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 32px 80px;
}
.pdp-breadcrumb {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 32px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.pdp-breadcrumb span { cursor: pointer; transition: color .1s; }
.pdp-breadcrumb span:hover { color: var(--amber); }

/* Product detail — shell classes from existing HTML */
.detail-gallery-shell { }
.detail-gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.detail-gallery-label { color: var(--muted); }
.detail-gallery-count { color: var(--amber); }
.detail-gallery {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.detail-gallery-stage {
  height: 380px;
  background: var(--photo-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: zoom-in;
}
.detail-gallery-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 56%, rgba(245,158,11,.12), transparent 70%);
  pointer-events: none;
}
.detail-gallery-stage-media { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.detail-gallery-stage-media img { max-height: 340px; max-width: 100%; object-fit: contain; padding: 28px; filter: drop-shadow(0 14px 24px rgba(15,23,42,.14)); mix-blend-mode: multiply; position: relative; z-index: 1; }
.detail-gallery-thumbs { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); overflow-x: auto; }
.detail-gallery-thumbs img,
.detail-gallery-thumb {
  width: 74px; height: 74px; flex-shrink: 0;
  border-radius: var(--r-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .12s;
  object-fit: contain;
  padding: 7px;
  background: var(--photo-bg-flat);
}
.detail-gallery-thumbs img:hover,
.detail-gallery-thumb:hover { border-color: var(--ink-5); }
.detail-gallery-thumbs img.is-active,
.detail-gallery-thumb.is-active { border-color: var(--amber); }

/* Gallery design classes */
.gal-main {
  height: 380px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 110px;
  margin-bottom: 12px;
  cursor: zoom-in;
  position: relative;
}
.gal-main::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(245,158,11,.04), transparent 70%);
}
.gal-thumbs { display: flex; gap: 8px; }
.gal-thumb {
  width: 74px; height: 74px;
  border-radius: var(--r-md);
  background: var(--ink-3);
  border: 2px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: border-color .12s;
}
.gal-thumb.on { border-color: var(--amber); }
.gal-thumb:hover { border-color: var(--ink-5); }

/* PDP info */
.detail-info-shell,
.details-left-info { }
.pdp-badges,
.detail-meta-chips { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.detail-meta-chip { background: var(--ink-3); border: 1px solid var(--line-2); padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.detail-meta-chip.is-soft { background: var(--amber-bg); color: var(--amber); border-color: rgba(245,158,11,.2); }

.pdp-title,
.detail-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 10px;
  color: var(--text);
}
.pdp-meta { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin-bottom: 22px; flex-wrap: wrap; }

.detail-price-row,
.pdp-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.detail-price-stack { }
.detail-price-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.detail-price,
.pdp-price-main {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -1.5px;
  color: var(--text);
}
.pdp-price-old { font-size: 18px; text-decoration: line-through; color: var(--muted); font-weight: 400; }
.pdp-price-vat { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* Fact cards grid */
.detail-facts-grid,
.detail-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}
.detail-fact-card {
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
  color: var(--muted);
}
.detail-fact-card strong { font-size: 13px; font-weight: 700; color: var(--text); }

/* Purchase card */
.detail-purchase-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 20px;
}

/* Quantity */
.qty-row { display: flex; gap: 10px; margin: 20px 0 12px; align-items: center; }
.qty-c { display: flex; border: 1px solid var(--line-2); border-radius: var(--r-sm); overflow: hidden; }
.qty-b {
  width: 40px; height: 48px;
  border: none; background: var(--ink-3);
  color: var(--text-2); font-size: 20px; font-weight: 300;
  cursor: pointer; transition: background .12s;
}
.qty-b:hover { background: var(--ink-4); color: var(--amber); }
.qty-v {
  width: 52px; text-align: center; border: none;
  border-left: 1px solid var(--line-2); border-right: 1px solid var(--line-2);
  background: var(--ink-2); font-size: 16px; font-weight: 700; color: var(--text); outline: none;
}

/* Specs table */
.specs-table,
.detail-props-table {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.specs-label,
.detail-props-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 10px;
  margin-top: 6px;
}
.spec-r,
.detail-prop-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}
.spec-r:last-child,
.detail-prop-row:last-child { border-bottom: none; }
.spec-k,
.detail-prop-key {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  background: var(--ink-2);
  border-right: 1px solid var(--line);
}
.spec-v,
.detail-prop-val {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* Description */
.detail-description-wrap { margin-bottom: 16px; }
.detail-description { font-size: 14px; color: var(--text-2); line-height: 1.65; }

/* ══ CART PAGE ══ */
.cart-header { border-bottom: 1px solid var(--line); padding: 20px 32px; background: var(--ink-2); }
.cart-header-inner { max-width: 1400px; margin: 0 auto; }
.cart-h1 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
}
.page-hero {
  padding: 28px 32px;
  margin-bottom: 24px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.cart-layout,
.cart-wrap {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 0 80px;
  align-items: start;
}
.cart-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.cart-overview-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cart-overview-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cart-overview-card strong { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--text); letter-spacing: -1px; }

/* Cart items */
.cart-items-list { display: flex; flex-direction: column; gap: 10px; }
.cart-item {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  display: grid;
  grid-template-columns: 78px 1fr auto;
  gap: 16px;
  align-items: center;
  transition: border-color .15s;
}
.cart-item:hover { border-color: var(--line-2); }
.ci-thumb,
.cart-item-thumb {
  width: 78px; height: 78px;
  border-radius: var(--r-md);
  background: var(--photo-bg-flat);
  border: 1px solid var(--photo-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  overflow: hidden;
  flex-shrink: 0;
}
.ci-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 9px; filter: drop-shadow(0 6px 10px rgba(15,23,42,.12)); mix-blend-mode: multiply; }
.ci-name,
.cart-item-name { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.ci-sku,
.cart-item-sku { font-family: monospace; font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.ci-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ci-price,
.cart-item-price { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--text); }
.ci-del,
.cart-item-del { font-size: 12px; color: var(--muted); cursor: pointer; transition: color .12s; }
.ci-del:hover,
.cart-item-del:hover { color: var(--red); }

/* Cart items rendered by shop-config.js */
.cart-item-stack { display: flex; flex-direction: column; gap: 10px; }
.cart-item-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 16px;
  align-items: start;
  transition: border-color .15s;
}
.cart-item-card:hover { border-color: var(--line-2); }
.cart-item-media {
  width: 78px; height: 78px;
  border-radius: var(--r-md);
  background: var(--photo-bg-flat);
  border: 1px solid var(--photo-line);
  overflow: hidden;
  flex-shrink: 0;
}
.cart-item-media img { width: 100%; height: 100%; object-fit: contain; padding: 9px; filter: drop-shadow(0 6px 10px rgba(15,23,42,.12)); mix-blend-mode: multiply; }
.cart-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.cart-item-copy { flex: 1; }
.cart-item-kicker { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 3px; }
.cart-item-title { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.35; }
.cart-item-meta { font-family: monospace; font-size: 11px; color: var(--muted); margin-top: 4px; }
.cart-item-remove { font-size: 11px; color: var(--muted); cursor: pointer; background: none; border: none; padding: 4px 8px; border-radius: var(--r-sm); transition: color .12s, background .12s; white-space: nowrap; flex-shrink: 0; font-family: var(--font); }
.cart-item-remove:hover { color: var(--red); background: rgba(239,68,68,.08); }
.cart-item-specs { font-size: 12px; color: var(--text-2); margin-bottom: 10px; line-height: 1.5; }
.cart-item-specs.is-muted { color: var(--muted); font-style: italic; }
.cart-item-foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.cart-item-price-block { display: flex; flex-direction: column; gap: 2px; }
.cart-item-total-block { display: flex; flex-direction: column; gap: 2px; align-items: flex-end; }
.cart-item-price-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cart-item-price { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--text-2); }
.cart-item-total { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--text); }
.cart-item-quantity { display: flex; border: 1px solid var(--line-2); border-radius: var(--r-sm); overflow: hidden; justify-content: center; }
.cart-item-step { width: 34px; height: 40px; border: none; background: var(--ink-3); color: var(--text-2); font-size: 18px; font-weight: 300; cursor: pointer; transition: background .12s; flex-shrink: 0; }
.cart-item-step:hover { background: var(--ink-4); color: var(--amber); }
.cart-item-quantity-input { width: 44px; text-align: center; border: none; border-left: 1px solid var(--line-2); border-right: 1px solid var(--line-2); background: var(--ink-2); font-size: 14px; font-weight: 700; color: var(--text); outline: none; height: 40px; }

/* Cart empty state */
.cart-empty-state {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 52px 32px;
  text-align: center;
  color: var(--text-2);
}
.cart-empty-state h4 { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.cart-empty-state p { font-size: 14px; color: var(--muted); }

/* Cart list wrap */
.cart-list-wrap { }

/* Upload area */
.upload-area {
  border: 2px dashed var(--line-2);
  border-radius: var(--r-lg);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  background: var(--ink-2);
  margin-top: 10px;
}
.upload-area:hover { border-color: var(--amber); background: var(--amber-bg); }
.upload-ico { font-size: 32px; margin-bottom: 8px; }
.upload-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.upload-sub { font-size: 12px; color: var(--muted); }

/* Cart summary sidebar */
.order-sidebar,
.cart-summary-card {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  align-self: start;
}
.sum-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 14px;
}
.sum-title,
.cart-summary-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 14px; }
.sum-row,
.cart-summary-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.sum-row:last-child,
.cart-summary-metric.is-accent { border-bottom: none; font-weight: 700; font-size: 16px; }
.sum-label,
.cart-summary-metric span:first-child { color: var(--muted); font-weight: 400; }
.sum-total { color: var(--amber); }

/* Quick order form */
.quick-form-card,
.cart-order-panel {
  background: var(--ink-2);
  border: 1px solid rgba(245,158,11,.2);
  border-radius: var(--r-lg);
  padding: 20px;
}
.qf-title,
.cart-order-panel-head strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 14px;
  display: block;
}
.cart-order-label { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.cart-order-label span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.cart-order-textarea { min-height: 68px; resize: none; }
.cart-order-summary { background: var(--ink-3); border-radius: var(--r-sm); padding: 12px; margin-bottom: 12px; font-size: 13px; color: var(--text-2); }

/* ══ ADMIN PAGE ══ */
.auth-gate {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
}
.auth-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 40px;
  width: 380px;
  box-shadow: 0 32px 80px rgba(0,0,0,.6);
}
.auth-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.auth-t { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--text); }
.auth-s { font-size: 13px; color: var(--muted); margin-top: 4px; }
.auth-hint { font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; }

.admin-wrap { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - var(--nav-h)); }
.admin-side,
.admin-sidebar {
  background: var(--ink-2);
  border-right: 1px solid var(--line);
  padding: 20px 10px;
  position: sticky;
  top: var(--nav-h);
  align-self: start;
  min-height: calc(100vh - var(--nav-h));
}
.admin-side-logo { display: flex; align-items: center; gap: 9px; padding: 4px 12px 18px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.aslt { font-size: 13px; font-weight: 700; color: var(--text); }
.asls { font-size: 11px; color: var(--muted); }
.admin-nav-sec {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--muted); padding: 12px 12px 5px;
}
.admin-nav-item {
  display: flex; align-items: center; gap: 9px; padding: 9px 12px;
  border-radius: var(--r-sm); font-size: 13px; font-weight: 500;
  color: var(--muted); cursor: pointer; transition: all .12s; margin-bottom: 1px;
}
.admin-nav-item:hover { background: var(--ink-4); color: var(--text); }
.admin-nav-item.on,
.admin-nav-item.is-active { background: var(--amber-bg); color: var(--amber); }

.admin-main { padding: 28px; background: var(--ink); }
.admin-h {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 20px;
  color: var(--text);
}

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.stat-c {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
}
.stat-n { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -1px; color: var(--text); }
.stat-l { font-size: 12px; color: var(--muted); margin-top: 3px; }
.stat-d { font-size: 12px; font-weight: 600; color: var(--green); margin-top: 6px; }

/* Orders table */
.orders-t {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 24px;
}
.orders-head {
  display: grid;
  grid-template-columns: 80px 1fr 140px 120px 100px 120px;
  gap: 10px; padding: 12px 18px;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted);
  border-bottom: 1px solid var(--line); background: var(--ink-3);
}
.order-r {
  display: grid;
  grid-template-columns: 80px 1fr 140px 120px 100px 120px;
  gap: 10px; padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  align-items: center; cursor: pointer;
  transition: background .1s;
}
.order-r:last-child { border-bottom: none; }
.order-r:hover { background: var(--ink-3); }
.order-id { font-family: monospace; font-size: 13px; font-weight: 700; color: var(--amber); }
.order-client { font-size: 13px; font-weight: 600; color: var(--text); }
.order-phone { font-size: 12px; font-family: monospace; color: var(--muted); }
.order-sum { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--text); }
.order-date { font-size: 12px; color: var(--muted); }

/* Pricing tiers */
.pricing-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }
.pricing-c {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.pricing-c.hot { border-color: rgba(245,158,11,.4); }
.pricing-c.hot::before {
  content: '★ Популярный';
  position: absolute; top: 12px; right: -28px; transform: rotate(45deg);
  background: var(--amber); color: var(--ink);
  font-size: 10px; font-weight: 700; padding: 4px 36px;
}
.pricing-name { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; }
.pricing-disc { font-family: var(--font-display); font-size: 38px; font-weight: 700; letter-spacing: -1.5px; color: var(--text); }
.pricing-disc.amber { color: var(--amber); }
.pricing-min { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* Sync status */
.sync-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sync-c {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
}
.sync-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.sync-name { font-size: 16px; font-weight: 700; color: var(--text); }
.sync-meta { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; line-height: 1.5; }

/* Admin form elements */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  text-align: left; padding: 10px 14px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted);
  border-bottom: 1px solid var(--line); background: var(--ink-3);
}
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text-2); vertical-align: middle; }
.admin-table tr:hover td { background: var(--ink-3); }
.admin-table tr:last-child td { border-bottom: none; }

/* Admin section heading */
.admin-section-h { font-size: 17px; font-weight: 700; margin-bottom: 14px; color: var(--text); }

.admin-dashboard { background: var(--ink); }
.auth-logo .brand-mark,
.admin-side-logo .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  flex: 0 0 auto;
}
.auth-card .b2b-tool-label { margin-bottom: 14px; }
.admin-auth-submit { width: 100%; justify-content: center; }
.admin-side { display: flex; flex-direction: column; }
.admin-side a { text-decoration: none; }
.admin-side-footer {
  margin-top: auto;
  padding: 18px 12px 4px;
  border-top: 1px solid var(--line);
}
.admin-side-footer .shell-btn { width: 100%; justify-content: center; }
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.admin-topbar .admin-h { margin: 4px 0 0; }
.admin-panel-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 18px;
}
.admin-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.admin-section-head.is-compact { margin-bottom: 12px; }
.admin-section-head h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 4px 0 4px;
  letter-spacing: 0;
}
.admin-section-head p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}
.b2b-tool-label input:not([type="file"]),
.b2b-tool-label textarea {
  width: 100%;
  background: var(--ink-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--text);
  outline: none;
  padding: 11px 12px;
  font-size: 14px;
  line-height: 1.35;
  transition: border-color .12s, background .12s, box-shadow .12s;
}
.b2b-tool-label textarea { resize: vertical; min-height: 96px; }
.b2b-tool-label input:not([type="file"]):focus,
.b2b-tool-label textarea:focus {
  border-color: rgba(245,158,11,.75);
  background: var(--ink-4);
  box-shadow: 0 0 0 3px rgba(245,158,11,.08);
}
.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.admin-form-span-2 { grid-column: 1 / -1; }
.admin-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.admin-pricing-note {
  padding: 12px 14px;
  border: 1px solid rgba(245,158,11,.18);
  border-radius: var(--r-sm);
  background: var(--amber-bg);
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.5;
}
.admin-pricing-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 12px;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.admin-pricing-preview {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--ink-3);
  overflow: hidden;
}
.admin-pricing-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
}
.admin-pricing-preview-head span { color: var(--muted); font-size: 12px; }
.admin-pricing-preview-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}
.admin-pricing-preview-item,
.admin-pricing-preview-empty {
  background: var(--ink-2);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-2);
}
.admin-pricing-preview-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.admin-pricing-preview-item strong { color: var(--text); }
.admin-pricing-preview-item span { color: var(--amber); font-weight: 700; white-space: nowrap; }
.admin-spec-list,
.admin-product-list {
  display: grid;
  gap: 12px;
}
.admin-spec-empty,
.admin-product-empty {
  padding: 28px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-sm);
  color: var(--muted);
  text-align: center;
  background: var(--ink-3);
}
.admin-spec-item,
.admin-product-item {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--ink-3);
  padding: 16px;
}
.admin-spec-item-head,
.admin-product-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.admin-spec-item h3,
.admin-product-item h3 {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px;
}
.admin-spec-item p,
.admin-product-item p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.admin-spec-badge,
.admin-product-price {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  background: var(--amber-bg);
  color: var(--amber);
}
.admin-product-price {
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  color: var(--text);
}
.admin-spec-meta,
.admin-product-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.admin-spec-meta div,
.admin-product-meta div,
.admin-order-summary-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 10px;
  min-width: 0;
}
.admin-spec-meta strong,
.admin-product-meta strong,
.admin-order-summary-card span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}
.admin-spec-meta span,
.admin-product-meta span {
  display: block;
  color: var(--text-2);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.admin-order-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.admin-order-summary-card strong {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 2px;
}
.admin-spec-comment {
  padding: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 12px;
}
.admin-order-lines {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.admin-order-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--ink-2);
}
.admin-order-line-main strong,
.admin-order-line-main span {
  display: block;
  overflow-wrap: anywhere;
}
.admin-order-line-main strong { color: var(--text); font-size: 13px; margin-bottom: 3px; }
.admin-order-line-main span,
.admin-order-line-meta { color: var(--muted); font-size: 12px; }
.admin-order-line-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-weight: 700;
}
.admin-order-line-source,
.admin-order-line-links,
.admin-spec-actions,
.admin-product-actions,
.admin-product-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.admin-order-supplier-chip,
.admin-order-supplier-code,
.admin-product-chip {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(148,163,184,.1);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 700;
}
.admin-order-supplier-link { padding: 6px 10px; font-size: 12px; }
.admin-products-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: 18px;
  align-items: start;
}
.admin-img-upload-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.admin-img-preview {
  width: 96px;
  height: 96px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--photo-bg);
  position: relative;
  overflow: hidden;
}
.admin-img-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  mix-blend-mode: multiply;
}
.admin-img-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: rgba(15,23,42,.82);
  color: #fff;
  cursor: pointer;
}
.admin-inline-status { font-size: 13px; color: var(--muted); }

/* ══ CONTACT PAGE ══ */
.contact-shell { }

/* ══ ACCOUNT PAGE ══ */
.account-orders { }

/* ══ SPEC REQUESTS PAGE ══ */
.spec-request-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 12px;
  transition: border-color .15s;
}
.spec-request-card:hover { border-color: var(--line-2); }

/* ══ TRANSITIONS ══ */
.page.active { animation: fadeUp .2s cubic-bezier(.2,.8,.3,1); }
@keyframes fadeUp { from { opacity:.4; transform: translateY(8px); } to { opacity:1; transform: translateY(0); } }

/* ══ RESPONSIVE ══ */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-left { padding: 60px 32px; }
  .detail-shell, .pdp-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .shell-mega {
    position: fixed;
    top: var(--shell-header-offset, var(--nav-h));
    left: 0;
    right: 0;
    bottom: auto;
    height: calc(100vh - var(--shell-header-offset, var(--nav-h)));
    height: calc(100dvh - var(--shell-header-offset, var(--nav-h)));
    max-height: calc(100vh - var(--shell-header-offset, var(--nav-h)));
    max-height: calc(100dvh - var(--shell-header-offset, var(--nav-h)));
    z-index: 260;
  }
  .shell-mega-inner,
  .shell-mega-sidebar,
  #shell-mega-content,
  .shell-mega-content {
    height: 100%;
    max-height: 100%;
  }
  .shell-desktop-nav { display: none; }
  .shell-mobile-toggle { display: flex; }
  .catalog-wrap, .catalog-layout { grid-template-columns: 1fr; }
  .sidebar, .catalog-sidebar, .catalog-filters { display: none; }
  .cart-layout, .cart-wrap { grid-template-columns: 1fr; }
  .admin-wrap { grid-template-columns: 1fr; }
  .admin-side { display: none; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-row { grid-template-columns: repeat(3, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-h1 { font-size: 42px; letter-spacing: -1.5px; }
  .shell-search-form { display: none; }
}

@media (max-width: 640px) {
  .prod-grid { grid-template-columns: 1fr; }
  .cat-row { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .cart-overview-grid { grid-template-columns: 1fr; }
  .pricing-row { grid-template-columns: 1fr; }
  .sync-row { grid-template-columns: 1fr; }
  .orders-head, .order-r { grid-template-columns: 80px 1fr 100px 90px; }
  .orders-head > :nth-child(3),
  .order-r > :nth-child(3),
  .orders-head > :nth-child(6),
  .order-r > :nth-child(6) { display: none; }
  .tbl-head, .tbl-row { grid-template-columns: 44px 1fr 100px 110px; }
  .tbl-head > :nth-child(3),
  .tbl-row > :nth-child(3),
  .tbl-head > :nth-child(4),
  .tbl-row > :nth-child(4) { display: none; }
  .shell-header-inner { padding: 0 16px; }
  .page-shell { width: calc(100vw - 24px); }
  .section-inner { padding: 0 16px; }
}

/* ══ PRODUCT DETAIL: actions & qty ══ */
.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.detail-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  overflow: hidden;
  width: fit-content;
}
.detail-qty-btn {
  width: 44px;
  height: 48px;
  background: var(--ink-3);
  color: var(--text-2);
  font-size: 22px;
  font-weight: 300;
  border: none;
  cursor: pointer;
  transition: background .12s, color .12s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-qty-btn:hover { background: var(--ink-4); color: var(--amber); }
.detail-qty-input {
  width: 60px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--line-2);
  border-right: 1px solid var(--line-2);
  background: var(--ink-2);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  outline: none;
  padding: 10px 0;
}
.detail-add-button input[type="submit"],
.detail-add-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 20px;
  background: var(--amber);
  color: var(--ink);
  border: none;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
  font-family: var(--font);
}
.detail-add-button input[type="submit"]:hover,
.detail-add-button:hover { background: var(--amber-2); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(245,158,11,.25); }
.detail-secondary-action { justify-content: center; text-align: center; }

/* ══ PAGE HERO ══ */
.page-hero {
  padding: 28px 32px;
  margin-bottom: 24px;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
  margin: 6px 0 0;
}

/* ══ CART SUMMARY ══ */
.cart-summary-metrics { margin-bottom: 20px; }
.cart-summary-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* ══ B2B TOOLS ══ */
.b2b-tools-section {
  margin-top: 24px;
}
.b2b-tools-grid { }
.b2b-tool-card {
  padding: 24px;
  background: var(--ink-2);
}
.b2b-tool-form { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.b2b-tool-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
.b2b-tool-label input[type="file"] { margin-top: 4px; color: var(--text-2); font-size: 13px; }
.b2b-tool-status {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  background: rgba(59,130,246,.1);
  color: #60a5fa;
  border: 1px solid rgba(59,130,246,.2);
}
.b2b-import-result {
  margin-top: 12px;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px;
  font-size: 13px;
  color: var(--text-2);
}

/* ══ PRODUCT DETAIL: properties ══ */
.detail-properties { margin-top: 24px; }
.detail-props-group { margin-bottom: 20px; }
.detail-props-group-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 8px;
}
.detail-props-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.detail-props-row:last-child { border-bottom: none; }
.detail-props-key {
  padding: 9px 12px;
  color: var(--muted);
  background: var(--ink-2);
  border-right: 1px solid var(--line);
}
.detail-props-val {
  padding: 9px 12px;
  font-weight: 600;
  color: var(--text);
}

/* ══ ACCOUNT PAGE ══ */
.account-orders { }
.account-order-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 12px;
}
.account-order-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.account-order-id { font-family: monospace; font-weight: 700; color: var(--amber); }
.account-order-date { font-size: 12px; color: var(--muted); }

/* ══ CONTACT PAGE ══ */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.contact-info-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
}
.contact-info-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 8px;
}
.contact-info-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
@media (max-width: 640px) {
  .contact-info-grid { grid-template-columns: 1fr; }
}

/* ══ CATALOG: additional classes from products.js ══ */
.catalog-main { background: var(--ink); }
.catalog-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding: 24px 0 0;
}
.catalog-page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
  margin: 0;
}
.catalog-page-copy { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.catalog-page-count { font-size: 13px; color: var(--muted); white-space: nowrap; margin-top: 8px; }
.catalog-brand-bar { margin-bottom: 20px; }
.catalog-brand-bar-label { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
/* JS adds .is-table when switching to table view */
.catalog-grid.is-table { display: block; }

/* ══ TABLE VIEW (products.js renders catalog-table-*) ══ */
.catalog-table-wrap { overflow-x: auto; }
.catalog-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-2);
}
.catalog-table thead tr {
  background: var(--ink-3);
  border-bottom: 1px solid var(--line);
}
.catalog-table thead th {
  padding: 10px 14px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  text-align: left;
  white-space: nowrap;
}
.catalog-table-row {
  border-bottom: 1px solid var(--line);
  transition: background .1s;
}
.catalog-table-row:last-child { border-bottom: none; }
.catalog-table-row:hover { background: var(--ink-3); }
.catalog-table tbody td {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text);
  vertical-align: middle;
}
.catalog-table-check { width: 40px; }
.catalog-table-head-check { accent-color: var(--amber); width: 15px; height: 15px; cursor: pointer; }
.catalog-table-check input { accent-color: var(--amber); width: 15px; height: 15px; cursor: pointer; }
.catalog-table-sku-main { font-family: monospace; font-size: 12px; font-weight: 700; color: var(--amber); }
.catalog-table-sku-sub { font-family: monospace; font-size: 11px; color: var(--muted); margin-top: 2px; }
.catalog-table-title {
  font-size: 13px; font-weight: 600; color: var(--text);
  text-decoration: none; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.catalog-table-title:hover { color: var(--amber); }
.catalog-table-meta { font-size: 11px; color: var(--muted); margin-top: 3px; }
.catalog-table-specs { font-size: 11px; color: var(--text-2); max-width: 240px; line-height: 1.4; }
.catalog-table-price { font-family: var(--font-display); font-size: 15px; font-weight: 700; white-space: nowrap; }
.catalog-table-price.request { font-family: var(--font); font-size: 12px; color: var(--muted); font-weight: 500; }
.catalog-table-stock-badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 20px;
  font-size: 11px; font-weight: 700;
}
.catalog-table-stock-badge.ok { background: var(--green-bg); color: var(--green); }
.catalog-table-stock-badge.no { background: var(--red-bg); color: var(--red); }
.catalog-table-stock-badge.pending { background: var(--amber-bg); color: var(--amber); }
.catalog-table-qty-input {
  width: 60px; text-align: center;
  padding: 5px 8px;
  background: var(--ink-3); border: 1px solid var(--line-2);
  border-radius: var(--r-sm); font-size: 14px; font-weight: 700;
  color: var(--text); outline: none;
}
.catalog-table-qty-input:focus { border-color: var(--amber); }
.catalog-table-actions { display: flex; gap: 6px; align-items: center; }
.catalog-table-actions .catalog-btn {
  padding: 6px 14px;
  background: var(--amber); color: var(--ink);
  border: none; border-radius: var(--r-sm);
  font-size: 12px; font-weight: 700; cursor: pointer;
  transition: all .15s; white-space: nowrap; font-family: var(--font);
}
.catalog-table-actions .catalog-btn:hover { background: var(--amber-2); }
.catalog-table-actions .catalog-btn.is-disabled { background: var(--ink-4); color: var(--muted); cursor: not-allowed; }
.catalog-status {
  padding: 12px 16px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  background: rgba(59,130,246,.1);
  color: #60a5fa;
  border: 1px solid rgba(59,130,246,.15);
  margin-bottom: 14px;
}
.catalog-active-filters {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.catalog-active-filters .catalog-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: var(--amber-bg);
  border: 1px solid rgba(245,158,11,.3);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--amber);
  cursor: pointer;
  transition: all .1s;
}
.catalog-active-filters .catalog-filter-chip:hover { background: var(--amber); color: var(--ink); }
.catalog-empty-state-panel {
  text-align: center;
  padding: 64px 32px;
  color: var(--text-2);
}
.catalog-empty-state-mark { font-size: 48px; margin-bottom: 16px; color: var(--muted); }
.catalog-empty-state-panel h3 { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.catalog-empty-state-panel p { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.catalog-load-more-row { display: flex; justify-content: center; padding: 24px 0; }
.catalog-load-more {
  padding: 12px 32px;
  background: var(--ink-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: all .15s;
}
.catalog-load-more:hover { border-color: var(--amber); color: var(--amber); }
.catalog-reset {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--amber);
  cursor: pointer;
  transition: all .15s;
}
.catalog-reset:hover { background: var(--amber-bg); border-color: var(--amber); }
.catalog-filter-apply {
  padding: 10px 20px;
  background: var(--amber);
  border: none;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: all .15s;
}
.catalog-filter-apply:hover { background: var(--amber-2); }
.catalog-mobile-actions { display: none; margin-bottom: 14px; }
.catalog-view-switch {
  display: flex;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.catalog-view-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all .12s;
}
.catalog-view-btn[aria-pressed="true"] { background: var(--amber); color: var(--ink); }
.catalog-view-btn:hover:not([aria-pressed="true"]) { background: var(--ink-4); color: var(--text); }
.catalog-toolbar-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: end;
}
.catalog-bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: var(--amber-bg);
  border: 1px solid rgba(245,158,11,.3);
  border-radius: var(--r-lg);
  margin-bottom: 14px;
}
.catalog-bulk-title { font-size: 14px; font-weight: 700; color: var(--amber); }
.catalog-bulk-copy { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.catalog-bulk-actions { display: flex; gap: 8px; }
.catalog-bulk-btn {
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line-2);
  background: var(--ink-3);
  color: var(--text-2);
  cursor: pointer;
  transition: all .12s;
}
.catalog-bulk-btn.primary { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.catalog-bulk-btn:hover { border-color: var(--amber); color: var(--amber); }
.catalog-bulk-btn.primary:hover { background: var(--amber-2); }
.catalog-mobile-summary { font-size: 14px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.catalog-mobile-chip {
  padding: 8px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: var(--ink-3);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
}
/* ══ NEW CATALOG LAYOUT (product.html rebuild) ══ */

/* Mobile bar — visible only on small screens */
.catalog-mobile-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--ink-2);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: var(--nav-h);
  z-index: 30;
}

/* Outer two-column layout */
.catalog-outer {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - var(--nav-h));
  align-items: stretch;
}

/* Filter shell — wraps overlay + drawer */
.catalog-filter-shell { position: relative; }

/* Dark overlay (mobile) */
.catalog-filter-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 40;
  backdrop-filter: blur(2px);
}

/* Drawer */
.catalog-filter-drawer {
  background: var(--ink-2);
  border-right: 1px solid var(--line);
  position: sticky;
  top: var(--nav-h);
  align-self: start;
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* Mobile header (hidden on desktop) */
.catalog-filter-mobile-head {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.catalog-filter-mobile-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.catalog-filter-summary-text {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.catalog-filter-mobile-close {
  width: 32px; height: 32px;
  background: var(--ink-4);
  border: none; border-radius: 50%;
  color: var(--text-2); font-size: 14px;
  cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: background .1s, color .1s;
}
.catalog-filter-mobile-close:hover { background: var(--amber); color: var(--ink); }

/* Scrollable area inside drawer */
.catalog-filter-drawer-scroll {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
}

/* Mobile footer (hidden on desktop) */
.catalog-filter-mobile-foot {
  display: none;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  gap: 10px;
  flex-shrink: 0;
}

/* Category context card */
.catalog-context-card {
  background: var(--ink-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 14px;
  margin-bottom: 4px;
}
.catalog-context-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.catalog-context-icon {
  width: 36px; height: 36px;
  background: var(--amber-bg);
  border: 1px solid rgba(245,158,11,.2);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.catalog-context-copywrap { flex: 1; min-width: 0; }
.catalog-context-eyebrow {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); margin-bottom: 2px;
}
.catalog-context-path {
  font-size: 11px; color: var(--muted);
  margin-top: 3px; line-height: 1.4;
}
.catalog-context-copy {
  font-size: 12px; color: var(--text-2);
  line-height: 1.5; margin-bottom: 8px;
}
.catalog-context-pills {
  display: flex; flex-wrap: wrap; gap: 5px;
  margin-bottom: 8px;
}
.catalog-context-pill {
  padding: 3px 9px;
  background: var(--ink-4);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  font-size: 11px; font-weight: 600;
  color: var(--text-2); cursor: pointer;
  transition: all .1s;
}
.catalog-context-pill:hover { background: var(--amber-bg); color: var(--amber); border-color: rgba(245,158,11,.3); }
.catalog-context-actions { margin-top: 4px; }
.catalog-context-note {
  font-size: 11px; color: var(--muted);
  margin-top: 8px; line-height: 1.4;
  font-style: italic;
}

/* Brand quick-chip bar */
.catalog-brand-bar-wrap {
  border-bottom: 1px solid var(--line);
}
.catalog-brand-bar-label {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted);
}
.catalog-brand-bar-copy {
  font-size: 12px; color: var(--muted);
}
.quick-chip-list {
  display: flex; flex-wrap: wrap; gap: 7px;
  padding-bottom: 16px;
}
.quick-chip {
  padding: 5px 12px;
  background: var(--ink-3);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  font-size: 13px; font-weight: 600;
  color: var(--text-2); cursor: pointer;
  transition: all .1s;
}
.quick-chip:hover,
.quick-chip.is-active { background: var(--amber-bg); color: var(--amber); border-color: rgba(245,158,11,.3); }

/* Main content area */
.catalog-content-area {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Search row */
.catalog-search-row {
  padding: 12px 24px;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}
.catalog-search-input {
  width: 100%;
  padding: 9px 14px;
  background: var(--ink-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color .15s;
}
.catalog-search-input:focus { border-color: var(--amber); }
.catalog-search-input::placeholder { color: var(--muted); }

/* catalog-select (brand dropdown) */
.catalog-select {
  width: 100%;
  padding: 7px 9px;
  background: var(--ink-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--text);
  outline: none;
  cursor: pointer;
}
.catalog-select:focus { border-color: var(--amber); }

/* aria-pressed variant for view toggle */
.view-b[aria-pressed="true"] { background: var(--amber); color: var(--ink); }

/* Category modal */
.category-modal {
  position: fixed; inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-end;
}
.category-modal:not([aria-hidden="true"]) { display: flex; }
.category-modal-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(2px);
  cursor: pointer;
}
.category-modal-dialog {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  width: 100%; max-width: 640px;
  margin: 0 auto;
  max-height: 80vh;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.category-modal-head {
  display: flex; align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
  flex-shrink: 0;
}
.category-modal-back {
  background: none; border: none;
  color: var(--amber); font-size: 13px;
  font-weight: 600; cursor: pointer;
  padding: 0; display: none;
}
.category-modal-title {
  flex: 1; font-size: 16px; font-weight: 700; color: var(--text);
}
.category-modal-close {
  width: 32px; height: 32px;
  background: var(--ink-4); border: none;
  border-radius: 50%; color: var(--text-2);
  font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .1s, color .1s;
}
.category-modal-close:hover { background: var(--amber); color: var(--ink); }
.category-modal-body {
  overflow-y: auto;
  padding: 16px;
  flex: 1;
}
.category-nav { display: flex; flex-direction: column; gap: 4px; }
.category-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--ink-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all .1s;
}
.category-nav-item:hover { background: var(--ink-4); border-color: var(--amber); }
.category-nav-item.is-active { background: var(--amber-bg); border-color: rgba(245,158,11,.3); }

/* badge inside button */
.badge { display: inline-flex; align-items: center; justify-content: center; }
.badge-amber {
  background: var(--amber); color: var(--ink);
  font-size: 10px; font-weight: 700;
  min-width: 17px; height: 17px;
  border-radius: 9px; padding: 0 4px;
  margin-left: 4px;
}

/* ══ RESPONSIVE — catalog ══ */
@media (max-width: 960px) {
  .catalog-mobile-actions { display: block; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-mobile-bar { display: flex; }
  .catalog-outer { grid-template-columns: 1fr; }
  .catalog-filter-shell {
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;
  }
  .catalog-filter-shell.is-open { pointer-events: auto; }
  .catalog-filter-shell.is-open .catalog-filter-overlay { display: block; }
  .catalog-filter-drawer {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 300px;
    transform: translateX(-100%);
    transition: transform .25s ease;
    z-index: 51;
    border-right: 1px solid var(--line);
    max-height: 100vh;
  }
  .catalog-filter-shell.is-open .catalog-filter-drawer {
    transform: translateX(0);
  }
  .catalog-filter-mobile-head { display: flex; }
  .catalog-filter-mobile-foot { display: flex; }
  .catalog-filter-drawer-scroll { padding: 16px; }
  .cat-toolbar { padding: 10px 16px; flex-wrap: wrap; }
  .catalog-search-row { padding: 10px 16px; }
  .active-chips { padding: 8px 16px; }
  .cat-content { padding: 16px; }
}
@media (max-width: 640px) {
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-toolbar-grid { grid-template-columns: 1fr; }
  .catalog-filter-drawer { width: 100%; }
}

/* ══ PDP breadcrumb links (new single.html) ══ */
.pdp-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color .1s;
}
.pdp-breadcrumb a:hover { color: var(--amber); }
.pdp-breadcrumb-sep { color: var(--line-2); }
.pdp-breadcrumb-cur { color: var(--text); font-weight: 600; }

/* ══ PDP add-to-cart button (new single.html) ══ */
.pdp-add-btn { flex: 1; }
.pdp-add-btn input[type="submit"] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 20px;
  background: var(--amber);
  color: var(--ink);
  border: none;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
  font-family: var(--font);
}
.pdp-add-btn input[type="submit"]:hover {
  background: var(--amber-2);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245,158,11,.25);
}

/* ══ PDP cart link (below qty row) ══ */
.pdp-cart-link {
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 24px;
}

/* ══ PDP responsive ══ */
@media (max-width: 960px) {
  .pdp-wrap { grid-template-columns: 1fr; gap: 32px; padding: 20px 16px 60px; }
  .pdp-breadcrumb { padding: 12px 16px; }
}
@media (max-width: 640px) {
  .pdp-wrap { padding: 16px 12px 48px; }
  .detail-facts-grid { grid-template-columns: 1fr 1fr; }
  .pdp-price-main,
  .detail-price { font-size: 28px; }
}

/* ══ CART — new checkout.html additions ══ */
.cart-h1-count {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 10px;
}
.cart-wrap { padding: 28px 32px 80px; }

.sum-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.cart-excel-section {
  margin-top: 24px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
}
.cart-excel-head {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.upload-form { display: block; }
.upload-area { display: block; }

/* ══ Cart responsive ══ */
@media (max-width: 960px) {
  .cart-wrap { grid-template-columns: 1fr; padding: 20px 16px 60px; }
  .order-sidebar { position: static; }
}
@media (max-width: 640px) {
  .cart-wrap { padding: 16px 12px 48px; }
  .cart-header { padding: 16px; }
  .cart-h1 { font-size: 20px; }
}

/* ══ DESIGN HEADER — новая шапка ══ */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(9,9,11,.88);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-mark {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--amber);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.logo-name {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

/* Catalog nav button in header (triggers mega menu) */
.mega-wrap { position: relative; flex-shrink: 0; }
.nav-catalog-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--ink-3);
  color: var(--text);
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  white-space: nowrap;
  font-family: var(--font);
}
.nav-catalog-btn:hover,
.nav-catalog-btn.is-open {
  border-color: var(--amber);
  background: var(--amber-bg);
  color: var(--amber);
}
.nav-catalog-btn-chevron { transition: transform .2s; flex-shrink: 0; }
.nav-catalog-btn.is-open .nav-catalog-btn-chevron { transform: rotate(180deg); }

/* Search */
.search-wrap {
  flex: 1;
  position: relative;
  min-width: 0;
}
.search-wrap form { position: relative; }
.search-input {
  width: 100%;
  height: 40px;
  padding: 0 48px 0 40px;
  background: var(--ink-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  font-family: var(--font);
}
.search-input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245,158,11,.12);
}
.search-input::placeholder { color: var(--muted); }
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.search-kbd {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--muted);
  background: var(--ink-4);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
  border: 1px solid var(--line-2);
  pointer-events: none;
}

/* Right nav */
.nav-r {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.nav-link {
  padding: 8px 12px;
  font-size: 13px; font-weight: 500;
  color: var(--text-2);
  border-radius: var(--r-sm);
  transition: color .12s, background .12s;
  text-decoration: none;
  white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: var(--ink-3); }

/* Cart button */
.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--amber);
  color: var(--ink);
  border: none;
  border-radius: var(--r-sm);
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font);
}
.cart-btn:hover {
  background: var(--amber-2);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245,158,11,.3);
}
.cart-badge {
  min-width: 18px; height: 18px;
  background: var(--ink);
  color: var(--amber);
  border-radius: 9px;
  font-size: 11px; font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Header responsive */
@media (max-width: 960px) {
  .header-inner { padding: 0 16px; gap: 10px; }
  .search-wrap { display: none; }
  .search-kbd { display: none; }
  .nav-r .nav-link:not(:last-child) { display: none; }
}
@media (max-width: 640px) {
  .logo-name { display: none; }
  .mega-wrap { display: none; }
}


/* ══ CONTACT PAGE ══ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  max-width: 1100px;
  margin: 32px auto;
  padding: 0 32px 64px;
}
.contact-form-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
}
.contact-form-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
.contact-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  align-self: start;
}
.contact-card-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.info-card {
  background: var(--ink-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.info-card strong {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted);
}
.info-card span { font-size: 15px; font-weight: 600; color: var(--text); }
@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; padding: 0 16px 48px; }
}

/* Catalog icon contrast fixes */
.category-visual-badge {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--visual-bg, rgba(245,158,11,.14));
  border: 1px solid var(--visual-ring, rgba(245,158,11,.24));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--visual-ink, var(--amber));
  position: relative;
  overflow: hidden;
}
.category-visual-badge.is-large {
  width: 36px;
  height: 36px;
}
.category-visual-badge::before {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 8px;
  background: var(--visual-bg-soft, rgba(255,255,255,.06));
  opacity: .65;
}
.category-visual-mask {
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: var(--category-art) center / contain no-repeat;
  mask: var(--category-art) center / contain no-repeat;
  position: relative;
  z-index: 1;
}
.category-visual-badge.is-large .category-visual-mask {
  width: 22px;
  height: 22px;
}
.category-visual-photo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(74%) sepia(91%) saturate(1379%) hue-rotate(344deg) brightness(100%) contrast(93%);
  position: relative;
  z-index: 1;
}
.category-root-btn {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--ink-3);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-2);
  cursor: pointer;
  text-align: left;
  transition: background .12s, border-color .12s, color .12s;
}
.category-root-btn:hover {
  background: var(--ink-4);
  border-color: var(--line-2);
  color: var(--text);
}
.category-root-btn.is-active {
  background: var(--amber-bg);
  border-color: rgba(245,158,11,.32);
  color: var(--amber);
}
.category-nav-roots-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.category-root-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.category-root-copy {
  min-width: 0;
}
.category-root-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}
.category-root-meta {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.category-root-arrow {
  flex-shrink: 0;
  color: var(--muted);
}
.category-root-btn.is-active .category-visual-badge,
.category-root-btn:hover .category-visual-badge {
  background: rgba(245,158,11,.18);
  border-color: rgba(245,158,11,.38);
  color: var(--amber);
}
.category-root-btn.is-active .category-root-meta,
.category-root-btn.is-active .category-root-arrow {
  color: var(--amber);
}
.catalog-context-icon .category-visual-badge {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  background: transparent;
}

@media (max-width: 1180px) {
  .shell-mega-sidebar { width: min(470px, 50vw); }
  .shell-mega-root-list,
  .category-nav-roots-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .is-mobile-roots .shell-mega-root-list,
  .category-nav-roots-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .is-mobile-roots .shell-mega-root-list,
  .category-nav-roots-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   RESPONSIVE FIXES & MOTION ENHANCEMENTS
   ══════════════════════════════════════════ */

/* ── Mega menu open animation ── */
.shell-mega.is-open {
  animation: megaSlideIn .2s cubic-bezier(.2,.8,.3,1);
}
@keyframes megaSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Mobile panel slide animation ── */
.shell-mobile-panel.is-open {
  animation: mobilePanelIn .22s cubic-bezier(.2,.8,.3,1);
}
@keyframes mobilePanelIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Cart badge pulse ── */
@keyframes badgePulse {
  0%,100% { transform: scale(1); }
  40%      { transform: scale(1.35); }
}
.cart-badge.has-items {
  animation: badgePulse .4s cubic-bezier(.2,.8,.3,1);
}

/* ── Scroll-triggered animation base ── */
.sa-init {
  opacity: 0;
  transform: translateY(22px);
}
.sa-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: opacity .55s cubic-bezier(.2,.8,.3,1), transform .55s cubic-bezier(.2,.8,.3,1);
}

/* ── Section padding responsive ── */
@media (max-width: 960px) {
  .section { padding: 60px 0; }
  /* Disable translateX hover on touch to avoid layout shift */
  .hcard:hover {
    transform: none;
    box-shadow: none;
  }
}

/* ── Footer grid responsive ── */
@media (max-width: 860px) {
  .shell-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* ── 640px breakpoint fixes ── */
@media (max-width: 640px) {
  .section { padding: 48px 0; }

  /* Footer: single column */
  .shell-footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Hero left: tighter mobile padding */
  .hero-left {
    padding: 40px 16px 56px !important;
  }

  /* Hero stats: wrap on tiny screens */
  .hero-stats {
    gap: 20px;
    flex-wrap: wrap;
  }

  /* Hero CTA: stack buttons vertically */
  .hero-cta {
    flex-direction: column;
  }
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  /* Trust grid: keep 2-col on mobile */
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Page shell padding reduction */
  .page-shell {
    padding-top: 16px;
    padding-bottom: 48px;
  }

  /* Admin meta grids: 2-col on mobile */
  .admin-spec-meta,
  .admin-product-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── Very small screens ── */
@media (max-width: 380px) {
  .trust-grid { grid-template-columns: 1fr; }
  .hero-stat-n { font-size: 22px; }
}

/* ── Admin mobile nav strip ── */
.admin-mobile-nav {
  display: none;
}
@media (max-width: 960px) {
  .admin-mobile-nav {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    padding: 10px 16px;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .admin-mobile-nav::-webkit-scrollbar { display: none; }
  .admin-mobile-nav a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    background: var(--ink-3);
    border: 1px solid var(--line-2);
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
    transition: all .12s;
  }
  .admin-mobile-nav a:hover,
  .admin-mobile-nav a.on {
    background: var(--amber-bg);
    color: var(--amber);
    border-color: rgba(245,158,11,.3);
  }
}

/* ══ SPLIT CATALOG BUTTON: link + chevron ══ */
.mega-wrap { display: flex; align-items: center; }

/* Text part — navigates to catalog */
.nav-catalog-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  border-right: none;
  border-radius: var(--r-sm) 0 0 var(--r-sm);
  background: var(--ink-3);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font);
  transition: border-color .15s, background .15s, color .15s;
  line-height: 1;
}
.nav-catalog-link:hover {
  border-color: var(--amber);
  background: var(--amber-bg);
  color: var(--amber);
}

/* Chevron part — opens mega menu */
.nav-catalog-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 9px;
  border: 1px solid var(--line-2);
  border-left: 1px solid var(--line);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--ink-3);
  color: var(--text-2);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  height: 38px;
}
.nav-catalog-chevron:hover,
.nav-catalog-chevron.is-open {
  border-color: var(--amber);
  background: var(--amber-bg);
  color: var(--amber);
}
.nav-catalog-chevron.is-open .nav-catalog-btn-chevron {
  transform: rotate(180deg);
}

/* ══ STATIC FILTER SIDEBAR (non-sticky) ══ */
.sidebar,
.catalog-sidebar,
.catalog-filters,
.catalog-filter-drawer {
  position: static !important;
  top: auto !important;
  align-self: auto !important;
  max-height: none !important;
  overflow-y: visible !important;
}
