/* =========================================================
   WJ Shop — Modernes Styling für Schmuck-Shop
   Scope: body.wj-shop-page (Shop, Kategorien, Farben & Formen)
   Styling wie Startseiten-Block (.wj-woo)
   ========================================================= */

/* =========================================================
   0) OceanWP: Shop full width (Sidebar ausblenden)
   ========================================================= */
body.wj-shop-page #right-sidebar,
body.wj-shop-page #left-sidebar,
body.wj-shop-page #sidebar,
body.wj-shop-page .widget-area { display: none !important; }
body.wj-shop-page #primary,
body.wj-shop-page .content-area { width: 100% !important; max-width: 100% !important; }
body.wj-shop-page .woocommerce,
body.wj-shop-page .woocommerce-page { width: 100% !important; max-width: 100% !important; }
body.wj-shop-page #content-wrap {
  max-width: 1200px !important;
  margin-inline: auto !important;
  padding-inline: 24px !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box !important;
  border: none !important;
}

/* Graue Linie rechts entfernen (OceanWP-Sidebar-Divider an #primary) */
body.wj-shop-page #primary,
body.wj-shop-page #primary.content-area,
body.wj-shop-page .content-area.clr {
  border: none !important;
  border-right: none !important;
  border-left: none !important;
  outline: none !important;
  box-shadow: none !important;
}
body.wj-shop-page #content-wrap,
body.wj-shop-page #wrap,
body.wj-shop-page #outer-wrap,
body.wj-shop-page #main,
body.wj-shop-page main,
body.wj-shop-page .site-content,
body.wj-shop-page .container.clr {
  border: none !important;
  border-right: none !important;
}

/* OceanWP-Toolbar ausblenden */
body.wj-shop-page .oceanwp-toolbar {
  display: none !important;
}

/* Leiste oben (Sort + ANSICHT 12/24/ALLE) ausblenden */
body.wj-shop-page .woocommerce-result-count,
body.wj-shop-page .woocommerce-ordering,
body.wj-shop-page .view-title,
body.wj-shop-page .view-first,
body.wj-shop-page .view-second,
body.wj-shop-page [class*="view-first"],
body.wj-shop-page [class*="view-second"],
body.wj-shop-page [class*="view-title"],
body.wj-shop-page [class*="view-all"] {
  display: none !important;
}

/* Pagination ausblenden (Infinite Scroll) */
body.wj-shop-page .woocommerce-pagination {
  display: none !important;
}

/* =========================================================
   1) Layout — Filter links, Produkte rechts
   ========================================================= */
.wj-shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 60px) minmax(0, 1fr);
  gap: 0 24px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  transition: grid-template-columns .4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wj-shop-layout--filters-open {
  grid-template-columns: minmax(0, 275px) minmax(0, 1fr);
}

.wj-shop-filters-sidebar {
  position: relative;
  z-index: 5;
  overflow: visible;
  min-width: 0;
  pointer-events: auto;
}

.wj-shop-main {
  position: relative;
  z-index: 1;
  min-width: 0;
  width: 100%;
  overflow-x: hidden;
}

/* Produkt-Grid: Überlauf verhindern, damit keine Überlappung mit Filter-Sidebar */
body.wj-shop-page .wj-shop-main .products,
body.wj-shop-page .wj-shop-main ul.products {
  max-width: 100%;
  overflow: hidden;
}

/* Toolbar: Filter-Button + aktive Filter */
.wj-shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.wj-shop-filters__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  background: #fff;
  border: 1px solid rgba(15,23,42,.15);
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s ease;
}

.wj-shop-filters__toggle .wj-shop-filters__toggle-icon,
.wj-shop-filters__toggle svg {
  flex-shrink: 0;
  fill: currentColor;
}

.wj-shop-filters__toggle:hover {
  background: rgba(15,23,42,.04);
  border-color: rgba(15,23,42,.25);
}

.wj-shop-filters__toggle--open {
  background: #1f2937;
  color: #fff;
  border-color: #1f2937;
}

.wj-shop-filters__toggle--open:hover {
  background: #374151;
  border-color: #374151;
}

/* Etsy-Style: Button-Zustände (toggle-button-inactive / toggle-button-active) */
.toggle-button-active {
  background: #1f2937;
  color: #fff;
  border-color: #1f2937;
}
.toggle-button-active:hover {
  background: #374151;
  border-color: #374151;
}
.toggle-button-fixed-width {
  min-width: 140px;
}

