/* ==========================================================
   BT WooCommerce Product Loop CSS
   Zweck:
   - Produktkarten in Shop, Archiven und Related Products
   - CTA, Preisinfos, Heliumhinweis und Kartenlayout
   - keine mehrfach konkurrierenden Button-Regeln
   ========================================================== */

/* ==========================================================
   LOOP CTA
   Desktop:
   - „Produkt ansehen“
   - erst bei Hover oder Tastaturfokus sichtbar

   Mobile/Touch:
   - „Details“
   - dauerhaft sichtbar
   ========================================================== */

.woocommerce ul.products li.product a.button.bt-loop-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  width: 100%;
  margin-top: auto;

  white-space: nowrap;
}

.woocommerce ul.products li.product a.button.bt-loop-cta::after {
  content: "→";
  display: inline-block;

  margin-left: 4px;

  font-size: 16px;
  font-weight: 400;
  line-height: 1;

  transform: rotate(-45deg);
  transition: transform 0.18s ease;
}

.woocommerce ul.products li.product:hover a.button.bt-loop-cta::after,
.woocommerce ul.products li.product:focus-within a.button.bt-loop-cta::after {
  transform: rotate(-45deg) translateX(2px) translateY(-1px);
}

.bt-loop-cta__label--mobile {
  display: none;
}





@media (min-width: 768px) and (max-width: 1090px) {
  .bt-loop-cta__label--desktop {
    display: none;
  }

  .bt-loop-cta__label--mobile {
    display: inline;
  }

  .wc-helium-note__inkl {
    display: none;
  }
}




