/*
 * Yılmaz Hırdavat - Shop Category Motion UI v1
 * Scope: WooCommerce shop and product category archives only.
 * Product layouts, prices, catalog data, yellow navigation untouched.
 */
html body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) {
  --yh-category-gold:#f3c316;
  --yh-category-orange:#db4c2f;
  --yh-category-ink:#252c36;
}
/* Compress the theme's 300px inner cover banner without deleting it. */
html body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) .wp-block-cover.inner-cover-img {
  min-height:130px!important;
  max-height:160px!important;
  padding:20px 14px!important;
  border-bottom:3px solid #f3c316;
}
html body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) .inner-cover-img .wp-block-query-title{
  margin:0!important;
  font-size:clamp(24px,3vw,35px)!important;
  line-height:1.18!important;
  font-weight:850!important;
  letter-spacing:.01em!important;
  text-transform:none!important;
  text-shadow:0 2px 9px rgba(0,0,0,.3);
}
html body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) main.wp-block-group{
  margin-top:0!important;
  padding-top:12px!important;
  padding-bottom:24px!important;
}
html body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) main.wp-block-group>.wp-block-woocommerce-breadcrumbs,
html body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) main.wp-block-group>.woocommerce-breadcrumb {
  margin:0 0 9px!important;
  font-size:12px!important;
}
/* The banner already displays the archive title; remove repeated heading below. */
html body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) main.wp-block-group>.wp-block-query-title{
  display:none!important;
}
/* The results counter crowds the controls; pagination still remains available. */
html body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) .wp-block-woocommerce-product-results-count,
html body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) .wc-block-product-results-count {
  display:none!important;
}
html body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) main.wp-block-group>.wp-block-group.alignwide:has(.wp-block-woocommerce-product-results-count){
  justify-content:flex-end!important;
  margin:2px auto 7px!important;
  min-height:28px!important;
}
html body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) .yh-shop-quick-cats {
  max-width:1280px!important;
  margin:4px auto 14px!important;
  padding:7px 10px 10px!important;
  border:1px solid #ebe2bb;
  border-radius:15px;
  background:linear-gradient(120deg,#fff9e9 0%,#fff 58%,#fff7e2 100%);
  box-shadow:0 3px 13px rgba(35,45,55,.045);
}
html body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) .yh-shop-filter-label {
  display:flex!important;
  align-items:center;
  justify-content:center;
  gap:9px;
  font-size:17px!important;
  line-height:1.35!important;
  font-weight:850!important;
  color:#272d36!important;
  margin:0 0 8px!important;
  text-align:center!important;
}
html body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) .yh-shop-filter-label::before {
  content:"✦";
  color:#dc4c2d;
  font-size:19px;
}
html body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) .yh-shop-filter-label::after {
  content:"✦";
  color:#dc4c2d;
  font-size:13px;
}
/* Keep the two-line grid and accessible native touch swipe. */
html body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) .yh-shop-filter-links {
  grid-template-rows:repeat(2,minmax(0,47px))!important;
  grid-auto-columns:minmax(173px,190px)!important;
  grid-auto-flow:column!important;
  gap:7px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scroll-snap-type:none!important;
  overscroll-behavior-x:contain;
  scrollbar-width:thin;
  scrollbar-color:#c7a84c #f6f0db;
  padding:6px 5px 8px!important;
  cursor:grab;
  touch-action:pan-x pan-y;
}
html body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) .yh-shop-filter-links.is-dragging{
  cursor:grabbing!important;
  user-select:none;
}
html body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) .yh-shop-filter-links>a {
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  height:43px!important;
  min-height:43px!important;
  max-height:43px!important;
  border:1px solid #ded6bd!important;
  border-radius:10px!important;
  padding:5px 10px!important;
  color:#303943!important;
  background:#fff!important;
  font-size:11.7px!important;
  font-weight:750!important;
  line-height:1.2!important;
  text-decoration:none!important;
  box-shadow:0 2px 4px rgba(28,36,42,.04);
  transform:scale(1);
  transform-origin:center;
  transition:transform .19s ease,box-shadow .19s ease,border-color .19s ease,background-color .19s ease!important;
}
html body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) .yh-shop-filter-links>a:hover,
html body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) .yh-shop-filter-links>a:focus-visible{
  border-color:#d3a000!important;
  background:#ffefb8!important;
  color:#17202a!important;
  transform:scale(1.045);
  box-shadow:0 4px 13px rgba(99,80,19,.16);
  position:relative;
  z-index:2;
}
html body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) .yh-shop-filter-links>a:focus-visible{
  outline:2px solid #d74b30!important;
  outline-offset:2px!important;
}
html body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) .yh-shop-filter-links>a.is-current {
  background:#f3c316!important;
  border-color:#d5a700!important;
  color:#171b21!important;
  box-shadow:0 2px 8px rgba(149,115,0,.12);
}
html body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) .yh-shop-filter-links>a .yh-shop-cat-icon{
  width:22px!important;height:22px!important;flex:0 0 22px!important;
  color:#cd4c30!important;
}
html body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) .yh-shop-filter-links>a .yh-shop-cat-icon svg {
  width:20px!important;height:20px!important;
}
html body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) .yh-shop-filter-links>a .yh-shop-cat-name{
  line-height:1.26!important;
  letter-spacing:.005em;
  -webkit-line-clamp:2!important;
}
html body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) .yh-shop-filter-links>a.is-current .yh-shop-cat-icon {
  color:#222!important;
}
/* Visual hint remains non-interactive; category link behavior unchanged. */
html body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) .yh-shop-quick-cats .yh-motion-hint {
  margin:6px 0 0;
  color:#74716a;
  font-size:11px;
  text-align:center;
  font-weight:500;
}
@media(max-width:700px){
  html body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) .wp-block-cover.inner-cover-img{
    min-height:94px!important;max-height:112px!important;padding:14px 8px!important;
  }
  html body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) main.wp-block-group{
    padding-top:7px!important;margin-top:0!important;
  }
  html body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) .yh-shop-quick-cats{
    margin-bottom:10px!important;padding:6px 6px 8px!important;border-radius:11px;
  }
  html body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) .yh-shop-filter-label{
    font-size:14px!important;margin-bottom:6px!important;
  }
  html body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) .yh-shop-filter-links{
    grid-auto-columns:minmax(145px,170px)!important;gap:6px!important;
    padding:5px 4px 7px!important;
  }
  html body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) .yh-shop-filter-links>a{
    font-size:10.9px!important;padding:4px 5px!important;
  }
  html body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) .yh-shop-filter-links>a .yh-shop-cat-icon{
    width:17px!important;height:17px!important;flex-basis:17px!important;
  }
  html body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) .yh-shop-filter-links>a .yh-shop-cat-icon svg{
    width:17px!important;height:17px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  html body:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat) .yh-shop-filter-links>a {
    transition:none!important;
  }
}