/* Aktive Filter (Pills mit X) */
.wj-shop-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wj-shop-active-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #1f2937;
  background: var(--wj-shop-soft);
  border: 1px solid var(--wj-shop-border);
  border-radius: 999px;
  text-decoration: none;
  transition: all .15s ease;
}

.wj-shop-active-filter:hover {
  background: rgba(216,195,165,.2);
  border-color: var(--wj-shop-accent);
  color: #1f2937;
}

.wj-shop-active-filter span {
  margin-left: 2px;
  font-size: 16px;
  line-height: 1;
  opacity: .8;
}

/* =========================================================
   Sidebar-Filter — Icon-Strip (CodingLab-Style) immer sichtbar
   ========================================================= */
.wj-shop-filters {
  position: sticky;
  top: 24px;
  min-width: 60px;
  min-height: 200px;
  background: #fff;
  border: 1px solid var(--wj-shop-border);
  border-radius: var(--wj-shop-radius);
  overflow: visible;
  transition: min-width .4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wj-shop-filters__logo {
  overflow: visible;
}

.wj-shop-filters-sidebar--open .wj-shop-filters {
  min-width: 275px;
}

/* Logo-Bereich (Filter-Icon + Name) – klickbar zum Schließen */
.wj-shop-filters__logo {
  overflow: visible;
  height: 60px;
  min-height: 60px;
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 14px 28px 0 16px;
  border: none;
  border-bottom: 1px solid var(--wj-shop-border);
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: background .15s ease;
  box-sizing: border-box;
}

.wj-shop-filters__logo .wj-shop-filters__icon {
  flex-shrink: 0;
  color: var(--wj-shop-text);
  min-width: 28px;
  width: 24px;
  height: 24px;
  text-align: center;
  display: block;
  overflow: visible;
}

.wj-shop-filters__logo:hover {
  background: var(--wj-shop-soft);
}

.wj-shop-filters-sidebar--closed .wj-shop-filters__logo {
  justify-content: center;
  padding: 14px 24px 0;
}

.wj-shop-filters-sidebar--closed .wj-shop-filters__logo .wj-shop-filters__icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
}

.wj-shop-filters__logo-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--wj-shop-text);
  margin-left: 12px;
  white-space: nowrap;
  transition: opacity .3s ease;
  transition-delay: .1s;
}

/* Einklappen-Icon: nur auf Mobil sichtbar, wenn Panel offen */
.wj-shop-filters__close-icon {
  display: none;
  margin-left: auto;
  padding: 8px;
  color: var(--wj-shop-text);
}
.wj-shop-filters__close-icon svg {
  display: block;
}

.wj-shop-filters-sidebar--closed .wj-shop-filters__logo-name {
  opacity: 0;
  pointer-events: none;
  transition-delay: 0s;
  overflow: hidden;
  width: 0;
  margin: 0;
}

/* Nav-Links (Icon + Label pro Filter) */
.wj-shop-filters__nav {
  list-style: none;
  margin: 0;
  padding: 16px 0;
  overflow: auto;
}

.wj-shop-filters-sidebar--closed .wj-shop-filters__nav {
  overflow: visible;
}

.wj-shop-filters__section {
  position: relative;
  transition: background .2s ease;
}

.wj-shop-filters__section:hover {
  background: rgba(15,23,42,.04);
}

.wj-shop-filters__icon-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wj-shop-filters-sidebar--closed .wj-shop-filters__icon-link {
  justify-content: center;
}

.wj-shop-filters__section-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--wj-shop-text);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background .15s ease;
}

.wj-shop-filters__section-btn:hover {
  background: transparent;
}

.wj-shop-filters__icon {
  flex-shrink: 0;
  color: var(--wj-shop-text);
  min-width: 28px;
  text-align: center;
  line-height: 1;
}

.wj-shop-filters__icon--euro {
  font-size: 18px;
  font-weight: 600;
}

.wj-shop-filters__link-name {
  font-size: 15px;
  font-weight: 400;
  color: var(--wj-shop-text);
  margin-left: 12px;
  white-space: nowrap;
  transition: opacity .3s ease;
  transition-delay: .1s;
}

