/* ==========================================================
   AutoFlux Parts - Shop / WooCommerce catalog clean system
   ========================================================== */

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering{margin-bottom:18px}
.woocommerce .woocommerce-ordering select{min-height:42px;border:1px solid var(--af-border);border-radius:12px;padding:0 12px;background:#fff;color:var(--af-text)}

.woocommerce ul.products,
.woocommerce-page ul.products,
.tax-product_cat ul.products,
.post-type-archive-product ul.products,
.related ul.products,
.up-sells ul.products,
.cross-sells ul.products{
  display:grid !important;
  grid-template-columns:repeat(auto-fill,minmax(210px,260px)) !important;
  gap:20px !important;
  justify-content:start !important;
  align-items:start !important;
  width:100% !important;
  max-width:100% !important;
  padding:0 !important;
  margin:0 !important;
  list-style:none !important;
}
.woocommerce ul.products::before,.woocommerce ul.products::after,.woocommerce-page ul.products::before,.woocommerce-page ul.products::after{display:none !important;content:none !important}
.woocommerce ul.products li.product,.woocommerce-page ul.products li.product,.tax-product_cat ul.products li.product,.post-type-archive-product ul.products li.product,.related ul.products li.product,.up-sells ul.products li.product,.cross-sells ul.products li.product{
  float:none !important;clear:none !important;width:auto !important;max-width:260px !important;min-width:0 !important;margin:0 !important;padding:0 !important;list-style:none !important
}
.af-product-card{position:relative;display:flex !important;flex-direction:column !important;align-items:stretch !important;width:100% !important;max-width:260px !important;min-width:0 !important;height:100%;overflow:hidden;background:#fff;border:1px solid var(--af-border);border-radius:20px;box-shadow:var(--af-shadow-soft);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.af-product-card:hover{transform:translateY(-2px);box-shadow:var(--af-shadow);border-color:#cddbed}.af-product-card a{text-decoration:none}
.af-product-card__media{position:relative;display:flex !important;align-items:center;justify-content:center;width:100% !important;aspect-ratio:1/1;padding:14px;background:linear-gradient(180deg,#fff 0%,#f9fbff 100%)}
.af-product-card__media img{display:block !important;width:100% !important;height:100% !important;max-width:100% !important;max-height:100% !important;object-fit:contain !important;margin:0 !important;border-radius:12px;background:#fff}
.af-product-card .onsale{position:absolute !important;top:12px !important;left:12px !important;right:auto !important;min-height:auto !important;min-width:auto !important;margin:0 !important;padding:7px 10px !important;border-radius:999px !important;background:var(--af-accent) !important;color:#fff !important;font-size:.78rem !important;font-weight:900 !important;line-height:1 !important;z-index:2}
.af-product-card__body{display:flex !important;flex-direction:column !important;gap:9px;flex:1 1 auto;width:100% !important;padding:14px 16px 16px}
.af-product-card__brand{align-self:flex-start;display:inline-flex;padding:5px 9px;border-radius:999px;background:#eef4ff;color:var(--af-primary);font-size:.76rem;font-weight:800;line-height:1.1}
.af-product-card__title-link{display:block;color:inherit}.woocommerce-loop-product__title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.7em;margin:0 !important;padding:0 !important;font-size:1rem !important;line-height:1.35 !important;font-weight:850;color:var(--af-text)}
.af-product-meta-inline{display:block;min-height:1.25em;color:var(--af-text-soft);font-size:.86rem;line-height:1.35;white-space:normal}
.af-product-card .price{display:block;margin:2px 0 0 !important;color:var(--af-primary) !important;font-size:1.05rem !important;font-weight:900 !important;line-height:1.25}.af-product-card .price del{font-weight:600;color:var(--af-text-soft);opacity:.65;margin-right:6px}.af-product-card .price ins{text-decoration:none;color:var(--af-primary)}
.af-product-card__cta{margin-top:auto;width:100%}.af-product-card .button,.woocommerce ul.products li.product .button{display:flex !important;align-items:center;justify-content:center;width:100% !important;min-height:42px;margin:0 !important;padding:10px 12px !important;border:0 !important;border-radius:12px !important;background:linear-gradient(135deg,var(--af-accent) 0%,var(--af-accent-2) 100%) !important;color:#fff !important;font-size:.92rem !important;font-weight:900 !important;line-height:1.2 !important;text-align:center}.af-product-card .button:hover{filter:brightness(.98)}
.af-shop-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px}.af-filter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.af-filter-grid label{display:flex;flex-direction:column;gap:6px}.af-filter-grid select{min-height:46px;border:1px solid var(--af-border);border-radius:12px;padding:0 12px;background:#fff}.af-tire-filter-form{display:flex;flex-direction:column;gap:14px}
@media (max-width:1200px){.woocommerce ul.products,.woocommerce-page ul.products,.tax-product_cat ul.products,.post-type-archive-product ul.products,.related ul.products,.up-sells ul.products,.cross-sells ul.products{grid-template-columns:repeat(auto-fill,minmax(200px,1fr)) !important}.woocommerce ul.products li.product,.woocommerce-page ul.products li.product,.tax-product_cat ul.products li.product,.post-type-archive-product ul.products li.product,.related ul.products li.product,.up-sells ul.products li.product,.cross-sells ul.products li.product,.af-product-card{max-width:none !important}}
@media (max-width:767px){.woocommerce ul.products,.woocommerce-page ul.products,.tax-product_cat ul.products,.post-type-archive-product ul.products,.related ul.products,.up-sells ul.products,.cross-sells ul.products{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:14px !important}.af-product-card{border-radius:16px}.af-product-card__media{padding:10px}.af-product-card__body{padding:10px 12px 12px;gap:7px}.woocommerce-loop-product__title{font-size:.9rem !important;min-height:2.45em}.af-product-meta-inline{font-size:.78rem}.af-product-card .price{font-size:.95rem !important}.af-product-card .button,.woocommerce ul.products li.product .button{min-height:38px;font-size:.82rem !important;padding:8px 10px !important}}
