/* Închirieri: catalogul și paginile de produs. Folosește variabilele din site.css, deci merge și pe fundal negru. */
.rn-head { padding: 40px 0 0; }
.rn-head h1 { font-size: clamp(31px, 7vw, 56px); line-height: 1.05; letter-spacing: -.025em; margin: 10px 0 12px; max-width: 20ch; }
.rn-head .lead { margin: 0; font-size: 18px; max-width: 56ch; }
.rn-facts { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 8px; }
.rn-facts li { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-weight: 600; font-size: 15.5px; display: flex; gap: 10px; align-items: baseline; }
.rn-facts li::before { content: "✓"; color: var(--gold); font-weight: 800; }

.rn-filter-wrap { position: sticky; top: var(--hd, 77px); z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.rn-filter { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.rn-filter::-webkit-scrollbar { display: none; }
.rn-filter button { flex: none; font-size: 15px; font-weight: 600; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.rn-filter button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }

.rn-cat { padding: 34px 0 0; scroll-margin-top: calc(var(--hd, 77px) + 56px); }
.rn-cat[hidden], .rn-grid article[hidden] { display: none; }
.rn-cat-head h2 { font-size: clamp(24px, 4.6vw, 34px); margin: 0 0 6px; }
.rn-cat-head p { color: var(--mute); margin: 0 0 18px; max-width: 62ch; }
.rn-catalog { padding: 0 0 56px; scroll-margin-top: var(--hd, 77px); }

/* Poza de ambianță a categoriei: pe telefon bandă lată cât ecranul, pe ecran lat stă în dreapta titlului */
.rn-amb { margin: 0 -16px 18px; }
.rn-amb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.rn-amb figcaption { font-size: 12.5px; color: var(--mute); padding: 6px 16px 0; }

/* Barul modular: alegi forma */
.rn-mod { background: var(--soft); border-radius: 14px; padding: 18px 16px; margin: 0 0 26px; }
.rn-mod h3 { font-size: 20px; margin: 0 0 4px; }
.rn-mod > p { color: var(--mute); margin: 0 0 14px; font-size: 15.5px; }
.rn-shapes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 14px; }
.rn-shapes button { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 10px 2px 8px; font-size: 12px; font-weight: 600; line-height: 1.2; color: var(--ink); }
.rn-shapes button[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.rn-shapes svg { display: block; width: 40px; height: 24px; margin: 0 auto 6px; }
.rn-shapes svg * { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.rn-panel[hidden] { display: none; }
.rn-panel .ph { background: #fff; border-radius: 10px; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; }
.rn-panel .ph img { width: 100%; height: 100%; object-fit: contain; }
.rn-panel .row { display: grid; gap: 12px; margin-top: 14px; }
.rn-panel h4 { font-size: 19px; font-weight: 800; margin: 0; }
.rn-panel h4 a { text-decoration: none; }
.rn-meta { color: var(--mute); font-size: 15px; margin: 3px 0 0; }
.rn-stock { display: inline-block; font-size: 13px; font-weight: 700; color: var(--gold); margin-top: 6px; }

/* Grila de produse */
.rn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 12px; }
.rn-card { display: flex; flex-direction: column; min-width: 0; }
.rn-card .ph { display: block; background: #fff; border: 1px solid var(--line); border-radius: 10px; aspect-ratio: 1; overflow: hidden; }
.rn-card .ph img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.rn-card .ph.ph-dark { background: #000; }
.rn-card .ph.ph-dark img { padding: 0; }
.rn-card h3 { font-size: 15.5px; font-weight: 700; line-height: 1.25; margin: 10px 0 0; }
.rn-card h3 a { text-decoration: none; }
.rn-card .rn-meta { font-size: 13.5px; }
.rn-card .rn-stock { font-size: 12.5px; margin-top: 0; }
.rn-tags { margin: 5px 0 10px; line-height: 1.35; }
.rn-card .rn-add { margin-top: auto; }
.rn-card .rn-stock + .rn-add, .rn-card .rn-meta + .rn-add { margin-top: 10px; }
.rn-card .sp { flex: 1; }
.rn-add { display: block; width: 100%; text-align: center; background: none; border: 1.5px solid var(--ink); color: var(--ink); border-radius: 999px; padding: 9px 10px; font-size: 14px; font-weight: 700; }
.rn-add.is-in { background: var(--ink); color: var(--on-ink); }
.rn-add.solid { background: var(--ink); color: var(--on-ink); padding: 13px 18px; font-size: 16px; }
.rn-add.solid.is-in { background: none; color: var(--ink); }


/* Pași, trimiteri, întrebări */
.rn-how { background: var(--soft); }
.rn-steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.rn-steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 6px; padding: 16px 0; border-top: 1px solid var(--line); }
.rn-steps li::before { content: counter(s); font-size: 24px; font-weight: 800; color: var(--gold); line-height: 1.1; }
.rn-steps b { display: block; font-size: 18px; }
.rn-steps span { color: var(--mute); }
.rn-more { display: grid; gap: 12px; }
.rn-more a { display: block; text-decoration: none; border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: var(--surface); }
.rn-more b { display: block; font-size: 20px; font-weight: 800; }
.rn-more span { color: var(--mute); }
.rn-more em { display: inline-block; margin-top: 10px; font-style: normal; font-weight: 700; border-bottom: 2px solid var(--gold); }
.faq { background: var(--soft); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq h2 { margin-bottom: 24px; }
.faq summary { cursor: pointer; padding: 18px 34px 18px 0; font-weight: 700; font-size: 18px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 26px; font-weight: 500; color: var(--gold); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 20px; color: var(--mute); max-width: 68ch; }

/* Cererea de ofertă */
.rn-list { list-style: none; margin: 18px 0 4px; padding: 0; border-top: 1px solid #40392e; }
.rn-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid #40392e; }
.rn-list li.empty { display: block; color: #cfc8ba; }
.rn-list .nm { font-weight: 700; line-height: 1.25; }
.rn-list .nm small { display: block; font-weight: 500; font-size: 13px; color: #cfc8ba; }
.rn-list .rm { background: none; border: 0; color: #cfc8ba; font-size: 24px; line-height: 1; padding: 4px 6px; }
.ask .rn-qty { border-color: #6b6253; }
.ask .rn-qty button, .ask .rn-qty input { color: #fff; }
.rn-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--ink); border-radius: 999px; }
.rn-qty button { background: none; border: 0; width: 38px; height: 40px; font-size: 20px; font-weight: 600; line-height: 1; color: var(--ink); }
.rn-qty input { width: 38px; height: 40px; padding: 0; border: 0; border-radius: 6px; background: none; text-align: center; font: inherit; font-size: 16px; font-weight: 800; color: var(--ink); }
.rn-qty input:focus { outline: 2px solid var(--gold); outline-offset: -4px; }
.ask select { background: #24201a; border: 1px solid #40392e; border-radius: 10px; padding: 12px 14px; color: #fff; font: inherit; font-size: 16px; width: 100%; }

/* Bara de jos */
.rn-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: #17140f; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); font-weight: 700; text-decoration: none; box-shadow: 0 -6px 24px rgba(0,0,0,.18); }
.rn-bar[hidden] { display: none; }
.rn-bar em { font-style: normal; background: #fff; color: #17140f; border-radius: 999px; padding: 8px 16px; font-size: 15px; white-space: nowrap; }
:root[data-theme="dark"] .rn-bar { background: #2a251c; }
body.has-bar footer { padding-bottom: 110px; }

/* Pagina de produs (varianta A): galerie, cifre-cheie, secțiuni care se deschid, bară fixă jos pe telefon */
.pd { padding: 14px 0 48px; }
.pd-crumb { font-size: 13.5px; color: var(--mute); margin: 0 0 12px; }
.pd-crumb a { text-decoration: none; }
.pd-crumb a:hover { text-decoration: underline; }
.pd-main { display: grid; gap: 18px; }
.pd-gal { min-width: 0; }
.pd-photo { background: #fff; border: 1px solid var(--line); border-radius: 12px; aspect-ratio: 4 / 3; overflow: hidden; display: grid; place-items: center; }
.pd-photo img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
/* Pozele mici stau pe un singur rând; când sunt mai mult de cinci, rândul se derulează în lateral și a șasea se vede pe jumătate. */
.pd-thumbs { display: flex; gap: 6px; margin-top: 6px; padding: 2px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pd-thumbs::-webkit-scrollbar { display: none; }
.pd-thumbs button { flex: 0 0 calc((100% - 30px) / 5.5); scroll-snap-align: start; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; aspect-ratio: 1; overflow: hidden; }
.pd-thumbs button[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info { min-width: 0; }
.pd-info h1 { font-size: clamp(27px, 5.6vw, 42px); line-height: 1.08; margin: 6px 0 10px; }
.pd-info .lead { margin: 0; }
.pd-dots { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 14px; color: var(--mute); }
.pd-dots i { width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); flex: none; }
.pd-dots span { margin-left: 4px; }
.pd-dots.pick { flex-wrap: wrap; gap: 9px; }
.pd-dots.pick span { flex-basis: 100%; margin-left: 0; }
.pd-dots button { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--line); padding: 0; flex: none; }
.pd-dots button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.pd-photo { position: relative; isolation: isolate; }
.pd-photo.lit { background: #000; }
.pd-photo.lit img { padding: 0; }
.pd-tint { display: none; position: absolute; inset: 0; background: var(--led, transparent); mix-blend-mode: multiply; transition: background .25s; pointer-events: none; }
.pd-photo.lit .pd-tint { display: block; }
.pd-photo.notint .pd-tint { display: none; }
.pd-chips { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pd-chips li { border: 1px solid var(--line); border-radius: 12px; padding: 11px 6px 10px; text-align: center; font-size: 12.5px; line-height: 1.25; color: var(--mute); }
.pd-chips b { display: block; font-size: 21px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); line-height: 1.15; margin-bottom: 2px; }
.pd-buy { display: flex; gap: 12px; align-items: center; margin-top: 16px; }
.pd-buy:empty { display: none; }
.pd-buy .rn-add { flex: 1; }
/* Pe telefon, după ce ai adăugat ceva: rândul care duce la formular (pe ecran lat este pastila din colț) */
.pd-count { display: block; margin-top: 10px; font-weight: 700; font-size: 15px; text-decoration: none; text-align: center; }
.pd-count[hidden] { display: none; }
.pd-acc { margin-top: 20px; border-top: 1px solid var(--line); }
.pd-acc details { border-bottom: 1px solid var(--line); }
.pd-acc summary { cursor: pointer; list-style: none; position: relative; padding: 15px 34px 15px 0; font-weight: 700; font-size: 17px; }
.pd-acc summary::-webkit-details-marker { display: none; }
.pd-acc summary::after { content: "+"; position: absolute; right: 4px; top: 9px; font-size: 26px; font-weight: 500; color: var(--gold); }
.pd-acc details[open] summary::after { content: "−"; }
.pd-acc details > p { margin: 0 0 18px; color: var(--mute); }
.pd-ticks { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.pd-ticks li { padding-left: 26px; position: relative; }
.pd-ticks li::before { content: "✓"; position: absolute; left: 2px; color: var(--gold); font-weight: 800; }
.pd-specs { margin: 0 0 8px; }
.pd-specs div { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; border-top: 1px solid var(--line); }
.pd-specs div:first-child { border-top: 0; padding-top: 0; }
.pd-specs dt { font-weight: 700; flex: none; }
.pd-specs dd { margin: 0; color: var(--mute); text-align: right; }
.pd-sec { padding: 34px 0 0; }
.pd-sec h2 { font-size: clamp(22px, 4vw, 30px); margin: 0 0 16px; }
@media (max-width: 719.98px) {
  .pd-count { display: none; } /* pe telefon, numărul de produse îl arată bara de jos, ca în galerie */
  .pd-rel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .pd-rel::-webkit-scrollbar { display: none; }
  .pd-rel .rn-card { flex: 0 0 46%; scroll-snap-align: start; scroll-margin-left: 16px; }
}

@media (min-width: 720px) {
  .rn-head { padding-top: 60px; }
  .rn-facts { grid-template-columns: repeat(3, 1fr); }
  .rn-cat-head { display: grid; grid-template-columns: 1fr minmax(0, 1.2fr); gap: 36px; align-items: center; margin-bottom: 22px; }
  .rn-cat-head .rn-amb { order: 2; margin: 0; }
  .rn-amb img { border-radius: 14px; aspect-ratio: 16 / 9; }
  .rn-amb figcaption { padding: 6px 0 0; }
  .rn-grid { grid-template-columns: repeat(3, 1fr); gap: 34px 20px; }
  .rn-card h3 { font-size: 17px; }
  .rn-mod { padding: 26px; }
  .rn-shapes { grid-template-columns: repeat(7, 1fr); }
  .rn-panel { display: grid; grid-template-columns: 1.3fr 1fr; gap: 26px; align-items: center; }
  .rn-panel[hidden] { display: none; }
  .rn-panel .row { margin-top: 0; }
  .rn-steps { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .rn-steps li { grid-template-columns: 1fr; }
  .rn-more { grid-template-columns: 1fr 1fr; }
  .rn-bar { left: auto; right: 20px; bottom: 20px; border-radius: 999px; padding: 10px 10px 10px 22px; }
  body.has-bar footer { padding-bottom: 44px; }
  .pd-main { grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: start; }
  .pd { padding-top: 30px; }
  .pd-gal { position: sticky; top: calc(var(--hd, 77px) + 16px); }
  .pd-photo { aspect-ratio: 1; }
  .pd-count { display: none; }
}
@media (min-width: 980px) {
  .rn-grid { grid-template-columns: repeat(4, 1fr); }
}


/* Poza se încadrează întreagă în casetă, oricare i-ar fi forma */
.pd-photo img { position: absolute; inset: 0; }

/* Barurile pe forme: compunerea în casetă și nota „Altă formă?” */
.rn-card .rn-made { color: var(--gold, #8a6a22); font-weight: 700; }
.rn-note { border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px; margin: 22px 0 0; font-size: 15px; color: var(--mute); }
.rn-note b { color: var(--ink); }

/* Poza mare umple cadrul (clasele le pune inchirieri.js după culoarea colțurilor pozei) */
.pd-photo img { padding: 6px; }
.pd-photo.ph-dark { background: #000; }
.pd-photo.ph-dark img, .pd-photo.lit img { padding: 0; }
.pd-photo.ph-fill img { padding: 0; object-fit: cover; }
@media (min-width: 720px) { .pd-photo { aspect-ratio: 4 / 3; } }
.pd-photo.ph-blur { background: #111; }
.pd-photo.ph-blur::before { content: ""; position: absolute; inset: -24px; z-index: -1; background: var(--bg) center / cover no-repeat; filter: blur(18px) brightness(.75); }
.pd-photo.ph-blur img { padding: 0; }

/* Caseta cu forme de bar: poza se vede întreagă, în cadru 4:3, după aceeași regulă ca poza mare a produsului */
.rn-panel .ph { position: relative; isolation: isolate; aspect-ratio: 4 / 3; display: block; }
.rn-panel .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.rn-panel .ph.ph-dark { background: #000; }
.rn-panel .ph.ph-blur { background: #111; }
.rn-panel .ph.ph-blur::before { content: ""; position: absolute; inset: -24px; z-index: -1; background: var(--bg) center / cover no-repeat; filter: blur(18px) brightness(.75); }
.rn-panel .ph.ph-dark img, .rn-panel .ph.ph-blur img { padding: 0; }
.rn-panel .ph.ph-fill img { padding: 0; object-fit: cover; }

/* Culoarea luminii se pune doar pe părțile luminoase ale pozei (masca este chiar poza, după luminozitate):
   așa merge și pe pozele cu oameni și decor, nu doar pe cele cu fundal negru */
.pd-tint { -webkit-mask-image: var(--ph); mask-image: var(--ph); mask-mode: luminance; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; }
.pd-photo.ph-fill .pd-tint { -webkit-mask-size: cover; mask-size: cover; }

/* Placa cu logo: desen și detalii */
.pd-plate { margin: 0 0 14px; max-width: 420px; }
.pd-plate svg { display: block; width: 100%; height: auto; font-family: inherit; }
.pd-plate figcaption { font-size: 14px; font-weight: 700; margin-top: 6px; }
.pd-plate-list { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--mute); }
.pd-plate-list li { padding-left: 18px; position: relative; }
.pd-plate-list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.pd-plate-list b { color: var(--ink); font-weight: 700; }
.pd-plate-draw { position: relative; }
.pd-plate-up { position: absolute; left: 10%; top: 23%; width: 69%; height: 58%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--mute); border-radius: 8px; }
.pd-plate-up input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pd-plate-up:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.pd-plate-up .pl { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold); display: grid; place-items: center; font-size: 26px; font-weight: 500; line-height: 1; }
.pd-plate-up img { width: 100%; height: 100%; object-fit: contain; }
.pd-plate-up.has-logo > span { display: none; }
.pd-plate-note { margin: 6px 0 0; font-size: 13px; color: var(--mute); }
.pd-plate-x { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--ink); text-decoration: underline; cursor: pointer; }
.pd-plate-up img[hidden] { display: none; }

/* Simularea „Cum arată împreună”, sub lista de cerere */
.rn-scene { margin: 22px 0 8px; }
.rn-scene h3 { font-size: 18px; font-weight: 800; margin: 0 0 10px; }
.rn-scene canvas { display: block; width: 100%; max-width: 640px; height: auto; border-radius: 14px; border: 1px solid #40392e; background: #000; }
.rn-scene p { margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: #cfc8ba; max-width: 60ch; }
.rn-scene-dl { margin-top: 14px; background: none; color: inherit; border: 1.5px solid currentColor; border-radius: 99px; padding: 11px 20px; font: inherit; font-weight: 700; cursor: pointer; }