.wj-shop-filters-sidebar--closed .wj-shop-filters__link-name {
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  width: 0;
  margin: 0;
  transition-delay: 0s;
}

.wj-shop-filters__chevron {
  flex-shrink: 0;
  color: var(--wj-shop-muted);
  transition: transform .2s ease;
}

.wj-shop-filters-sidebar--closed .wj-shop-filters__chevron {
  display: none;
}

.wj-shop-filters__section[data-collapsed="true"] .wj-shop-filters__chevron {
  transform: rotate(0deg);
}

.wj-shop-filters__section[data-collapsed="false"] .wj-shop-filters__chevron {
  transform: rotate(180deg);
}

/* Sektion-Inhalt (Kategorien, Preis, Tags) */
.wj-shop-filters__section-content {
  padding: 0 16px 12px 56px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: transparent;
}

/* Preisfilter-Sektion: kompakt, weniger Abstand unten */
#section-preis {
  padding: 8px 16px 8px;
  align-items: center;
}

.wj-shop-filters__section[data-collapsed="true"] .wj-shop-filters__section-content {
  display: none;
}

.wj-shop-filters-sidebar--closed .wj-shop-filters__section-content {
  display: none !important;
}

/* Footer: Filter zurücksetzen */
.wj-shop-filters__footer {
  padding: 16px;
  border-top: 1px solid var(--wj-shop-border);
}

.wj-shop-filters-sidebar--closed .wj-shop-filters__footer {
  display: none;
}

.wj-shop-filters__reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--wj-shop-text);
  background: var(--wj-shop-soft);
  border: 1px solid var(--wj-shop-border);
  border-radius: 8px;
  text-decoration: none;
  transition: all .15s ease;
}

.wj-shop-filters__reset:hover {
  background: rgba(216,195,165,.2);
  border-color: var(--wj-shop-accent);
  color: var(--wj-shop-text);
}

.wj-shop-filters__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: var(--wj-shop-text);
  text-decoration: none;
  transition: color .15s ease;
}

.wj-shop-filters__link:hover {
  color: var(--wj-shop-accent);
}

.wj-shop-filters__link--active {
  font-weight: 600;
  color: var(--wj-shop-text);
}

.wj-shop-filters__count {
  font-size: 12px;
  font-weight: 600;
  color: var(--wj-shop-muted);
}

.wj-shop-filters__more {
  display: block;
  width: 100%;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--wj-shop-muted);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color .15s ease;
}

.wj-shop-filters__more:hover {
  color: var(--wj-shop-accent);
}

.wj-shop-filters__more-tags {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Farben & Formen (Tags): Suchfeld + Liste */
.wj-shop-filters__section-content--tags {
  flex-direction: column;
  gap: 10px;
  padding-left: 56px;
}

.wj-shop-filters__tag-search {
  width: 100%;
  max-width: 100%;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--wj-shop-text);
  background: var(--wj-shop-soft);
  border: 1px solid var(--wj-shop-border);
  border-radius: 8px;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.wj-shop-filters__tag-search::placeholder {
  color: var(--wj-shop-muted);
}

.wj-shop-filters__tag-search:focus {
  outline: none;
  border-color: var(--wj-shop-accent);
}

.wj-shop-filters__tags-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
  max-height: 280px;
  overflow-y: auto;
}

.wj-shop-filters__tags-no-results {
  margin: 0;
  font-size: 13px;
  color: var(--wj-shop-muted);
}

