/* =========================================
   Stoffiking – Single Product Layout + Gallery
   Klassen: .sf-*
========================================= */

/* Page Wrapper */
.sf-wrap{
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 20px 40px;
}

/* Breadcrumbs */
.sf-breadcrumbs{
  font-weight: 700;
  color: #2f6f67;
  opacity: .9;
  margin: 8px 0 18px;
}
.sf-breadcrumbs a{
  color: #2f6f67;
  text-decoration: none;
}
.sf-breadcrumbs a:hover{ text-decoration: underline; }

/* Cards */
.sf-card{
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
}

/* =========================================
   MAIN PRODUCT GRID: Gallery left, Summary right
========================================= */
.sf-product-grid{
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

@media (max-width: 950px){
  .sf-product-grid{
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* =========================================
   Gallery (left card)
========================================= */
.sf-gallery{
  padding: 16px;
}

/* Inner gallery grid */
.sf-gallery-grid{
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.sf-gallery-main{ min-width: 0; } /* wichtig bei CSS grid */

/* Thumbs */
.sf-thumb-swiper{
  height: 520px;
}
.sf-thumb-swiper .swiper-slide{
  opacity: .55;
  cursor: pointer;
  transition: opacity .15s ease;
}
.sf-thumb-swiper .swiper-slide-thumb-active{ opacity: 1; }

.sf-thumb-swiper img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  background: #f3faf8;
  border: 2px solid transparent;
}

.sf-thumb-swiper .swiper-slide-thumb-active img{
  border-color: #66CDAA;
}

/* Main image sizing: not gigantic */
.sf-main-swiper{ width: 100%; }

.sf-main-swiper .swiper-slide{
  display: flex;
  align-items: center;
  justify-content: center;
}

.sf-main-swiper img{
  width: 100%;
  height: auto !important;
  max-height: 520px;     /* <- begrenzt die Größe */
  object-fit: contain;
  display: block !important;
  border-radius: 14px;
  background: #f3faf8;
  border: 1px solid rgba(47,111,103,.12);
}

/* Smaller arrows */
.sf-gallery .swiper-button-prev,
.sf-gallery .swiper-button-next{
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.78);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(0,0,0,.10);
  color: #2f6f67;
}
.sf-gallery .swiper-button-prev:after,
.sf-gallery .swiper-button-next:after{
  font-size: 16px;
  font-weight: 900;
}

/* Mobile: thumbs under main */
@media (max-width: 768px){
  .sf-gallery-grid{
    grid-template-columns: 1fr;
  }

  .sf-thumb-swiper{
    height: auto;
    margin-top: 12px;
  }

  .sf-main-swiper img{
    max-height: 60vh;
  }

  .sf-gallery .swiper-button-prev,
  .sf-gallery .swiper-button-next{
    display: none;
  }
}

/* =========================================
   Summary (right card)
========================================= */
.sf-summary{
  padding: 18px;
}

.sf-title{
  margin: 0 0 10px;
  font-size: 34px;
  font-weight: 900;
  color: #1f2b2a;
  line-height: 1.1;
}

/* Price nicer */
.sf-price{
  margin: 10px 0 18px;
  font-size: 26px;
  font-weight: 900;
  color: #1f2b2a;
}

/* Variations / selects */
.sf-summary .variations{
  margin: 10px 0 16px !important;
}
.sf-summary .variations td,
.sf-summary .variations th{
  padding: 8px 0 !important;
}
.sf-summary select{
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.10);
  padding: 10px 12px;
}

/* Qty */
.sf-summary .quantity .qty{
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.10);
  padding: 10px 12px;
}

/* Add to cart button */
.sf-summary .single_add_to_cart_button,
.sf-summary .button{
  background: #66CDAA !important;
  color: #fff !important;
  border: none !important;
  border-radius: 14px !important;
  padding: 14px 18px !important;
  font-weight: 900 !important;
  letter-spacing: .4px;
  box-shadow: 0 10px 20px rgba(0,0,0,.12);
  width: 100%;
}
.sf-summary .single_add_to_cart_button:hover,
.sf-summary .button:hover{
  background: #5bbf9d !important;
}

/* Optional: sticky summary */
@media (min-width: 951px){
  .sf-summary{
    position: sticky;
    top: 110px;
  }
}

