/* PAGINI DE ZONA (/produse/<slug>) */

.zona-page {
  margin-top: 80px;
}

/* HERO */

.zona-hero {
  background-color: #fafafa;
  padding: 4rem 2rem;
}

.zona-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.zona-intro {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.zona-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'font-sans-serif', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #28166f;
}

.zona-breadcrumb a {
  color: #888;
  text-decoration: none;
  transition: color 0.2s;
}

.zona-breadcrumb a:hover {
  color: #28166f;
}

.zona-breadcrumb .ti {
  font-size: 14px;
  color: #bbb;
}

.zona-intro h1 {
  font-family: 'font-sans-serif', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.zona-intro p {
  font-family: 'font-sans-serif', sans-serif;
  font-size: 16px;
  color: #555;
  line-height: 1.7;
  margin: 0;
}

.zona-intro .zona-rezumat {
  font-size: 19px;
  color: #1a1a1a;
  line-height: 1.6;
}

.zona-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.zona-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.75rem;
  background: #28166f;
  border: 2px solid #28166f;
  color: #fff;
  text-decoration: none;
  font-family: 'font-sans-serif', sans-serif;
  font-size: 15px;
  font-weight: 500;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.zona-btn:hover {
  background: #1e1157;
  border-color: #1e1157;
}

.zona-btn-outline {
  background: transparent;
  color: #28166f;
}

.zona-btn-outline:hover {
  background: #28166f;
  color: #fff;
}

/* COVERFLOW */

.coverflow {
  --cover-size: 300px;
  flex: 1 1 0;
  min-width: 0;
  height: calc(var(--cover-size) + 6rem);
  position: relative;
  perspective: 1100px;
  outline: none;
  /* Imaginile laterale dispar treptat spre margini */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 22%, #000 78%, transparent 100%);
}

.coverflow-stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  /* Imaginile laterale sunt "in spatele" stratului in 3D; fara asta stratul
     ar prinde click-urile inaintea lor. */
  pointer-events: none;
}

.coverflow-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--cover-size);
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 40px rgba(26, 26, 26, 0.18);
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%) translateZ(-400px) scale(0.5);
  opacity: 0;
  transition:
    transform 0.9s cubic-bezier(0.25, 0.8, 0.25, 1),
    opacity 0.9s ease,
    filter 0.9s ease;
}

.coverflow-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
}

.coverflow-item[data-pos="0"] {
  z-index: 3;
  opacity: 1;
  cursor: default;
  transform: translate(-50%, -50%) translateZ(0);
}

.coverflow-item[data-pos="-1"],
.coverflow-item[data-pos="1"] {
  z-index: 2;
  opacity: 0.5;
  filter: saturate(0.7);
}

.coverflow-item[data-pos="-1"]:hover,
.coverflow-item[data-pos="1"]:hover {
  opacity: 0.8;
  filter: none;
  transition-duration: 0.9s, 0.25s, 0.25s;
}

.coverflow-item[data-pos="-1"] {
  transform: translate(-50%, -50%) translateX(-68%) translateZ(-160px) rotateY(42deg);
}

.coverflow-item[data-pos="1"] {
  transform: translate(-50%, -50%) translateX(68%) translateZ(-160px) rotateY(-42deg);
}

.coverflow-item[data-pos="-2"],
.coverflow-item[data-pos="2"] {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.coverflow-item[data-pos="-2"] {
  transform: translate(-50%, -50%) translateX(-125%) translateZ(-320px) rotateY(55deg);
}

.coverflow-item[data-pos="2"] {
  transform: translate(-50%, -50%) translateX(125%) translateZ(-320px) rotateY(-55deg);
}

.coverflow-item[data-pos="hidden"] {
  z-index: 0;
  pointer-events: none;
}

.coverflow:focus-visible .coverflow-item[data-pos="0"] {
  outline: 3px solid #28166f;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .coverflow-item {
    transition: opacity 0.3s ease;
  }
}

/* SECTIUNI */

.zona-section {
  padding: 5rem 2rem;
  background: #fff;
}

.zona-section-alt {
  background: #f8f8f8;
}

.zona-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.zona-section h2 {
  font-family: 'font-sans-serif', sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 3rem;
  text-align: center;
}

.zona-section h3 {
  font-family: 'font-sans-serif', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.zona-section p {
  font-family: 'font-sans-serif', sans-serif;
  font-size: 15px;
  color: #555;
  line-height: 1.65;
  margin: 0;
}

/* Aparitie la derulare (clasa reveal-on este pusa de initReveal) */

.reveal-on .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.8s ease var(--reveal-delay, 0ms),
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms);
}

.reveal-on .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Antet de sectiune (eticheta mica + titlu + text) */

