/*
 * WillowPlant 09.10.2026 – Mobile-Paket 1 (Audit-Punkte 5, 7, 11). Gilt nur < 768 px.
 * Eigene Datei, eingebunden in templates/_partials/head.tpl NACH dem CCC-Bundle -> schlaegt custom.css
 * bei gleicher Spezifitaet. Zuruecknehmen: Einbindung in head.tpl entfernen.
 */
@media (max-width: 767px) {

  /* 5) Kompakter Header: Header-Grafik (img/header.png, 1140x292) auf 150 px Hoehe, Suche direkt darunter */
  #header {
    background-size: auto 150px !important;
    min-height: 0 !important;
  }
  #header .header-top {
    padding-top: 0 !important;
    padding-bottom: 10px !important;
  }
  #header .header-top #search_widget {
    margin-top: 94px !important;
    margin-bottom: 0 !important;
  }

  /* 11) Kategorie-/Such-Listen zweispaltig wie auf der Startseite */
  #js-product-list .products {
    margin: 0 -6px;
  }
  #js-product-list .products .product-miniature {
    width: 50% !important;
    margin: 8px 0 !important;
    padding: 0 6px !important;
  }
  #js-product-list .product-miniature .thumbnail-container {
    margin-bottom: 0 !important;
  }
  #js-product-list .product-miniature .thumbnail-container,
  #js-product-list .product-miniature .thumbnail-top,
  #js-product-list .product-miniature .product-thumbnail {
    width: 100% !important;
    height: auto !important;
  }
  #js-product-list .product-miniature .product-thumbnail img {
    width: 100% !important;
    height: auto !important;
  }
  #js-product-list .product-miniature .product-description {
    position: relative !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
    padding: 6px 4px 10px !important;
  }
  #js-product-list .product-miniature .product-title {
    height: auto !important;
    font-size: 15px !important;
    line-height: 1.25 !important;
    -webkit-hyphens: auto;
    hyphens: auto;
  }
  /* "Vorschau" (Quickview) ist auf Touch-Geraeten ohne Nutzen und verdeckt das Bild */
  #js-product-list .product-miniature .highlighted-informations {
    display: none !important;
  }

  /* 7) Fixe Kaufleiste auf der Produktseite (wp-mobile.js setzt body.wp-atc-on, solange
        der echte "Zum Korb"-Bereich nicht im Bild ist) */
  #wp-atc-bar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, .15);
  }
  body.wp-atc-on #wp-atc-bar {
    display: flex;
  }
  #wp-atc-bar .wp-atc-price {
    font-size: 20px;
    font-weight: 700;
    color: #8bc954;
    white-space: nowrap;
  }
  #wp-atc-bar .wp-atc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 18px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
  }
  body.wp-atc-on {
    padding-bottom: 64px;
  }
  /* Chat-Button und Cookie-Chip ueber die Leiste heben */
  body.wp-atc-on #arcontactus,
  body.wp-atc-on #lgcookieslaw_fixed_button.lgcookieslaw-fixed-button,
  body.wp-atc-on .grecaptcha-badge {
    margin-bottom: 64px !important;
  }
}
