@charset "UTF-8";
/* Shop: Produktlisten, Kollektionsseiten und Produktseite. */
.hoa-shop { max-width: var(--hoa-breite); margin: 0 auto; padding: clamp(1.5rem, 4vw, 3rem) var(--hoa-rand) 4rem; }
.hoa-brotkrumen { font-size: 0.82rem; color: var(--hoa-ink-soft); margin-bottom: 1.5rem; overflow-wrap: anywhere; }
.hoa-brotkrumen a { color: var(--hoa-ink-soft); }
.hoa-brotkrumen__trenner { margin: 0 0.5em; }
/* overflow-wrap: Ein langer Suchbegriff ohne Leerzeichen steht in der Überschrift („Suchergebnisse für …“) und in den Brotkrumen. Beide brechen
   um, statt die Seite seitlich zu verbreitern. */
.woocommerce-products-header__title { margin-bottom: 0.3em; overflow-wrap: anywhere; }
.hoa-kollektion__einleitung { max-width: 60ch; color: var(--hoa-ink-soft); font-size: 1.1rem; margin-bottom: 2rem; }
.hoa-kollektion__text { max-width: 72ch; margin: 3rem auto 0; padding-top: 2rem; border-top: 1px solid var(--hoa-linen); }
.woocommerce-result-count { color: var(--hoa-ink-soft); font-size: 0.85rem; }
.woocommerce-ordering { margin-bottom: 1.5rem; }
.woocommerce-ordering select { width: auto; min-width: 220px; }
.woocommerce-notices-wrapper:empty { display: none; }

/* Filter über dem Raster */
.hoa-filter { display: grid; gap: 0.8rem; margin-bottom: 2rem; }
.hoa-filter__liste { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hoa-filter a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem;
  border: 1px solid var(--hoa-linen); text-decoration: none; font-size: 0.9rem;
}
.hoa-filter a:hover { border-color: var(--hoa-espresso); color: var(--hoa-espresso); }
.hoa-filter a:focus-visible { outline: 2px solid var(--hoa-brass-text); outline-offset: 3px; }
/* Aktiver Zustand: die gewählte Kollektion, „Alle“ im Shop und die gewählte Farbe. */
.hoa-filter a[aria-current], .hoa-filter a[aria-current]:hover {
  background: var(--hoa-espresso); border-color: var(--hoa-espresso); color: var(--hoa-ivory);
}