/* Preis-Filter — moderne State-of-the-Art-Version */
.wj-shop-filters__price-inner {
  padding: 0;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.wj-shop-filters__price-inner .widget_title {
  display: none;
}

.wj-shop-filters__price-inner .widget_price_filter {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  box-shadow: none;
}

/* Form: Slider + Input-Zeile */
.wj-shop-filters__price-inner .wj-price-filter {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.wj-shop-filters__price-inner .wj-price-filter__slider-wrap {
  width: 100%;
  padding: 6px 0;
}

.wj-shop-filters__price-inner .price_slider_wrapper {
  padding: 0;
  width: 100%;
}

.wj-shop-filters__price-inner .price_slider {
  margin: 0;
}

/* Schieberegler: moderner Track (flach, dezent) */
.wj-shop-filters__price-inner .ui-slider-horizontal,
.wj-shop-filters__price-inner .ui-widget-content,
.wj-shop-filters__price-inner .price_slider.ui-slider {
  border: none !important;
  background: rgba(15, 23, 42, 0.06) !important;
  height: 6px;
  border-radius: 999px;
  outline: none;
}

.wj-shop-filters__price-inner .ui-slider {
  position: relative;
  box-shadow: none;
}

.wj-shop-filters__price-inner .ui-slider:hover,
.wj-shop-filters__price-inner .ui-slider:focus {
  box-shadow: none;
  outline: none;
}

/* Ausgewählter Bereich: Akzent, weiche Kante */
.wj-shop-filters__price-inner .ui-slider .ui-slider-range {
  background: var(--wj-shop-accent);
  border-radius: 999px;
  border: none;
}

/* Regler-Handles: moderner runder Griff (borderless, weicher Schatten) */
.wj-shop-filters__price-inner .ui-slider .ui-slider-handle {
  width: 20px;
  height: 20px;
  top: 50%;
  margin-top: -10px;
  margin-left: -10px;
  background: #fff;
  border: none;
  border-radius: 50%;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 4px 12px rgba(15, 23, 42, 0.1),
    0 0 0 1px rgba(15, 23, 42, 0.04);
  cursor: grab;
  outline: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.wj-shop-filters__price-inner .ui-slider .ui-slider-handle:hover {
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.08),
    0 8px 20px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(15, 23, 42, 0.06);
  transform: scale(1.08);
}

.wj-shop-filters__price-inner .ui-slider .ui-slider-handle:focus,
.wj-shop-filters__price-inner .ui-slider .ui-slider-handle.ui-state-focus {
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.08),
    0 8px 20px rgba(15, 23, 42, 0.12),
    0 0 0 3px rgba(216, 195, 165, 0.35);
}

.wj-shop-filters__price-inner .ui-slider .ui-slider-handle:active {
  cursor: grabbing;
  transform: scale(1.05);
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.1),
    0 4px 14px rgba(15, 23, 42, 0.14);
}

/* Input-Zeile: Von – Bis mit €-Prefix */
.wj-shop-filters__price-inner .wj-price-filter__inputs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.wj-shop-filters__price-inner .wj-price-filter__row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.wj-shop-filters__price-inner .wj-price-filter__label {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.wj-shop-filters__price-inner .wj-price-filter__prefix {
  flex-shrink: 0;
  padding: 0 10px 0 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--wj-shop-muted);
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid var(--wj-shop-border);
  border-right: none;
  border-radius: 10px 0 0 10px;
  line-height: 2.5;
}

.wj-shop-filters__price-inner .wj-price-filter__input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--wj-shop-text);
  background: #fff;
  border: 1px solid var(--wj-shop-border);
  border-radius: 0 10px 10px 0;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wj-shop-filters__price-inner .wj-price-filter__label:first-of-type .wj-price-filter__input {
  border-radius: 0 10px 10px 0;
}

.wj-shop-filters__price-inner .wj-price-filter__input::placeholder {
  color: var(--wj-shop-muted);
  font-weight: 400;
}

.wj-shop-filters__price-inner .wj-price-filter__input:focus {
  outline: none;
  border-color: var(--wj-shop-accent);
  box-shadow: 0 0 0 3px rgba(216, 195, 165, 0.2);
}

.wj-shop-filters__price-inner .wj-price-filter__sep {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--wj-shop-muted);
}

/* Fallback: alter WC-Output (ohne Template-Override) */
.wj-shop-filters__price-inner .price_slider_amount .from,
.wj-shop-filters__price-inner .price_slider_amount .to,
.wj-shop-filters__price-inner .amount {
  font-weight: 600;
  color: var(--wj-shop-text);
}

.wj-shop-filters__price-inner .price_slider_amount__input {
  padding: 10px 14px;
  font-size: 14px;
  color: var(--wj-shop-text);
  background: #fff;
  border: 1px solid var(--wj-shop-border);
  border-radius: 10px;
  box-sizing: border-box;
}

.wj-shop-filters__price-inner .button {
  display: none;
}

/* Backdrop für Overlay (nur mobil aktiv) */
.wj-shop-filters-backdrop {
  display: none;
}

