.btn-primary-spmgsnipreview {
    background-color: #cacaca !important;
    color: #212529 !important;
}

.mm_menu_content_title {
    padding: 0 10px;
    text-transform: none;
}

@media (min-width: 768px) {
    .layout_layout1 .ets_mm_megamenu_content {
        background: #fff !important;
    }
}

.layout_layout1 .ets_mm_megamenu_content {
    border-bottom: 1px solid #585858;
    border-top: px solid var(--bs-gray-200);
}

.mm_menus_li > a {
    font-weight: normal;
}

.header-top .form-select option {
    text-align: left;
}

@media (min-width: 768px) {
    .ratio-homeSlider {
        --bs-aspect-ratio: 30%;
    }
}

.header-top {
    background-color: #A4897A;
}

.mm_menu_content_title {
    min-height: 40px;
}

@media (min-width: 768px) {
    .header-bottom__row {
        min-height: 5rem;
    }
}

.header-top .form-select {
    background-color: #A4897A;
}

.header-top__mid p {
    margin: 0;
}

.header-block--active .header-block, .header-block--active .header-block__icon {
    color: #A4897A;
}

.header a:not(.dropdown-item):not(.btn):hover, .header a:not(.dropdown-item):not(.btn):hover i {
    color: #fff;
}

#header #_desktop_ps_searchbar.ms-auto {
    margin-left: 0 !important;
        margin-right: 660px !important;
}

@media only screen and (min-width: 992px) {
    #search_widget {
        min-width: 25.5rem;
    }
}

.rich-text .h1, .rich-text h1 {
    font-size: 2.0rem;
}

.rich-text .h2, .rich-text h2 {
    font-size: 1.5rem;
}

.rich-text .h3, .rich-text h3 {
    font-size: 1.2rem;
}

.section-title {
    color: #A4897A;
    font-size: 1.8rem;
    font-weight: 800;
}

:root {
  --bs-primary: #A4897A;
  --bs-link-color: #A4897A;
  --bs-link-hover-color: #4c4c4c;
}

a {
    color: rgb(0 0 0);
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #A4897A;
    --bs-btn-border-color: #000;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #4c4c4c;
    --bs-btn-hover-border-color: #4c4c4c;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #A4897A;
    --bs-btn-active-border-color: #adadad;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #A4897A;
    --bs-btn-disabled-border-color: #adadad;
}

.btn-outline-primary {
    --bs-btn-color: #A4897A;
    --bs-btn-border-color: #A4897A;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #A4897A;
    --bs-btn-hover-border-color: #A4897A;
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #A4897A;
    --bs-btn-active-border-color: #A4897A;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
    --bs-btn-disabled-color: #A4897A;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #A4897A;
    --bs-gradient: none;
}

#emailsubscription_anchor_displayFooterBefore {
  --bs-tertiary-bg-rgb: 180, 180, 180;
  --bs-bg-opacity: 1;
}

.footer .footer__main {
    background: #A4897A;
}

.footer .copyright {
    color: #fff;
    font-size: 13px;
}

.page-product .product__tax-label {
    font-size: .875rem;
    color: var(--bs-gray-600);
}

.page-product .product__name {
    margin-bottom: 1rem;
}

.page-product .product__current-price {
    font-size: 1.3rem;
}

.product-available {
  color: green !important;
}

.alert-info {
    --bs-alert-color: var(--header-color);
    --bs-alert-bg: #A4897A;
    --bs-alert-border-color: #c5c5c5;
    --bs-alert-link-color: var(--header-color);
}

.gsniprev-block-16 {
    max-width: 100%;
}

.abfd_block {
    border-radius: 5px;
}

.gsniprev-block-16 {
    border-radius: 5px;
}

.btn-primary-spmgsnipreview:hover, .btn-primary-spmgsnipreview:focus, .btn-primary-spmgsnipreview:active, .btn-primary-spmgsnipreview.active, .btn-primary-spmgsnipreview {
    border-radius: 5px !important;
}

.btn-spmgsnipreview {
    border-radius: 5px;
}

.wishlist-button-add {
    box-shadow: none !important;
    border: 1px solid #ced4da !important;
}

.page-product .product__images__modal-opener {
  box-shadow: none !important;
  border: 1px solid #ced4da !important;
}

.payment__list img.flex-shrink-0.me-2 {
  width: 60px !important;
  max-width: 60px !important;
  height: auto !important;
}

