/* Stiluri pentru catalog, coș și paginile de magazin.
   Folosesc aceleași culori și fonturi ca restul site-ului Kiltex. */

:root{
  --ink:#0B1220; --ink-2:#121B2E; --paper:#F5F6F8; --white:#FFFFFF; --text:#12151C;
  --muted:#5B6472; --muted-on-dark:#8B93A7; --line:#E4E6EB; --line-dark:#23304a;
  --red:#E5423A; --red-dark:#C22E28; --green:#16A34A; --amber:#B45309;
  --display:'Space Grotesk', sans-serif; --body:'Inter', sans-serif; --mono:'JetBrains Mono', monospace;
  --radius:12px;
  --shadow: 0 1px 2px rgba(15,20,30,0.04), 0 8px 24px -12px rgba(15,20,30,0.10);
  --shadow-lg: 0 20px 50px -20px rgba(15,20,30,0.22);
}
*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{ font-family:var(--body); color:var(--text); background:var(--white); line-height:1.5; -webkit-font-smoothing:antialiased; }
img{ max-width:100%; display:block; }
a{ color:inherit; }
button{ font:inherit; cursor:pointer; }
.wrap{ max-width:1180px; margin:0 auto; padding:0 24px; }
h1,h2,h3{ font-family:var(--display); font-weight:700; letter-spacing:-0.01em; line-height:1.15; }
.eyebrow{ font-family:var(--mono); font-size:13px; letter-spacing:0.08em; color:var(--red); display:flex; align-items:center; gap:10px; margin-bottom:14px; text-transform:uppercase; }
.eyebrow::before{ content:""; width:28px; height:2px; background:var(--red); }
.mono{ font-family:var(--mono); }
.muted{ color:var(--muted); }
.sr-only{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
:focus-visible{ outline:2px solid var(--red); outline-offset:2px; }

/* ===== HEADER ===== */
.shop-header{ position:sticky; top:0; z-index:100; background:rgba(11,18,32,0.96); backdrop-filter:blur(8px); border-bottom:1px solid var(--line-dark); }
.shop-header > .wrap{ display:flex; align-items:center; gap:28px; padding-top:14px; padding-bottom:14px; }
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; }
.brand img{ height:26px; width:auto; }
.brand span{ font-family:var(--display); font-weight:700; color:var(--white); font-size:18px; }
.shop-nav{ display:flex; gap:28px; margin-left:12px; }
.shop-nav a{ color:var(--muted-on-dark); text-decoration:none; font-size:14px; font-weight:500; transition:color .2s; }
.shop-nav a:hover, .shop-nav a[aria-current]{ color:var(--white); }
.shop-nav{ align-items:center; }
.shop-nav a.nav-shop{ display:inline-flex; align-items:center; gap:7px; font-family:var(--mono); font-size:13px; font-weight:500; letter-spacing:0.08em; color:var(--white); border:1px solid var(--red); border-radius:7px; padding:7px 12px; background:rgba(229,66,58,0.12); }
.shop-nav a.nav-shop:hover, .shop-nav a.nav-shop[aria-current]{ background:rgba(229,66,58,0.28); color:var(--white); }
.nav-shop svg{ width:15px; height:15px; color:var(--red); }
.mobile-panel a.nav-shop{ display:flex; align-items:center; justify-content:center; gap:8px; color:var(--white); font-family:var(--mono); letter-spacing:0.08em; border:1px solid var(--red); border-radius:7px; margin-top:10px; background:rgba(229,66,58,0.12); }
.header-actions{ margin-left:auto; display:flex; align-items:center; gap:10px; }
.header-call{ font-family:var(--mono); font-size:13.5px; color:var(--white); text-decoration:none; display:flex; align-items:center; gap:8px; border:1px solid var(--line-dark); padding:9px 14px; border-radius:7px; transition:border-color .2s; }
.header-call svg{ width:15px; height:15px; color:var(--red); }
.header-call:hover{ border-color:var(--red); }
.cart-link{ position:relative; display:flex; align-items:center; justify-content:center; width:42px; height:40px; border:1px solid var(--line-dark); border-radius:7px; color:var(--white); transition:border-color .2s; }
.cart-link:hover{ border-color:var(--red); }
.cart-link svg{ width:20px; height:20px; }
.cart-count{ position:absolute; top:-7px; right:-7px; min-width:20px; height:20px; padding:0 5px; border-radius:10px; background:var(--red); color:var(--white); font-family:var(--mono); font-size:11.5px; display:flex; align-items:center; justify-content:center; }
.cart-count[hidden]{ display:none; }
.nav-toggle{ display:none; background:none; border:1px solid var(--line-dark); color:var(--white); width:42px; height:40px; border-radius:7px; align-items:center; justify-content:center; }
.nav-toggle svg{ width:18px; height:18px; }
.mobile-panel{ display:none; flex-direction:column; background:var(--ink); border-top:1px solid var(--line-dark); padding:8px 24px 16px; }
.mobile-panel a{ color:var(--muted-on-dark); text-decoration:none; font-size:15px; padding:12px 2px; border-bottom:1px solid var(--line-dark); }
.mobile-panel.open{ display:flex; }


/* ===== PAGE HEAD ===== */
.page-head{ background:var(--ink); color:var(--white); padding:48px 0 44px; position:relative; overflow:hidden; }
.page-head::after{ content:""; position:absolute; top:-140px; right:-160px; width:520px; height:520px; border-radius:50%; background:radial-gradient(circle, rgba(229,66,58,0.20), rgba(229,66,58,0) 70%); }
.page-head .wrap{ position:relative; z-index:1; }
.page-head h1{ font-size:clamp(28px,4vw,42px); max-width:22ch; margin-bottom:12px; }
.page-head p{ color:var(--muted-on-dark); max-width:62ch; font-size:16.5px; }
.perks{ display:flex; flex-wrap:wrap; gap:10px 26px; margin-top:24px; padding-top:20px; border-top:1px solid var(--line-dark); font-family:var(--mono); font-size:12.5px; color:var(--muted-on-dark); letter-spacing:0.02em; }
.perks span{ display:flex; align-items:center; gap:8px; }
.perks svg{ width:15px; height:15px; color:var(--red); flex:none; }

.crumbs{ font-family:var(--mono); font-size:12.5px; color:var(--muted); padding:18px 0; display:flex; flex-wrap:wrap; gap:8px; }
.crumbs a{ text-decoration:none; }
.crumbs a:hover{ color:var(--red); }
.crumbs span[aria-hidden]{ opacity:.5; }

/* ===== CATALOG ===== */
.catalog{ padding:36px 0 72px; background:var(--paper); min-height:50vh; }
.catalog-layout{ display:grid; grid-template-columns:240px 1fr; gap:32px; align-items:start; }
.filters{ position:sticky; top:90px; display:flex; flex-direction:column; gap:26px; }
.filter-h{ font-family:var(--mono); font-size:12px; letter-spacing:0.08em; text-transform:uppercase; color:var(--muted); margin-bottom:10px; }
.filter-list{ display:flex; flex-direction:column; gap:2px; }
.filter-list a, .filter-list button{ display:flex; justify-content:space-between; align-items:center; gap:10px; text-align:left; background:none; border:none; padding:8px 10px; border-radius:7px; font-size:14.5px; color:var(--text); text-decoration:none; transition:background .15s; }
.filter-list a:hover, .filter-list button:hover{ background:var(--white); }
.filter-list [aria-current="true"], .filter-list [aria-pressed="true"]{ background:var(--ink); color:var(--white); }
.filter-list .n{ font-family:var(--mono); font-size:12px; color:var(--muted); }
.filter-list [aria-current="true"] .n, .filter-list [aria-pressed="true"] .n{ color:var(--muted-on-dark); }
.search{ position:relative; }
.search input{ width:100%; font:inherit; font-size:14.5px; padding:11px 12px 11px 38px; border:1px solid var(--line); border-radius:8px; background:var(--white); }
.search svg{ position:absolute; left:12px; top:50%; transform:translateY(-50%); width:16px; height:16px; color:var(--muted); }
.toolbar{ display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; gap:16px; flex-wrap:wrap; }
.toolbar .count{ font-family:var(--mono); font-size:13px; color:var(--muted); }
.empty{ padding:48px 20px; text-align:center; color:var(--muted); background:var(--white); border:1px dashed var(--line); border-radius:var(--radius); }