@media (max-width: 900px) {
  /* Mobil: Overlay von links, kein Icon-Strip sichtbar wenn geschlossen */
  .wj-shop-filters-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(15,23,42,.35);
    pointer-events: none;
    opacity: 0;
    transition: opacity .35s ease;
  }

  .wj-shop-filters-backdrop.wj-shop-filters-backdrop--visible {
    pointer-events: auto;
    opacity: 1;
  }

  body.wj-shop-filters-overlay-open {
    overflow: hidden;
  }

  .wj-shop-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .wj-shop-layout--filters-open {
    grid-template-columns: 1fr;
  }

  /* Mobil: schmaleres Panel (ca. 75 % Breite, max 280px) – UX: mehr Backdrop sichtbar lassen,
     Orientierung behalten, Material Design mobile drawer max 280dp. */
  .wj-shop-filters-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9999;
    width: min(280px, 75vw);
    max-width: 280px;
    height: 100vh;
    min-width: 0;
    margin: 0;
    transform: translateX(-100%);
    transition: transform .35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    overflow-y: auto;
    box-shadow: 4px 0 24px rgba(0,0,0,.2);
  }

  .wj-shop-layout--filters-open .wj-shop-filters-sidebar {
    transform: translateX(0);
    pointer-events: auto;
  }

  /* Einklappen-Icon im Menü sichtbar (nur mobil bei offenem Panel) */
  .wj-shop-filters-sidebar--open .wj-shop-filters__close-icon {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .wj-shop-filters {
    position: static;
    height: 100%;
    min-width: 0;
    border-radius: 0;
    border: none;
  }

  /* Mobil: ausgeklappte Listen begrenzen, scrollbar statt endlos */
  .wj-shop-filters__section[data-collapsed="false"] .wj-shop-filters__section-content {
    max-height: 220px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Design Tokens */
body.wj-shop-page {
  --wj-shop-text: #1f2937;
  --wj-shop-muted: rgba(31,41,55,.72);
  --wj-shop-border: rgba(15,23,42,.10);
  --wj-shop-soft: rgba(15,23,42,.03);
  --wj-shop-accent: #d8c3a5;
  --wj-shop-radius: 20px;
  --wj-shop-shadow: 0 18px 60px rgba(15,23,42,.08);
}

/* =========================================================
   2) Produkt-Grid — 4 pro Reihe wenn Filter zu, 3 pro Reihe wenn Filter offen
   OceanWP span_1_of_3 überschreiben
   ========================================================= */
body.wj-shop-page ul.products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(260px, 1fr)) !important;
  gap: 12px;
  width: 100%;
}

/* Filtermenü offen: nur 3 Kacheln pro Reihe */
body.wj-shop-page .wj-shop-layout--filters-open ul.products {
  grid-template-columns: repeat(3, minmax(260px, 1fr)) !important;
}

/* OceanWP ::before-Pseudo-Element entfernen (erzeugt leere erste Kachel) */
body.wj-shop-page ul.products::before {
  display: none !important;
  content: none !important;
}

body.wj-shop-page ul.products li.product,
body.wj-shop-page ul.products li.span_1_of_3,
body.wj-shop-page ul.products li.span_1_of_4 {
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  min-width: 0;
}

/* Leere Produktkacheln ausblenden (Produkt ohne Bild/Inhalt) */
body.wj-shop-page ul.products li.product:not(:has(img)),
body.wj-shop-page ul.products li.product:not(:has(.woocommerce-loop-product__link)) {
  display: none !important;
}

@media (max-width: 1100px) {
  body.wj-shop-page ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  body.wj-shop-page .wj-shop-layout--filters-open ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 840px) {
  body.wj-shop-page ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  body.wj-shop-page .wj-shop-layout--filters-open ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 480px) {
  body.wj-shop-page ul.products,
  body.wj-shop-page .wj-shop-layout--filters-open ul.products {
    grid-template-columns: 1fr !important;
  }
}

/* Mobil: Produkt-Overflow verhindern (Überlappung von Buttons/Karten) */
@media (max-width: 900px) {
  body.wj-shop-page ul.products {
    width: 100% !important;
    overflow-x: hidden;
  }

  body.wj-shop-page ul.products li.product .product-inner,
  body.wj-shop-page ul.products li.product .woo-entry-inner {
    overflow: hidden;
  }

  body.wj-shop-page ul.products li.product .button,
  body.wj-shop-page ul.products li.product a.button {
    width: 100%;
    box-sizing: border-box;
  }
}