@media (max-width: 1400px) {
  .container {
    max-width: 100% !important;
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (max-width: 767px) {
  .carousel .carousel-item img {
    height: 220px !important;
    object-fit: contain !important;
    width: 100% !important;
    background: #fff;
  }
}


/* =========================================================
   Start Pagespeed Optimierungen
   ========================================================= */
   /* =========================================================
      1) NUR Versand-Leiste stabil halten (gezielt!)
      ========================================================= */
   .header-banner {
     min-height: 40px;
     display: flex;
     align-items: center;
     justify-content: center;
   }

   .header-banner p {
     margin: 0;
     display: flex;
     align-items: center;
     gap: 6px;
   }

/* =========================================================
   2) Produktbilder und Produktkarten stabilisieren
   ========================================================= */
.product-miniature .thumbnail-container,
.products .thumbnail-container,
.js-product-miniature .thumbnail-container,
article .thumbnail-container {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}

.product-miniature .thumbnail-container img,
.products .thumbnail-container img,
.js-product-miniature .thumbnail-container img,
article .thumbnail-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* =========================================================
   3) Platz für Produkt-Titel reservieren
   verhindert Springen durch unterschiedlich lange Titel
   ========================================================= */
.product-miniature .product-title,
.products .product-title,
.js-product-miniature .product-title,
article .product-title {
  min-height: 2.8em;
  line-height: 1.4;
}

/* =========================================================
   4) Preis / Badge / Vorschau etwas stabiler machen
   ========================================================= */
.product-miniature .product-price-and-shipping,
.products .product-price-and-shipping,
.js-product-miniature .product-price-and-shipping {
  min-height: 24px;
}

.product-miniature .product-flags,
.products .product-flags,
.js-product-miniature .product-flags {
  min-height: 28px;
}

/* Nur echte Content-/Produktbilder als Block */
.product-miniature img,
.thumbnail-container img,
.carousel-item img,
.picture img,
.product-cover img,
.product-images img,
.category-cover img,
.cms img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* =========================================================
   6) Cookie-Leiste möglichst ohne Nachschieben
   ========================================================= */
.lgcookieslaw,
.lgcookieslaw-container,
.lgcookieslaw-link-container,
[class*="cookie"] {
  box-sizing: border-box;
}

/* Wenn die Cookie-Leiste unten eingeblendet wird, lieber fix */
.lgcookieslaw,
.lgcookieslaw-container {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
}

/* =========================================================
   7) Sections mit Produkt-Slidern / Listen stabiler machen
   ========================================================= */
.featured-products,
.product-list,
.products,
.section-products {
  min-height: 200px;
}

.header-banner img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

/* Mittleren Bereich der oberen Leiste korrekt vertikal zentrieren */
.header-top__mid {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center;
}

/* Inhalt darin ebenfalls sauber ausrichten */
.header-top__mid p {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Schweizerkreuz-Bild korrekt ausrichten */
.header-top__mid img {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

/* Fonts sofort anzeigen (kein Layout Shift / kein Blocking) */
@font-face {
  font-display: swap;
}

.lgcookieslaw,
.lgcookieslaw * {
  font-family: inherit !important;
}

@media (min-width: 768px) {
    .header-bottom .navbar-brand .logo {
        max-width: 13rem;
    }
}

:root {
  --bs-primary-rgb: 164, 137, 122;
}

.h1, .h2, .h3, .h4, .h5, .h6, .left-block__title, .right-block__title, h1, h2, h3, h4, h5, h6 {
    color: var(--bs-gray-800);
}

.footer-block a {
    color: #fff !important;
    font-size: 14px;
    line-height: 14px;
}

#footer .ps-contactinfo__infos {
    color: #fff;
    line-height: 18px;
    font-size: 14px;
}

/* Mobile: Plus / Minus anzeigen */
@media (max-width: 991px) {
  .ps-categorytree .left-block__title-link::after {
    content: "+";
    display: block !important;
    margin-left: auto;
    font-size: 20px;
    font-weight: bold;
  }

  .ps-categorytree .left-block__title-link:not(.collapsed)::after {
    content: "−";
  }
}

/* Desktop: kein Plus / Minus */
@media (min-width: 992px) {
  .ps-categorytree .left-block__title-link::after {
    content: none !important;
    display: none !important;
  }
}

@media (min-width: 992px) {
  #main-category-tree {
    display: block !important;
  }
}

.category-tree__list {
    row-gap: 0px;
}

.category-tree__list[data-depth="0"]>.category-tree__item>.category-tree__item-header .category-tree__item-link {
    font-weight: 400;
    line-height: normal;
}

@media (min-width: 1200px) {
    .page-product .product__actions, .page-product .product__add-to-cart-container, .page-product .product__availability, .page-product .product__customization, .page-product .product__description-short, .page-product .product__discounts, .page-product .product__manufacturer, .page-product .product__minimal-quantity, .page-product .product__name, .page-product .product__pack, .page-product .product__prices, .page-product .product__variants {
        margin-block-end: 1rem;
    }
}

.product__availability {
    margin-top: 20px;
}

@media (min-width: 1200px) {
    .page-product .product__additional-info {
        gap: 0rem;
    }
}

.page-product .product__price {
    font-size: 1.3rem;
}

:root {
    --bs-primary-text-emphasis: #A4897A;
}

#center-column > div.cart-grid.row > div.cart-grid__aside.col-lg-4 > div > div.cart-summary.js-cart-summary > div > div.cart-summary__actions.checkout.js-cart-detailed-actions > div > a {
  color: #fff;
}

@media (min-width: 1200px) {
  .layout-left-column .products,
  .layout-right-column .products,
  #products .products {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  #products .product-miniature,
  #products .js-product-miniature {
    width: auto !important;
    max-width: none !important;
  }

  #products .thumbnail-container,
  #products .product-miniature img {
    width: 100%;
    max-width: 100%;
  }
}

@media (min-width: 1200px) {
  #products .product-miniature .card {
    position: relative !important;
  }

  #products .product-miniature .product-miniature__image-container {
    position: relative !important;
  }

  #products .product-miniature .wishlist-button-add {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    transform: none !important;

    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 20 !important;
  }
}


#content.page-content--customer .account-menu.account-menu--main > a[href*="spmgsnipreview"] > .link-item {
    min-width: max-content;
}
