

.produs-sus { padding: var(--sp-4) 0 0; }
.produs-grila { display: grid; gap: var(--sp-5); }


.galerie-mare { position: relative; aspect-ratio: 4 / 3; background: #FFFFFF; border: 1px solid var(--linie); border-radius: var(--raza); overflow: hidden; }
.galerie-mare img { width: 100%; height: 100%; object-fit: contain; padding: var(--sp-4); }
.galerie-mare img[hidden], .galerie-schita[hidden], .bara-cumpara[hidden] { display: none; }
.galerie-schita { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: var(--sp-4); }
.galerie-mici { display: flex; gap: var(--sp-3); margin-top: var(--sp-3); }
button.mica {    width: 96px; height: 72px; padding: 0; border: 1px solid var(--linie); border-radius: var(--raza); background: #FFFFFF; cursor: pointer; overflow: hidden;
  display: flex; align-items: center; justify-content: center; }
button.mica img { width: 100%; height: 100%; object-fit: contain; }
button.mica[aria-pressed="true"] { border: 2px solid var(--petrol); }

.mica-schita { flex-direction: column; gap: 2px; background: #FFFFFF; }
.mica-schita [data-ic-dim] { display: contents; }
.ic-dim { width: 44px; height: 33px; flex: none; }
.ic-forma rect, .ic-forma path { fill: #F2EEE7; stroke: #6B6258; stroke-width: 3; }
.ic-cota { fill: none; stroke: #9A7A1E; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.et-dim { font: 700 var(--s14)/1 "Lato", system-ui, sans-serif; color: var(--petrol); }


.schita { width: 100%; height: auto; max-height: 100%; }

.galerie-schita:has(.dim-poza) { padding: 0; background: #FFFFFF; }
.dim-poza { display: block; width: 100%; height: 100%; object-fit: contain; }
.schita-cadru .dim-poza { height: auto; }
.schita-cadru:has(.dim-poza) { padding: 0; overflow: hidden; }
.schita .contur rect { fill: #F2EEE7; stroke: #6B6258; stroke-width: 2; }
.schita .cota path { fill: none; stroke: var(--auriu); stroke-width: 2; }
.schita text { font: 700 24px "Lato", system-ui, sans-serif; fill: #1B1B1B; }
.schita .leg text { font-weight: 400; font-size: 20px; fill: #5B5752; }


.cumpara h1 { font-size: var(--s30); }
.pret-mare { margin: var(--sp-3) 0 var(--sp-4); font-size: var(--s24); font-weight: 700; }
.variante { border: 0; margin: 0 0 var(--sp-4); padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.variante legend { grid-column: 1 / -1; font-weight: 700; margin-bottom: var(--sp-2); padding: 0; }
.varianta { position: relative; cursor: pointer; }
.varianta input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.varianta > span { position: relative; display: flex; flex-direction: column; gap: 2px; min-height: 56px; justify-content: center; padding: var(--sp-2) var(--sp-4);
  border: 1px solid #8A857E; border-radius: var(--raza); background: var(--fundal-alt); }
.varianta small { font-size: var(--s14); color: var(--secundar); }
.varianta input:checked + span { border-color: var(--petrol); box-shadow: var(--contur-ales); background: #FFFFFF; }   
.varianta input:focus-visible + span { outline: 3px solid var(--auriu); outline-offset: 2px; }
.culoare-nota { margin: 0 0 var(--sp-5); font-size: var(--s14); color: var(--secundar); }
.culoare-nota strong { color: var(--text); }
.actiuni-produs { display: flex; gap: var(--sp-3); }
.actiuni-produs .btn { flex: 1; }
.fav-mare { position: static; width: 48px; height: 48px; flex: none; border: 1px solid #8A857E; border-radius: var(--raza); background: transparent; }
.repere-produs { list-style: none; margin: var(--sp-5) 0 0; padding: var(--sp-4) 0 0; border-top: 1px solid var(--linie); display: grid; gap: var(--sp-4); }
.repere-produs li { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: var(--s14); color: var(--secundar); }
.repere-produs strong { display: block; color: var(--text); font-size: var(--s16); }
.repere-produs svg { flex: none; width: 24px; height: 24px; margin-top: 2px; fill: none; stroke: var(--auriu); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }



.dim-sus { margin: calc(-1 * var(--sp-2)) 0 var(--sp-4); font-size: var(--s14); color: var(--secundar); }
.dim-sus strong { color: var(--text); }
.puncte-cheie { list-style: none; margin: 0 0 var(--sp-2); padding: 0; display: grid; gap: var(--sp-2); }
.puncte-cheie li { position: relative; padding-left: 26px; font-size: var(--s14); text-wrap: pretty; }   
.repere-produs strong, .h-sectiune-produs + .produse h3, .vazute h3 { text-wrap: balance; }
.puncte-cheie li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--auriu); border-bottom: 2px solid var(--auriu); transform: rotate(-45deg); }
.spre-descriere { margin-bottom: var(--sp-5); }


.blocuri-produs { padding-top: var(--sp-7); }
.blocuri-produs .cont { max-width: calc(1000px + 2 * var(--gutter)); }
.bloc { border-top: 1px solid var(--linie); }
.bloc:last-child { border-bottom: 1px solid var(--linie); }
.bloc > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); min-height: 64px; padding: var(--sp-3) 0; }
.bloc > summary::-webkit-details-marker { display: none; }
.bloc > summary h2 { font-size: var(--s24); }
.bloc > summary::after { content: "+"; flex: none; font: 400 var(--s24)/1 "Lato", system-ui, sans-serif; color: var(--auriu); }
.bloc[open] > summary::after { content: "−"; }
.bloc-corp { padding: 0 0 var(--sp-6); }
.h-sectiune-produs { font-size: var(--s24); margin-bottom: var(--sp-4); }


.deschidere { margin: 0 0 var(--sp-5); font-size: var(--s18); max-width: 60ch; }
.puncte-descriere { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-5); }
.punct { display: flex; gap: var(--sp-4); align-items: flex-start; }
.punct svg { flex: none; width: 40px; height: 40px; fill: none; stroke: var(--auriu); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.punct h3 { font-size: var(--s18); margin: var(--sp-1) 0 var(--sp-2); }
.punct p { margin: 0; color: var(--secundar); max-width: 60ch; }


.dim-grila { display: grid; gap: var(--sp-5); align-items: center; }
.tabel-spec { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-2) var(--sp-6); margin: 0; }
.tabel-spec dt { color: var(--secundar); }
.tabel-spec dd { margin: 0; font-weight: 700; }
.lista-bloc { margin: 0; padding-left: var(--sp-5); display: grid; gap: var(--sp-2); }
.schita-cadru { margin: 0; background: #FFFFFF; border: 1px solid var(--linie); border-radius: var(--raza); padding: var(--sp-4); }
.legatura-sus { margin-top: var(--sp-5); }


.bara-cumpara { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding: var(--sp-3) var(--gutter); background: #FFFFFF; border-top: 1px solid var(--linie); box-shadow: var(--umbra-bara-jos); }
.bara-cumpara div { display: grid; font-size: var(--s14); }
.bara-cumpara span { font-weight: 700; font-size: var(--s16); }
.bara-cumpara .btn { padding: 0 var(--sp-4); }

.pagina-produs { padding-bottom: 80px; }

@media (min-width: 640px) {
  .dim-grila { grid-template-columns: 1fr 1.4fr; }
}
@media (min-width: 1024px) {
  .produs-grila { grid-template-columns: 1.25fr 1fr; gap: var(--sp-8); align-items: start; }
  .galerie { position: sticky; top: calc(var(--antet-h) + var(--sp-4)); }
  .cumpara h1 { font-size: var(--s38); }
  .pret-mare { font-size: var(--s30); }
  .h-sectiune-produs, .bloc > summary h2 { font-size: var(--s30); }
  .puncte-descriere { grid-template-columns: 1fr 1fr; gap: var(--sp-6) var(--sp-7); }
  .bloc > summary { cursor: default; }
  .bloc > summary::after { display: none; }
  .bara-cumpara { display: none; }
  .pagina-produs { padding-bottom: 0; }
}


.varianta .forma { width: 100%; height: auto; margin-bottom: var(--sp-2); }
.varianta .forma .corp { fill: #F2EEE7; stroke: #6B6258; stroke-width: 1; }
.varianta .forma .spatar { fill: #E2D9CB; stroke: #6B6258; stroke-width: 1; }
.varianta .forma rect:not(.corp):not(.spatar) { fill: #FFFFFF; stroke: #A99F92; stroke-width: .8; }
.varianta input:checked + span .forma .corp, .varianta input:checked + span .forma .spatar { stroke: var(--petrol); stroke-width: 1.6; }
.varianta > span { padding-top: var(--sp-3); padding-bottom: var(--sp-3); }


.variante legend span { font-weight: 400; color: var(--secundar); }

.alege-marime { margin: 0 0 var(--sp-4); }
.alege-marime label { display: block; font-weight: 700; margin-bottom: var(--sp-2); }
.alege-marime .camp { max-width: 360px; cursor: pointer; }
.varianta input:checked + span::after { content: ""; position: absolute; top: var(--sp-2); right: var(--sp-2); width: 22px; height: 22px; border-radius: 50%;
  background: var(--petrol) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }


button.mica-dim { position: relative; }
button.mica-dim img { object-fit: contain; }
button.mica-dim .dim-desen { display: block; position: absolute; inset: 3px; }
button.mica-dim .dim-desen svg { width: 100%; height: 100%; }
button.mica-dim .et-dim { position: absolute; left: 4px; bottom: 4px; padding: 2px 6px; border-radius: var(--raza-pastila); font-size: var(--s12); background: var(--petrol); color: #FFFFFF; }
.vazute[hidden] { display: none; }   


.galerie-mare img.scena { object-fit: cover; padding: 0; }
.galerie-mici { flex-wrap: wrap; }
button.mica[hidden] { display: none; }


.pret-mare del, .produs .pret del, .bara-cumpara del { margin-right: var(--sp-2); font-size: var(--s16); font-weight: 400; color: var(--secundar); }
.pret-mare ins, .produs .pret ins, .bara-cumpara ins { text-decoration: none; }
.indisponibil { flex: 1; margin: 0; padding: var(--sp-3) 0; font-weight: 700; color: var(--secundar); }
.tabel-spec [data-rand][hidden], [data-dim-sus][hidden], .schita-cadru[hidden], .mica-dim[hidden] { display: none; }
[data-poza-mare] { cursor: zoom-in; }
.marire-btn { position: absolute; right: var(--sp-2); top: var(--sp-2); z-index: 2; display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--linie); border-radius: 50%; background: rgba(255,255,255,.9); cursor: pointer; }
.marire-btn svg { width: 22px; height: 22px; fill: none; stroke: #1B1B1B; stroke-width: 1.6; stroke-linecap: round; }
.marire-btn:focus-visible { outline: 3px solid var(--auriu); outline-offset: 2px; }
dialog.marire { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #FFFFFF; }
dialog.marire::backdrop { background: rgba(0,0,0,.6); }
dialog.marire[open] { display: grid; place-items: center; }
dialog.marire img { max-width: 94vw; max-height: 88vh; object-fit: contain; }
dialog.marire button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--linie);
  border-radius: 50%; background: #FFFFFF; color: #1B1B1B; font: 400 var(--s30)/1 "Lato", system-ui, sans-serif; cursor: pointer; }
dialog.marire button[hidden] { display: none; }
dialog.marire button:focus-visible { outline: 3px solid var(--auriu); outline-offset: 2px; }
.marire-inchide { top: var(--sp-4); right: var(--sp-4); }
.marire-ant { left: var(--sp-4); top: 50%; transform: translateY(-50%); }
.marire-urm { right: var(--sp-4); top: 50%; transform: translateY(-50%); }


.pas-culoare { border: 0; margin: 0 0 var(--sp-4); padding: 0; min-width: 0; }
.pas-culoare legend { display: flex; width: 100%; font-weight: 700; padding: 0; margin-bottom: var(--sp-2); }
.pas-culoare .mic { margin: var(--sp-2) 0 0; font-size: var(--s14); color: var(--secundar); }
.aleasa { font: 700 var(--s14)/1.6 "Lato", system-ui, sans-serif; color: var(--secundar); margin-left: auto; }

.mostre { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-2); }
.mostra-opt { position: relative; cursor: pointer; }
.mostra-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mostra-opt > span { display: block; padding: 4px; border: 1px solid var(--linie); border-radius: var(--raza); background: #FFFFFF; }
.mostra-opt img { display: block; width: 100%; height: 34px; object-fit: cover; border-radius: var(--raza-fina); }
.mostra-opt input:checked + span { border-color: var(--petrol); box-shadow: var(--contur-ales-gros); }
.mostra-opt input:focus-visible + span { outline: 3px solid var(--auriu); outline-offset: 2px; }
@media (min-width: 640px) {
  .mostre { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .mostre { grid-template-columns: repeat(4, minmax(0, 1fr)); }   
}

.data-livrare { display: block; }
.data-livrare[hidden] { display: none; }
