
/* WXP-02 v1.0.1 stability + density patch */

/* Stronger 3:4 ownership where Home/theme rules arrive later. */
body.weauty-wxp02 ul.products>li.weauty-product-card figure img.wp-post-image,
body.weauty-wxp02 .woocommerce ul.products>li.weauty-product-card figure img.wp-post-image{
  aspect-ratio:3/4!important;
  object-fit:cover!important;
}

/* Reserve the final desktop/laptop Shop hero height before widget relocation. */
@media (min-width:1000px){
  body.weauty-wxp02.woocommerce-shop .hero-section{
    min-height:158px!important;
    height:auto!important;
  }
}

/* 690–999: keep the server-native archive identity and suppress the moving widget hero. */
@media (min-width:690px) and (max-width:999px){
  body.weauty-wxp02.woocommerce-shop .hero-section{
    display:block!important;
    width:calc(100% - 48px)!important;
    max-width:976px!important;
    min-height:0!important;
    height:auto!important;
    margin:0 auto 18px!important;
    padding:19px 22px!important;
    border:1px solid var(--wxp02-border)!important;
    border-radius:18px!important;
    background:linear-gradient(135deg,#fafafa,#fff)!important;
    box-sizing:border-box!important;
  }
  body.weauty-wxp02.woocommerce-shop .hero-section>.entry-header{
    display:block!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    text-align:right!important;
  }
  body.weauty-wxp02.woocommerce-shop .hero-section>.entry-header .ct-breadcrumbs{
    display:block!important;
    margin:0 0 5px!important;
  }
  body.weauty-wxp02.woocommerce-shop .hero-section>.entry-header .page-title{
    display:block!important;
    margin:0!important;
    font-size:32px!important;
    font-weight:700!important;
    line-height:1.45!important;
    color:var(--wxp02-ink)!important;
  }
  body.weauty-wxp02.woocommerce-shop .hero-section>.weauty-shop-hero,
  body.weauty-wxp02.woocommerce-shop .hero-section>*:not(.entry-header){
    display:none!important;
  }
}

/* Mobile: Phase11 previously reserved a much taller Shop hero. Match the actual WXP-02 hero. */
@media (max-width:689px){
  body.weauty-wxp02.woocommerce-shop .hero-section{
    min-height:170px!important;
    height:auto!important;
    margin:0 0 14px!important;
    padding:0!important;
    overflow:visible!important;
  }
  body.weauty-wxp02.woocommerce-shop .hero-section>.weauty-shop-hero{
    min-height:170px!important;
    box-sizing:border-box!important;
  }

  /* Collection pages use purposeful 2-up commerce density, matching Shop/Home card rhythm. */
  body.weauty-wxp02.wxp02-collection-page ul.products{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:14px 10px!important;
  }
  body.weauty-wxp02.wxp02-collection-page ul.products>li.weauty-product-card{
    min-width:0!important;
    width:auto!important;
  }
}

/* Category hero was still inheriting a large theme minimum height. */
body.weauty-wxp02.tax-product_cat .hero-section{
  min-height:0!important;
  height:auto!important;
}
body.weauty-wxp02.tax-product_cat .hero-section .entry-header{
  min-height:0!important;
  height:auto!important;
}
@media (max-width:689px){
  body.weauty-wxp02.tax-product_cat .hero-section{
    padding:16px!important;
  }
}

/* Touch target belongs to the full option row, not the tiny native checkbox itself. */
body.weauty-wxp02 .wxp02-filter-panel .weauty-multiselect-option{
  min-height:44px!important;
}
body.weauty-wxp02 .wxp02-filter-panel .weauty-filter-check{
  min-height:44px!important;
}

/* Avoid duplicate legacy mobile search/filter spacing around the new toolbar. */
@media (max-width:689px){
  body.weauty-wxp02.woocommerce-shop .weauty-mobile-search{
    margin:10px 12px 10px!important;
    padding:0!important;
  }
}
