:root{
    --e-global-color-primary:   var(--brand-primary);
    --e-global-color-secondary: var(--brand-secondary);
}


.woocommerce ul.products li.product.ls-product-item {
  position: relative;
  overflow: hidden
}

.ls-product-img-wrap {
  position: relative
}

/* Zweites Bild */
.ls-product-img-wrap.ls-has-hover .ls-secondary-image {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity .25s ease;
  z-index: 1
}

.ls-product-img-wrap.ls-has-hover:hover .ls-secondary-image {
  opacity: 1
}

.woocommerce ul.products li.product a img {
  margin: 0;
}

/* Größe-Swatches */
.ls-size-swatches {

  padding: 4px 6px;
  display: flex;
  gap: 4px;
  position: absolute;
  left: 8px;
  background: rgba(255, 255, 255, .45);
  backdrop-filter: blur(4px);
  font-size: 12px;
  font-weight: 600;
  transition: opacity .15s ease;
  z-index: 4;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  bottom: 0px;
  padding: 16px !important;
  margin: 0px !important;
  border-radius: 0px !important;
  font-family: var(--e-global-typography-accent-font-family);
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  flex-direction: column;
}

.ls-size-swatches-list {
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: row;
  gap: 8px;
  justify-content: center;
  align-items: center;
}
.ls-swatches-hr {
width: 200px;
color: var(--e-global-color-primary);
opacity: 0.1;
border-width: 1px;
}

.ls-size-swatches li {
  padding: 0 4px
}

.ls-product-img-wrap.ls-has-hover .ls-size-swatches {
  opacity: 0
}

.ls-product-img-wrap.ls-has-hover:hover .ls-size-swatches {
  opacity: 1
}


/* Container positionieren */
.ls-badges {
  position: absolute;
  bottom: 8px;
  left: 8px;
  display: flex;
  flex-direction: row;
  gap: 4px;
  /* Abstand zwischen mehreren Badges */
  z-index: 3;
}

.ls-badge-new,
.ls-badge-bestseller {
  /* Basis-Styles, Farben später im Child-Theme anpassen */
  background: #fff;
  color: var(--e-global-color-primary);
  font: 600 12px/1 var(--e-global-typography-primary-font-family);
  padding: 2px 6px;
  border-radius: 3px;
}

.ls-sale-badge {
  /* Basis-Styles, Farben später im Child-Theme anpassen */
  background: var(--e-global-color-accent);
  color: #fff;
  font: 500 12px/1 var(--e-global-typography-primary-font-family);
  padding: 2px 6px;
  border-radius: 3px;
}

/* Wishlist-Icon */
.ls-wishlist-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #fff;
  border-radius: 50%;
  padding: 6px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  opacity: .8;
  transition: opacity .15s ease;
  z-index: 3
}

.ls-product-img-wrap:hover .ls-wishlist-icon {
  opacity: 1
}

.ls-wishlist-icon .ti-heart {
  color: var(--e-global-color-primary);
}

.ls-product-info {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  padding: 0 !important;
}

/* Titel */
.ls-title-truncate {
  color: var(--e-global-color-primary);
  font-family: var(--e-global-typography-primary-font-family), sans-serif;
  font-size: clamp(14px, 1rem, 18px);
  line-height: 1.3;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden
}

/* Preis */
.ls-price {
  font-weight: 500 !important;
  display: block;
  color: var(--e-global-color-accent);
  font-family: var(--e-global-typography-primary-font-family), sans-serif;
}

.ls-price ins {
  font-weight: 500 !important;
  text-decoration: none;
  color: var(--e-global-color-accent)
}

.ls-price del {
  color: var(--e-global-color-497f867) !important;
  font-weight: 500;
  text-decoration: line-through;
  opacity: 1 !important;
  margin-left: 4px;
}

/* Sicherheit: Quick‑Add‑Buttons ausblenden */
.ls-product-item .add_to_cart_button {
  display: none !important
}

/*Product Archive*/

/* --- WooCommerce-Produktgrid: exakt 10 px Abstand zwischen allen Kacheln --- */

