/*
 * Limex Shop – shop.css
 * Custom Shop-Seite Styles
 * @package Limex-Child
 */

/* ─── VARIABLEN ─────────────────────────────────── */
:root {
  --lx-navy:       #1F375A;
  --lx-navy-mid:   #1F375A;
  --lx-teal:       #45ADAE;
  --lx-teal-dark:  #3a9899;
  --lx-text:       #1a202c;
  --lx-text-muted: #6b7280;
  --lx-border:     #e5e7eb;
  --lx-bg:         #EEEEEE;
  --lx-white:      #ffffff;
  --lx-radius:     4px;
  --lx-shadow:     0 1px 4px rgba(0,0,0,0.08);
  --lx-shadow-md:  0 4px 16px rgba(0,0,0,0.1);

  /* Höhe des Sticky-Headers – ggf. anpassen wenn sich die Nav-Höhe ändert */
  --lx-header-h: 100px;
}

/* WP Admin-Bar fügt 32 px hinzu */
.admin-bar { --lx-header-h: 132px; }

/* Scroll-Offset: verhindert dass Anker-Ziele hinter dem Header landen */
html { scroll-padding-top: 100px; }
html:has(body.admin-bar) { scroll-padding-top: 132px; }

/* ─── LAYOUT ─────────────────────────────────────── */
.limex-shop-wrap {
  background: var(--lx-white);
  min-height: 80vh;
}

.limex-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.limex-shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  padding-top: 28px;
  padding-bottom: 60px;
  align-items: start;
}

/* ─── BREADCRUMB ─────────────────────────────────── */
.limex-breadcrumb {
  background: var(--lx-white);
  border-bottom: 1px solid var(--lx-border);
  padding: 12px 0;
}
.limex-breadcrumb .woocommerce-breadcrumb,
.limex-breadcrumb span {
  font-size: 13px;
  color: var(--lx-text-muted);
}
.limex-breadcrumb a {
  color: var(--lx-text-muted);
  text-decoration: none;
}
.limex-breadcrumb a:hover { color: var(--lx-teal); }
.limex-breadcrumb .sep { margin: 0 6px; }

/* ─── SIDEBAR ────────────────────────────────────── */
.limex-filter-sidebar {
  position: sticky;
  top: var(--lx-header-h, 80px);
  background: var(--lx-white);
}

h2.filter-heading {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--lx-text) !important;
  margin: 0 0 16px !important;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--lx-border);
  line-height: 1.2 !important;
  letter-spacing: 0.3px;
}

.filter-group {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--lx-border);
}
.filter-group:last-child { border-bottom: none; }

h3.filter-group__title {
  font-size: 12px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--lx-text-muted) !important;
  margin-bottom: 10px !important;
  line-height: 1.2 !important;
}

/* MwSt. Toggle */
.filter-group--tax { padding-bottom: 20px; }
.tax-toggle-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 10px;
}
.tax-toggle-text {
  font-size: 13px;
  color: var(--lx-text);
  line-height: 1.4;
}

.toggle-switch {
  position: relative;
  flex-shrink: 0;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.toggle-slider {
  display: block;
  width: 42px;
  height: 24px;
  background: #d1d5db;
  border-radius: 12px;
  position: relative;
  transition: background 0.25s;
  cursor: pointer;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--lx-teal);
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(18px);
}

/* Checkboxen */
.filter-category-list,
.filter-hersteller-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.filter-category-list li,
.filter-hersteller-list li {
  margin-bottom: 8px;
}
.filter-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
  color: var(--lx-text);
}
.filter-check-label:hover { color: var(--lx-teal); }

.filter-checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--lx-teal);
  cursor: pointer;
  flex-shrink: 0;
}
.filter-count {
  color: var(--lx-text-muted);
  font-size: 12px;
}

/* "Alle anzeigen" */
button.filter-show-all {
  background: none !important;
  border: none !important;
  color: var(--lx-teal) !important;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0 0;
  text-decoration: underline;
  box-shadow: none !important;
}
button.filter-show-all:hover { color: var(--lx-teal-dark) !important; }

/* Hersteller: zeige nur erste 5 */
.filter-hersteller-list li:nth-child(n+6) {
  display: none;
}
.filter-hersteller-list.expanded li {
  display: block;
}

