/* ============================================================
   Wifimag — limbaj vizual "patch panel / instrument"
   Boldness într-un singur loc: LED-ul de link (verde) pe stare/activ.
   ============================================================ */

:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --ink: #11202e;
  --ink-soft: #1d3142;
  --muted: #5c6b7a;
  --faint: #8a98a6;
  --line: #dde3ea;
  --line-soft: #e9edf2;
  --brand: #12a150;        /* verde de brand — acțiuni, linkuri, activ */
  --brand-strong: #0c7f3e; /* hover */
  --brand-soft: #e6f6ec;   /* tinte */
  --led: #12a150;          /* stare „în stoc" / activ (= brand) */
  --led-soft: #e6f6ec;
  --amber: #b5790a;        /* „la comandă" */
  --amber-soft: #f6ecd4;
  --focus: #2e6bff;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 17px/1.55 var(--font-body);
  color: var(--ink);
  background: var(--bg);
}

a { color: inherit; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* ---------- Topbar (strip utilitar) ---------- */
.topbar { background: var(--ink); color: #aeb9c4; font-size: 13px; }
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 36px; }
.topbar a { color: #cdd6df; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar-info, .topbar-auth { display: flex; align-items: center; gap: 10px; }
.topbar-badge { color: var(--led); font-weight: 600; }
.topbar-sep { color: #4a5763; }
.topbar-auth .logout-form { margin: 0; }
.topbar-auth .logout-form button { background: 0; border: 0; padding: 0; color: #cdd6df; cursor: pointer; font: inherit; }
.topbar-auth .logout-form button:hover { color: #fff; }

/* ---------- Masthead (alb) ---------- */
.masthead { background: var(--surface); border-bottom: 1px solid var(--line); }
.masthead-row { display: flex; align-items: center; gap: 28px; height: 76px; }

.wordmark { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); flex: none; }
.wordmark .mark { fill: var(--brand); flex: none; }
.wordmark-text { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.03em; }

.search { flex: 1; max-width: 640px; position: relative; }
.search input {
  width: 100%; height: 46px; padding: 0 96px 0 16px;
  font-family: var(--font-body); font-size: 15px; color: var(--ink);
  background: var(--surface); border: 2px solid var(--line); border-radius: 10px;
}
.search input::placeholder { color: var(--faint); }
.search input:focus { border-color: var(--brand); outline: none; }
.search button {
  position: absolute; right: 5px; top: 5px;
  width: 80px; height: 36px; display: grid; place-items: center;
  background: var(--brand); border: 0; border-radius: 8px; cursor: pointer; color: #fff;
}
.search button:hover { background: var(--brand-strong); }
.search button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

/* acțiuni: cont + coș */
.header-actions { position: relative; margin-left: auto; display: flex; align-items: center; gap: 6px; flex: none; }
.action {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  text-decoration: none; color: var(--ink); padding: 6px 12px; border-radius: 10px; position: relative;
}
.action:hover { background: var(--bg); }
.action svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.action-label { font-size: 12px; }
/* dropdown cont — centrat sub iconiță (JS îl deplasează dacă ar ieși din ecran) */
.account-menu { position: relative; }
.account-panel {
  display: none; position: absolute; left: 50%; transform: translateX(-50%); top: calc(100% + 9px); z-index: 45;
  min-width: 210px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: 0 14px 30px rgba(15, 23, 34, 0.14); padding: 6px;
}
.account-menu:hover .account-panel, .account-menu:focus-within .account-panel { display: block; }
.account-panel-head { padding: 7px 12px; font-size: 12.5px; color: var(--muted); border-bottom: 1px solid var(--line-soft); margin-bottom: 4px; }
.account-panel a, .account-panel button {
  display: block; width: 100%; text-align: left; box-sizing: border-box;
  padding: 9px 12px; border-radius: 7px; font: inherit; font-size: 14px;
  color: var(--ink); text-decoration: none; background: 0; border: 0; cursor: pointer;
}
.account-panel a:hover, .account-panel button:hover { background: var(--bg); }
.account-panel .logout-form { margin: 4px 0 0; border-top: 1px solid var(--line-soft); padding-top: 4px; }
.account-panel .logout-item { color: #c0392b; }

/* mini-coș (dropdown peste iconița Coș) */
.cart-menu { position: relative; }
.cart-panel {
  display: none; position: absolute; left: 50%; transform: translateX(-50%); top: calc(100% + 9px); z-index: 45;
  width: 340px; max-width: calc(100vw - 24px); background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 14px 30px rgba(15, 23, 34, 0.14); padding: 10px;
}
.cart-menu:hover .cart-panel, .cart-menu:focus-within .cart-panel { display: block; }

/* săgeata + puntea de hover pentru dropdown-urile din header */
/* săgeata fixată pe iconiță (JS setează --arrow-x; implicit centrată pe panou) */
.account-panel::before, .cart-panel::before {
  content: ""; position: absolute; top: -7px; left: var(--arrow-x, 50%); margin-left: -6px;
  width: 12px; height: 12px; background: var(--surface);
  border-left: 1px solid var(--line); border-top: 1px solid var(--line);
  transform: rotate(45deg);
}
.account-panel::after, .cart-panel::after {
  content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px;
}
.minicart-items { list-style: none; margin: 0 0 8px; padding: 0; max-height: 360px; overflow-y: auto; }
.minicart-items li { display: grid; grid-template-columns: 46px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 6px; border-bottom: 1px solid var(--line-soft); }
.mc-thumb img { width: 46px; height: 46px; object-fit: contain; }
.mc-info { min-width: 0; }
.mc-name { display: block; font-size: 13px; color: var(--ink); text-decoration: none; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-name:hover { color: var(--brand); }
.mc-qty { font-size: 12px; color: var(--muted); }
.mc-sub { font-family: var(--font-display); font-weight: 600; font-size: 13px; white-space: nowrap; }
.mc-del { display: flex; }
.mc-remove {
  width: 24px; height: 24px; border: 0; background: transparent; border-radius: 6px;
  color: var(--faint); font-size: 19px; line-height: 1; cursor: pointer;
}
.mc-remove:hover { color: #c0392b; background: #faecec; }
.mc-remove:disabled { opacity: .5; cursor: default; }
.minicart-foot { padding: 10px 6px 4px; }
.mc-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.mc-total .price { font-size: 18px; }
.minicart-foot .btn-block { text-align: center; text-decoration: none; }
.mc-viewcart { display: block; text-align: center; margin-top: 8px; font-size: 13px; color: var(--muted); text-decoration: none; }
.mc-viewcart:hover { color: var(--ink); }
.minicart-empty { padding: 20px 12px; text-align: center; color: var(--muted); font-size: 14px; }

.cart-count {
  position: absolute; top: 0; right: 6px;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--brand); color: #fff; border-radius: 999px;
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}
.cart-count[hidden] { display: none; }

/* ---------- Bara de categorii ---------- */
.catbar { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; }
.catbar-row { display: flex; align-items: stretch; gap: 2px; }

/* mega-meniu „Toate categoriile" */
.megamenu { position: relative; display: flex; }
.mega-trigger {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 48px; padding: 0 18px; cursor: pointer;
  background: var(--brand); color: #fff; border: 0; text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 14.5px;
}
.mega-trigger svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.mega-trigger:hover,
.megamenu:hover .mega-trigger,
.megamenu:focus-within .mega-trigger { background: var(--brand-strong); }
.mega-panel {
  display: grid; position: absolute; top: 100%; left: 0; z-index: 40;
  min-width: 980px; background: var(--surface); border: 1px solid var(--line);
  border-top: 0; border-radius: 0 0 12px 12px; box-shadow: 0 16px 36px rgba(15, 23, 34, 0.14);
  padding: 20px 24px; grid-template-columns: 1.8fr 1fr 1fr; gap: 16px 0;
  /* ascuns: pliat sub buton; iese cu slide în jos (clip-path de sus) */
  opacity: 0; visibility: hidden; clip-path: inset(0 0 100% 0);
  transition: clip-path .2s ease, opacity .18s ease, visibility 0s linear .2s;
}
.megamenu:hover .mega-panel, .megamenu:focus-within .mega-panel {
  opacity: 1; visibility: visible; clip-path: inset(0 0 0 0);
  transition: clip-path .2s ease, opacity .18s ease, visibility 0s;
}
.mega-col { padding-right: 26px; }
.mega-col + .mega-col { border-left: 1px solid var(--line); padding-left: 26px; }
.mega-col h4 { font-family: var(--font-display); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); margin: 0 0 12px; }
.mega-col ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 52px; }
.mega-col li { margin-bottom: 8px; break-inside: avoid; }
.mega-col a { color: var(--ink); text-decoration: none; font-size: 14px; display: flex; justify-content: space-between; gap: 12px; }
.mega-col a:hover { color: var(--brand); }
.mega-n { color: var(--faint); font-size: 12px; }
.mega-brands ul, .mega-eco ul { columns: 1; }
.mega-logos { display: flex; flex-wrap: wrap; gap: 8px; }
.mega-logos a { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; }
.mega-logos a:hover { border-color: var(--brand); }
.mega-logos img { max-height: 22px; max-width: 96px; object-fit: contain; }

/* linkuri categorii (curate, fără LED/counts) */
.catlinks { display: flex; flex-direction: column; justify-content: center; gap: 3px; margin-left: 10px; flex: 1; min-width: 0; padding: 6px 0; }
.catlinks-line { display: flex; flex-wrap: wrap; align-items: center; }
.catlinks-main { justify-content: space-between; gap: 2px 16px; }
.catlinks-group { display: inline-flex; flex-wrap: wrap; align-items: center; }
.catlinks-eco { gap: 0 2px; }
.catlink-eco { color: var(--brand-strong); font-weight: 600; }
.catlink-eco:hover { color: var(--brand); }
.catlink {
  display: inline-flex; align-items: center; padding: 0 11px;
  font-family: var(--font-display); font-weight: 500; font-size: 14.5px;
  color: var(--ink); text-decoration: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.catlink:hover { color: var(--brand); }
.catlink.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.catlink-sep { align-self: center; width: 1px; height: 18px; background: var(--line); margin: 0 6px; }
.catlink-brand { color: var(--muted); }
.catlink-brand:hover { color: var(--brand); }

/* ---------- Pagina de familie (brand) ---------- */
.brand-head { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; }
.brand-head-logo {
  display: inline-flex; align-items: center; justify-content: center;
  height: 64px; padding: 0 18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; flex: none;
}
.brand-head-logo img { max-height: 40px; max-width: 150px; object-fit: contain; }
.brand-head h1 { margin: 2px 0; }
.brand-group { margin-bottom: 56px; }
.brand-group-head {
  display: flex; align-items: baseline; gap: 10px;
  margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.brand-group-head h2 { font-family: var(--font-display); font-size: 21px; letter-spacing: -0.01em; margin: 0; }
.brand-group-head .led { align-self: center; }
.brand-group-head .result-count { margin-left: auto; font-family: var(--font-display); font-size: 14px; color: var(--muted); }

.eyebrow {
  font-family: var(--font-display); font-size: 13px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.13em; color: var(--faint);
}

/* ---------- Conținut ---------- */
main.container { padding-top: 26px; padding-bottom: 56px; }

h1 { font-family: var(--font-display); font-size: 28px; letter-spacing: -0.02em; margin: 0 0 18px; }

/* breadcrumb — element de navigație clar, nu text rătăcit: pastilă cu linkuri verzi */
.breadcrumb {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 7px; max-width: 100%;
  font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 15px; margin-bottom: 20px;
}
.breadcrumb a { color: var(--brand-strong); font-weight: 500; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb > span { font-size: 0; line-height: 1; }
.breadcrumb > span::before { content: "›"; font-size: 16px; color: var(--muted); }

.listing-head {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.listing-head h1 { margin: 0; }
.listing-head .result-count { font-family: var(--font-display); font-size: 14px; color: var(--muted); }
.listing-head .eyebrow { order: -1; flex-basis: 100%; }

/* ---------- Grid produse ---------- */
/* ---- Homepage: hero (panou de instrument) + secțiuni curate ---- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: #eaf1f6;
  border-radius: 16px; margin: 4px 0 30px;
  padding: 40px 44px;
  display: flex; align-items: center; gap: 28px;
}
.hero-body { position: relative; z-index: 1; max-width: 64ch; }
.hero-eyebrow {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--brand); margin: 0 0 14px;
}
.hero-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(26px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.02em;
  margin: 0 0 14px; color: #fff;
}
.hero-accent { color: var(--brand); }
/* luciu verde subtil care trece peste titlu din când în când */
.hero-shine {
  background: linear-gradient(110deg, #fff 0%, #fff 45%, #8fefba 50%, #fff 55%, #fff 100%);
  background-size: 300% 100%; background-repeat: no-repeat; background-position: 85% 0;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: hero-shine 8s linear infinite;
}
/* de la stânga la dreapta (sensul de citire); flick rapid (~0.8s) care prinde colțul
   ochiului, apoi pauză. no-repeat + 300% => luciul iese complet în dreapta (nu rămâne la mijloc) */
@keyframes hero-shine {
  0% { background-position: 85% 0; }
  10% { background-position: 15% 0; }
  100% { background-position: 15% 0; }
}
.hero-sub { font-size: 16px; line-height: 1.55; color: #b7c4cf; margin: 0 0 22px; max-width: 56ch; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.hero-chip {
  font-family: var(--font-display); font-weight: 500; font-size: 14px;
  color: #dfe8ee; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px;
  padding: 6px 14px; transition: border-color 0.14s, background 0.14s, color 0.14s;
}
.hero-chip:hover { border-color: var(--brand); background: var(--brand); color: #fff; }
.hero-chip-all { border-color: var(--brand); color: var(--brand); }
.hero-chip-all:hover { color: #fff; }
/* semnătura: barele de semnal din wordmark, mărite ca grafică ambientală */
.hero-bars {
  position: absolute; right: 36px; bottom: 0; z-index: 0;
  display: flex; align-items: flex-end; gap: 10px; height: 100%;
  opacity: 0.5; pointer-events: none;
}
.hero-bars span { width: 16px; background: var(--brand); border-radius: 4px 4px 0 0; }
.hero-bars span:nth-child(1) { height: 24%; opacity: 0.35; }
.hero-bars span:nth-child(2) { height: 42%; opacity: 0.5; }
.hero-bars span:nth-child(3) { height: 62%; opacity: 0.7; }
.hero-bars span:nth-child(4) { height: 82%; opacity: 0.85; }
.hero-bars span:nth-child(5) { height: 100%; }

.trustbar {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin: -14px 0 34px;
}
.trust {
  display: flex; gap: 13px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 15px 17px;
}
.trust-ico {
  flex: none; display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--brand-soft); color: var(--brand);
}
.trust-ico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.trust-text strong { display: block; font-family: var(--font-display); font-size: 15.5px; color: var(--ink); margin-bottom: 2px; }
.trust-text span { font-size: 13.5px; line-height: 1.45; color: var(--muted); }

.home-section { margin: 0 0 36px; }
.home-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin: 0 0 16px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.home-section-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.home-section-title h2 {
  font-family: var(--font-display); font-size: 22px; letter-spacing: -0.01em; margin: 0;
}
.home-section-cap { font-size: 14px; color: var(--muted); margin: 0; }
.home-section-more {
  font-family: var(--font-display); font-weight: 500; font-size: 14px;
  color: var(--brand); text-decoration: none; white-space: nowrap; flex: none;
}
.home-section-more:hover { color: var(--brand-strong); }
.led {
  width: 9px; height: 9px; border-radius: 50%; flex: none;
  align-self: center; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent);
}
.led-brand { background: var(--brand); color: var(--brand); }
.led-amber { background: var(--amber); color: var(--amber); }
.led-ink { background: var(--ink-soft); color: var(--ink-soft); }

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

.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden;
  text-decoration: none; color: inherit;
  transition: border-color 0.14s, box-shadow 0.14s, transform 0.14s;
}
.card:hover {
  border-color: var(--line); transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15, 23, 34, 0.09);
}

.card-media {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  height: 128px; background: var(--surface);
  border-bottom: 1px solid var(--line-soft);
}
.card-media .thumb { width: 100px; height: 100px; object-fit: contain; }

/* badge-uri overlay pe imagine: discount + lichidare */
.card-flags { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.badge {
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  line-height: 1.4; padding: 2px 8px; border-radius: 6px; color: #fff;
}
.badge-discount { background: #e2342f; }
.badge-clearance { background: var(--amber); }
.badge-restock { background: var(--brand); }
.badge-sh { background: var(--ink-soft); }

.card-body { padding: 12px 13px 13px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title {
  font-family: var(--font-display); font-weight: 500; font-size: 16px;
  line-height: 1.34; margin: 0;
  color: inherit; text-decoration: none;
}
.card-title:hover { text-decoration: underline; text-underline-offset: 2px; }
.card-brand { font-size: 14px; color: var(--muted); margin-top: -2px; }

.btn-add {
  margin-top: 4px; width: 100%;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  color: var(--brand); background: var(--surface); border: 1px solid var(--brand);
  border-radius: 8px; padding: 8px 12px; cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.btn-add:hover { background: var(--brand); color: #fff; }
.btn-add:disabled { opacity: 0.5; cursor: default; }

.qty-input {
  width: 64px; height: 40px; padding: 0 10px; text-align: center;
  font-family: var(--font-display); font-size: 16px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
}

.codes { display: flex; flex-wrap: wrap; gap: 3px 12px; }
.code { font-family: var(--font-mono); font-size: 13.5px; color: var(--muted); }
.code strong { color: var(--ink); font-weight: 600; }
.code.muted { color: var(--faint); }

.card-brief {
  color: var(--muted); font-size: 14px; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { margin-top: auto; padding-top: 4px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }

/* prețuri: cel vechi (tăiat) DEASUPRA celui curent */
.prices { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink); white-space: nowrap; }
.price.big { font-size: 30px; }
.price-old { font-family: var(--font-display); font-size: 13px; color: #e2342f; text-decoration: line-through; white-space: nowrap; }
.buybox .price-old { font-size: 15px; }
.product-brand { color: var(--muted); margin: 0 0 12px; font-size: 16px; }

.stock {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-size: 12.5px; font-weight: 500;
  white-space: nowrap;
}
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.stock.in, .stock.order { color: var(--led); }
.stock.in::before, .stock.order::before { background: var(--led); box-shadow: 0 0 4px 0 rgba(18, 161, 80, 0.55); }
.stock.soon { color: var(--amber); }
.stock.soon::before { background: var(--amber); }
.stock.out { color: #b03636; }
.stock.out::before { background: #c0392b; }
.stock-note { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.stock-note a { color: var(--ink); font-weight: 600; }

/* ---------- Pagina de produs ---------- */
.product { display: grid; grid-template-columns: 360px 1fr; gap: 30px; align-items: stretch; }
.product-media {
  position: relative; align-self: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px;
}
.product-media > img { max-width: 100%; max-height: 340px; object-fit: contain; display: block; margin: 0 auto; }

/* galerie de produs: slider glisabil */
.gallery { position: relative; }
.gallery-viewport { overflow: hidden; touch-action: pan-y; }
.gallery-track { display: flex; transition: transform .32s ease; will-change: transform; }
.gallery-slide {
  flex: 0 0 100%;
  display: flex; align-items: center; justify-content: center; height: 250px;
}
.gallery-slide img { max-width: 250px; max-height: 250px; width: auto; height: auto; object-fit: contain; }
a[data-lightbox] { cursor: zoom-in; }
.gallery-nav {
  position: absolute; top: 107px; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .92); color: var(--ink);
  font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(15, 23, 34, .12);
}
.gallery-prev { left: 0; } .gallery-next { right: 0; }
.gallery-nav:disabled { opacity: .3; cursor: default; box-shadow: none; }
.gallery-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.gallery-dot { width: 8px; height: 8px; border-radius: 50%; border: 0; background: #c5cdd6; cursor: pointer; padding: 0; }
.gallery-dot.is-active { background: var(--brand); }

/* lightbox (mărire imagine) — fade + scale la deschidere/închidere */
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 40px; opacity: 0; transition: opacity .18s ease; }
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(8, 13, 20, .9); }
.lightbox-stage { position: relative; z-index: 1; margin: 0; transform: scale(.92); transition: transform .2s cubic-bezier(.2, .7, .3, 1); }
.lightbox.is-open .lightbox-stage { transform: scale(1); }
.lightbox-stage img { display: block; max-width: 90vw; max-height: 86vh; object-fit: contain; border-radius: 6px; background: #fff; transition: opacity .2s ease; }
.lightbox-close { position: absolute; top: 14px; right: 18px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.lightbox-close:hover { background: rgba(255, 255, 255, .22); }
/* săgețile stau pe marginea pozei, pe jumătate ieșite în afară (peste fundalul negru),
   ca să nu acopere zone utile; outline + dropshadow ca să rămână vizibile pe negru */
.lightbox-nav {
  position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(17, 25, 35, .5); color: #fff; border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .55);
  font-size: 28px; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.lightbox-nav:hover { background: rgba(17, 25, 35, .82); }
.lightbox-prev { left: 0; transform: translate(-50%, -50%); }
.lightbox-next { right: 0; transform: translate(50%, -50%); }

.product-info { display: flex; flex-direction: column; }
.product-info h1 { margin-bottom: 10px; }
.product-info .brief { font-size: 17px; color: var(--ink-soft); }
.product-info .codes { margin-bottom: 14px; }

.buybox {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin: 20px 0 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-top: auto; /* aliniază blocul de cumpărare la baza pozei */
}
.buybox + .stock-note { margin-bottom: 0; }
/* produs scos din ofertă (discontinued) — înlocuiește buybox-ul */
.product-retired {
  margin-top: auto; background: var(--amber-soft); border: 1px solid #e6d3a3;
  border-radius: 10px; padding: 14px 16px; color: #6b5212; font-size: 15px; line-height: 1.5;
}
.product-retired a { color: var(--brand-strong); font-weight: 600; }
.btn {
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  background: var(--brand); color: #fff; border: 0; border-radius: 9px;
  padding: 11px 18px; cursor: pointer;
}
.btn:hover { background: var(--brand-strong); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn-sm { font-size: 14px; padding: 7px 13px; border-radius: 8px; }
.btn-ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn-ghost:hover { background: var(--brand); color: #fff; }

/* ---------- Descriere produs (markup parsat) ---------- */
.descr { margin-top: 22px; color: #2c3744; font-size: 16px; line-height: 1.65; }
.product-descr { margin-top: 32px; }
.descr p { margin: 0 0 10px; }
/* casete de atenționare în descriere: ! / !!! = warning, ? = info */
.descr .callout { margin: 14px 0; padding: 12px 16px; border-radius: 8px; border-left: 4px solid; line-height: 1.55; }
.descr .callout-warning { background: var(--amber-soft); border-color: var(--amber); color: #5e4a12; }
.descr .callout-info { background: #e8f0fe; border-color: #2e6bff; color: #1c3a73; }
.descr .callout a { font-weight: 600; }
.descr strong { color: var(--ink); font-weight: 600; }
.descr em { font-style: italic; }
.descr sup { font-size: 0.7em; }
.descr a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.descr .info { background: var(--amber-soft); padding: 0 5px; border-radius: 4px; }

.descr ul {
  list-style: none; margin: 6px 0 18px; padding: 0;
  border-top: 1px solid var(--line-soft);
}
.descr li {
  padding: 6px 2px; border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono); font-size: 14.5px; color: #3a4654;
}

.descr table { border-collapse: collapse; width: 100%; margin: 10px 0 18px; font-size: 15px; }
.descr th, .descr td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; }
.descr th { background: var(--bg); font-family: var(--font-mono); font-size: 14px; font-weight: 600; }

/* media din descriere — limitată ca lățime (descrierea e acum full-width) */
.descr .figure { margin: 16px 0; max-width: 600px; }
.descr .figure a { display: inline-block; max-width: 100%; line-height: 0; }
.descr .figure img { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; }
.descr video { max-width: min(100%, 600px); height: auto; border-radius: 8px; margin: 16px 0; display: block; }

/* Produse asociate (%related) */
.product-related { margin: 22px 0; }
.product-related > strong { display: block; margin-bottom: 12px; font-family: var(--font-display); font-size: 17px; }
.product-related ul {
  list-style: none; margin: 0; padding: 0 0 10px; border: 0;
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity;
}
.product-related li {
  flex: 0 0 168px; box-sizing: border-box; scroll-snap-align: start;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: var(--surface);
  display: flex; flex-direction: column; gap: 6px;
}
.product-related .image { display: flex; justify-content: center; }
.product-related .image img { width: 100px; height: 100px; object-fit: contain; }
.product-related .title a { font-size: 15px; color: var(--ink); text-decoration: none; line-height: 1.3; }
.product-related .title a:hover { text-decoration: underline; }
.product-related .brand { font-family: var(--font-display); font-size: 13px; color: var(--muted); }
.product-related .price { font-family: var(--font-display); font-weight: 600; margin-top: auto; }
.product-related .stock { font-size: 12.5px; }

/* ---------- Footer ---------- */
/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cbd5e1; margin-top: 48px; font-family: var(--font-body); font-size: 15px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.3fr;
  gap: 28px; padding: 40px 0 30px;
}
.footer-brand .wordmark { gap: 8px; }
.footer-brand .mark { fill: var(--led); }
.footer-brand .wordmark-text { color: #fff; font-size: 22px; }
.footer-tag { color: #9fb0c2; line-height: 1.55; margin: 12px 0; max-width: 32ch; }
.footer-co { color: #cbd5e1; line-height: 1.7; margin: 0 0 14px; }
.footer-pay { display: flex; gap: 8px; }
.footer-pay img { background: #fff; border-radius: 4px; padding: 3px 6px; display: block; }

.footer-col h4 { color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 17px; margin: 0 0 13px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: #cbd5e1; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-col li.muted { color: #7e8ea0; }

.footer-bar { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer-bar-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 15px 0; color: #7e8ea0; }
.footer-auth a { color: #9fb0c2; text-decoration: none; margin-left: 16px; }
.footer-auth a:first-child { margin-left: 0; }
.footer-auth a:hover { color: #fff; }

/* ---------- Pagini statice + contact ---------- */
.static-page { max-width: 760px; }
.static-page h3 { font-family: var(--font-display); font-size: 18px; margin: 22px 0 8px; }
.static-page p { margin: 0 0 12px; color: #36424f; line-height: 1.65; }
.static-page ul { margin: 0 0 14px; padding-left: 20px; color: #36424f; line-height: 1.6; }
.static-page a { color: var(--brand); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-info .panel p { margin: 8px 0; line-height: 1.5; }
.contact-phones { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.contact-phones a { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-phones a:hover { text-decoration: underline; }
.contact-form-panel .fld { margin-bottom: 12px; }

/* secțiuni contact (echipă, garanție) cu antet unitar */
.contact-section { margin: 32px 0 0; }
.contact-section > h2 { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.01em; margin: 0 0 4px; }
.section-lead { color: var(--muted); margin: 0 0 18px; }

/* echipa (foto staff la dimensiunea naturală, fără scalare) */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.staff-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 14px;
}
/* ramă canonică 120×132 pentru aliniere; poza rămâne la dimensiunea naturală
   (centrată în ramă), deci cele 120×132 se afișează 1:1, fără scalare */
.staff-photo {
  width: 120px; height: 132px; display: grid; place-items: center;
  overflow: hidden; border-radius: 8px; margin: 0 auto 11px;
}
.staff-photo img { display: block; }
.staff-name { font-family: var(--font-display); font-size: 16px; color: var(--ink); }
.staff-job { font-size: 13.5px; color: var(--muted); margin: 2px 0 9px; line-height: 1.35; }
.staff-phone { margin-top: auto; font-family: var(--font-display); font-weight: 600; color: var(--brand); text-decoration: none; }
.staff-phone:hover { color: var(--brand-strong); }
.staff-vacation { margin-top: auto; font-size: 13px; color: var(--amber); line-height: 1.4; }

.warranty-panel p { line-height: 1.6; margin: 0 0 12px; }
.warranty-list { margin: 0; padding-left: 20px; line-height: 1.6; color: #36424f; display: flex; flex-direction: column; gap: 7px; }
.warranty-list a { color: var(--brand); font-weight: 600; text-decoration: none; }
.warranty-list a:hover { text-decoration: underline; }

/* verificare garanție după S/N (zona de cont) */
.warranty-check { display: flex; gap: 10px; margin: 0 0 22px; max-width: 460px; }
.warranty-check input {
  flex: 1; min-width: 0; padding: 10px 13px; font-family: var(--font-mono); font-size: 15px;
  color: var(--ink); background: var(--surface); border: 2px solid var(--line); border-radius: 9px;
}
.warranty-check input:focus { border-color: var(--brand); outline: none; }
.warranty-check .btn { flex: none; }
.warranty-result {
  background: var(--surface); border: 1px solid var(--line); border-left-width: 4px;
  border-radius: 12px; padding: 18px 20px; max-width: 560px;
}
.warranty-result.is-ok { border-left-color: var(--brand); }
.warranty-result.is-expired { border-left-color: #e2342f; }
.warranty-result.is-unknown, .warranty-result.is-notfound { border-left-color: var(--amber); }
.wr-status {
  display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 12.5px;
  text-transform: uppercase; letter-spacing: 0.04em; padding: 3px 10px; border-radius: 6px; color: #fff;
}
.is-ok .wr-status { background: var(--brand); }
.is-expired .wr-status { background: #e2342f; }
.is-unknown .wr-status, .is-notfound .wr-status { background: var(--amber); }
.wr-title { font-family: var(--font-display); font-size: 19px; margin: 12px 0 14px; }
.wr-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 22px; margin: 0; }
.wr-meta dt { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.wr-meta dd { margin: 2px 0 0; font-family: var(--font-display); font-weight: 600; font-size: 15.5px; color: var(--ink); }
.wr-note { margin: 14px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.wr-note a, .warranty-result a { color: var(--brand); font-weight: 600; text-decoration: none; }
.wr-note a:hover { text-decoration: underline; }

/* ---------- Pagina coșului ---------- */
.cart { display: grid; grid-template-columns: 1fr 300px; gap: 26px; align-items: start; }
.cart-items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto 110px auto 30px;
  align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.cart-thumb { display: block; }
.cart-thumb img { width: 64px; height: 64px; object-fit: contain; }
.cart-name { font-family: var(--font-display); font-weight: 500; color: var(--ink); text-decoration: none; display: block; margin-bottom: 4px; }
.cart-name:hover { text-decoration: underline; }
.cart-unit { font-family: var(--font-display); font-size: 15px; color: var(--muted); white-space: nowrap; }
.cart-qty { display: flex; gap: 4px; }
.cart-qty input {
  width: 56px; height: 34px; text-align: center;
  font-family: var(--font-display); font-size: 15px;
  border: 1px solid var(--line); border-radius: 7px; background: var(--surface);
}
.cart-qty button {
  width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 7px;
  background: var(--surface); cursor: pointer; color: var(--muted); font-size: 17px;
}
.cart-qty button:hover { color: var(--ink); border-color: var(--line-strong); }
.cart-sub { font-family: var(--font-display); font-weight: 600; text-align: right; white-space: nowrap; }
.cart-remove {
  width: 30px; height: 30px; border: 0; background: transparent;
  color: var(--faint); font-size: 24px; line-height: 1; cursor: pointer; border-radius: 7px;
}
.cart-remove:hover { color: #c0392b; background: #faecec; }

.cart-summary {
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  padding: 18px 20px; position: sticky; top: 18px;
}
.cart-summary .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.cart-summary .row > span:first-child { flex: 1; }
.cart-summary .price { white-space: nowrap; }
.cart-summary .row.muted { color: var(--muted); font-size: 15px; }
.cart-summary .price { font-size: 22px; }
.btn-block { display: block; text-align: center; text-decoration: none; margin-top: 8px; }
.cart-note { color: var(--muted); font-size: 14px; margin: 10px 0 0; }

.cart-empty-state {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 36px; text-align: center; max-width: 420px;
}
.cart-empty-state p { color: var(--muted); margin: 0 0 16px; }
.cart-empty-state .btn { text-decoration: none; }

/* ---------- Toast ---------- */
#toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 50; }
.toast {
  background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px;
  font-size: 15px; font-family: var(--font-display); box-shadow: 0 8px 24px rgba(15,23,34,.25);
  opacity: 0; transform: translateY(10px); transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast::before { content: "✓ "; color: var(--led); font-weight: 700; }

/* modal de confirmare (acțiuni distructive) */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 34, .5); }
.modal-box {
  position: relative; width: 100%; max-width: 420px;
  background: var(--surface); border-radius: 14px; padding: 24px;
  box-shadow: 0 20px 50px rgba(15, 23, 34, .3); animation: modal-in .14s ease;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(6px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-title { font-family: var(--font-display); font-size: 18px; margin: 0 0 8px; }
.modal-msg { color: var(--muted); margin: 0 0 20px; line-height: 1.5; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.modal-btn { font-family: var(--font-display); font-weight: 600; font-size: 15px; padding: 9px 16px; border-radius: 9px; cursor: pointer; border: 1px solid transparent; }
.modal-btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.modal-btn-ghost:hover { border-color: var(--muted); }
.modal-btn-primary { background: var(--brand); color: #fff; }
.modal-btn-primary:hover { background: var(--brand-strong); }
.modal-btn-danger { background: #c0392b; color: #fff; }
.modal-btn-danger:hover { background: #a93226; }

/* autocomplete simplu (ex. județ) — input text normal + listă de sugestii */
.ac { position: relative; }
.ac-list {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px);
  margin: 0; padding: 4px; list-style: none; background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 23, 34, .12); max-height: 260px; overflow-y: auto;
}
.ac-list[hidden] { display: none; }
.ac-item { padding: 8px 11px; border-radius: 6px; cursor: pointer; font-size: 15px; }
.ac-item:hover, .ac-item.is-active { background: var(--brand-soft); }

.empty { color: var(--muted); max-width: 56ch; }
.empty code, .search-empty code { font-family: var(--font-mono); font-size: 0.92em; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; }
.search-empty { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 28px 30px; max-width: 60ch; }
.search-empty p { margin: 0 0 8px; }
.search-empty .muted-note { color: var(--muted); font-size: 16px; }
.search-empty a { color: var(--ink); font-weight: 600; }

/* ---------- Checkout ---------- */
.checkout { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; }
.checkout-main { display: flex; flex-direction: column; gap: 16px; }

.form-banner {
  background: #faecec; border: 1px solid #f0c9c9; color: #9a3636;
  padding: 10px 14px; border-radius: 8px; font-size: 15px;
}

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.panel h2 { font-family: var(--font-display); font-size: 18px; margin: 0 0 14px; }
.panel h2 small { font-weight: 400; font-size: 14px; color: var(--muted); }

.fld { display: block; margin-bottom: 12px; }
.fld:last-child { margin-bottom: 0; }
.fld-label { display: block; font-size: 14.5px; color: var(--muted); margin-bottom: 5px; }
.fld-label em { color: #c0392b; font-style: normal; }
.fld input, .fld textarea, .fld select {
  width: 100%; padding: 9px 11px; font-family: var(--font-body); font-size: 16px;
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px;
}
.fld input:focus, .fld textarea:focus, .fld select:focus { border-color: var(--ink); outline: none; }
.addr-select { font-weight: 500; }

.checkout-guest {
  background: var(--brand-soft); border: 1px solid #bfe6cd;
  padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 15px; color: var(--ink);
}
.checkout-guest a { color: var(--brand-strong); font-weight: 600; }
.pay-note {
  margin: 12px 0 0; padding: 10px 12px; background: #e8f0fe; border-left: 3px solid #2e6bff;
  border-radius: 6px; font-size: 13.5px; line-height: 1.5; color: #1c3a73;
}
.pay-note[hidden] { display: none; }
.fld.has-err input { border-color: #d9534f; background: #fdf6f6; }
/* la focus, câmpul cu eroare revine la aspectul normal (fără roșu) */
.fld.has-err input:focus, .fld.has-err textarea:focus, .fld.has-err select:focus {
  border-color: var(--ink); background: var(--surface);
}
.fld-err { display: block; color: #c0392b; font-size: 14px; margin-top: 4px; }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.options { display: flex; flex-direction: column; gap: 8px; }
.opt { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.opt:hover { border-color: var(--line-strong); }
.opt:has(input:checked) { border-color: var(--ink); background: #f7f9fb; }
.opt input { accent-color: var(--ink); }
.opt-body { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex: 1; }
.opt-name { font-size: 16px; }
.opt-cost { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.opt-cost.muted { font-weight: 400; color: var(--muted); }

/* Comutator segmentat (tip client) */
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 14px; }
.when-fizica, .when-juridica { margin-bottom: 12px; }
.segmented .seg { position: relative; padding: 10px 18px; cursor: pointer; font-size: 16px; color: var(--muted); }
.segmented .seg input { position: absolute; opacity: 0; width: 0; height: 0; }
.segmented .seg + .seg { border-left: 1px solid var(--line); }
.segmented .seg.on { background: var(--ink); color: #fff; }
.ship-fields { margin-top: 12px; }
.address-form .segmented { margin: 0; }

.checkout-summary { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; position: sticky; top: 18px; }
.checkout-summary h2 { font-family: var(--font-display); font-size: 18px; margin: 0 0 14px; }
.sum-items { list-style: none; margin: 0 0 14px; padding: 0 0 12px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.sum-items li { display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; font-size: 15px; align-items: baseline; }
.sum-q { font-family: var(--font-display); color: var(--muted); }
.sum-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sum-v { font-family: var(--font-display); white-space: nowrap; }
.sum-del { display: flex; align-self: center; }
.sum-remove {
  width: 22px; height: 22px; border: 0; background: transparent; border-radius: 6px;
  color: var(--faint); font-size: 18px; line-height: 1; cursor: pointer;
}
.sum-remove:hover { color: #c0392b; background: #faecec; }
.sum-remove:disabled { opacity: .5; cursor: default; }
/* notă soft „cantitate peste stoc" pe linia de coș/sumar */
.stock-warn { display: block; font-size: 12.5px; line-height: 1.35; color: #b5790a; margin: 4px 0 0; }
.sum-items .stock-warn { grid-column: 1 / -1; margin: 2px 0 0; }
.sum-line { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 16px; }
.sum-line span:last-child { font-family: var(--font-display); }
.sum-line.muted { color: var(--muted); }
.sum-line.total { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 18px; }
.sum-line.total span:last-child { font-weight: 600; font-size: 20px; }
.checkout-summary .btn-block { margin-top: 14px; }

.success-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 40px; max-width: 560px; margin: 10px auto; text-align: center; }
.success-mark { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: var(--led-soft); color: var(--led); font-size: 30px; display: grid; place-items: center; font-weight: 700; }
.success-card h1 { margin: 0 0 14px; }
.success-card p { color: #2c3744; margin: 0 0 12px; }
.success-card .btn { text-decoration: none; margin-top: 8px; display: inline-block; }
.success-note {
  text-align: left; background: #e8f0fe; border: 1px solid #cfe0ff; border-radius: 10px;
  padding: 14px 16px; margin: 4px 0 16px; font-size: 14.5px; line-height: 1.55; color: #1c3a73;
}

/* ---------- Cont: auth + dashboard ---------- */
.logout-form { margin: 0; }

.flashes { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.flash { padding: 10px 14px; border-radius: 8px; font-size: 16px; border: 1px solid; }
.flash-success { background: var(--led-soft); border-color: #b6e3c8; color: #11633a; }
.flash-error { background: #faecec; border-color: #f0c9c9; color: #9a3636; }
.flash-info { background: #eef3fb; border-color: #d3e1f5; color: #2f5c9e; }

/* Anunțuri (bannere full-width sub catbar; administrate din ERP, tabela `announces`).
   Clasele de culoare = contractul cu ERP-ul: `announce-<culoare>`. */
.announce-bar { display: flex; flex-direction: column; }
.announce { text-align: center; padding: 11px 18px; font-size: 15px; line-height: 1.45;
  font-weight: 600; }
.announce + .announce { border-top: 1px solid rgba(255, 255, 255, .18); }
.announce-white  { background: #ffffff; color: #1a1a1a; box-shadow: inset 0 -1px 0 #e2e7ec; }
.announce-grey   { background: #e4e7ea; color: #1a1a1a; }
.announce-black  { background: var(--ink); color: #ffffff; }
.announce-yellow { background: #f4c430; color: #1a1a1a; }
.announce-red    { background: #d23b3b; color: #ffffff; }
.announce-blue   { background: #2563b5; color: #ffffff; }
.announce-green  { background: var(--brand); color: #ffffff; }

.auth-card { max-width: 400px; margin: 16px auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px 30px; }
.auth-card h1 { font-size: 24px; margin: 0 0 18px; }
.auth-intro { color: var(--muted); font-size: 16px; margin: -8px 0 16px; }
.auth-card .btn-block { margin-top: 6px; }
.fld-check { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); margin: 4px 0 14px; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 15px; }
.auth-links a { color: var(--ink); }

.account-head { margin-bottom: 22px; }
.account-head p { margin: 2px 0; }
.badge-warn { font-family: var(--font-display); font-size: 13px; color: var(--amber); background: var(--amber-soft); padding: 1px 7px; border-radius: 5px; margin-left: 6px; }
.account-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.account-tile { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: inherit; transition: border-color .14s, transform .14s; }
.account-tile:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.account-tile-title { font-family: var(--font-display); font-weight: 600; }
.account-tile-desc { font-size: 14.5px; color: var(--muted); }

.data-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.data-table th { text-align: left; font-family: var(--font-display); font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.data-table td { padding: 10px; border-bottom: 1px solid var(--line-soft); }
.data-table td.r, .data-table th.r { text-align: right; }
.data-table td.c, .data-table th.c { text-align: center; }
.data-table .mono { font-family: var(--font-display); }
.data-table a { color: var(--ink); text-decoration: none; }
.data-table a:hover { text-decoration: underline; }

.order-totals { max-width: 320px; margin: 18px 0; }
.order-addr { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.order-addr h3 { font-family: var(--font-display); font-size: 16px; margin: 0 0 6px; }
.order-addr p { color: #36424f; font-size: 16px; margin: 0; }

.addr-section { margin-bottom: 30px; }
.addr-section h2 { font-family: var(--font-display); font-size: 19px; margin: 0 0 14px; }
.addr-add {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; min-height: 120px; text-align: center;
  border: 1.5px dashed var(--line); border-radius: 12px;
  color: var(--brand); text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  transition: border-color 0.14s, background 0.14s;
}
.addr-add:hover { border-color: var(--brand); background: var(--brand-soft); }
.addr-add-plus { font-size: 30px; line-height: 1; font-weight: 400; }
.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.addr-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.addr-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.addr-name { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.addr-card p { font-size: 16px; color: #36424f; margin: 6px 0; }
.addr-default {
  flex: none; font-family: var(--font-display); font-size: 11.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em; white-space: nowrap;
  color: var(--led); background: var(--led-soft); border: 1px solid #bfe6cd;
  padding: 2px 8px; border-radius: 6px;
}
/* acțiunile cardului: sub-secțiune (footer) ancorată jos */
.addr-foot { margin-top: auto; padding-top: 13px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.addr-actions { display: flex; gap: 8px; align-items: center; }
.addr-actions form { display: contents; }
.addr-btn {
  font-family: var(--font-display); font-size: 13.5px; font-weight: 500; line-height: 1.2;
  padding: 6px 14px; border-radius: 7px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none;
  transition: border-color .12s, color .12s, background .12s;
}
.addr-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.addr-btn-danger:hover { border-color: #c0392b; color: #c0392b; background: #faecec; }
/* „setează implicită": acțiune secundară, link discret cu stea (nu rupe rândul de butoane) */
.addr-setdefault { background: 0; border: 0; padding: 0; margin: 0; cursor: pointer; color: var(--brand); font-family: var(--font-display); font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; gap: 5px; }
.addr-setdefault::before { content: "☆"; font-size: 15px; line-height: 1; }
.addr-setdefault:hover { text-decoration: underline; }

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

/* ---------- Pagina „Toate categoriile" ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 34px; }
.cat-card {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  text-decoration: none; color: inherit; transition: border-color .14s, transform .14s, box-shadow .14s;
}
.cat-card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15, 23, 34, 0.08); }
.cat-card-name { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.cat-card-count { font-size: 13px; color: var(--muted); }
.catalog-brands h2, .catalog-ecosystems h2, .catalog-categories h2 { font-family: var(--font-display); font-size: 18px; margin: 0 0 14px; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.brand-tile {
  display: flex; align-items: center; justify-content: center;
  height: 96px; padding: 16px 20px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; transition: border-color .14s, box-shadow .14s;
}
.brand-tile:hover { border-color: var(--brand); box-shadow: 0 8px 20px rgba(15, 23, 34, 0.08); }
.brand-tile img { max-height: 60px; max-width: 150px; object-fit: contain; }

/* ---------- Listă cu filtre (switch-uri etc.) ---------- */
.shop-layout { display: grid; grid-template-columns: 234px 1fr; gap: 24px; align-items: start; }
.filters { position: sticky; top: 18px; max-height: calc(100vh - 36px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px 18px; font-size: 15px; }
.filters-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 6px; }
.filters-reset { font-size: 14px; color: var(--brand); text-decoration: none; }
.filters-reset:hover { text-decoration: underline; }
.facet { border-top: 1px solid var(--line-soft); padding: 16px 0 8px; }
.facet-title { font-family: var(--font-display); font-weight: 600; font-size: 15px; margin: 0 0 8px; }
.facet-opt { display: flex; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; color: #3a4654; }
.facet-opt input { accent-color: var(--ink); flex: none; }
.facet-n { margin-left: auto; font-family: var(--font-display); font-size: 13px; color: var(--faint); }
.filters-apply { margin-top: 16px; }

/* filtre active (chips deasupra rezultatelor) */
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--ink); text-decoration: none;
  background: var(--brand-soft); border: 1px solid #bfe6cd;
  padding: 4px 10px; border-radius: 999px;
}
.chip:hover { border-color: var(--brand); }
.chip-x { color: var(--brand-strong); font-size: 15px; line-height: 1; }
.chip-clear { font-size: 13px; color: var(--muted); text-decoration: none; margin-left: 4px; }
.chip-clear:hover { color: #c0392b; text-decoration: underline; }

/* cap rezultate: titlu (stânga) + sortare (dreapta) */
.results-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.results-head h1 { margin: 0; }
.results-head .result-count { margin-left: 8px; font-size: 13px; font-weight: 400; color: var(--muted); }
.results-head .sort-form { margin: 0; }

/* ordonare */
.sort-form { display: flex; align-items: center; gap: 8px; justify-content: flex-end; margin-bottom: 14px; }
.sort-label { font-size: 13px; color: var(--muted); }
.sort-form select {
  font-family: var(--font-body); font-size: 14px; padding: 7px 30px 7px 11px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
  color: var(--ink); cursor: pointer;
}
.sort-form select:hover { border-color: var(--line-strong); }
.card-specs { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin: 0; line-height: 1.45; }

/* ---------- A11y / responsive ---------- */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

@media (max-width: 720px) {
  .masthead-row { height: auto; flex-wrap: wrap; gap: 12px; padding: 12px 0; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .mega-panel { min-width: 0; width: calc(100vw - 24px); grid-template-columns: 1fr; }
  .mega-col { padding-right: 0; }
  .mega-col + .mega-col { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 2px; }
  .product { grid-template-columns: 1fr; }
  .cart { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 56px 1fr 30px; grid-row-gap: 8px; }
  .cart-item .cart-unit { grid-column: 2; }
  .cart-item .cart-qty { grid-column: 2; }
  .cart-item .cart-sub { grid-column: 2; text-align: left; }
  .checkout { grid-template-columns: 1fr; }
  .fld-row { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .order-addr { grid-template-columns: 1fr; }
  .header-actions { gap: 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .footer-brand { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-bar-row { justify-content: flex-start; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: static; max-height: none; overflow: visible; }
  .hero { padding: 28px 24px; }
  .hero-bars { display: none; }
  .trustbar { grid-template-columns: 1fr; margin-top: 0; }
  .home-section-head { flex-wrap: wrap; }
  .wr-meta { grid-template-columns: 1fr; }
  .lightbox { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Pagini-hub pe cuvinte cheie (UniFi etc.): intro editorial, callout, FAQ. */
.hub-head { margin-bottom: 22px; }
.hub-head h1 { margin: 0 0 2px; }
.hub-head .result-count { display: block; font-family: var(--font-display); font-size: 14px; color: var(--muted); }
.hub-intro {
  position: relative; margin: 0 0 30px; padding: 16px 50px 16px 22px;
  background: var(--brand-soft); border: 1px solid var(--line); border-radius: 12px;
}
.hub-intro p:first-of-type { margin-top: 0; }
.hub-intro > :last-child { margin-bottom: 0; }
.hub-intro-close {
  position: absolute; top: 10px; right: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted); cursor: pointer; font-size: 24px; line-height: 1;
}
.hub-intro-close:hover { background: rgba(17, 32, 46, 0.07); color: var(--ink); }
/* Ghidul „cum alegi" de pe paginile de categorie (banner cu titlu + listă de decizii). */
.cat-guide { margin: 0 0 22px; }
.cat-guide h2 { font-family: var(--font-display); font-size: 16.5px; letter-spacing: -0.01em; margin: 0 0 8px; }
.cat-guide ul { margin: 0; padding-left: 18px; }
.cat-guide li { margin: 0 0 7px; color: var(--ink-soft); }
.cat-guide li:last-child { margin-bottom: 0; }
.hub-callout {
  display: block; margin: 0 0 22px; padding: 12px 16px;
  background: var(--brand-soft); border: 1px solid var(--brand);
  border-radius: 10px; color: var(--ink); font-family: var(--font-display);
  font-weight: 500; font-size: 14.5px; text-decoration: none;
}
.hub-callout:hover { background: var(--led-soft); }
.hub-faq { margin-top: 38px; }
.hub-faq > h2 {
  font-family: var(--font-display); font-size: 22px;
  letter-spacing: -0.01em; margin: 0 0 14px;
}
.faq-item { border-top: 1px solid var(--line); padding: 12px 0; }
.faq-item summary {
  font-family: var(--font-display); font-weight: 600; font-size: 15.5px;
  cursor: pointer; color: var(--ink);
}
.faq-item p { margin: 10px 0 2px; max-width: 760px; color: var(--ink-soft); }
/* Selectorul de sub-categorie (linkuri) din sidebar-ul hub-ului. */
.facet-link {
  display: flex; justify-content: space-between; gap: 10px; padding: 4px 0;
  color: var(--ink); text-decoration: none; font-size: 14px;
}
.facet-link:hover { color: var(--brand); }
.facet-link.is-active { color: var(--brand); font-weight: 600; }
.hub-results-title { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.01em; margin: 0; }