/* Rasteransicht/Listenansicht ausblenden */
body.wj-shop-page .oceanwp-grid-list,
body.wj-shop-page .grid-list-toggle,
body.wj-shop-page .woocommerce-grid-list,
body.wj-shop-page .grid-list-buttons,
body.wj-shop-page .woocommerce-ordering .grid-list,
body.wj-shop-page [class*="grid-list"] {
  display: none !important;
}

/* Keine Produkte gefunden (Filter gesetzt) — Hinweis sichtbar */
body.wj-shop-page .wj-shop-no-results {
  padding: 32px 24px;
  margin-top: 20px;
  text-align: center;
  background: var(--wj-shop-soft);
  border: 1px solid var(--wj-shop-border);
  border-radius: var(--wj-shop-radius);
}
body.wj-shop-page .wj-shop-no-results__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--wj-shop-text);
}
body.wj-shop-page .wj-shop-no-results__text {
  margin: 0 0 20px;
  font-size: 15px;
  color: var(--wj-shop-muted);
}
body.wj-shop-page .wj-shop-no-results__reset {
  display: inline-block;
}

/* Produkt-Card — großes Bild, klare Hierarchie */
body.wj-shop-page ul.products li.product {
  border: 1px solid var(--wj-shop-border);
  border-radius: var(--wj-shop-radius);
  overflow: hidden;
  background: #fff;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
  min-width: 0;
}

body.wj-shop-page ul.products li.product:hover {
  transform: translateY(-2px);
  box-shadow: var(--wj-shop-shadow);
}

/* Bild-Bereich — randbündig, großer Bildanteil
   Achtung: Der Link umschließt Bild + Titel + Preis (WooCommerce-Struktur).
   Negative Margin nur für den Bildbereich, Text-Bereich braucht Innenabstand. */
body.wj-shop-page ul.products li.product .woocommerce-loop-product__link {
  display: block;
  overflow: hidden;
  position: relative;
  margin: -14px -14px 10px -14px;
  padding: 0 14px 0 14px;
  border-radius: var(--wj-shop-radius) var(--wj-shop-radius) 0 0;
}

/* Bild: in Link-Padding hineinziehen, damit randbündig */
body.wj-shop-page ul.products li.product .woocommerce-loop-product__link img {
  width: calc(100% + 28px);
  max-width: none;
  margin-left: -14px;
  margin-right: -14px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

/* OceanWP: woo-entry-image — falls Bild in Wrapper, Wrapper randbündig */
body.wj-shop-page ul.products li.product .woocommerce-loop-product__link .woo-entry-image,
body.wj-shop-page ul.products li.product .woocommerce-loop-product__link .woo-entry-image-main,
body.wj-shop-page ul.products li.product .woocommerce-loop-product__link .image-wrap {
  margin-left: -14px !important;
  margin-right: -14px !important;
  width: calc(100% + 28px) !important;
  max-width: none !important;
}

body.wj-shop-page ul.products li.product img.woo-entry-image-main,
body.wj-shop-page ul.products li.product .woo-entry-image img {
  border-radius: 16px !important;
}

/* Sale-Badge — modern, dezenter Stil */
body.wj-shop-page ul.products li.product .onsale,
body.wj-shop-page ul.products li.product span.onsale {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  left: auto !important;
  bottom: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  padding: 6px 12px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  color: #fff !important;
  background: var(--wj-shop-accent) !important;
  border: none !important;
  border-radius: 999px !important;
  box-shadow: 0 2px 8px rgba(216,195,165,.4) !important;
  z-index: 2 !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

/* Schnellansicht-Overlay — zentriert, volle Breite (OceanWP/Theme Override) */
body.wj-shop-page ul.products li.product a.owp-quick-view,
body.wj-shop-page ul.products li.product .owp-quick-view,
body.wj-shop-page ul.products li.product a[class*="quick-view"],
body.wj-shop-page ul.products li.product [class*="owp-qv"],
body.wj-shop-page ul.products li.product .product-inner a.owp-quick-view,
body.wj-shop-page ul.products li.product .product-inner .owp-quick-view {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
  background: rgba(255,255,255,.92) !important;
  color: #1f2937 !important;
  font-size: 12px !important;
  padding: 12px 20px !important;
  border-radius: 12px !important;
  border: 1px solid var(--wj-shop-border) !important;
  min-height: auto !important;
  transition: all .2s ease !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.08) !important;
}

body.wj-shop-page ul.products li.product a.owp-quick-view:hover,
body.wj-shop-page ul.products li.product .owp-quick-view:hover {
  background: #fff !important;
  border-color: var(--wj-shop-accent) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.1) !important;
}

