/* Erciyes 1.6.23 — final dark-mode text contrast override.
 * Loaded last so Core/WooCommerce/page-specific CSS cannot turn catalog text dark again.
 */
html[data-theme="dark"] body.erciyes-site .shop-layout :where(
  h1,h2,h3,h4,h5,h6,
  p,span,small,strong,b,em,i,
  a,label,legend,summary,
  li,dt,dd,address,
  th,td,caption,
  .price,.amount,.stock-pill,.product-brand,.product-sub,
  .woocommerce-result-count,.woocommerce-loop-product__title,
  .eb-facet-help,.filter-note,.filter-hint,.filter-description
){
  color:#fff!important;
  opacity:1!important;
}

html[data-theme="dark"] body.erciyes-site .shop-layout :where(input,textarea,select,option){
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  caret-color:#fff;
}
html[data-theme="dark"] body.erciyes-site .shop-layout :where(input,textarea)::placeholder{
  color:rgba(255,255,255,.82)!important;
  -webkit-text-fill-color:rgba(255,255,255,.82)!important;
  opacity:1!important;
}

/* Keep visual accents as accents, but never dark/invisible. */
html[data-theme="dark"] body.erciyes-site .shop-layout :where(
  .eyebrow,.text-link,.filter-chip,.eb-card-arrow,.eb-category-arrow,
  .shop-sidebar .filter-footer a
){
  color:#86c7ff!important;
}
html[data-theme="dark"] body.erciyes-site .shop-layout a:hover{
  color:#9bd2ff!important;
}

/* Pseudo icons / plus-minus controls. */
html[data-theme="dark"] body.erciyes-site .shop-layout .eb-facet>summary::after,
html[data-theme="dark"] body.erciyes-site .shop-layout .eb-filter-group>summary::after,
html[data-theme="dark"] body.erciyes-site .shop-layout .shop-sidebar>summary::marker{
  color:#fff!important;
}

/* Force all catalog card copy to high contrast. */
html[data-theme="dark"] body.erciyes-site .shop-results :where(.product-card,.product) .product-body,
html[data-theme="dark"] body.erciyes-site .shop-results :where(.product-card,.product) .product-body *{
  color:#fff!important;
  opacity:1!important;
}
html[data-theme="dark"] body.erciyes-site .shop-results :where(.product-card,.product) .price,
html[data-theme="dark"] body.erciyes-site .shop-results :where(.product-card,.product) .price *{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
html[data-theme="dark"] body.erciyes-site .shop-results :where(.product-card,.product) .product-bottom{
  border-top-color:rgba(255,255,255,.22)!important;
}

/* Buttons remain readable on every background. */
html[data-theme="dark"] body.erciyes-site .shop-layout :where(button,.button,input[type="submit"]){
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* Native selects can otherwise render light option panels with white text. */
html[data-theme="dark"] body.erciyes-site .shop-layout select option{
  background:#162431!important;
  color:#fff!important;
}
