/* Direct native WooCommerce purchase actions in custom accessory category cards. */

/* Product-page bestsellers share the category cards and native purchase buttons. */
body.single-product .qn-bestsellers { clear:both; padding-top:32px; }
body.single-product .qn-bestsellers > h2 {
  margin:0 0 8px;
  color:#173d65;
  font:800 26px/1.3 Manrope,"DM Sans",sans-serif;
}
body.single-product .qn-bestsellers-intro { color:#647b91; margin:0 0 20px; }
body.single-product .qn-bestsellers ul.qn-bestseller-grid {
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  columns:auto!important;
  gap:20px;
  padding:0;
  margin:0;
}
body.single-product .qn-bestsellers ul.qn-bestseller-grid::before,
body.single-product .qn-bestsellers ul.qn-bestseller-grid::after { display:none!important; }
body.single-product .qn-bestsellers ul.qn-bestseller-grid > li.product {
  display:flex!important;
  flex-direction:column;
  float:none!important;
  width:auto!important;
  margin:0!important;
  min-width:0;
}
body.single-product .qn-bestsellers li.product > a { text-decoration:none; }
body.single-product .qn-bestsellers li.product > a > img {
  display:block;
  width:100%!important;
  height:190px!important;
  object-fit:contain;
  object-position:center;
  margin:0 0 14px!important;
}
body.single-product .qn-bestsellers .woocommerce-loop-product__title {
  color:#173d65;
  font:700 14px/1.5 "DM Sans",sans-serif;
  margin:0 0 12px;
}
body.single-product .qn-bestsellers .price { margin:0 0 2px; }
@media(max-width:700px) {
  body.single-product .qn-bestsellers ul.qn-bestseller-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:12px;
  }
  body.single-product .qn-bestsellers li.product > a > img { height:145px!important; }
}

.qn-commerce ul.products li.product.qn-catalog-card {
  display:flex;
  flex-direction:column;
  min-width:0;
}
.qn-catalog-actions {
  margin-top:auto;
  padding-top:14px;
  width:100%;
}
.qn-commerce ul.products li.product .qn-catalog-actions > a.button {
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:44px;
  margin:0;
  padding:11px 12px;
  border:1px solid #0874ed;
  border-radius:9px;
  background:#0874ed;
  color:#fff;
  font:800 13px/1.4 "DM Sans",sans-serif;
  text-align:center;
  text-decoration:none;
  white-space:normal;
  box-sizing:border-box;
}
.qn-commerce ul.products li.product .qn-catalog-actions > a.button:hover {
  background:#075fc4;
  border-color:#075fc4;
  color:#fff;
}
.qn-commerce ul.products li.product .qn-catalog-actions > a.button:focus-visible {
  outline:3px solid #89c7ff;
  outline-offset:3px;
}
.qn-commerce ul.products li.product .qn-catalog-actions > a.added_to_cart {
  display:block;
  padding:8px 0 0;
  color:#0968ce;
  font-size:12px;
  text-align:center;
}
.qn-catalog-actions .screen-reader-text {
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  margin:-1px!important;
  padding:0!important;
  border:0!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
}