/* Preis-Slider */
.price-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}
.price-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid #e0e0e0;
  border-radius: var(--lx-radius);
  padding: 4px 8px;
  flex: 1;
  gap: 3px;
  background: var(--lx-white);
}
.price-currency { font-size: 11px; color: var(--lx-text-muted); font-weight: 400; }
.price-input-wrap input[type="number"] {
  border: none;
  outline: none;
  width: 100%;
  font-size: 12px;
  font-weight: 400;
  color: var(--lx-text);
  background: transparent;
  -moz-appearance: textfield;
}
.price-input-wrap input[type="number"]::-webkit-inner-spin-button,
.price-input-wrap input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
}
.price-separator { font-size: 12px; color: var(--lx-text-muted); }

/* Dual Range Slider */
.price-slider-wrap { padding: 4px 0; }
.price-slider-track {
  position: relative;
  height: 3px;
  background: #e5e7eb;
  border-radius: 2px;
  margin: 14px 0 8px;
}
.price-slider-range {
  position: absolute;
  height: 100%;
  background: var(--lx-teal);
  border-radius: 2px;
}
.price-slider-track input[type="range"] {
  position: absolute;
  width: 100%;
  height: 3px;
  top: 0;
  left: 0;
  background: transparent !important;
  border: none !important;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
  outline: none;
  margin: 0;
  padding: 0 !important;
  box-shadow: none !important;
}
.price-slider-track input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: var(--lx-teal);
  border: 2px solid #fff !important;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: all;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  margin-top: -5px;
}
.price-slider-track input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: var(--lx-teal);
  border: 2px solid #fff !important;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: all;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Reset-Button – !important nötig gegen Theme-Button-Styles */
button.filter-reset-btn {
  display: block;
  width: 100%;
  background: none !important;
  border: 1px solid #e0e0e0 !important;
  color: #aaa !important;
  font-size: 12px;
  font-weight: 400;
  padding: 7px;
  border-radius: var(--lx-radius);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, color 0.2s;
  margin-top: 8px;
  box-shadow: none !important;
}
button.filter-reset-btn:hover {
  border-color: var(--lx-navy) !important;
  color: var(--lx-navy) !important;
  background: none !important;
}
button.filter-reset-btn.is-active {
  background: var(--lx-teal) !important;
  border-color: var(--lx-teal) !important;
  color: #fff !important;
  font-weight: 600 !important;
}
button.filter-reset-btn.is-active:hover {
  background: var(--lx-teal-dark) !important;
  border-color: var(--lx-teal-dark) !important;
  color: #fff !important;
}

/* ─── SUCHE ──────────────────────────────────────── */
.shop-search {
  margin-bottom: 16px;
}
.shop-search__wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.shop-search__icon {
  position: absolute;
  left: 14px;
  color: var(--lx-text-muted);
  pointer-events: none;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}
.shop-search__input {
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: var(--lx-radius);
  padding: 9px 36px 9px 40px;
  font-size: 13px;
  font-weight: 400;
  color: var(--lx-text);
  outline: none;
  transition: border-color 0.2s;
  background: var(--lx-white);
}
.shop-search__input:focus {
  border-color: var(--lx-teal);
}
.shop-search__input::placeholder {
  color: var(--lx-text-muted);
}
.shop-search__clear {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--lx-text-muted);
  font-size: 12px;
  cursor: pointer;
  padding: 4px;
  display: none;
  line-height: 1;
  box-shadow: none !important;
}
.shop-search__clear.visible { display: block; }
.shop-search__clear:hover { color: var(--lx-text); }

/* ─── TOOLBAR ────────────────────────────────────── */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--lx-border);
}
.shop-toolbar__count {
  font-size: 13px;
  font-weight: 400;
  color: var(--lx-text-muted);
}
.shop-toolbar__sort {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--lx-text-muted);
}
.sort-select-wrap {
  position: relative;
}
.sort-select-wrap select {
  appearance: none;
  border: 1px solid var(--lx-border);
  border-radius: var(--lx-radius);
  padding: 8px 32px 8px 12px;
  font-size: 13px;
  color: var(--lx-text);
  background: var(--lx-white);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}
.sort-select-wrap select:focus { border-color: var(--lx-teal); }
.sort-select-wrap::after {
  content: '▾';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 12px;
  color: var(--lx-text-muted);
}

