/*
 * It's Beautiful – rustigere en beter bedienbare productoverzichten.
 * Gebruikt uitsluitend de bestaande thema-accenten --accent, --gold en --dark.
 * Alleen in .section-shop: de homepage en de bestelpagina worden niet geraakt.
 */

/* Op mobiel zijn filters een duidelijke, contrastrijke actie. */
@media (max-width: 767.98px) {
  .section-shop .itsb-filter-toggle {
    display: flex;
    width: 100%;
    min-height: 52px;
    margin: 0 0 14px;
    padding: 12px 16px;
    border: 2px solid var(--accent, #d5798c);
    border-radius: var(--border-radius, 6px);
    background: #fff;
    color: var(--dark, #32313e);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    align-items: center;
    justify-content: flex-start;
    gap: 11px;
    box-shadow: none;
    cursor: pointer;
  }
  .section-shop .itsb-filter-toggle .fa-sliders {
    color: var(--accent, #d5798c);
    font-size: 18px;
  }
  .section-shop .itsb-filter-toggle::after {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-left: auto;
    border-right: 2px solid var(--dark, #32313e);
    border-bottom: 2px solid var(--dark, #32313e);
    transform: rotate(45deg);
    transition: transform .18s ease;
  }
  .section-shop .itsb-filter-toggle[aria-expanded="true"]::after {
    transform: rotate(225deg);
  }
  .section-shop .itsb-filter-toggle:hover,
  .section-shop .itsb-filter-toggle[aria-expanded="true"] {
    background: #fff;
    border-color: var(--gold, #c5b5a3);
    color: var(--dark, #32313e);
  }
  .section-shop .itsb-filter-panel.is-open {
    margin: 0 0 20px;
    padding: 14px;
    border: 1px solid var(--gold, #c5b5a3);
    border-radius: var(--border-radius, 6px);
    background: #fff;
  }
  .section-shop .woocommerce-ordering {
    margin: 0 0 14px;
  }
  .section-shop .itsb-catalog-sort-label {
    display: block;
    margin-bottom: 6px;
    color: var(--dark, #32313e);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
  }
  .section-shop .woocommerce-ordering .orderby {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--gold, #c5b5a3);
    border-radius: var(--border-radius, 6px);
    background-color: #fff;
    color: var(--dark, #32313e);
    font-size: 15px;
  }
}

/* Een rustige afbakening van producten, zonder prijzen of buttons aan te sturen. */
.section-shop .card-product {
  border: 1px solid var(--gold, #c5b5a3);
  border-radius: var(--border-radius, 6px);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(50,49,62,.05);
}
.section-shop .card-product .card-body {
  padding: 18px;
}
.section-shop .card-product .card-title {
  margin: 0;
  color: var(--dark, #32313e);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.4;
}
.section-shop .card-product .card-price {
  color: var(--dark, #32313e);
  font-weight: 700;
}
.section-shop .card-product .card-price .price {
  margin-bottom: 0;
}
/* Keuze-acties zijn links, geen directe bestelknoppen. Een omlijning
   geeft donkere tekst een beter contrast zonder andere productacties te wijzigen. */
/* Specifieker dan de algemene themaregel die anders witte letters
   forceert: duidelijke donkere tekst op de bestaande witte optieknop. */
html body .section-shop .card-product a.btn.btn-primary,
html body .section-shop .card-product a.btn.btn-primary:link,
html body .section-shop .card-product a.btn.btn-primary:visited {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent, #d5798c) !important;
  border-radius: var(--border-radius, 6px);
  background: #fff !important;
  color: var(--dark, #32313e) !important;
  -webkit-text-fill-color: var(--dark, #32313e) !important;
  font-weight: 700;
  text-decoration: none;
}
html body .section-shop .card-product a.btn.btn-primary:hover,
html body .section-shop .card-product a.btn.btn-primary:focus,
html body .section-shop .card-product a.btn.btn-primary:focus-visible {
  border-color: #ad5067 !important;
  background: #fff !important;
  color: var(--dark, #32313e) !important;
  -webkit-text-fill-color: var(--dark, #32313e) !important;
}
.section-shop .card-product form.cart button.single_add_to_cart_button {
  min-width: 44px;
  min-height: 44px;
}
.section-shop .card-product form.cart .quantity input.qty {
  min-height: 44px;
}

/* Tekstlinks binnen categorie-informatie en productuitleg zijn herkenbaar
   door onderstreping, niet alleen door kleur. Voorrang op algemene linkregels. */
html body.tax-product_cat .section.p-0 .mb-5 p a:not(.btn):not(.button),
html body.tax-product_cat .section-category-bottom p a:not(.btn):not(.button),
html body.tax-product_cat .section-category-bottom li a:not(.btn):not(.button) {
  color: var(--dark, #32313e) !important;
  text-decoration-line: underline !important;
  text-decoration-color: #ad5067 !important;
  text-decoration-style: solid !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 3px;
}

.section-shop .itsb-filter-toggle:focus-visible,
.section-shop .woocommerce-ordering .orderby:focus-visible,
.section-shop .card-product a:focus-visible,
.section-shop .card-product button:focus-visible,
.section-shop .card-product input:focus-visible {
  outline: 3px solid var(--dark, #32313e);
  outline-offset: 3px;
}

/* Snelle sprong naar producten, zonder categorie-omschrijving te verbergen. */
body.tax-product_cat .itsb-category-intro .itsb-category-skip,
body.tax-product_cat .itsb-category-intro .itsb-category-skip:link,
body.tax-product_cat .itsb-category-intro .itsb-category-skip:visited {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 44px;
  margin-top: 12px;
  padding: 9px 15px;
  border: 1px solid var(--gold, #c5b5a3);
  border-radius: var(--border-radius, 6px);
  background: #fff;
  color: var(--dark, #32313e);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}
body.tax-product_cat .itsb-category-intro .itsb-category-skip span {
  color: var(--accent, #d5798c);
  font-size: 20px;
  font-weight: 700;
}
body.tax-product_cat .itsb-category-intro .itsb-category-skip:hover {
  border-color: var(--accent, #d5798c);
}
body.tax-product_cat .itsb-category-intro .itsb-category-skip:focus-visible {
  outline: 3px solid var(--dark, #32313e);
  outline-offset: 3px;
}
#itsb-product-results {
  scroll-margin-top: 105px;
}
@media (min-width: 768px) {
  #itsb-product-results { scroll-margin-top: 185px; }
}
@media (max-width: 767.98px) {
  body.tax-product_cat .itsb-category-intro {
    margin-bottom: 25px !important;
  }
}
/* Duidelijk herkenbare tekstlinks binnen lopende tekst. */
body.tax-product_cat .itsb-category-intro p a,
body.tax-product_cat .section-category-bottom p a {
  color: var(--dark, #32313e) !important;
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-decoration-color: var(--accent, #d5798c) !important;
  text-underline-offset: 3px;
}
/* WCAG: de sorteerlinks "Nieuwste sieraden" en "Meest verkochte
   sieraden" erfden witte tekst op witte knoppen. */
html body.tax-product_cat a.btn.btn-outline-secondary.btn-sm,
html body.tax-product_cat a.btn.btn-outline-secondary.btn-sm:link,
html body.tax-product_cat a.btn.btn-outline-secondary.btn-sm:visited,
html body.tax-product_cat a.btn.btn-outline-secondary.btn-sm:hover,
html body.tax-product_cat a.btn.btn-outline-secondary.btn-sm:focus-visible {
    background-color: #ffffff !important;
    border: 1px solid #ad5067 !important;
    color: #32313e !important;
    -webkit-text-fill-color: #32313e !important;
}

/* De bestaande terug-naar-categorie-link kreeg lichtroze kleine tekst. */
html body.tax-product_cat .ib-type-filter a.itsb-reset-category,
html body.tax-product_cat .ib-type-filter a.itsb-reset-category span,
html body.tax-product_cat .ib-type-filter a.itsb-reset-category .itsb-reset-category__arrow {
    color: #ad5067 !important;
    -webkit-text-fill-color: #ad5067 !important;
}
html body.tax-product_cat .ib-type-filter a.itsb-reset-category:hover,
html body.tax-product_cat .ib-type-filter a.itsb-reset-category:hover span {
    color: #98445a !important;
    -webkit-text-fill-color: #98445a !important;
}

/* Het getekende pagineringsteken is ook tekst: voldoende contrast op wit. */
html body.tax-product_cat .section-shop nav.woocommerce-pagination ul li span.page-numbers.dots {
    color: #32313e !important;
}

/* Paginanummers hebben voldoende contrast; roze blijft het accent. */
.section-shop nav.woocommerce-pagination ul li a.page-numbers {
  color: var(--dark, #32313e) !important;
  border: 1px solid var(--gold, #c5b5a3);
  background: #fff;
  font-weight: 700;
}
.section-shop nav.woocommerce-pagination ul li a.page-numbers:hover {
  border-color: var(--accent, #d5798c);
  color: var(--dark, #32313e) !important;
}
.section-shop nav.woocommerce-pagination ul li span.page-numbers.current {
  background: var(--dark, #32313e) !important;
  color: #fff !important;
  border-bottom: 3px solid var(--accent, #d5798c);
}
.section-shop .itsb-catalog-sort a.active {
  color: var(--dark, #32313e) !important;
  font-weight: 700;
  background: #f7f3ee;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px var(--gold, #c5b5a3);
  text-decoration: none;
}
.section-shop .itsb-catalog-sort a:focus-visible {
  outline: 3px solid var(--dark, #32313e);
  outline-offset: 3px;
}
/* Lege productzoekresultaten: een compacte tweede zoekmogelijkheid.
 * Geen extra categorieblokken of onnodig donkere vlakken. */
.section-shop .itsb-search-empty {
  box-sizing: border-box;
  width: 100%;
  margin: 16px 0 28px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--gold, #c5b5a3);
  border-radius: var(--border-radius, 6px);
  background: #fff;
  color: var(--dark, #32313e);
}
.section-shop .itsb-search-empty h2 {
  margin: 0 0 7px;
  color: var(--dark, #32313e);
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 700;
  line-height: 1.35;
}
.section-shop .itsb-search-empty p {
  margin: 0 0 17px;
  color: var(--dark, #32313e);
  font-size: 15px;
  line-height: 1.55;
}
.section-shop .itsb-search-empty form {
  margin: 0 0 13px;
}
.section-shop .itsb-search-empty label {
  display: block;
  margin: 0 0 7px;
  color: var(--dark, #32313e);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}
.section-shop .itsb-search-empty__row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.section-shop .itsb-search-empty input[type="search"] {
  box-sizing: border-box;
  flex: 1 1 190px;
  min-width: 0;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--gold, #c5b5a3);
  border-radius: var(--border-radius, 6px);
  background: #fff;
  color: var(--dark, #32313e);
  font-size: 16px;
  line-height: 1.5;
}
.section-shop .itsb-search-empty button {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  border: 1px solid var(--gold, #c5b5a3);
  border-radius: var(--border-radius, 6px);
  background: var(--gold, #c5b5a3);
  color: var(--dark, #32313e);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}
.section-shop .itsb-search-empty button:hover {
  border-color: var(--accent, #d5798c);
}
.section-shop .itsb-search-empty__browse,
.section-shop .itsb-search-empty__browse:visited {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  color: var(--dark, #32313e);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: underline;
  text-decoration-color: var(--accent, #d5798c);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.section-shop .itsb-search-empty input:focus-visible,
.section-shop .itsb-search-empty button:focus-visible,
.section-shop .itsb-search-empty__browse:focus-visible {
  outline: 3px solid var(--dark, #32313e);
  outline-offset: 3px;
}
@media (max-width: 370px) {
  .section-shop .itsb-search-empty button { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .section-shop .itsb-filter-toggle::after {
    transition: none;
  }
}
