[hidden] { display: none !important; }

/* ---------------------------------------------------------------------------
   SentimintPromo - design system
   --------------------------------------------------------------------------- */

:root {
  --ink: #0e1b2a;
  --ink-2: #1c2f45;
  --slate: #51637a;
  --slate-2: #7b8a9d;
  --line: #e3e6ea;
  --line-2: #eef0f3;
  --paper: #fbfaf8;
  --white: #ffffff;
  --accent: #e0651f;
  --accent-dark: #b94d12;
  --accent-soft: #fdf1e8;
  --green: #167a52;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(14, 27, 42, .06), 0 1px 3px rgba(14, 27, 42, .05);
  --shadow-md: 0 8px 24px rgba(14, 27, 42, .08);
  --shadow-lg: 0 24px 60px rgba(14, 27, 42, .16);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.12;
  letter-spacing: -.022em;
  font-weight: 650;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.35rem); }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }

.container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 48px)); margin-inline: auto; }

.muted { color: var(--slate); }
.micro { font-size: .8rem; color: var(--slate-2); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 248, .88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 84px; }


.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 56px; height: 56px; border-radius: 13px;
  background: var(--ink); color: #fff;
  font-weight: 750; font-size: 1.02rem; letter-spacing: .04em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: .98rem; letter-spacing: -.01em; }
.brand-text small { font-size: .71rem; color: var(--slate); letter-spacing: .01em; }
.brand-sm .brand-mark { width: 38px; height: 38px; border-radius: 9px; font-size: .76rem; }

.brand-mark.has-logo {
  width: 62px; height: 62px; border-radius: 14px; padding: 3px;
  background: #fff; border: 1px solid var(--line);
}
.brand-mark.has-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.brand-sm .brand-mark.has-logo { width: 40px; height: 40px; border-radius: 10px; padding: 3px; }
.logo-row { display: flex; gap: 18px; align-items: flex-start; }
.logo-row .brand-mark { width: 120px; height: 120px; border-radius: 18px; flex: none; font-size: 1.4rem; }
.logo-actions { display: flex; flex-direction: column; gap: 8px; }
.logo-actions input[type=file] { font-size: .84rem; max-width: 100%; }

.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav-link {
  padding: 8px 12px; border-radius: 8px; font-size: .93rem; color: var(--ink-2);
  font-weight: 500; transition: background .16s, color .16s;
}
.nav-link:hover { background: #f0eee9; }
.nav-link.is-active { color: var(--accent-dark); background: var(--accent-soft); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.header-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; line-height: 1.2; }
.header-contact a { font-size: .82rem; color: var(--slate); white-space: nowrap; }
.header-contact a:hover { color: var(--ink); }
.link-quiet { font-size: .88rem; color: var(--slate); }
.link-quiet:hover { color: var(--ink); }

.nav-toggle {
  display: none; flex-direction: column; gap: 4px;
  background: none; border: 0; padding: 8px; cursor: pointer;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .93rem; cursor: pointer;
  transition: transform .12s ease, background .16s, border-color .16s, box-shadow .16s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); }
