/* Lubrifianti Speciali – site public. Culori din logo: bleumarin #004675, albastru deschis din rotile dintate. */
:root {
    --navy: #004675;
    --navy-dark: #00304f;
    --navy-ink: #0b2236;
    --blue: #1a8fd0;
    --blue-soft: #e6f2fa;
    --accent: #e8730c;
    --accent-dark: #c45f06;
    --ok: #1b7f3b;
    --ok-soft: #e5f4ea;
    --food: #0f766e;
    --food-soft: #e0f2f0;
    --bg: #f3f5f8;
    --surface: #ffffff;
    --line: #dbe1e8;
    --text: #1d2733;
    --muted: #5d6b7a;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(11, 34, 54, .06), 0 4px 14px rgba(11, 34, 54, .06);
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--blue); }
h1, h2, h3 { line-height: 1.2; color: var(--navy-ink); margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
small { font-size: .82em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- butoane, etichete ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 44px; padding: 0 20px; border: 1px solid var(--navy); border-radius: 8px; background: var(--navy); color: #fff; font: 600 .95rem/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: #fff; }
.btn--accent { background: var(--accent); border-color: var(--accent); }
.btn--accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .6); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn--small { min-height: 36px; padding: 0 14px; font-size: .88rem; }

.badge { display: inline-flex; align-items: center; gap: .3em; padding: 2px 8px; border-radius: 999px; background: var(--blue-soft); color: var(--navy); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.badge--stock { background: var(--ok-soft); color: var(--ok); }
.badge--food { background: var(--food-soft); color: var(--food); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: .45em; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-size: .9rem; text-decoration: none; }
.chip small { color: var(--muted); }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip--x { background: var(--blue-soft); border-color: transparent; color: var(--navy); font-weight: 600; }
.chip--x span { font-size: 1.1em; line-height: 1; }
.chip--clear { border-style: dashed; color: var(--muted); }

/* ---------- antet ---------- */
.topbar { background: var(--navy-ink); color: #c8d6e3; font-size: .82rem; }
.topbar__in { display: flex; justify-content: space-between; gap: 16px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar__contact { display: flex; gap: 18px; }

.header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; gap: 24px; padding-top: 12px; padding-bottom: 12px; }
.logo img { width: 220px; height: auto; }
.search { flex: 1; display: flex; max-width: 620px; border: 2px solid var(--navy); border-radius: 8px; overflow: hidden; background: #fff; }
.search input { flex: 1; min-width: 0; border: 0; padding: 0 14px; height: 42px; font: inherit; font-size: .95rem; }
.search input:focus { outline: none; }
.search:focus-within { box-shadow: 0 0 0 3px rgba(26, 143, 208, .25); }
.search button { border: 0; background: var(--navy); color: #fff; width: 50px; cursor: pointer; }
.search button:hover { background: var(--navy-dark); }
.header__cta { margin-left: auto; }

.nav { background: var(--navy); }
.nav__in { display: flex; flex-wrap: wrap; gap: 0 2px; }
.nav__in::-webkit-scrollbar { display: none; }
.nav a { padding: 10px 12px; color: #e6eef5; font-size: .9rem; font-weight: 500; text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav a.is-active { color: #fff; border-bottom-color: var(--accent); }

/* ---------- pagina de start ---------- */
.hero { background: linear-gradient(135deg, var(--navy-ink) 0%, var(--navy) 55%, #0a5f96 100%); color: #e9f1f8; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 460px; height: 460px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .04); }
.hero__in { display: grid; grid-template-columns: 1fr 260px; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 56px; position: relative; z-index: 1; }
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero__text > p { font-size: 1.08rem; max-width: 640px; color: #d2e0ec; }
.hero__text strong { color: #fff; }
.hero__search { display: flex; gap: 8px; max-width: 640px; margin: 24px 0 14px; }
.hero__search input { flex: 1; min-width: 0; height: 52px; padding: 0 18px; border: 0; border-radius: 8px; font: inherit; font-size: 1.02rem; }
.hero__search .btn { min-height: 52px; padding: 0 28px; }
.hero__temp { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: .92rem; color: #d2e0ec; }
.hero__temp input[type=number] { width: 84px; height: 40px; padding: 0 10px; border: 0; border-radius: 6px; font: inherit; }
.hero__food { display: inline-flex; align-items: center; gap: 6px; margin-right: 6px; }
.hero__food input { width: 18px; height: 18px; accent-color: var(--accent); }
.hero__temp .btn { min-height: 40px; }
.hero__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hero__facts li { padding: 14px 18px; border-radius: var(--radius); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); font-size: .92rem; }
.hero__facts strong { display: block; font-size: 1.5rem; color: #fff; line-height: 1.2; }

.block { padding-top: 40px; }
.block__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.block__title { font-size: 1.4rem; margin-bottom: 16px; }

.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.cat { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 18px 44px 18px 18px; border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: var(--radius); background: var(--surface); text-decoration: none; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.cat:hover { border-left-color: var(--accent); transform: translateY(-1px); }
.cat__name { font-weight: 700; color: var(--navy-ink); }
.cat__count { font-size: .85rem; color: var(--muted); }
.cat__arrow { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--navy); font-size: 1.2rem; }

.why { margin-top: 48px; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-top: 36px; padding-bottom: 36px; }
.why h3 { color: var(--navy); }
.why p { color: var(--muted); margin: 0; }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 32px; border-radius: var(--radius); background: var(--blue-soft); border: 1px solid #c9e2f3; }
.cta h2 { margin-bottom: .2em; }
.cta p { margin: 0; color: var(--muted); }

/* ---------- carduri produse ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: #b7c6d4; box-shadow: 0 2px 4px rgba(11, 34, 54, .08), 0 10px 24px rgba(11, 34, 54, .09); }
/* toate cardurile au aceeasi inaltime: zona imaginii fixa, titlu pe 2 randuri, etichete pe un rand, pret jos */
.card__img { flex: none; display: flex; align-items: center; justify-content: center; height: 230px; padding: 16px; background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: contain; }
.card__noimg, .pdp__noimg { color: #c3d2df; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.card__body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.card__meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.card__title { font-size: .98rem; font-weight: 600; margin: 0; line-height: 1.35; height: 2.7em; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.card__title a { color: var(--navy-ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card__title a:hover { color: var(--navy); }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card .card__tags { flex-wrap: nowrap; height: 24px; overflow: hidden; }
.card__foot { margin-top: auto; min-height: 52px; padding-top: 8px; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; border-top: 1px dashed var(--line); }
.card__packs { font-size: .78rem; color: var(--muted); white-space: nowrap; }

.price { display: block; font-weight: 700; color: var(--navy-ink); font-size: 1.05rem; line-height: 1.25; }
.price small { font-weight: 500; color: var(--muted); font-size: .72rem; }
.price__gross { display: block; font-size: .78rem; color: var(--muted); }
.price--request { color: var(--navy); font-size: .92rem; }

/* ---------- liste cu filtre ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; padding: 16px 0 6px; font-size: .85rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.page-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { margin: 0; }
.page-head__count { margin: 0; color: var(--muted); }

.listing { display: grid; grid-template-columns: 270px 1fr; gap: 24px; align-items: start; }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.filters__toggle { display: none; }
.filters__form { padding: 6px 16px 16px; }
.facet { border: 0; margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facet:last-of-type { border-bottom: 0; }
.facet legend, .facet summary { font-weight: 700; font-size: .9rem; color: var(--navy-ink); padding: 0; margin-bottom: 8px; }
.facet--group summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; margin: 0; }
.facet--group summary::-webkit-details-marker { display: none; }
.facet--group summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.facet--group[open] summary::after { content: "−"; }
.facet--group[open] summary { margin-bottom: 8px; }
.facet__temps { display: grid; gap: 8px; }
.facet__temp { display: grid; grid-template-columns: 1fr 84px auto; align-items: center; gap: 6px; font-size: .86rem; }
.facet__temps .btn { justify-self: start; }
.facet__hint { margin: 8px 0 0; font-size: .78rem; color: var(--muted); }
.facet__temp input { width: 84px; height: 38px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.check { display: flex; align-items: flex-start; gap: 8px; padding: 4px 0; font-size: .9rem; cursor: pointer; line-height: 1.35; }
.check input { width: 17px; height: 17px; margin: 1px 0 0; flex: none; accent-color: var(--navy); }
.check small { margin-left: auto; color: var(--muted); padding-left: 6px; }
.facet__more { margin-top: 4px; padding: 4px 0; border: 0; background: none; color: var(--navy); font: 600 .85rem var(--font); cursor: pointer; text-decoration: underline; }

.results__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; min-height: 40px; }
.sort { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: .9rem; color: var(--muted); }
.sort select { height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font: inherit; color: var(--text); }

.empty { padding: 40px 24px; text-align: center; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty p { color: var(--muted); }

.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 28px 0 8px; }
.pager__btn { padding: 9px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); text-decoration: none; font-weight: 600; font-size: .9rem; }
.pager__btn.is-disabled { color: #a9b4bf; }
.pager__info { color: var(--muted); font-size: .9rem; }

.intro { margin-bottom: 16px; padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.intro.is-clamped .intro__text { max-height: 7.2em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.intro__more { margin-top: 6px; padding: 0; border: 0; background: none; color: var(--navy); font: 600 .9rem var(--font); cursor: pointer; text-decoration: underline; }

/* ---------- pagina produsului ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; padding: 20px; margin-top: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.pdp__media { display: flex; align-items: flex-start; justify-content: center; }
.pdp__media img { max-height: 460px; width: auto; object-fit: contain; }
.pdp__noimg { aspect-ratio: 1 / 1; background: var(--bg); border-radius: var(--radius); }
.pdp__brand { display: inline-block; margin-bottom: 6px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--blue); }
.pdp__info h1 { margin-bottom: 10px; }
.pdp__lead { margin: 14px 0 0; color: #3b4855; }
.pdp__h { font-size: 1.05rem; margin: 26px 0 10px; }
.pdp__note { font-size: .82rem; color: var(--muted); margin: 8px 0 0; }

.packs { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pack { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.5fr) minmax(0, 1.2fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.pack:last-child { border-bottom: 0; }
.pack:nth-child(even) { background: #fafbfc; }
.pack__name strong { display: block; }
.pack__name small { color: var(--muted); }
.avail { display: inline-block; font-size: .85rem; color: var(--muted); }
.avail--in { color: var(--ok); font-weight: 600; }
.avail--in::before { content: "● "; }
.pack__ask { display: block; font-size: .78rem; margin-top: 2px; }
.pack__price { text-align: right; }

.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.docs a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; font-weight: 500; }
.docs a:hover { border-color: var(--navy); }
.docs__icon { flex: none; padding: 3px 6px; border-radius: 4px; background: #c62828; color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .03em; }

.pdp__more { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; margin-top: 24px; }
.pdp__section, .pdp__tags { padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 20px; }
.pdp__tags h2 { font-size: .95rem; }
.pdp__tags .chip { font-size: .84rem; padding: 5px 11px; }
.specs { width: 100%; border-collapse: collapse; font-size: .94rem; }
.specs th, .specs td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 45%; font-weight: 600; color: var(--muted); }

.prose { overflow-wrap: anywhere; }
.prose > :last-child { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .92rem; }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px 8px; }
.prose img { display: inline-block; }
.prose ul { padding-left: 1.2em; }

/* ---------- formular oferta ---------- */
.quote { margin-top: 8px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); scroll-margin-top: 16px; }
.quote__intro { color: var(--muted); }
.form { display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.form__field { display: grid; gap: 4px; font-size: .88rem; font-weight: 600; color: var(--navy-ink); }
.form__field input, .form__field select, .form__field textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #c3ccd6; border-radius: 8px; font: inherit; font-weight: 400; color: var(--text); background: #fff; }
.form__field textarea { resize: vertical; }
.form__field input:focus, .form__field select:focus, .form__field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26, 143, 208, .2); }
.form__check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.form__check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--navy); }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 16px; border-radius: 8px; margin-bottom: 14px; }
.alert ul { margin: 6px 0 0; padding-left: 1.2em; }
.alert--ok { background: var(--ok-soft); color: #134d26; border: 1px solid #b9dfc5; }
.alert--err { background: #fdecec; color: #8a1c1c; border: 1px solid #f3c2c2; }

.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; align-items: start; }
.contact__info { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.contact__info dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.contact__info dt { font-weight: 700; color: var(--muted); font-size: .88rem; }
.contact__info dd { margin: 0; }
.contact .quote { margin-top: 0; }

/* ---------- subsol ---------- */
.footer { margin-top: 56px; background: var(--navy-ink); color: #b9c8d6; font-size: .9rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 40px; padding-bottom: 32px; }
.footer__logo { width: 180px; padding: 8px 10px; background: #fff; border-radius: 6px; margin-bottom: 14px; }
.footer h2 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer a { color: #dce6ef; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__bottom { padding-top: 16px; padding-bottom: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8rem; }

/* ---------- ecrane mici ---------- */
@media (max-width: 1080px) {
    .pdp__more { grid-template-columns: 1fr; }
    .hero__in { grid-template-columns: 1fr; gap: 28px; }
    .hero__facts { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .topbar__in > span:first-child { display: none; }
    .topbar__contact { margin-left: auto; }
    .header { position: static; }
    .header__in { flex-wrap: wrap; gap: 12px; }
    .logo img { width: 170px; }
    .search { order: 3; flex-basis: 100%; max-width: none; }
    .listing { grid-template-columns: 1fr; }
    .nav__in { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .nav__in::-webkit-scrollbar { display: none; }
    .filters__toggle { display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-weight: 700; cursor: pointer; }
    .pdp { grid-template-columns: 1fr; padding: 16px; }
    .pdp__media img { max-height: 300px; }
    .pack { grid-template-columns: 1fr auto; }
    .pack__avail { grid-column: 1 / -1; grid-row: 2; }
    .pack__price { text-align: right; }
    .pack__cta { grid-column: 1 / -1; }
    .pack__cta .btn { width: 100%; }
    .why__grid { grid-template-columns: 1fr; gap: 20px; }
    .cta { flex-direction: column; align-items: flex-start; }
    .contact { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .quote { scroll-margin-top: 16px; }
}
@media (max-width: 560px) {
    .topbar__contact a:last-child { display: none; }
    .header__cta { padding: 0 14px; min-height: 40px; }
    .hero__in { padding-top: 32px; padding-bottom: 32px; }
    .hero__search { flex-direction: column; }
    .hero__facts { grid-template-columns: 1fr; }
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .card__body { padding: 10px 12px 12px; }
    .card__img { height: 160px; padding: 10px; }
    .card__title { font-size: .9rem; height: 4.05em; -webkit-line-clamp: 3; line-clamp: 3; }
    .card__foot { min-height: 70px; }
    .card__foot { flex-direction: column; align-items: flex-start; }
    .results__bar { flex-direction: column; align-items: stretch; }
    .sort { margin-left: 0; }
    .footer__grid { grid-template-columns: 1fr; }
    .quote, .pdp__section, .pdp__tags { padding: 18px 16px; }
}
.check[hidden] { display: none; }
.hero__tlabel { font-weight: 600; color: #fff; }