/* Tabs + Related spacing (optional) */
.sf-tabs{ margin-top: 22px; overflow: hidden; }
.sf-related{ margin-top: 26px; }

/* =========================================
   WooCommerce Tabs als echte Reiter (Stoffiking)
========================================= */

.sf-tabs .woocommerce-tabs{
  margin-top: 0;
}

/* Tab-Leiste */
.sf-tabs .woocommerce-tabs ul.tabs{
  list-style: none !important;
  margin: 0 !important;
  padding: 12px 12px 0 !important;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: linear-gradient(180deg, #e9f5f1 0%, #f3faf8 100%);
  border-bottom: 1px solid rgba(0,0,0,.06);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

.sf-tabs .woocommerce-tabs ul.tabs::before,
.sf-tabs .woocommerce-tabs ul.tabs::after{
  display: none !important;
  content: none !important;
}

/* einzelne Tabs */
.sf-tabs .woocommerce-tabs ul.tabs li{
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}

/* Blendet produkt sicherheit aus bei den produkten */
.product_safety_tab{
	display: none;
}


/* Tab-Link */
.sf-tabs .woocommerce-tabs ul.tabs li a{
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 10px 14px !important;
 border-top-left-radius: 12px !important;
border-top-right-radius: 12px !important;
border-bottom-left-radius: 0 !important;
border-bottom-right-radius: 0 !important;

  font-weight: 900 !important;
  color: #2f6f67 !important;
  text-decoration: none !important;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(47,111,103,.10);
}

/* Active + Hover */
.sf-tabs .woocommerce-tabs ul.tabs li.active a,
.sf-tabs .woocommerce-tabs ul.tabs li a:hover{
  background: rgba(102,205,170,0.22) !important;
  border-color: rgba(102,205,170,0.6) !important;
  color: #1a4943 !important;
}

/* Panel (Inhalt) */
.sf-tabs .woocommerce-tabs .panel{
  margin: 0 !important;
  padding: 16px 18px 18px !important;
  background: #fff;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
}

/* Entfernt evtl. störende WC-Rahmen */
.sf-tabs .woocommerce-tabs .panel > h2{
  margin-top: 0;
}
/* SKU / Artikelnummer ausblenden */
.product_meta .sku_wrapper{
  display: none !important;
}
/* ==============================
   Variations: Label-Abstand + :
============================== */

.sf-summary .variations{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 14px; /* vertikaler Abstand zwischen Zeilen */
}

.sf-summary .variations tr{
  display: flex;
  align-items: center;
  gap: 16px; /* Abstand Label -> Feld */
}

.sf-summary .variations th{
  width: 120px;              /* genug Platz für "Größe:" / "Motiv:" */
  padding: 0 !important;
  font-weight: 900;
  color: #1f2b2a;
}

.sf-summary .variations th label::after{
  content: ":";
  margin-left: 2px;
  opacity: .85;
}

.sf-summary .variations td{
  flex: 1;
  padding: 0 !important;
}

/* Mobile: untereinander */
@media (max-width: 600px){
  .sf-summary .variations tr{
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .sf-summary .variations th{
    width: auto;
  }
	  .sf-gallery-thumbs{
	  max-width: 40%;
}
}
/* ==============================
   Motiv Swatches
============================== */

.sf-motiv-swatches{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sf-motiv-swatch{
  appearance: none;
  border: 2px solid rgba(47,111,103,.12);
  background: #fff;
  border-radius: 14px;
  padding: 10px 10px 8px;
  cursor: pointer;
  width: 92px;
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
  transition: transform .12s ease, border-color .12s ease;
}

.sf-motiv-swatch:hover{
  transform: translateY(-1px);
  border-color: rgba(102,205,170,.8);
}

.sf-motiv-swatch.is-active{
  border-color: #66CDAA;
  box-shadow: 0 10px 22px rgba(0,0,0,.10);
}

.sf-motiv-swatch img{
  width: 100%;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  background: #f3faf8;
  display: block;
}

.sf-motiv-swatch span{
  display: block;
  text-align: center;
  margin-top: 8px;
  font-weight: 800;
  color: #1f2b2a;
  font-size: 14px;
  line-height: 1.1;
}

/* Motiv-Select ausblenden (bleibt fürs Formular da) */
.sf-summary select.sf-hide-select{
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