@media (max-width:900px){
  .catalog-layout{ grid-template-columns:1fr; }
  .filters{ position:static; gap:16px; }
  .filter-list{ flex-direction:row; flex-wrap:wrap; gap:6px; }
  .filter-list a, .filter-list button{ background:var(--white); border:1px solid var(--line); padding:7px 12px; font-size:13.5px; }
  .filter-list .n{ display:none; }
}

.grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(230px,1fr)); gap:18px; }
.card{ background:var(--white); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; display:flex; flex-direction:column; box-shadow:var(--shadow); transition:transform .2s, box-shadow .2s; }
.card:hover{ transform:translateY(-3px); box-shadow:var(--shadow-lg); }
.card-img{ aspect-ratio:4/3; background:var(--white); display:flex; align-items:center; justify-content:center; padding:18px; border-bottom:1px solid var(--line); }
.card-img img{ max-height:100%; width:auto; object-fit:contain; }
.card-body{ padding:16px 16px 18px; display:flex; flex-direction:column; gap:6px; flex:1; }
.card-brand{ font-family:var(--mono); font-size:11.5px; letter-spacing:0.08em; text-transform:uppercase; color:var(--muted); }
.card h3{ font-size:16.5px; }
.card h3 a{ text-decoration:none; }
.card h3 a::after{ content:""; position:absolute; inset:0; }
.card{ position:relative; }
.card-desc{ font-size:13.5px; color:var(--muted); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.card-foot{ margin-top:auto; padding-top:12px; display:flex; align-items:flex-end; justify-content:space-between; gap:10px; }
.card .btn-add{ position:relative; z-index:2; }

.avail{ font-family:var(--mono); font-size:12px; display:inline-flex; align-items:center; gap:6px; }
.avail::before{ content:""; width:7px; height:7px; border-radius:50%; background:currentColor; }
.avail.in_stoc{ color:var(--green); }
.avail.la_comanda{ color:var(--amber); }
.avail.indisponibil{ color:var(--muted); }

.price{ font-family:var(--display); font-weight:700; font-size:20px; line-height:1.1; }
.price-net{ font-family:var(--mono); font-size:11.5px; color:var(--muted); margin-top:3px; }

/* ===== BUTTONS ===== */
.btn{ font-family:var(--body); font-weight:600; font-size:15px; padding:14px 22px; border-radius:8px; text-decoration:none; display:inline-flex; align-items:center; justify-content:center; gap:9px; border:1px solid transparent; transition:transform .15s, background .2s, border-color .2s, color .2s; }
.btn svg{ width:17px; height:17px; flex:none; }
.btn-primary{ background:var(--red); color:var(--white); }
.btn-primary:hover{ background:var(--red-dark); transform:translateY(-1px); }
.btn-dark{ background:var(--ink); color:var(--white); }
.btn-dark:hover{ background:#1a2540; }
.btn-outline{ border-color:var(--line); background:var(--white); color:var(--text); }
.btn-outline:hover{ border-color:var(--text); }
.btn-ghost{ border-color:var(--line-dark); color:var(--white); }
.btn-ghost:hover{ border-color:var(--muted-on-dark); }
.btn-wa{ background:#25D366; color:#fff; }
.btn-wa:hover{ background:#1ebe5b; }
.btn[disabled]{ opacity:.5; cursor:not-allowed; transform:none; }
.btn-add{ width:42px; height:42px; padding:0; border-radius:8px; background:var(--ink); color:var(--white); border:none; display:inline-flex; align-items:center; justify-content:center; flex:none; transition:background .2s; }
.btn-add:hover{ background:var(--red); }
.btn-add svg{ width:19px; height:19px; }
.btn-add[disabled]{ background:var(--line); color:var(--muted); cursor:not-allowed; }

/* ===== PRODUCT PAGE ===== */
.product{ padding:8px 0 56px; }
.product-grid{ display:grid; grid-template-columns:1.05fr 1fr; gap:48px; align-items:start; }
.gallery-main{ aspect-ratio:1/1; border:1px solid var(--line); border-radius:var(--radius); display:flex; align-items:center; justify-content:center; padding:32px; background:var(--white); }
.gallery-main img{ max-height:100%; width:auto; object-fit:contain; }
.thumbs{ display:flex; gap:10px; margin-top:12px; flex-wrap:wrap; }
.thumbs button{ width:72px; height:72px; border:1px solid var(--line); border-radius:8px; background:var(--white); padding:6px; display:flex; align-items:center; justify-content:center; }
.thumbs button[aria-current="true"]{ border-color:var(--red); box-shadow:0 0 0 1px var(--red); }
.thumbs img{ max-height:100%; object-fit:contain; }
.p-meta{ font-family:var(--mono); font-size:12.5px; color:var(--muted); display:flex; gap:14px; flex-wrap:wrap; margin-bottom:10px; letter-spacing:0.03em; }
.p-meta b{ color:var(--text); font-weight:500; }
.product h1{ font-size:clamp(26px,3.4vw,38px); margin-bottom:12px; }
.p-lead{ color:var(--muted); font-size:16px; margin-bottom:22px; }
.buybox{ border:1px solid var(--line); border-radius:var(--radius); padding:22px; background:var(--paper); }
.buybox .price{ font-size:34px; }
.buybox .price-net{ font-size:12.5px; margin-top:6px; }
.buybox .avail{ margin-bottom:14px; font-size:13px; }
.buy-row{ display:flex; gap:10px; margin-top:20px; flex-wrap:wrap; }
.qty{ display:flex; align-items:center; border:1px solid var(--line); border-radius:8px; background:var(--white); height:50px; }
.qty button{ width:40px; height:100%; background:none; border:none; font-size:18px; color:var(--muted); }
.qty button:hover{ color:var(--text); }
.qty input{ width:44px; height:100%; border:none; text-align:center; font:inherit; font-family:var(--mono); font-size:15px; -moz-appearance:textfield; background:transparent; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button{ -webkit-appearance:none; }
.buy-row .btn{ flex:1; min-width:0; height:50px; padding:0 16px; }
.buy-row .btn-outline, .buy-row .btn:only-child{ flex:1 0 100%; }
.ship-list{ list-style:none; margin-top:20px; display:flex; flex-direction:column; gap:9px; font-size:14px; color:var(--muted); }
.ship-list li{ display:flex; gap:10px; align-items:flex-start; }
.ship-list svg{ width:17px; height:17px; color:var(--text); flex:none; margin-top:2px; }
.ship-list b{ color:var(--text); font-weight:600; }
.rate-note{ font-family:var(--mono); font-size:11.5px; color:var(--muted); margin-top:14px; }
@media (max-width:900px){ .product-grid{ grid-template-columns:1fr; gap:28px; } .gallery-main{ aspect-ratio:4/3; } }

.p-section{ padding:44px 0; border-top:1px solid var(--line); }
.p-section h2{ font-size:24px; margin-bottom:18px; }
.p-cols{ display:grid; grid-template-columns:1.2fr 1fr; gap:48px; }
@media (max-width:900px){ .p-cols{ grid-template-columns:1fr; gap:36px; } }
.prose{ color:#2a303b; max-width:68ch; font-size:15.5px; }
.prose p + p, .prose ul, .prose ol{ margin-top:12px; }
.prose ul, .prose ol{ padding-left:20px; }
.prose li + li{ margin-top:4px; }
.spec-table{ width:100%; border-collapse:collapse; font-size:14.5px; }
.spec-table th, .spec-table td{ text-align:left; padding:11px 0; border-bottom:1px solid var(--line); vertical-align:top; }
.spec-table th{ font-weight:500; color:var(--muted); width:45%; padding-right:16px; }
.datasheet{ display:flex; align-items:center; gap:14px; margin-top:22px; padding:16px 18px; border:1px solid var(--line); border-radius:var(--radius); text-decoration:none; transition:border-color .2s; }
.datasheet:hover{ border-color:var(--red); }
.datasheet svg{ width:28px; height:28px; color:var(--red); flex:none; }
.datasheet small{ display:block; font-family:var(--mono); font-size:12px; color:var(--muted); }

.help-cta{ background:var(--ink); color:var(--white); border-radius:16px; padding:40px; display:grid; grid-template-columns:1.3fr 1fr; gap:32px; align-items:center; position:relative; overflow:hidden; }
.help-cta::after{ content:""; position:absolute; bottom:-180px; right:-120px; width:420px; height:420px; border-radius:50%; background:radial-gradient(circle, rgba(229,66,58,0.22), rgba(229,66,58,0) 70%); }
.help-cta > *{ position:relative; z-index:1; }
.help-cta h2{ font-size:clamp(22px,2.6vw,30px); margin-bottom:10px; }
.help-cta p{ color:var(--muted-on-dark); }
.help-cta .actions{ display:flex; flex-direction:column; gap:10px; }
.help-cta .svc{ display:inline-block; margin-top:16px; font-family:var(--mono); font-size:13px; color:var(--white); }
@media (max-width:760px){ .help-cta{ grid-template-columns:1fr; padding:28px 22px; } }

.related{ padding:8px 0 64px; }
.related h2{ font-size:24px; margin-bottom:20px; }

/* ===== DIALOG / FORMS ===== */
dialog{ border:none; border-radius:16px; padding:0; width:min(520px, calc(100vw - 32px)); max-height:calc(100vh - 32px); box-shadow:var(--shadow-lg); margin:auto; }
dialog::backdrop{ background:rgba(11,18,32,0.6); }
.dlg-head{ display:flex; justify-content:space-between; align-items:flex-start; gap:16px; padding:22px 24px 0; }
.dlg-head h2{ font-size:22px; }
.dlg-close{ background:none; border:none; font-size:26px; line-height:1; color:var(--muted); padding:0 4px; }
.dlg-body{ padding:16px 24px 24px; }
.form{ display:flex; flex-direction:column; gap:14px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media (max-width:560px){ .form-row{ grid-template-columns:1fr; } }
.field label{ display:block; font-size:13.5px; font-weight:500; margin-bottom:6px; }
.field label small{ color:var(--muted); font-weight:400; }
.field input, .field textarea{ width:100%; font:inherit; font-size:15px; padding:11px 13px; border:1px solid var(--line); border-radius:8px; background:var(--white); color:var(--text); }
.field textarea{ min-height:90px; resize:vertical; }
.field input:focus, .field textarea:focus{ outline:none; border-color:var(--ink); box-shadow:0 0 0 3px rgba(11,18,32,0.08); }
.field-prod{ font-family:var(--mono); font-size:13px; background:var(--paper); padding:10px 13px; border-radius:8px; }
.check{ display:flex; gap:10px; font-size:13.5px; color:var(--muted); align-items:flex-start; }
.check input{ margin-top:3px; width:16px; height:16px; accent-color:var(--red); flex:none; }
.check a{ color:var(--text); }
.form-msg{ font-size:14px; padding:12px 14px; border-radius:8px; }
.form-msg.err{ background:#FEF2F2; color:#991B1B; }
.hp{ position:absolute; left:-9999px; }
.done{ text-align:center; padding:12px 0 4px; }
.done-icon{ width:56px; height:56px; border-radius:50%; background:#DCFCE7; color:var(--green); display:flex; align-items:center; justify-content:center; margin:0 auto 16px; }
.done-icon svg{ width:28px; height:28px; }
.done h2, .done h3{ margin-bottom:8px; }
.done p{ color:var(--muted); }

/* ===== CART ===== */
.cart-page{ padding:36px 0 80px; background:var(--paper); min-height:60vh; }
.cart-layout{ display:grid; grid-template-columns:1fr 400px; gap:28px; align-items:start; }
@media (max-width:960px){ .cart-layout{ grid-template-columns:1fr; } }
.panel{ background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:24px; }
.panel h2{ font-size:20px; margin-bottom:16px; }
.cart-items{ list-style:none; }
.cart-item{ display:grid; grid-template-columns:72px 1fr auto; gap:16px; padding:16px 0; border-bottom:1px solid var(--line); align-items:center; }
.cart-item:first-child{ padding-top:0; }
.cart-item:last-child{ border-bottom:none; padding-bottom:0; }
.ci-img{ width:72px; height:72px; border:1px solid var(--line); border-radius:8px; display:flex; align-items:center; justify-content:center; padding:6px; }
.ci-img img{ max-height:100%; object-fit:contain; }
.ci-title{ font-weight:600; text-decoration:none; }
.ci-title:hover{ color:var(--red); }
.ci-sub{ font-family:var(--mono); font-size:12px; color:var(--muted); margin-top:2px; }
.ci-ctrl{ display:flex; align-items:center; gap:12px; margin-top:10px; }
.ci-ctrl .qty{ height:36px; }
.ci-ctrl .qty button{ width:32px; }
.ci-ctrl .qty input{ width:36px; font-size:14px; }
.ci-remove{ background:none; border:none; font-size:13px; color:var(--muted); text-decoration:underline; }
.ci-remove:hover{ color:var(--red); }
.ci-price{ text-align:right; font-family:var(--display); font-weight:700; font-size:17px; white-space:nowrap; }
.sum-row{ display:flex; justify-content:space-between; font-size:14.5px; padding:6px 0; color:var(--muted); }
.sum-row b{ color:var(--text); font-weight:600; }
.sum-total{ display:flex; justify-content:space-between; align-items:baseline; border-top:1px solid var(--line); margin-top:10px; padding-top:14px; }
.sum-total span{ font-weight:600; }
.sum-total b{ font-family:var(--display); font-size:26px; }
.opt-group{ border:none; display:flex; flex-direction:column; gap:8px; }
.opt-group legend{ font-size:13.5px; font-weight:500; margin-bottom:8px; }
.opt{ display:flex; gap:12px; align-items:flex-start; border:1px solid var(--line); border-radius:8px; padding:12px 14px; cursor:pointer; transition:border-color .15s; }
.opt:has(input:checked){ border-color:var(--ink); box-shadow:0 0 0 1px var(--ink); }
.opt input{ margin-top:3px; accent-color:var(--red); }
.opt b{ display:block; font-size:14.5px; font-weight:600; }
.opt small{ color:var(--muted); font-size:13px; }
.opt .opt-price{ margin-left:auto; font-family:var(--mono); font-size:13px; white-space:nowrap; }
.cart-empty{ text-align:center; padding:56px 20px; }
.cart-empty h2{ margin-bottom:8px; }
.cart-empty p{ color:var(--muted); margin-bottom:22px; }
.order-done{ max-width:620px; margin:0 auto; text-align:center; padding:28px; }
.order-no{ display:inline-block; font-family:var(--mono); font-size:15px; background:var(--paper); border:1px solid var(--line); padding:8px 14px; border-radius:8px; margin:14px 0 6px; }

/* ===== LEGAL PAGES ===== */
.legal{ padding:40px 0 80px; }
.legal .prose{ max-width:760px; }
.legal h2{ font-size:21px; margin:32px 0 10px; }
.legal .note{ background:#FFFBEB; border:1px solid #FDE68A; color:#78350F; padding:14px 16px; border-radius:8px; font-size:14px; margin-bottom:24px; }

/* ===== FOOTER ===== */
.shop-footer{ background:var(--ink); color:var(--muted-on-dark); padding:44px 0 0; font-size:13.5px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:32px; padding-bottom:32px; }
.footer-grid a{ display:block; text-decoration:none; padding:3px 0; }
.footer-grid p a{ display:inline; }
.footer-grid a:hover{ color:var(--white); }
.footer-grid p + p{ margin-top:10px; }
.footer-brand{ display:flex; align-items:center; gap:9px; font-family:var(--display); font-weight:700; color:var(--white); font-size:16px; margin-bottom:12px; }
.footer-h{ font-family:var(--mono); font-size:12px; letter-spacing:0.08em; text-transform:uppercase; color:var(--white); margin-bottom:10px; }
.footer-grid a.anpc{ border:1px solid var(--line-dark); border-radius:7px; padding:9px 12px; margin-bottom:8px; font-size:12.5px; max-width:260px; }
.footer-bottom{ border-top:1px solid var(--line-dark); padding-top:18px; padding-bottom:22px; font-family:var(--mono); font-size:11.5px; }
@media (max-width:760px){ .footer-grid{ grid-template-columns:1fr; gap:24px; } .shop-footer{ padding-bottom:70px; } }

/* ===== TOAST / FAB / COOKIES ===== */
.toast{ position:fixed; left:50%; bottom:24px; transform:translateX(-50%); z-index:400; background:var(--ink); color:var(--white); border-radius:10px; padding:12px 14px 12px 18px; display:flex; align-items:center; gap:16px; box-shadow:var(--shadow-lg); font-size:14px; max-width:calc(100vw - 32px); }
.toast[hidden]{ display:none; }
.toast a{ color:var(--white); font-weight:600; background:var(--red); padding:8px 12px; border-radius:7px; text-decoration:none; white-space:nowrap; }
.whatsapp-fab{ position:fixed; right:22px; bottom:22px; z-index:200; width:56px; height:56px; border-radius:50%; background:#25D366; display:flex; align-items:center; justify-content:center; box-shadow:0 10px 26px -8px rgba(0,0,0,0.4); }
.whatsapp-fab svg{ width:28px; height:28px; fill:#fff; }
@media (max-width:640px){ .whatsapp-fab{ width:50px; height:50px; right:14px; bottom:14px; } .toast{ bottom:76px; } }
.cookie-banner{ display:none; position:fixed; z-index:300; left:20px; bottom:20px; max-width:380px; background:var(--ink); color:var(--white); border:1px solid var(--line-dark); border-radius:var(--radius); padding:22px; box-shadow:var(--shadow-lg); flex-direction:column; }
.cookie-banner.show{ display:flex; }
.cookie-banner p{ font-size:13.5px; color:var(--muted-on-dark); }
.cookie-banner a{ color:var(--white); }
.cookie-banner-actions{ display:flex; gap:10px; margin-top:16px; }
.cookie-banner-actions button{ font-weight:600; font-size:13.5px; padding:10px 18px; border-radius:7px; border:1px solid transparent; }
.cookie-accept{ background:var(--red); color:var(--white); }
.cookie-decline{ background:transparent; border-color:var(--line-dark) !important; color:var(--white); }
@media (max-width:640px){ .cookie-banner{ left:12px; right:12px; bottom:12px; max-width:none; } }
.cart-layout > *, .catalog-layout > *, .product-grid > *{ min-width:0; }
.buy-row .btn{ white-space:nowrap; }
@media (max-width:420px){ .buy-row .btn svg{ display:none; } .cart-item{ grid-template-columns:56px 1fr; } .ci-img{ width:56px; height:56px; } .ci-price{ grid-column:2; text-align:left; } }
.crumbs-dark{ padding:0 0 18px; color:var(--muted-on-dark); }
.crumbs-dark a:hover{ color:var(--white); }
.page-head p a{ color:var(--white); }
.seo-block{ padding:56px 0 64px; border-top:1px solid var(--line); }
.seo-block h2{ font-size:22px; margin-bottom:12px; }
.seo-grid{ display:grid; grid-template-columns:1.2fr 1fr; gap:48px; }
@media (max-width:900px){ .seo-grid{ grid-template-columns:1fr; gap:32px; } }
.faq-h{ margin-bottom:6px; }
.faq{ border-bottom:1px solid var(--line); padding:14px 0; }
.faq summary{ cursor:pointer; list-style:none; display:flex; justify-content:space-between; gap:16px; font-family:var(--display); font-weight:600; font-size:16px; }
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{ content:"+"; color:var(--red); font-size:20px; line-height:1; transition:transform .2s; }
.faq[open] summary::after{ transform:rotate(45deg); }
.faq p{ margin-top:8px; color:var(--muted); font-size:14.5px; }

/* ===== HEADER SHOP: grupuri + subcategorii ===== */
.shop-header > .wrap{ gap:18px; }
.shop-badge{ font-family:var(--mono); font-size:12px; font-weight:500; letter-spacing:0.1em; color:var(--white); text-decoration:none; background:var(--red); border-radius:6px; padding:5px 9px; }
.shop-header .brand{ margin-right:2px; }
.shop-badge:hover{ background:var(--red-dark); }
.shop-nav{ display:flex; gap:2px; margin-left:8px; }
.dd{ position:relative; }
.dd-btn{ display:flex; align-items:center; gap:5px; color:var(--muted-on-dark); text-decoration:none; font-size:14px; font-weight:500; padding:10px 10px; border-radius:7px; transition:color .15s, background .15s; white-space:nowrap; }
.dd-btn svg{ width:14px; height:14px; opacity:.7; transition:transform .2s; }
.dd:hover .dd-btn, .dd:focus-within .dd-btn, .dd-btn.is-active{ color:var(--white); background:rgba(255,255,255,0.06); }
.dd:hover .dd-btn svg, .dd:focus-within .dd-btn svg{ transform:rotate(180deg); }
.dd-panel{ position:absolute; top:100%; left:0; min-width:250px; padding:8px; margin-top:6px; background:var(--white); border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow-lg); display:flex; flex-direction:column; opacity:0; visibility:hidden; transform:translateY(-4px); transition:opacity .15s, transform .15s, visibility .15s; z-index:150; }
.dd-panel::before{ content:""; position:absolute; left:0; right:0; top:-10px; height:10px; }
.dd:hover .dd-panel, .dd:focus-within .dd-panel{ opacity:1; visibility:visible; transform:none; }
.dd-panel a{ display:flex; justify-content:space-between; align-items:center; gap:14px; padding:9px 12px; border-radius:7px; color:var(--text); text-decoration:none; font-size:14px; }
.dd-panel a:hover, .dd-panel a[aria-current]{ background:var(--paper); }
.dd-panel a span{ font-family:var(--mono); font-size:11.5px; color:var(--muted); }
.dd-panel .dd-all{ font-weight:600; border-bottom:1px solid var(--line); border-radius:7px 7px 0 0; margin-bottom:4px; padding-bottom:11px; }
.shop-nav a.nav-shop{ display:none; }
.header-call{ white-space:nowrap; }
@media (max-width:1400px){ .header-call span{ display:none; } .header-call{ padding:0; width:42px; height:40px; justify-content:center; } }
@media (max-width:1060px){ .shop-nav{ display:none; } .nav-toggle{ display:flex; } }
.mobile-panel .m-shop{ display:flex; align-items:center; gap:8px; color:var(--white); font-weight:600; }
.mobile-panel .m-shop svg{ width:17px; height:17px; color:var(--red); }
.m-group{ border-bottom:1px solid var(--line-dark); }
.m-group summary{ list-style:none; cursor:pointer; color:var(--white); font-size:15px; padding:12px 2px; display:flex; justify-content:space-between; }
.m-group summary::-webkit-details-marker{ display:none; }
.m-group summary::after{ content:"+"; color:var(--red); font-size:18px; line-height:1; }
.m-group[open] summary::after{ content:"−"; }
.m-group a{ display:block; padding:9px 2px 9px 14px !important; font-size:14px !important; border-bottom:none !important; }
.m-group a:last-child{ padding-bottom:14px !important; }
.mobile-panel .m-site{ font-size:14px; }
/* sub-categorii pe pagina de grup */
.subcats{ display:flex; flex-wrap:wrap; gap:8px; margin-top:22px; }
.subcats a{ font-size:13.5px; color:var(--white); text-decoration:none; border:1px solid var(--line-dark); border-radius:999px; padding:7px 14px; transition:border-color .15s, background .15s; }
.subcats a:hover{ border-color:var(--red); background:rgba(229,66,58,0.12); }
.subcats a span{ font-family:var(--mono); font-size:11.5px; color:var(--muted-on-dark); margin-left:4px; }
/* arbore categorii în bara laterală */
.tree-g{ margin-top:4px; }
.tree-g > a{ font-weight:600; }
.tree-sub{ display:flex; flex-direction:column; gap:1px; margin:2px 0 6px 12px; padding-left:8px; border-left:1px solid var(--line); }
.tree-sub a{ font-size:14px !important; padding:6px 10px !important; }
@media (max-width:900px){ .tree-sub{ display:none; } .tree-g{ margin:0; } }

/* ===== SHOP: pagina principală ===== */
.shop-hero{ background:var(--ink); color:var(--white); padding:40px 0 44px; position:relative; overflow:hidden; }
.shop-hero::after{ content:""; position:absolute; top:-180px; right:-140px; width:620px; height:620px; border-radius:50%; background:radial-gradient(circle, rgba(229,66,58,0.22), rgba(229,66,58,0) 68%); pointer-events:none; }
.shop-hero .wrap{ position:relative; z-index:1; }
.shop-hero h1{ font-size:clamp(30px,4.4vw,50px); line-height:1.06; max-width:17ch; margin-bottom:16px; letter-spacing:-0.02em; }
.shop-hero-sub{ color:var(--muted-on-dark); font-size:17px; max-width:60ch; }
.shop-hero-sub strong{ color:var(--white); font-weight:600; }
.hero-search{ position:relative; display:flex; gap:8px; max-width:640px; margin-top:28px; background:var(--white); border-radius:12px; padding:6px; box-shadow:0 18px 40px -18px rgba(0,0,0,0.6); }
.hero-search svg{ position:absolute; left:20px; top:50%; transform:translateY(-50%); width:19px; height:19px; color:var(--muted); }
.hero-search input{ flex:1; min-width:0; border:none; font:inherit; font-size:16px; padding:12px 12px 12px 44px; background:transparent; color:var(--text); }
.hero-search input:focus{ outline:none; }
.hero-search .btn{ padding:12px 22px; }
@media (max-width:560px){ .hero-search .btn{ padding:12px 14px; } .hero-search input{ font-size:15px; } }

.groups{ background:var(--paper); padding:28px 0 0; }
.groups-grid{ display:grid; grid-template-columns:repeat(5,1fr); gap:14px; }
@media (max-width:1100px){ .groups-grid{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:700px){ .groups-grid{ grid-template-columns:1fr 1fr; } }

.group-tile{ background:var(--white); border:1px solid var(--line); border-radius:14px; padding:18px 18px 16px; display:flex; flex-direction:column; gap:12px; }
.group-main{ display:grid; grid-template-columns:auto 1fr; grid-template-rows:auto auto; column-gap:12px; align-items:center; text-decoration:none; }
.g-icon{ grid-row:1 / 3; width:44px; height:44px; padding:8px; border-radius:11px; background:var(--ink); color:var(--white); }
.group-main:hover .g-icon{ background:var(--red); }
.group-name{ font-family:var(--display); font-weight:700; font-size:17px; line-height:1.2; }
.group-count{ font-size:12.5px; color:var(--muted); }
.group-subs{ list-style:none; display:flex; flex-direction:column; gap:1px; border-top:1px solid var(--line); padding-top:10px; }
.group-subs a{ display:block; font-size:13.5px; color:var(--muted); text-decoration:none; padding:3px 0; }
.group-subs a:hover{ color:var(--red); }
@media (max-width:700px){ .group-subs{ display:none; } .group-tile{ padding:14px; } }
.groups + .catalog{ padding-top:36px; }

/* ===== Listare ===== */
.grid-title{ font-size:22px; margin-bottom:2px; }
.toolbar{ align-items:flex-end; }
.sort select{ font:inherit; font-size:14px; padding:9px 34px 9px 12px; border:1px solid var(--line); border-radius:8px; background:var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6472' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px; -webkit-appearance:none; appearance:none; color:var(--text); cursor:pointer; }
.card{ transition:box-shadow .2s, border-color .2s; }
.card:hover{ transform:none; border-color:#cfd3da; box-shadow:var(--shadow-lg); }
.card-img{ aspect-ratio:1/1; padding:22px; }
.card-img img{ transition:transform .3s; }
.card:hover .card-img img{ transform:scale(1.04); }
.btn-add{ width:auto; padding:0 14px; gap:7px; font-weight:600; font-size:14px; }
.btn-add span{ display:inline; }
.btn-quote{ position:relative; z-index:2; font-size:13.5px; font-weight:600; color:var(--text); border:1px solid var(--line); border-radius:8px; padding:10px 12px; text-decoration:none; white-space:nowrap; }
.btn-quote:hover{ border-color:var(--text); }


/* ===== Bară fixă pe mobil (pagina de produs) ===== */
.buy-bar{ position:fixed; left:0; right:0; bottom:0; z-index:180; display:flex; align-items:center; justify-content:space-between; gap:14px; background:var(--white); border-top:1px solid var(--line); padding:10px 16px calc(10px + env(safe-area-inset-bottom)); box-shadow:0 -10px 30px -12px rgba(15,20,30,0.25); }
.buy-bar[hidden]{ display:none; }
.buy-bar-title{ font-size:13px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:46vw; }
.buy-bar-price{ font-family:var(--display); font-weight:700; font-size:19px; }
.buy-bar .btn{ padding:12px 18px; }
@media (min-width:901px){ .buy-bar{ display:none !important; } }
body:has(.buy-bar:not([hidden])) .whatsapp-fab{ bottom:84px; }

/* card: preț sus, buton pe toată lățimea */
.card-foot{ flex-direction:column; align-items:stretch; gap:10px; }
.card-foot .btn-add, .card-foot .btn-quote{ width:100%; height:40px; justify-content:center; display:inline-flex; align-items:center; }
@media (max-width:640px){
  .grid{ grid-template-columns:1fr 1fr; gap:10px; }
  .card-img{ padding:12px; }
  .card-body{ padding:12px 12px 14px; gap:4px; }
  .card h3{ font-size:14.5px; }
  .card-desc{ display:none; }
  .card-brand{ font-size:10.5px; }
  .price{ font-size:17px; }
  .price-net{ font-size:10.5px; }
  .btn-add{ font-size:13px; }
  .groups-grid{ gap:8px; }
  .group-tile{ padding:12px; }
  .g-icon{ width:38px; height:38px; padding:7px; }
  .group-name{ font-size:15px; }
}

/* ===== PROMOȚII ===== */
.promo-bar{ display:flex; align-items:center; justify-content:center; gap:12px; background:var(--red); color:var(--white); text-decoration:none; font-size:14px; font-weight:500; padding:9px 16px; text-align:center; }
.promo-bar:hover .promo-cta{ background:var(--white); color:var(--red); }
.promo-dot{ width:8px; height:8px; border-radius:50%; background:var(--white); flex:none; animation:pulse 2s ease-in-out infinite; }
@keyframes pulse{ 50%{ opacity:.35; } }
@media (prefers-reduced-motion:reduce){ .promo-dot{ animation:none; } }
.promo-cta{ font-weight:600; border:1px solid rgba(255,255,255,0.7); border-radius:6px; padding:3px 10px; white-space:nowrap; transition:background .15s, color .15s; }
@media (max-width:560px){ .promo-bar{ font-size:13px; gap:8px; } .promo-cta{ display:none; } }
.dd-promo{ color:#ff8a84 !important; }
.dd-promo:hover, .dd-promo.is-active{ color:var(--white) !important; background:rgba(229,66,58,0.25) !important; }
.dd-right{ left:auto; right:0; }
.m-promo summary{ color:#ff8a84; }
.badges{ position:absolute; top:10px; left:10px; z-index:2; display:flex; flex-direction:column; align-items:flex-start; gap:5px; pointer-events:none; }
.badge{ font-size:12px; font-weight:700; line-height:1; padding:6px 8px; border-radius:6px; color:var(--white); letter-spacing:0.01em; }
.badge-off{ background:var(--red); font-family:var(--display); font-size:13px; }
.badge-hot{ background:#F59E0B; color:#1F1300; }
.badge-clear{ background:var(--ink); }
.buy-badges{ margin-bottom:10px; }
.buy-badges .badges{ position:static; flex-direction:row; }
.price-promo{ color:var(--red); }
.price s{ font-family:var(--body); font-weight:400; font-size:13px; color:var(--muted); margin-left:4px; }
.price-old{ font-size:14px; color:var(--muted); margin-top:6px; }
.price-old s{ color:var(--muted); }
.promo-until{ font-size:13px; color:var(--red-dark); font-weight:500; margin-top:8px; }
.buy-bar-price s{ font-family:var(--body); font-weight:400; font-size:12px; color:var(--muted); }
.ci-sub s{ margin-left:4px; }
.promo-strip{ background:var(--paper); padding:32px 0 4px; }
.promo-strip-head{ display:flex; justify-content:space-between; align-items:baseline; gap:16px; margin-bottom:16px; }
.promo-strip-head h2{ font-size:24px; }
.promo-strip-head a{ font-weight:600; color:var(--red); text-decoration:none; font-size:14.5px; }
.promo-strip-head a:hover{ text-decoration:underline; }
.subcats a[aria-current]{ background:var(--red); border-color:var(--red); }

/* ===== SLIDER (pagina Shop) ===== */
.hero-split{ display:block; }
.shop-hero.has-slider .hero-split{ display:grid; grid-template-columns:minmax(0,0.95fr) minmax(0,1.05fr); gap:44px; align-items:center; }
.shop-hero.has-slider h1{ font-size:clamp(30px,3.6vw,46px); }
.shop-hero .perks{ margin-top:30px; }
@media (max-width:980px){ .shop-hero.has-slider .hero-split{ grid-template-columns:1fr; gap:28px; } }

.slider{ position:relative; background:var(--white); color:var(--text); border-radius:18px; overflow:hidden; box-shadow:0 30px 60px -30px rgba(0,0,0,0.7); }
.slides{ display:flex; overflow-x:auto; scroll-snap-type:x mandatory; scroll-behavior:smooth; scrollbar-width:none; }
.slides::-webkit-scrollbar{ display:none; }
.slides:focus-visible{ outline:2px solid var(--red); outline-offset:-2px; }
.slide{ flex:0 0 100%; scroll-snap-align:start; min-height:360px; position:relative; }
@media (prefers-reduced-motion:reduce){ .slides{ scroll-behavior:auto; } }

.slide-prod{ display:grid; grid-template-columns:1.05fr 0.95fr; align-items:stretch; }
.slide-copy{ padding:28px 10px 64px 30px; display:flex; flex-direction:column; justify-content:center; gap:8px; }
.slide-badges{ display:flex; gap:6px; }
.slide-brand{ font-family:var(--mono); font-size:12px; color:var(--muted); letter-spacing:0.04em; }
.slide-title{ font-size:clamp(22px,2.2vw,30px); line-height:1.1; }
.slide-title a{ text-decoration:none; }
.slide-title a:hover{ color:var(--red); }
.slide-desc{ color:var(--muted); font-size:14.5px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.slide-price{ display:flex; align-items:baseline; gap:10px; margin-top:6px; }
.slide-now{ font-family:var(--display); font-weight:700; font-size:34px; color:var(--red); line-height:1; }
.slide-price s{ color:var(--muted); font-size:16px; }
.slide-save{ font-size:13.5px; font-weight:600; color:var(--green); }
.slide-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:12px; }
.slide-actions .btn{ padding:12px 18px; font-size:14.5px; }
.btn-ghost-dark{ border:1px solid var(--line); color:var(--text); background:var(--white); }
.btn-ghost-dark:hover{ border-color:var(--text); }
.slide-media{ display:flex; align-items:center; justify-content:center; padding:30px 30px 64px 10px; background:radial-gradient(circle at 50% 45%, #fff 0%, #F1F3F6 70%); }
.slide-media img{ max-height:270px; width:auto; object-fit:contain; transition:transform .4s; }
.slide-prod:hover .slide-media img{ transform:scale(1.04); }

.slide-banner{ display:flex; align-items:flex-end; background:linear-gradient(135deg, var(--red) 0%, #9F1F1A 100%); color:var(--white); }
.slide-banner.has-img{ background:var(--ink); }
.slide-bg{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.slide-banner.has-img::after{ content:""; position:absolute; inset:0; background:linear-gradient(0deg, rgba(11,18,32,0.88) 0%, rgba(11,18,32,0.2) 60%, rgba(11,18,32,0) 100%); }
.slide-banner-copy{ position:relative; z-index:1; padding:30px 30px 70px; max-width:520px; display:flex; flex-direction:column; align-items:flex-start; gap:10px; }
.slide-banner-copy p{ color:rgba(255,255,255,0.85); font-size:15.5px; }
.slide-banner .slide-title{ font-size:clamp(26px,2.8vw,36px); }
.slide-tag{ background:var(--white); color:var(--red); font-weight:700; font-size:13px; border-radius:6px; padding:5px 10px; }
.slide-banner .btn-primary{ background:var(--white); color:var(--red); }
.slide-banner .btn-primary:hover{ background:var(--paper); }

.slider-ctrl{ position:absolute; left:0; right:0; bottom:14px; display:flex; align-items:center; justify-content:center; gap:12px; z-index:3; pointer-events:none; }
.slider-ctrl > *{ pointer-events:auto; }
.sl-arrow{ width:34px; height:34px; border-radius:50%; border:1px solid var(--line); background:var(--white); color:var(--text); display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow); }
.sl-arrow:hover{ border-color:var(--text); }
.sl-arrow svg{ width:16px; height:16px; }
.sl-dots{ display:flex; gap:6px; background:rgba(255,255,255,0.9); padding:6px 8px; border-radius:999px; }
.sl-dots button{ width:8px; height:8px; padding:0; border-radius:999px; border:none; background:#C9CDD4; transition:width .2s, background .2s; }
.sl-dots button[aria-current]{ width:22px; background:var(--red); }

@media (max-width:640px){
  .slide{ min-height:0; }
  .slide-prod{ grid-template-columns:1fr; }
  .slide-media{ order:-1; padding:20px 20px 6px; height:200px; }
  .slide-media img{ max-height:170px; }
  .slide-copy{ padding:10px 18px 62px; }
  .slide-now{ font-size:28px; }
  .slide-banner{ min-height:300px; }
  .slide-banner-copy{ padding:22px 18px 64px; }
}
.slide, .slide-copy, .hero-main, .hero-slider{ min-width:0; }
.slide-prod{ grid-template-columns:1.2fr 0.8fr; }
.slide-copy{ overflow-wrap:anywhere; }
@media (max-width:640px){ .slide-prod{ grid-template-columns:1fr; } }
/* logo și SHOP nu se micșorează niciodată; meniul trece în ☰ când nu mai încape */
.shop-header .brand, .shop-badge, .header-actions{ flex:none; }
.dd-btn{ padding:10px 8px; }
@media (max-width:1180px){ .shop-nav{ display:none; } .nav-toggle{ display:flex; } }

/* Pictograme ANPC SAL / SOL (imaginile oficiale; dacă nu se încarcă, apare varianta text) */
.footer-grid a.anpc-badge{ display:block; width:250px; max-width:100%; margin-bottom:10px; padding:0; border-radius:10px; transition:transform .15s; }
.footer-grid a.anpc-badge:hover{ transform:translateY(-1px); }
.anpc-badge img{ width:250px; max-width:100%; height:auto; display:block; }
.anpc-fb{ display:none; }
.anpc-badge.fb img{ display:none; }
.anpc-badge.fb .anpc-fb{ display:flex; flex-direction:column; align-items:center; gap:3px; background:var(--white); border:2px solid #2B3A8C; border-radius:10px; padding:6px 10px; text-align:center; }
.anpc-fb b{ color:#2B3A8C; font-size:12px; font-weight:800; text-transform:uppercase; line-height:1.15; }
.anpc-fb i{ font-style:normal; background:#2B3A8C; color:var(--white); font-size:9.5px; font-weight:700; text-transform:uppercase; border-radius:999px; padding:1px 9px; }

/* =====================================================================
   V2 — design „Firme & persoane fizice” (mobil-first)
   ===================================================================== */
[hidden]{ display:none !important; }
/* Prețuri: cu TVA (implicit) / fără TVA (modul Firmă) */
.pn{ display:none; }
html[data-pret="net"] .pn{ display:inline; }
html[data-pret="net"] .pg{ display:none; }
body.no-scroll{ overflow:hidden; }

/* ----- Header ----- */
.hdr-row{ display:flex; align-items:center; gap:16px !important; }
.hdr-search{ flex:1; min-width:0; display:flex; align-items:center; gap:8px; background:var(--white); border-radius:10px; padding:4px 4px 4px 14px; }
.hdr-search svg{ width:18px; height:18px; color:var(--muted); flex:none; }
.hdr-search input{ flex:1; min-width:0; border:none; font:inherit; font-size:15px; padding:8px 4px; background:transparent; color:var(--text); }
.hdr-search input:focus{ outline:none; }
.hdr-search:focus-within{ box-shadow:0 0 0 3px rgba(229,66,58,0.45); }
.hdr-search button{ background:var(--red); color:#fff; border:none; border-radius:7px; padding:8px 16px; font-weight:600; font-size:14px; }
.hdr-search button:hover{ background:var(--red-dark); }
.acct-link{ display:flex; align-items:center; gap:8px; height:40px; padding:0 12px; border:1px solid var(--line-dark); border-radius:7px; color:#fff; text-decoration:none; font-size:14px; font-weight:500; white-space:nowrap; transition:border-color .2s; }
.acct-link:hover{ border-color:var(--red); }
.acct-link svg{ width:18px; height:18px; }
.header-call svg, .cart-link svg{ width:18px; height:18px; }
.hdr-nav{ border-top:1px solid var(--line-dark); }
.hdr-nav-row{ display:flex; align-items:center; gap:2px; padding-top:3px; padding-bottom:3px; }
.hdr-nav .dd-btn{ font-size:14px; }
.nav-sep{ flex:1; }
.nav-b2b{ display:flex; align-items:center; gap:7px; color:#fff; text-decoration:none; font-size:13.5px; font-weight:600; border:1px solid var(--line-dark); border-radius:8px; padding:8px 12px; white-space:nowrap; }
.nav-b2b:hover{ border-color:var(--red); }
.nav-b2b svg{ width:16px; height:16px; color:var(--red); }
.hdr-nav .dd:last-of-type .dd-panel{ left:auto; right:0; }
.hdr-mode-m{ display:none; }

/* comutator Persoană fizică / Firmă */
.mode{ display:inline-grid; grid-template-columns:1fr 1fr; background:var(--ink-2); border:1px solid var(--line-dark); border-radius:9px; padding:3px; flex:none; }
.mode button{ background:none; border:none; color:var(--muted-on-dark); font-size:12.5px; font-weight:600; padding:7px 10px; border-radius:7px; white-space:nowrap; }
.mode button[aria-pressed="true"]{ background:#fff; color:var(--ink); }
.mode .m-short{ display:none; }
.mode-hdr .m-long{ display:none; } .mode-hdr .m-short{ display:inline; }
.mode-box{ display:grid; width:100%; background:#fff; border-color:var(--line); margin:4px 0 10px; }
.mode-box button{ color:var(--muted); padding:9px 10px; font-size:13px; }
.mode-box button[aria-pressed="true"]{ background:var(--ink); color:#fff; }

/* tabletă: categoriile în foaia de jos */
@media (max-width:1100px){
  .hdr-nav{ display:none; }
  .nav-toggle{ display:flex !important; }
  .acct-link span{ display:none; }
  .acct-link{ width:42px; padding:0; justify-content:center; }
}
/* mobil */
@media (max-width:900px){
  .hdr-row{ flex-wrap:wrap; row-gap:10px !important; column-gap:8px !important; padding-top:10px !important; padding-bottom:10px !important; }
  .hdr-search{ order:5; flex:1 0 100%; }
  .mode-hdr{ display:none; }
  .nav-toggle{ display:none !important; }
  .header-actions{ margin-left:auto; gap:8px; }
  .hdr-mode-m{ display:block; padding:0 16px 12px; }
  .hdr-mode-m .mode{ display:grid; width:100%; }
  .hdr-mode-m .mode button{ padding:8px 6px; font-size:13px; }
  .shop-header{ position:relative; }
  body{ padding-bottom:76px; }
  .whatsapp-fab{ bottom:88px !important; right:14px; width:48px; height:48px; }
  .toast{ bottom:90px !important; }
  .buy-bar{ bottom:68px; }
  body:has(.buy-bar:not([hidden])) .whatsapp-fab{ bottom:156px !important; }
  .cookie-banner{ bottom:84px !important; }
}

/* foaie categorii */
.sheet{ position:fixed; inset:0; z-index:500; }
.sheet[hidden]{ display:none; }
.sheet-backdrop{ position:absolute; inset:0; background:rgba(11,18,32,0.55); }
.sheet-panel{ position:absolute; left:0; right:0; bottom:0; max-height:86vh; overflow:auto; background:var(--ink); color:#fff; border-radius:18px 18px 0 0; padding:6px 20px 28px; animation:sheetUp .22s ease-out; }
@media (min-width:901px){ .sheet-panel{ left:auto; top:0; bottom:0; width:380px; max-height:none; border-radius:0; animation:sheetIn .2s ease-out; } }
@keyframes sheetUp{ from{ transform:translateY(30px); opacity:.6; } }
@keyframes sheetIn{ from{ transform:translateX(30px); opacity:.6; } }
@media (prefers-reduced-motion:reduce){ .sheet-panel{ animation:none; } }
.sheet-head{ display:flex; justify-content:space-between; align-items:center; padding:12px 0 8px; position:sticky; top:0; background:var(--ink); }
.sheet-head b{ font-family:var(--display); font-size:19px; }
.sheet-head button{ background:none; border:none; color:#fff; font-size:28px; line-height:1; padding:0 4px; }
.sheet-panel a{ display:block; color:var(--muted-on-dark); text-decoration:none; font-size:15px; padding:12px 2px; border-bottom:1px solid var(--line-dark); }
.sheet-panel .m-shop{ display:flex; align-items:center; gap:9px; color:#fff; font-weight:600; }
.sheet-panel .m-shop svg{ width:18px; height:18px; color:var(--red); }
.sheet-panel .m-group summary span{ margin-left:auto; margin-right:10px; font-family:var(--mono); font-size:12px; color:var(--muted-on-dark); }
.sheet-panel .m-group summary{ align-items:center; }

/* bara de navigare de jos */
.bnav{ display:none; }
@media (max-width:900px){
  .bnav{ display:grid; grid-template-columns:repeat(5,1fr); position:fixed; left:0; right:0; bottom:0; z-index:300; background:#fff; border-top:1px solid var(--line); padding:6px 4px calc(8px + env(safe-area-inset-bottom)); box-shadow:0 -6px 20px -12px rgba(15,20,30,0.2); }
  .bnav a, .bnav button{ position:relative; display:flex; flex-direction:column; align-items:center; gap:3px; background:none; border:none; font:inherit; font-size:10.5px; font-weight:500; color:var(--muted); text-decoration:none; padding:4px 0; }
  .bnav svg{ width:23px; height:23px; }
  .bnav [aria-current]{ color:var(--red); }
  .bnav [aria-current]::before{ content:""; position:absolute; top:-7px; width:28px; height:3px; border-radius:0 0 3px 3px; background:var(--red); }
  .bnav-count{ position:absolute; top:0; left:calc(50% + 5px); min-width:17px; height:17px; padding:0 4px; border-radius:9px; background:var(--red); color:#fff; font-size:10px; display:flex; align-items:center; justify-content:center; }
  .bnav-count[hidden]{ display:none; }
}

/* ----- Carduri ----- */
.chips{ display:flex; flex-wrap:wrap; gap:4px; margin:2px 0 3px; }
.chips span{ font-size:11.5px; font-weight:500; color:#3B4352; background:var(--paper); border:1px solid var(--line); border-radius:5px; padding:2px 6px; line-height:1.4; }
.card-brand{ text-transform:none; letter-spacing:0.02em; }
.price-ask{ font-size:16px !important; }
.price s{ white-space:nowrap; }
@media (max-width:640px){
  .grid{ grid-template-columns:1fr !important; gap:10px; }
  .card{ flex-direction:row; }
  .card-img{ width:120px; flex:none; aspect-ratio:auto; border-bottom:none; border-right:1px solid var(--line); padding:10px; }
  .card-body{ padding:11px 12px 12px; }
  .card-desc{ display:none; }
  .card h3{ font-size:15px; }
  .card-foot{ flex-direction:row !important; align-items:flex-end !important; justify-content:space-between; }
  .card-foot .btn-add{ width:44px !important; height:44px !important; padding:0 !important; flex:none; }
  .card-foot .btn-add span{ display:none; }
  .card-foot .btn-quote{ width:auto !important; height:auto !important; padding:9px 10px; font-size:12.5px; }
  .badges{ top:6px; left:6px; }
  .badge{ font-size:11px; padding:5px 6px; }
}

/* ----- Filtre ----- */
.fgrp{ display:flex; flex-direction:column; gap:2px; }
.fchk{ display:flex; align-items:center; gap:9px; font-size:14px; padding:5px 2px; cursor:pointer; }
.fchk input{ width:17px; height:17px; accent-color:var(--red); flex:none; }
.fchk .n{ margin-left:auto; font-family:var(--mono); font-size:12px; color:var(--muted); }
.frange{ display:flex; align-items:center; gap:6px; }
.frange input{ width:100%; min-width:0; font:inherit; font-size:14px; padding:8px 10px; border:1px solid var(--line); border-radius:8px; background:#fff; }
.freset, .linkbtn{ background:none; border:none; color:var(--red); font-weight:600; font-size:14px; text-decoration:underline; padding:0; text-align:left; }
.filters-head, .fapply, .tb-filter{ display:none; }
.tb-r{ display:flex; gap:8px; align-items:center; }
@media (min-width:901px){ .filters{ max-height:calc(100vh - 140px); overflow:auto; padding-right:6px; } }
@media (max-width:900px){
  .filters{ display:none; }
  .filters.open{ display:flex; position:fixed; inset:0; z-index:500; background:#fff; overflow:auto; padding:0 18px 90px; gap:18px; }
  .filters.open .filters-head{ display:flex; justify-content:space-between; align-items:center; position:sticky; top:0; background:#fff; padding:14px 0 10px; border-bottom:1px solid var(--line); z-index:1; }
  .filters-head b{ font-family:var(--display); font-size:19px; }
  .filters-head button{ background:none; border:none; font-size:28px; line-height:1; color:var(--text); }
  .filters.open .fapply{ display:flex; position:fixed; left:18px; right:18px; bottom:18px; }
  .filters.open .fnav{ display:none; }
  .filters .filter-list{ flex-direction:column; }
  .tb-filter{ display:inline-flex; align-items:center; gap:7px; background:#fff; border:1px solid var(--line); border-radius:8px; padding:9px 12px; font:inherit; font-size:14px; font-weight:600; color:var(--text); }
  .tb-filter svg{ width:16px; height:16px; }
  .tb-filter b{ background:var(--red); color:#fff; border-radius:9px; min-width:18px; height:18px; font-size:11px; display:inline-flex; align-items:center; justify-content:center; padding:0 5px; }
  .tb-filter b[hidden]{ display:none; }
  .toolbar{ position:sticky; top:0; z-index:5; background:var(--paper); padding:8px 0; margin-bottom:8px; }
  .catalog{ padding-top:16px; }
}

/* ----- Pagina de produs ----- */
.kspecs{ display:flex; flex-wrap:wrap; gap:6px 16px; font-size:14px; margin:-8px 0 18px; }
.kspecs span{ display:flex; align-items:center; gap:6px; }
.kspecs svg{ width:15px; height:15px; color:var(--green); }
.buy-top{ display:flex; align-items:center; gap:8px; margin-bottom:6px; }
.buy-top .badges{ position:static; flex-direction:row; }
.buy-top .avail{ margin:0 0 0 auto; }
.volume{ margin-top:14px; background:#fff; border:1px solid var(--line); border-radius:10px; padding:10px 14px; font-size:13.5px; display:flex; flex-direction:column; gap:4px; }
.volume-h{ font-weight:600; font-size:14px; margin-bottom:2px; }
.volume div:not(.volume-h){ display:flex; justify-content:space-between; gap:10px; color:var(--muted); }
.volume b{ color:var(--text); font-weight:600; text-align:right; }
.buy-row .btn svg{ width:17px; height:17px; }
.p-cols{ align-items:start; }
.acc summary{ list-style:none; cursor:default; }
.acc summary::-webkit-details-marker{ display:none; }
.acc summary h2{ display:inline; }
@media (max-width:900px){
  .p-section{ padding:8px 0; border-top:none; }
  .p-cols{ gap:0 !important; }
  .acc{ border-top:1px solid var(--line); }
  .acc:last-child{ border-bottom:1px solid var(--line); }
  .acc summary{ cursor:pointer; display:flex; justify-content:space-between; align-items:center; padding:16px 0; }
  .acc summary h2{ font-size:18px; margin:0; }
  .acc summary::after{ content:"+"; color:var(--red); font-size:22px; line-height:1; }
  .acc[open] summary::after{ content:"−"; }
  .acc > :not(summary){ margin-bottom:16px; }
  .product h1{ font-size:24px; }
  .gallery-main{ padding:18px; }
  .buybox{ padding:16px; }
}

/* ----- Coș ----- */
.cart-head{ background:var(--paper); padding:24px 0 0; }
.cart-head .wrap{ display:flex; justify-content:space-between; align-items:baseline; gap:12px; flex-wrap:wrap; }
.cart-head h1{ font-size:clamp(26px,3vw,36px); }
.cart-acct{ font-size:14px; color:var(--red); font-weight:600; }
.cart-page{ padding-top:16px; }
.who{ display:grid; grid-template-columns:1fr 1fr; gap:4px; background:var(--paper); border-radius:11px; padding:4px; }
.who label{ cursor:pointer; }
.who input{ position:absolute; opacity:0; pointer-events:none; }
.who span{ display:flex; align-items:center; justify-content:center; gap:7px; padding:10px; border-radius:8px; font-size:14px; font-weight:600; color:var(--muted); }
.who span svg{ width:17px; height:17px; }
.who input:checked + span{ background:#fff; color:var(--text); box-shadow:0 1px 3px rgba(15,20,30,0.14); }
.who input:focus-visible + span{ outline:2px solid var(--red); }
.firm-fields{ display:flex; flex-direction:column; gap:14px; }
.firm-fields[hidden]{ display:none; }
.summary{ border-top:1px solid var(--line); padding-top:10px; }
.ci-main{ min-width:0; }
@media (max-width:640px){
  .cart-item{ grid-template-columns:56px 1fr; }
  .ci-img{ width:56px; height:56px; }
  .ci-price{ grid-column:2; text-align:left; }
}

/* ----- Cont ----- */
.acct-page{ background:var(--paper); padding:32px 0 72px; min-height:60vh; }
.acct-wrap{ max-width:980px; }
.acct-msg{ padding:12px 14px; border-radius:10px; font-size:14.5px; margin-bottom:16px; }
.acct-msg.ok{ background:#DCFCE7; color:#14532D; }
.acct-msg.err{ background:#FEF2F2; color:#991B1B; }
.acct-out{ display:grid; grid-template-columns:1fr 420px; gap:40px; align-items:start; }
.acct-out[hidden], .acct-in[hidden]{ display:none; }
@media (max-width:860px){ .acct-out{ grid-template-columns:1fr; gap:20px; } }
.acct-intro h1{ font-size:clamp(28px,3.4vw,40px); margin-bottom:10px; }
.acct-intro p{ color:var(--muted); font-size:16px; }
.acct-perks{ list-style:none; margin-top:18px; display:flex; flex-direction:column; gap:10px; font-size:15px; }
.acct-perks li{ display:flex; gap:10px; align-items:center; }
.acct-perks svg{ width:18px; height:18px; color:var(--green); flex:none; }
.acct-box{ display:flex; flex-direction:column; gap:14px; }
.acct-narrow{ max-width:440px; margin:0 auto; }
.acct-narrow h1{ font-size:26px; }
.tabs2{ display:grid; grid-template-columns:1fr 1fr; border-bottom:1px solid var(--line); }
.tabs2.wide{ display:flex; gap:24px; margin:18px 0 16px; }
.tabs2 button{ background:none; border:none; font:inherit; font-family:var(--display); font-weight:600; font-size:16px; color:var(--muted); padding:10px 2px 12px; }
.tabs2 button[aria-selected="true"]{ color:var(--text); box-shadow:inset 0 -2px 0 var(--red); }
.small-note{ font-size:12.5px; }
.who.small span{ padding:8px; font-size:13.5px; }
.acct-top{ display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; }
.acct-top h1{ font-size:clamp(26px,3vw,34px); }
.orders{ display:flex; flex-direction:column; gap:10px; }
.order{ padding:0; }
.order summary{ list-style:none; cursor:pointer; display:flex; justify-content:space-between; align-items:center; gap:12px; padding:16px 18px; }
.order summary::-webkit-details-marker{ display:none; }
.order summary b{ font-family:var(--mono); font-weight:500; display:block; }
.order summary span{ font-size:13px; color:var(--muted); }
.order-tot{ font-family:var(--display); font-weight:700; font-size:18px; white-space:nowrap; }
.order ul{ list-style:none; border-top:1px solid var(--line); margin:0 18px; padding:10px 0; display:flex; flex-direction:column; gap:6px; font-size:14px; }
.order li{ display:flex; justify-content:space-between; gap:12px; }
.order li i{ font-style:normal; font-family:var(--mono); font-size:11.5px; color:var(--muted); }
.order-meta{ font-size:12.5px; color:var(--muted); padding:0 18px 14px; }
.empty-orders{ text-align:center; display:flex; flex-direction:column; align-items:center; gap:12px; padding:32px; }

/* plăci grupuri pe mobil: listă */
@media (max-width:700px){
  .groups-grid{ grid-template-columns:1fr !important; gap:0 !important; background:#fff; border:1px solid var(--line); border-radius:14px; overflow:hidden; }
  .group-tile{ border:none; border-radius:0; border-top:1px solid var(--line); padding:12px 14px; }
  .group-tile:first-child{ border-top:none; }
  .group-main{ grid-template-columns:auto 1fr auto; grid-template-rows:auto; }
  .group-main .g-icon{ grid-row:auto; width:36px; height:36px; padding:7px; }
  .group-count{ text-align:right; }
  .group-name{ font-size:16px; }
}
.shop-hero .crumbs{ padding-top:0; }
@media (max-width:900px){
  .shop-hero{ padding:20px 0 24px; }
  .shop-hero h1{ font-size:26px !important; }
  .shop-hero-sub{ font-size:15px; }
  .shop-hero .perks{ display:none; }
  .promo-bar{ font-size:12.5px; padding:7px 12px; }
}

@media (min-width:901px){ .acc > summary{ margin-bottom:14px; } }
/* meniul de categorii: numele lungi pe un singur rând */
.dd-panel{ min-width:290px; }
.dd-panel a{ white-space:nowrap; }
