/* Erciyes 1.6.22 — professional dark-mode catalog and filter surfaces */
html[data-theme="dark"] body :where(.shop-layout,.shop-results,.shop-sidebar,.shop-sidebar *,ul.products li.product,.eb-catalog-toolbar,.eb-result-head){
  color:#fff;
}

html[data-theme="dark"] .shop-layout{
  align-items:start;
}
html[data-theme="dark"] .shop-results{
  min-width:0;
}

/* Catalog title / toolbar */
html[data-theme="dark"] .eb-result-head,
html[data-theme="dark"] .shop-results>.term-description,
html[data-theme="dark"] .shop-results>.woocommerce-notices-wrapper:empty + .eb-result-head{
  background:linear-gradient(180deg,#14212c 0%,#111b25 100%)!important;
  border:1px solid #2a4053!important;
  box-shadow:0 16px 34px rgba(0,0,0,.20)!important;
}
html[data-theme="dark"] .eb-result-head h1{
  color:#fff!important;
  letter-spacing:-.04em!important;
}
html[data-theme="dark"] .eb-result-head p,
html[data-theme="dark"] .woocommerce-result-count,
html[data-theme="dark"] .shop-results .term-description,
html[data-theme="dark"] .shop-results .term-description p{
  color:#c9d6e2!important;
}
html[data-theme="dark"] .eb-catalog-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:18px 0 22px;
}
html[data-theme="dark"] .eb-catalog-toolbar .woocommerce-ordering,
html[data-theme="dark"] .woocommerce .woocommerce-ordering{
  margin:0 0 0 auto!important;
}
html[data-theme="dark"] .eb-catalog-toolbar select,
html[data-theme="dark"] .woocommerce .woocommerce-ordering select{
  min-width:230px;
  padding:12px 40px 12px 14px!important;
  background:#162431!important;
  border:1px solid #33506a!important;
  border-radius:12px!important;
  color:#fff!important;
  box-shadow:0 8px 18px rgba(0,0,0,.12)!important;
}

