/* ==========================================================================
   DEMMELER Shop – Ausblendungen & technische Anpassungen
   --------------------------------------------------------------------------
   Datei     demmeler_display_custom.css
   Zweck     Blendet Shop-Elemente aus und enthält technische Korrekturen
             für Synoa-Module (Lagerampel, Variantentabelle, Suche).
   Pflege    Synoa. Gestalterische Anpassungen (Farben, Schriften,
             Abstände) bitte in demmeler_style_custom.css vornehmen.
   Hinweis   Wird nach demmeler_style_custom.css geladen. Nach Änderungen
             den Versionsparameter (?v=…) im Seitenkopf erhöhen, damit
             Browser die neue Datei laden.

   Inhalt
   1. Global
   2. Startseite
   3. Blog
   4. Produktdetailseite
   5. Lagerbestand & Ampel
   6. Warenkorb, Checkout & Angebotsanfrage
   7. Kundenkonto
   8. Händlersuche (Amasty Store Locator)
   ========================================================================== */


/* 1. Global
   ========================================================================== */

/* Cookie-Hinweis und Instant-Search-Leiste */
#cookie-status,
#instant-search-bar {
  display: none;
  visibility: hidden;
}

/* Keine Aufzählungspunkte in Page-Builder-Text- und HTML-Blöcken
   (u. a. vor der Lagerbestandsangabe) */
[data-content-type="html"] ul,
[data-content-type="text"] ul {
  list-style: none;
}


/* 2. Startseite
   ========================================================================== */

/* „Unsere Topseller“ (Page-Builder-Produktkarussell): kein „Zum Warenkorb“
   im Teaser. Auf allen anderen Seiten steuern Login-Status und Preis,
   ob der Button erscheint. */
.cms-index-index [data-content-type="products"] .product-item-actions .actions-primary {
  display: none !important;
}


/* 3. Blog
   ========================================================================== */

.blogposts_home .amblog-title,
#maincontent > div.columns > div.column.main > div.desktop-block.amblog-element-block > div.amblog-post-container.-post-page > img,
#maincontent > div.columns > div.column.main > div.desktop-block.amblog-element-block > div.amblog-post-container.-post-page > div.amblog-content > div.amblog-post-title {
  display: none !important;
}


/* 4. Produktdetailseite
   ========================================================================== */

/* Bildunterschrift in der Bildergalerie */
.fotorama__caption__wrap {
  display: none !important;
}

/* Variantentabelle: Suche, Einträge-Auswahl, Info-Zeile und Blätterfunktion */
#synoa-related_articles-articles_length,
#synoa-related_articles-articles_filter,
#synoa-related_articles-articles_info,
#synoa-related_articles-articles_paginate,
.product-view .dataTables_info,
[id^="synoa-related_articles-articles"] tbody.articles,
[id^="synoa-related_articles-articles"] div.dt-layout-row:first-of-type,
[id^="synoa-related_articles-articles"] div.dt-layout-row:nth-last-of-type(2) {
  display: none;
  visibility: hidden;
}


/* 5. Lagerbestand & Ampel
   ========================================================================== */

/* Bestandsinfo kleiner und näher an die Ampel */
.catalog-product-view .masterdata-stock-info {
  margin-top: -1rem !important;
  font-size: 80% !important;
}

.page-products .ais-Hits-item .result-details .article-stock,
.page-products .ais-Hits-item .result-details .no-stock,
.catalog-product-view .synoa_masterdata_article_stock_info_widget .synoa-masterdata-content > div {
  padding-inline-start: 40px;
  margin-top: -1.5rem;
  font-size: 80%;
}

/* Produktliste */
.page-products .ais-Hits-item .result-details .synoa-masterdata .article-stock-info .traffic-light .traffic-light-img {
  margin-right: 10px !important;
}

.page-products .ais-Hits-item .result-details .synoa-masterdata .article-stock-info .traffic-light .traffic-light-info {
  font-weight: bold;
}

/* Produktseite */
.catalog-product-view .synoa-masterdata-content p:first-child span {
  font-weight: bold;
}

/* Ersatz-Ampel: Größe und Ausrichtung (Suche, Produktseite, Warenkorb) */
#instant-search-results-container .ais-Hits-item .stock-information .traffic-light .responsive-image,
.catalog-product-view .synoa_masterdata_article_stock_info_widget .responsive-image,
.checkout-cart-index .synoa_masterdata_article_stock_info .responsive-image {
  display: inline-block;
  max-width: 30px;
  margin-right: 5px;
  vertical-align: middle;
}

.catalog-product-view .synoa_masterdata_article_stock_info_widget .traffic-light-info,
.checkout-cart-index .synoa_masterdata_article_stock_info .traffic-light-info {
  display: inline-block;
  vertical-align: middle;
}


/* 6. Warenkorb, Checkout & Angebotsanfrage
   ========================================================================== */

/* Versandkosten und Gesamtsumme */
#block-shipping,
#cart-totals > div > table > tbody > tr.totals.shipping.excl,
#cart-totals > div > table > tbody > tr.totals.grand,
.table-checkout-shipping-method .shipping-price-wrapper .price {
  display: none;
}

/* Mini-Warenkorb: Hauptaktion; Warenkorb: „Bearbeiten“-Link */
#mini-cart > li > div > div > div.product.actions > div.primary,
#shopping-cart-table > tbody > tr.item-actions > td > div > a.action.action-edit {
  display: none !important;
}

/* Angebotsanfrage: Steuerzeile in der Zusammenfassung */
.quote-request-cart .quote-cart-summary .table.totals tr.totals.tax {
  display: none;
}


/* 7. Kundenkonto
   ========================================================================== */

/* USt-IdNr.-Feld in Kontodaten und Adressformular */
.form-edit-account .field.taxvat,
.form-address-edit .field.taxvat {
  display: none !important;
}


/* 8. Händlersuche (Amasty Store Locator)
   ========================================================================== */

/* Umkreissuche: Standortfeld, Suchradius und „In der Nähe finden“.
   Filter, Händlerliste und Karte bleiben sichtbar.
   Derzeit deaktiviert – zum Aktivieren die Kommentarzeichen entfernen.
.amlocator-main-container .amlocator-search-container {
  display: none !important;
}
*/
