
/* Fix search widget alignment */
.widget_product_search form {
  display: flex;
  align-items: stretch;
}
.widget_product_search .search-field {
  flex: 1;
  width: 100%;
  box-sizing: border-box;
}
.widget_product_search button,
.widget_product_search input[type=submit] {
  flex-shrink: 0;
}

/* Fix sidebar widget spacing */
.woocommerce-sidebar .widget {
  margin-bottom: 1.5em;
}

/* Product card flex layout - align Add to Cart to bottom */
.woocommerce ul.products li.product {
  display: flex;
  flex-direction: column;
}
.woocommerce ul.products li.product .button {
  margin-top: auto;
}

/* Hide sidebar on checkout and cart pages */
.woocommerce-checkout #secondary,
.woocommerce-cart #secondary,
.woocommerce-checkout .ast-woo-shop-sidebar,
.woocommerce-cart .ast-woo-shop-sidebar {
  display: none;
}
.woocommerce-checkout #primary,
.woocommerce-cart #primary {
  width: 100%;
}

/* Stack login and register forms vertically */
.woocommerce-account .u-columns {
  display: flex;
  flex-direction: column;
}
.woocommerce-account .u-columns .u-column1,
.woocommerce-account .u-columns .u-column2 {
  width: 100%;
  max-width: 100%;
  flex: none;
}

.woocommerce-breadcrumb { font-weight: 700; margin: 1em 0; }
#primary.content-area.primary { margin-top: 2rem !important; }