
/* 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: 1rem !important; }

/* Desktop: hover to expand submenu */
@media (min-width: 922px) {
  .main-header-menu .menu-item-has-children { position: relative; }
  .main-header-menu .menu-item-has-children &gt; .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    padding: 8px 0;
    z-index: 9999;
    list-style: none;
  }
  .main-header-menu .menu-item-has-children:hover &gt; .sub-menu { display: block; }
  .main-header-menu .sub-menu .menu-item-has-children &gt; .sub-menu {
    top: 0;
    left: 100%;
  }
  .main-header-menu .sub-menu li a {
    display: block;
    padding: 8px 18px;
    font-size: 14px;
    color: #374151;
    text-decoration: none;
    transition: background .15s;
  }
  .main-header-menu .sub-menu li a:hover { background: #f3f4f6; color: #111; }
  .main-header-menu .menu-item-has-children &gt; a::after {
    content: " ▾";
    font-size: 10px;
    opacity: .6;
  }
  .main-header-menu .sub-menu .menu-item-has-children &gt; a::after {
    content: " ▸";
  }
}

/* Mobile: click to expand */
.ast-mobile-popup-inner .menu-item-has-children &gt; .ast-menu-toggle { cursor: pointer; }
.ast-mobile-popup-inner .sub-menu {
  padding-left: 16px;
}
.ast-mobile-popup-inner .sub-menu li a {
  font-size: 14px;
  padding: 10px 0;
}