/* Produktraster */
ul.products {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 2.5rem 1.5rem; grid-template-columns: repeat(3, minmax(0, 1fr));
}
ul.products.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
ul.products::before, ul.products::after { content: none; }
@media (max-width: 900px) {
  ul.products, ul.products.columns-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
ul.products li.product {
  position: relative; margin: 0;
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto repeat(4, auto) 1fr; align-content: start; column-gap: 0.35em;
}
ul.products li.product a.woocommerce-LoopProduct-link { display: block; text-decoration: none; }
ul.products li.product > a.woocommerce-LoopProduct-link { grid-column: 1 / -1; }
ul.products li.product > .wc-gzd-additional-info-loop { margin: 0; font-size: 0.8rem; line-height: 1.5; color: var(--hoa-ink-soft); }
ul.products li.product > .button { grid-column: 1 / -1; grid-row: 6; justify-self: start; align-self: end; margin: 0.9rem 0 0; min-height: 44px; padding: 0.6em 1.2em; }
@media (max-width: 520px) { ul.products li.product { grid-template-columns: 1fr; } }
ul.products li.product img { aspect-ratio: 1; width: 100%; object-fit: cover; background: var(--hoa-linen); }
/* Bildhülle der Karte (inc/woocommerce.php, hoa_loop_bilder): Hauptbild und Zweitbild übereinander, der Abstand zum Titel sitzt an der Hülle.
   Das Zweitbild füllt die Hülle und ändert ihre Größe nie, die Karte springt beim Überfahren also nicht. Es trägt keinen Leinengrund
   (background: none): Der Grund oben ist der Platzhalter fürs Hauptbild. Beim Überfahren vor der Ankunft des lazy Bilds legte er sonst
   ein deckendes Leinenquadrat über das Foto, so bleibt das Hauptbild sichtbar. */
ul.products li.product .hoa-loop-bild { position: relative; display: block; aspect-ratio: 1; margin-bottom: 1rem; }
ul.products li.product .hoa-loop-bild__zweit { position: absolute; inset: 0; height: 100%; display: none; background: none; }
/* Nur mit Maus: Ohne Hover-Fähigkeit bleibt es display: none, und das Handy fragt das Bild nie an (Begründung in inc/woocommerce.php).
   Mit Maus liegt es unsichtbar im Layout und lädt (lazy) in der Nähe des Fensters, damit beim Überfahren nichts nachlädt und aufblitzt.
   Sichtbar beim Überfahren der Karte und beim Tastaturfokus auf ihrem Produktlink (das Bild liegt darin). */
@media (hover: hover) and (pointer: fine) {
  ul.products li.product .hoa-loop-bild__zweit { display: block; opacity: 0; transition: opacity 0.35s ease; }
  ul.products li.product:hover .hoa-loop-bild__zweit,
  ul.products li.product a:focus-visible .hoa-loop-bild__zweit { opacity: 1; }
}
/* Reduzierte Bewegung: Das Zweitbild erscheint ohne Übergang (theme.css schaltet alle Übergänge ab, hier steht es für die Karte selbst). */
@media (prefers-reduced-motion: reduce) {
  ul.products li.product .hoa-loop-bild__zweit { transition: none; }
}
ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--hoa-schrift-titel); font-size: 1.3rem; font-weight: 500; margin: 0 0 0.25rem;
}
ul.products li.product .price { display: block; font-size: 0.95rem; margin-bottom: 0.4rem; }
ul.products li.product .added_to_cart { display: none; }
.price del { color: var(--hoa-ink-soft); }
.price ins { text-decoration: none; }
.onsale {
  position: absolute; top: 1rem; left: 1rem; z-index: 3;
  background: var(--hoa-espresso); color: var(--hoa-ivory);
  padding: 0.3em 0.8em; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.wc-gzd-additional-info, .wc-gzd-additional-info a, .tax-info, .shipping-costs-info, .delivery-time-info, .price-unit {
  font-size: 0.8rem; color: var(--hoa-ink-soft);
}
.woocommerce-pagination ul { list-style: none; display: flex; gap: 0.5rem; padding: 0; justify-content: center; margin-top: 3rem; }
.woocommerce-pagination .page-numbers {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px;
  border: 1px solid var(--hoa-linen); text-decoration: none;
}
.woocommerce-pagination .current { background: var(--hoa-espresso); color: var(--hoa-ivory); }

/* Produktseite */
.hoa-shop > .product {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}
.hoa-shop > .product > .woocommerce-product-gallery { grid-column: 1; }
.hoa-shop > .product > .summary { grid-column: 2; }
.hoa-shop > .product > .related, .hoa-shop > .product > .upsells { grid-column: 1 / -1; margin-top: 3rem; }
.woocommerce-product-gallery { position: relative; }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery__image img { width: 100%; background: var(--hoa-linen); }
/* Vor dem Start des WooCommerce-Sliders: nur das erste Bild groß, die anderen als Reihe, nichts unsichtbar (LCP, kein JS) */
.woocommerce-product-gallery > .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:nth-child(n+2) { width: 25%; display: inline-block; }
.woocommerce-product-gallery { opacity: 1 !important; }
/* Weitere Galeriebilder laden erst nach dem ersten (theme.js). Ohne JavaScript zeigt das noscript daneben das echte Bild, der Platzhalter verschwindet. */
.woocommerce-no-js .woocommerce-product-gallery img[data-hoa-src] { display: none; }
/* FlexSlider gibt den Bildern erst rund 100 ms nach dem Start ihre Breite. Bis dahin ist der Container 600 % breit und jedes Bild riesig
   (die Galerie wäre kurz Tausende Pixel hoch). In dieser Zeit steht nur das erste Bild in Bildbreite da, wie davor und danach. */
.woocommerce-product-gallery .flex-viewport:has(.woocommerce-product-gallery__image:not([style])) { aspect-ratio: 1; }
.woocommerce-product-gallery .flex-viewport:has(.woocommerce-product-gallery__image:not([style])) > .woocommerce-product-gallery__wrapper { width: 100% !important; }
.flex-control-thumbs { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.6rem; }
.flex-control-thumbs img { cursor: pointer; opacity: 0.6; transition: opacity 0.2s ease; }
.flex-control-thumbs img.flex-active, .flex-control-thumbs img:hover { opacity: 1; }
.woocommerce-product-gallery__trigger {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--hoa-ivory);
  text-decoration: none; font-size: 0;
}
.woocommerce-product-gallery__trigger::before { content: "+"; font-size: 1.4rem; color: var(--hoa-espresso); }
.summary .product_title { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: 0.4rem; }
.summary .price { font-size: 1.35rem; margin: 0.6rem 0 0.2rem; }
.summary .woocommerce-product-details__short-description { margin: 1.4rem 0; }
.summary form.cart { display: flex; gap: 0.8rem; align-items: stretch; margin: 1.6rem 0; }
.summary .quantity input.qty { width: 4.5rem; min-height: 48px; text-align: center; }
.summary .single_add_to_cart_button { flex: 1; }
.summary .product_meta { font-size: 0.85rem; color: var(--hoa-ink-soft); display: grid; gap: 0.3rem; margin-bottom: 1.5rem; }
.summary .product_meta a { color: var(--hoa-ink-soft); }
.woocommerce-product-rating { font-size: 0.85rem; display: flex; gap: 0.6rem; align-items: center; }