/* Filter sidebar shell */
html[data-theme="dark"] .shop-sidebar{
  position:sticky;
  top:122px;
  border:1px solid #2a4053!important;
  border-radius:18px!important;
  background:linear-gradient(180deg,#111a23 0%,#0f1821 100%)!important;
  box-shadow:0 20px 40px rgba(0,0,0,.22)!important;
}
html[data-theme="dark"] .shop-sidebar > summary{
  font-size:17px!important;
  font-weight:800!important;
  color:#fff!important;
  letter-spacing:-.02em;
  margin-bottom:12px;
}
html[data-theme="dark"] .shop-sidebar .filter-form{
  gap:0;
}
html[data-theme="dark"] .shop-sidebar .filter-field label,
html[data-theme="dark"] .shop-sidebar .filter-field legend,
html[data-theme="dark"] .shop-sidebar .eb-facet>summary,
html[data-theme="dark"] .shop-sidebar .eb-filter-group>summary,
html[data-theme="dark"] .shop-sidebar .eb-option,
html[data-theme="dark"] .shop-sidebar .eb-facet-help,
html[data-theme="dark"] .shop-sidebar .filter-note,
html[data-theme="dark"] .shop-sidebar .filter-footer a,
html[data-theme="dark"] .shop-sidebar .filter-footer button,
html[data-theme="dark"] .shop-sidebar .eb-active-chips,
html[data-theme="dark"] .shop-sidebar .checkbox-row{
  color:#fff!important;
}
html[data-theme="dark"] .shop-sidebar .eb-facet,
html[data-theme="dark"] .shop-sidebar .eb-filter-group{
  border-bottom:1px solid rgba(128,171,208,.22)!important;
}
html[data-theme="dark"] .shop-sidebar .eb-filter-group>summary,
html[data-theme="dark"] .shop-sidebar .eb-facet>summary{
  min-height:46px;
  font-size:12px!important;
  font-weight:750!important;
  letter-spacing:.01em;
}
html[data-theme="dark"] .shop-sidebar .eb-filter-group>summary::after,
html[data-theme="dark"] .shop-sidebar .eb-facet>summary::after{
  color:#8fc9ff!important;
}

/* Inputs inside sidebar */
html[data-theme="dark"] .shop-sidebar :where(input[type="text"],input[type="search"],input[type="number"],input[type="email"],select,textarea),
html[data-theme="dark"] .shop-sidebar .select2-container--default .select2-selection--single{
  width:100%;
  background:#172533!important;
  border:1px solid #35516a!important;
  border-radius:10px!important;
  color:#fff!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .shop-sidebar :where(input[type="text"],input[type="search"],input[type="number"],input[type="email"],textarea){
  min-height:42px;
  padding:10px 12px!important;
}
html[data-theme="dark"] .shop-sidebar input::placeholder,
html[data-theme="dark"] .shop-sidebar textarea::placeholder{
  color:rgba(255,255,255,.68)!important;
}
html[data-theme="dark"] .shop-sidebar :where(input,select,textarea):focus{
  outline:none;
  border-color:#69b9ff!important;
  box-shadow:0 0 0 3px rgba(90,178,255,.16)!important;
}
html[data-theme="dark"] .shop-sidebar .eb-facet-body{
  padding:0 0 14px;
}
html[data-theme="dark"] .shop-sidebar .eb-facet-options{
  max-height:170px;
  padding-right:6px;
  scrollbar-color:#527391 #15212d;
}
html[data-theme="dark"] .shop-sidebar .eb-facet-options::-webkit-scrollbar{
  width:10px;
}
html[data-theme="dark"] .shop-sidebar .eb-facet-options::-webkit-scrollbar-track{
  background:#15212d;
  border-radius:999px;
}
html[data-theme="dark"] .shop-sidebar .eb-facet-options::-webkit-scrollbar-thumb{
  background:#4c6f8d;
  border-radius:999px;
  border:2px solid #15212d;
}
html[data-theme="dark"] .shop-sidebar .eb-option{
  border-radius:8px;
  padding:5px 6px;
}
html[data-theme="dark"] .shop-sidebar .eb-option:hover{
  background:rgba(127,192,255,.08);
}
html[data-theme="dark"] .shop-sidebar .eb-option input[type="checkbox"]{
  accent-color:#4aa3ff;
}
html[data-theme="dark"] .shop-sidebar .eb-option-chips{
  gap:8px;
}
html[data-theme="dark"] .shop-sidebar .eb-option-chips .eb-option span{
  background:#172533!important;
  border-color:#35516a!important;
  color:#fff!important;
  border-radius:10px!important;
  min-height:34px;
}
html[data-theme="dark"] .shop-sidebar .eb-option-chips .eb-option input:checked + span{
  background:#173755!important;
  border-color:#67b8ff!important;
  color:#fff!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.04);
}
html[data-theme="dark"] .shop-sidebar .eb-facet-help,
html[data-theme="dark"] .shop-sidebar .filter-note,
html[data-theme="dark"] .shop-sidebar .filter-hint,
html[data-theme="dark"] .shop-sidebar .filter-description,
html[data-theme="dark"] .shop-sidebar .eb-availability label{
  color:#bed0df!important;
}
html[data-theme="dark"] .shop-sidebar .filter-footer{
  padding-top:12px;
}
html[data-theme="dark"] .shop-sidebar .filter-footer .button,
html[data-theme="dark"] .shop-sidebar .filter-footer button,
html[data-theme="dark"] .shop-sidebar .filter-footer input[type="submit"]{
  background:linear-gradient(180deg,#1691f4 0%,#0c79d5 100%)!important;
  border:1px solid #3fb3ff!important;
  border-radius:12px!important;
  min-height:46px;
  font-weight:750!important;
  color:#fff!important;
}
html[data-theme="dark"] .shop-sidebar .filter-footer .button:hover,
html[data-theme="dark"] .shop-sidebar .filter-footer button:hover{
  background:linear-gradient(180deg,#29a0ff 0%,#0f84e2 100%)!important;
}
html[data-theme="dark"] .shop-sidebar .filter-footer a{
  color:#7fc0ff!important;
  font-weight:700;
}

/* Product cards on catalog pages */
html[data-theme="dark"] .shop-results ul.products li.product,
html[data-theme="dark"] .shop-results ul.products-grid li.product-card,
html[data-theme="dark"] .shop-results .product-card{
  background:linear-gradient(180deg,#13202b 0%,#111b25 100%)!important;
  border:1px solid #2b4255!important;
  border-radius:16px!important;
  box-shadow:0 16px 34px rgba(0,0,0,.20)!important;
  overflow:hidden;
}
html[data-theme="dark"] .shop-results ul.products li.product .product-body,
html[data-theme="dark"] .shop-results .product-card .product-body{
  background:transparent!important;
}
html[data-theme="dark"] .shop-results ul.products li.product .product-visual,
html[data-theme="dark"] .shop-results .product-card .product-visual{
  background:linear-gradient(180deg,#f5f8fb 0%,#e7eef4 100%)!important;
}
html[data-theme="dark"] .shop-results ul.products li.product .woocommerce-loop-product__title a,
html[data-theme="dark"] .shop-results .product-card .woocommerce-loop-product__title a,
html[data-theme="dark"] .shop-results .product-card h2,
html[data-theme="dark"] .shop-results .product-card h3,
html[data-theme="dark"] .shop-results .product-brand,
html[data-theme="dark"] .shop-results .product-sub,
html[data-theme="dark"] .shop-results .stock-pill,
html[data-theme="dark"] .shop-results .eb-card-specs > div,
html[data-theme="dark"] .shop-results .eb-card-specs span,
html[data-theme="dark"] .shop-results .price,
html[data-theme="dark"] .shop-results .price *{
  color:#fff!important;
}
html[data-theme="dark"] .shop-results .product-brand,
html[data-theme="dark"] .shop-results .product-sub,
html[data-theme="dark"] .shop-results .stock-pill,
html[data-theme="dark"] .shop-results .eb-card-specs > div,
html[data-theme="dark"] .shop-results .eb-card-specs span{
  color:#cad7e3!important;
}
html[data-theme="dark"] .shop-results .product-bottom{
  border-top:1px solid rgba(128,171,208,.2)!important;
}
html[data-theme="dark"] .shop-results .product-card .button,
html[data-theme="dark"] .shop-results ul.products li.product .button,
html[data-theme="dark"] .shop-results ul.products li.product .added_to_cart{
  width:100%;
  min-height:40px;
  border-radius:10px!important;
  background:#1b2a38!important;
  border:1px solid #395773!important;
  color:#fff!important;
}
html[data-theme="dark"] .shop-results .product-card .button:hover,
html[data-theme="dark"] .shop-results ul.products li.product .button:hover{
  background:#22364a!important;
  border-color:#4b6f90!important;
}
html[data-theme="dark"] .shop-results .card-favorite{
  background:#173149!important;
  border-color:#3e5c77!important;
  color:#fff!important;
}

/* Empty states / notices inside catalog */
html[data-theme="dark"] .shop-results .woocommerce-info,
html[data-theme="dark"] .shop-results .woocommerce-message,
html[data-theme="dark"] .shop-results .eb-notice,
html[data-theme="dark"] .shop-results .empty-state{
  background:#132131!important;
  border:1px solid #2a4a66!important;
  color:#fff!important;
  border-radius:16px!important;
}

@media (max-width:1100px){
  html[data-theme="dark"] .shop-sidebar{
    top:108px;
  }
}
@media (max-width:767px){
  html[data-theme="dark"] .shop-sidebar{
    position:static;
    top:auto;
    border-radius:16px!important;
    box-shadow:none!important;
  }
  html[data-theme="dark"] .eb-catalog-toolbar,
  html[data-theme="dark"] .woocommerce .woocommerce-ordering{
    margin-top:10px!important;
  }
  html[data-theme="dark"] .eb-catalog-toolbar select,
  html[data-theme="dark"] .woocommerce .woocommerce-ordering select{
    min-width:0;
    width:100%;
  }
}


html[data-theme="dark"] .shop-results .eb-empty-catalog{
  background:linear-gradient(180deg,#13202b 0%,#101b24 100%)!important;
  border:1px solid #2b4255!important;
  border-radius:20px!important;
  box-shadow:0 20px 42px rgba(0,0,0,.22)!important;
  color:#fff!important;
}
html[data-theme="dark"] .shop-results .eb-empty-catalog .eyebrow{
  color:#8ecbff!important;
}
html[data-theme="dark"] .shop-results .eb-empty-catalog h2{
  color:#fff!important;
}
html[data-theme="dark"] .shop-results .eb-empty-catalog p{
  color:#d2deea!important;
}
html[data-theme="dark"] .shop-results .eb-empty-catalog .button.ghost{
  background:#162634!important;
  border:1px solid #44627c!important;
  color:#fff!important;
}
html[data-theme="dark"] .shop-results .eb-empty-catalog .button.ghost:hover{
  background:#203547!important;
  border-color:#5b7c99!important;
}
