/* assets/modern-ui.css */

/* Scoped modern UI for A–Z Filter Shortcode */
.az-filter-wrapper .a-z-filter {
  margin: 20px 0;
  text-align: center;
}
.az-filter-wrapper .a-z-filter a {
  display: inline-block;
  margin: 0 5px 10px;
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.az-filter-wrapper .a-z-filter a.active,
.az-filter-wrapper .a-z-filter a:hover {
  background: #0071a1;
  color: #fff;
  border-color: #0071a1;
}

/* Scoped product grid styling */
.az-filter-wrapper .products-wrapper .woocommerce ul.products,
.az-filter-wrapper .woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.az-filter-wrapper .woocommerce ul.products li.product {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.az-filter-wrapper .woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.az-filter-wrapper .woocommerce ul.products li.product img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.az-filter-wrapper .woocommerce ul.products li.product .woocommerce-loop-product__title {
  margin: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  flex-grow: 1;
}
.az-filter-wrapper .woocommerce ul.products li.product .price {
  margin: 0 12px 12px;
  font-size: 1rem;
  font-weight: 700;
  color: #0071a1;
}
.az-filter-wrapper .woocommerce ul.products li.product .button {
  margin: 0 12px 12px;
  padding: 8px 0;
  border-radius: 4px;
  background: #0071a1;
  color: white;
  text-transform: uppercase;
  font-weight: 500;
  text-align: center;
  transition: background 0.2s;
}
.az-filter-wrapper .woocommerce ul.products li.product .button:hover {
  background: #005c85;
}

/* Responsive */
@media (max-width: 768px) {
  .az-filter-wrapper .woocommerce ul.products {
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}
