/*
 Theme Name:   SeifenSue
 Theme URI:    https://generatepress.com
 Description:  GeneratePress child theme for SeifenSue
 Author:       Alexander Stingl
 Author URI:   https://www.lifeit.at
 Template:     generatepress
 Version:      1.0
*/
/* Fonts: Montserrat is loaded locally via GeneratePress font manager (fonts/Montserrat-VariableFont_wght.latin.woff2) */

strong {
  font-weight: 600;
}

#page {
  min-height: calc(100vh - 554px);
}

.top-bar {
  border-bottom: 1px solid rgb(220, 220, 220);
  font-weight: 500;
}

/* Position Nav next to logo */
.nav-float-right #site-navigation {
  margin-left: 40px;
}

/* Move menu-bar-items to the right */
.inside-header .menu-bar-items {
  margin-left: auto;
}

.inside-header nav#site-navigation {
  flex-grow: 1;
}

/* Navigation Stuff */
.main-navigation .menu-bar-item > a {
  padding-left: 10px;
  padding-right: 10px;
}

.bi-person-fill {
  margin-bottom: -2px;
}

/*
.site-header {
	border-bottom: 1px solid #dadae9;
}
*/

/****************** Buttons ******************** */

/* .woocommerce a.button, */
.button.product_type_simple,
button.single_add_to_cart_button,
button.wc-block-components-checkout-place-order-button,
.wc-block-components-button,
.wp-block-button__link,
.woocommerce-button,
.woocommerce-Button
 {
  border-radius: 6px !important;
  font-weight: 600 !important;
  padding: 10px 40px !important;
}

/* Button Text color */
.wc-block-components-button__text {
  color: var(--base-3)
}

div.quantity > a,
div.quantity > input.qty,
.woocommerce a.button {
  border-radius: 6px !important;
}
/****************** Mini Cart ******************** */
.wc-mini-cart {
  width: 350px !important;
}

.woocommerce-mini-cart__buttons a {
  width: calc(50% - 1px) !important;
}

#wc-mini-cart {
  box-shadow: 15px 15px 15px rgba(0, 0, 0, 0.4);
}

#wc-mini-cart,
#wc-mini-cart .button,
#wc-mini-cart img {
  border-radius: 10px;
}

#wc-mini-cart .woocommerce-mini-cart-item a {
  font-size: 16px;
}

.wc-gzd-cart-info {
  font-weight: 400;
  font-size: 13px;
  padding-top: 8px;
  margin-bottom: 0; 
}

.woocommerce-mini-cart-item .quantity .wc-gzd-cart-info {
  display: none;
}



/* ********************Sidebar and Filters***************** */

.sidebar .widget {
  margin-bottom: 0;
}

.facet-wrap {
  font-size: 15px;
  margin-bottom: 28px;
}

.facet-label {
  font-weight: bold;
  margin-bottom: 6px;
  font-size: 15px;
}

.facetwp-counter {
  font-size: 13px;
}

/* .widget select {
  width: 100%;
  font-size: 16px;
} */

#filter-button {
  width: 100%;
  height: 50px;
  position: fixed;
  bottom: -50px;
  left: 0;
  background-color: var(--accent);
  color: var(--base-3);
  display: flex; /* Enable flexbox on the parent */
  justify-content: center; /* Center horizontally */
  align-items: center;
  text-transform: uppercase;
  font-size: 15px;
  font-weight: 600;
  z-index: 300;
  opacity: 0;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  visibility: hidden;
}

#filter-close {
  display: none;
}

/* Product Filter overlay */
#filter-overlay {
  position: fixed;
  opacity: 0; /* Start hidden */
  visibility: hidden; /* Hide from view */
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 100001;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

#filter-overlay.active {
  opacity: 1; /* Show overlay */
  visibility: visible; /* Make visible */
}

/* **********************Forms ***************************/

/* Woocommerce Product Sort dropdown */
.woocommerce-ordering select {
  border-radius: 10px;
}

/* ********************** Woocommerce General ***************************/



.woocommerce span.onsale {
  border-radius: 10px !important;
}

