/* =====================================================
   PRODUKTSEITE
   ===================================================== */

/* gesamter Produktbereich */
article {
/*  text-align: center;*/
}

/* alle relevanten Felder zentrieren */
.field--name-price,
.field--name-field-status,
.field--name-field-hoehe-in-cm,
.field--name-field-material,
.field--name-variations,
.field--name-field-jahr {
  text-align: center;
  width: 100%;

}


/*        Titel       */
.content .title {
  display: flex;
  justify-content: center;
  color: black;
  margin-left: auto;
  margin-right: auto;
  width: 80%;
}

/* Bild */


/* beide Bildfelder gleich behandeln */
.field--name-field-images,
.field--name-field-product-media-image {
  margin: 0 auto 20px auto;
  text-align: center;
}

/* Bilder */
.field--name-field-images img,
.field--name-field-product-media-image img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

/* Desktop */
@media (min-width: 992px) {
  .field--name-field-images,
  .field--name-field-product-media-image {
    width: 45%;
  }
}

/* Smartphone */
@media (max-width: 991px) {
  .field--name-field-images,
  .field--name-field-product-media-image {
    width: 90%;
  }
}


.field--name-field-images {
  margin-bottom: 20px;
}

.field--name-field-images,
.field--name-field-product-media-image {
  max-width: 100%;
}

.field--name-field-images img,
.field--name-field-product-media-image img {
  width: 100%;
  height: auto;
}

/* Preis */
.field--name-price {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

/* ===== Metadaten ===== */
/*.field--name-field-status,
.field--name-field-hoehe-in-cm,
.field--name-field-material {
  display: inline-block;
}

.field--name-field-status {
  text-align: center;
  width: 100%;
}
*/
/* Trenner */
/*.field--name-field-status::after,
.field--name-field-hoehe-in-cm::after {
  content: " | ";
}
*/

/* Label Abstand korrigieren */
.field--name-field-hoehe-in-cm .field__label {
  margin-right: 4px;
}

/* ===== Warenkorb-Formular (Button) ===== */
.commerce-order-item-add-to-cart-form {
  margin-top: 15px;
}

.button--add-to-cart {
  width: auto;
  padding: 8px 20px;
  display: none;
}

.button--buy-now {
  width: auto;
  padding: 8px 20px;
}

body.role-administrator .button--add-to-cart {
  display: inline-block !important;
}

*======================================================
  Warenkorb Block (Icon und Text) - Zentrierung
  ======================================================*/

#block-jekeramik-warenkorb {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100%;
  clear: both;
  margin-bottom: 20px;
}

/* Drupal Block-Content Wrapper */
#block-jekeramik-warenkorb .content {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Titel */
#block-jekeramik-warenkorb h2 {
  display: block !important;
  font-size: 0.9rem;
  margin-bottom: 8px !important;
  text-align: center;
  width: 100%;
}

/* Container */
#block-jekeramik-warenkorb .cart--cart-block {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Zusammenfassung (Link-Wrapper) */
#block-jekeramik-warenkorb .cart-block--summary {
  display: flex !important;
  justify-content: center !important;
  width: auto !important;
  float: none !important;
  margin: 0 auto !important;
}

/* Icon + Text Link */
#block-jekeramik-warenkorb .cart-block--link__expand {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}

/* Text-Styling */
#block-jekeramik-warenkorb .cart-block--summary__count {
  font-size: 0.8rem;
  color: #d44a2f;
  font-weight: 500;
  white-space: nowrap;
}

/* Icon-Styling */
#block-jekeramik-warenkorb .cart-block--summary__icon img {
  width: 32px;
  filter: invert(1);
  display: block;
}
