:root {
    --shop-color: #A0A3A4;
  }

.hidden {
    display: none;
}

.loader.hidden {
    display: none;
}

.product img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

img.plogo {
    width: 400px;
    height: auto;
}

.plogo-wrapper {
    margin-bottom: 40px;
}

h5.card-title, p.card-text {
    color: black;
    font-size: clamp(18px, 2vw, 20px);
    line-height: clamp(32px, 2vw, 34px);
    font-family: var(--bs-font-family);
    letter-spacing: -0.5px;
}

h5.card-title {
    color: black;
}

p.card-text, #productModalPrice {
    color: var(--shop-color);
    font-weight: 600;
    margin-bottom: 30px;
}

.mini-cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px;
}

#mini-cart {
    min-width:300px;
}

.mini-card-item-description {
    min-width:150px;
}

.mini-cart-item img {
    width: 50px;
    height: 50px;
    max-width: 50px;
    max-height: 50px;
    border-radius: 5px;
    padding:5px;
}

.btn-outline-danger i {
    font-size: 1rem;
    vertical-align: middle;
}

/* Entfernt die Standardumrandung und den Hintergrund */
.remove-item-icon {
    border: none;
    background: none;
    color: rgb(169, 25, 25); 
    font-size: 1rem;
    cursor: pointer;
    padding: 5px; /* Entfernt Padding */
    outline: none; /* Entfernt den Fokusrahmen */
}

/* Bei Mouseover die Farbe von rot auf schwarz ändern */
.remove-item-icon:hover {
    color: black;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000000' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 1 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

#checkout-button {
    display: none; /* Button standardmäßig ausblenden */
}

#cart-summary {
    display: flex; /* Standardanzeige */
}

#mini-cart-info {
    display: none;
}

#popup-cart-summary {
    padding-bottom: 0.5rem !important;
    padding-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
    align-items: center !important;
    justify-content: space-between;
}

#popup-cart-summary {
    display: none;
}

@media (max-width: 1200px) { /* Anpassen der Buttons auf kleineren Bildschirmen */
    .card-body button {
        display: block; /* Buttons untereinander anordnen */
        width: 100%; /* Vollbreite */
        margin-bottom: 10px; /* Vertikaler Abstand */
    }

    .card-body button:last-child {
        margin-bottom: 0; /* Beim letzten Button kein zusätzlicher Abstand */
    }
}



.image-container {
    position: relative;
    width: 100%; 
    aspect-ratio: 1 / 1;
}

.product-image {
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0; /* Standardmäßig ausgeblendet */
    transition: opacity 0.3s ease-in-out; /* Optional: sanftes Einblenden */
}

.image-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 4px solid #ccc;
    border-top: 4px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Basis-Stil für die Produktkarte mit Padding */
.card {
    padding: 1rem; /* Hier kannst du den Wert anpassen */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
  }
  
  /* Hover-Effekt: Schatten und leichte Anhebung */
  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }
  
  /* Standard: Warenkorb-Button unsichtbar */
  .card .btn {
    opacity: 0;
    transition: opacity 0.3s ease!important;
    pointer-events: none;
  }
  
  /* Bei Hover: Warenkorb-Button einblenden */
  .card:hover .btn {
    opacity: 1;
    pointer-events: auto;
  }

  .card-body .cart-link {
    width: 100%;
    text-align: center;
}

.cart-link {
    text-align: center;
}

.header__actions-cart {
    position: relative;
}

#header-cart-count, #header-cart-count2 {
    position: absolute;
    display: block;
    width: 15px;
    height: 15px;
    background-color: yellow;
    color: black;
    font-size: 12px;
    font-family: var(--bs-font-family);
    font-weight: 600;
    padding: 2px;
    top: -6px;
    right: -3px;
    border-radius: 50%;
    text-align: center;
}

span#header-cart-count2 {
    background-color: #58a7af;
    color: white;
}

/* div#mini-cart {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: white;
    z-index: 1000;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
} */

div#mini-cart {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: white;
    z-index: 1000;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    padding: 1rem !important;

}

div#mini-cart h5 {
    font-weight: 600;
    color: black;
    margin-bottom: 20px;
}

#mini-cart #cart-items {
    margin-bottom: 20px;
}

.mini-cart-item.list-group-item {
    border-bottom: 1px solid rgba(0, 0, 0, .2);
    margin-bottom: 7px;
    padding-bottom: 10px;
}

.mini-cart-item.list-group-item * {
    font-size: 16px;
    color: black;
}

.mini-cart-item.list-group-item span {
    color: #58a7af;
    font-weight: 600;
    padding-top: 10px;
    display: block;
}

.remove-item-icon {
    position: relative;
    display: inline-block;
    width: 24px; /* Anpassen, falls nötig */
    height: 24px; /* Anpassen, falls nötig */
    border: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23aaaaaa' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 1 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
  }

  div#popup-cart-summary * {
    font-size: 16px;
    color: black;
}

button.g-button__link.g-button__link-secondary.w-100 {
    background-color: #58a7af!important;
    color: white !important;
}