/* ─── PRODUCT CARDS ──────────────────────────────── */
.limex-product-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.limex-product-card {
  display: grid;
  grid-template-columns: 260px 1fr 160px;
  gap: 0;
  border: none;
  border-bottom: 1px solid var(--lx-border);
  background: var(--lx-white);
  transition: background 0.2s;
  position: relative;
  min-height: 160px;
}
.limex-product-card:hover { background: #fafafa; z-index: 1; cursor: pointer; }

/* Bild */
.product-card__image-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.product-card__image-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card__image-wrap img {
  max-width: 230px;
  max-height: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s;
  display: block;
}
.limex-product-card:hover .product-card__image-wrap img {
  transform: scale(1.04);
}

/* Body */
.product-card__body {
  padding: 20px 24px;
  border: none;
}
.product-card__brand {
  font-size: 12px;
  font-weight: 400;
  color: var(--lx-text-muted);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 4px;
}
/* h2-Selector nötig damit Hello Elementor's theme-h2-Styles nicht gewinnen */
h2.product-card__title {
  font-size: 22px !important;
  font-weight: 600 !important;
  color: var(--lx-navy) !important;
  margin: 0 0 12px !important;
  line-height: 1.3 !important;
}
h2.product-card__title a {
  color: inherit !important;
  text-decoration: none;
}
h2.product-card__title a:hover { color: var(--lx-teal) !important; }

.product-card__meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  font-size: 13px;
}
.product-card__meta dt {
  color: var(--lx-text);
  font-weight: 600;
  white-space: nowrap;
}
.product-card__meta dd {
  color: var(--lx-text);
  margin: 0;
}

/* Preis-Spalte */
.product-card__price-col {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  text-align: right;
  min-width: 160px;
}

/* UVP Block */
.product-card__uvp-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}

/* Händler-EK Block */
.product-card__ek-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  padding-top: 10px;
  border-top: 1px solid var(--lx-border);
  width: 100%;
}

/* Preis-Labels */
.price-row-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--lx-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.price-row-label--ek {
  color: var(--lx-teal);
}

/* Preis-Werte */
.price-row-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--lx-navy);
  line-height: 1.2;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.price-row-value--ek {
  font-size: 26px;
  color: var(--lx-teal);
}
.price-row-value--ek.updating { opacity: 0.4; }
.price-row-value--na {
  font-size: 13px;
  font-weight: 400;
  color: var(--lx-text-muted);
  font-style: italic;
}

/* MwSt.-Hinweis */
.price-row-note {
  font-size: 10px;
  color: var(--lx-text-muted);
}
.price-row-note--ek {
  color: var(--lx-teal);
  opacity: 0.8;
}

/* Gast-Karte: kein Hover-Cursor, kein Zoom */
.limex-product-card--guest {
  cursor: default;
}
.limex-product-card--guest:hover { background: var(--lx-white); }
.limex-product-card--guest .product-card__image-wrap img {
  transform: none !important;
}
.limex-product-card--guest h2.product-card__title {
  cursor: default;
}

/* ─── LOGIN GATE ─────────────────────────────────── */
.limex-login-gate {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  background: var(--lx-white);
}
.limex-login-gate__inner {
  max-width: 480px;
  width: 100%;
  text-align: center;
}
.limex-login-gate__icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.limex-login-gate__title {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: var(--lx-navy) !important;
  margin: 0 0 12px !important;
}
.limex-login-gate__text {
  font-size: 15px;
  color: var(--lx-text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
}
.limex-login-gate__forms {
  display: flex;
  justify-content: center;
}
.limex-login-gate__box {
  background: var(--lx-white);
  border: 1px solid var(--lx-border);
  border-radius: 8px;
  padding: 28px 32px;
  width: 100%;
  text-align: left;
}
.limex-login-gate__box h3 {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--lx-text) !important;
  margin: 0 0 20px !important;
}
.limex-login-gate__box .login-username,
.limex-login-gate__box .login-password,
.limex-login-gate__box .login-remember {
  margin-bottom: 14px;
}
.limex-login-gate__box label {
  font-size: 13px;
  font-weight: 600;
  color: var(--lx-text);
  display: block;
  margin-bottom: 6px;
}
.limex-login-gate__box input[type="text"],
.limex-login-gate__box input[type="password"] {
  width: 100%;
  border: 1px solid var(--lx-border);
  border-radius: var(--lx-radius);
  padding: 9px 12px;
  font-size: 14px;
  color: var(--lx-text);
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.limex-login-gate__box input[type="text"]:focus,
.limex-login-gate__box input[type="password"]:focus {
  border-color: var(--lx-teal);
}
.limex-login-gate__box input[type="submit"] {
  display: block;
  width: 100%;
  background: var(--lx-navy) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--lx-radius) !important;
  padding: 11px 20px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  margin-top: 18px !important;
  transition: background 0.2s !important;
  box-shadow: none !important;
}
.limex-login-gate__box input[type="submit"]:hover {
  background: var(--lx-teal) !important;
}
.limex-login-gate__link {
  font-size: 13px;
  color: var(--lx-text-muted);
  margin-top: 12px !important;
  text-align: center;
}
.limex-login-gate__link a {
  color: var(--lx-teal);
  text-decoration: none;
}
.limex-login-gate__link a:hover { text-decoration: underline; }

