:root {
  /* KORDIS · paletă prietenoasă: albastru luminos, turcoaz, fundal aerisit */
  --red: #2a6fdb;          /* accent principal (numele vechi păstrat pentru compatibilitate) */
  --red-dark: #1f5bbf;
  --red-soft: #eaf2fe;
  --red-border: #bcd6fa;
  --teal: #1f9e8f;
  --teal-soft: #e3f6f3;
  --bg: #f5f8fc;
  --surface: #ffffff;
  --surface-2: #f9fbfe;
  --text: #1b2b44;
  --muted: #5b6b82;
  --border: #e1e8f1;
  --topbar: #1e3a5f;
  --ok: #1f8a5c;
  --warn: #b86e00;
  --info: #2a6fdb;
  --shadow: 0 1px 2px rgba(30,58,95,.05), 0 6px 18px rgba(30,58,95,.07);
  --radius: 14px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --red: #5b9bff;
  --red-dark: #3d82f0;
  --red-soft: #16284a;
  --red-border: #2b4877;
  --teal: #3fd0bd;
  --teal-soft: #12332f;
  --bg: #0e1726;
  --surface: #152033;
  --surface-2: #1a2740;
  --text: #e7eef8;
  --muted: #9db0c9;
  --border: #263650;
  --topbar: #0a1220;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 14px rgba(0,0,0,.3);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 "IBM Plex Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 32px; }
.muted { color: var(--muted); }
.red { color: var(--red); }
.hide-sm { }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 28px; } h2 { font-size: 22px; } h3 { font-size: 17px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--topbar); color: #e3ecf8; font-size: 11.5px; font-weight: 600; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 32px; gap: 16px; }
.topbar nav { display: flex; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.topbar nav a { padding: 0 13px; border-right: 1px solid rgba(255,255,255,.22); line-height: 12px; }
.topbar nav a:first-child { padding-left: 0; }
.topbar nav a:last-child { border: 0; }
.topbar nav a:hover { color: #fff; text-decoration: underline; }
.topbar .right { display: flex; gap: 6px; flex-shrink: 0; }
.topbar .right a { padding: 3px 9px; border-radius: 3px; }
.topbar .right a.accent { color: var(--red); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); color: #cfe0ff; }
.topbar .right a:hover { color: #fff; }

/* ---------- Header ---------- */
.header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header .row1 { display: grid; grid-template-columns: 1fr minmax(260px, 580px) 1fr; align-items: center; height: 60px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo svg { flex-shrink: 0; }
.logo b { display: block; font-size: 19px; letter-spacing: .3px; line-height: 1; }
.logo small { display: block; color: var(--red); font-weight: 700; font-size: 12px; letter-spacing: 2.4px; margin-top: 4px; }
.search { position: relative; }
.search form { display: flex; align-items: center; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 0 14px; height: 42px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.search form:focus-within { border-color: var(--red-border); box-shadow: 0 0 0 3px var(--red-soft); }
.search input { flex: 1; border: 0; background: transparent; outline: 0; padding: 0 10px; font-size: 14px; min-width: 0; }
.search .sugg { position: absolute; top: 48px; left: 0; right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; display: none; z-index: 60; }
.search .sugg.open { display: block; }
.search .sugg a { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--border); font-size: 13px; }
.search .sugg a:last-child { border: 0; }
.search .sugg a:hover, .search .sugg a.active { background: var(--surface-2); color: var(--text); }
.search .sugg img { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 6px; }
.search .sugg small { color: var(--muted); display: block; }
.search .sugg b { color: var(--red); white-space: nowrap; }
.icons { display: flex; justify-content: flex-end; gap: 6px; }
.icon-btn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: none; border: 0; cursor: pointer; color: var(--text); }
.icon-btn:hover { background: var(--surface-2); color: var(--red); }
.icon-btn .badge { position: absolute; top: 3px; right: 2px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }

/* ---------- Nav row ---------- */
.navrow { display: flex; gap: 6px; padding: 8px 0 10px; align-items: stretch; }
.btn-all { display: flex; align-items: center; gap: 10px; background: var(--red); color: #fff !important; border: 0; border-radius: 8px; padding: 0 22px; height: 48px; font-weight: 700; font-size: 15px; cursor: pointer; box-shadow: 0 2px 6px rgba(196,22,28,.35); white-space: nowrap; flex: 0 0 300px; }
.btn-all:hover { background: var(--red-dark); }
.btn-all .chev { transition: transform .2s; }
.btn-all[aria-expanded="true"] .chev { transform: rotate(180deg); }
.tabs { display: flex; gap: 6px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.tab { flex: 1; min-width: 150px; display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(0,0,0,.04); font-size: 14.5px; position: relative; white-space: nowrap; padding: 0 12px; }
.tab .ti { color: var(--red); }
.tab.b2b { background: var(--red-soft); border-color: var(--red-border); color: var(--red-dark); font-weight: 600; }
:root[data-theme="dark"] .tab.b2b { color: #9cc2ff; }
.tab.b2b::after { content: ""; position: absolute; bottom: 7px; left: 50%; width: 22px; margin-left: 4px; height: 3px; border-radius: 2px; background: var(--red); }
.tab.active, .tab:hover { border-color: var(--red-border); color: var(--red); }
.tab-tc { flex: 0 0 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; background: var(--surface); border: 1px solid var(--border); align-self: flex-start; }

/* ---------- Mega menu ---------- */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: 0 18px 30px rgba(0,0,0,.08); display: none; }
.mega.open { display: block; }
.mega.inline { position: static; display: block; box-shadow: none; border: 0; background: transparent; }
.mega-grid { display: grid; grid-template-columns: 384px 1fr; min-height: 520px; padding-top: 18px; }
.mega-cats { list-style: none; margin: 0; padding: 0 16px 0 0; border-right: 1px solid var(--border); }
.mega-cats a { display: flex; align-items: center; gap: 16px; padding: 0 16px; height: 58px; margin-bottom: 4px; border-radius: 10px; font-weight: 600; font-size: 15px; }
.mega-cats a .ci { width: 34px; height: 34px; display: grid; place-items: center; color: var(--red); }
.mega-cats a .arr { margin-left: auto; color: var(--muted); }
.mega-cats li.on > a, .mega-cats a:hover { background: var(--surface); color: var(--red); box-shadow: var(--shadow); }
.mega-panel { padding: 8px 36px; position: relative; }
.mega-panel .hint { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.mega-sub { display: none; }
.mega-sub.on { display: block; }
.mega-sub h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; margin: 10px 0 18px; }
.mega-sub h3 a { font-size: 13px; color: var(--red); font-weight: 600; margin-left: auto; }
.mega-sub .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.mega-sub .grid a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; font-weight: 500; }
.mega-sub .grid a:hover { border-color: var(--red-border); }
.mega-sub .grid a span { color: var(--muted); font-size: 12px; margin-left: auto; }
.mega-sub .promo { margin-top: 22px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.brandstrip { border-top: 1px solid var(--border); margin-top: 22px; padding: 18px 0 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.brandstrip .lbl { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.brandstrip a { font-weight: 600; font-size: 14.5px; }
.brandstrip a.chip { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 8px 16px; font-weight: 800; letter-spacing: .3px; }
.brandstrip a.all { color: var(--red); font-weight: 700; }

/* ---------- General UI ---------- */
main { min-height: 50vh; }
.section { margin: 36px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 16px; gap: 16px; }
.section-head h2 { margin: 0; }
.section-head a { color: var(--red); font-weight: 600; font-size: 14px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-weight: 600; font-size: 14px; white-space: nowrap; }
.btn:hover { border-color: var(--red-border); color: var(--red); }
.btn-red { background: var(--red); border-color: var(--red); color: #fff !important; }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.crumbs { font-size: 13px; color: var(--muted); padding: 18px 0 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a:hover { color: var(--red); }
.flash { margin: 14px 0 0; padding: 12px 16px; border-radius: 10px; font-size: 14px; border: 1px solid; }
.flash.ok { background: #ecf8f0; border-color: #b7e2c4; color: #0e5f2b; }
.flash.err { background: var(--red-soft); border-color: var(--red-border); color: var(--red-dark); }
:root[data-theme="dark"] .flash.ok { background: #0f2a19; border-color: #1f5a33; color: #9be3b2; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; letter-spacing: .3px; text-transform: uppercase; }
.pill.red { background: var(--red); color: #fff; }
.pill.dark { background: #1e3a5f; color: #fff; }
.pill.green { background: #e2f5e8; color: #0e6b30; }
.pill.gray { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.pill.amber { background: #fff3db; color: #8a5600; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-top: 18px; }
.hero-main { position: relative; border-radius: 16px; overflow: hidden; min-height: 360px; background: #1e3a5f; color: #fff; }
.slide { position: absolute; inset: 0; padding: 44px 48px; display: flex; flex-direction: column; justify-content: center; opacity: 0; transition: opacity .6s; }
.slide.on { opacity: 1; z-index: 1; }
.slide h2 { font-size: 38px; max-width: 520px; margin-bottom: 12px; }
.slide p { max-width: 460px; color: #dce9ff; margin: 0 0 22px; }
.slide .art { position: absolute; right: 30px; bottom: 0; top: 0; width: 46%; display: grid; place-items: center; opacity: .95; }
.slide .btn { align-self: flex-start; }
.dots { position: absolute; bottom: 18px; left: 48px; display: flex; gap: 8px; z-index: 2; }
.dots button { width: 26px; height: 4px; border-radius: 2px; border: 0; background: rgba(255,255,255,.35); cursor: pointer; padding: 0; }
.dots button.on { background: #fff; }
.hero-side { display: grid; gap: 16px; }
.hero-card { border-radius: 16px; padding: 24px; display: flex; flex-direction: column; justify-content: center; min-height: 172px; position: relative; overflow: hidden; }
.hero-card h3 { font-size: 20px; }
.hero-card p { margin: 0 0 12px; font-size: 14px; }
.hero-card.b2b { background: linear-gradient(135deg, #2a6fdb, #1f9e8f); color: #fff; }
.hero-card.b2b p { color: #e6f1ff; }
.hero-card.b2b .btn { background: #fff; color: var(--red) !important; border: 0; align-self: flex-start; }
.hero-card.light { background: var(--surface); border: 1px solid var(--border); }
.hero-card.light .btn { align-self: flex-start; }
.usp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.usp div { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--border); padding: 16px 18px; border-radius: 12px; font-size: 13px; color: var(--muted); }
.usp b { display: block; color: var(--text); font-size: 14.5px; }
.usp svg { color: var(--red); flex-shrink: 0; }

.cat-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.cat-tile { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 12px; transition: .15s; }
.cat-tile:hover { border-color: var(--red-border); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--text); }
.cat-tile .ci { width: 48px; height: 48px; border-radius: 12px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; }
.cat-tile b { font-size: 15px; }
.cat-tile small { color: var(--muted); }

/* ---------- Product cards ---------- */
.grid-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pcard { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; transition: .15s; position: relative; }
.pcard:hover { box-shadow: var(--shadow); border-color: var(--red-border); }
.pcard .img { aspect-ratio: 1/1; background: #fff; display: grid; place-items: center; padding: 18px; position: relative; }
.pcard .img img { max-height: 100%; object-fit: contain; }
.pcard .tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-direction: column; align-items: flex-start; }
.pcard .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; border-top: 1px solid var(--border); }
.pcard .brand { font-size: 11.5px; text-transform: uppercase; color: var(--muted); font-weight: 700; letter-spacing: .6px; display: flex; justify-content: space-between; }
.pcard .brand span { font-weight: 500; text-transform: none; letter-spacing: 0; }
.pcard .name { font-weight: 600; font-size: 14px; line-height: 1.35; min-height: 2.7em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .short { font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stock { font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock.in { color: var(--ok); } .stock.low { color: var(--warn); } .stock.supplier { color: var(--info); } .stock.out { color: var(--muted); }
.price { margin-top: auto; padding-top: 6px; }
.price .old { text-decoration: line-through; color: var(--muted); font-size: 13px; }
.price .now { font-size: 20px; font-weight: 800; color: var(--red); line-height: 1.1; }
.price .now small { font-size: 12px; font-weight: 600; }
.price .net { font-size: 12px; color: var(--muted); }
.price .partner { font-size: 11px; color: var(--ok); font-weight: 700; }
.price-login { margin-top: auto; font-size: 13px; background: var(--surface-2); border: 1px dashed var(--border); padding: 10px; border-radius: 8px; text-align: center; }
.price-login a { color: var(--red); font-weight: 700; }
.pcard .actions { display: flex; gap: 8px; margin-top: 8px; }
.pcard .actions .btn { flex: 1; height: 38px; }
.list-view .grid-products { grid-template-columns: 1fr; }
.list-view .pcard { flex-direction: row; }
.list-view .pcard .img { width: 200px; flex-shrink: 0; aspect-ratio: auto; }
.list-view .pcard .body { border-top: 0; border-left: 1px solid var(--border); display: grid; grid-template-columns: 1fr 220px; column-gap: 24px; }
.list-view .pcard .body > * { grid-column: 1; }
.list-view .pcard .price, .list-view .pcard .actions, .list-view .pcard .price-login { grid-column: 2; grid-row: 1 / span 3; }
.list-view .pcard .actions { grid-row: 4 / span 2; align-self: end; }

/* ---------- Listing ---------- */
.listing { display: grid; grid-template-columns: 270px 1fr; gap: 24px; align-items: start; }
.filters { position: sticky; top: 150px; display: grid; gap: 14px; }
.fbox { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.fbox h4 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.fbox ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 300px; overflow: auto; }
.fbox li a { display: flex; justify-content: space-between; padding: 6px 8px; border-radius: 6px; font-size: 14px; }
.fbox li a:hover, .fbox li a.on { background: var(--red-soft); color: var(--red); }
.fbox label { display: flex; align-items: center; gap: 8px; padding: 5px 2px; font-size: 14px; cursor: pointer; }
.fbox label span { margin-left: auto; color: var(--muted); font-size: 12px; }
.fbox input[type=checkbox] { accent-color: var(--red); width: 16px; height: 16px; }
.prange { display: flex; gap: 8px; align-items: center; }
.prange input { width: 100%; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar .view a { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); }
.toolbar .view a.on { border-color: var(--red); color: var(--red); }
.subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.subcats a { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; font-size: 13.5px; font-weight: 500; }
.subcats a.on, .subcats a:hover { border-color: var(--red); color: var(--red); }
.pager { display: flex; gap: 6px; justify-content: center; margin: 28px 0; }
.pager a, .pager span { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; padding: 0 10px; }
.pager .on { background: var(--red); border-color: var(--red); color: #fff; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }

input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=url], input[type=search], select, textarea {
  width: 100%; height: 42px; border: 1px solid var(--border); background: var(--surface); border-radius: 8px; padding: 0 12px; outline: 0;
}
textarea { height: auto; min-height: 90px; padding: 10px 12px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
label.f { display: block; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
label.f > input, label.f > select, label.f > textarea { margin-top: 6px; font-weight: 400; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }

/* ---------- Product page ---------- */
.product { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; align-items: start; }
.gallery { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; position: sticky; top: 150px; }
.gallery .main { aspect-ratio: 1/1; background: #fff; border-radius: 10px; display: grid; place-items: center; padding: 30px; }
.gallery .main img { max-height: 100%; object-fit: contain; }
.gallery .thumbs { display: flex; gap: 8px; margin-top: 10px; }
.gallery .thumbs button { width: 70px; height: 70px; background: #fff; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; padding: 6px; }
.gallery .thumbs button.on { border-color: var(--red); }
.pinfo h1 { font-size: 26px; }
.pmeta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.pmeta b { color: var(--text); }
.buybox { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; margin: 16px 0; }
.buybox .price .now { font-size: 30px; }
.buybox .price .net { font-size: 14px; }
.buyrow { display: flex; gap: 10px; margin-top: 16px; }
.qty { display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; height: 46px; }
.qty button { width: 38px; border: 0; background: var(--surface-2); cursor: pointer; font-size: 18px; }
.qty input { width: 54px; border: 0; text-align: center; height: 100%; border-radius: 0; }
.buyrow .btn { height: 46px; flex: 1; }
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; font-size: 13px; }
.perks div { display: flex; gap: 8px; align-items: center; color: var(--muted); }
.perks svg { color: var(--red); }
.ptabs { margin-top: 32px; }
.ptabs nav { display: flex; gap: 4px; border-bottom: 1px solid var(--border); }
.ptabs nav button { background: none; border: 0; padding: 12px 18px; font-weight: 600; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; color: var(--muted); }
.ptabs nav button.on { color: var(--red); border-color: var(--red); }
.ptabs .pane { display: none; padding: 22px 0; }
.ptabs .pane.on { display: block; }
table.specs { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
table.specs th, table.specs td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
table.specs th { width: 36%; background: var(--surface-2); font-weight: 600; }
.docs a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; font-weight: 600; }

/* ---------- Cart / checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
table.cart { width: 100%; border-collapse: collapse; }
table.cart td, table.cart th { padding: 14px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
table.cart th { font-size: 12px; text-transform: uppercase; color: var(--muted); letter-spacing: .5px; }
table.cart img { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid var(--border); }
table.cart input { width: 76px; }
.summary { padding: 20px; position: sticky; top: 150px; }
.summary .row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.summary .row.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; font-size: 18px; font-weight: 800; }
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.radio-cards label { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; cursor: pointer; background: var(--surface); font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.radio-cards label:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.radio-cards input { accent-color: var(--red); margin-top: 3px; }
.radio-cards small { display: block; color: var(--muted); }

/* ---------- Footer ---------- */
.newsletter { background: var(--red); color: #fff; border-radius: 16px; padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 40px 0 0; }
.newsletter h3 { font-size: 21px; margin: 0 0 4px; }
.newsletter p { margin: 0; color: #e6f1ff; font-size: 14px; }
.newsletter form { display: flex; gap: 8px; flex: 0 1 460px; }
.newsletter input { border: 0; height: 46px; }
.newsletter .btn { background: #1e3a5f; color: #fff; border: 0; height: 46px; }
footer.site { background: var(--topbar); color: #cfdcee; margin-top: 40px; padding: 48px 0 0; font-size: 14px; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 32px; }
footer.site h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .8px; margin: 0 0 14px; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer.site a:hover { color: #fff; }
footer.site .logo b { color: #fff; }
footer.site .bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 36px; padding: 18px 0; display: flex; justify-content: space-between; font-size: 12.5px; color: #9fb3cc; flex-wrap: wrap; gap: 10px; }
.contact-line { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.contact-line svg { color: var(--red); flex-shrink: 0; margin-top: 2px; }

.toast { position: fixed; bottom: 24px; right: 24px; background: #1e3a5f; color: #fff; padding: 14px 18px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.25); z-index: 100; transform: translateY(120px); transition: .3s; display: flex; gap: 12px; align-items: center; font-size: 14px; }
.toast.on { transform: none; }
.toast a { color: #9cc2ff; font-weight: 700; }

.page-box { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 28px; }
.auth { max-width: 460px; margin: 30px auto; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .grid-products { grid-template-columns: repeat(3, 1fr); }
  .cat-tiles { grid-template-columns: repeat(4, 1fr); }
  .btn-all { flex-basis: auto; }
  footer.site .cols { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 960px) {
  .wrap { padding: 0 16px; }
  .header .row1 { grid-template-columns: auto 1fr; height: auto; padding: 10px 0; gap: 10px; }
  .search { grid-column: 1 / -1; grid-row: 2; }
  .logo b { font-size: 16px; } .logo small { font-size: 10px; }
  .navrow { padding-top: 0; }
  .tab { min-width: auto; flex: 0 0 auto; padding: 0 14px; font-size: 13.5px; }
  .tab .ti { display: none; }
  .tab-tc { display: none; }
  .hero, .listing, .product, .cart-layout, .two-col { grid-template-columns: 1fr; }
  .usp { grid-template-columns: 1fr 1fr; }
  .cat-tiles { grid-template-columns: repeat(2, 1fr); }
  .grid-products { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .mega-grid { grid-template-columns: 1fr; min-height: 0; }
  .mega-cats { border: 0; padding: 0; }
  .mega-cats a { height: 50px; }
  .mega-panel { display: none; }
  .mega.open { max-height: calc(100vh - 160px); overflow: auto; }
  .filters, .gallery, .summary { position: static; }
  .slide { padding: 28px; } .slide h2 { font-size: 26px; } .slide .art { display: none; }
  .dots { left: 28px; }
  .newsletter { flex-direction: column; align-items: stretch; padding: 22px; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  .list-view .pcard { flex-direction: column; }
  .list-view .pcard .img { width: auto; }
  .list-view .pcard .body { display: flex; }
  table.cart .hide-sm { display: none; }
  .hide-sm { display: none !important; }
}
@media (max-width: 520px) {
  .btn-all { padding: 0 14px; font-size: 14px; }
  .grid-products { grid-template-columns: 1fr 1fr; }
  .pcard .body { padding: 10px; } .price .now { font-size: 17px; }
  .pcard .actions .btn span { display: none; }
  .form-grid, .radio-cards, .perks { grid-template-columns: 1fr; }
  footer.site .cols { grid-template-columns: 1fr; }
  h1 { font-size: 23px; }
}

/* ---------- Admin ---------- */
.admin { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin aside { background: var(--topbar); color: #d5e1f2; padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.admin aside .logo { margin: 0 6px 24px; } .admin aside .logo b { color: #fff; }
.admin aside nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; font-size: 14px; margin-bottom: 2px; }
.admin aside nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.admin aside nav a.on { background: var(--red); color: #fff; }
.admin aside .sep { border-top: 1px solid rgba(255,255,255,.14); margin: 14px 0; }
.admin .content { padding: 24px 32px 60px; min-width: 0; }
.admin .content > .head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.admin .content > .head h1 { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.stat small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.stat b { display: block; font-size: 26px; margin-top: 4px; }
table.t { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 14px; }
table.t th, table.t td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
table.t th { font-size: 12px; text-transform: uppercase; color: var(--muted); letter-spacing: .4px; background: var(--surface-2); }
table.t img { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 6px; border: 1px solid var(--border); }
.tbl-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: auto; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form input, .inline-form select { width: auto; height: 36px; }
code, pre { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
pre { background: var(--surface-2); border: 1px solid var(--border); padding: 12px; border-radius: 8px; overflow: auto; }
textarea.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; min-height: 260px; }
@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  .admin aside { position: static; height: auto; }
  .admin aside nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .admin .content { padding: 16px; }
}

/* fixes */
.icon-btn .badge[hidden] { display: none; }
.search input[type=search] { border: 0; height: 40px; background: transparent; box-shadow: none; padding: 0 10px; border-radius: 0; }
.search input[type=search]:focus { box-shadow: none; }
.toast { opacity: 0; pointer-events: none; }
.toast.on { opacity: 1; pointer-events: auto; }

/* ---------- KORDIS: logo ---------- */
.logo { display: flex; align-items: center; gap: 10px; }
.logo .kmark { flex: none; }
.logo .kword { display: flex; flex-direction: column; line-height: 1; }
.logo .kword b { font: 700 24px/1 "IBM Plex Sans", "Inter", sans-serif; letter-spacing: 2.5px; color: var(--text); }
.logo .kword small { font: 500 9.5px/1.2 "IBM Plex Sans", "Inter", sans-serif; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

/* ---------- KORDIS · variantă luminoasă (fundaluri deschise, accente albastru/turcoaz) ---------- */
:root { --topbar: #eef4fd; --chrome-line: #dbe6f5; --hero-a: #e4efff; --hero-b: #f4f8ff; --bg: #f7faff; }
:root[data-theme="dark"] { --topbar: #101b2d; --chrome-line: #263650; --hero-a: #1a2b47; --hero-b: #152033; --bg: #0e1726; }
:root[data-theme="dark"] .kmark rect:first-child { fill: #e7eef8; }
.topbar { color: var(--text); border-bottom: 1px solid var(--chrome-line); }
.topbar nav a { border-right-color: var(--chrome-line); }
.topbar nav a:hover, .topbar .right a:hover { color: var(--red); }
.topbar .right a.accent { background: var(--surface); border: 1px solid var(--red-border); color: var(--red); }
.hero-main { background: linear-gradient(135deg, var(--hero-a), var(--hero-b)); color: var(--text); border: 1px solid var(--chrome-line); }
.slide h2 { color: var(--text); }
.slide p { color: var(--muted); }
.dots button { background: #c3d5ee; } .dots button.on { background: var(--red); }
.hero-card.b2b { background: linear-gradient(135deg, #e3f6f3, #e6f0fd); color: var(--text); border: 1px solid #cfe3f1; }
.hero-card.b2b p { color: var(--muted); }
.hero-card.b2b .btn { background: var(--red); color: #fff !important; }
:root[data-theme="dark"] .hero-card.b2b { background: linear-gradient(135deg, #12332f, #16284a); border-color: var(--chrome-line); }
.newsletter { background: linear-gradient(135deg, #e6f0fd, #e3f6f3); color: var(--text); border: 1px solid #cfe3f1; }
.newsletter p { color: var(--muted); }
.newsletter input { border: 1px solid var(--border); }
.newsletter .btn { background: var(--red); }
:root[data-theme="dark"] .newsletter { background: linear-gradient(135deg, #16284a, #12332f); border-color: var(--chrome-line); }
footer.site { color: var(--muted); border-top: 1px solid var(--chrome-line); }
footer.site h4, footer.site .logo b { color: var(--text); }
footer.site a:hover { color: var(--red); }
footer.site .bottom { border-top-color: var(--chrome-line); color: var(--muted); }
.pill.dark { background: var(--text); color: var(--surface); }
.admin aside { color: var(--text); border-right: 1px solid var(--chrome-line); }
.admin aside .logo b { color: var(--text); }
.admin aside nav a:hover { background: var(--red-soft); color: var(--red); }
.admin aside nav a.on { background: var(--red); color: #fff; }
.admin aside .sep { border-top-color: var(--chrome-line); }

/* ETH-shop: denumire cu majuscule și minuscule */
.logo .kword b{letter-spacing:.4px}

/* ===== ETH-shop: bara de categorii, banner, categorii colorate, conturi B2B ===== */
.hero2 { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; margin-top: 18px; align-items: start; }
.catside { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.cs-head { background: var(--topbar); color: var(--text); font-weight: 700; font-size: 15px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.catside ul { list-style: none; margin: 0; padding: 0; }
.catside li { border-bottom: 1px solid var(--border); }
.catside summary, .cs-root { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 12px; cursor: pointer; font-weight: 600; font-size: 14.5px; list-style: none; color: var(--text); border-left: 4px solid transparent; }
.catside summary::-webkit-details-marker { display: none; }
.catside summary:hover, .cs-root:hover, .catside details[open] > summary { background: color-mix(in srgb, var(--cc) 9%, var(--surface)); border-left-color: var(--cc); color: var(--text); }
.cs-ic { width: 40px; height: 40px; border-radius: 10px; background: color-mix(in srgb, var(--cc) 14%, var(--surface)); display: grid; place-items: center; flex: none; }
.cs-n { flex: 1; min-width: 0; }
.catside summary .chev { color: var(--muted); transition: transform .2s; flex: none; }
.catside details[open] > summary .chev { transform: rotate(180deg); color: var(--cc); }
.cs-subs { display: flex; flex-direction: column; padding: 4px 0 8px; background: color-mix(in srgb, var(--cc) 4%, var(--surface)); }
.cs-subs a { display: flex; align-items: center; gap: 12px; padding: 7px 14px 7px 28px; font-size: 14px; font-weight: 500; color: var(--text); }
.cs-subs a:hover { color: var(--cc); background: color-mix(in srgb, var(--cc) 8%, var(--surface)); }
.cs-subs a small { margin-left: auto; color: var(--muted); font-size: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 0 7px; }
.cs-si { width: 30px; height: 30px; display: grid; place-items: center; flex: none; }
.cs-subs .cs-all { color: var(--cc); font-weight: 600; font-size: 13px; padding-left: 70px; }
.cs-foot { display: flex; justify-content: space-between; padding: 14px 18px; font-weight: 700; color: var(--red); background: var(--red-soft); }
.hero2-main { position: relative; border-radius: 20px; padding: 48px 48px 34px; background: linear-gradient(135deg, var(--hero-a), var(--hero-b) 60%, color-mix(in srgb, #22b3a1 12%, var(--surface))); border: 1px solid var(--chrome-line); overflow: hidden; display: flex; flex-direction: column; gap: 18px; align-self: start; }
.hero2-main::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 320px; height: 320px; border-radius: 60px; transform: rotate(18deg); background: linear-gradient(135deg, color-mix(in srgb, #3b82f6 20%, transparent), color-mix(in srgb, #22b3a1 18%, transparent)); pointer-events: none; }
.hero-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; color: var(--red); }
.hero2-main h1 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; margin: 0; letter-spacing: -.5px; }
.hero2-main h1 span { color: var(--red); }
.hero2-main p { color: var(--muted); max-width: 60ch; margin: 0; font-size: 16px; }
.hero2-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 10px; position: relative; z-index: 1; }
.hero2-btns .btn { height: 52px; font-size: 15px; font-weight: 600; justify-content: center; gap: 8px; }
.hero2-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; border-top: 1px solid var(--chrome-line); padding-top: 18px; margin-top: 8px; position: relative; z-index: 1; }
.hero2-stats b { display: block; font-size: 22px; color: var(--text); }
.hero2-stats span { font-size: 13px; color: var(--muted); }
.cat-tiles.colorful .cat-tile { border-top: 4px solid var(--cc); }
.cat-tiles.colorful .cat-tile .ci { width: 60px; height: 60px; border-radius: 14px; background: color-mix(in srgb, var(--cc) 13%, var(--surface)); }
.cat-tiles.colorful .cat-tile:hover { border-color: var(--cc); }
.mega-cats li a .ci { width: 40px; height: 40px; border-radius: 10px; background: color-mix(in srgb, var(--cc) 13%, var(--surface)); }
.mega-cats li.on > a, .mega-cats li > a:hover { color: var(--cc); }
.mega-sub h3 > span { width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--cc) 13%, var(--surface)); display: grid; place-items: center; }
.mega-sub .grid a .si { width: 30px; height: 30px; display: grid; place-items: center; margin: 0; color: inherit; font-size: inherit; }
.mega-sub .grid a small { margin-left: 4px; }
.price-login b { display: block; color: var(--text); margin-bottom: 2px; }
.auth-box { max-width: 480px; margin: 20px auto; }
.auth-box .f { margin-bottom: 12px; }
.pill.red { background: #fde8e8; color: #b42318; }
@media (max-width: 1100px) { .hero2 { grid-template-columns: 1fr; } .catside { order: 2; } }
@media (max-width: 640px) { .hero2-main { padding: 28px 20px 22px; } .hero2-btns { grid-template-columns: 1fr 1fr; } .hero2-btns .btn { height: 46px; font-size: 14px; } .hero2-stats { grid-template-columns: 1fr 1fr; } }

/* ===== Platforma B2B: navigare, bannere, bandă, categorii ===== */
.b2bnav { align-items: center; gap: 10px; }
.btn-cats { display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 18px; border-radius: 8px; border: 2px solid var(--red); background: var(--surface); color: var(--red); font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap; }
.btn-cats:hover, .btn-cats[aria-expanded="true"] { background: var(--red); color: #fff; }
.dd { position: relative; }
.dd summary { list-style: none; display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 8px; font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; }
.dd summary::-webkit-details-marker { display: none; }
.dd summary:hover, .dd[open] summary { background: var(--red-soft); }
.dd[open] summary svg { transform: rotate(180deg); }
.dd-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; min-width: 220px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; display: grid; }
.dd-menu a { padding: 9px 12px; border-radius: 8px; font-size: 14.5px; display: flex; justify-content: space-between; gap: 10px; }
.dd-menu a:hover { background: var(--red-soft); color: var(--text); }
.dd-menu a small { color: var(--muted); }
.dd-cols { grid-template-columns: repeat(3, minmax(170px, 1fr)); max-height: 60vh; overflow: auto; }
.dd-cols .dd-all { grid-column: 1 / -1; color: var(--red); font-weight: 600; justify-content: flex-start; }
.b2bnav .sp { flex: 1; }
.b2bnav .help { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; padding: 0 14px; height: 44px; border-right: 1px solid var(--border); white-space: nowrap; }
.vat-sw { display: flex; align-items: center; gap: 12px; cursor: pointer; padding-left: 4px; white-space: nowrap; position: relative; }
.vat-sw span { display: grid; text-align: right; line-height: 1.2; }
.vat-sw b { font-size: 14.5px; }
.vat-sw small { font-size: 12px; color: var(--muted); }
.vat-sw input { position: absolute; opacity: 0; pointer-events: none; }
.vat-sw i { width: 44px; height: 24px; border-radius: 99px; background: var(--border); position: relative; transition: .2s; flex: none; }
.vat-sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: .2s; }
.vat-sw input:checked + i { background: var(--red); }
.vat-sw input:checked + i::after { left: 23px; }
.vat-sw input:focus-visible + i { outline: 2px solid var(--red); outline-offset: 2px; }

.bnr { position: relative; margin-top: 18px; border-radius: 14px; overflow: hidden; background: #0f1b2d; aspect-ratio: 32 / 9; }
.bnr-track, .bnr-slide, .bnr-slide a { position: absolute; inset: 0; display: block; }
.bnr-slide { opacity: 0; transition: opacity .6s; pointer-events: none; }
.bnr-slide.on { opacity: 1; pointer-events: auto; }
.bnr-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bnr-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: #1b2b44; font-size: 26px; line-height: 1; cursor: pointer; opacity: 0; transition: .2s; }
.bnr:hover .bnr-nav, .bnr-nav:focus-visible { opacity: 1; }
.bnr-nav.prev { left: 14px; }
.bnr-nav.next { right: 14px; }
.bnr-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; }
.bnr-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.55); cursor: pointer; }
.bnr-dots button.on { background: var(--red); transform: scale(1.25); }
.bnr-empty { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 6%; background: linear-gradient(120deg, #e8f1ff 0%, #f5f9ff 55%, #dff4f1 100%); color: #1b2b44; }
.bnr-empty h1 { font-size: clamp(24px, 3.2vw, 42px); line-height: 1.12; margin: 14px 0 10px; }
.bnr-empty h1 span { color: var(--red); }
.bnr-empty p { color: #5b6b82; max-width: 640px; margin: 0; }

.b2bbar { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; margin-top: 16px; background: #1b2433; color: #fff; border-radius: 12px; overflow: hidden; }
.b2bbar > * { padding: 18px 22px; display: flex; align-items: center; gap: 14px; color: #fff; }
.b2bbar > * + * { border-left: 1px solid rgba(255,255,255,.12); }
.b2bbar .hi { justify-content: space-between; }
.b2bbar .hi small { display: block; font-size: 14px; opacity: .85; }
.b2bbar .hi b { font-size: 18px; }
.b2bbar .hi-help { display: flex; align-items: center; gap: 10px; color: #fff; text-align: right; font-size: 14px; }
.b2bbar .hi-help span { display: grid; }
.b2bbar .kp i { width: 44px; height: 44px; border-radius: 6px; background: var(--k); display: grid; place-items: center; flex: none; }
.b2bbar .kp span { display: grid; flex: 1; font-size: 14.5px; }
.b2bbar .kp span b { font-size: 26px; line-height: 1.1; }
.b2bbar .kp em { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,.55); display: grid; place-items: center; font-style: normal; font-size: 15px; transition: .15s; }
.b2bbar .kp:hover { background: rgba(255,255,255,.05); color: #fff; }
.b2bbar .kp:hover em { background: #fff; color: #1b2433; }

.b2bcats h2 { margin: 0; font-size: 26px; font-weight: 500; }
.b2bcats > p { margin: 4px 0 16px; }
.bc-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.bc { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 16px 14px 18px; display: flex; flex-direction: column; min-height: 130px; transition: .15s; }
.bc:hover { border-color: var(--cc); box-shadow: var(--shadow); color: var(--text); transform: translateY(-2px); }
.bc-ic { display: block; height: 48px; margin-bottom: 14px; }
.bc em { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; font-style: normal; color: var(--muted); font-size: 14px; transition: .15s; }
.bc:hover em { background: var(--cc); border-color: var(--cc); color: #fff; }
.bc b { font-size: 16px; font-weight: 600; }
.bc small { color: var(--muted); font-size: 14px; margin-top: 4px; }
@media (max-width: 1200px) {
  .bc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .b2bbar { grid-template-columns: 1fr 1fr 1fr; }
  .b2bbar .hi { grid-column: 1 / -1; border-bottom: 1px solid rgba(255,255,255,.12); }
  .b2bbar .hi + * { border-left: 0; }
}
@media (max-width: 900px) {
  .b2bnav { flex-wrap: wrap; }
  .b2bnav .help { display: none; }
  .dd-cols { grid-template-columns: repeat(2, minmax(140px, 1fr)); }
}
@media (max-width: 700px) {
  .bnr { border-radius: 10px; margin-top: 12px; }
  .bnr:has(.bnr-empty) { aspect-ratio: 16 / 9; }
  .bnr-dots { bottom: 6px; } .bnr-dots button { width: 7px; height: 7px; }
  .bnr-empty { padding: 0 20px; }
  .bnr-empty p { display: none; }
  .bc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .b2bbar { grid-template-columns: 1fr; }
  .b2bbar > * + * { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .b2bbar .hi { border-bottom: 0; }
  .b2bbar > * { padding: 14px 16px; }
  .vat-sw span small { display: none; }
  .btn-cats { padding: 0 12px; font-size: 14px; }
  .dd summary { padding: 0 10px; font-size: 14px; }
  .dd-menu { position: fixed; left: 16px; right: 16px; top: auto; }
}

/* platforma B2B închisă: antet simplu până la autentificare */
.gate-note { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: 14.5px; }
.gate-note svg { color: var(--red); }
@media (max-width: 700px) { .gate-note { display: none; } }

/* adrese de livrare și delegați în contul partenerului */
.pty-item { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); }
.pty-item form { flex: none; }
.pty-add { margin-top: 12px; }
.pty-add summary { list-style: none; display: inline-flex; cursor: pointer; }
.pty-add summary::-webkit-details-marker { display: none; }
.pty-add[open] summary { display: none; }

/* B2B: date de facturare blocate la comandă */
.bill-box { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2, #f5f8fc); }
.bill-box div { display: grid; gap: 2px; font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.bill-box small { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.radio-cards.wrap { display: flex; flex-wrap: wrap; gap: 10px; margin-left: 0; padding-left: 0; }
.radio-cards.wrap label { flex: 1 1 150px; }
@media (max-width: 700px) { .bill-box { grid-template-columns: 1fr; } }