/* Button spacing in my account - order list */
.woocommerce table.my_account_orders .button {
	margin-bottom: 10px;
}

/* ********************** Woocommerce Messages ***************************/
.woocommerce-alert,
.woocommerce-error,
.woocommerce-message {
  border-radius: 10px;
  /* opacity: 50%; */
  border-left: none !important;
  /* border: 1px solid var(--accent); */
  font-size: 15px;
  /* text-transform: uppercase; */
  font-weight: 600;
}

/* ********************** Woocommerce Archives ***************************/

.inside-wc-product-image img {
  transition: all 0.3s ease-in-out;
}

.inside-wc-product-image img:hover {
  transform: scale(1.05);
  /* transition: all 0.3s ease-in-out; */
}

/* ********************** Single Product Page ***************************/

.product_title {
  margin-bottom: 15px;
}

.single-product h2 {
  font-size: 27px;
}

.entry-summary .price {
  font-size: 1.1em !important;
  margin-bottom: 15px;
}

.product p.wc-gzd-additional-info {
  margin-bottom: 0.2rem !important;
}

.price.price-unit.smaller.wc-gzd-additional-info {
  font-weight: 400;
  font-size: 0.85em;
}

.woocommerce-product-details__short-description {
  padding-top: 20px;
}

/* Überschrift "Sicherheitshinweise" ausblenden für Inhaltsstoffe */
.wc-gzd-product-safety-instructions-heading {
  display: none;
}

/* Hide SKU in product meta for variable products */
.product-type-variable .product_meta .sku_wrapper {
    display: none !important;
}

/* Variationen zurücksetzen ausblenden */
a.reset_variations {
	display: none !important;
}

/* Variationen dropdown styling */
.woocommerce div.product form.cart .variations th.label {
	vertical-align: middle !important;
	text-align: left;
	padding-left: 0;
}

.woocommerce div.product p.in-stock {
  font-weight: bold;
  color: #5B7D4A;
}

.woocommerce div.product p.out-of-stock {
  font-weight: bold;
  color: var(--accent-3);
}

.product .product_meta {
  padding-top: 20px;
}

/* .woocommerce div.product .woocommerce-tabs .panel {
  padding: 0 20px;
} */

.shariff-headline {
  font-weight: 600;
  font-size: 18px;
  margin: 15px 0 10px 0;
}

.up-sells {
  /* margin-top: 60px; */
  border-top: 1px solid var(--accent-2);
  padding-top: 40px;
}

/* =========================
   DESKTOP / BASE TAB STYLES
   ========================= */

/* Tabs container */
.woocommerce div.product .woocommerce-tabs ul.tabs {
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  margin: 0 0 .5rem;
  display: flex;
  gap: 2rem;
  position: relative;
}

/* Baseline divider under tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--base-2);
}

/* Remove Woo defaults on individual tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  margin: 0;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
}

/* Tab links */
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  padding: .75rem 0;
  color: #7a7e82;
  border: 0;
  background: none;
  position: relative;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;          /* helps avoid odd underline behavior */
  width: auto;
}

/* Active tab */
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: #222;
  font-weight: 700;
}

/* Active underline */
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 6px;
  background: var(--accent);
  border-radius: 3px;
}

/* Content panel box */
.woocommerce div.product .woocommerce-tabs .panel {
  border: 1px solid #e7e9ee;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  background: #f9fafb;
}

/* =========================
   ACCORDION STRUCTURE (DESKTOP)
   Keep wrappers present so desktop panels still show the box
   ========================= */

/* Make the accordion wrapper layout-transparent on desktop */
.woocommerce div.product .woocommerce-tabs .wc-acc-group {
  display: contents;
}

/* Hide only the accordion toggle buttons on desktop */
.woocommerce div.product .woocommerce-tabs .wc-acc-toggle {
  display: none;
}

/* =========================
   MOBILE (≤ 768px): ACCORDION
   ========================= */