@media (max-width: 767px) {
  .bt-loop-cta__label--desktop {
    display: none;
  }

  .bt-loop-cta__label--mobile {
    display: inline;
  }

  .woocommerce ul.products li.product a.button.bt-loop-cta {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}


/* Einspaltiger Produktloop: lange CTA-Beschriftung */
@media (max-width: 500px) {
  .bt-loop-cta__label--desktop {
    display: inline;
  }

  .bt-loop-cta__label--mobile {
    display: none;
  }
}



/* ==========================================================
   FALLBACK FÜR ÄLTERE „PRODUKT ANSEHEN“-LINKS

   Greift nur, falls ein bestehender Loop-Link noch keine
   Klasse .bt-loop-cta besitzt, aber bt_pool in der URL trägt.
   ========================================================== */

@media (hover: hover) and (pointer: fine) {
  .woocommerce
    ul.products
    li.product
    a.button[href*="bt_pool="]:not(.bt-loop-cta) {
    width: 90% !important;

    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);

    text-align: center !important;

    transition:
      opacity 0.15s ease,
      transform 0.15s ease,
      visibility 0.15s ease;
  }

  .woocommerce
    ul.products
    li.product:hover
    a.button[href*="bt_pool="]:not(.bt-loop-cta),
  .woocommerce
    ul.products
    li.product:focus-within
    a.button[href*="bt_pool="]:not(.bt-loop-cta) {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

@media (hover: none), (pointer: coarse) {
  .woocommerce
    ul.products
    li.product
    a.button[href*="bt_pool="]:not(.bt-loop-cta) {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}




/* ==========================================================
   PRODUKTTAGS UND TITEL
   ========================================================== */

.bt-loop-tag {
  margin-bottom: 4px;

  font-size: 0.85rem;
  font-weight: 400;
}

.bt-loop-tag__link {
  color: #414544;

  font-size: 11px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.bt-loop-tag__link:hover {
  color: #cb0e70;
}

/* ==========================================================
   PRODUKTTITEL: HÖHE UND CLAMP
   ========================================================== */

.woocommerce-loop-product__title {
  margin-bottom: 10px;

  color: #414544;

  font-family: "Inter", Arial, sans-serif;
  font-size: 17px !important;
  font-weight: 400;
  line-height: 1.3;
}

.bt-loop-title-link {
  display: -webkit-box;
    -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
    line-clamp: 3;
  overflow: hidden;

  min-height: 66.3px;
  max-height: 66.3px;

  color: #414544;
  text-decoration: none;



}

.bt-loop-title-link:hover {
  color: #cb0e70;
  text-decoration: underline;
}

/* ==========================================================
   PREIS, MWST. UND VERSAND
   ========================================================== */

.woocommerce ul.products li.product .price {
  display: inline;

  margin-bottom: 0;

  color: #414544;
  font-size: 25px;
  font-weight: 600;
}

.woocommerce ul.products li.product .wc-gzd-additional-info.tax-info,
.wc-gzd-additional-info.wc-gzd-additional-info-loop.tax-info {
  display: inline;

  margin: 0;

  font-size: 0.7em;
  opacity: 0.75;
}

.wc-gzd-additional-info.wc-gzd-additional-info-loop.shipping-costs-info {
  margin-top: 0;

  font-size: 0.8em;
  opacity: 0.75;
}

.wc-gzd-additional-info.wc-gzd-additional-info-loop.shipping-costs-info a {
  margin-top: 0;

  color: #414544;

  font-size: inherit;
  text-decoration: underline !important;
}

.wc-gzd-price-info,
.woocommerce-price-suffix {
  color: #777;

  font-size: 0.75rem;
}

/* ==========================================================
   HELIUMHINWEIS
   ========================================================== */

.wc-helium-note {
flex-direction: column;
align-items: stretch;
gap: 7px;

  box-sizing: border-box;
  width: 100%;

  margin-top: 12px;
  margin-bottom: 14px;
  padding: 9px 12px;

  border: 0.5px solid #4b4b50;
    border-left: 3px solid #4b4b50;
  border-radius: 10px;

  background: #fff;


  font-size: 0.8rem;
  line-height: 1.55;
  font-weight: 600;

  cursor: default !important;
}

.wc-helium-note__link {
  position: relative;

  color: #414544;

  font-weight: 600;
  text-decoration: none !important;
}

.wc-helium-note__link:hover,
.wc-helium-note__link:focus {
  color: #414544;
  text-decoration: none !important;
}


.wc-helium-note__item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
}

.wc-helium-note__check {
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  margin-top: 2px;
  position: relative;
}

.wc-helium-note__check::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 0;
  width: 8px;
  height: 14px;
  border: solid #43815c;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}




@media (min-width: 901px) and (max-width: 929px) {
  .wc-helium-note {
    padding-left: 8px;
    padding-right: 8px;
  }
}





@media (max-width: 767px) {
  .wc-helium-note {
    gap: 8px;

    padding: 7px 10px;

    border-left-width: 2px;
    border-radius: 8px;

    font-size: 1rem;
    line-height: 1.55;
  }

  .wc-helium-note__link {
    font-weight: 500;
  }
}

@media (min-width: 501px) and (max-width: 510px) {
  .wc-helium-note {
    font-size: 0.95rem;
  }
}

/* ==========================================================
   PRODUKTKARTE
   ========================================================== */

.woocommerce ul.products.columns-3 li.product,
.woocommerce-page ul.products.columns-3 li.product {
  display: flex;
  flex-direction: column;

  box-sizing: border-box;
  /* height: 100%; */

  padding: 6px;

  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
}


/* Produktloop – dezente Trennlinie unter dem Bild */
.woocommerce ul.products.bt-archive-product-loop li.product
  > a.woocommerce-LoopProduct-link {
  display: block;
  border-bottom: 1px solid var(--bt-border-06);
}


.bt-loop-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;

  padding: 8px 10px 10px;
}

/* ==========================================================
   PRODUKTKARTE: DESKTOP-HOVER
   ========================================================== */

@media (hover: hover) and (pointer: fine) {
  .woocommerce ul.products li.product {
    transition:
      transform 0.18s ease,
      box-shadow 0.18s ease;
  }

  .woocommerce ul.products li.product:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  }
}

/* ==========================================================
   SHOP LOOP – EIGENE KATEGORIEN + EIGENER PRODUKTLOOP
   ========================================================== */

/* kategorie Style */
.bt-archive-categories {
  margin: 0 0 32px;
}

.bt-archive-categories__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.bt-archive-category {
  min-width: 0;
}

.bt-archive-category__link {
  color: inherit;
  text-decoration: none;
}

.bt-archive-category__image {
  display: block;
  width: 100%;
  height: auto;
}


.bt-archive-category__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.30;
  min-height: 0;

  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}