.prod-head {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.prod-eyebrow {
  display: block;
  margin-bottom: 0.75rem;
  font-family: 'font-sans-serif', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #28166f;
  opacity: 0.7;
}

.zona-section .prod-head h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 1rem;
}

.zona-section .prod-head p {
  font-size: 17px;
}

/* Cuprinsul dispozitivelor */

.prod-index {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.prod-index a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  font-family: 'font-sans-serif', sans-serif;
  font-size: 14px;
  color: #1a1a1a;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.prod-index a span {
  font-size: 12px;
  font-weight: 600;
  color: #28166f;
  opacity: 0.6;
}

.prod-index a:hover {
  border-color: #28166f;
  color: #28166f;
}

/* Prezentarea dispozitivelor: un rand mare pentru fiecare produs,
   cu imaginea alternativ in stanga si in dreapta */

.prod-list {
  display: flex;
  flex-direction: column;
  gap: 7rem;
  margin-top: 5rem;
}

.prod-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 5rem;
  scroll-margin-top: 110px;
}

.prod-row-flip {
  grid-template-columns: 1fr 1.1fr;
}

.prod-row-flip .prod-media {
  order: 2;
}

.prod-media {
  position: relative;
  aspect-ratio: 1;
  border-radius: 24px;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, #f3f1fa, #e9e6f4);
  box-shadow: 0 30px 60px -20px rgba(40, 22, 111, 0.25);
}

.prod-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Produs fara fotografie: iconita mare pe fundal punctat */
.prod-media-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle, rgba(40, 22, 111, 0.12) 1px, transparent 1px) 0 0 / 22px 22px,
    radial-gradient(circle at 30% 20%, #f6f4fc, #e6e2f3);
}

.prod-media-icon > .ti {
  width: 44%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 24px 50px -18px rgba(40, 22, 111, 0.35);
  color: #28166f;
  font-size: clamp(64px, 9vw, 120px);
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.prod-row:hover .prod-media-icon > .ti {
  transform: scale(1.04);
}

.prod-row:hover .prod-media img {
  transform: scale(1.03);
}

.prod-badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(26, 26, 26, 0.1);
  font-family: 'font-sans-serif', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #28166f;
}

.prod-badge .ti {
  font-size: 16px;
}

.prod-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  --reveal-delay: 120ms;
}

.prod-nr {
  font-family: 'font-sans-serif', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #28166f;
}

.prod-nr span {
  color: #bbb;
}

.zona-section .prod-body h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
}

.prod-body h3 .ti {
  flex-shrink: 0;
  font-size: 30px;
  color: #28166f;
}

.zona-section .prod-text {
  font-size: 17px;
  line-height: 1.7;
}

.prod-specs {
  list-style: none;
  align-self: stretch;
  margin: 0.25rem 0 0;
  padding: 0;
  border-top: 1px solid #ececec;
}

.prod-specs li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #ececec;
  font-family: 'font-sans-serif', sans-serif;
  font-size: 15px;
  color: #333;
  line-height: 1.5;
}

.prod-specs .ti {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(40, 22, 111, 0.08);
  color: #28166f;
  font-size: 14px;
}

.zona-section .prod-recomandat {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 14px;
  color: #777;
}

.prod-recomandat .ti {
  font-size: 18px;
  color: #28166f;
  opacity: 0.7;
}

.prod-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.25rem;
  font-family: 'font-sans-serif', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #28166f;
  text-decoration: none;
}

.prod-link .ti {
  transition: transform 0.2s;
}

.prod-link:hover .ti {
  transform: translateX(4px);
}

/* Cum realizam dispozitivul */

.prod-proces .zona-section-inner {
  position: relative;
  z-index: 1;
}

.proces-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin: 3.5rem 0 0;
  padding: 0;
}

.proces-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 2rem 1.75rem;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(26, 26, 26, 0.06);
}

/* Sageata dintre doi pasi */
.proces-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -1.3rem;
  width: 10px;
  height: 10px;
  border-top: 2px solid #28166f;
  border-right: 2px solid #28166f;
  opacity: 0.35;
  transform: translateY(-50%) rotate(45deg);
}

.proces-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  border-radius: 50%;
  background: #28166f;
  color: #fff;
  font-size: 26px;
}

.proces-nr {
  font-family: 'font-sans-serif', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #28166f;
  opacity: 0.6;
}

/* Afectiuni tratate (secundar, sub forma de lista pliabila) */

.zona-afectiuni-inner {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 4rem;
  align-items: start;
}

.zona-section .zona-afectiuni-head h2 {
  font-size: 26px;
  text-align: left;
  margin-bottom: 0.75rem;
}

.afectiuni-list {
  border-top: 1px solid #e5e5e5;
}

.afectiune {
  border-bottom: 1px solid #e5e5e5;
}

