/* =========================
   PRODUKTDETAILSEITE
   ========================= */

.product-detail {
  width: 100%;

  padding: 90px 24px;

  background-color: var(--color-dark);

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


/* =========================
   CONTAINER
   ========================= */

.product-detail__container {
  width: 100%;

  max-width: 1280px;

  margin: 0 auto;

  display: grid;

  grid-template-columns:
    minmax(0, 1.1fr)
    minmax(320px, 0.9fr);

  gap: 70px;

  align-items: start;
}


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

.product-gallery {
  width: 100%;
}


/* großes Hauptbild */

.product-gallery__main {
  width: 100%;

  aspect-ratio: 1 / 1;

  overflow: hidden;

  background-color: var(--color-dark);
}


.product-gallery__main img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}


/* =========================
   VORSCHAUBILDER
   ========================= */

.product-gallery__thumbs {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 12px;

  margin-top: 14px;
}


.product-gallery__thumb {
  width: 100%;

  aspect-ratio: 1 / 1;

  padding: 0;

  border: 2px solid transparent;

  background-color: transparent;

  overflow: hidden;

  cursor: pointer;

  transition:
    border-color 0.2s ease,
    opacity 0.2s ease;
}


.product-gallery__thumb img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}


.product-gallery__thumb:hover {
  border-color: var(--color-light);
}


.product-gallery__thumb.is-active {
  border-color: var(--color-gold);
}


/* =========================
   PRODUKTINFOS
   ========================= */

.product-detail__info {
  padding-top: 10px;
}


.product-detail__info h1 {
  margin: 0 0 20px;

  font-size: var(--font-size-h2);

  line-height: var(--line-height-heading);

  color: var(--color-light);

  font-weight: 600;
}


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

.product-detail__price {
  margin: 0 0 30px;

  font-size: var(--font-size-h3);

  line-height: var(--line-height-heading);

  color: var(--color-gold);

  font-weight: 500;
}


/* =========================
   BESCHREIBUNG
   ========================= */

.product-detail__description {
  margin-bottom: 34px;
}


.product-detail__description p {
  margin: 0 0 16px;

  font-size: var(--font-size-body);

  line-height: var(--line-height-body);

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


/* =========================
   PRODUKTOPTIONEN
   ========================= */

.product-options {
  margin-bottom: 35px;
}


.product-options__title {
  margin: 0 0 14px;

  font-size: var(--font-size-body);

  line-height: var(--line-height-body);

  font-weight: 500;

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


/* =========================
   FARBEN
   ========================= */

.product-options__colors {
  display: flex;

  align-items: center;

  gap: 12px;
}


.product-color {
  width: 44px;
  height: 44px;

  padding: 4px;

  border: 2px solid transparent;

  border-radius: 50%;

  background-color: transparent;

  cursor: pointer;

  transition: border-color 0.2s ease;
}


.product-color:hover {
  border-color: var(--color-light);
}


.product-color.is-active {
  border-color: var(--color-gold);
}


.product-color__swatch {
  display: block;

  width: 100%;
  height: 100%;

  border-radius: 50%;

  border: 1px solid rgba(224, 219, 205, 0.35);
}


/* Schwarz */

.product-color__swatch--black {
  background-color: #111111;
}


/* Beige */

.product-color__swatch--beige {
  background-color: #d8c6a8;
}


/* Gold */

.product-color__swatch--gold {
  background-color: var(--color-gold);
}


/* =========================
   ANFRAGE BUTTON
   ========================= */

.product-detail__button {
  display: inline-block;

  padding: 12px 28px;

  border: 2px solid var(--color-light);

  border-radius: 999px;

  background-color: transparent;

  color: var(--color-light);

  text-decoration: none;

  font-size: var(--font-size-body);

  line-height: 1.2;

  font-weight: 500;

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


.product-detail__button:hover {
  color: var(--color-gold);

  border-color: var(--color-gold);
}


/* =========================
   TABLET
   ========================= */

@media (max-width: 991px) {

  .product-detail {
    padding: 70px 20px;
  }


  .product-detail__container {
    grid-template-columns: 1fr;

    gap: 45px;
  }


  .product-detail__info {
    padding-top: 0;
  }

}


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

@media (max-width: 600px) {

  .product-detail {
    padding: 55px 16px;
  }


  .product-detail__container {
    gap: 35px;
  }


  .product-gallery__thumbs {
    gap: 8px;

    margin-top: 10px;
  }


  .product-detail__info h1 {
    margin-bottom: 14px;
  }


  .product-detail__price {
    margin-bottom: 24px;
  }


  .product-detail__description {
    margin-bottom: 28px;
  }


  .product-color {
    width: 40px;
    height: 40px;
  }


  .product-detail__button {
    width: 100%;

    text-align: center;
  }

  /* =========================
   PRODUKT ANFRAGEN BUTTON
   BREITE KORRIGIEREN
   ========================= */

.product-detail__button {
  width: fit-content;
  max-width: 100%;

  align-self: flex-start;

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

  box-sizing: border-box;
}


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

@media (max-width: 767px) {

  .product-detail__button {
    width: fit-content;
    max-width: 100%;

    align-self: flex-start;
  }

}

}

/* Dunkelgrün */
.product-color__swatch--darkgreen {
  background-color: #274536;
}

/* Rosé */
.product-color__swatch--rose {
  background-color: #c98f95;
}

/* Blau */
.product-color__swatch--blue {
  background-color: #2c2c9b;
}

/* Hellgrau mit leichtem Grünstich */
.product-color__swatch--greygreen {
  background-color: #b8beb7;
}


/* Pink */
.product-color__swatch--pink {
  background-color: #d96b91;
}