/* Beauté Omar 2.0 – Katalog (Shop-Seite und Produktkategorien) */

/* Absicherung: Flatsomes Titelleiste (zweite H1) – wird im Theme bereits entfernt */
.bo-catalog-body .shop-page-title.category-page-title {
  display: none !important;
}

.bo-catalog-page {
  background: var(--bo-white);
}

/* ---------- Kopf ---------- */
.bo-catalog__head {
  padding: 28px 0 30px;
  background: var(--bo-surface);
}
.bo-catalog__head .bo-pp__crumbs ol {
  margin-bottom: 14px;
}
.bo-catalog__title {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 2.9rem) !important;
  line-height: 1.1;
}
.bo-catalog__intro {
  max-width: 62ch;
  color: var(--bo-ink);
  font-size: 16px;
  line-height: 1.6;
}
.bo-catalog__intro p {
  margin: 0 0 8px;
}
.bo-catalog__intro > :last-child {
  margin-bottom: 0;
}

/* Kategorie-Filter: auf dem Handy seitlich wischbar, ohne die Seite zu verbreitern */
.bo-catalog__filter {
  margin-top: 20px;
}
.bo-catalog__filter ul {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 2px 0 6px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
}
.bo-catalog__filter li {
  flex: none;
  margin: 0;
}
.bo-catalog__filter a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--bo-line);
  border-radius: var(--bo-radius-pill);
  background: var(--bo-white);
  color: var(--bo-ink) !important;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.bo-catalog__filter a:hover {
  border-color: var(--bo-ink);
}
.bo-catalog__filter a[aria-current] {
  border-color: var(--bo-ink);
  background: var(--bo-ink);
  color: var(--bo-white) !important;
}

/* ---------- Produkte ---------- */
.bo-catalog__list {
  padding-top: 28px;
}
.bo-catalog__count {
  margin: 0 0 16px;
  color: var(--bo-muted);
  font-size: 14px;
}
.bo-catalog__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 700px) {
  .bo-catalog__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}
.bo-catalog__empty {
  margin: 0;
  padding: 24px;
  border-radius: var(--bo-radius);
  background: var(--bo-surface);
  font-size: 15px;
}
.bo-catalog__empty a {
  color: var(--bo-accent) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.bo-catalog .woocommerce-pagination {
  margin-top: 32px;
  text-align: center;
}

/* Kompakte Karte auf dem Handy (2 Spalten): Kurztext aus, Warenkorb als Symbol.
   Der Button behält seinen Namen („… in den Warenkorb legen“) über aria-label. */
@media (max-width: 549px) {
  .bo-product--catalog .bo-product__media .bo-badge {
    top: 8px;
    left: 8px;
    padding: 5px 8px;
    font-size: 9px !important;
  }
  .bo-product--catalog .bo-product__body {
    padding: 12px 12px 14px;
  }
  .bo-product--catalog .bo-product__title {
    margin-bottom: 8px;
    font-size: 15px !important;
    line-height: 1.3;
  }
  .bo-product--catalog .bo-product__text {
    display: none;
  }
  .bo-product--catalog .bo-product__buy {
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px;
  }
  .bo-product--catalog .bo-product__pricebox {
    flex: 1 1 calc(100% - 52px);
    min-width: 0;
  }
  .bo-product--catalog .bo-product__price {
    font-size: 15px;
  }
  /* Grundpreis und Versandhinweis untereinander; der Trennpunkt (Textknoten) entfällt */
  .bo-product--catalog .bo-product__legal {
    display: flex;
    flex-direction: column;
    font-size: 0 !important;
  }
  .bo-product--catalog .bo-product__legal > * {
    font-size: 12px;
    line-height: 1.4;
  }
  .bo-product--catalog .add_to_cart_button {
    flex: none;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    font-size: 0 !important;
    letter-spacing: 0;
  }
  .bo-product--catalog .add_to_cart_button::before {
    content: "";
    width: 20px;
    height: 20px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  /* nach dem Hinzufügen: Haken statt Tasche */
  .bo-product--catalog .add_to_cart_button.added::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  }
  .bo-product--catalog .add_to_cart_button.added::after {
    content: none;
  }
  .bo-product--catalog .bo-btn--sm:not(.add_to_cart_button) {
    padding: 0 12px;
    font-size: 11px !important;
  }
}
