/* =========================================
   PRODUKTDETAIL - OBERER BEREICH
========================================= */

.product-detail {
  padding: 30px 0 75px;
  background: var(--white-color);
}

.product-detail > .boxed-container {
  display: block;
}

/* BREADCRUMB */

.product-breadcrumb {
  width: 100%;
  margin: 0 0 25px;
  margin-bottom: 18px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  line-height: 1.4;
  color: var(--secondary-color);
  
}

.product-breadcrumb a {
  color: var(--secondary-color);
  text-decoration: none;
  opacity: 0.55;
  font-size: 16px;
}

.product-breadcrumb a:hover {
  opacity: 1;
}

.product-breadcrumb span {
  opacity: 0.55;
  font-weight: 700;
  font-size: 16px;
}

.product-breadcrumb span:last-child {
  opacity: 0.75;
}

/* PRODUKT */

.product-detail-grid {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 65px;
  align-items: start;
}

/* PRODUKTBILD */

.product-detail-gallery {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.product-detail-main-image {
  width: 100%;
  height: 520px;
  min-height: 0;
  padding: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
  background: var(--grey-color);
  border-radius: 16px;
}

.product-detail-main-image img {
  width: auto;
  height: auto;
  max-width: 82%;
  max-height: 390px;
  display: block;
  object-fit: contain;
  transform: none;
}

.product-detail-main-image:hover img {
  transform: scale(1.025);
}

/* =========================================
   PRODUKT INFORMATIONEN
========================================= */

.product-detail-info {
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.product-detail-category {
  width: fit-content;
  margin-bottom: 15px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  background: var(--primary-color);
  border-radius: 6px;
  font-family: var(--font-primary);
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-detail-info h1 {
  margin: 0 0 16px;
  font-family: var(--font-secondary);
  font-size: 46px;
  line-height: 1.08;
  font-weight: 800;
  color: var(--secondary-color);
  letter-spacing: -0.03em;
}

.product-detail-description {
  max-width: 520px;
  margin: 0;
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.65;
  color: var(--secondary-color);
  opacity: 0.68;
}

/* =========================================
   PREIS
========================================= */

.product-detail-price {
  width: 100%;
  margin-top: 28px;
  padding: 25px 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  border-top: 1px solid rgba(8, 10, 13, 0.08);
  border-bottom: 1px solid rgba(8, 10, 13, 0.08);
  font-family: var(--font-primary);
  color: var(--secondary-color);
}

.product-detail-price span {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.55;
}

.product-detail-price strong {
  font-family: var(--font-secondary);
  font-size: 32px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* =========================================
   HIGHLIGHTS
========================================= */

.product-detail-features {
  width: 100%;
  padding: 25px 0 27px;
}

.product-detail-features h2 {
  margin: 0 0 15px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 700;
  color: var(--secondary-color);
}

.product-detail-features ul {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  list-style: none;
}

.product-detail-features li {
  position: relative;
  padding-left: 27px;
  font-family: var(--font-primary);
  font-size: 13px;
  line-height: 1.5;
  color: var(--secondary-color);
}

.product-detail-features li::before {
  content: "✓";
  width: 18px;
  height: 18px;
  position: absolute;
  top: 1px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  color: var(--secondary-color);
}

/* =========================================
   WARENKORB BUTTON
========================================= */

.product-detail-cart {
  width: 100%;
  min-height: 54px;
  margin: 0;
  border: 0;
  border-radius: 8px;
  background: var(--primary-color);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 700;
  color: var(--secondary-color);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.product-detail-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(8, 10, 13, 0.12);
}

/* =========================================
   KAUF-USPS
========================================= */

.product-detail-usps {
  width: 100%;
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.product-detail-usps span {
  font-family: var(--font-primary);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--secondary-color);
  opacity: 0.6;
}

/* =========================================
   PRODUKTBESCHREIBUNG
========================================= */

.product-detail-content {
  padding: 55px 0;
  background: var(--grey-color);
}

.product-detail-content-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 100px;
  align-items: start;
}

.product-detail-overline {
  margin-bottom: 12px;
  display: block;
  font-family: var(--font-primary);
  font-size: 11px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.5;
}

.product-detail-content h2 {
  max-width: 390px;
  margin: 0;
  font-family: var(--font-secondary);
  font-size: 36px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--secondary-color);
  letter-spacing: -0.025em;
}

.product-detail-content-grid > div:last-child {
  padding-top: 25px;
}

.product-detail-content-grid > div:last-child p {
  max-width: 650px;
  margin: 0;
  font-family: var(--font-primary);
  font-size: 15px;
  line-height: 1.8;
  color: var(--secondary-color);
  opacity: 0.72;
}

/* =========================================
   TECHNISCHE DATEN
========================================= */

.product-specifications {
  height: auto;
  min-height: 0;
  padding: 42px 0 45px;
  background: var(--white-color);
}

.product-specifications > .boxed-container {
  min-height: 0;
  height: auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 45px;
  align-items: start;
}

.product-specifications h2 {
  margin: 0;
  font-family: var(--font-secondary);
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--secondary-color);
  letter-spacing: -0.02em;
}

.product-specifications-list {
  width: 100%;
  max-width: none;
  border-top: 1px solid rgba(8, 10, 13, 0.1);
}

.product-specification-row {
  min-height: 58px;
  padding: 0 5px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid rgba(8, 10, 13, 0.1);
}

.product-specification-row span {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 500;
  color: var(--secondary-color);
  opacity: 0.55;
}

.product-specification-row strong {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary-color);
}
/* =========================================
   PRODUKT NICHT GEFUNDEN
========================================= */