.afectiune summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  list-style: none;
  cursor: pointer;
  font-family: 'font-sans-serif', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #1a1a1a;
  transition: color 0.2s;
}

.afectiune summary::-webkit-details-marker {
  display: none;
}

.afectiune summary:hover {
  color: #28166f;
}

.afectiune summary .ti {
  flex-shrink: 0;
  font-size: 18px;
  color: #999;
  transition: transform 0.25s;
}

.afectiune[open] summary .ti {
  transform: rotate(180deg);
}

.afectiune-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0 2rem 1.25rem 0;
}

.zona-section .afectiune-legate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 14px;
}

.afectiune-legate a {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(40, 22, 111, 0.07);
  color: #28166f;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.afectiune-legate a:hover {
  background: #28166f;
  color: #fff;
}

/* Programare */

.zona-cta {
  padding: 5.5rem 2rem;
  background:
    radial-gradient(circle at 15% 0%, rgba(120, 140, 255, 0.25), transparent 50%),
    #28166f;
}

.zona-cta-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.zona-cta h2 {
  margin: 0;
  font-family: 'font-sans-serif', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
}

.zona-cta p {
  margin: 0;
  font-family: 'font-sans-serif', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

.zona-cta .zona-actions {
  justify-content: center;
  margin-top: 1rem;
}

.zona-btn .ti {
  font-size: 19px;
  margin-right: 0.5rem;
}

.zona-btn-light {
  background: #fff;
  border-color: #fff;
  color: #28166f;
}

.zona-btn-light:hover {
  background: #ecebf5;
  border-color: #ecebf5;
}

.zona-btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
}

.zona-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.zona-section .zona-nota {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: 800px;
  margin: 3rem auto 0;
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  background: rgba(40, 22, 111, 0.06);
  color: #444;
}

.zona-nota a {
  color: #28166f;
  font-weight: 500;
}

.zona-nota .ti {
  font-size: 22px;
  color: #28166f;
  flex-shrink: 0;
}

/* Alte zone */

.zona-celelalte {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.zona-celelalte h2 {
  font-size: 24px;
  margin-bottom: 2rem;
}

.zona-celelalte-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.zona-chip {
  padding: 0.6rem 1.25rem;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  font-family: 'font-sans-serif', sans-serif;
  font-size: 15px;
  color: #28166f;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.zona-chip:hover {
  background: #28166f;
  border-color: #28166f;
  color: #fff;
}

/* ===== TABLETA ===== */
@media (max-width: 1024px) {
  .zona-hero-inner {
    gap: 2rem;
  }

  .coverflow {
    --cover-size: 240px;
  }

  .prod-row,
  .prod-row-flip {
    gap: 3rem;
  }

  .zona-section .prod-body h3 {
    font-size: 28px;
  }

  .proces-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .proces-step::after {
    display: none;
  }

  .zona-afectiuni-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .zona-hero {
    padding: 2rem 1.25rem 3rem;
  }

  .zona-hero-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .coverflow {
    --cover-size: 200px;
    flex: none;
    width: 100%;
    height: calc(var(--cover-size) + 3rem);
  }

  .zona-intro h1 {
    font-size: 30px;
  }

  .zona-intro .zona-rezumat {
    font-size: 17px;
  }

  .zona-section {
    padding: 3.5rem 1.25rem;
  }

  .zona-section h2 {
    font-size: 26px;
    margin-bottom: 2rem;
  }

  .zona-section .prod-head h2 {
    font-size: 30px;
  }

  .zona-section .prod-head p {
    font-size: 16px;
  }

  .prod-index {
    display: none;
  }

  .prod-list {
    gap: 4.5rem;
    margin-top: 3rem;
  }

  .prod-row,
  .prod-row-flip {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .prod-row-flip .prod-media {
    order: 0;
  }

  .prod-media {
    aspect-ratio: 4 / 3;
    border-radius: 18px;
  }

  .zona-section .prod-body h3 {
    font-size: 25px;
  }

  .prod-body h3 .ti {
    font-size: 24px;
  }

  .zona-section .prod-text {
    font-size: 16px;
  }

  .proces-steps {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2.5rem;
  }

  /* Pe telefon iconita sta in stanga textului */
  .proces-step {
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 1rem;
    row-gap: 0.3rem;
    padding: 1.5rem 1.25rem;
  }

  .proces-icon {
    grid-row: span 3;
    width: 48px;
    height: 48px;
    margin-bottom: 0;
    font-size: 22px;
  }

  .zona-cta {
    padding: 4rem 1.25rem;
  }

  .zona-cta h2 {
    font-size: 27px;
  }

  .zona-cta .zona-actions {
    flex-direction: column;
    align-self: stretch;
  }

  .zona-cta .zona-btn {
    justify-content: center;
  }
}
