/* styles.css — Sentosa B2B portal (TotalReview DS tokens) */

:root {
  --accent: var(--tr-red);
  --accent-dark: var(--tr-red-dark);
  --accent-soft: var(--tr-red-soft);
  --row-pad: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg-1); }
button { font-family: var(--font-sans); cursor: pointer; }
input, select { font-family: var(--font-sans); }

.mono { font-family: var(--font-mono); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ============ shared bits ============ */
.eyebrow {
  font-family: var(--font-sans); font-size: var(--t-eyebrow); font-weight: var(--w-bold);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
}
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; border: none; border-radius: var(--r-0);
  font-size: 13px; font-weight: var(--w-bold); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 12px 20px; transition: background var(--dur-fast) var(--ease-out);
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:disabled { background: var(--tr-n-300); cursor: default; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--fg-1); border: 1px solid var(--border-2);
  border-radius: var(--r-0); font-size: 13px; font-weight: var(--w-semi);
  padding: 9px 14px; transition: all var(--dur-fast) var(--ease-out);
}
.btn-ghost:hover { border-color: var(--fg-1); background: var(--fg-1); color: var(--fg-inv); }
.iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--r-full);
  background: transparent; border: 1px solid transparent; color: var(--fg-1);
  transition: all var(--dur-fast) var(--ease-out); position: relative;
}
.iconbtn:hover { background: var(--fg-1); color: var(--fg-inv); }
.iconbtn .bubble {
  position: absolute; top: -2px; right: -2px; min-width: 16px; height: 16px;
  background: var(--accent); color: #fff; border-radius: var(--r-full);
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

/* ============ login ============ */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-brand {
  background: var(--tr-cream); color: var(--fg-1);
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: var(--sp-7); position: relative; overflow: hidden;
  border-right: 1px solid var(--border-1);
}
.login-brand::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; pointer-events: none;
  background: var(--accent);
}
.login-brand > * { position: relative; z-index: 2; }
.brand-figure { flex: 1 1 auto; display: flex; margin: var(--sp-5) 0; min-height: 190px; }
#login-brand-img { display: block; width: 100%; height: 100%; min-height: 190px; border: 1px solid var(--border-1); }
.brand-figure-img, .brand-figure-empty { display: block; width: 100%; min-height: 220px; flex: 1 1 auto; border: 1px solid var(--border-1); border-radius: 6px; }
.brand-figure-img { background-size: contain; background-position: center; background-repeat: no-repeat; background-color: #fff; }
.brand-figure-empty { background: linear-gradient(135deg, var(--bg-2, #f1efe9), var(--bg-3, #e6e3db)); }
.brand-bottom { }
.brand-lede {
  font-size: 16px; line-height: 1.55; color: var(--fg-2);
  margin: 18px 0 0; text-wrap: pretty;
}
.brand-stats {
  display: grid; grid-template-columns: repeat(4, auto); gap: 0; margin-top: var(--sp-6);
  border-top: 2px solid var(--border-strong);
}
.bstat {
  display: flex; flex-direction: column; gap: 3px; padding: 16px 22px 0 0; margin-right: 22px;
  border-right: 1px solid var(--border-1);
}
.bstat:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.bstat .bv { font-family: var(--font-mono); font-size: 23px; font-weight: 700; letter-spacing: -0.01em; color: var(--fg-1); }
.bstat .bl { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); line-height: 1.3; }
.login-logo { display: flex; align-items: center; gap: 9px; }
.brand-logo { display: block; width: auto; }
.login-logo.on-plate {
  align-self: flex-end; background: #fff; padding: 12px 16px;
  box-shadow: var(--shadow-2);
}
.wordmark { font-family: var(--font-serif); font-weight: var(--w-black); letter-spacing: -0.02em; line-height: 1; }
.wordmark .dot { color: var(--accent); }
.b2b-tag {
  font-family: var(--font-sans); font-size: 11px; font-weight: 800; letter-spacing: 0.18em;
  background: var(--accent); color: #fff; padding: 3px 7px; transform: translateY(-2px); border-radius: 6px;
}
.login-headline {
  font-family: var(--font-serif); font-weight: var(--w-black); font-size: clamp(34px, 3.4vw, 54px);
  line-height: 1.02; letter-spacing: -0.025em; text-wrap: balance; margin: 0;
  font-variation-settings: "opsz" 144;
}
.login-headline em { font-style: normal; color: inherit; }
.login-foot { font-size: 12.5px; color: var(--fg-3); display: flex; gap: 18px; margin-top: var(--sp-6); padding-top: 18px; border-top: 1px solid var(--border-1); }


.login-form-side { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: var(--sp-7) var(--sp-6); position: relative; }
.login-card { width: 100%; max-width: 420px; }
.login-card h1, .login-card .login-title {
  font-family: var(--font-serif); font-weight: 700; font-size: 34px; letter-spacing: -0.02em;
  line-height: 1.05; margin: 10px 0 6px;
}
.login-card .sub { font-size: 14.5px; color: var(--fg-2); margin: 0 0 var(--sp-6); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-2); }
.field .control { position: relative; display: flex; }
.field input {
  width: 100%; padding: 12px 14px; font-size: 15px; color: var(--fg-1);
  background: #fff; border: 1px solid var(--border-2); border-radius: var(--r-0);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.field input:focus { outline: none; border-color: var(--fg-1); }
.field .control .trail {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  background: none; border: none; color: var(--fg-3);
}
.field .control .trail:hover { color: var(--fg-1); }
.login-row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 22px; font-size: 13.5px; }
.remember { display: flex; align-items: center; gap: 8px; color: var(--fg-2); cursor: pointer; user-select: none; }
.remember input { accent-color: var(--accent); width: 15px; height: 15px; }
.login-card .btn-primary { width: 100%; padding: 14px; font-size: 14px; }
.login-err {
  display: flex; gap: 10px; align-items: center; background: var(--accent-soft); color: var(--accent-dark);
  font-size: 13.5px; padding: 10px 12px; margin-bottom: 18px; border: 1px solid rgba(212,38,26,0.25);
}
.login-note { margin-top: 8px; font-size: 12.8px; color: #1c7c36; background: #f0faf2; border: 1px solid #b7e2c0; border-radius: 8px; padding: 8px 11px; line-height: 1.45; }
.login-help { margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid var(--border-1); font-size: 13.5px; color: var(--fg-2); line-height: 1.6; }
.login-help a { color: var(--accent); }
/* „Ai uitat parola?" — link-buton + fereastra separată (C1) + sigla pe mobil (panoul de brand e ascuns) */
.login-link { background: none; border: none; padding: 4px 0; font: inherit; font-size: 13.5px; color: var(--accent); cursor: pointer; text-decoration: none; }
.login-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.login-mobile-logo { display: none; }
.fp-ov { position: fixed; inset: 0; z-index: 1000; background: rgba(15,20,30,.5); display: flex; align-items: center; justify-content: center; padding: 16px; }
.fp-box { position: relative; width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--border-1); box-shadow: 0 18px 50px rgba(0,0,0,.25); padding: 26px 26px 22px; max-height: calc(100vh - 32px); overflow: auto; }
.fp-box h2 { font-family: var(--font-serif); font-weight: 700; font-size: 26px; letter-spacing: -0.015em; line-height: 1.1; margin: 8px 0 10px; }
.fp-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: none; border: none; color: var(--fg-3); cursor: pointer; }
.fp-x:hover { color: var(--fg-1); }
.fp-sub, .fp-done p { font-size: 14px; color: var(--fg-2); line-height: 1.55; margin: 0 0 16px; }
.fp-done p b { color: var(--fg-1); word-break: break-all; }
.fp-done .fp-hint { font-size: 13px; color: var(--fg-3); }
.fp-done .btn-primary { width: 100%; }
.fp-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.fp-actions .btn-ghost { padding: 12px 16px; }
@media (max-width: 760px) {
  .login-mobile-logo { display: flex; justify-content: center; margin: 0 0 22px; }
  .fp-actions { flex-direction: column-reverse; }
  .fp-actions > * { width: 100%; justify-content: center; }
}
@media (pointer: coarse) { .login-link { padding: 12px 0; } }
.demo-hint { margin-top: 14px; font-size: 12.5px; color: var(--fg-3); font-style: italic; font-family: var(--font-serif); }

/* ============ chrome ============ */
.topstrip { background: var(--tr-n-950); color: rgba(251,250,247,0.75); font-size: 12px; }
.topstrip .container { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topstrip .left { display: flex; gap: 18px; align-items: center; }
.topstrip .left span { display: inline-flex; gap: 6px; align-items: center; }
.topstrip a { color: rgba(251,250,247,0.75); text-decoration: none; }
.topstrip a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.topstrip nav { display: flex; gap: 16px; }

.masthead { background: var(--bg-1); border-bottom: 1px solid var(--border-1); position: relative; }
.masthead .container { display: flex; align-items: center; gap: var(--sp-5); height: 54px; }
/* buton „Categorii" + mega-meniu în două panouri (stânga categorii / dreapta subcategorii) */
.cats-btn { display: inline-flex; align-items: center; gap: 7px; flex: none; height: 38px; padding: 0 16px; background: var(--accent); color: #fff; border: none; border-radius: 8px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; }
.cats-btn:hover, .cats-btn.on { background: var(--accent-dark, #A81C12); }
.cats-btn svg { color: #fff; }
.cats-ov { position: fixed; inset: 0; z-index: 40; }
.cats-mega { position: absolute; top: calc(100% + 6px); left: var(--gutter, 16px); width: min(1080px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--border-1); border-radius: 12px; box-shadow: 0 22px 50px rgba(0,0,0,.18); z-index: 50; overflow: hidden; }
.cm-wrap { display: flex; align-items: stretch; max-height: 76vh; }
.cm-side { flex: none; width: 320px; background: var(--bg-2, #f7f6f3); border-right: 1px solid var(--border-1); padding: 8px; overflow-y: auto; }
.cm-cat { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; color: var(--fg-1); text-decoration: none; font-size: 14px; font-weight: 600; cursor: pointer; }
.cm-cat svg:first-child { color: var(--accent); flex: none; }
.cm-ico { height: 28px; width: auto; flex: none; display: block; object-fit: contain; }
/* Iconiță din admin (category_meta) randată ca mască colorată în meniu (categorii fără webp dedicat). */
.cm-mask { width: 28px; height: 28px; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.cm-cat span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-cat svg:last-child { color: var(--fg-3); flex: none; }
.cm-cat:hover, .cm-cat.on { background: #fff; color: var(--accent); box-shadow: 0 1px 6px rgba(0,0,0,.06); }
.cm-cat.on svg:last-child { color: var(--accent); }
.cm-panel { flex: 1; min-width: 0; padding: 18px 22px; overflow-y: auto; }
.cm-panel-hd { font-family: var(--font-serif); font-weight: 800; font-size: 18px; color: var(--fg-1); margin-bottom: 14px; }
.cm-subs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 16px; }
.cm-sub2 { display: flex; align-items: center; gap: 9px; padding: 8px 8px; border-radius: 7px; color: var(--fg-2); text-decoration: none; font-size: 13.5px; }
.cm-sub2 svg { color: var(--accent); flex: none; opacity: .8; }
.cm-sub2:hover { background: var(--bg-2, #f7f6f3); color: var(--accent); }
.cm-empty { color: var(--fg-3); font-size: 13.5px; padding: 8px; }
@media (max-width: 1024px) { .cm-subs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .cats-mega { left: 8px; right: 8px; width: auto; } .cm-side { width: 180px; } .cm-subs { grid-template-columns: 1fr; } .cats-btn span { display: none; } }
.masthead .login-logo { flex: none; text-decoration: none; color: var(--fg-1); }
/* în bara de sus: logo, pastila B2B și butonul Categorii pe aceeași axă verticală (fără decalajul de pe login) */
.masthead .b2b-tag { transform: none; }
.searchbar { flex: 1; display: flex; position: relative; max-width: 460px; }
.searchbar svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--fg-3); pointer-events: none; }
.searchbar input {
  width: 100%; padding: 7px 12px 7px 38px; font-size: 14px;
  background: #fff; border: 1px solid var(--border-2); border-radius: var(--r-0);
}
.searchbar input:focus { outline: none; border-color: var(--fg-1); }
/* Buton „Catalog complet” lângă căutare (v3.12; din v3.13 în aceeași filă — catalogul are „Înapoi”).
   Sub 1180px rămâne „Catalog”, sub 1024px doar iconița — altfel căutarea ar rămâne prea îngustă. */
.catalog-btn {
  display: inline-flex; align-items: center; gap: 7px; flex: none; height: 34px; padding: 0 14px;
  background: #fff; color: var(--fg-1); border: 1px solid var(--border-2); border-radius: 8px;
  font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap;
  transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.catalog-btn svg { color: var(--accent); flex: none; }
.catalog-btn:hover { border-color: var(--accent); color: var(--accent); }
.catalog-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 1180px) { .catalog-btn .cb-x { display: none; } }
@media (max-width: 1024px) { .catalog-btn { padding: 0 11px; } .catalog-btn .cb-l { display: none; } }
/* dropdown căutare live (as-you-type) */
.search-dd { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--border-2); box-shadow: 0 14px 34px rgba(0,0,0,.14); z-index: 60; max-height: 72vh; overflow-y: auto; }
.search-dd svg { position: static; transform: none; pointer-events: auto; }
.sdd-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; background: none; border: none; border-bottom: 1px solid var(--border-1); cursor: pointer; font: inherit; text-align: left; color: inherit; }
.sdd-item:hover { background: var(--bg-2, #f6f5f2); }
.sdd-img { width: 40px; height: 40px; flex: none; border: 1px solid var(--border-1); display: flex; align-items: center; justify-content: center; overflow: hidden; background: #fff; color: var(--fg-3); }
.sdd-img img { width: 100%; height: 100%; object-fit: contain; padding: 3px; box-sizing: border-box; }
.sdd-info { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.sdd-name { font-size: 13px; color: var(--fg-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sdd-sku { font-size: 11.5px; color: var(--fg-3); }
.sdd-price { font-size: 13px; font-weight: 700; color: var(--fg-1); white-space: nowrap; }
.sdd-all { display: block; width: 100%; padding: 10px 12px; background: var(--bg-2, #f6f5f2); border: none; cursor: pointer; font: inherit; font-weight: 700; font-size: 13px; color: var(--accent); text-align: center; }
.sdd-all:hover { filter: brightness(.97); }
.sdd-empty { padding: 16px 12px; font-size: 13px; color: var(--fg-3); text-align: center; }
.mast-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }

/* firm button (cont firmă, lângă clopoțel) */
.firmbtn {
  display: flex; align-items: center; gap: 7px; background: none; border: 1px solid transparent;
  padding: 6px 8px; color: var(--fg-1); transition: background var(--dur-fast) var(--ease-out);
}
.firmbtn .fname { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.firmbtn > svg { color: var(--fg-3); }
.firmbtn:hover { background: var(--tr-n-100); }

/* buton cont = pastilă cu chenar rotunjit: omuleț + numele firmei */
.acctbtn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 13px 0 11px; max-width: 240px;
  background: transparent; border: 1px solid var(--border-2); border-radius: var(--r-full);
  color: var(--fg-1); font: inherit; cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.acctbtn:hover, .acctbtn.on { background: var(--tr-n-100); border-color: var(--fg-3); }
.acctbtn > svg { color: var(--accent); flex: none; }
.acctbtn-name { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* hero banner (v2) */
.hero-banner { margin-bottom: var(--sp-5); border: 1px solid var(--border-1); background: #fff; }
.hero-banner image-slot { display: block; width: 100%; height: 240px; }
/* banner homepage configurat din admin (DD.hero) */
.hb { position: relative; width: 100%; min-height: 240px; display: flex; overflow: hidden; }
/* banner-imagine: înălțimea vine din proporția imaginii (height:auto) → fără benzi albe la orice zoom/rezoluție */
.hb.hb-img { display: block; min-height: 0; }
.hb-bg { display: block; width: 100%; height: auto; }
.hb.hb-img .hb-in { position: absolute; top: 50%; left: 0; transform: translateY(-50%); }
.hb-ov { position: absolute; inset: 0; z-index: 1; }
.hb-in { position: relative; z-index: 2; align-self: center; padding: 30px 44px; max-width: 640px; }
.hb.light .hb-in { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.hb.dark .hb-in { color: var(--fg-1); }
.hb-kick { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .95; margin-bottom: 10px; }
.hb-title { font-family: var(--font-serif); font-size: 32px; line-height: 1.1; margin: 0 0 18px; font-weight: 800; }
.hb-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff !important; padding: 11px 22px; font-weight: 700; font-size: 14px; text-decoration: none; text-shadow: none; }
.hb-cta:hover { background: var(--accent-dark, #A81C12); }
@media (max-width: 640px) { .hb-in { padding: 22px; } .hb-title { font-size: 24px; } }

/* avatar + dropdowns */
.avatarbtn {
  display: flex; align-items: center; gap: 9px; background: none; border: 1px solid transparent;
  padding: 4px 6px 4px 4px; border-radius: var(--r-full); transition: background var(--dur-fast) var(--ease-out);
}
.avatarbtn:hover { background: var(--tr-n-100); }
.avatar {
  width: 28px; height: 28px; border-radius: var(--r-full); background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none;
}
.avatarbtn .who { text-align: left; line-height: 1.15; }
.avatarbtn .who .n { font-size: 13px; font-weight: 700; color: var(--fg-1); }
.avatarbtn .who .c { font-size: 11px; color: var(--fg-3); }

.dd-anchor { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; width: 300px; background: #fff;
  border: 1px solid var(--border-1); box-shadow: var(--shadow-3); z-index: 60;
  animation: dd-in var(--dur-med) var(--ease-out);
}
@keyframes dd-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dropdown { animation: none; } }

/* specialist card (referință Telesystem) */
.spec-card { text-align: center; }
.spec-card .hd {
  font-family: var(--font-serif); font-weight: 700; font-size: 17px; padding: 16px 16px 4px;
}
.spec-photo {
  width: 96px; height: 96px; border-radius: var(--r-full); margin: 12px auto 4px;
  background: var(--tr-cream); border: 1px solid var(--border-1);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  font-family: var(--font-serif); font-weight: 900; font-size: 30px; color: var(--accent);
}
.spec-card .nm { font-size: 15px; font-weight: 700; padding: 10px 16px 2px; }
.spec-card .rl { font-size: 12px; color: var(--fg-3); padding-bottom: 10px; }
.spec-photo img { width: 100%; height: 100%; object-fit: cover; }
.spec-empty { padding: 18px 16px 16px; font-size: 13px; color: var(--fg-3); }
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-full); }
.spec-line {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13.5px; color: var(--fg-2); padding: 11px 16px; border-top: 1px solid var(--border-1);
  text-decoration: none;
}
a.spec-line:hover { color: var(--accent-dark); background: var(--tr-n-50); }
.spec-line svg { color: var(--fg-3); flex: none; }
.spec-sub { background: var(--bg-2); border-top: 1px solid var(--border-1); padding: 12px 16px 4px; }
.spec-sub .hd2 { font-family: var(--font-serif); font-weight: 700; font-size: 15px; }
.spec-sub .ctr { font-size: 13px; color: var(--fg-2); padding: 2px 0 8px; }
.spec-actions { display: flex; border-top: 1px solid var(--border-1); }
.spec-actions button {
  flex: 1; background: none; border: none; padding: 12px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-2);
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.spec-actions button:hover { background: var(--fg-1); color: var(--fg-inv); }
.spec-actions button + button { border-left: 1px solid var(--border-1); }

/* account dropdown (cont firmă) */
.acct-dd { width: 300px; }
.acct-dd .acct-head { display: flex; align-items: center; gap: 12px; text-align: left; padding: 16px 18px 14px; }
.acct-dd .acct-photo {
  width: 46px; height: 46px; border-radius: var(--r-full); background: var(--tr-n-100);
  color: var(--fg-3); display: flex; align-items: center; justify-content: center;
  margin: 0; flex: none; border: 1px solid var(--border-1);
}
.acct-id { min-width: 0; flex: 1; }
.acct-firm { font-size: 14px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; color: var(--fg-1); line-height: 1.25; }
.acct-meta { font-size: 11.5px; color: var(--fg-3); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px; font-size: 14px;
  font-weight: 500; color: var(--fg-1); text-decoration: none; border-top: 1px solid var(--border-1);
}
.acct-row svg { color: var(--fg-3); flex: none; }
.acct-row:hover { background: var(--tr-n-50); color: var(--accent-dark); }
.acct-row .pill {
  margin-left: auto; min-width: 26px; height: 19px; padding: 0 8px; border-radius: var(--r-full);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: #fff;
}
.pill.blue { background: var(--tr-blue); }
.pill.red { background: var(--accent); }
.pill.mut, .pill.zero { background: var(--tr-n-200); color: var(--fg-2); }
.acct-sep { height: 5px; background: var(--bg-2, #f7f6f3); }
.acct-row.out { color: var(--fg-2); }
.acct-row.out:hover { background: var(--fg-1); color: var(--fg-inv); }
.acct-row.out:hover svg { color: inherit; }

/* notifications dropdown */
.notif-dd { width: 340px; }
.notif-dd .hd { font-family: var(--font-serif); font-weight: 700; font-size: 16px; padding: 14px 16px 10px; border-bottom: 1px solid var(--border-1); text-align: left; }
.notif-item { display: flex; gap: 10px; padding: 12px 16px; font-size: 13.5px; color: var(--fg-2); border-bottom: 1px solid var(--border-1); text-align: left; line-height: 1.45; }
.notif-item:last-child { border-bottom: none; }
.notif-item svg { flex: none; margin-top: 2px; }
.notif-item.alert svg { color: var(--accent); }
.notif-item.info svg, .notif-item.msg svg { color: var(--fg-3); }
.notif-empty { padding: 22px 16px; text-align: center; color: var(--fg-3); font-size: 13px; }

/* category nav */
.catnav { background: var(--bg-1); border-bottom: 2px solid var(--border-strong); position: sticky; top: 0; z-index: 50; }
.catnav .container { display: flex; align-items: stretch; }
.catnav-all {
  display: flex; align-items: center; gap: 9px; background: var(--fg-1); color: var(--fg-inv);
  border: none; padding: 0 18px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.catnav-all:hover, .catnav-all.open { background: var(--accent); }
.catnav ul { display: flex; list-style: none; margin: 0; padding: 0; flex: 1; overflow-x: auto; scrollbar-width: none; }
.catnav ul::-webkit-scrollbar { display: none; }
.catnav li { position: relative; }
.catnav li > a {
  display: flex; align-items: center; gap: 4px; height: 46px; padding: 0 13px;
  font-size: 13px; font-weight: 600; color: var(--fg-1); text-decoration: none; position: relative; white-space: nowrap;
}
.catnav li > a::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-med) var(--ease-out);
}
.catnav li > a:hover::after, .catnav li.open > a::after { transform: scaleX(1); }
.catnav li.open > a { color: var(--accent-dark); }
.cat-dd {
  position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff;
  border: 1px solid var(--border-1); border-top: 2px solid var(--border-strong);
  box-shadow: var(--shadow-3); z-index: 55; padding: 8px 0;
  animation: dd-in var(--dur-med) var(--ease-out);
}
.cat-dd a {
  display: block; padding: 9px 18px; font-size: 13.5px; color: var(--fg-2); text-decoration: none;
}
.cat-dd a:hover { background: var(--tr-n-50); color: var(--accent-dark); }
.cat-dd .all { font-weight: 700; color: var(--fg-1); border-top: 1px solid var(--border-1); margin-top: 6px; padding-top: 12px; }

/* mega menu (toate produsele) */
.mega {
  position: absolute; left: 0; right: 0; top: 100%; background: #fff;
  border-bottom: 1px solid var(--border-1); box-shadow: var(--shadow-3); z-index: 54;
  animation: dd-in var(--dur-med) var(--ease-out);
}
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 var(--sp-6); padding: var(--sp-6) var(--gutter); max-width: var(--container); margin: 0 auto; }
.mega-col { padding-bottom: var(--sp-4); }
.mega-col .mc-hd { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--border-strong); margin-bottom: 8px; }
.mega-col .mc-hd svg { color: var(--accent); }
.mega-col a { display: block; font-size: 13px; color: var(--fg-2); text-decoration: none; padding: 5px 0; }
.mega-col a:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }

/* ============ dashboard ============ */
.dash { padding: var(--sp-6) 0 var(--sp-8); }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-5); margin-bottom: var(--sp-5); flex-wrap: wrap; }
.dash-head h1 {
  font-family: var(--font-serif); font-weight: var(--w-black); font-size: clamp(30px, 3vw, 42px);
  letter-spacing: -0.02em; line-height: 1.02; margin: 6px 0 0;
}
.dash-head .meta { font-size: 13.5px; color: var(--fg-3); margin-top: 8px; display: flex; gap: 14px; flex-wrap: wrap; }
.dash-head .meta b { color: var(--fg-2); font-weight: 600; }

.dash-head .qo-card { flex: 0 1 520px; min-width: 360px; }

.promo {
  background: var(--accent); color: #fff; display: flex; align-items: center; gap: 16px;
  padding: 14px 20px; margin-bottom: var(--sp-6);
}
.promo .pe { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; border: 1px solid rgba(255,255,255,0.5); padding: 4px 8px; flex: none; }
.promo .pt { font-family: var(--font-serif); font-size: 17px; font-weight: 600; flex: 1; }
.promo .pt em { font-style: italic; }
.promo a { color: #fff; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.promo .pclose { background: none; border: none; color: rgba(255,255,255,0.7); display: flex; padding: 4px; }
.promo .pclose:hover { color: #fff; }

/* category tiles (v3) — rând de dale colorate pătrate */
.cat-tiles {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  grid-auto-rows: 1fr; gap: 6px; margin-bottom: var(--sp-6);
}
.ctile {
  position: relative; min-height: 122px; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: 0; padding: 14px 10px; color: #fff; text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.ctile:hover { transform: scale(1.06); z-index: 2; box-shadow: 0 10px 26px rgba(0,0,0,.24); }
.ctile, .ctile:hover, .ctile:focus, .ctile:hover .ct-label, .ctile:hover .ct-icon { color: #fff; }
.ctile .ct-icon {
  flex: 1; display: flex; align-items: flex-start; justify-content: center;
  color: #fff; padding-top: 4px;
}
.ctile .ct-icon svg { width: clamp(28px, 3.4vw, 46px); height: auto; }
.ctile .ct-img { width: clamp(40px, 4.6vw, 64px); height: auto; object-fit: contain; }
/* Iconiță din admin ca mască ALBĂ pe dala colorată (categorii fără webp dedicat). */
.ctile .ct-mask { display: inline-block; height: clamp(40px, 4.6vw, 64px); background: #fff; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.ctile .ct-label {
  font-size: clamp(11px, 1vw, 14px); font-weight: 600; line-height: 1.2;
  text-align: center; text-wrap: balance;
}
/* dalele umplu mereu lățimea (auto-fit colapsează pistele goale la ștergerea unei categorii) */
@media (max-width: 420px) {
  .cat-tiles { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
}

/* ============ category page (v3) ============ */
.catpage { padding: var(--sp-5) 0 var(--sp-8); }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; font-size: 13px; color: var(--fg-3); margin-bottom: 14px; min-width: 0; }
.crumbs a { color: var(--fg-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.crumbs .here { color: var(--fg-1); font-weight: 600; }
.crumbs .crumb-prod { min-width: 0; max-width: 100%; overflow-wrap: anywhere; font-weight: 500; }
.catpage-title { display: flex; align-items: center; gap: 14px; border-top: 2px solid var(--border-strong); padding-top: 16px; margin-bottom: var(--sp-5); }
.cpt-badge { height: 46px; width: auto; display: flex; align-items: center; justify-content: center; color: var(--accent); flex: none; }
.cpt-badge img { height: 46px; width: auto; object-fit: contain; }
.catpage-title h1, .catpage-title .cpt-h1 { font-family: var(--font-serif); font-weight: var(--w-black); font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -0.02em; margin: 0; }
.catpage-title .back-link { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--fg-2); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.catpage-title .back-link:hover { color: var(--accent-dark); }

.catpage-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--sp-5); align-items: start; }
/* Coloana de produse nu se lățește după conținut (bara de sortare / grila) → fără scroll lateral la
   nicio lățime (pe tabletă 761–1080 px rămăsese 25 px de scroll). */
.catpage-grid > * { min-width: 0; }

/* ── stânga: filtre (subcategorii + producători) ── */
.cat-side { display: flex; flex-direction: column; gap: var(--sp-4); }
.side-box { border: 1px solid var(--border-1); background: #fff; }
.side-hd { font-family: var(--font-serif); font-weight: 700; font-size: 14px; padding: 11px 14px; border-bottom: 1px solid var(--border-1); }
.side-sub { display: flex; align-items: center; gap: 9px; padding: 8px 12px; text-decoration: none; color: var(--fg-2); font-size: 13px; font-weight: 600; line-height: 1.25; border-bottom: 1px solid var(--border-1); transition: background var(--dur-fast), color var(--dur-fast); }
.side-sub:last-child { border-bottom: none; }
.side-sub svg { flex: none; color: var(--fg-3); }
.side-sub:hover { background: var(--tr-n-50); color: var(--fg-1); }
.side-sub.on { background: var(--accent); color: #fff; }
.side-sub.on svg { color: #fff; }
.brand-checks { display: flex; flex-direction: column; padding: 6px 0; max-height: 360px; overflow-y: auto; }
.bchk { display: flex; align-items: center; gap: 8px; padding: 6px 14px; font-size: 13px; color: var(--fg-2); cursor: pointer; }
.bchk:hover { background: var(--tr-n-50); }
.bchk input { width: 15px; height: 15px; accent-color: var(--accent); flex: none; }
.bchk-clear { display: block; padding: 9px 14px; font-size: 12px; font-weight: 700; color: var(--accent); text-decoration: none; border-top: 1px solid var(--border-1); }

/* ── dreapta: toolbar + listă produse ── */
.cat-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--border-1); }
.cat-toolbar.foot { border-bottom: none; border-top: 1px solid var(--border-1); margin-top: 4px; justify-content: center; }
.search-count { font-size: 14px; color: var(--fg-2); font-weight: 600; }
.ct-sort { font-size: 13px; color: var(--fg-3); display: flex; align-items: center; gap: 8px; margin-left: auto; flex-wrap: wrap; row-gap: 8px; justify-content: flex-end; }
.ct-sort select { font: inherit; font-size: 13px; padding: 6px 10px; border: 1px solid var(--border-1); background: #fff; color: var(--fg-1); }
.pager { display: flex; align-items: center; gap: 4px; }
.pager button { min-width: 32px; height: 32px; padding: 0 7px; border: 1px solid var(--border-1); background: #fff; color: var(--fg-1); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.pager button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.pager button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager button:disabled { opacity: .4; cursor: default; }
.pager .dots { padding: 0 4px; color: var(--fg-3); }
.cat-loading, .cat-empty { padding: 40px 0; text-align: center; color: var(--fg-3); font-size: 14px; }

.prod-list { display: flex; flex-direction: column; }

/* vedere grilă (carduri) */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pcard { border: 1px solid var(--border-1); background: #fff; display: flex; flex-direction: column; }
.pc-img { height: 180px; border-bottom: 1px solid var(--border-1); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--fg-3); text-decoration: none; }
.pc-img img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 12px; box-sizing: border-box; }
.pc-body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.pc-brand { font-size: 11px; font-weight: 800; color: var(--fg-2); text-transform: uppercase; letter-spacing: .03em; min-height: 14px; }
.pc-name { font-size: 13.5px; font-weight: 700; color: var(--fg-1); text-decoration: none; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 35px; }
.pc-name:hover { color: var(--accent); }
.pc-sku { font-size: 11.5px; color: var(--fg-3); min-height: 15px; }
.pc-price { font-size: 19px; color: var(--fg-1); line-height: 1; margin-top: 6px; }
.pc-price b { font-weight: 800; }
.pc-price .cur { font-size: 12px; font-weight: 600; }
.pc-price s { font-size: 12px; color: var(--fg-3); font-weight: 400; margin-left: 5px; }
.pc-vat { font-size: 11px; color: var(--fg-3); }
.pcard .pstock { font-size: 11.5px; }
.pc-cart { width: 100%; justify-content: center; height: 36px; margin-top: 8px; }
@media (max-width: 1200px) { .prod-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .prod-grid { grid-template-columns: repeat(2, 1fr); } }
/* comutator listă/grilă */
.view-tg { display: inline-flex; border: 1px solid var(--border-1); }
.view-tg button { width: 34px; height: 34px; border: none; background: #fff; color: var(--fg-3); cursor: pointer; display: grid; place-items: center; }
.view-tg button + button { border-left: 1px solid var(--border-1); }
.view-tg button.on { background: var(--accent); color: #fff; }

/* ───────── coș (drawer lateral) ───────── */
.cart-ov { position: fixed; inset: 0; background: rgba(15,20,30,.5); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 96; }
.cart-ov.show { opacity: 1; pointer-events: auto; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(92vw, 400px); background: #fff; z-index: 97; transform: translateX(102%); transition: transform .24s ease; display: flex; flex-direction: column; box-shadow: -8px 0 30px rgba(0,0,0,.18); }
.cart-drawer.show { transform: translateX(0); }
.cd-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid var(--border-1); flex: none; }
.cd-head b { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; }
.cd-x { width: 34px; height: 34px; border: none; background: none; cursor: pointer; color: var(--fg-2); display: grid; place-items: center; }
.cd-items { flex: 1; overflow-y: auto; padding: 6px 14px; }
.cd-item { display: grid; grid-template-columns: 54px 1fr auto; gap: 10px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--border-1); }
.cd-img { width: 54px; height: 54px; border: 1px solid var(--border-1); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--fg-3); }
.cd-img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; box-sizing: border-box; }
.cd-info { min-width: 0; }
.cd-name { font-size: 12.5px; font-weight: 600; color: var(--fg-1); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cd-sku { font-size: 11px; color: var(--fg-3); margin: 2px 0; }
.cd-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.cd-price { font-size: 13.5px; font-weight: 800; color: var(--fg-1); }
.cd-rm { width: 26px; height: 26px; border: none; background: none; color: var(--fg-3); cursor: pointer; display: grid; place-items: center; }
.cd-rm:hover { color: var(--accent); }
.qtybox.sm button { width: 24px; height: 26px; font-size: 14px; }
.qtybox.sm input { width: 28px; height: 26px; font-size: 12px; }
.cd-foot { flex: none; padding: 14px 18px 18px; border-top: 1px solid var(--border-1); }
.cd-sub { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 14px; }
.cd-sub em { color: var(--fg-3); font-style: normal; font-size: 12px; }
.cd-sub b { font-size: 17px; }
.cd-checkout { width: 100%; justify-content: center; height: 42px; font-size: 14px; }
.cd-cont { width: 100%; margin-top: 8px; background: none; border: none; color: var(--fg-2); font: inherit; font-size: 13px; cursor: pointer; padding: 6px; }
.cd-cont:hover { color: var(--accent); }
.cd-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--fg-3); padding: 30px; }

/* ───────── checkout ───────── */
.ckt-title { font-family: var(--font-serif); font-size: 26px; margin: 6px 0 18px; }
.ckt-grid { display: grid; grid-template-columns: minmax(0,3fr) minmax(0,2fr); gap: var(--sp-6); align-items: start; }
.ckt-main { display: flex; flex-direction: column; gap: var(--sp-4); min-width: 0; }
.ckt-box { border: 1px solid var(--border-1); background: #fff; padding: 16px 18px; }
.ckt-box h2 { font-size: 15px; margin: 0 0 14px; }
.ckt-acc { padding: 0; }
.ckt-acc-hd { width: 100%; display: flex; align-items: center; gap: 12px; background: none; border: none; padding: 15px 18px; cursor: pointer; text-align: left; font: inherit; }
.ckt-acc-hd h2 { margin: 0; flex: none; }
.ckt-acc-sum { flex: 1; min-width: 0; color: var(--fg-3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ckt-acc-chev { margin-left: auto; flex: none; color: var(--fg-3); transition: transform .18s; }
.ckt-acc.open .ckt-acc-chev { transform: rotate(90deg); }
.ckt-acc.open .ckt-acc-hd { border-bottom: 1px solid var(--border-1); }
.ckt-acc-body { padding: 16px 18px; }
.ckt-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ckt-row:last-child { margin-bottom: 0; }
.ckt-f { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 130px; font-size: 12.5px; color: var(--fg-2); }
.ckt-f input, .ckt-f textarea { border: 1px solid var(--border-1); padding: 9px 11px; font: inherit; font-size: 13.5px; color: var(--fg-1); background: #fff; }
.ckt-f input:focus, .ckt-f textarea:focus { outline: none; border-color: var(--accent); }
.ckt-opts { display: flex; gap: 8px; flex-wrap: nowrap; margin-bottom: 12px; }
.ckt-opt { flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--border-1); padding: 9px 8px; cursor: pointer; font-size: 12px; text-align: center; line-height: 1.2; }
.ckt-opt input { flex: none; }
.ckt-opt.on { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.ckt-sum { border: 1px solid var(--border-1); background: #fff; padding: 18px 22px; }
.ckt-sum h2 { font-size: 16px; margin: 0 0 14px; }
.ckt-items { max-height: 420px; overflow-y: auto; margin-bottom: 12px; }
.ckt-loc-act { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.ckt-lnk { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; padding: 0; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--accent); }
.ckt-lnk:hover { text-decoration: underline; }
.ckt-lnk:disabled { opacity: .5; cursor: default; }
.ckt-loc-msg { font-size: 12px; color: var(--fg-3); }
.ckt-it { display: grid; grid-template-columns: 40px auto 1fr auto; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border-1); font-size: 12.5px; align-items: center; }
.ckt-it-img { width: 40px; height: 40px; border: 1px solid var(--border-1); border-radius: 6px; background: #fff; display: grid; place-items: center; overflow: hidden; color: var(--fg-3); }
.ckt-it-img img { width: 100%; height: 100%; object-fit: contain; }
.ckt-it-q { color: var(--fg-3); }
.ckt-it-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ckt-it-p { font-weight: 700; }
.ckt-tot { display: flex; align-items: center; justify-content: space-between; padding-top: 6px; font-size: 14px; }
.ckt-tot em { color: var(--fg-3); font-style: normal; font-size: 12px; }
.ckt-tot b { font-size: 18px; }
.ckt-tot-sm { padding-top: 3px; font-size: 13px; color: var(--fg-2); }
.ckt-tot-sm b { font-size: 14px; font-weight: 600; }
.ckt-submit { width: 100%; justify-content: center; height: 44px; font-size: 14px; margin-top: 14px; }
.ckt-err { background: #fdecea; color: #b3261e; border: 1px solid #f5c6c2; padding: 9px 11px; font-size: 12.5px; margin-top: 12px; }
.ckt-note { font-size: 11.5px; color: var(--fg-3); margin-top: 10px; text-align: center; }
.ckt-done { text-align: center; padding: 50px 20px; max-width: 480px; margin: 0 auto; }
.ckt-done-ic { width: 76px; height: 76px; border-radius: 50%; background: #e6f6ec; color: #1e8a44; display: grid; place-items: center; margin: 0 auto 18px; }
.ckt-done h1 { font-family: var(--font-serif); font-size: 26px; margin-bottom: 10px; }
.ckt-done p { color: var(--fg-2); line-height: 1.55; margin-bottom: 20px; }
@media (max-width: 860px) { .ckt-grid { grid-template-columns: 1fr; } .ckt-sum { position: static; } }

/* ───────── cont + comenzi ───────── */
.boot-screen { min-height: 60vh; display: grid; place-items: center; color: var(--fg-3); font-size: 14px; }
.acct-head { display: flex; align-items: center; gap: 14px; margin: 6px 0 8px; }
.acct .acct-photo { width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft, #f2f0eb); color: var(--accent); display: grid; place-items: center; flex: none; }
.acct-head h1 { font-family: var(--font-serif); font-size: 26px; margin: 0; }
.acct-sub { font-size: 13px; color: var(--fg-3); }
.acct-h2 { font-size: 16px; margin: 22px 0 12px; }
.acct-intro { color: var(--fg-3); font-size: 13.5px; margin: 4px 0 22px; line-height: 1.5; }
.ord-list { display: flex; flex-direction: column; gap: 10px; }
.ord { border: 1px solid var(--border-1); background: #fff; }
.ord-head { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 18px; background: none; border: none; cursor: pointer; font: inherit; text-align: left; color: inherit; }
.ord-no { font-weight: 800; }
.ord-date { color: var(--fg-3); font-size: 13px; }
.ord-badge { font-size: 11.5px; font-weight: 700; padding: 3px 9px; }
.ord-badge.st-plasata { background: #eef2f7; color: #44546a; }
.ord-badge.st-procesare { background: #fff4e0; color: #9a6700; }
.ord-badge.st-expediata { background: #e7f0ff; color: #1e5fae; }
.ord-badge.st-livrata { background: #e6f6ec; color: #1e8a44; }
.ord-badge.st-anulata { background: #f3f3f3; color: #888; }
.ord-total { margin-left: auto; }
.ord-body { padding: 4px 18px 18px; border-top: 1px solid var(--border-1); }
.ord-track { display: flex; gap: 4px; margin: 16px 0 18px; }
.ot-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.ot-step::before { content: ''; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: var(--border-1); z-index: 0; }
.ot-step:first-child::before { display: none; }
.ot-step.done::before { background: var(--accent); }
.ot-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border-1); background: #fff; display: grid; place-items: center; color: #fff; position: relative; z-index: 1; }
.ot-step.done .ot-dot { background: var(--accent); border-color: var(--accent); }
.ot-step.active .ot-dot { box-shadow: 0 0 0 4px var(--accent-soft, #f2f0eb); }
.ot-lbl { font-size: 11.5px; color: var(--fg-3); font-weight: 600; }
.ot-step.done .ot-lbl { color: var(--fg-1); }
.ord-cancel { margin: 14px 0; color: #b3261e; font-weight: 600; font-size: 13.5px; }
.ord-lines { display: flex; flex-direction: column; margin-bottom: 14px; }
.ord-line { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border-1); font-size: 13px; }
.ol-img { width: 40px; height: 40px; border: 1px solid var(--border-1); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--fg-3); }
.ol-img img { width: 100%; height: 100%; object-fit: contain; padding: 3px; box-sizing: border-box; }
.ol-name { min-width: 0; }
.ol-name em { display: block; font-style: normal; color: var(--fg-3); font-size: 12px; margin-top: 2px; }
.ol-tot { font-weight: 700; }
.ord-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 13px; }
.om-row { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-1); }
.om-row .mut { color: var(--fg-3); }
.prow { display: grid; grid-template-columns: 116px 1fr 240px; gap: 16px; align-items: center; padding: 18px 4px; border-bottom: 1px solid var(--border-1); }
.prow-img { width: 116px; height: 116px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-1); background: #fff; color: var(--fg-3); overflow: hidden; }
.prow-img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; box-sizing: border-box; }
.prow-info { min-width: 0; }
.prow-brand { display: block; font-size: 11px; font-weight: 800; color: var(--fg-2); text-transform: uppercase; letter-spacing: .03em; min-height: 14px; }
.prow-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 38px; margin: 2px 0; font-size: 14.5px; font-weight: 700; color: var(--fg-1); text-decoration: none; line-height: 1.3; }
.prow-name:hover { color: var(--accent); }
.prow-meta { display: flex; align-items: center; gap: 10px; margin-top: 5px; font-size: 12px; }
.prow-sku { display: block; font-size: 12px; color: var(--fg-3); min-height: 16px; }
.prow-desc { margin-top: 6px; font-size: 12.5px; color: var(--fg-3); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prow-buy { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.prow-price { font-size: 20px; color: var(--fg-1); line-height: 1; }
.prow-price b { font-weight: 800; }
.prow-price .cur { font-size: 13px; font-weight: 600; }
.prow-price s { font-size: 13px; color: var(--fg-3); font-weight: 400; margin-left: 6px; }
.prow-vat { font-size: 11.5px; color: var(--fg-3); }
.pstock { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.pstock i { width: 8px; height: 8px; border-radius: 50%; }
.pstock.in { color: #1e8a44; } .pstock.in i { background: #1e8a44; }
.pstock.out { color: var(--fg-3); } .pstock.out i { background: var(--fg-3); }
.prow-actions { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.qtybox { display: flex; align-items: center; border: 1px solid var(--border-1); }
.qtybox button { width: 28px; height: 32px; border: none; background: #fff; font-size: 16px; color: var(--fg-2); cursor: pointer; }
.qtybox button:hover { background: var(--tr-n-50); }
.qtybox input { width: 36px; height: 32px; border: none; border-left: 1px solid var(--border-1); border-right: 1px solid var(--border-1); text-align: center; font: inherit; font-size: 13px; }
.qtybox button:disabled { opacity: .35; cursor: default; background: #fff; }
/* Câmpul de cantitate comun (C13): mesaj de validare / rotunjire sub căsuță */
/* Mesajul stă DEASUPRA conținutului (absolut): apare la ieșirea din câmp, deci dacă ar împinge layoutul,
   butonul „În coș" s-ar muta între mousedown și mouseup și clicul s-ar pierde. */
.qty-wrap { position: relative; display: inline-flex; flex-direction: column; align-items: flex-start; }
.qty-msg { position: absolute; top: calc(100% + 4px); left: 0; z-index: 5; width: max-content; max-width: min(220px, 80vw); pointer-events: none;
  font-size: 11.5px; line-height: 1.35; color: #8a5a00; background: #fff8e6; border: 1px solid #f0c36d; border-radius: 6px; padding: 4px 7px; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.btn-cart { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: none; background: var(--accent); color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: background var(--dur-fast); }
.btn-cart:hover:not(:disabled) { background: var(--accent-dark); }
.btn-cart:disabled { opacity: .45; cursor: default; }
@media (max-width: 980px) { .prow { grid-template-columns: 76px minmax(0, 1fr); } .prow-img { width: 76px; height: 76px; } .prow-buy { grid-column: 1 / -1; align-items: stretch; flex-direction: row; flex-wrap: wrap; justify-content: space-between; } }

/* pagina de produs (PDP) — meniul din stânga rămâne, asta e doar zona principală */
.pdp-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--fg-2); text-decoration: none; margin-bottom: var(--sp-4); }
.pdp-back:hover { color: var(--accent); }
.pdp-top { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
.pdp-main { width: 100%; height: 360px; border: 1px solid var(--border-1); background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--fg-3); }
.pdp-main img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 14px; box-sizing: border-box; }
.pdp-thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.pdp-thumbs button { width: 62px; height: 62px; border: 1px solid var(--border-1); background: #fff; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pdp-thumbs button.on { border-color: var(--accent); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 4px; box-sizing: border-box; }
.pdp-info { min-width: 0; }
.pdp-brand { font-size: 13px; font-weight: 800; color: var(--fg-2); text-transform: uppercase; letter-spacing: .03em; }
.pdp-name { font-family: var(--font-serif); font-size: 25px; line-height: 1.2; margin: 4px 0 8px; color: var(--fg-1); }
.pdp-sku { font-size: 13px; color: var(--fg-3); margin-bottom: 14px; }
/* rândul Cod (SKU) + Cod furnizor: pe același rând, furnizorul aliniat la dreapta */
.pdp-sku-row { display: flex; align-items: baseline; gap: 16px; margin-bottom: 14px; font-size: 13px; color: var(--fg-3); }
.pdp-sku-row .pdp-sku { margin-bottom: 0; }
.pdp-sku-row .pdp-supcode { margin-left: auto; text-align: right; }
.pdp-price { font-size: 30px; color: var(--fg-1); line-height: 1; }
.pdp-price b { font-weight: 800; }
.pdp-price .cur { font-size: 16px; font-weight: 600; }
.pdp-price s { font-size: 16px; color: var(--fg-3); font-weight: 400; margin-left: 8px; }
.pdp-vat { font-size: 12.5px; color: var(--fg-3); margin-top: 3px; }
/* Preț B2B cu ambele forme (varianta B, 15.10.2026): net mare + „fără TVA”, dedesubt cu TVA + „cu TVA”.
   Grilă pe 2 coloane: prețurile aliniate între ele, etichetele aliniate între ele. */
.pvat { display: grid; grid-template-columns: auto minmax(0, auto); justify-content: start; column-gap: 6px; row-gap: 4px; align-items: baseline; color: var(--fg-1); }
.pvat-n1, .pvat-n2 { line-height: 1; white-space: nowrap; }
.pvat-n1 b { font-weight: 800; }
.pvat-n2 { color: var(--fg-2); }
.pvat-n2 b { font-weight: 700; }
.pvat .cur { font-weight: 600; }
.pvat s { color: var(--fg-3); font-weight: 400; }
.pvat-t { color: var(--fg-3); line-height: 1.15; } /* trece pe 2 rânduri doar dacă blocul nu încape */
.pvat-n2 .pvat-from { display: none; } /* „de la” doar pe primul rând (pe al doilea ieșea ~8px) */
.pvat-from { font-size: .62em; font-weight: 600; color: var(--fg-3); }
.pvat-pc { margin-top: 6px; }
.pvat-pc .pvat-n1 { font-size: 19px; } .pvat-pc .pvat-n1 .cur { font-size: 12px; }
.pvat-pc .pvat-n2 { font-size: 13.5px; } .pvat-pc .pvat-n2 .cur { font-size: 11px; }
.pvat-pc .pvat-t { font-size: 11px; } .pvat-pc s { font-size: 12px; margin-left: 5px; }
.pvat-prow .pvat-n1 { font-size: 20px; } .pvat-prow .pvat-n1 .cur { font-size: 13px; }
.pvat-prow .pvat-n2 { font-size: 14px; } .pvat-prow .pvat-n2 .cur { font-size: 11.5px; }
.pvat-prow .pvat-t { font-size: 11.5px; } .pvat-prow s { font-size: 13px; margin-left: 6px; }
.pvat-pdp { column-gap: 8px; row-gap: 7px; }
.pvat-pdp .pvat-n1 { font-size: 30px; } .pvat-pdp .pvat-n1 .cur { font-size: 16px; }
.pvat-pdp .pvat-n2 { font-size: 18px; } .pvat-pdp .pvat-n2 .cur { font-size: 13px; }
.pvat-pdp .pvat-t { font-size: 12.5px; } .pvat-pdp s { font-size: 16px; margin-left: 8px; }
/* Cardul are acum 2 rânduri de preț: eticheta „Doar la bax…” trece SUB prețuri când nu mai încape
   alături (carduri înguste / telefon), în loc să le acopere; blocul de preț nu se mai îngustează. */
.pc-buyrow { flex-wrap: wrap; row-gap: 6px; }
.pc-priceblock { flex: 0 1 auto; } /* întâi trece eticheta de bax pe rândul următor; abia apoi se îngustează */
/* Butonul „Adaugă în coș” stă mereu jos în card → aliniat pe tot rândul grilei, chiar când eticheta de
   bax coboară sub prețuri pe unele carduri. */
.pc-cart { margin-top: auto; }
.pc-buyrow { margin-bottom: 3px; }
.pcard { min-width: 0; } /* un card cu preț lung nu mai lățește coloana grilei (derulare laterală pe tabletă) */
/* Carduri înguste: telefon și tableta cu 3 coloane lângă meniu (761–940 px, ex. iPad în picioare). */
@media (max-width: 940px) {
  .pvat-pc { column-gap: 4px; }
  .pvat-pc .pvat-n1, .pvat-pc .pvat-n2 { white-space: normal; line-height: 1.1; } /* prețuri foarte lungi pe ecrane foarte înguste */
  .pvat-pc .pvat-n1 { font-size: 16px; } .pvat-pc .pvat-n1 .cur { font-size: 11px; }
  .pvat-pc .pvat-n2 { font-size: 12.5px; } .pvat-pc .pvat-n2 .cur { font-size: 10.5px; }
}
.pdp-info .pstock { margin-top: 12px; }
.pdp-short { font-size: 14px; color: var(--fg-2); line-height: 1.55; margin: 14px 0; }
.pdp-from { font-size: 16px; font-weight: 600; color: var(--fg-3); }
.pdp-vars { margin: 16px 0 4px; }
.pdp-vars-lbl { font-size: 12.5px; font-weight: 700; color: var(--fg-2); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.pdp-vars-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.pdp-var { min-width: 46px; height: 40px; padding: 0 12px; border: 1.5px solid var(--border-1); background: #fff; color: var(--fg-1); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; transition: border-color .12s, background .12s; }
.pdp-var:hover:not(:disabled) { border-color: var(--accent); }
.pdp-var.on { border-color: var(--accent); background: var(--accent); color: #fff; }
.pdp-var.out { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.pdp-actions { display: flex; align-items: center; gap: 10px; margin: 16px 0; }
.pdp-specs { width: 100%; border-collapse: collapse; margin-top: 16px; }
.pdp-specs th, .pdp-specs td { text-align: left; padding: 9px 12px; font-size: 13px; border-bottom: 1px solid var(--border-1); }
.pdp-specs th { width: 38%; color: var(--fg-3); font-weight: 600; background: var(--tr-n-50); }
.pdp-desc { margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--border-1); font-size: 14px; line-height: 1.6; color: var(--fg-2); }
.pdp-desc img { max-width: 100%; height: auto; }
.pdp-desc p { margin: 0 0 12px; }
.pdp-desc p:last-child { margin-bottom: 0; }
.pdp-desc ul, .pdp-desc ol { margin: 0 0 14px; padding-left: 22px; }
.pdp-desc li { margin: 3px 0; }
.pdp-desc strong, .pdp-desc b { color: var(--fg-1); font-weight: 700; }
.pdp-desc h2, .pdp-desc h3, .pdp-desc h4 { font-family: var(--font-serif); color: var(--fg-1); margin: 18px 0 8px; font-size: 17px; line-height: 1.3; }
.pdp-desc a { color: var(--accent); text-decoration: underline; }
@media (max-width: 760px) { .pdp-top { grid-template-columns: 1fr; } .pdp-main { height: 300px; } }

/* brand rail */
.brand-rail { border: 1px solid var(--border-1); background: #fff; }
.brand-rail .rail-hd { font-family: var(--font-serif); font-weight: 700; font-size: 17px; padding: 14px 16px; border-bottom: 2px solid var(--border-strong); }
.brand-list { display: flex; flex-direction: column; }
.brand-tile {
  display: flex; align-items: center; justify-content: flex-start; gap: 10px;
  padding: 10px 14px; text-decoration: none; border-bottom: 1px solid var(--border-1);
  transition: background var(--dur-fast) var(--ease-out);
}
.brand-tile:hover { background: var(--tr-n-50); }
.bt-check { width: 16px; height: 16px; flex: none; border: 1.5px solid var(--border-strong); border-radius: 3px; background: #fff; position: relative; box-sizing: border-box; }
.brand-tile.on .bt-check { background: var(--accent); border-color: var(--accent); }
.brand-tile.on .bt-check::after { content: ''; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.bt-name { font-size: 13.5px; font-weight: 800; letter-spacing: 0.01em; }
.bt-count { display: none; }
.brand-all { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 13px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); text-decoration: none; }
.brand-all:hover { background: var(--accent); color: #fff; }

/* category banner — înălțime din proporția imaginii (height:auto), fără benzi albe la orice zoom/rezoluție */
.cat-banner { position: relative; width: 100%; border: 1px solid var(--border-1); background-color: #fff; margin-bottom: var(--sp-4); overflow: hidden; }
.cat-banner > img { display: block; width: 100%; height: auto; }
.cat-banner .cb-ov { position: absolute; inset: 0; }
.cat-banner image-slot { display: block; width: 100%; height: 300px; }

/* subcategory grid — 6 pe rând */
.subcat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.subcat {
  display: flex; flex-direction: row; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--border-1); padding: 8px 11px; min-height: 52px;
  text-decoration: none; color: var(--fg-1); transition: all var(--dur-fast) var(--ease-out);
}
.subcat:hover { border-color: var(--fg-1); box-shadow: var(--shadow-2); }
.subcat .sc-icon { color: var(--fg-2); flex: none; display: flex; align-items: center; }
.subcat:hover .sc-icon { color: var(--accent); }
.subcat .sc-name { font-size: 12.5px; font-weight: 600; line-height: 1.2; }

.catpage-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid var(--border-1); font-size: 13.5px; color: var(--fg-3); }

@media (max-width: 1080px) {
  .catpage-grid { grid-template-columns: 200px minmax(0, 1fr); }
  .subcat-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-banner image-slot { height: 220px; }
}
@media (max-width: 760px) {
  .catpage-grid { grid-template-columns: 1fr; }
  .subcat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* due alert (v2) */
.due-alert {
  display: flex; align-items: center; gap: 14px; background: #fff;
  border: 1px solid rgba(212,38,26,0.35); border-left: none; border-right: none;
  border-top: 2px solid var(--accent); padding: 14px 18px; margin-bottom: var(--sp-5);
  border-bottom: 1px solid var(--border-1);
}
.due-alert > svg { color: var(--accent); flex: none; }
.due-alert .da-txt { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; color: var(--fg-2); }
.due-alert .da-txt b { color: var(--fg-1); font-size: 14.5px; }
.due-alert .da-btn { margin-left: auto; white-space: nowrap; text-decoration: none; }

/* stat cards */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); margin-bottom: var(--sp-7); }
.stat { background: #fff; border: 1px solid var(--border-1); border-top: 2px solid var(--border-strong); padding: 18px 18px 16px; display: flex; flex-direction: column; }
.stat .s-label { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }
.stat .s-label svg { color: var(--fg-3); }
.stat .s-value { font-family: var(--font-mono); font-size: 27px; font-weight: 700; letter-spacing: -0.01em; margin-top: 10px; }
.stat .s-value .u { font-size: 14px; font-weight: 500; color: var(--fg-3); margin-left: 4px; }
.stat .s-sub { font-size: 12.5px; color: var(--fg-3); margin-top: 4px; }
.stat .s-sub b { color: var(--fg-2); font-weight: 600; }
.stat .s-sub .bad { color: var(--accent-dark); font-weight: 700; }
.stat .s-sub .good { color: var(--score-excellent); font-weight: 700; }
.meter { height: 6px; background: var(--tr-n-100); margin-top: 12px; position: relative; overflow: hidden; }
.meter > i { position: absolute; inset: 0 auto 0 0; background: var(--fg-1); }
.meter > i.warn { background: var(--accent); }
.aging-bars { display: flex; gap: 3px; margin-top: 12px; height: 6px; }
.aging-bars i { display: block; }
.stat .s-foot { margin-top: auto; padding-top: 10px; font-size: 12px; color: var(--fg-3); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }

/* sections */
.sect { margin-bottom: var(--sp-7); }
.sect-hd { display: flex; align-items: baseline; gap: 14px; border-top: 2px solid var(--border-strong); padding-top: 12px; margin-bottom: var(--sp-4); }
.sect-hd h2 { font-family: var(--font-serif); font-weight: 600; font-size: 24px; letter-spacing: -0.01em; margin: 0; }
.sect-hd .cnt { font-family: var(--font-mono); font-size: 13px; color: var(--fg-3); }
.sect-hd .more { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; display: inline-flex; gap: 6px; align-items: center; }
.sect-hd .more:hover { color: var(--accent-dark); }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
/* Tabelele din prima pagină (min. 460 px, cu scroll propriu) lățeau coloana → scroll lateral pe telefon. */
.two-col > * { min-width: 0; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border-1); }
.tbl th {
  text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-3); padding: 10px var(--row-pad); border-bottom: 2px solid var(--border-strong); white-space: nowrap;
}
/* înălțime de rând FIXĂ → toate tabelele (.tbl) au rânduri identice (Ultimele comenzi == Ultimele facturi) */
.tbl td { padding: 0 var(--row-pad); height: var(--row-h, 46px); font-size: 13.5px; border-bottom: 1px solid var(--border-1); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr { transition: background var(--dur-fast) var(--ease-out); }
.tbl tbody tr:hover { background: var(--tr-n-50); }
.tbl .num { text-align: right; font-family: var(--font-mono); font-size: 13px; white-space: nowrap; }
.tbl .id { font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; }
.tbl .mut { color: var(--fg-3); font-size: 12.5px; white-space: nowrap; }
.tbl .rowact { background: none; border: none; color: var(--fg-3); display: inline-flex; padding: 5px; border-radius: var(--r-full); }
.tbl .rowact:hover { background: var(--fg-1); color: var(--fg-inv); }

.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border: 1px solid; white-space: nowrap;
}
.badge i { width: 6px; height: 6px; border-radius: var(--r-full); background: currentColor; display: block; }
.badge.ok    { color: var(--score-excellent); border-color: rgba(15,122,79,0.35); background: rgba(15,122,79,0.07); }
.badge.warn  { color: #9A6B00; border-color: rgba(200,162,75,0.5); background: rgba(200,162,75,0.1); }
.badge.bad   { color: var(--accent-dark); border-color: rgba(212,38,26,0.35); background: var(--accent-soft); }
.badge.info  { color: var(--tr-blue); border-color: rgba(30,58,138,0.3); background: rgba(30,58,138,0.06); }
.badge.mut   { color: var(--fg-3); border-color: var(--border-2); background: var(--tr-n-50); }
.badge.bad i { animation: live 1.6s ease-in-out infinite; }
@keyframes live { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .badge.bad i { animation: none; } }

/* quick order + frequent */
.qo-card { background: #fff; border: 1px solid var(--border-1); border-top: 2px solid var(--border-strong); padding: 18px; }
.qo-card .qo-hd { display: flex; align-items: center; gap: 10px; font-family: var(--font-serif); font-weight: 600; font-size: 19px; margin-bottom: 4px; }
.qo-card .qo-sub { font-size: 13px; color: var(--fg-3); margin-bottom: 14px; }
.qo-row { display: flex; gap: 8px; }
.qo-row input { padding: 11px 12px; border: 1px solid var(--border-2); border-radius: var(--r-0); font-size: 14px; }
.qo-row input:focus { outline: none; border-color: var(--fg-1); }
.qo-row .sku { flex: 1; font-family: var(--font-mono); font-size: 13px; }
.qo-row .qty { width: 72px; text-align: center; font-family: var(--font-mono); }
.qo-added { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--score-excellent); font-weight: 600; margin-top: 12px; }

.freq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.freq { background: #fff; border: 1px solid var(--border-1); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.freq .f-cat { font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.freq .f-name { font-size: 14px; font-weight: 600; line-height: 1.35; }
.freq .f-meta { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); margin-top: 2px; }
.freq .f-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-1); }
.freq .f-price { font-family: var(--font-mono); font-size: 15px; font-weight: 700; }
.freq .f-price .u { font-size: 11px; color: var(--fg-3); font-weight: 500; }
.freq .btn-ghost { padding: 6px 10px; font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; }

/* footer */
.foot { background: var(--tr-n-950); color: rgba(251,250,247,0.6); margin-top: var(--sp-8); }
.foot .container { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; padding-bottom: 22px; gap: 20px; flex-wrap: wrap; font-size: 12.5px; }
.foot a { color: rgba(251,250,247,0.75); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot nav { display: flex; gap: 18px; }
/* credit discret realizator: după copyright, împinge navigația la dreapta (margin-right:auto) */
.foot .container .madeby { margin-right: auto; margin-left: 20px; color: rgba(251,250,247,0.5); }
.foot .container .madeby span { color: rgba(251,250,247,0.78); font-weight: 600; }
.foot .container .madeby:hover { color: rgba(251,250,247,0.85); text-decoration: none; }
.foot .container .madeby:hover span { color: #fff; }
@media (max-width: 640px) { .foot .container .madeby { margin: 0; order: 3; flex-basis: 100%; } }

/* density tweak */
body[data-density="compact"] { --row-pad: 7px; --row-h: 36px; }

/* responsive */
@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .freq-grid { grid-template-columns: repeat(2, 1fr); }
  .mega-grid { grid-template-columns: repeat(2, 1fr); }
  .avatarbtn .who { display: none; }
  .firmbtn .fname { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
  .acctbtn { max-width: 160px; }
}
@media (max-width: 760px) {
  .login-wrap { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .stats, .freq-grid { grid-template-columns: 1fr; }
  .masthead .container { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; }
  .searchbar { order: 3; max-width: none; flex-basis: 100%; }
}

/* Situație financiară: stări (loading / indisponibil / fără date) + tabel gol */
.fin-note { background: var(--surface, #fff); border: 1px solid var(--border-1, #e7e5e0); border-radius: 12px; padding: 22px 24px; color: var(--fg-2, #5b5750); font-size: 14px; line-height: 1.55; }
.fin-note b { display: block; color: var(--fg-1, #1d1b18); margin-bottom: 4px; font-size: 15px; }
.fin-note.loading { text-align: center; color: var(--fg-3, #8a857c); }
.fin-note-d { display: block; margin-top: 6px; font-size: 12.5px; color: var(--fg-3, #8a857c); }
.fin-empty { padding: 20px; text-align: center; color: var(--fg-3, #8a857c); font-size: 13.5px; }

/* Checkout: selector locație/firmă salvată + hint */
.ckt-f select { width: 100%; padding: 9px 11px; border: 1px solid var(--border-1, #d9d6cf); border-radius: 8px; background: var(--surface, #fff); color: var(--fg-1, #1d1b18); font: inherit; font-size: 14px; }
.ckt-f.ckt-pick { margin-bottom: 12px; }
.ckt-f.ckt-pick select { border-color: var(--accent, #D4261A); }
.ckt-hint { font-size: 12px; color: var(--fg-3, #8a857c); margin: 8px 0 0; }

/* Agendă adrese (cont) */
.addr-book { margin-top: 34px; display: grid; gap: 26px; }
.addr-sec-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.addr-sec-hd .acct-h2 { display: flex; align-items: center; gap: 8px; margin: 0; }
.addr-add { display: inline-flex; align-items: center; gap: 6px; }
.addr-card { display: flex; align-items: flex-start; gap: 12px; background: var(--surface, #fff); border: 1px solid var(--border-1, #e7e5e0); border-radius: 12px; padding: 14px 16px; margin-top: 10px; }
.addr-card.on { border-color: var(--accent, #D4261A); box-shadow: 0 0 0 1px var(--accent, #D4261A); }
.addr-card.editing { display: block; }
.addr-ic { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft, #f7eceb); color: var(--accent, #D4261A); display: grid; place-items: center; }
.addr-body { flex: 1; min-width: 0; }
.addr-badge { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--accent, #D4261A); background: var(--accent-soft, #f7eceb); border-radius: 999px; padding: 2px 9px; margin-bottom: 5px; }
.addr-l1 { font-weight: 700; color: var(--fg-1, #1d1b18); }
.addr-l { font-size: 13px; color: var(--fg-2, #5b5750); }
.addr-act { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; flex: none; }
.addr-act button { display: inline-flex; align-items: center; gap: 5px; background: none; border: 1px solid var(--border-1, #d9d6cf); border-radius: 7px; padding: 5px 10px; font: inherit; font-size: 12.5px; color: var(--fg-2, #5b5750); cursor: pointer; white-space: nowrap; }
.addr-act button:hover { border-color: var(--accent, #D4261A); color: var(--accent, #D4261A); }
.addr-act button.del { color: var(--fg-3, #8a857c); }
.addr-act button.del:hover { border-color: #e5484d; color: #e5484d; }
.addr-empty { color: var(--fg-3, #8a857c); font-size: 13.5px; padding: 14px 2px; }
.abf-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.abf-f { flex: 1; min-width: 130px; display: flex; flex-direction: column; gap: 4px; }
.abf-f span { font-size: 12px; color: var(--fg-3, #8a857c); }
.abf-f input { width: 100%; padding: 9px 11px; border: 1px solid var(--border-1, #d9d6cf); border-radius: 8px; background: var(--surface, #fff); color: var(--fg-1, #1d1b18); font: inherit; font-size: 14px; box-sizing: border-box; }
.abf-f input:focus { outline: none; border-color: var(--accent, #D4261A); }
.abf-act { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.acct-pw .pw-form { max-width: 440px; display: flex; flex-direction: column; gap: 12px; }
.pw-rule { font-size: 12px; color: var(--fg-3, #8a857c); }
.pw-ok { font-size: 13px; color: #1e8a44; font-weight: 600; }
@media (max-width: 700px) { .addr-card { flex-wrap: wrap; } .addr-act { flex-direction: row; width: 100%; justify-content: flex-start; } }

/* ---------- Pagina coș (full-page) ---------- */
.cp { padding-bottom: 40px; }
.cp-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-serif); font-size: 26px; margin: 8px 0 18px; }
.cp-cart-ico { height: 32px; width: auto; display: block; object-fit: contain; }
/* Produs clicabil în coș (drawer + pagină) → pagina produsului */
.cd-img.clk, .cp-img.clk, .cd-name.clk, .cp-name.clk { cursor: pointer; }
.cd-name.clk:hover, .cp-name.clk:hover { color: var(--accent); }
.cd-img.clk:hover img, .cp-img.clk:hover img { transform: scale(1.05); transition: transform .15s; }
.cp-ship { background: #f0f8f1; border: 1px solid #cfe8d3; border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; }
.cp-ship-txt { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #1f7a44; margin-bottom: 8px; }
.cp-ship-bar { height: 8px; background: #d9ecdd; border-radius: 99px; overflow: hidden; }
.cp-ship-bar i { display: block; height: 100%; background: #2faa55; border-radius: 99px; transition: width .3s; }
.cp-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,330px); gap: var(--sp-6); align-items: start; }
.cp-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cp-quick { background: #fff; border: 1px solid var(--border-1); border-radius: 10px; padding: 12px 16px; display: flex; align-items: center; gap: 14px; position: relative; }
.cp-quick-l { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); white-space: nowrap; }
.cp-quick-l svg { color: var(--accent); }
.cp-quick-box { flex: 1; position: relative; }
.cp-quick-box input { width: 100%; border: 1px solid var(--border-1); border-radius: 8px; padding: 10px 13px; font: inherit; font-size: 14px; box-sizing: border-box; }
.cp-quick-box input:focus { outline: none; border-color: var(--accent); }
.cp-sugg { position: absolute; top: calc(100% + 5px); left: 0; right: 0; background: #fff; border: 1px solid var(--border-1); border-radius: 10px; box-shadow: 0 16px 36px rgba(0,0,0,.14); z-index: 30; overflow: hidden; max-height: 360px; overflow-y: auto; }
.cp-sugg-it { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: none; border-bottom: 1px solid var(--border-1); padding: 9px 12px; cursor: pointer; }
.cp-sugg-it:last-child { border-bottom: none; }
.cp-sugg-it:hover { background: var(--bg-2, #f7f6f3); }
.cp-sugg-img { width: 34px; height: 34px; flex: none; border: 1px solid var(--border-1); border-radius: 6px; display: grid; place-items: center; overflow: hidden; background: #fff; }
.cp-sugg-img img { width: 100%; height: 100%; object-fit: contain; }
.cp-sugg-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cp-sugg-info b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.cp-sugg-info em { font-style: normal; font-size: 11.5px; color: var(--fg-3); }
.cp-sugg-price { font-size: 13px; font-weight: 700; white-space: nowrap; }
.cp-items { background: #fff; border: 1px solid var(--border-1); border-radius: 10px; }
.cp-item { display: grid; grid-template-columns: 64px 1fr auto auto auto; gap: 16px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border-1); }
.cp-item:last-child { border-bottom: none; }
.cp-img { width: 64px; height: 64px; border: 1px solid var(--border-1); border-radius: 8px; display: grid; place-items: center; overflow: hidden; background: #fff; color: var(--fg-3); }
.cp-img img { width: 100%; height: 100%; object-fit: contain; }
.cp-info { min-width: 0; }
.cp-brand { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--fg-3); }
.cp-name { font-weight: 600; font-size: 14px; line-height: 1.35; }
.cp-sku { font-size: 12px; color: var(--fg-3); margin-top: 2px; }
.cp-prices { text-align: right; }
.cp-unit { font-size: 12.5px; color: var(--fg-2); }
.cp-unit em { font-style: normal; color: var(--fg-3); }
.cp-line { font-size: 15px; font-weight: 800; margin-top: 3px; }
.cp-rm { background: none; border: none; color: var(--fg-3); cursor: pointer; padding: 6px; border-radius: 6px; display: flex; }
.cp-rm:hover { background: #fdecea; color: #b3261e; }
.cp-sum { background: #fff; border: 1px solid var(--border-1); border-radius: 10px; padding: 18px 20px; position: sticky; top: 16px; }
.cp-sum h2 { font-size: 16px; margin: 0 0 12px; }
.cp-firm { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--fg-2); background: var(--bg-2, #f7f6f3); border-radius: 8px; padding: 8px 10px; margin-bottom: 14px; }
.cp-firm svg { color: var(--accent); flex: none; }
.cp-srow { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; font-size: 13.5px; color: var(--fg-2); }
.cp-srow em { font-style: normal; color: var(--fg-3); font-size: 12px; }
.cp-total { border-top: 2px solid var(--border-strong, var(--border-1)); margin-top: 6px; padding-top: 12px; font-size: 16px; color: var(--fg-1); }
.cp-total b { font-size: 20px; color: var(--accent); }
.cp-checkout { width: 100%; justify-content: center; gap: 8px; height: 46px; font-size: 14.5px; margin-top: 14px; }
.cp-cont { width: 100%; background: none; border: none; color: var(--fg-2); cursor: pointer; font: inherit; font-size: 13px; padding: 12px 0 2px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.cp-cont:hover { color: var(--accent); }
@media (max-width: 860px) {
  .cp-grid { grid-template-columns: 1fr; }
  .cp-sum { position: static; }
  /* Linia din coș pe 2 rânduri: [imagine] denumire … X / [imagine] cantitate … preț. Vechea regulă
     (.cp-item .qtybox) ținta un element IMBRICAT → denumirea rămânea în ~77 px, X singur pe rândul 3. */
  .cp-item { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 8px 10px; align-items: start; }
  .cp-item > .cp-img { grid-row: 1 / span 2; }
  .cp-item > .cp-info { grid-column: 2; grid-row: 1; }
  .cp-item > .cp-rm { grid-column: 3; grid-row: 1; justify-self: end; }
  .cp-item > :nth-child(3) { grid-column: 2; grid-row: 2; }
  .cp-item > .cp-prices { grid-column: 3; grid-row: 2; align-self: center; }
  .cp-quick { flex-direction: column; align-items: stretch; gap: 8px; }
}

/* ---------- Meniu dropdown ---------- */
.menu-dd { width: 220px; padding: 6px; }
.menu-it { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: 14px; color: var(--fg-1); text-decoration: none; border-radius: 8px; }
.menu-it svg { color: var(--fg-3); flex: none; }
.menu-it:hover { background: var(--bg-2, #f5f4f1); color: var(--accent); }
.menu-it:hover svg { color: var(--accent); }

/* ---------- Pagini liste (comenzi / facturi / plăți) ---------- */
.ll { padding-bottom: 44px; }
.ll-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 8px 0 16px; }
.ll-head h1 { font-family: var(--font-serif); font-size: 26px; margin: 0; display: flex; align-items: baseline; gap: 10px; }
.ll-cnt { font-size: 14px; color: var(--fg-3); font-family: var(--font-mono); }
.ll-back { font-size: 13px; color: var(--accent); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ll-stats { display: flex; flex-wrap: wrap; gap: 22px; background: var(--bg-2, #f3f1ec); border: 1px solid var(--border-1); border-radius: 10px; padding: 12px 18px; font-size: 13.5px; color: var(--fg-2); margin-bottom: 14px; }
.ll-stats b { color: var(--fg-1); }
.ll-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.ll-filters select, .ll-filters input { border: 1px solid var(--border-1); border-radius: 8px; padding: 8px 11px; font: inherit; font-size: 13.5px; background: #fff; color: var(--fg-1); }
.ll-table { border: 1px solid var(--border-1); border-radius: 10px; overflow: hidden; background: #fff; }
.ll-row { display: grid; grid-template-columns: 40px 1fr 1fr 1fr 130px; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border-1); font-size: 13.5px; text-align: left; }
.ll-row.inv { grid-template-columns: 40px 1.1fr 1fr 1fr 90px 1fr 1fr 120px; }
.ll-row.pay { grid-template-columns: 100px 1.4fr 1fr 1fr; }
.ll-table .ll-item:last-child .ll-row, .ll-table > .ll-row:last-child { border-bottom: none; }
.ll-row-hd { background: var(--bg-2, #faf9f7); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--fg-3); }
.ll-row-btn { width: 100%; background: none; border: none; border-bottom: 1px solid var(--border-1); cursor: pointer; font: inherit; }
.ll-row .num { text-align: right; font-variant-numeric: tabular-nums; }
.ll-exp { width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft, #f7eceb); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; line-height: 1; }
.ll-item.open .ll-row-btn { background: var(--bg-2, #faf9f7); }
.ll-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; color: #fff; white-space: nowrap; }
.ll-badge.st-livrata, .ll-badge.st-expediata { background: #2faa55; }
.ll-badge.st-anulata { background: #e5484d; }
.ll-badge.st-plasata, .ll-badge.st-procesare { background: #6b7280; }
.ll-badge.st-reg { background: #7a869a; }
.ll-late { color: #b3261e; font-weight: 700; }
.ll-muted { color: var(--fg-3); font-size: 12px; margin-top: 4px; }
.ll-body { padding: 14px 18px; background: #fff; border-bottom: 1px solid var(--border-1); }
.ll-sub-h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--fg-3); margin-bottom: 8px; }
.ll-prod { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 12px; }
.ll-prod th { text-align: left; font-size: 11px; text-transform: uppercase; color: var(--fg-3); padding: 6px 8px; border-bottom: 1px solid var(--border-1); }
.ll-prod td { padding: 7px 8px; border-bottom: 1px solid var(--border-1); }
.ll-prod .num { text-align: right; font-variant-numeric: tabular-nums; }
.ll-prod tfoot td { border-top: 2px solid var(--border-2, var(--border-1)); border-bottom: none; padding-top: 9px; }
/* Produs în comandă: thumbnail + nume clicabil (deschide produsul în filă nouă). */
.llp-cell { display: flex; align-items: center; gap: 10px; color: var(--fg-1); text-decoration: none; }
.llp-thumb { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 6px; border: 1px solid var(--border-1); object-fit: contain; background: #fff; }
.llp-name { line-height: 1.35; }
a.llp-cell:hover .llp-name { text-decoration: underline; color: var(--accent); }
a.llp-cell:hover .llp-thumb { border-color: var(--accent); }
.ll-det { display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 13px; color: var(--fg-2); }
.ll-det b { color: var(--fg-1); }
.ll-empty { padding: 26px; text-align: center; color: var(--fg-3); font-size: 13.5px; }
.ll-tot { background: var(--bg-2, #faf9f7); }
@media (max-width: 820px) {
  /* Comenzi + facturi: fiecare rând devine CARD — valoarea și statusul rămân vizibile (înainte erau
     ascunse sub 820px, deci pe telefon/tabletă nu se vedeau restanțele fără a deschide fiecare rând).
     Etichetele vin din atributul data-l; antetul de tabel nu mai are rost. */
  .ll-row.ll-row-hd:not(.pay) { display: none; }
  .ll-row:not(.pay) { grid-template-columns: 28px minmax(0, 1fr) auto; column-gap: 10px; row-gap: 3px; font-size: 13px; align-items: start; }
  .ll-row:not(.pay) > :first-child { align-self: center; }
  .ll-row-btn:not(.inv):not(.pay) > :first-child { grid-row: 1 / span 2; }
  .ll-row.inv > :first-child { grid-row: 1 / span 4; }
  .ll-row:not(.pay) > :nth-child(2) { grid-column: 2; grid-row: 1; font-weight: 700; }
  .ll-row:not(.pay) > :last-child { grid-column: 3; grid-row: 1; justify-self: end; }
  .ll-row:not(.pay) [data-l]::before { content: attr(data-l) ": "; color: var(--fg-3); font-family: var(--font-sans, inherit); font-weight: 400; }
  .ll-row:not(.pay) .num { text-align: left; }
  .ll-row .ll-m-hide { display: none; }
  .ll-row-btn:not(.inv):not(.pay) > :nth-child(3) { grid-column: 2; grid-row: 2; }
  .ll-row-btn:not(.inv):not(.pay) > :nth-child(4) { grid-column: 3; grid-row: 2; justify-self: end; text-align: right; }
  .ll-row.inv > :nth-child(3) { grid-column: 2; grid-row: 2; }
  .ll-row.inv > :nth-child(4) { grid-column: 2; grid-row: 3; }
  .ll-row.inv > :nth-child(5) { grid-column: 2; grid-row: 4; }
  .ll-row.inv > :nth-child(6) { grid-column: 3; grid-row: 2; justify-self: end; text-align: right; }
  .ll-row.inv > :nth-child(7) { grid-column: 3; grid-row: 3; justify-self: end; text-align: right; }
  /* Plati: 4 coloane scurte (tip doc / Nr.doc / Data / Achitat) incap la 600 -> randul NU se colapseaza.
     Inainte, regula .pay ascundea Data + Achitat, iar „Total pagina" aparea ca bara goala. */
  .ll-row.pay { grid-template-columns: 78px 1.3fr 1fr 1fr; gap: 6px; font-size: 12.5px; }
}

/* ════════ Dashboard AGENT B2B (.agp-*) — MOBILE-FIRST (agenții lucrează de pe telefon) ════════ */
/* Login agent = pagina dedicată /agent (partenerii NU văd nimic despre agenți pe pagina lor de login). */

.agp-shell { min-height: 100vh; background: var(--bg-1, #fff); }
.agp-head { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--border-1); }
.agp-head-me { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.agp-head-me b { font-size: 14px; color: var(--fg-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agp-head-me em { font-style: normal; font-size: 11.5px; color: var(--fg-3); }
.agp-logout { border: 1px solid var(--border-1); background: none; font: inherit; font-size: 13px; color: var(--fg-2); border-radius: 8px; padding: 8px 14px; cursor: pointer; min-height: 40px; }
/* Buton „Catalog” în antetul agentului (v3.13) — ca în portalul partenerului; pe telefon îngust doar iconița. */
.agp-catbtn { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border-1); background: #fff; font-size: 13px; font-weight: 600; color: var(--fg-1); border-radius: 8px; padding: 0 12px; min-height: 40px; text-decoration: none; white-space: nowrap; }
.agp-catbtn svg { color: var(--accent); flex: none; }
.agp-catbtn:hover { border-color: var(--accent); color: var(--accent); }
.agp-catbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Telefon: antetul trebuie să rămână pe un rând (bara de căutare lipicioasă stă sub el, top: 57px) →
   butonul rămâne doar iconița, spațiile se strâng, rolul nu mai trece pe al doilea rând. */
.agp-head-me em { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 520px) { .agp-head { gap: 8px; } .agp-catbtn { padding: 0 10px; } .agp-catbtn span { display: none; } }
/* Sub 420px pastila „B2B” de lângă siglă cedează locul numelui agentului (altfel ajungea la 1-2 litere). */
@media (max-width: 420px) { .agp-head .b2b-tag { display: none; } }

.agp-wrap { max-width: 760px; margin: 0 auto; padding: 14px 14px 90px; }
.agp-h2 { font-size: 19px; margin: 4px 0 10px; color: var(--fg-1); }
.agp-listhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.agp-back { border: none; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--accent); cursor: pointer; padding: 8px 0; min-height: 40px; }
.agp-search { width: 100%; border: 1px solid var(--border-1); border-radius: 10px; padding: 11px 13px; font: inherit; font-size: 14px; margin: 4px 0 12px; background: #fff; color: var(--fg-1); }
.agp-empty { padding: 30px 16px; text-align: center; color: var(--fg-3); font-size: 14px; }
.agp-note { font-size: 13px; color: var(--fg-2); background: var(--bg-2, #faf9f7); border: 1px solid var(--border-1); border-radius: 10px; padding: 10px 13px; margin: 8px 0; }
.agp-syncnote { font-size: 11.5px; color: var(--fg-3); margin: 4px 0 0; }

/* Toolbar STICKY: căutarea + „+ Nou" rămân mereu vizibile la scroll (100+ parteneri per agent) */
.agp-toolbar { position: sticky; top: 57px; z-index: 20; display: flex; gap: 8px; align-items: center; background: var(--bg-1, #fff); padding: 8px 0 10px; box-shadow: 0 6px 8px -8px rgba(0,0,0,.15); }
.agp-toolbar .agp-search { margin: 0; flex: 1; min-height: 46px; }
.agp-newbtn { white-space: nowrap; min-height: 46px; padding: 0 16px; justify-content: center; }
.agp-fchips { display: flex; gap: 7px; margin: 4px 0 10px; }
.agp-fchip { border: 1px solid var(--border-1); background: #fff; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--fg-2); border-radius: 999px; padding: 7px 13px; cursor: pointer; min-height: 36px; }
.agp-fchip.on { background: var(--fg-1, #1a1a1a); border-color: var(--fg-1, #1a1a1a); color: #fff; }
.agp-fchip.red { color: #b3261e; border-color: #f5c2c0; }
.agp-fchip.red.on { background: #b3261e; border-color: #b3261e; color: #fff; }

/* Listă compactă parteneri — rânduri dense pe 2 linii, tap-friendly (min 56px), separatoare fine */
.agp-plist { border: 1px solid var(--border-1); border-radius: 12px; background: #fff; overflow: hidden; margin-bottom: 8px; }
.agp-prow { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: none; border-bottom: 1px solid var(--border-1); font: inherit; padding: 10px 13px; min-height: 56px; cursor: pointer; }
.agp-prow:last-child { border-bottom: none; }
.agp-prow:active { background: var(--bg-2, #faf9f7); }
.agp-prow-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.agp-prow-name { font-size: 14px; font-weight: 700; color: var(--fg-1); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agp-prow-sub { font-style: normal; font-size: 12px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agp-prow-chev { color: var(--fg-3); font-size: 20px; line-height: 1; flex: 0 0 auto; }
.agp-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--fg-2); background: var(--bg-2, #faf9f7); border: 1px solid var(--border-1); border-radius: 999px; padding: 4px 11px; text-decoration: none; white-space: nowrap; }
.agp-chip.red { background: #fdecec; border-color: #f5c2c0; color: #b3261e; }
.agp-chip.amber { background: #fdf3e3; border-color: #f0d9ae; color: #92600a; }
.agp-chip.green { background: #e8f5ec; border-color: #bfe3ca; color: #1e7a3d; }
.agp-chip.act { color: var(--accent); }

/* Detaliu partener */
.agp-firmhead h2 { font-size: 20px; margin: 2px 0 2px; color: var(--fg-1); }
.agp-contactrow { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0; }
.agp-finrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 2px; }
.agp-fin { background: #fff; border: 1px solid var(--border-1); border-radius: 10px; padding: 9px 11px; display: flex; flex-direction: column; gap: 2px; }
.agp-fin em { font-style: normal; font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--fg-3); }
.agp-fin b { font-size: 14.5px; color: var(--fg-1); font-variant-numeric: tabular-nums; }
.agp-fin b.warn { color: #92600a; }
.agp-fin b.bad { color: #b3261e; }

.agp-tabs { display: flex; gap: 6px; margin: 14px 0 10px; background: var(--bg-2, #faf9f7); border: 1px solid var(--border-1); border-radius: 10px; padding: 4px; position: sticky; top: 58px; z-index: 20; }
.agp-tab { flex: 1; border: none; background: none; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--fg-2); padding: 9px 4px; border-radius: 7px; cursor: pointer; min-height: 40px; white-space: nowrap; }
.agp-tab.on { background: #fff; color: var(--accent); box-shadow: 0 1px 3px rgba(0,0,0,.09); }

/* Liste (comenzi / facturi / plăți) — rânduri-card */
.agp-list { display: flex; flex-direction: column; gap: 8px; }
.agp-row { background: #fff; border: 1px solid var(--border-1); border-radius: 11px; overflow: hidden; }
.agp-row.over { border-color: #f5c2c0; }
.agp-row-btn { display: flex; align-items: center; gap: 9px; width: 100%; background: none; border: none; font: inherit; padding: 12px 13px; cursor: pointer; text-align: left; min-height: 48px; }
.agp-row-btn.asdiv { cursor: default; }
.agp-row-id { font-weight: 700; font-size: 13.5px; color: var(--fg-1); }
.agp-row-date { font-size: 12px; color: var(--fg-3); }
.agp-row-total { margin-left: auto; font-weight: 700; font-size: 13.5px; color: var(--fg-1); font-variant-numeric: tabular-nums; white-space: nowrap; }
.agp-row-total.green { color: #1e7a3d; }
.agp-row-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 13px 11px; }
.agp-scad { font-size: 12px; color: var(--fg-3); }
.agp-row.over .agp-scad { color: #b3261e; font-weight: 600; }
.agp-row-body { border-top: 1px solid var(--border-1); padding: 11px 13px; background: var(--bg-2, #faf9f7); }
.agp-kv { display: flex; gap: 10px; font-size: 13px; margin-bottom: 5px; }
.agp-kv em { font-style: normal; color: var(--fg-3); min-width: 64px; }
.agp-items { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.agp-item { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.agp-item img, .agp-item-ph { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 6px; border: 1px solid var(--border-1); object-fit: contain; background: #fff; }
.agp-item-n { flex: 1; min-width: 0; line-height: 1.3; }
.agp-item-n a { color: var(--fg-1); text-decoration: none; }
.agp-item-n a:hover { color: var(--accent); text-decoration: underline; }
.agp-item-q { color: var(--fg-3); font-weight: 600; white-space: nowrap; }

/* Formular partener nou — câmpuri mari (44px+), grilă 2 coloane doar pt perechi scurte */
.agp-cuirow { display: flex; gap: 8px; align-items: flex-end; margin: 10px 0 4px; }
.agp-fld { display: flex; flex-direction: column; gap: 5px; margin: 7px 0; }
.agp-fld.grow { flex: 1; }
.agp-fld span { font-size: 12.5px; font-weight: 600; color: var(--fg-2); }
.agp-fld input { border: 1px solid var(--border-1); border-radius: 10px; padding: 12px 13px; font: inherit; font-size: 15px; background: #fff; color: var(--fg-1); width: 100%; min-height: 46px; }
.agp-fld input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.agp-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.agp-form .agp-fld { grid-column: 1 / -1; }
.agp-form .agp-fld.half { grid-column: auto / span 1; }
.agp-subh { grid-column: 1 / -1; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--fg-3); margin: 12px 0 2px; }
.agp-lookup { white-space: nowrap; min-height: 46px; }
.agp-looknote { font-size: 12.5px; color: var(--fg-2); background: var(--bg-2, #faf9f7); border: 1px solid var(--border-1); border-radius: 8px; padding: 8px 11px; margin: 6px 0; }
.agp-err { margin: 10px 0 0; }
.agp-cta { width: 100%; margin-top: 16px; min-height: 50px; font-size: 15.5px; justify-content: center; }

/* Desktop: aceeași listă densă (lizibilă la 100+), toolbar-ul rămâne sticky */
@media (min-width: 720px) {
  .agp-wrap { padding: 20px 20px 60px; }
  .agp-toolbar { top: 61px; }
  .agp-tabs { top: 62px; }
}

/* Pas de verificare comandă (.ckr-*) — recapitulare înainte de trimitere (comutabil din admin) */
.ckr-ov { position: fixed; inset: 0; background: rgba(15,20,30,.55); z-index: 10000; display: flex; align-items: flex-start; justify-content: center; padding: 16px; overflow: auto; }
.ckr { background: #fff; border-radius: 16px; max-width: 680px; width: 100%; padding: 22px 20px; box-shadow: 0 20px 60px rgba(0,0,0,.3); margin: auto; }
.ckr-h { margin: 0 0 4px; font-size: 20px; color: var(--fg-1); }
.ckr-sub { margin: 0 0 14px; color: var(--fg-3); font-size: 13.5px; }
.ckr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; margin-bottom: 10px; }
.ckr-card { border: 1px solid var(--border-1); border-radius: 12px; padding: 12px 13px; background: var(--bg-2, #faf9f7); }
.ckr-card h4 { margin: 0 0 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--fg-3); }
.ckr-l { font-size: 13.5px; line-height: 1.55; color: var(--fg-1); overflow-wrap: anywhere; }
.ckr-muted { color: var(--fg-3); }
.ckr-meta { display: flex; flex-wrap: wrap; gap: 8px 26px; padding: 10px 13px; border: 1px solid var(--border-1); border-radius: 12px; background: var(--bg-2, #faf9f7); margin-bottom: 12px; }
.ckr-meta > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ckr-k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--fg-3); font-weight: 700; }
.ckr-meta b { font-size: 13.5px; color: var(--fg-1); }
.ckr-notes { font-weight: 500; }
.ckr-ph { margin: 2px 0 6px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--fg-3); }
.ckr-items { max-height: 300px; overflow: auto; }
.ckr-it { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border-1); }
.ckr-it-img { position: relative; width: 42px; height: 42px; flex: none; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-1); border-radius: 8px; background: var(--bg-2, #faf9f7); }
.ckr-it-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 7px; display: block; background: #fff; }
.ckr-it-q { position: absolute; top: -7px; right: -7px; min-width: 19px; height: 19px; padding: 0 5px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; border-radius: 999px; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.ckr-it-n { flex: 1; min-width: 0; font-size: 13px; line-height: 1.35; }
.ckr-it-p { font-size: 13px; white-space: nowrap; }
.ckr-tots { margin-top: 10px; }
.ckr-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 13.5px; }
.ckr-grand { border-top: 1px solid var(--border-1); margin-top: 6px; padding-top: 10px; font-weight: 800; font-size: 16px; }
.ckr-act { display: flex; gap: 10px; margin-top: 16px; }
.ckr-back { flex: 1; min-height: 46px; border: 1px solid var(--border-1); background: #fff; border-radius: 10px; font: inherit; font-weight: 600; color: var(--fg-2); cursor: pointer; }
.ckr-ok { flex: 1.5; min-height: 46px; justify-content: center; }

/* „Comandă din nou" — în detaliul unei comenzi din Lista comenzi (portal partener) */
.ll-reorder { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border-1); }
.ll-reorder-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 18px; }
.ll-reorder .ll-muted { margin-top: 0; }

/* ============ Activare cont partener (/activare — link din email) + variante agp-note ============ */
.agp-note.ok { border-color: #b7e2c0; background: #f0faf2; color: #1c7c36; }
.agp-note.warn { border-color: #f0cf9a; background: #fdf6e8; color: #8a5a00; }
/* Butoanele-chip (link parola, blocare) pastreaza fontul chip-ului (12px/600); `font: inherit` il anula si butonul iesea mai mare. */
.agp-invite { border: none; }
.agp-contactrow button.agp-chip { font-family: inherit; cursor: pointer; }
.act-wrap { min-height: 100vh; display: flex; justify-content: center; align-items: flex-start; padding: 48px 16px; background: var(--bg-1); }
.act-card { width: 100%; max-width: 760px; background: #fff; border: 1px solid var(--border-1); border-radius: 14px; padding: 28px 30px 26px; }
.act-card h1 { font-size: 24px; margin: 8px 0 6px; }
.act-sub { color: var(--fg-2); font-size: 14px; margin: 0 0 14px; }
.act-loading { padding: 40px 0; text-align: center; color: var(--fg-2); }
.act-done p { font-size: 14.5px; color: var(--fg-2); line-height: 1.55; }
.act-terms { max-height: 300px; overflow-y: auto; border: 1px solid var(--border-1); border-radius: 10px; padding: 4px 16px; background: var(--bg-2, #faf9f7); }
.act-legal h3 { font-size: 14px; margin: 14px 0 6px; }
.act-legal p { font-size: 12.8px; line-height: 1.55; color: var(--fg-2); margin: 7px 0; }
.act-ver { font-style: italic; color: var(--fg-3, #8a8a8a); }
.act-consent { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 4px; font-size: 13.5px; line-height: 1.5; cursor: pointer; }
.act-consent input { margin-top: 3px; width: 17px; height: 17px; flex: none; }
.act-pwrow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.act-show { display: inline-flex; gap: 7px; align-items: center; font-size: 12.5px; color: var(--fg-2); margin: 6px 0 2px; cursor: pointer; }
.act-cta { width: 100%; margin-top: 14px; min-height: 50px; font-size: 15px; }
.act-foot { text-align: center; font-size: 12.5px; color: var(--fg-3, #8a8a8a); margin: 12px 0 0; }
@media (max-width: 560px) { .act-pwrow { grid-template-columns: 1fr; } .act-card { padding: 20px 16px; } }

/* Unitate de ambalare — produsul se comandă doar la multiplu (ex. bax de 25 buc). */
.pack-note { display: inline-block; font-size: 12px; line-height: 1.35; color: #8a5a00; background: #fff6e5;
  border: 1px solid #f0d9a8; border-radius: 6px; padding: 3px 8px; margin: 4px 0; }
.pdp-pack { display: block; font-size: 13.5px; padding: 8px 12px; margin: 10px 0; }
.cp-pack { font-size: 11.5px; color: var(--fg-3, #8a8a8a); margin-top: 4px; text-align: center; }

/* Colete per comanda (facturare externa: o comanda = mai multe facturi/AWB-uri) */
.ll-ship { margin: 10px 0 4px; }
.ll-ship-row { display: grid; grid-template-columns: 70px 1.2fr 1.6fr 110px; gap: 10px; align-items: center; padding: 7px 10px; border: 1px solid var(--border-1); border-top: none; font-size: 13px; }
.ll-ship-row:first-of-type { border-top: 1px solid var(--border-1); border-radius: 8px 8px 0 0; }
.ll-ship-row:last-of-type { border-radius: 0 0 8px 8px; }
.ll-ship-row:first-of-type:last-of-type { border-radius: 8px; }
.ll-ship-n { font-weight: 700; color: var(--fg-2); }
.ll-ship-track { text-decoration: underline; text-underline-offset: 2px; }
.ll-ship-track:hover { opacity: .75; }
.ll-badge.st-partial { background: #fff4d6; color: #8a6100; }

/* Colete in panoul de agent (aceeasi informatie ca la partener, format compact) */
.agp-ship { display: flex; flex-direction: column; gap: 4px; margin-bottom: 6px; }
.agp-ship a { text-decoration: underline; text-underline-offset: 2px; }
/* ── Blocare rau-platnic: banner + fereastra de constientizare + note ─────── */
.blk-banner{background:#b91c1c; color:#fff; text-align:center; font-size:13.5px; font-weight:600; padding:9px 14px; position:sticky; top:0; z-index:120}
.blk-ov{position:fixed; inset:0; background:rgba(15,23,42,.62); z-index:200; display:flex; align-items:center; justify-content:center; padding:18px}
.blk-modal{background:#fff; border-radius:14px; max-width:560px; width:100%; padding:26px 28px; box-shadow:0 24px 60px rgba(0,0,0,.35); max-height:90vh; overflow:auto}
.blk-modal h3{margin:0 0 10px; font-size:19px; color:#b91c1c}
.blk-modal p{margin:0 0 10px; font-size:14px; line-height:1.55; color:#1f2937}
.blk-reason{background:#fef2f2; border-left:3px solid #dc2626; padding:8px 12px; border-radius:6px}
.blk-inv{border:1px solid #e5e7eb; border-radius:10px; padding:10px 14px; margin:12px 0}
.blk-inv p{display:flex; gap:10px; align-items:baseline; margin:0 0 6px; font-size:13.5px}
.blk-inv p span{min-width:110px; font-weight:600}
.blk-inv p em{color:#6b7280; font-style:normal; flex:1}
.blk-inv p b{font-variant-numeric:tabular-nums}
.blk-more{color:#6b7280}
.blk-total{border-top:1px dashed #d1d5db; padding-top:8px; margin-top:4px}
.blk-total b{color:#b91c1c; font-size:15px}
.blk-chk{display:flex; gap:10px; align-items:flex-start; font-size:13.5px; line-height:1.5; margin:14px 0; cursor:pointer}
.blk-chk input{margin-top:3px; width:16px; height:16px; accent-color:#b91c1c}
.blk-ok{width:100%; justify-content:center}
.blk-ok:disabled{opacity:.5; cursor:not-allowed}
.blk-note{background:#fef2f2; border:1px solid #fecaca; color:#7f1d1d; border-radius:10px; padding:12px 14px; font-size:13.5px; line-height:1.5}
.ckt-blocked{max-width:560px; margin:40px auto; background:#fff; border:1px solid #fecaca; border-radius:14px; padding:26px 28px; text-align:center}
.ckt-blocked h3{color:#b91c1c; margin:0 0 10px}
.ckt-blocked p{color:#1f2937; font-size:14px; line-height:1.55; margin:0 0 12px}
.blk-inv-hd{font-weight:700; color:#374151; font-size:12.5px; text-transform:uppercase; letter-spacing:.03em}

/* ===== Tablet & touch (Galaxy Tab A9 si similare) ===== */
/* Toate „bump"-urile de tinta tactila (>=44px) sunt inchise in @media (hover:none)+(pointer:coarse)
   -> UI-ul desktop cu mouse ramane NEATINS. Fixurile de layout (overflow/stivuire/coloane) folosesc
   praguri de latime, fiindca Tab A9 sta exact pe cusaturi: ~600px portret, ~962px peisaj. */

/* ---- LAYOUT (latimi) — se aplica pe tableta indiferent de pointer ---- */

/* Top strip la 600 portret: telefon + program + nav nu incap pe 34px; linkurile nav sunt moarte
   (href="#", preventDefault) -> le ascundem si lasam bara sa creasca. */
@media (max-width: 640px) {
  .topstrip .container { height: auto; padding-top: 4px; padding-bottom: 4px; }
  .topstrip .left { gap: 10px; flex-wrap: wrap; }
  .topstrip nav { display: none; }
}

/* Pagina categorie la <=760 (portret 600): filtrele se stivuiesc DEASUPRA produselor. Lista de
   producatori (.brand-list) nu avea plafon -> sute de px de filtre inainte de primul produs. */
@media (max-width: 760px) {
  .brand-list { max-height: 42vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
}

/* PDP la 761-1024 (peisaj 962, inca NEstivuit): micsoram pista galeriei ca info-ul sa respire. */
@media (min-width: 761px) and (max-width: 1024px) {
  .pdp-top { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: var(--sp-5); }
}

/* Checkout la 861-1024 (peisaj 962): rândul de plata cu 3 chip-uri trece la 2+1. */
@media (min-width: 861px) and (max-width: 1024px) {
  .ckt-opts { flex-wrap: wrap; }
  .ckt-opt { flex: 1 1 45%; }
}

/* Tabele dashboard (.tbl) la 600 portret: compactam + (cu wrapperul .tbl-x din JSX) permitem
   scroll orizontal pt valori extreme, in loc de scroll de PAGINA. */
.tbl-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl-x > .tbl { min-width: 460px; }
@media (max-width: 640px) {
  .dash .tbl { --row-pad: 8px; }
  .dash .tbl th, .dash .tbl td { font-size: 12.5px; }
  .dash .tbl .num, .dash .tbl .id, .dash .tbl .mut { font-size: 12px; }
  .dash .tbl .badge { font-size: 9.5px; padding: 3px 6px; letter-spacing: 0.04em; }
}

/* Tabele detaliu comanda/factura (.ll-prod): erau CLIPate de .ll-table{overflow:hidden}. Wrapper
   cu scroll orizontal (vezi JSX .ll-prodwrap). Factura are 7 coloane -> min-width mai mare. */
.ll-prodwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 12px; }
.ll-prodwrap > .ll-prod { margin-bottom: 0; }
.ll-prod { min-width: 460px; }
.ll-prod.inv { min-width: 640px; }

/* PDP: descriere = HTML din admin (dangerouslySetInnerHTML). Evita overflow orizontal de pagina. */
.pdp-desc { overflow-wrap: anywhere; }
.pdp-desc table { display: block; max-width: 100%; overflow-x: auto; }
.pdp-desc pre { max-width: 100%; overflow-x: auto; }
.pdp-specs { overflow-wrap: anywhere; }
.pdp-sku-row { flex-wrap: wrap; row-gap: 4px; }

/* „Vezi tot" din capul panoului mega-meniu — ascuns pe desktop (hover), vizibil doar pe tactil. */
.cm-seeall { display: none; font-family: var(--font-sans); font-size: 13px; font-weight: 700; color: var(--accent); text-decoration: none; white-space: nowrap; flex: none; }
.cm-seeall:hover { text-decoration: underline; }

/* ---- TINTE TACTILE (>=44px) — DOAR pe pointer grosier; desktop cu mouse ramane neatins ---- */
@media (hover: none) and (pointer: coarse) {
  /* Header */
  .cats-btn { height: 44px; }
  .catalog-btn { height: 44px; }
  .acctbtn { height: 44px; }
  .iconbtn { width: 44px; height: 44px; }
  .avatarbtn { padding: 8px; }
  .searchbar input { padding-top: 11px; padding-bottom: 11px; }

  /* Mega-meniu categorii */
  .cm-cat { padding-top: 12px; padding-bottom: 12px; }
  .cm-sub2 { padding-top: 12px; padding-bottom: 12px; }
  .cm-panel-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .cm-seeall { display: inline-block; }

  /* Dashboard: buton inchidere promo */
  .promo .pclose { padding: 14px; margin: -10px -6px; }

  /* Catalog: card grila + toolbar + paginare */
  .pc-cart { min-height: 44px; }
  .view-tg button { width: 44px; height: 44px; }
  .pager button { min-width: 44px; height: 44px; }
  .ct-sort select { padding-top: 10px; padding-bottom: 10px; }
  .ct-sort input[type="checkbox"] { width: 20px; height: 20px; }

  /* Stepper cantitate (lista/PDP/pagina cos) + varianta compacta din drawer (.sm) */
  .qtybox button { width: 44px; height: 44px; }
  .qtybox input { width: 48px; height: 44px; }
  .qtybox.sm button { width: 44px; height: 44px; font-size: 16px; }
  .qtybox.sm input { width: 44px; height: 44px; font-size: 14px; }

  /* Buton partajat „In cos/Adauga/Salveaza/Inapoi" — min-height ca PODEA (desktop pastreaza height) */
  .btn-cart { min-height: 44px; }
  .btn-ghost { min-height: 44px; padding-top: 11px; padding-bottom: 11px; }

  /* Cos/PDP: inchide drawer, elimina linie, varianta, inapoi */
  .cd-x { width: 44px; height: 44px; }
  .cd-rm { width: 44px; height: 44px; }
  .cp-rm { padding: 14px; }
  .pdp-var { height: 44px; min-width: 48px; }
  .pdp-back { min-height: 44px; }

  /* Checkout: chip-uri livrare/plata, actiuni agenda adrese, campuri formular */
  .ckt-opt { min-height: 44px; }
  .ckt-lnk { min-height: 44px; }
  .ckt-f input, .ckt-f textarea, .ckt-f select { min-height: 44px; }

  /* Liste cont (comenzi/facturi/plati): filtre, paginare, actiuni adresa */
  .ll-filters select, .ll-filters input { min-height: 44px; padding-top: 10px; padding-bottom: 10px; }
  .addr-act button { min-height: 44px; padding: 8px 14px; }
}
/* Agent: select in formular (punct de lucru WME) + panoul „CUI existent — cont nou pe aceeasi firma" */
.agp-fld select { border: 1px solid var(--border-1); border-radius: 10px; padding: 12px 13px; font: inherit; font-size: 15px; background: #fff; color: var(--fg-1); width: 100%; min-height: 46px; }
.agp-fld select:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.agp-dup { border: 1px solid #f0cf9a; background: #fdf6e8; border-radius: 10px; padding: 12px 13px; margin: 10px 0; font-size: 13.5px; color: var(--fg-1); }
.agp-dup b { display: block; margin-bottom: 4px; }
.agp-dup p { margin: 0 0 10px; color: var(--fg-2); line-height: 1.5; }
.agp-dup-act { display: flex; gap: 8px; flex-wrap: wrap; }
.agp-dup-act button { min-height: 44px; }
/* Agent: linia CUI + Reg. Com. de sub numele firmei (detaliu partener) — erau lipite, fara spatiu */
.agp-card-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; color: var(--fg-2); margin: 2px 0 4px; }
/* Agent: rand de control sub contact (blocare rau-platnic + comutator email la comanda noua) */
.agp-ctrlrow { margin-top: 0; }
.agp-switch { cursor: pointer; user-select: none; }
.agp-switch input { margin: 0; width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
/* Card grila: mentiunea de ambalare sta LANGA pret (2 randuri), nu pe toata latimea — asa butonul
   „Adauga in cos" ramane la aceeasi inaltime ca la celelalte carduri din rand. `.pack-note` (folosit
   in vederea lista si pe pagina produsului) ramane neschimbat. */
.pc-buyrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pc-priceblock { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pc-pack { flex: none; text-align: center; font-size: 10.5px; line-height: 1.3; font-weight: 700;
  color: #8a5a00; background: #fff6e5; border: 1px solid #f0d9a8; border-radius: 6px; padding: 4px 8px; }
@media (max-width: 760px) { .pc-pack { font-size: 10px; padding: 3px 6px; } }

/* ═══════════ v2.87 — reparații din auditul client B2B (05.10.2026) ═══════════ */

/* Stoc: „Stoc limitat · N buc" (≤10) */
.pstock.low { color: #a85a00; } .pstock.low i { background: #e08a00; }

/* Coș: anunț (cantitate limitată la stoc) + avertisment pe linie când cantitatea depășește stocul */
.cart-note { margin: 10px 14px 0; padding: 9px 12px; border: 1px solid #f0c36d; background: #fff8e6; color: #6b4a00; border-radius: 8px; font-size: 13px; line-height: 1.4; }
.cart-note.cp-note { margin: 0 0 12px; }
.cart-warn { margin-top: 6px; padding: 7px 10px; border-radius: 6px; background: #fdecea; color: #a1261b; font-size: 12.5px; line-height: 1.4; }
.cart-warn a { color: inherit; font-weight: 700; text-decoration: underline; }
.cd-foot .cart-warn { margin: 0 0 10px; }
.cp-sum .cart-warn { margin: 10px 0; }

/* Căutare: rezultate aproximative / doar o parte din cuvinte */
.search-note { margin: 10px 0 4px; padding: 9px 12px; border-radius: 8px; background: #fff8e6; border: 1px solid #f0c36d; color: #6b4a00; font-size: 13px; line-height: 1.4; }

/* Categorie: legătura „Toate produsele din categorie" când e aleasă o subcategorie */
.side-sub.side-all { color: var(--accent); }

/* Categorie pe ecrane mici: subcategoriile + producătorii într-un panou pliabil (închis implicit), ca
   primul produs / pagina produsului să apară imediat sub titlu. Plus: fără scroll orizontal — bara de
   unelte (vedere + „Doar disponibile" + sortare) nu se rupea pe rânduri și lățea toată grila la ~430px. */
.cat-side-tg { display: none; }
@media (max-width: 760px) {
  .catpage-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .catpage-grid > * { min-width: 0; }
  .cat-side-tg { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--border-1); background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: var(--fg-1); cursor: pointer; text-align: left; }
  .cat-side-tg .cst-lbl { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cat-side-tg .cst-act { flex: none; color: var(--accent); font-size: 13px; }
  .cat-side-tg.on { border-color: var(--accent); }
  .cat-side:not(.open) { display: none; }
  .cat-toolbar { gap: 8px; }
  .ct-sort { flex-wrap: wrap; margin-left: 0; row-gap: 8px; }
  .pcard, .prow { min-width: 0; }
  .pc-name, .prow-name { overflow-wrap: anywhere; }
  .pager { flex-wrap: wrap; row-gap: 4px; }
}
/* Avertismentul de stoc din pagina coșului stă în coloana cantității (lățime „auto"): fără plafon,
   lățea coloana și strivea denumirea produsului. */
.cp-item .cart-warn { max-width: 260px; }

/* Antet pe telefon: meniurile (cont, notificări, specialist) erau ancorate la butonul lor și ieșeau
   ~100px în stânga ecranului — meniul contului e singurul acces la comenzi, facturi, plăți și ieșire.
   Sub 600px le ancorăm la bara de sus, pe toată lățimea. */
@media (max-width: 600px) {
  .masthead .dd-anchor { position: static; }
  .masthead .dropdown { left: 8px; right: 8px; width: auto; top: calc(100% + 4px); max-height: calc(100vh - 140px); overflow-y: auto; }
}

/* Cont → „Date de facturare" (doar citire, C6) */
.bill-card { align-items: flex-start; }
.bill-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 7px 18px; margin: 0; font-size: 14.5px; flex: 1; min-width: 0; }
.bill-dl dt { color: var(--fg-3); font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding-top: 3px; }
.bill-dl dd { margin: 0; color: var(--fg-1); font-weight: 600; overflow-wrap: anywhere; }
.bill-note { font-size: 13px; color: var(--fg-2); margin: 10px 0 0; line-height: 1.55; }
.bill-note a { color: var(--accent); }

/* Facturi: buton „Descarcă factura (PDF)" (C14) */
.ll-docact { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; }
.ll-pdf { font-size: 13px; }
.ll-pdf:disabled { opacity: .6; cursor: default; }

/* ───────── Cont → „Feed-ul meu” (feed-produse/1, feed-meu.jsx) ───────── */
.feed-pg .feed-intro { max-width: 780px; }
.feed-loaderr a { color: inherit; font-weight: 700; }
.feed-state { display: flex; align-items: flex-start; gap: 12px; background: var(--surface, #fff); border: 1px solid var(--border-1, #e7e5e0); border-radius: 12px; padding: 16px 18px; color: var(--fg-2); }
.feed-state svg { flex: none; color: var(--accent, #D4261A); margin-top: 2px; }
.feed-state p { margin: 0; font-size: 14px; line-height: 1.55; }
.feed-state a { color: var(--accent, #D4261A); font-weight: 600; }
.feed-state.off { background: #fff8e6; border-color: #f0c36d; }
.feed-state.off svg { color: #8a5a00; }
.feed-tok { background: var(--surface, #fff); border: 1px solid var(--border-1, #e7e5e0); border-radius: 12px; padding: 16px 18px; margin-bottom: 18px; }
.feed-tok-hd { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.feed-tok-tt { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; min-width: 0; }
.feed-tok-tt h2 { font-size: 17px; margin: 0; overflow-wrap: anywhere; }
.feed-badge { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--accent, #D4261A); background: var(--accent-soft, #f7eceb); border-radius: 999px; padding: 2px 9px; }
.feed-dl { font-size: 14px; }
.feed-dl dd { font-weight: 500; }
.feed-h3 { display: flex; align-items: center; gap: 7px; font-size: 14.5px; margin: 18px 0 6px; }
.feed-note { font-size: 13px; color: var(--fg-3); margin: 0 0 8px; line-height: 1.55; }
.feed-urls { border-top: 1px solid var(--border-1, #e7e5e0); }
.feed-url { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--border-1, #e7e5e0); }
.feed-url-t { font-weight: 700; font-size: 13.5px; color: var(--fg-1); }
.feed-url-u { font-family: var(--font-mono); font-size: 12.5px; color: var(--fg-2); overflow-wrap: anywhere; word-break: break-all; margin: 2px 0; }
.feed-url-use { font-size: 12px; color: var(--fg-3); }
.feed-url-act { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; max-width: 360px; }
.feed-url-st { flex-basis: 100%; text-align: right; min-height: 0; }
.feed-btn { display: inline-flex; align-items: center; gap: 5px; background: none; border: 1px solid var(--border-1, #d9d6cf); border-radius: 7px; padding: 6px 11px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--fg-2, #5b5750); cursor: pointer; white-space: nowrap; }
.feed-btn:hover:not(:disabled) { border-color: var(--accent, #D4261A); color: var(--accent, #D4261A); }
.feed-btn.pri { background: var(--accent, #D4261A); border-color: var(--accent, #D4261A); color: #fff; }
.feed-btn.pri:hover:not(:disabled) { background: var(--accent-dark, #A81C12); border-color: var(--accent-dark, #A81C12); color: #fff; }
.feed-btn:disabled { opacity: .55; cursor: default; }
.feed-copied { display: inline-flex; align-items: center; gap: 4px; color: #1e8a44; font-size: 12.5px; font-weight: 600; }
.feed-err { color: #b3261e; font-size: 12.5px; font-weight: 600; }
.feed-manual { margin-top: 12px; background: #fff8e6; border: 1px solid #f0c36d; border-radius: 10px; padding: 12px 14px; }
.feed-manual p { margin: 0 0 8px; font-size: 13px; color: #6b4a00; line-height: 1.5; }
.feed-manual-in { width: 100%; box-sizing: border-box; padding: 9px 11px; border: 1px solid var(--border-1, #d9d6cf); border-radius: 8px; background: #fff; color: var(--fg-1); font-size: 12.5px; }
.feed-manual-act { display: flex; justify-content: flex-end; margin-top: 8px; }
.feed-rot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 16px; }
.feed-rot .btn-ghost:disabled { opacity: .5; cursor: default; background: transparent; color: var(--fg-1); border-color: var(--border-2); }
.feed-rot-n { font-size: 13px; color: var(--fg-3); line-height: 1.5; flex: 1; min-width: 220px; }
.feed-limit { color: #b3261e; font-weight: 600; }
.feed-msg { margin-top: 12px; }
.feed-guide { margin-top: 30px; }
.feed-h2 { display: flex; align-items: center; gap: 8px; margin-top: 0; }
.feed-gd { border: 1px solid var(--border-1, #e7e5e0); border-radius: 10px; background: var(--surface, #fff); margin-top: 10px; }
.feed-gd summary { cursor: pointer; padding: 13px 16px; font-weight: 700; font-size: 14.5px; color: var(--fg-1); list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.feed-gd summary::-webkit-details-marker { display: none; }
.feed-gd summary::after { content: '+'; font-size: 18px; font-weight: 700; color: var(--accent, #D4261A); line-height: 1; }
.feed-gd[open] summary::after { content: '−'; }
.feed-gd[open] summary { border-bottom: 1px solid var(--border-1, #e7e5e0); }
.feed-gd-body { padding: 12px 16px 14px; font-size: 13.5px; line-height: 1.6; color: var(--fg-2); }
.feed-gd-body p { margin: 0 0 10px; }
.feed-gd-body ol { margin: 0 0 10px; padding-left: 20px; }
.feed-gd-body li { margin-bottom: 7px; }
.feed-gd-body code, .feed-rule code { font-family: var(--font-mono); font-size: 12px; background: var(--bg-2, #f3f1ec); border-radius: 4px; padding: 1px 5px; overflow-wrap: anywhere; }
.feed-tool { background: var(--bg-2, #f3f1ec); border-radius: 8px; padding: 9px 12px; }
.feed-sub { font-weight: 700; color: var(--fg-1); margin-top: 6px !important; }
.feed-miss { display: inline-block; color: #8a5a00; font-size: 12.5px; font-weight: 600; }
.feed-ex { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 8px 0 4px; }
.feed-gd-body .feed-ex-u { flex: 1 1 260px; min-width: 0; display: block; background: var(--bg-2, #f3f1ec); border: 1px dashed var(--border-2, #cfcac0); border-radius: 6px; padding: 6px 9px; font-size: 12px; color: var(--fg-2); word-break: break-all; }
.feed-img-rule { display: flex; align-items: flex-start; gap: 7px; background: var(--accent-soft, #f7eceb); border-radius: 8px; padding: 8px 11px; margin: 10px 0 0 !important; font-size: 13px; color: var(--fg-1); }
.feed-img-rule svg { flex: none; color: var(--accent, #D4261A); margin-top: 3px; }
.feed-fields { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 0 0 10px; }
.feed-fields dt { padding-top: 1px; }
.feed-fields dd { margin: 0; }
.feed-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.feed-rule { background: var(--surface, #fff); border: 1px solid var(--border-1, #e7e5e0); border-radius: 10px; padding: 12px 16px; }
.feed-rule .feed-h3 { margin-top: 0; }
.feed-rule-wide { grid-column: 1 / -1; }
.feed-rule p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--fg-2); }
@media (max-width: 760px) {
  .feed-url { grid-template-columns: minmax(0, 1fr); }
  .feed-url-act { justify-content: flex-start; max-width: none; }
  .feed-url-st { text-align: left; }
  .feed-rules { grid-template-columns: 1fr; }
  .feed-fields { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .feed-fields dd { margin-bottom: 8px; }
}
@media (max-width: 600px) {
  /* Pe telefon, eticheta deasupra valorii: coloana „ULTIMA DESCĂRCARE” strivea valorile. */
  .feed-dl { grid-template-columns: minmax(0, 1fr); gap: 1px 0; }
  .feed-dl dd { margin-bottom: 8px; }
  .feed-tok { padding: 14px 14px; }
  /* Etichetele lungi („Pentru MerchantPro — produse cu variante”) se rup pe două rânduri, nu ies din card. */
  .feed-url-act .feed-btn { white-space: normal; text-align: left; max-width: 100%; }
}
@media (hover: none) and (pointer: coarse) {
  .feed-btn { min-height: 44px; padding-left: 14px; padding-right: 14px; }
  .feed-gd summary { min-height: 48px; }
}


/* ============ prezentarea portalului — sub formularul de login, pagina publică `/` (v3.16) ============
   Aceleași clase în HTML-ul trimis de server (fără JavaScript, routes/b2bLanding.ts) și în React
   (login.jsx → LoginLanding). */
.lp { background: #fff; border-top: 1px solid var(--border-1); color: var(--fg-1); font-family: var(--font-sans); }
.lp-in { max-width: 1080px; margin: 0 auto; padding: 64px 24px 40px; }
.lp-h1 {
  font-family: var(--font-serif); font-weight: 700; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.1;
  letter-spacing: -0.02em; margin: 10px 0 18px;
  text-wrap: wrap; /* titlul umple rândul (regula generală din tokens.css echilibrează titlurile și lăsa gol în dreapta) */
}
.lp-lede { font-size: 17px; line-height: 1.6; color: var(--fg-2); margin: 0 0 12px; text-wrap: pretty; }
.lp-stats { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--border-strong); }
.lp-stats li { display: flex; flex-direction: column; gap: 3px; padding: 16px 16px 0 0; }
.lp-stats b { font-family: var(--font-mono); font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.lp-stats span { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); line-height: 1.3; }
.lp-h2 { font-family: var(--font-serif); font-weight: 700; font-size: 26px; line-height: 1.15; letter-spacing: -0.015em; margin: 56px 0 18px; }
.lp-h3 { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-2); margin: 28px 0 12px; }
.lp-p { font-size: 15.5px; line-height: 1.6; color: var(--fg-2); margin: 0 0 14px; }
.lp-feats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lp-feat { border: 1px solid var(--border-1); background: var(--bg-1); padding: 20px; }
.lp-feat h3 { font-size: 16px; font-weight: 700; line-height: 1.3; margin: 0 0 6px; }
.lp-feat p { font-size: 14.5px; line-height: 1.55; color: var(--fg-2); margin: 0; }
.lp-ic { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 12px; }
.lp-cats, .lp-brands { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lp-cats li { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border-2); background: #fff; padding: 9px 14px; font-size: 14.5px; font-weight: 600; }
.lp-cats img { height: 22px; width: auto; display: block; }
.lp-cat-mask {
  flex: none; width: 22px; height: 22px; display: block;
  -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}
.lp-brands { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.lp-brand { display: flex; align-items: center; justify-content: center; height: 72px; padding: 10px 14px; border: 1px solid var(--border-1); background: #fff; }
.lp-brand img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lp-brand-txt { font-size: 14px; font-weight: 700; letter-spacing: 0.02em; color: var(--fg-2); text-align: center; }
.lp-steps { list-style: none; counter-reset: lp-step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lp-steps li { counter-increment: lp-step; border-top: 2px solid var(--border-strong); padding-top: 14px; }
.lp-steps li::before { content: counter(lp-step, decimal-leading-zero); font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--accent); }
.lp-steps h3 { font-size: 16px; font-weight: 700; line-height: 1.3; margin: 6px 0; }
.lp-steps p { font-size: 14.5px; line-height: 1.55; color: var(--fg-2); margin: 0; }
.lp-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin: 28px 0 0; }
.lp-cta .btn-primary, .lp-cta .btn-ghost { text-decoration: none; }
.lp-cta .btn-ghost { padding: 11px 16px; }
.lp-cta-note { font-size: 13.5px; color: var(--fg-3); }
.lp-faq { border-top: 1px solid var(--border-1); }
.lp-faq details { border-bottom: 1px solid var(--border-1); }
.lp-faq summary { cursor: pointer; list-style: none; position: relative; padding: 16px 32px 16px 0; font-size: 16px; font-weight: 600; line-height: 1.35; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 20px; font-weight: 400; color: var(--fg-3); }
.lp-faq details[open] summary::after { content: '–'; }
.lp-faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lp-faq details p { margin: 0 0 16px; font-size: 15px; line-height: 1.6; color: var(--fg-2); }
.lp-foot { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--border-1); font-size: 12.5px; color: var(--fg-3); }
.lp-foot a { color: var(--fg-2); text-decoration: none; }
.lp-foot a:hover { color: var(--accent); }
/* indiciul de sub formular: mai jos e prezentarea */
.lp-more {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; padding: 6px 10px; font: inherit; font-size: 13px; font-weight: 600; color: var(--fg-3); white-space: nowrap;
}
.lp-more:hover { color: var(--accent); }
/* varianta trimisă de server, înainte de montarea aplicației (și fără JavaScript): scheletul zonei de
   login (aceleași clase ca formularul real) + prezentarea */
.lp-noscript { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--fg-2); }
@media (max-width: 900px) {
  .lp-feats, .lp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-brands { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .lp-in { padding: 44px 16px 32px; }
  .lp-feats, .lp-steps { grid-template-columns: 1fr; }
  .lp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 6px; }
  .lp-h2 { font-size: 23px; margin-top: 44px; }
  .lp-lede { font-size: 16px; }
  .lp-cta .btn-primary, .lp-cta .btn-ghost { width: 100%; justify-content: center; }
  .lp-brands { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lp-brand { height: 60px; padding: 8px 10px; }
}