/* ─── GAST-INFOBAR ───────────────────────────────────── */
.limex-guest-bar {
  background: var(--lx-navy);
  padding: 12px 0;
}
.limex-guest-bar .limex-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.limex-guest-bar__text {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}
.limex-guest-bar__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.limex-guest-bar__btn {
  display: inline-block;
  padding: 7px 18px;
  border-radius: var(--lx-radius);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.limex-guest-bar__btn--login {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.5);
  color: #ffffff;
}
.limex-guest-bar__btn--login:hover {
  background: rgba(255,255,255,0.1);
  color: #ffffff;
}
.limex-guest-bar__btn--register {
  background: var(--lx-teal);
  border: 1px solid var(--lx-teal);
  color: #ffffff;
}
.limex-guest-bar__btn--register:hover {
  background: var(--lx-teal-dark);
  color: #ffffff;
}

/* ─── GAST-POPUP ─────────────────────────────────────── */
.limex-guest-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
}
.limex-guest-popup.is-open {
  display: flex;
}
.limex-guest-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  cursor: pointer;
}
.limex-guest-popup__box {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  padding: 40px 36px 32px;
  max-width: 420px;
  width: calc(100% - 32px);
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  z-index: 1;
}
.limex-guest-popup__close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--lx-text-muted);
  line-height: 1;
  padding: 4px;
  box-shadow: none !important;
}
.limex-guest-popup__close:hover { color: var(--lx-text); }
.limex-guest-popup__icon {
  font-size: 40px;
  margin-bottom: 12px;
}
.limex-guest-popup__title {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--lx-navy) !important;
  margin: 0 0 12px !important;
}
.limex-guest-popup__text {
  font-size: 14px;
  color: var(--lx-text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.limex-guest-popup__divider {
  border: none;
  border-top: 1px solid var(--lx-border);
  margin: 0 0 16px;
}
.limex-guest-popup__cta-text {
  font-size: 15px;
  color: var(--lx-text);
  margin-bottom: 12px;
}
.limex-guest-popup__btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--lx-teal);
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--lx-radius);
  transition: background 0.2s;
  margin-bottom: 16px;
}
.limex-guest-popup__btn:hover {
  background: var(--lx-teal-dark);
  color: #ffffff;
}
.limex-guest-popup__login-link {
  font-size: 13px;
  color: var(--lx-text-muted);
  margin: 0;
}
.limex-guest-popup__login-link a {
  color: var(--lx-teal);
  text-decoration: none;
}
.limex-guest-popup__login-link a:hover { text-decoration: underline; }
body.limex-popup-open { overflow: hidden; }

/* ─── LOADING ────────────────────────────────────── */
.limex-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px;
}
.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--lx-border);
  border-top-color: var(--lx-teal);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.limex-no-products {
  padding: 60px 20px;
  text-align: center;
  color: var(--lx-text-muted);
  font-size: 15px;
  border: 1px solid var(--lx-border);
  border-radius: var(--lx-radius);
}

/* ─── PAGINATION ─────────────────────────────────── */
.limex-pagination {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.limex-pagination a,
.limex-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--lx-border);
  border-radius: var(--lx-radius);
  font-size: 13px;
  color: var(--lx-text);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.limex-pagination a:hover {
  border-color: var(--lx-teal);
  color: var(--lx-teal);
}
.limex-pagination span.current {
  background: var(--lx-navy);
  border-color: var(--lx-navy);
  color: #fff;
  cursor: default;
}

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 900px) {
  .limex-shop-layout {
    grid-template-columns: 1fr;
  }
  .limex-filter-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .limex-product-card {
    grid-template-columns: 1fr;
  }
  .product-card__image-wrap {
    width: 100%;
    min-height: auto;
    height: auto;
  }
  .product-card__image-wrap img {
    width: 100%;
    height: auto;
  }
  .product-card__body {
    border: none;
  }
  .product-card__price-col {
    align-items: flex-start;
    border-top: 1px solid var(--lx-border);
  }
  .product-card__ek-block {
    align-items: flex-start;
  }
}