body.wj-shop-page ul.products li.product a.owp-quick-view svg,
body.wj-shop-page ul.products li.product .owp-quick-view svg {
  width: 14px !important;
  height: 14px !important;
}

/* Overlay-Container — zentriert */
body.wj-shop-page ul.products li.product .product-inner .owp-quick-view-wrap,
body.wj-shop-page ul.products li.product .product-inner [class*="qv-wrap"] {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255,255,255,.4) !important;
}

/* OceanWP product-inner: Floats/Grid zurücksetzen, Text mittig */
body.wj-shop-page ul.products li.product .product-inner,
body.wj-shop-page ul.products li.product .woo-entry-inner {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Text-Elemente: mittig, volle Breite */
body.wj-shop-page ul.products li.product .product-inner > *,
body.wj-shop-page ul.products li.product .woo-entry-inner > *,
body.wj-shop-page ul.products li.product .woocommerce-loop-product__title,
body.wj-shop-page ul.products li.product .woocommerce-loop-product__title a,
body.wj-shop-page ul.products li.product .price {
  text-align: center !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Kategorie-Label über dem Titel */
body.wj-shop-page ul.products li.product .woocommerce-loop-category__title,
body.wj-shop-page ul.products li.product .ast-woo-product-category {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--wj-shop-muted);
  margin: 0 0 4px;
  text-align: center;
}

/* Produkt-Titel — lesbar, ggf. gekürzt */
body.wj-shop-page ul.products li.product .woocommerce-loop-product__title,
body.wj-shop-page ul.products li.product h2,
body.wj-shop-page ul.products li.product .woocommerce-loop-product__title {
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--wj-shop-text);
  margin: 0 0 8px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Preis */
body.wj-shop-page ul.products li.product .price {
  margin: 0 0 12px;
  color: var(--wj-shop-text);
  font-weight: 700;
  font-size: 15px;
}

body.wj-shop-page ul.products li.product .price del {
  color: var(--wj-shop-muted);
  font-weight: 500;
}

body.wj-shop-page ul.products li.product .price ins {
  text-decoration: none;
  color: #15803d;
}

/* Add-to-Cart Button */
body.wj-shop-page ul.products li.product .button,
body.wj-shop-page ul.products li.product a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  background: var(--wj-shop-accent);
  color: #1f2937;
  border: none;
  text-decoration: none !important;
  transition: transform .15s ease, opacity .15s ease;
  margin-top: auto;
  max-width: 100%;
  min-width: 0;
}

body.wj-shop-page ul.products li.product .button:hover,
body.wj-shop-page ul.products li.product a.button:hover {
  background: #cbb89a;
  color: #1f2937;
  transform: translateY(-1px);
}

/* Links ohne Unterstreichung */
body.wj-shop-page ul.products li.product a {
  text-decoration: none !important;
  color: inherit;
}

/* Sidebar-Filter ausblenden (nur in Sidebar, nicht in Filter-Bar) */
body.wj-shop-page #left-sidebar .widget_product_categories,
body.wj-shop-page #right-sidebar .widget_product_categories,
body.wj-shop-page #sidebar .widget_product_categories,
body.wj-shop-page #left-sidebar .widget_price_filter,
body.wj-shop-page #right-sidebar .widget_price_filter,
body.wj-shop-page #sidebar .widget_price_filter,
body.wj-shop-page #left-sidebar .widget_product_tag_cloud,
body.wj-shop-page #right-sidebar .widget_product_tag_cloud,
body.wj-shop-page #sidebar .widget_product_tag_cloud {
  display: none !important;
}

/* Falls Sidebar-Widgets doch sichtbar — auch horizontal stylen */
body.wj-shop-page .widget_product_categories,
body.wj-shop-page .widget_price_filter,
body.wj-shop-page .widget_product_tag_cloud,
body.wj-shop-page .widget_woocommerce_layered_nav {
  background: #fff;
  border: 1px solid var(--wj-shop-border);
  border-radius: var(--wj-shop-radius);
  padding: 20px;
  margin-bottom: 20px;
}

