/* Produktarchive */
/* =========================
   Woo Kategorie Navi
   ========================= */

.rw-cat-nav{
  width: 100%;
}

/* Elementor setzt Shortcodes in Flex-Containern sonst auf ihre Inhaltsbreite.
 * Die Quick-Navi soll die gesamte verfügbare Spaltenbreite nutzen. */
.elementor-widget-shortcode:has(.rw-cat-nav){
  flex: 1 1 100%;
  width: 100%;
  max-width: none;
}

.rw-cat-nav-list{
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(8px, 1vw, 14px);
  align-items: flex-start;
  justify-content: flex-start;
}

.rw-cat-nav-item{
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  max-width: 100px;
  text-decoration: none;
  color: inherit;
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0;
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}

.rw-cat-nav-item:hover{
  transform: translateY(-2px);
}

/* Product archive breadcrumbs */
#breadcrumbs a{
  transition: opacity .2s ease;
}

/* Produktkategorie-Archiv: bewusst kompakter als die allgemeinen Seiten-Headlines. */
body.tax-product_cat .elementor-element-056b7b5 .elementor-heading-title,
body.tax-product_cat .elementor-element-18a4f8a .elementor-heading-title{
  font-size: clamp(32px, 3vw, 46px);
  line-height: 1.12;
}

/* Die transparente H1-Ebene ist nur eine optische Überlagerung. */
body.tax-product_cat .elementor-element-18a4f8a .elementor-heading-title{
  font-family: "Noto Sans Display", sans-serif;
  font-weight: 500;
  letter-spacing: -0.01em;
}

body.tax-product_cat .elementor-element-41e13d6 .elementor-heading-title{
  color: #403a38 !important;
  font-size: clamp(22px, 2.1vw, 32px);
  line-height: 1.2;
  text-transform: none !important;
}

#breadcrumbs a:hover,
#breadcrumbs a:focus-visible{
  opacity: .7;
}

#breadcrumbs .breadcrumb_last{
  font-weight: 500;
}

/* =========================
   Kachel
   ========================= */

.rw-cat-nav-circle{
  --cat-bg: #d9ddd3;
  width: 100%;
  max-width: 92px;
  aspect-ratio: 1 / 1;
  border-radius: 14px; /* angepasst */
  background: var(--cat-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10%; /* angepasst */
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.rw-cat-nav-item:hover .rw-cat-nav-circle,
.rw-cat-nav-item.is-active .rw-cat-nav-circle{
  transform: translateY(-1px) scale(1.02);
}

.rw-cat-nav-item.is-active .rw-cat-nav-circle{
  box-shadow: 0 5px 14px rgba(0,0,0,0.10);
}

/* =========================
   Icon
   ========================= */

.rw-cat-nav-icon{
  --rw-cat-nav-icon-color: #403a38;
  width: 56%;
  height: 56%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rw-cat-nav-icon.is-icon-light{
  /* Globale Elementor-Farbe „Light“, nicht reines Weiß. */
  --rw-cat-nav-icon-color: var(--e-global-color-6fbf720, #f6f5f0);
}

.rw-cat-nav-mask{
  width: 100%;
  height: 100%;
  display: block;
  background-color: var(--rw-cat-nav-icon-color);
  -webkit-mask: var(--rw-cat-nav-icon-mask) center / contain no-repeat;
  mask: var(--rw-cat-nav-icon-mask) center / contain no-repeat;
}

.rw-cat-nav-icon img{
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Fallback */
.rw-cat-nav-fallback-dot{
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(0,0,0,.2);
  display: block;
}

/* Desktop: Text ausblenden */
.rw-cat-nav-label{
  display: none;
}

/* =========================
   Tooltip
   ========================= */

.rw-cat-nav-item::after{
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%) translateY(8px);
  background: rgba(34,34,34,.96);
  color: #fff;
  padding: 8px 11px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 30;
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
}

.rw-cat-nav-item::before{
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  width: 9px;
  height: 9px;
  background: rgba(34,34,34,.96);
  transform: translateX(-50%) translateY(8px) rotate(45deg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 29;
}

.rw-cat-nav-item:hover::after,
.rw-cat-nav-item:hover::before,
.rw-cat-nav-item:focus-visible::after,
.rw-cat-nav-item:focus-visible::before{
  opacity: 1;
  visibility: visible;
}

.rw-cat-nav-item:hover::after,
.rw-cat-nav-item:focus-visible::after{
  transform: translateX(-50%) translateY(0);
}

.rw-cat-nav-item:hover::before,
.rw-cat-nav-item:focus-visible::before{
  transform: translateX(-50%) translateY(0) rotate(45deg);
}

/* =========================
   Mobile
   ========================= */

@media (max-width: 767px){

  .rw-cat-nav-list{
    display: flex;
    flex-wrap: nowrap;
    gap: clamp(6px, 2vw, 10px);
    width: 100%;
    justify-content: space-between;
  }

  .rw-cat-nav-item{
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: none;
    align-items: center;
  }

  .rw-cat-nav-circle{
    width: 100%;
    max-width: none;
    aspect-ratio: 1 / 1;
    margin-inline: auto;
    border-radius: clamp(8px, 3vw, 14px);
  }

  .rw-cat-nav-icon{
    width: 54%;
    height: 54%;
  }

  /* Tooltip auf Touch aus */
  .rw-cat-nav-item::before,
  .rw-cat-nav-item::after{
    display: none !important;
  }

  /* Die mobile Quick-Navi bleibt rein visuell – Bezeichnungen stehen im Tooltip auf Desktop. */
  .rw-cat-nav-label{
    display: none;
  }
}



.rw-mega-menu-cat-image{
  width: 100%;
  height: clamp(180px, 22vw, 300px);
  border-radius: 28px;
  overflow: hidden;
}

.rw-mega-menu-cat-image img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
