/* COMPASS — stiluri catalog (încărcate doar pe produse.html) */
.cat-hero { padding: 32px 0 8px; background: radial-gradient(900px 400px at 90% 0%, #FFE9C2 0%, rgba(255,233,194,0) 60%), linear-gradient(180deg, #DCEBF7 0%, var(--bg) 100%); }
@media (min-width: 1001px) { .cat-hero { padding: 48px 0 8px; } }
.cat-hero .crumbs a { color: var(--ink-2); }
.cat-hero-row { display: grid; gap: 20px; align-items: end; margin-bottom: 28px; }
@media (min-width: 1001px) { .cat-hero-row { grid-template-columns: 1.2fr 1fr; gap: 48px; } }
.cat-hero h1 { margin-bottom: 8px; }
.cat-hero .lead { margin: 0; }
.search { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 20px; border-radius: 999px; background: var(--white); box-shadow: var(--shadow-m); color: var(--ink-2); transition: box-shadow .2s; }
.search:focus-within { box-shadow: 0 0 0 4px rgba(245,165,36,.35), var(--shadow-m); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 600 17px/1 var(--font); color: var(--ink); }
.ccats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 12px; overflow-x: auto; padding: 4px 4px 20px; margin: 0 -4px; scroll-snap-type: x proximity; scrollbar-width: none; }
.ccats::-webkit-scrollbar { display: none; }
.ccats:empty { min-height: 98px; }  /* locul benzii de categorii e rezervat înainte ca JS s-o deseneze: fără salt la încărcare (CLS) */
.pgrid:empty { min-height: 100vh; }  /* idem pentru grila de produse */
.ccat { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border: 0; border-radius: 20px; background: var(--white); box-shadow: var(--shadow-s); text-align: left; font-family: var(--font); color: var(--ink); cursor: pointer; scroll-snap-align: start; transition: transform .25s var(--ease), box-shadow .25s, background .25s; }
.ccat:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); }
.ccat[aria-pressed="true"] { background: var(--ink); color: var(--white); box-shadow: var(--shadow-m); }
.ccat-img { flex: none; width: 52px; height: 52px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: var(--sky); }
.ccat-img img { width: 100%; height: 100%; object-fit: cover; }
.ccat-img.all { background: var(--accent-soft); color: var(--warn); }
.ccat[aria-pressed="true"] .ccat-img.all { background: var(--accent); color: var(--ink); }
.ccat-txt strong { display: block; font-size: 15px; line-height: 1.2; }
.ccat-txt small { display: block; font-size: 13px; opacity: .7; font-weight: 600; }

.cat-layout { display: grid; gap: 28px; }
@media (min-width: 1001px) { .cat-layout { grid-template-columns: 250px 1fr; gap: 40px; align-items: start; } .cat-side { position: sticky; top: 100px; } }
.cat-side { display: grid; gap: 16px; }
@media (max-width: 1000px) { .cat-side { order: 2; } }
.side-box { padding: 20px; border-radius: var(--r-m); background: var(--white); box-shadow: var(--shadow-s); }
.side-title { margin: 0 0 12px; font-weight: 800; font-size: 15px; }
.brands { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 1001px) { .brands { flex-direction: column; gap: 4px; } }
.brand { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-weight: 600; font-size: 15px; cursor: pointer; background: var(--bg); }
@media (min-width: 1001px) { .brand { background: transparent; } .brand:hover { background: var(--bg); } }
.brand input { width: 18px; height: 18px; accent-color: var(--ink); }
.side-cta .btn { margin: 8px 0 12px; min-height: 46px; }
.side-pl { font-weight: 700; font-size: 14px; }