/* ==========================================================
   ARCHIV-PRODUKTLOOP – EIGENES GRID
   ========================================================== */

@media (min-width: 769px) {

  .woocommerce ul.products.bt-archive-product-loop {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 10px;
    row-gap: 10px;
  }

  .woocommerce ul.products.bt-archive-product-loop::before,
  .woocommerce ul.products.bt-archive-product-loop::after {
    display: none;
  }

  .woocommerce ul.products.bt-archive-product-loop > li.product {
    float: none;
    width: auto;
    margin: 0;
    clear: none;
  }
}



/* ==========================================================
   ARCHIV-PRODUKTLOOP – MOBILES 2-SPALTEN-GRID
   ========================================================== */

@media (max-width: 768px) {

  .woocommerce ul.products.bt-archive-product-loop {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 8px;
    row-gap: 12px;
  }

  .woocommerce ul.products.bt-archive-product-loop::before,
  .woocommerce ul.products.bt-archive-product-loop::after {
    display: none;
  }

  .woocommerce ul.products.bt-archive-product-loop > li.product {
    float: none;
    clear: none;
    width: auto;
    margin: 0;
    min-width: 0;
  }
}



/* ==========================================================
   SHOP – SCHMALE MOBILGERÄTE
   Kategorien und Produkte einspaltig bis 500px
   ========================================================== */

@media (max-width: 500px) {

  /* Kategoriekarten */
  .bt-archive-categories__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Produktkarten */
  .woocommerce ul.products.bt-archive-product-loop {
    grid-template-columns: minmax(0, 1fr);
  }
}




/* ==========================================================
   SIDEBAR – ZULETZT ANGESEHENE PRODUKTE
   ========================================================== */
#woocommerce_recently_viewed_products-2 {
  background: var(--base-2);
  border: 1px solid #c7d1e2;
  border-radius: 6px;
  padding: 16px 20px;
  box-sizing: border-box;
}


#woocommerce_recently_viewed_products-2 .widget-title {
  color: #e63289;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  margin-bottom: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid #c7d1e2;
}

  #woocommerce_recently_viewed_products-2
  .product_list_widget {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  #woocommerce_recently_viewed_products-2
  .product_list_widget > li {
    display: flow-root;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  #woocommerce_recently_viewed_products-2
  .product_list_widget > li > a {
    display: block;
    margin: 0 0 5px;
    text-decoration: none;
  }


#woocommerce_recently_viewed_products-2
.product_list_widget > li > a > img {
  float: right;
  display: block;
  width: 84px;
  height: 84px;
  min-width: 0;
  margin: 0 0 8px 12px;
  object-fit: contain;
}



#woocommerce_recently_viewed_products-2
.product-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;

  color: #414544;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}


  #woocommerce_recently_viewed_products-2
  .woocommerce-Price-amount {
    font-size: 15px;
    font-weight: 600;
    color: #414544;
  }

  #woocommerce_recently_viewed_products-2
  .wc-gzd-additional-info {
    margin: 3px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: #777;
  }


#woocommerce_recently_viewed_products-2
.tax-info {
  display: block;
  margin: 3px 0 0;
  clear: none;
}


  #woocommerce_recently_viewed_products-2
  .shipping-costs-info {
    white-space: nowrap;
  }

  #woocommerce_recently_viewed_products-2
  .shipping-costs-info a {
    display: inline;
    font-size: inherit;
    font-weight: 400;
    color: inherit;
  }






/* ==========================================================
   ZULETZT ANGESEHEN – SCHMALE DESKTOP-SIDEBAR
   Titel bleibt neben dem Bild.
   Preis und Pflichtangaben beginnen unter dem Bild.
   ========================================================== */




@media (min-width: 901px) and (max-width: 1300px) {

  #woocommerce_recently_viewed_products-2
  .product_list_widget > li > a > img {
    width: 64px;
    height: 64px;
  }
}
