/* PRODUSE */

body.page-produse {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.produse-page {
  margin-top: 80px;
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
  background-color: #f8f8f8;
}

.produse-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 4rem;
  width: 100%;
  max-width: 1100px;
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.produse-diagram {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0.8 1 0;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.body-svg {
  width: auto;
  height: 100%;
  max-width: 100%;
}

.body-zone {
  fill: #eeeeee;
  stroke: #bbb;
  stroke-width: 2;
  cursor: pointer;
  transition: fill 0.2s ease, stroke 0.2s ease;
}

.body-zone:hover,
.body-zone.active {
  fill: rgba(40, 22, 111, 0.45);
  stroke: #28166f;
}

/* Textele sunt suprapuse in aceeasi celula de grid. Fiecare are propriul
   panou alb (.fade-panel), cat textul, care apare si dispare odata cu el. */
.produse-info {
  flex: 1 1 0;
  display: grid;
}

.produse-info-default,
.produse-info-zone {
  grid-area: 1 / 1;
  justify-self: start;
  align-self: center;
  width: fit-content;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.produse-info-default.visible,
.produse-info-zone.visible {
  opacity: 1;
}

.produse-eyebrow {
  font-family: 'font-sans-serif', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #28166f;
}

.produse-info h1,
.produse-info h2 {
  font-family: 'font-sans-serif', sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.produse-info p {
  font-family: 'font-sans-serif', sans-serif;
  font-size: 16px;
  color: #555;
  line-height: 1.7;
  margin: 0;
  max-width: 420px;
}

.produse-cta {
  font-family: 'font-sans-serif', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #28166f;
  text-decoration: none;
  width: fit-content;
}

.produse-cta:hover {
  text-decoration: underline;
}

.produse-zone-list,
.doar-mobil {
  display: none;
}

@media (max-width: 768px) {
  body.page-produse {
    height: auto;
    overflow: visible;
  }

  /* clip pe toate laturile: punctele din fundal (mai mari cu 24px) nu largesc
     pagina si nu intra peste footer */
  .produse-page {
    flex: none;
    overflow: clip;
  }

  .produse-inner {
    flex-direction: column;
    height: auto;
    gap: 2rem;
    text-align: center;
  }

  /* Pe telefon: intai textul, apoi diagrama (mai mica) si lista de zone */
  .produse-diagram {
    flex: none;
    height: auto;
  }

  .body-svg {
    width: auto;
    height: min(58vh, 480px);
    max-width: 100%;
  }

  .produse-info {
    flex: none;
    order: -1;
    width: 100%;
  }

  .doar-desktop {
    display: none;
  }

  .doar-mobil {
    display: block;
  }

  .produse-zone-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    width: 100%;
  }

  .produse-zone-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    font-family: 'font-sans-serif', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #28166f;
    text-decoration: none;
    text-align: center;
  }

  .produse-zone-list a:active {
    background: #28166f;
    border-color: #28166f;
    color: #fff;
  }

  .produse-info-default,
  .produse-info-zone {
    justify-self: center;
    --fade-panel-pad: 1.25rem 1rem;
  }

  .produse-info h1,
.produse-info h2 {
    font-size: 26px;
  }

  .produse-info p {
    max-width: none;
    margin: 0 auto;
  }
}