.results-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.results-head h2 { font-size: clamp(24px, 3vw, 32px); margin: 0; }
.results-head .mic { margin: 4px 0 0; }
.link-reset { min-height: 32px; padding: 6px 2px; border: 0; background: none; font: 700 14px var(--font); color: var(--ink-2); text-decoration: underline; cursor: pointer; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--white); box-shadow: var(--shadow-s); font: 700 14px/1 var(--font); color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s; }
.chip span { padding: 2px 8px; border-radius: 999px; background: var(--bg); font-size: 12px; }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--ink); }
.chip[aria-pressed="true"] span { background: rgba(255,255,255,.55); }

.pgrid { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
@media (min-width: 600px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .pgrid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.pgrid.anim .pcard { animation: cardIn .5s var(--ease) both; animation-delay: calc(min(var(--i), 12) * 35ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.pcard article { position: relative; height: 100%; display: flex; flex-direction: column; border-radius: var(--r-m); background: var(--white); box-shadow: var(--shadow-s); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.pcard article:hover { transform: translateY(-5px); box-shadow: var(--shadow-m); }
.pcard-open { flex: 1; display: flex; flex-direction: column; padding: 0; border: 0; background: none; text-align: left; font-family: var(--font); color: var(--ink); cursor: pointer; }
.pcard-vis { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--sky); overflow: hidden; }
.pcard-vis img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.pcard-vis img.fit { object-fit: contain; background: var(--white); padding: 12px; }
.pcard article:hover .pcard-vis img, .pcard article:hover .tex { transform: scale(1.05); }
.tex { display: block; width: 100%; height: 100%; background-repeat: no-repeat; background-color: #3a3f44; transition: transform .7s var(--ease); }
.ico-vis { display: grid; place-items: center; width: 100%; height: 100%; color: var(--ink); }
.ico-vis.dark { color: rgba(255,255,255,.9); }
.pcard-hot { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: 12px; font-weight: 800; }
.pcard-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 12px; }
.pcard-meta { font-size: 12.5px; font-weight: 700; color: var(--ink-3); margin: 0 0 4px; }
.pcard-name { font-size: 18px; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 6px; }
.pcard-desc { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; margin-bottom: 12px; }
.pcard .tags { margin-top: auto; }
.pcard-add { margin: 0 18px 18px; min-height: 42px; border: 0; border-radius: 999px; background: var(--bg); font: 800 14px/1 var(--font); color: var(--ink); cursor: pointer; transition: background .2s, color .2s, transform .15s; }
.pcard-add:hover { background: var(--accent-soft); }
.pcard-add:active { transform: scale(.97); }
.pcard-add.is-added { background: var(--ink); color: var(--white); }
.empty { padding: 48px 24px; border-radius: var(--r-m); background: var(--white); box-shadow: var(--shadow-s); text-align: center; }

/* Panouri laterale: detalii produs + lista de ofertă */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(15,34,53,.45); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.open { opacity: 1; pointer-events: auto; }
.panel { position: fixed; z-index: 90; background: var(--white); box-shadow: var(--shadow-l); overflow-y: auto; transition: transform .4s var(--ease); left: 0; right: 0; bottom: 0; max-height: 88vh; border-radius: 24px 24px 0 0; transform: translateY(105%); }
@media (min-width: 751px) { .panel { left: auto; top: 0; width: min(520px, 92vw); max-height: none; border-radius: 0; transform: translateX(105%); } }
.panel.open { transform: none; }
.panel-close { position: sticky; top: 12px; float: right; margin: 12px 12px 0 0; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--bg); font-size: 26px; line-height: 1; cursor: pointer; z-index: 2; }
.panel-body { padding: 24px; }
.panel-body h2 { font-size: 28px; margin: 12px 0 4px; }
.panel-body h3 { font-size: 16px; margin: 20px 0 10px; }
.d-vis { aspect-ratio: 3 / 2; border-radius: var(--r-m); overflow: hidden; background: var(--sky); margin-right: 44px; }
.d-vis img { width: 100%; height: 100%; object-fit: cover; }
.d-vis img.fit { object-fit: contain; background: var(--white); padding: 16px; }
.d-brand { font-weight: 700; color: var(--ink-2); margin: 0 0 12px; }
.d-variants { display: flex; flex-wrap: wrap; gap: 6px; }
.d-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 12px; }
.d-actions .pcard-add { margin: 0; min-height: 52px; padding: 0 26px; background: var(--accent); }
.d-actions .pcard-add.is-added { background: var(--ink); }
.qlist { list-style: none; margin: 20px 0; padding: 0; display: grid; gap: 10px; }
.qlist li { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: var(--bg); }
.q-vis { flex: none; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; display: block; background: var(--sky); }
.q-vis img, .q-vis .tex, .q-vis .ico-vis { width: 100%; height: 100%; object-fit: cover; }
.q-vis .ico-vis svg { width: 30px; height: 30px; }
.q-txt { flex: 1; min-width: 0; }
.q-txt strong { display: block; font-size: 15px; }
.q-txt small { color: var(--ink-3); font-weight: 600; }
.q-del { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--white); font-size: 20px; cursor: pointer; }
.q-empty { justify-content: center; color: var(--ink-2); }
.quote-fab.bump { animation: bump .45s var(--ease); }
@keyframes bump { 30% { transform: scale(1.12); } 60% { transform: scale(.96); } }

/* ---------- Prețuri și cantități ---------- */
.pcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px 18px; border-top: 1px solid var(--line); }
.pcard-foot .pcard-add { margin: 0; padding: 0 16px; flex: none; }
.pcard-price { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.pcard-price small { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.pcard-price.ask { font-size: 14px; color: var(--ink-2); }
.pcard-vars { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(15,34,53,.78); color: var(--white); font-size: 12px; font-weight: 700; }
.vlist { display: grid; gap: 6px; max-height: 300px; overflow-y: auto; padding: 2px; }
.vrow { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg); cursor: pointer; transition: background .2s, box-shadow .2s; }
.vrow:hover { background: var(--sky); }
.vrow:has(input:checked) { background: var(--white); box-shadow: 0 0 0 2px var(--ink); }
.vrow input { width: 18px; height: 18px; accent-color: var(--ink); }
.vrow-name { font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.vrow-name small { display: block; font-weight: 600; font-size: 12.5px; color: var(--ink-3); }
.vrow-price { font-weight: 800; white-space: nowrap; text-align: right; }
.vrow-price small { display: block; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.d-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 20px 0 8px; padding: 16px; border-radius: var(--r-m); background: var(--accent-soft); }
.d-unit { font-weight: 700; }
.d-total { margin-left: auto; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.qty { display: inline-flex; align-items: center; border-radius: 999px; background: var(--white); box-shadow: var(--shadow-s); }
.qty button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; font: 800 20px/1 var(--font); color: var(--ink); cursor: pointer; }
.qty button:hover { background: var(--bg); }
.qty input { width: 56px; min-height: 40px; padding: 0; border: 0; text-align: center; font: 800 17px/1 var(--font); background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty.sm button { width: 30px; height: 30px; font-size: 16px; }
.qty.sm input { width: 40px; min-height: 30px; font-size: 14px; }
.q-row { align-items: flex-start; }
.q-ctrl { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.q-sub { margin-left: auto; font-size: 15px; white-space: nowrap; }
.q-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 0; margin-bottom: 8px; border-top: 2px solid var(--ink); }
.q-total span { font-weight: 700; }
.q-total strong { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }

.pcard-price em { display: block; font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--ok); letter-spacing: 0; }

/* Cardul cu pagină proprie e link: aceeași înfățișare ca butonul */
a.pcard-open { text-decoration: none; }
a.pcard-open:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }

/* lista de ofertă: numele și poza duc la produs */
.q-name { color: inherit; text-decoration: none; }
.q-name:hover strong, .q-name:focus-visible strong { text-decoration: underline; }
a.q-vis { display: block; }