/* Außenränder kompensieren – dadurch entsteht real 10 px zwischen zwei Items */
.woocommerce ul.products,
.woocommerce-page ul.products {
  margin: -5px;
  /* gleiche Zahl wie unten, aber negativ */
}

/* Jeweils 5 px rundherum → 5 px + 5 px = 10 px Distanz */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  margin: 5px;
}

.woocommerce ul.products li.product {
  width: calc(25% - 10px);
  /* Spaltenbreite um die 2 × 5 px Margins kürzen */
}


/*-----------------------------------------------------------------------SINGLE PRODUCT----------------------------------------------------------------------------------------------------------*/

/* ------------------------------------------------------------------
   Single Product – Base Layout (aligned to v3 template)
   ------------------------------------------------------------------ */

.custom-single-product {
  --gap: 2rem;
}

.custom-single-product .product-grid {
  display: flex;
  gap: var(--gap);
}

/* Gallery 60% – Info 40% (Desktop) */
.custom-single-product .product-gallery {
  flex: 0 0 60%;
}

.custom-single-product .product-info {
  flex: 1 1 40%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-family: var(--e-global-typography-text-font-family), sans-serif !important;
  align-items: center;
}

/* Mobile ≤ 768 px → Stack */
@media (max-width: 768px) {

  .custom-single-product .product-gallery,
  .custom-single-product .product-info {
    flex: 0 0 100%;
  }

  .custom-single-product .product-grid {
    flex-direction: column;
  }
}

/* ------------------------------------------------------------------
   Labels / Badges
   ------------------------------------------------------------------ */
.product-labels {
  display: flex;
  gap: 4px;
}