body.wj-shop-page .widget_product_categories .widget-title,
body.wj-shop-page .widget_price_filter .widget-title,
body.wj-shop-page .widget_product_tag_cloud .widget-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--wj-shop-text);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--wj-shop-border);
}

/* Kategorien-Liste */
body.wj-shop-page .widget_product_categories ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.wj-shop-page .widget_product_categories ul li {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--wj-shop-soft);
  display: flex;
  align-items: center;
  gap: 12px;
}

body.wj-shop-page .widget_product_categories ul li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

body.wj-shop-page .widget_product_categories ul li:first-child {
  padding-top: 0;
}

/* Kategorie-Checkbox/Label */
body.wj-shop-page .widget_product_categories ul li a,
body.wj-shop-page .widget_product_categories ul li label,
body.wj-shop-page .widget_product_categories ul li .cat-item {
  color: var(--wj-shop-text);
  text-decoration: none;
  font-size: 15px;
  flex: 1;
  cursor: pointer;
}

body.wj-shop-page .widget_product_categories ul li a:hover {
  color: var(--wj-shop-accent);
}

/* Checkbox modern stylen */
body.wj-shop-page .widget_product_categories input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--wj-shop-accent);
  cursor: pointer;
}

/* Count */
body.wj-shop-page .widget_product_categories ul li .count {
  font-size: 13px;
  color: var(--wj-shop-muted);
  background: var(--wj-shop-soft);
  padding: 2px 8px;
  border-radius: 999px;
}

/* Preis-Filter */
body.wj-shop-page .widget_price_filter .price_slider {
  margin: 16px 0;
}

/* Kein Filter-Button: Filterung erfolgt automatisch beim Loslassen des Sliders */
body.wj-shop-page .widget_price_filter .button {
  display: none !important;
}

/* Farben & Formen (Tags) */
body.wj-shop-page .widget_product_tag_cloud .tagcloud a,
body.wj-shop-page .widget_product_tag_cloud .tag-cloud-link {
  display: inline-block;
  padding: 6px 12px;
  margin: 4px 4px 4px 0;
  font-size: 13px !important;
  background: var(--wj-shop-soft);
  color: var(--wj-shop-text);
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all .15s ease;
}

body.wj-shop-page .widget_product_tag_cloud .tagcloud a:hover,
body.wj-shop-page .widget_product_tag_cloud .tag-cloud-link:hover {
  background: var(--wj-shop-accent);
  color: #1f2937;
  border-color: transparent;
}

/* ANSICHT: 12 / 24 / ALLE — ausblenden */
body.wj-shop-page .archive-products-per-page,
body.wj-shop-page .products-per-page,
body.wj-shop-page .woocommerce-products-per-page,
body.wj-shop-page [class*="products-per-page"],
body.wj-shop-page .count-holder,
body.wj-shop-page .col.products-per-page {
  display: none !important;
}

/* =========================================================
   3) Shop-Header / Result Count / Ordering
   ========================================================= */
body.wj-shop-page .woocommerce-result-count,
body.wj-shop-page .woocommerce-ordering {
  font-size: 14px;
  color: var(--wj-shop-muted);
}

body.wj-shop-page .woocommerce-ordering select {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--wj-shop-border);
  background: #fff;
  font-size: 14px;
  color: var(--wj-shop-text);
}

/* =========================================================
   4) Auch WooCommerce Blocks (falls auf Shop-Seite)
   ========================================================= */
body.wj-shop-page .wj-woo .wc-block-grid__products,
body.wj-shop-page .wj-woo .wp-block-woocommerce-product-template,
body.wj-shop-page .wp-block-woocommerce-product-collection {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

body.wj-shop-page .wj-woo .wc-block-grid__product,
body.wj-shop-page .wj-woo .wp-block-woocommerce-product-template li.product {
  border: 1px solid var(--wj-shop-border);
  border-radius: var(--wj-shop-radius);
  overflow: hidden;
  background: #fff;
  padding: 14px;
  transition: transform .2s ease, box-shadow .2s ease;
}

body.wj-shop-page .wj-woo .wc-block-grid__product:hover,
body.wj-shop-page .wj-woo .wp-block-woocommerce-product-template li.product:hover {
  transform: translateY(-2px);
  box-shadow: var(--wj-shop-shadow);
}