.btn-ghost { background: transparent; border-color: #cfd6de; color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: #fff; }
.btn-sm { padding: 9px 15px; font-size: .86rem; border-radius: 8px; }
.btn-tiny { padding: 6px 11px; font-size: .78rem; border-radius: 7px; background: #f0eee9; border: 0; cursor: pointer; font-weight: 600; }
.btn-tiny:hover { background: #e6e3dc; }
.badge-pending { background: #fdf1dc; color: #8a5a12; }
.btn-approve { background: #e3f3e9; color: #146c49; }
.btn-danger { background: #fdecea; color: #a02316; }
.btn-danger:hover { background: #f9d6d1; }
.btn-lg { padding: 15px 26px; font-size: 1rem; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

.link-arrow { font-weight: 600; font-size: .92rem; color: var(--accent-dark); }
.link-arrow:hover { text-decoration: underline; }

/* ---------- hero ---------- */

.hero {
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(224, 101, 31, .22), transparent 60%),
    radial-gradient(900px 500px at 8% 110%, rgba(58, 96, 140, .28), transparent 65%),
    var(--ink);
  color: #eef2f7;
  padding: 74px 0 86px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 40px; align-items: center; }
.eyebrow {
  font-size: .76rem; text-transform: uppercase; letter-spacing: .14em;
  font-weight: 700; color: var(--accent); margin: 0 0 14px;
}
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1.font-serif {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-weight: 600;
  letter-spacing: -.01em;
}
.hero h1.size-large { font-size: clamp(2.5rem, 5.2vw, 4.1rem); }
.hero h1.size-small { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
.hero .lede { color: #b9c6d4; font-size: 1.06rem; max-width: 34em; }
.hero .lede.font-serif { font-family: Georgia, "Times New Roman", serif; }
.hero .lede.size-small { font-size: .94rem; }
.hero .lede.size-large { font-size: 1.22rem; }
.hero-actions { display: flex; gap: 12px; margin: 26px 0 30px; flex-wrap: wrap; }
.hero .btn-primary { background: var(--accent); }
.hero .btn-primary:hover { background: var(--accent-dark); }
.hero .btn-ghost { color: #e8eef5; border-color: rgba(255, 255, 255, .32); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }
.hero-points { display: flex; gap: 22px; list-style: none; padding: 0; margin: 0; color: #9fb0c2; font-size: .86rem; flex-wrap: wrap; }
.hero-points li { position: relative; padding-left: 18px; }
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent);
}

.hero-art { position: relative; min-height: 540px; perspective: 1600px; }
.hero-coverflow { overflow: visible; --cf-spread: 0.20; }
.cf-card {
  position: absolute; inset: 0; margin: auto;
  width: 60%; aspect-ratio: 3 / 4; height: auto;
  border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 22px 50px rgba(14, 27, 42, .32);
  transition: transform .6s cubic-bezier(.22, .68, .28, 1), opacity .5s ease;
  will-change: transform, opacity; backface-visibility: hidden;
}
.cf-card img { width: 100%; height: 100%; object-fit: contain; display: block; }
.footer-links { display: inline-flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.footer-links a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.footer-links a:hover { border-bottom-color: rgba(255, 255, 255, .7); }

.legal-body { padding: 8px 0 72px; }
.legal-body h2, .legal-body p, .legal-body ul { max-width: 780px; }
.legal-body h2 { font-size: 1.12rem; margin: 30px 0 8px; }
.legal-body p, .legal-body li { color: var(--ink-2); font-size: .94rem; line-height: 1.7; }
.legal-body ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.legal-body a { color: var(--accent); }
.legal-updated { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--slate-2); }

@media (max-width: 820px) {
  .hero-art { min-height: 380px; }
  .hero-coverflow { --cf-spread: 0.20; }
  .cf-card { width: 68%; }
}

.hero-badge {
  position: absolute; right: 6%; bottom: 12px; background: #fff; color: var(--ink);
  border-radius: 12px; padding: 12px 16px; display: flex; flex-direction: column;
  box-shadow: var(--shadow-md); line-height: 1.15;
  cursor: grab; touch-action: none; user-select: none;
}
.hero-block { position: relative; padding-bottom: 58px; }
.hero-badge.is-dragging { cursor: grabbing; box-shadow: var(--shadow-lg); }
.hero-badge.is-floating { z-index: 45; margin: 0; }
.hero-badge-close {
  position: absolute; top: -10px; right: -10px;
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--slate);
  font-size: 15px; line-height: 1; cursor: pointer; padding: 0;
  box-shadow: var(--shadow-sm); display: grid; place-items: center;
}
.hero-badge-close:hover { background: #f4f2ee; color: var(--ink); }
.hero-badge strong { font-size: 1.3rem; }
.hero-badge span { font-size: .72rem; color: var(--slate); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- stats ---------- */


.stats { border-bottom: 1px solid var(--line); background: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 26px 0; }
.stats-grid > div { text-align: center; border-right: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 2px; }
.stats-grid > div:last-child { border-right: 0; }
.stats-grid strong { font-size: 1.5rem; letter-spacing: -.03em; }
.stats-grid span { font-size: .78rem; color: var(--slate); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- sections ---------- */

.section { padding: 76px 0; }
.section-alt { background: #f4f2ee; border-block: 1px solid var(--line); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 34px;
}
.section-head h2 { margin: 0; }

.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: #d5dbe2; }
.card-media { aspect-ratio: 4 / 3; background: #f6f5f2; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-type { font-size: .71rem; text-transform: uppercase; letter-spacing: .09em; color: var(--slate-2); font-weight: 650; }
.card-body h3 { font-size: .96rem; font-weight: 600; letter-spacing: -.01em; margin: 0; line-height: 1.32; }
.card-sku { font-size: .76rem; color: var(--slate-2); margin-top: 2px; }
.card-sku b { font-family: var(--mono); font-weight: 650; color: var(--ink-2); margin-left: 4px; letter-spacing: .02em; }
.card-foot { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; padding-top: 8px; }
.price { font-weight: 700; font-size: .95rem; }
.moq { font-size: .76rem; color: var(--slate-2); }

.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-tile {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3;
  background: #e9e6e0; display: block;
}
.cat-tile img { width: 100%; height: 100%; object-fit: contain; padding: 16px; transition: transform .4s; }
.cat-tile.has-photo img { object-fit: cover; padding: 0; }
.cat-tile.has-photo::after {
  background: linear-gradient(to top, rgba(14, 27, 42, .82), rgba(14, 27, 42, .12) 55%, rgba(14, 27, 42, 0) 78%);
}
.cat-tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14, 27, 42, .78), rgba(14, 27, 42, .05) 62%);
}
.cat-tile:hover img { transform: scale(1.05); }
.cat-tile-label {
  position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; color: #fff;
  font-weight: 600; font-size: .92rem; display: flex; flex-direction: column; gap: 1px;
}
.cat-tile-label em { font-style: normal; font-size: .74rem; color: #c3ceda; font-weight: 500; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
.steps li { border-top: 2px solid var(--ink); padding-top: 18px; }
.step-num { font-family: var(--mono); font-size: .78rem; color: var(--accent); letter-spacing: .08em; }
.steps h3 { margin: 8px 0 6px; font-size: 1.02rem; }
.steps p { color: var(--slate); font-size: .9rem; margin: 0; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-grid.two { grid-template-columns: repeat(2, 1fr); }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature h3 { font-size: 1.05rem; }
.feature p { margin: 0; color: var(--slate); font-size: .92rem; }

.cta-band { background: var(--accent); color: #fff; padding: 54px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .85); }
.cta-band .btn-primary { background: #fff; color: var(--accent-dark); }
.cta-band .btn-primary:hover { background: #fff4ec; }

/* ---------- page head ---------- */

.page-head { padding: 34px 0 30px; border-bottom: 1px solid var(--line); background: #fff; }
.page-head-compact { padding-bottom: 26px; }
.page-head h1 { margin: 10px 0 8px; }
.page-sub { color: var(--slate); max-width: 62ch; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 9px; font-size: .8rem; color: var(--slate-2); align-items: center; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs i { font-style: normal; color: #c3cbd5; }

/* ---------- catalog ---------- */

.catalog-layout { display: grid; grid-template-columns: 256px 1fr; gap: 40px; padding-block: 36px 76px; align-items: start; }
.filters { position: sticky; top: 94px; }
.search { display: flex; gap: 8px; margin-bottom: 26px; }
.search input {
  flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 9px; font: inherit; font-size: .9rem; background: #fff;
}
.filter-title { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--slate-2); margin: 18px 0 8px; font-weight: 700; }
.filter-title:first-of-type { margin-top: 6px; }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range input {
  width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid var(--line);
  border-radius: 8px; font: inherit; font-size: .88rem; background: #fff;
}
.price-range span { color: var(--slate-2); }
.filter-select {
  width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; font-size: .88rem; background: #fff;
}
.filter-checks { display: flex; flex-direction: column; gap: 2px; max-height: 210px; overflow-y: auto; padding-right: 4px; }
.filter-check { margin: 0; padding: 5px 6px; border-radius: 6px; font-size: .86rem; font-weight: 500; color: var(--ink-2); }
.filter-check:hover { background: #f4f2ee; }
.filter-check input { width: 15px; height: 15px; accent-color: var(--ink); }
.filter-check span { flex: 1; }
.filter-check em { font-style: normal; color: var(--slate-2); font-size: .76rem; }
.filter-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.filter-actions .btn { width: 100%; }
.filter-clear { font-size: .82rem; color: var(--slate); text-align: center; }
.filter-clear:hover { color: var(--ink); text-decoration: underline; }
.filters-form .search { margin-bottom: 0; }

/* multi-product quote list */
.cart-panel { margin-bottom: 18px; }
.cart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.cart-head h2 { margin: 0; }
.cart-table td { vertical-align: middle; }
.cart-thumb { width: 46px; height: 46px; object-fit: contain; background: #f6f5f2; border-radius: 8px; }
.cart-table a { font-weight: 600; font-size: .86rem; }
.cart-table small { display: block; color: var(--slate-2); font-size: .78rem; }
.qty-form { display: flex; gap: 6px; align-items: center; }
.qty-form input { width: 74px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; font: inherit; font-size: .84rem; }
.cart-actions { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.cart-actions form { margin: 0; }
.qs-total { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.qs-total strong { font-size: 1.1rem; }
.add-quote-form { display: inline-flex; }
.add-quote-form .btn { width: 100%; }

/* multi-product quote list */
.cat-admin-thumb {
  display: grid; place-items: center;
  width: 104px; height: 78px; object-fit: cover; border-radius: 8px;
  background: #f4f2ee; border: 1px solid var(--line);
}
.cat-admin-thumb.is-empty { font-size: .68rem; color: var(--slate-2); text-align: center; line-height: 1.2; }
.cat-upload { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.order-input {
  width: 66px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px;
  font: inherit; font-size: .84rem; text-align: center; background: #fff;
}

.stat-inputs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-row { display: flex; flex-direction: column; gap: 6px; }
.stat-row input { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .84rem; }
.stat-row input:first-child { font-weight: 600; }
.stat-sentence { display: flex; align-items: center; justify-content: center; text-align: center; }
.stat-sentence span {
  font-size: .92rem; font-weight: 600; color: var(--ink); line-height: 1.4;
  letter-spacing: 0; text-transform: none; max-width: 20ch;
}
@media (max-width: 800px) { .stat-inputs { grid-template-columns: repeat(2, 1fr); } }


.lang-menu { position: relative; }
.lang-menu summary {
  display: inline-flex; align-items: center; gap: 6px; list-style: none; cursor: pointer;
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: .78rem; font-weight: 650; color: var(--ink-2); white-space: nowrap;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { background: #f6f4f0; }
.lang-menu[open] summary { background: #f0eee9; }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 170px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 6px; display: flex; flex-direction: column; gap: 2px;
}
.lang-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 10px; border-radius: 8px; text-decoration: none;
  font-size: .86rem; color: var(--ink); white-space: nowrap;
}
.lang-list a:hover { background: #f6f4f0; }
.lang-list a.is-current { background: var(--accent-soft); color: var(--accent-dark); font-weight: 650; }
.lang-code { font-size: .7rem; letter-spacing: .08em; color: var(--slate-2); text-transform: uppercase; }

.header-account {
  display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600;
  color: var(--ink-2); text-decoration: none; padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; white-space: nowrap;
}
.header-account:hover { background: #f6f4f0; }
.header-account em { font-style: normal; font-weight: 500; color: var(--slate-2); font-size: .72rem; white-space: nowrap; }
.header-account .account-dot { width: 7px; height: 7px; border-radius: 50%; background: #1f8a5b; }

.auth-page { padding: 56px 0 72px; background: #fbfaf7; border-bottom: 1px solid var(--line); }
.auth-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
.auth-copy h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin: 6px 0 14px; letter-spacing: -.02em; }
.auth-lede { color: var(--slate-2); font-size: 1rem; line-height: 1.6; max-width: 34em; margin: 0 0 22px; }
.auth-lede a { color: var(--accent); font-weight: 700; text-decoration: none; }
.auth-lede a:hover { text-decoration: underline; }

.auth-benefits { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 10px; }
.auth-benefits li { position: relative; padding-left: 22px; font-size: .94rem; color: var(--ink-2); line-height: 1.5; }
.auth-benefits li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent);
}
.auth-help { font-size: .88rem; color: var(--slate-2); margin: 0; }
.auth-help a { color: var(--accent); font-weight: 600; text-decoration: none; }
.auth-help a:hover { text-decoration: underline; }

.auth-card { max-width: none; margin: 0; gap: 14px; }
.auth-card h2 { font-size: 1.15rem; margin: 0 0 4px; }
.auth-note { margin: -2px 0 4px; font-size: .88rem; color: var(--slate-2); line-height: 1.5; }
.auth-keep { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--ink-2); cursor: pointer; }
.auth-keep input { width: 16px; height: 16px; accent-color: var(--accent); }

.auth-card .btn { align-self: stretch; padding: 12px 18px; }
.auth-card .hint { margin-top: 4px; }
.auth-types { display: flex; gap: 18px; align-items: center; margin: 2px 0 4px; }
.auth-type { display: inline-flex; align-items: center; gap: 7px; font-size: .9rem; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.auth-type input { accent-color: #1d4ed8; width: 16px; height: 16px; }
.asi-input { display: flex; align-items: stretch; }
.asi-prefix {
  display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--line);
  border-right: 0; border-radius: 9px 0 0 9px; background: #f4f2ee;
  font-size: .9rem; font-weight: 600; color: var(--slate);
}
.asi-input input { border-radius: 0 9px 9px 0; flex: 1; }

.auth-card .hint a { color: var(--accent); text-decoration: none; }
.auth-card .hint a:hover { text-decoration: underline; }
.auth-alt { margin: 4px 0 0; font-size: .86rem; color: var(--slate-2); text-align: center; }
.auth-alt a { color: var(--accent); font-weight: 600; text-decoration: none; }
.auth-alt a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .auth-grid { grid-template-columns: 1fr; gap: 28px; }
  .auth-page { padding: 36px 0 52px; }
}

.auth-card {
  max-width: 420px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px;
  border: 1px solid var(--line); border-radius: 16px; padding: 26px; background: #fff;
  box-shadow: var(--shadow-sm);
}
.auth-card .btn { align-self: flex-start; }

.grid-form .span-full { grid-column: 1 / -1; }
.type-row { display: flex; gap: 20px; flex-wrap: wrap; }
.type-opt { display: inline-flex; align-items: center; gap: 7px; font-size: .86rem; font-weight: 500; cursor: pointer; }
.type-opt input { accent-color: var(--accent); width: 16px; height: 16px; }

.grid-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: end; }
.grid-form .field { margin: 0; }
.grid-form .field-action { display: flex; align-items: flex-end; }
.inline-form { display: inline-flex; gap: 6px; margin: 0 6px 6px 0; }
.inline-form input { width: 120px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; font-size: .78rem; }
@media (max-width: 900px) { .grid-form { grid-template-columns: 1fr 1fr; } }

.hero-slots { display: flex; gap: 16px; flex-wrap: wrap; }
.picker-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.import-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.import-form input[type=file] { font-size: .78rem; max-width: 220px; }
.io-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 14px; }
.io-box {
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--bg-soft, #faf9f6);
}
.io-box h3 { font-size: .95rem; margin: 0; }
.io-box .micro { margin: 0; color: var(--slate-2); font-size: .8rem; line-height: 1.5; }
.io-box input[type=file] { font-size: .78rem; max-width: 100%; }
@media (max-width: 800px) { .io-grid { grid-template-columns: 1fr; } }
.picker-grid select { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .84rem; background: #fff; }
@media (max-width: 1000px) { .picker-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .picker-grid { grid-template-columns: 1fr; } }
.hero-slot { display: flex; flex-direction: column; gap: 8px; width: 150px; }
.hero-slot .cat-admin-thumb { width: 132px; height: 99px; }
.hero-file { font-size: .78rem; max-width: 100%; }
.hero-slot-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.cat-upload input[type=file] { font-size: .78rem; max-width: 210px; }
.table td .row-actions { display: flex; gap: 6px; }
.filter-list { display: flex; flex-direction: column; gap: 1px; }
.filter-link {
  display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px;
  border-radius: 8px; font-size: .88rem; color: var(--ink-2);
}
.filter-link em { font-style: normal; color: var(--slate-2); font-size: .78rem; }
.filter-link:hover { background: #f0eee9; }
.filter-link.is-active { background: var(--ink); color: #fff; }
.filter-link.is-active em { color: #b9c6d4; }
.filter-note { margin-top: 24px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: .85rem; }
.filter-note p { margin: 6px 0 0; color: var(--slate); }
.filter-note a { color: var(--accent-dark); font-weight: 600; }

.toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.result-count { font-size: .85rem; color: var(--slate); }
.sort-form { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--slate); }
.sort-form select, .admin-filters select, .admin-filters input, .status-form select {
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; font: inherit; font-size: .86rem; color: var(--ink);
}

.pagination {
  display: flex; gap: 6px; justify-content: center; align-items: center;
  margin-top: 40px; flex-wrap: wrap;
}

.page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 13px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  font: inherit; font-size: .88rem; font-weight: 500; color: var(--ink-2);
  cursor: pointer; user-select: none;
  transition: background .15s, border-color .15s, color .15s;
}
.page-btn:hover { border-color: #b9c2cd; background: #f7f6f3; color: var(--ink); }
.page-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.page-btn.is-current {
  background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 650;
  box-shadow: 0 2px 8px rgba(14, 27, 42, .18);
}
.page-btn.is-disabled {
  color: #c2c9d2; background: #faf9f7; border-color: var(--line-2);
  pointer-events: none; cursor: default;
}

.page-jump {
  display: flex; align-items: center; gap: 8px;
  margin-left: 8px; padding-left: 20px; border-left: 1px solid var(--line);
  font-size: .85rem; color: var(--slate);
}
.page-jump label { color: var(--slate-2); }
.page-jump input {
  width: 58px; height: 40px; padding: 0 6px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  font: inherit; font-size: .92rem; font-weight: 600; color: var(--ink);
  text-align: center;
  -moz-appearance: textfield; appearance: textfield;
}
.page-jump input::-webkit-outer-spin-button,
.page-jump input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.page-jump input:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(14, 27, 42, .07);
}
.page-total { white-space: nowrap; color: var(--slate-2); }
.page-jump .page-btn {
  height: 40px; padding: 0 16px; font-weight: 600;
  background: var(--ink); border-color: var(--ink); color: #fff;
}
.page-jump .page-btn:hover { background: var(--ink-2); border-color: var(--ink-2); color: #fff; }

.empty { padding: 60px 20px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty h3 { margin-bottom: 6px; }

/* ---------- product ---------- */

.product-page { padding-top: 26px; padding-bottom: 70px; }
.product-layout { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; margin-top: 20px; align-items: start; }
.gallery { position: sticky; top: 96px; }
.gallery-main { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 1; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb {
  width: 74px; height: 74px; padding: 4px; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer;
}
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb.is-active { border-color: var(--ink); }

.product-info .eyebrow { margin-bottom: 8px; }
.product-info h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 12px; }
.product-summary { color: var(--slate); font-size: .97rem; }
.product-sku {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 999px;
  background: #f4f2ee; border: 1px solid #e6e2da;
  font-size: .92rem; color: var(--slate); margin: -4px 0 16px;
}
.product-sku span {
  font-family: var(--mono); font-size: 1.1rem; font-weight: 700; color: var(--ink);
  letter-spacing: .05em;
}
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 22px; }
.chip {
  font-size: .76rem; padding: 5px 10px; border-radius: 99px;
  background: #f0eee9; color: var(--ink-2); border: 1px solid #e6e2da;
}

.price-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; }
.price-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.price-head span { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--slate-2); font-weight: 650; }
.price-head strong { font-size: 1.45rem; letter-spacing: -.02em; }
.price-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.price-table th {
  text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--slate-2); padding: 6px 0; border-bottom: 1px solid var(--line);
}
.price-table th:last-child, .price-table td:last-child { text-align: right; }
.price-table td { padding: 7px 0; border-bottom: 1px solid var(--line-2); }
.price-table tr:last-child td { border-bottom: 0; }
.price-range-note { margin: 10px 0 0; font-size: .84rem; color: var(--slate-2); line-height: 1.55; }
.price-range-note a { color: var(--accent); font-weight: 600; text-decoration: none; }
.price-range-note a:hover { text-decoration: underline; }
.price-note { font-size: .78rem; color: var(--slate-2); margin: 10px 0 0; }

.quick-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 22px; }
.quick-facts div { background: #f4f2ee; border-radius: 10px; padding: 12px 14px; }
.quick-facts dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--slate-2); font-weight: 650; }
.quick-facts dd { margin: 4px 0 0; font-weight: 600; font-size: .9rem; }

.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-row .btn-lg { flex: 1 1 auto; }

.product-details { margin-top: 64px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; }
.product-details h2 { font-size: 1.1rem; margin-bottom: 12px; }
.product-details section p { color: var(--ink-2); font-size: .95rem; }
.product-details section + section { margin-top: 30px; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); margin: 0; }
.spec-grid > div { padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.spec-grid dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--slate-2); font-weight: 650; }
.spec-grid dd { margin: 2px 0 0; font-size: .9rem; }
.compliance { font-size: .82rem; color: var(--green); font-weight: 600; }

/* ---------- quote ---------- */

.quote-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; padding-block: 40px 80px; align-items: start; }
.quote-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
fieldset { border: 0; padding: 0; margin: 0 0 26px; }
legend { font-weight: 650; font-size: 1.02rem; margin-bottom: 14px; padding: 0; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.field label .opt { font-weight: 400; color: var(--slate-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #d6dbe2; border-radius: 9px;
  font: inherit; font-size: .92rem; background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(14, 27, 42, .08);
}
.field textarea { resize: vertical; }
.field-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.field-row:has(> .field:nth-child(2):last-child) { grid-template-columns: 1fr 1fr; }
.hp { position: absolute; left: -9999px; }

.quote-summary { position: sticky; top: 94px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.qs-product { display: flex; gap: 12px; margin-bottom: 16px; }
.qs-product img { width: 74px; height: 74px; object-fit: contain; border-radius: 10px; background: #f6f5f2; }
.qs-product div { display: flex; flex-direction: column; gap: 3px; }
.qs-product strong { font-size: .92rem; line-height: 1.25; }
.qs-product small { color: var(--slate-2); font-size: .76rem; }
.mini-steps { margin: 16px 0 0; padding-left: 18px; color: var(--slate); font-size: .86rem; }
.mini-steps li { margin-bottom: 6px; }

.alert { background: #fdecea; border: 1px solid #f5c6c1; color: #8e2c20; padding: 12px 14px; border-radius: 9px; font-size: .88rem; margin-bottom: 18px; }

.thanks { text-align: center; padding-block: 80px 90px; }
.thanks-badge {
  width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; background: #e8f3ec; color: var(--green); font-size: 1.6rem;
}
.thanks h1 { margin-bottom: 12px; }
.thanks-actions { display: flex; gap: 12px; justify-content: center; margin: 26px 0 40px; flex-wrap: wrap; }
.next-steps { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; }

/* ---------- static ---------- */

.prose { padding-block: 48px 72px; max-width: 860px; }
.prose h2 { margin-top: 36px; font-size: 1.3rem; }
.cap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; padding-block: 44px 0; }
.cap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.cap ul { margin: 10px 0 0; padding-left: 18px; color: var(--slate); font-size: .92rem; }
.cap li { margin-bottom: 5px; }
.note-box { margin: 40px 0 70px; padding: 26px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid #f3d9c4; }
.note-box h3 { margin-bottom: 6px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-block: 44px 0; }
.contact-grid.two { grid-template-columns: repeat(2, 1fr); }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.contact-card a { color: var(--accent-dark); font-weight: 600; }
.notfound { padding-block: 100px; text-align: center; }

/* ---------- footer ---------- */

.site-footer { background: var(--ink); color: #a9b7c6; padding: 56px 0 22px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 36px; }
.footer-grid h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.footer-grid a { display: block; font-size: .9rem; margin-bottom: 8px; color: #a9b7c6; }
.footer-grid a:hover { color: #fff; }
.footer-brand p { font-size: .89rem; max-width: 34ch; }
.footer-asi { color: var(--accent); font-weight: 600; font-size: .82rem; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 18px; font-size: .78rem; color: #7f8fa2;
}

/* ---------- admin ---------- */

.admin-body { background: #f6f5f2; }
.admin-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.admin-header-inner { display: flex; align-items: center; gap: 28px; height: 66px; }
.admin-nav { display: flex; gap: 4px; }
.nav-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px;
  border-radius: 999px; background: #c2410c; color: #fff;
  font-size: .68rem; font-weight: 700; line-height: 1;
}

.admin-link { white-space: nowrap; padding: 7px 12px; border-radius: 8px; font-size: .88rem; color: var(--slate); font-weight: 500; }
.admin-link:hover { background: #f2f0ec; }
.admin-link.is-active { background: var(--ink); color: #fff; }
.admin-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.admin-main { padding-block: 32px 70px; }
.admin-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.admin-page-head h1 { font-size: 1.7rem; margin: 6px 0 2px; }
.admin-head-actions { display: flex; gap: 10px; align-items: center; }

.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 26px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.stat-card span { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--slate-2); font-weight: 650; }
.stat-card strong { font-size: 1.9rem; letter-spacing: -.03em; }
.stat-card small { color: var(--slate-2); font-size: .78rem; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; margin-bottom: 20px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.panel h2 { font-size: 1.02rem; margin: 0 0 10px; }
.panel h3 { font-size: .92rem; margin: 16px 0 6px; }

.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll .table { min-width: 760px; }
.table th {
  text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--slate-2); border-bottom: 1px solid var(--line); padding: 8px 6px;
}
.table td { padding: 10px 6px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table a { font-weight: 600; }
.table small { display: block; color: var(--slate-2); font-size: .76rem; }

.prod-cell { display: flex; align-items: center; gap: 10px; }
.prod-cell img { width: 38px; height: 38px; object-fit: contain; border-radius: 7px; background: #f4f2ee; }

.badge { display: inline-block; font-size: .72rem; padding: 3px 9px; border-radius: 99px; font-weight: 650; letter-spacing: .02em; }
.badge-live, .badge-won { background: #e6f3ec; color: #146c49; }
.badge-draft, .badge-closed { background: #eef0f3; color: #5b6b7e; }
.badge-new { background: #fdf1e8; color: #ad4b12; }
.badge-quoted { background: #e9effa; color: #2f4f86; }
.badge-asi { background: #f4f2ee; color: #5b6b7e; }

.admin-filters {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 14px;
}
.admin-filters .f-search { flex: 1 1 280px; min-width: 220px; height: 40px; }
.admin-filters .f-select { height: 40px; min-width: 150px; }
.f-chip {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  font-size: .86rem; color: var(--ink-2); background: #fff; user-select: none;
}
.f-chip input { width: 0; height: 0; opacity: 0; position: absolute; }
.f-chip span::before {
  content: ""; width: 14px; height: 14px; border-radius: 4px;
  border: 1.5px solid #c3cad4; display: inline-block; vertical-align: -2px; margin-right: 6px;
}
.f-chip:hover { border-color: #b9c2cd; }
.f-chip:has(input:checked) { background: var(--accent-soft); border-color: #f2c9a8; color: var(--accent-dark); font-weight: 600; }
.f-chip input:checked + span::before {
  background: var(--accent); border-color: var(--accent);
  box-shadow: inset 0 0 0 2px #fff;
}
.f-apply { height: 40px; padding: 0 20px; }
.f-reset { font-size: .84rem; color: var(--slate); margin-left: 2px; }
.f-reset:hover { color: var(--ink); }
@media (max-width: 720px) {
  .admin-filters .f-search { flex-basis: 100%; }
  .f-apply { flex: 1; }
}
.admin-filters input[type=search] { min-width: 260px; }
.admin-filters-dates { flex-wrap: wrap; align-items: center; }
.date-field { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--slate); }
.date-field input[type=date] { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .86rem; background: #fff; }

.bulk-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 0 0 12px; padding: 10px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
}
.bulk-bar .check { margin: 0; }
.bulk-bar select { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .86rem; background: #fff; }
.bulk-sep { width: 1px; height: 20px; background: var(--line); }
.sel-cell { width: 36px; text-align: center; }
.sel-cell input { width: 16px; height: 16px; accent-color: var(--ink); cursor: pointer; }

.rfq-layout { display: grid; grid-template-columns: 1.4fr .6fr; gap: 20px; align-items: start; }
.status-form { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; }
.status-form select { flex: 1; }
.note-form { display: flex; flex-direction: column; gap: 8px; }
.note-form label { font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.note-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #d6dbe2; border-radius: 9px;
  font: inherit; font-size: .88rem; resize: vertical;
}
.note-form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(14, 27, 42, .07); }
.note-form .btn { align-self: flex-start; }

.rfq-product { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.rfq-product img { width: 76px; height: 76px; object-fit: contain; background: #f6f5f2; border-radius: 10px; flex: none; }
.rfq-product div { display: flex; flex-direction: column; gap: 2px; }
.rfq-product a { font-size: .8rem; color: var(--slate-2); }
.rfq-product strong { font-size: .96rem; line-height: 1.3; }
.rfq-product small { color: var(--slate-2); font-size: .78rem; }
.est { margin: 4px 0 0; font-size: .84rem; color: var(--slate); }
.rfq-freetext { font-size: .95rem; color: var(--ink-2); margin: 0 0 14px; }

.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.timeline li { display: flex; align-items: center; gap: 10px; font-size: .84rem; }
.tl-time { color: var(--slate-2); font-variant-numeric: tabular-nums; }
.tl-note { color: var(--slate); }

.mono { font-family: var(--mono); font-size: .84rem; }
.quoted-tag { display: block; font-size: .68rem; color: #146c49; letter-spacing: .04em; text-transform: uppercase; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.table-rfq td { vertical-align: top; }
.pre { white-space: pre-wrap; font-size: .9rem; color: var(--ink-2); }

/* ---------- auth ---------- */

.auth-body { min-height: 100vh; display: grid; place-items: center; background: var(--ink); padding: 24px; }
.auth-card { background: #fff; border-radius: 16px; padding: 32px; width: min(380px, 100%); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 12px; }
.auth-card .brand-mark { width: 44px; height: 44px; }
.auth-card h1 { font-size: 1.35rem; margin: 6px 0 0; }
.auth-card p { margin: 0 0 6px; font-size: .88rem; }
.auth-card .btn { width: 100%; margin-top: 6px; }

/* ---------- product editor ---------- */

.editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; align-items: start; }
.editor-grid .panel { margin: 0; }
.editor-grid .span-2 { grid-column: 1 / -1; }
.hint { color: var(--slate-2); font-size: .76rem; margin-top: 2px; }
.tier-table { width: 100%; border-collapse: collapse; margin: 8px 0 6px; }
.tier-table th {
  text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--slate-2); padding: 6px; border-bottom: 1px solid var(--line);
}
.tier-table td { padding: 5px 6px; }
.tier-table input {
  width: 100%; padding: 8px 10px; border: 1px solid #d6dbe2; border-radius: 8px;
  font: inherit; font-size: .88rem;
}
.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 14px; }
.img-card {
  border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: #fff;
  display: flex; flex-direction: column; gap: 6px; font-size: .72rem; color: var(--slate);
}
.img-card img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #f6f5f2; border-radius: 6px; }
.img-card span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.img-card em { font-style: normal; color: var(--slate-2); display: flex; gap: 6px; align-items: center; }
.editor-save { display: flex; gap: 10px; padding: 4px 0 40px; }
.check { display: flex; gap: 8px; align-items: center; font-size: .88rem; margin-top: 10px; }
.alert-warn { background: #fdf3e3; border-color: #f0d9b5; color: #8a5a12; }
.alert-ok { background: #e8f3ec; border-color: #bfe0cd; color: #146c49; }
.row-actions { display: flex; gap: 8px; align-items: center; }
.row-actions form { margin: 0; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-art { min-height: 380px; max-width: 100%; }
  .catalog-layout { grid-template-columns: 220px 1fr; gap: 28px; }
  .product-layout { grid-template-columns: 1fr; gap: 34px; }
  .gallery { position: static; }
  .product-details { grid-template-columns: 1fr; gap: 26px; }
  .quote-layout { grid-template-columns: 1fr; }
  .quote-summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .hero-badge { position: relative; margin: 16px auto 0; width: max-content; }
  .hero-block { padding-bottom: 0; }
  .container, .narrow { width: calc(100% - 32px); }
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .nav.is-open {
    display: flex; position: absolute; left: 0; right: 0; top: 74px;
    flex-direction: column; background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px; gap: 2px; box-shadow: var(--shadow-md);
  }
  .nav.is-open .nav-link { display: block; }
  .header-actions .link-quiet, .header-actions .header-contact { display: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .feature-grid, .feature-grid.two, .contact-grid, .contact-grid.two, .cap-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .stats-grid > div:nth-child(2) { border-right: 0; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filter-list { flex-direction: row; flex-wrap: wrap; }
  .filter-link { border: 1px solid var(--line); background: #fff; }
  .filter-note { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
  .hero { padding: 48px 0 60px; }
  .stat-cards { grid-template-columns: 1fr; }
  .editor-grid { grid-template-columns: 1fr; }
  .editor-grid .span-2 { grid-column: auto; }
  .rfq-layout { grid-template-columns: 1fr; }
  .admin-nav { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .product-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .brand-text small { display: none; }
  .spec-grid { grid-template-columns: 1fr; }
  .quick-facts { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
  .page-jump { margin-left: 0; padding-left: 0; border-left: 0; flex-basis: 100%; justify-content: center; }
}

@media (max-width: 1340px) {
  .header-contact { display: none !important; }
  .nav-link { padding: 8px 7px; font-size: .86rem; }
  .header-actions { gap: 10px; }
  .header-actions .btn-primary { padding: 9px 13px; font-size: .8rem; }
  }

.audit-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.audit-stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.audit-stat strong { font-size: 1.5rem; letter-spacing: -.02em; }
.audit-stat span { font-size: .76rem; color: var(--slate); text-transform: uppercase; letter-spacing: .06em; }
.audit-stat.is-warn { border-color: #f0d9b5; background: #fdf9f1; }
.audit-stat.is-warn strong { color: #8a5a12; }
.empty-ok { border: 1px dashed #b9d8c2; background: #f3faf5; color: #2f6b45; border-radius: 12px; padding: 18px; font-size: .92rem; }
.ok-note { color: #2f6b45; font-style: normal; font-size: .78rem; }
.panel-tools { margin-left: auto; }
.admin-search { display: flex; align-items: center; gap: 8px; }
.admin-search input { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .85rem; min-width: 220px; }
@media (max-width: 900px) { .audit-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.check-inline { display: flex; align-items: center; gap: 9px; font-size: .9rem; cursor: pointer; }
.check-inline input { width: 16px; height: 16px; accent-color: var(--ink); }
.check-inline span { color: var(--ink-2); }

.badge-pinned { background: #e8eefc; color: #2b4a9b; }

.save-block { margin-top: 18px; border-top: 1px solid var(--line-2); padding-top: 16px; }
.save-block h3 { font-size: .92rem; margin: 0 0 6px; }
.save-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.save-form select, .save-form input[type=text], .save-form input[type=number] {
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .86rem; }
.save-form input[type=text] { min-width: 190px; }
.save-form input[type=number] { width: 96px; }
.list-create { display: flex; gap: 10px; margin: 18px 0 20px; }
.list-create input { flex: 1; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.list-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff; text-decoration: none; color: var(--ink); }
.list-card:hover { border-color: #b9c2cd; }
.list-card strong { font-size: .98rem; }
.list-card span { font-size: .82rem; color: var(--slate); }
.list-card em { font-style: normal; font-size: .74rem; color: var(--slate-2); text-transform: uppercase; letter-spacing: .06em; }
.empty-lists { border: 1px dashed var(--line); border-radius: 12px; padding: 22px; color: var(--slate); font-size: .92rem; }
.list-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0 18px; }
.list-toolbar input { min-width: 240px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .88rem; }
.list-total { margin-top: 14px; font-size: .92rem; color: var(--ink-2); }

.has-js .qty-update { display: none; }
.qty-form input[type=number] { width: 88px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .88rem; }

.admin-menu { position: relative; }
.admin-menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.admin-menu > summary::-webkit-details-marker { display: none; }
.admin-menu .caret { font-size: .62rem; opacity: .55; }
.admin-menu[open] > summary { background: #f0eee9; }
.admin-menu-list {
  position: absolute; left: 0; top: calc(100% + 6px); z-index: 70; min-width: 180px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 30px rgba(14, 27, 42, .12); padding: 6px; display: flex; flex-direction: column;
}
.admin-menu-link { padding: 8px 10px; border-radius: 7px; font-size: .86rem; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.admin-menu-link:hover { background: #f6f4f0; color: var(--ink); }
.admin-menu-link.is-active { background: var(--accent-soft); color: var(--accent-dark); font-weight: 650; }
.admin-menu[open] > summary.admin-link.is-active { background: var(--ink); color: #fff; }

.quote-cta { position: relative; display: inline-flex; align-items: center; gap: 7px; }
.cta-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: #f26b1d; color: #fff; font-size: .72rem; font-weight: 700; line-height: 1;
}

.card-media { position: relative; }
.new-flag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: #c62828; color: #fff; font-size: .68rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 4px;
  box-shadow: 0 2px 6px rgba(198, 40, 40, .28);
}
.new-flag::after {
  content: ""; position: absolute; right: -7px; top: 0; bottom: 0; width: 7px;
  background: #c62828; clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.product-head .new-flag { position: static; display: inline-block; margin-left: 8px; vertical-align: middle; }
.product-head .new-flag::after { display: none; }