.loader {
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
  }

  @keyframes spin {
    to { transform: rotate(360deg); }
  }

  .modalbody-inner {
    display: flex;
    gap: 30px;
    align-items: center;
}

.modal-dialog {
    width: 90vw;
    max-width: 800px;
}

.modalbody-inner-img {
    flex-basis: 40%;
}

.modalbody-inner-description {
    flex-basis: 60%;
}

#productModalLabel {
    font-size: 30px;
    font-weight: 600;
    color: black;
    margin-bottom: 10px;
}

p#productModalDescription {
    line-height: 1.2;
}

/* #modalAddToCartBtn {
    line-height: 32px;
} */

.g-button__link.shop_button {
    line-height: 32px;
}

.g-button__link.g-button__link-shop {
    background-color: var(--shop-color) !important;
    color: white !important;
}

/* .modal-footer {
    justify-content: space-between;
} */

.g-button__link.shop_button.alt-button {
    background-color: var(--primary-color)!important;
    color: #fff!important;
}

div#productModal .btn-close::before {
    content: "×";
    font-size: 30px;
    color: black;
}

.g-page__boxproduct {
    padding: clamp(80px, 6vw, 100px) 0 0 0;
}

.g-page__boxproduct .g-page__box {
    padding-top: 0px;
}

.list-style-custom ul {
    list-style: disc;
    padding-left: 22px;
    margin-bottom: 20px;
}

.product-layout blockquote {
    padding-bottom: 6rem;
}

h1 {
    font-size: clamp(30px, 5vw, 50px);
    color: black;
    margin-bottom: 20px;
}

.product-shortdescription {
    margin-bottom: 50px;
}

.product-info {
    display: flex;
    align-items: flex-start;  
    margin: 0 0 10px;
    flex-wrap: wrap;
  }
  
  .product-info .label {
    flex: 0 0 150px;  
    font-weight: bold;
  }
  
  .product-info .content {
    flex: 1;
    line-height: 1.4;
  }

  .btn-close {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
    font-size: 30px;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s, color 0.3s;
    z-index: 1060;
}

button#modalViewDetailsBtn {
    display: inline-block;
    color: black;
    margin-top: 20px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

button#modalViewDetailsBtn:hover {
    opacity: .8;
}

.my-product-swiper {
    width: 100%;
    /* height: 100%; */
    /* aspect-ratio: 1 / 2;
    max-height: 50vh;          */
  }
  
  .my-product-swiper .swiper-wrapper {
    align-items: center;
  }
  
  .my-product-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .my-product-swiper .swiper-slide {
    height: auto;
  }
  
  .my-product-swiper .swiper-button-prev,
  .my-product-swiper .swiper-button-next {
    width: 36px;
  }
  .my-product-swiper .swiper-button-prev:after,
  .my-product-swiper .swiper-button-next:after, 
  .my-product-swiper .swiper-button-prev:after,
  .my-product-swiper .swiper-button-next:after
   {
    background-color: #151e29;
    color: #fff;
    content: "";
    width: 100%;
    height: 76px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 13px;
  }
  .my-product-swiper .swiper-button-prev {
    left: var(--swiper-navigation-sides-offset, 0px);
  }
  .my-product-swiper .swiper-button-prev:after {
    background-image: url("../icons/arrow-left.svg");
  }
  .my-product-swiper .swiper-button-next {
    right: var(--swiper-navigation-sides-offset, 0px);
  }
  .my-product-swiper .swiper-button-next:after {
    background-image: url("../icons/arrow-right.svg");
  }

  .my-product-swiper .swiper-pagination-bullet-active {
    opacity: var(--swiper-pagination-bullet-opacity, 1);
    background: #151e29;
}

  .my-product-swiper {
    padding: 0 1.5rem; 
    box-sizing: border-box;
    margin-bottom: clamp(10px, 3vw, 75px);
  }

  .my-product-swiper {
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  /* Desktop: 4 Kacheln */
@media (min-width: 992px) {
    .my-product-swiper .swiper-slide {
      flex: 0 0 auto;
      width: calc((100% - 3 * 16px) / 4);
      /* 1.5rem Padding links+rechts + 3 x spaceBetween */
    }
  }
  /* Tablet: 3 Kacheln */
  @media (min-width: 768px) and (max-width: 991px) {
    .my-product-swiper .swiper-slide {
      width: calc((100% - 2 * 16px) / 3);
    }
  }
  /* Mobile: 2 Kacheln oder 1 */
  @media (min-width: 576px) and (max-width: 767px) {
    .my-product-swiper .swiper-slide {
      width: calc((100% - 1 * 16px) / 2);
    }
  }
  @media (max-width: 575px) {
    .my-product-swiper .swiper-slide {
      width: calc(100%);
    }
  }
  

@media (max-width: 575px) {

    .product-info {
        margin-bottom: 20px;
    }

    .product-info > span {
        flex-basis: 100% !important;
    }

    .modal-dialog {
        width: 96vw;
    }
    .modalbody-inner {
        flex-wrap: wrap;
    }

    .modalbody-inner > div {
        flex-basis: 100%;
    }

    .modal-footer > button {
        width: 100%;
    }
}