.product-labels .label {
  font: 600 12px/1 var(--e-global-typography-primary-font-family, sans-serif);
  padding: 2px 6px;
  border-radius: 3px;
  background: #fff;
  color: var(--e-global-color-primary, #000);
  text-transform: uppercase;
  letter-spacing: .2px;
}

.label.sale {
  background: var(--e-global-color-accent, #e60023);
  color: #fff;
}

/* ------------------------------------------------------------------
   Title / Subtitle / Price
   ------------------------------------------------------------------ */
.product-title {
  color: var(--e-global-color-primary, #000);
  font-family: var(--e-global-typography-primary-font-family, sans-serif);
  font-size: clamp(20px, 2vw + 1rem, 32px);
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  text-align: center;
}

.product-subtitle {
  margin: 0;
  font-size: 14px;
  text-align: center;
  color: var(--e-global-color-497f867, #777);
}

/* price shown above utils */
.product-price-top {
  text-align: center;
}

.product-price-top .amount {
  font-weight: 500;
  color: var(--e-global-color-accent, #e60023);
}

.product-price-top del {
  margin-left: 4px;
  color: var(--e-global-color-497f867, #777);
}

/* ------------------------------------------------------------------
   Rating / Wishlist / Share row
   ------------------------------------------------------------------ */
.product-utils {
  display: flex;
  gap: .75rem;
  justify-content: center;
  align-items: center;
}

.product-rating {
  display: flex;
  align-items: center;
}

.btn-wishlist,
.btn-share {
  background: var(--e-global-color-764183d);
  color: var(--e-global-color-text);
  border: none;
  border-radius: 50%;
  padding: 8px;
  line-height: 1;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .05);
  transition: filter .15s ease;
}

.btn-wishlist:hover,
.btn-share:hover,
.btn-wishlist:active,
.btn-share:active,
.btn-wishlist:focus,
.btn-share:focus {
  background: var(--e-global-color-764183d);
  color: var(--e-global-color-text);
  filter: brightness(0.97);
}

/* ------------------------------------------------------------------
   Variant thumbnails (color choices)
   ------------------------------------------------------------------ */
.product-variant-thumbs {
  display: flex;
  gap: .5rem;
  justify-content: center;
}

.product-variant-thumbs img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid transparent;
}

.product-variant-thumbs img.selected {
  border-color: var(--e-global-color-primary, #000);
}

.product-color-name {
  font-size: 14px;
  text-align: center;
  margin: .25rem 0 0;
}

/* ------------------------------------------------------------------
   Attributes / Add-to-Cart
   ------------------------------------------------------------------ */
.product-purchase {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.single_variation_wrap {
  margin-bottom: 1rem;
}

.variations tbody {
  display: flex;
  flex-direction: column;
  gap: 1rem;

}

.variations tr {
  display: flex;
  flex-direction: column;
}

.variations th.label {
  padding: 0px;
}

.variations th,
.variations td {
  background-color: transparent !important;
  justify-content: center;
  display: flex;
  border: none !important;
  flex-direction: column;
  align-items: center;
}

/* Add to cart button center align */
.single_add_to_cart_button {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

/* ------------------------------------------------------------------
   Payment messages & icons
   ------------------------------------------------------------------ */
.payment-message,
.klarna-message {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  font-size: 14px;
  text-align: center;
}

.payment-icons {
  display: flex;
  gap: .5rem;
  justify-content: center;
  align-items: center;
}

.payment-icons img {
  height: 28px;
  width: auto;
  filter: grayscale(100%);
  opacity: .9;
  transition: opacity .2s ease;
}

.payment-icons img:hover {
  opacity: 1;
}

/* ------------------------------------------------------------------
   Shipping Carousel (basic)
   ------------------------------------------------------------------ */
.shipping-carousel {
  position: relative;
  overflow: hidden;
  background: #f7f7f7;
  border-radius: 4px;
  padding: .75rem 1rem;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.shipping-carousel .slide {
  white-space: nowrap;
}

/* ------------------------------------------------------------------
   Look section (upsells)
   ------------------------------------------------------------------ */
.product-look {
  margin-top: 1.5rem;
}

/* ------------------------------------------------------------------
   Tabs
   ------------------------------------------------------------------ */
.product-tabs-buttons {
  display: flex;
  gap: .5rem;
  margin-top: 2rem;
}

.product-tabs-buttons .tab-btn {
  flex: 1;
  background: #fff;
  border: 1px solid var(--e-global-color-primary, #000);
  padding: .65rem 1rem;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.product-tabs-buttons .tab-btn.active,
.product-tabs-buttons .tab-btn:hover {
  background: var(--e-global-color-primary, #000);
  color: #fff;
}

.product-tabs-content {
  margin-top: 1.5rem;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.product-info-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  justify-content: center;
  align-items: center;
  margin-top: 4rem;
}

.rtwpvs .rtwpvs-terms-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.rtwpvs-terms-wrapper.button-variable-wrapper {
  padding: 0.5rem !important;
  border: 1px solid #ebebeb;
  border-radius: 3px;
}

.selected span.rtwpvs-term-span.rtwpvs-term-span-button {
  color: white !important;
}

.rtwpvs-term.rtwpvs-button-term.selected,
.rtwpvs-term.rtwpvs-button-term.selected:hover {
  background-color: #333333 !important;
  box-shadow: none !important;
}

.rtwpvs-term.rtwpvs-button-term:hover {
  background-color: #333333 !important;
  box-shadow: none !important;
}

.rtwpvs-term.rtwpvs-button-term {
  width: 3rem !important;
  padding: 0.5rem 1rem !important;
}


.rtwpvs .rtwpvs-terms-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.rtwpvs-term.rtwpvs-button-term {
  box-shadow: none !important;
}

a.reset_variations {
  display: none;
}

th.label {
  display: flex;
  justify-content: center;
  flex-direction: row;
  gap: 8em;
}

.woocommerce-variation-add-to-cart.variations_button.woocommerce-variation-add-to-cart-enabled .quantity {
  display: none;
}

button.single_add_to_cart_button.button.alt {
  background-color: var(--e-global-color-accent);
  border-radius: 4px;
}

button.single_add_to_cart_button.button.alt {
  background-color: var(--e-global-color-accent);
  border-radius: 4px;
  padding: 16px 24px;
  font-size: 18px;
}