.star-rating { position: relative; display: inline-block; width: 5.6em; height: 1.1em; overflow: hidden; font-size: 0.9rem; line-height: 1; }
.star-rating::before { content: "\2605\2605\2605\2605\2605"; position: absolute; inset: 0; color: var(--hoa-linen); letter-spacing: 0.1em; }
.star-rating span { position: absolute; top: 0; left: 0; height: 100%; overflow: hidden; padding-top: 1.5em; }
.star-rating span::before { content: "\2605\2605\2605\2605\2605"; position: absolute; top: 0; left: 0; color: var(--hoa-brass-text); letter-spacing: 0.1em; }

/* Akkordeons */
.hoa-akkordeons { border-top: 1px solid var(--hoa-linen); margin-top: 1.5rem; }
.hoa-akkordeon { border-bottom: 1px solid var(--hoa-linen); }
.hoa-akkordeon__titel {
  list-style: none; cursor: pointer; position: relative; padding: 1.1rem 2rem 1.1rem 0;
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
}
.hoa-akkordeon__titel::-webkit-details-marker { display: none; }
.hoa-akkordeon__titel::after { content: "+"; position: absolute; right: 0.2rem; top: 50%; transform: translateY(-50%); font-size: 1.2rem; font-weight: 400; }
.hoa-akkordeon[open] > .hoa-akkordeon__titel::after { content: "\2212"; }
.hoa-akkordeon__inhalt { padding: 0 0 1.4rem; }
.shop_attributes { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.shop_attributes th, .shop_attributes td { text-align: left; padding: 0.5rem 0; border-bottom: 1px solid var(--hoa-linen); font-weight: 400; }
.shop_attributes th { width: 40%; color: var(--hoa-ink-soft); }
.shop_attributes td p { margin: 0; }
.hoa-gpsr__titel { font-weight: 500; margin: 0.8rem 0 0.2rem; }
#reviews .commentlist { list-style: none; padding: 0; }
#reviews .comment-form-rating select { width: auto; }

/* Fixierte Kaufleiste auf dem Handy */
.hoa-kaufleiste { display: none; }
@media (max-width: 768px) {
  /* Solange die Kaufleiste steht, lässt die Seite beim Tastaturfokus Platz darunter. */
  html:has(.hoa-kaufleiste.ist-sichtbar) { scroll-padding-bottom: 8rem; }
  .hoa-shop > .product { grid-template-columns: 1fr; }
  .hoa-shop > .product > .woocommerce-product-gallery, .hoa-shop > .product > .summary { grid-column: 1; }
  .hoa-kaufleiste {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.1rem 1rem;
    padding: 0.8rem var(--hoa-rand) calc(0.8rem + env(safe-area-inset-bottom));
    background: var(--hoa-ivory); border-top: 1px solid var(--hoa-linen);
    box-shadow: 0 -8px 24px color-mix(in srgb, var(--hoa-noir) 8%, transparent);
    transform: translateY(110%); visibility: hidden;
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
  }
  .hoa-kaufleiste[hidden] { display: none; }
  .hoa-kaufleiste.ist-sichtbar { transform: none; visibility: visible; transition: transform 0.25s ease; }
  .hoa-kaufleiste__name { grid-column: 1; font-family: var(--hoa-schrift-titel); font-size: 1.1rem; }
  .hoa-kaufleiste__preis { grid-column: 1; font-size: 0.9rem; }
  .hoa-kaufleiste__hinweis { grid-column: 1; font-size: 0.75rem; line-height: 1.35; color: var(--hoa-ink-soft); }
  .hoa-kaufleiste .hoa-knopf { grid-column: 2; grid-row: 1 / span 3; }
}

/* Suche ohne Treffer: neues Suchfeld, die Kollektionen mit Bild, Weg zu allen Deko-Büchern (inc/suche.php) */
.hoa-nichts-gefunden { max-width: 960px; }
.hoa-nichts-gefunden .hoa-suchform { max-width: 560px; margin: 1.5rem 0 2.5rem; }
.hoa-nichts-gefunden__faq a { color: var(--hoa-brass-text); }
.hoa-nichts-gefunden__kollektionen {
  list-style: none; margin: 0 0 2rem; padding: 0;
  display: grid; gap: 1.5rem; grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 900px) { .hoa-nichts-gefunden__kollektionen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hoa-nichts-gefunden__kollektionen a {
  display: grid; gap: 0.6rem; text-decoration: none;
  font-family: var(--hoa-schrift-titel); font-size: 1.15rem; font-weight: 500;
}
.hoa-nichts-gefunden__kollektionen img { aspect-ratio: 1; width: 100%; object-fit: cover; background: var(--hoa-linen); }
