/* Stiluri folosite doar de pagina individuala de produs (produs.php). */

.breadcrumb {
  padding: 18px 0 0;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
  color: var(--muted);
}

.breadcrumb li {
  min-width: 0;
  overflow-wrap: anywhere;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--ring-strong);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--brand-2);
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  color: var(--muted-strong);
  font-weight: 600;
}

.product-page {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.product-page > * {
  min-width: 0;
}

.product-page__media {
  padding: 18px;
  position: sticky;
  top: 96px;
}

.gallery-stage {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
}

.gallery-slide {
  display: none;
}

.gallery-slide.active {
  display: block;
}

.gallery-stage img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--surface);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: var(--tap);
  height: var(--tap);
  display: grid;
  place-items: center;
  border: 1px solid var(--ring);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.gallery-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}

.gallery-nav.prev {
  left: 12px;
}

.gallery-nav.next {
  right: 12px;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.gallery-thumb {
  flex: 0 0 76px;
  width: 76px;
  height: 62px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.65;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-thumb.active,
.gallery-thumb:hover {
  border-color: var(--brand-2);
  opacity: 1;
}

.product-page__body h1 {
  margin: 12px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.15;
}

.product-page__specs {
  margin: 26px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.product-page__specs .spec-card {
  padding: 16px 18px;
  border: 1px solid var(--ring);
  border-radius: var(--radius-sm);
  background: var(--card);
}

.product-page__specs .spec-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 6px;
}

.product-page__subtitle {
  font-size: 1.15rem;
  margin: 26px 0 12px;
}

.product-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 16px;
}

.product-page__actions .btn {
  min-width: 0;
}

.product-card__cover {
  display: block;
}

.product-card__official {
  margin: 10px 0 0;
}

.product-card h3 a {
  color: inherit;
  text-decoration: none;
}

.product-card h3 a:hover,
.product-card h3 a:focus-visible {
  color: var(--brand-2);
  text-decoration: underline;
}

@media (max-width: 900px) {
  .product-page {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .product-page__media {
    position: static;
  }
}

@media (max-width: 720px) {
  .breadcrumb {
    padding-top: 14px;
  }

  .product-page__media {
    padding: 14px;
  }

  .product-page__specs {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .product-page__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .product-page__actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    line-height: 1.35;
  }

  .product-page__body .product-card__meta {
    gap: 8px;
  }

  .product-page__body .badge,
  .product-page .product-card .badge {
    width: 100%;
    justify-content: flex-start;
    border-radius: 18px;
  }

  .gallery-thumbs {
    gap: 8px;
    margin-top: 12px;
    padding-bottom: 2px;
  }

  .gallery-thumb {
    flex-basis: 68px;
    width: 68px;
    height: 56px;
  }
}