@media (max-width: 768px) {
  /* Hide the tab row completely on mobile */
  .woocommerce div.product .woocommerce-tabs ul.tabs {
    display: none !important;
  }

  /* Hide underline if any tab somehow remains active */
  .woocommerce div.product .woocommerce-tabs ul.tabs li.active a:after {
    display: none !important;
    content: none !important;
  }

 .woocommerce div.product .woocommerce-tabs .panel {
    margin: 0 !important;
  }

  /* Accordion group card */
  .woocommerce div.product .woocommerce-tabs .wc-acc-group {
    display: block;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 10px;
    margin: 0 0 .5rem;
    overflow: hidden;
    background: #fff;
  }

  /* Accordion toggle (heading) */
  .woocommerce div.product .woocommerce-tabs .wc-acc-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: .9rem 1rem;
    background: #fff;
    border: 0;
    cursor: pointer;
    font-weight: 700;
    color: #222;
    text-align: left;
  }

  /* Chevron indicator */
  .woocommerce div.product .woocommerce-tabs .wc-acc-toggle::after {
    content: "▾";
    transition: transform .2s ease;
    line-height: 1;
      font-size: 1.5rem;   /* bigger chevron */
  margin-left: .5rem;  /* a little breathing room */
  color: var(--accent);
  }
  .woocommerce div.product .woocommerce-tabs .wc-acc-group.is-open .wc-acc-toggle::after {
    transform: rotate(180deg);
    color: var(--accent-3);   /* accent color when open */
  }

  /* Accordion panel body */
  .woocommerce div.product .woocommerce-tabs .wc-acc-panel {
    display: block;
    border-top: 1px solid rgba(0,0,0,.08);
    background: #f9fafb;
    padding: 1.1rem 1.25rem;
  }

  /* Collapsed state */
  .woocommerce div.product .woocommerce-tabs .wc-acc-panel[hidden] {
    display: none !important;
  }
}











/* ********************** Woocommerce Cart Page ***************************/

/* Cart ist leer Icon */
.wc-block-cart__empty-cart__title.with-empty-cart-icon::before {
  background-color: var(--accent-2) !important;
}

/* Fix missing + sign on cart page  */
/* WooCommerce Blocks quantity buttons: replace glyphs */
.wc-block-components-quantity-selector__button--plus,
.wc-block-components-quantity-selector__button--minus {
  position: relative;
  font-size: 0 !important; /* hide the full-width glyph */
}

.wc-block-components-quantity-selector__button--plus::after,
.wc-block-components-quantity-selector__button--minus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -55%);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.wc-block-components-quantity-selector__button--plus::after {
  transform: translate(-50%, -59%);
}

/* Actual symbols */
.wc-block-components-quantity-selector__button--plus::after  { content: "+"; }
.wc-block-components-quantity-selector__button--minus::after { content: "−"; }  /* or "−" (U+2212) */
/* END Fix missing + sign on cart page  */

/* **********************   Kasse  ***************************/
.wc-block-components-order-summary .wc-block-components-order-summary-item__description p {
  display: none;
}

.wp-block-woocommerce-checkout {
  padding-top: 0 !important;
}

.wc-block-components-button {
  width: 100% !important;
}

a.wc-block-checkout__login-prompt {
  margin-top: -75px !important;
  font-size: 1.2em !important;
  font-weight: 600 !important;
  padding: 4px 12px;
  color: #fff !important;
  background-color: #478192;
  border-radius: 6px;
cursor: pointer !important;
}

/* ********************** Termine ***************************/
.termine-list {
  display: grid;
  gap: 0;             /* spacing handled via separator */
  margin: 0;
  padding: 0 20px;
}

/* Each item  */
.termine-item {
  margin: 0;
  padding-bottom: 40px;    
}

/* Separator with equal space above & below */
.termine-item + .termine-item {
  border-top: 1px solid #e5e5e5;
  padding-top: 40px;      
  margin-top: 0;
}

/* Prevent first/last child margins from leaking into separator spacing */
.termine-item > *:first-child { margin-top: 0; }
.termine-item > *:last-child  { margin-bottom: 0; }