.product-not-found-section {
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white-color);
}

.product-not-found-section > .boxed-container {
  width: 90%;
  max-width: 1150px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.product-not-found {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 70px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.product-not-found-label {
  margin: 0 0 12px;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary-color);
}

.product-not-found h1 {
  margin: 0 0 18px;
  font-family: var(--font-secondary);
  font-size: 42px;
  line-height: 1.1;
  font-weight: 800;
  color: var(--secondary-color);
  letter-spacing: -0.03em;
  text-align: center;
}

.product-not-found p {
  max-width: 650px;
  margin: 0 0 30px;
  font-family: var(--font-primary);
  font-size: 15px;
  line-height: 1.6;
  color: var(--secondary-color);
  opacity: 0.6;
  text-align: center;
}

.product-not-found .button {
  width: fit-content;
  margin: 0;
}

/* =========================================
   PRODUKT GALERIE
========================================= */

.product-gallery {
  width: 100%;
  min-width: 0;
}

.product-gallery-main {
  width: 100%;
  position: relative;
  height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--grey-color);
  border-radius: 14px;
}

.product-gallery-arrow {
  width: 38px;
  height: 38px;
  position: absolute;
  top: 50%;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  border: 1px solid rgba(8, 10, 13, 0.08);
  border-radius: 50%;

  background: var(--white-color);
  color: var(--secondary-color);

  font-family: var(--font-primary);
  font-size: 24px;
  line-height: 1;

  cursor: pointer;

  transform: translateY(-50%);

  box-shadow: 0 3px 12px rgba(8, 10, 13, 0.06);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.product-gallery-prev {
  left: 16px;
}

.product-gallery-next {
  right: 16px;
}

.product-gallery-arrow:hover {
  box-shadow: 0 6px 18px rgba(8, 10, 13, 0.12);
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  padding: 45px;
  display: block;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

/* THUMBNAILS */

.product-gallery-thumbnails {
  width: 100%;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
}

.product-gallery-thumbnail {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  padding: 8px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--white-color);
  border: 1px solid rgba(8, 10, 13, 0.1);
  border-radius: 9px;

  cursor: pointer;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.product-gallery-thumbnail:hover {
  border-color: rgba(8, 10, 13, 0.3);
}

.product-gallery-thumbnail.active {
  border: 2px solid var(--primary-color);
}

.product-gallery-thumbnail img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* =========================================
   WEITERE PRODUKTE - DESKTOP
========================================= */

.product-recommendations {
  width: 100%;
  padding: 70px 0 80px;
  background: var(--grey-color);
}

.product-recommendations > .boxed-container {
  display: block;
}

/* ---------- Überschrift ---------- */

.product-recommendations-head {
  width: 100%;
  margin-bottom: 30px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.product-recommendations-head > div {
  max-width: 520px;
}

.product-recommendations-head .section-label {
  display: block;
  margin-bottom: 7px;

  font-family: var(--font-primary);
  font-size: 11px;
  line-height: 1.3;
  font-weight: 600;

  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-recommendations-head h2 {
  margin: 0 0 8px;

  font-family: var(--font-secondary);
  font-size: 32px;
  line-height: 1.15;
  font-weight: 800;

  color: var(--secondary-color);
}

.product-recommendations-head p {
  max-width: 460px;
  margin: 0;

  font-family: var(--font-primary);
  font-size: 14px;
  line-height: 1.6;

  color: var(--secondary-color);
  opacity: 0.65;
}

/* ---------- Alle Produkte ---------- */

.product-recommendations-all {
  flex-shrink: 0;

  display: flex;
  align-items: center;
  gap: 12px;

  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 700;

  color: var(--secondary-color);
  text-decoration: none;
}

.product-recommendations-all span {
  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--primary-color);
  border-radius: 50%;

  font-size: 17px;

  transition: transform 0.2s ease;
}

.product-recommendations-all:hover span {
  transform: translateX(3px);
}

/* ---------- Karten ---------- */

.product-recommendations-grid {
  width: 100%;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-recommendation-card {
  min-width: 0;

  display: flex;
  flex-direction: column;

  overflow: hidden;

  background: var(--white-color);

  border: 1px solid rgba(8, 10, 13, 0.08);
  border-radius: 12px;

  text-decoration: none;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.product-recommendation-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(8, 10, 13, 0.07);
}

/* ---------- Produktbild ---------- */

.product-recommendation-image {
  width: 100%;
  height: 260px;
  padding: 30px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--grey-color);

  box-sizing: border-box;
}

.product-recommendation-image img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: contain;
}

/* ---------- Karteninhalt ---------- */

.product-recommendation-content {
  min-height: 180px;
  padding: 22px;

  display: flex;
  flex: 1;
  flex-direction: column;
}

.product-recommendation-content > span {
  margin-bottom: 6px;

  font-family: var(--font-primary);
  font-size: 10px;
  line-height: 1.3;
  font-weight: 700;

  color: var(--secondary-color);
  opacity: 0.5;

  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-recommendation-content h3 {
  margin: 0 0 20px;

  font-family: var(--font-secondary);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 800;

  color: var(--secondary-color);
}

/* ---------- Preis + Pfeil ---------- */

.product-recommendation-bottom {
  width: 100%;

  margin-top: auto;
  padding-top: 17px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;

  border-top: 1px solid rgba(8, 10, 13, 0.08);
}

.product-recommendation-bottom strong {
  font-family: var(--font-primary);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 700;

  color: var(--secondary-color);
}

.product-recommendation-arrow {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--primary-color);
  border-radius: 50%;

  font-size: 16px;

  color: var(--secondary-color);

  transition: transform 0.2s ease;
}

.product-recommendation-card:hover .product-recommendation-arrow {
  transform: translateX(3px);
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {
  /* =========================================
     PRODUKTDETAIL - MOBILE
  ========================================= */

  .product-detail {
    padding: 18px 0 50px;
  }

  .product-breadcrumb {
    margin-bottom: 16px;
    gap: 7px;
    font-size: 12px;
  }

  .product-breadcrumb a,   .product-breadcrumb span {
    font-size: 14px;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* ---------- Galerie ---------- */

  .product-gallery {
    width: 100%;
  }

  .product-gallery-main {
    width: 100%;
    height: 295px;
    border-radius: 12px;
  }

  .product-gallery-main img {
    width: 100%;
    height: 100%;
    padding: 24px;
    object-fit: contain;
  }

  .product-gallery-arrow {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }

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

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

  .product-gallery-thumbnails {
    margin-top: 10px;
    gap: 8px;
  }

  .product-gallery-thumbnail {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    padding: 5px;
    border-radius: 7px;
  }

  /* ---------- Produktinformationen ---------- */

  .product-detail-info {
    width: 100%;
    padding-top: 0;
  }

  .product-detail-category {
    margin-bottom: 12px;
    font-size: 10px;
  }

  .product-detail-info h1 {
    margin-bottom: 12px;
    font-size: 27px;
    line-height: 1.15;
  }

  .product-detail-description {
    font-size: 13px;
    line-height: 1.55;
  }

  .product-detail-price {
    margin-top: 20px;
    padding: 20px 0;
  }

  .product-detail-price strong {
    font-size: 27px;
  }

  /* ---------- Highlights ---------- */

  .product-detail-features {
    padding: 22px 0;
  }

  .product-detail-features li {
    font-size: 12px;
    line-height: 1.45;
  }

  /* ---------- Warenkorb / USPs ---------- */

  .product-detail-cart {
    min-height: 52px;
  }

  .product-detail-usps {
    align-items: flex-start;
    flex-direction: row;
    gap: 7px;
  }

  /* =========================================
     PRODUKTBESCHREIBUNG
  ========================================= */

  .product-detail-content {
    padding: 55px 0;
  }

  .product-detail-content-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .product-detail-content h2 {
    font-size: 28px;
  }

  .product-detail-content-grid > div:last-child {
    padding-top: 0;
  }

  .product-detail-content-grid > div:last-child p {
    font-size: 14px;
    line-height: 1.7;
  }

  /* =========================================
     TECHNISCHE DATEN
  ========================================= */

  .product-specifications {
    padding: 45px 0 55px;
  }

  .product-specifications > .boxed-container {
    display: block;
  }

  .product-specifications h2 {
    width: 100%;
    margin: 0 0 25px;
    font-size: 26px;
    line-height: 1.2;
  }

  .product-specifications-list {
    width: 100%;
    display: block;
  }

  .product-specification-row {
    width: 100%;
    min-height: 55px;
    padding: 14px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 20px;
    border-top: 1px solid rgba(8, 10, 13, 0.08);
  }

  .product-specification-row:last-child {
    border-bottom: 1px solid rgba(8, 10, 13, 0.08);
  }

  .product-specification-row span {
    font-size: 12px;
    line-height: 1.4;
    color: var(--secondary-color);
    opacity: 0.6;
  }

  .product-specification-row strong {
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
    color: var(--secondary-color);
    text-align: right;
  }

  /* =========================================
     PRODUKT NICHT GEFUNDEN
  ========================================= */

  .product-not-found {
    min-height: 400px;
  }

  .product-not-found h1 {
    font-size: 30px;
  }

  /* =========================================
     WEITERE PRODUKTE
  ========================================= */

  .product-recommendations {
    width: 100%;
    margin-top: 0;
    padding: 50px 0 55px;
    overflow: hidden;
  }

  .product-recommendations > .boxed-container {
    width: 92%;
    max-width: none;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
  }

  .product-recommendations-head {
    width: 100%;
    margin: 0 0 25px;
    padding: 0;
    display: block;
  }

  .product-recommendations-head > div {
    width: 100%;
  }

  .product-recommendations-head .section-label {
    display: block;
    margin-bottom: 5px;
    font-size: 9px;
  }

  .product-recommendations-head h2 {
    width: 100%;
    margin: 0 0 7px;
    font-size: 25px;
    line-height: 1.15;
  }

  .product-recommendations-head p {
    width: 100%;
    max-width: 310px;
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
  }

  .product-recommendations-all {
    width: fit-content;
    margin-top: 17px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
  }

  .product-recommendations-all span {
    width: 32px;
    height: 32px;
  }

  .product-recommendations-grid {
    width: 100%;
    margin: 0;
    padding: 0 0 10px;
    display: flex;
    flex-direction: row;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .product-recommendations-grid::-webkit-scrollbar {
    display: none;
  }

  .product-recommendation-card {
    width: 78%;
    min-width: 78%;
    flex: 0 0 78%;
    margin: 0;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    border-radius: 10px;
  }

  .product-recommendation-image {
    width: 100%;
    height: 210px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }

  .product-recommendation-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .product-recommendation-content {
    width: 100%;
    min-width: 0;
    padding: 17px;
    display: flex;
    flex: 1;
    flex-direction: column;
    box-sizing: border-box;
  }

  .product-recommendation-content > span {
    margin-bottom: 5px;
    font-size: 9px;
  }

  .product-recommendation-content h3 {
    margin: 0 0 18px;
    font-size: 17px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .product-recommendation-bottom {
    width: 100%;
    margin-top: auto;
    padding-top: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .product-recommendation-bottom strong {
    font-size: 12px;
    line-height: 1.3;
  }

  .product-recommendation-arrow {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
  }
}