/* 50/50 grid */
.termine-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;   
  row-gap: 16px;
  align-items: start;
}

/* Media column: plain <img>, no forced scaling */
.termine-media { background: none; }
.termine-img {
  width: auto;
  max-width: 330px;   
  height: auto;
  display: block;
  margin: 0 auto;
}

.termine-fallback {
  opacity: 0.15;
}

/* Title */
.termine-title {
  margin: 0 0 16px;
  font-size: 28px;
  line-height: 1.3;
}

/* Blocks (Datum, Zeit, Wo) with stacked content */
.termine-block {
  margin: 16px 0;
}
.termine-block strong {
  display: block;
  margin-bottom: 0;

}

/* Repeaters */
.termine-list-plain {
  margin: 0;
  padding: 0;
  list-style: none;
}
.termine-list-plain li {
  margin: 0;
  padding: 0;
}

/* Location respects line breaks */
.termine-location {
  white-space: pre-line;
  margin: 0;
}

/* Hinweis + link spacing */
.termine-hinweis { margin-top: 16px; font-weight: bold; }
.termine-cta     { margin: 16px 0; }

/* Responsive */
@media (max-width: 820px) {
  .termine-grid { grid-template-columns: 1fr; column-gap: 0; row-gap: 16px; }
  .termine-img  { max-width: 100%; } /* allow full width on small screens */
  .termine-list { padding: 0 5px }
}




/* ********************** Footer***************************/
.site-info {
  position: relative;
  z-index: 15;
}

.footer-list {
  list-style-type: none;
  margin: 0;
}

.footer-list li {
  margin-bottom: 10px;
}

.footer-list li a {
  font-weight: 600;
  color: var(--base-3);
}

.footer-list li a:hover {
  color: var(--accent-2);
}

/* **********************Media Queries ****************************************/

@media (max-width: 1200px) {
  .navigation-branding {
    margin-left: 0 !important;
  }
}

@media (max-width: 1020px) {
  #left-sidebar {
    height: 100vh;
    width: 265px;
    position: fixed;
    z-index: 1000001;
    top: 0;
    left: 0;
    background-color: #fff;
    overflow-x: hidden;
    overflow-y: scroll;
    transform: translateX(-100%);
    transition: none; /* Disable transition by default */
  }

  .inside-left-sidebar {
    padding-left: 10px;
  }

  /* Only apply the transition when the sidebar is being toggled */
  #left-sidebar.toggling {
    transition: transform 0.3s ease-in-out;
  }

  #left-sidebar.active {
    transform: translateX(0);
  }

  #filter-button {
    bottom: 0;
    visibility: visible;
    opacity: 1;
  }

  #filter-close {
    width: 100%;
    padding: 10px 0;
    background-color: #fff;
    text-align: right;
    display: block;
    /* position: fixed; */
  }

  .inside-left-sidebar > :first-child {
    padding: 0 10px;
  }

  #filter-button {
    width: 100%;
    height: 60px;
    position: fixed;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    color: var(--base-3);
    display: flex; /* Enable flexbox on the parent */
    justify-content: center; /* Center horizontally */
    align-items: center;
    text-transform: uppercase;
    font-size: 15px;
    font-weight: 600;
    z-index: 10;
    cursor: pointer;
  }

  .site-content .content-area {
    width: 100%;
  }

  .one-container.left-sidebar .site-main {
    margin: 0 auto;
  }


}

@media (max-width: 767px) {
.inside-top-bar {
  padding: 2px 15px;
}
.wc-block-components-radio-control__option-layout {
  width: 50% !important;
  font-size: 16px;
}
	.related.products {
		margin-top: 30px;
	}
  }

  @media (max-width: 768px) {
.woocommerce .woocommerce-ordering {
  margin-bottom: 20px !important;
}

  }


/* Show sticky add-to-cart only on mobile */
@media (min-width: 768px) {
  #wc-sticky-cart-panel {
    /* display: none !important; */
    overscroll-behavior: none; 
    margin-bottom: -20px;
  }

  .woocommerce-form-login {
    max-width: 40%;
  }
}