/*
 * WEAUTY WXP-02
 * Product Card System + Shop/Category + Home consistency
 * Visual/interaction layer only. No commerce truth lives here.
 */
:root{
  --wxp02-ink:#171717;
  --wxp02-text-2:#687279;
  --wxp02-muted:#747474;
  --wxp02-surface:#fff;
  --wxp02-subtle:#fafafa;
  --wxp02-soft:#f6f6f6;
  --wxp02-border:rgba(17,17,17,.08);
  --wxp02-border-strong:rgba(17,17,17,.15);
  --wxp02-sale:#e8363c;
  --wxp02-radius-card:18px;
  --wxp02-radius-media:14px;
  --wxp02-radius-control:12px;
  --wxp02-shadow:0 8px 24px rgba(17,17,17,.045);
  --wxp02-shadow-hover:0 16px 38px rgba(17,17,17,.09);
}

/* ---------------- Product Card contract ---------------- */
.weauty-wxp02 ul.products>li.weauty-product-card,
.weauty-wxp02 .woocommerce ul.products>li.weauty-product-card,
.weauty-wxp02 .woocommerce-page ul.products>li.weauty-product-card{
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  min-width:0!important;
  height:100%!important;
  padding:8px!important;
  overflow:hidden!important;
  border:1px solid var(--wxp02-border)!important;
  border-radius:var(--wxp02-radius-card)!important;
  background:var(--wxp02-surface)!important;
  box-shadow:var(--wxp02-shadow)!important;
  cursor:pointer;
  transform:translateZ(0);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease!important;
}
.weauty-wxp02 ul.products>li.weauty-product-card--sale{
  border-color:var(--wxp02-border)!important;
}
@media (hover:hover) and (pointer:fine){
  .weauty-wxp02 ul.products>li.weauty-product-card:hover{
    transform:translateY(-2px)!important;
    border-color:var(--wxp02-border-strong)!important;
    box-shadow:var(--wxp02-shadow-hover)!important;
  }
}
.weauty-wxp02 ul.products>li.weauty-product-card.is-wxp02-pressed{
  transform:scale(.992)!important;
}
.weauty-wxp02 ul.products>li.weauty-product-card:focus-within{
  border-color:rgba(17,17,17,.24)!important;
  box-shadow:0 0 0 3px rgba(17,17,17,.08),var(--wxp02-shadow)!important;
}
.weauty-wxp02 ul.products>li.weauty-product-card>figure{
  position:relative!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  border-radius:var(--wxp02-radius-media)!important;
  background:var(--wxp02-soft)!important;
}
.weauty-wxp02 ul.products>li.weauty-product-card figure>a,
.weauty-wxp02 ul.products>li.weauty-product-card .ct-media-container{
  display:block!important;
  overflow:hidden!important;
  border-radius:var(--wxp02-radius-media)!important;
}
.weauty-wxp02 ul.products>li.weauty-product-card img{
  display:block!important;
  width:100%!important;
  aspect-ratio:3/4!important;
  height:auto!important;
  object-fit:cover!important;
  object-position:center!important;
  margin:0!important;
  border-radius:var(--wxp02-radius-media)!important;
  background:var(--wxp02-soft)!important;
  transform:none!important;
  transition:transform .24s cubic-bezier(.2,.7,.2,1)!important;
}
@media (hover:hover) and (pointer:fine){
  .weauty-wxp02 ul.products>li.weauty-product-card:hover img{transform:scale(1.01)!important}
}
.weauty-wxp02 ul.products>li.weauty-product-card .woocommerce-loop-product__title{
  margin:10px 3px 0!important;
  padding:0!important;
  min-height:43px!important;
  color:var(--wxp02-ink)!important;
  font-size:14px!important;
  font-weight:700!important;
  line-height:1.55!important;
  text-align:right!important;
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
}
.weauty-wxp02 ul.products>li.weauty-product-card .woocommerce-loop-product__title a{
  color:inherit!important;
  text-decoration:none!important;
}
.weauty-wxp02 ul.products>li.weauty-product-card .price{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:baseline!important;
  justify-content:flex-start!important;
  gap:3px 7px!important;
  min-height:29px!important;
  margin:3px 3px 0!important;
  padding:0!important;
  direction:rtl!important;
  text-align:right!important;
  color:var(--wxp02-ink)!important;
  font-size:13px!important;
  font-weight:700!important;
  line-height:1.5!important;
}
.weauty-wxp02 ul.products>li.weauty-product-card .price ins{
  order:2!important;
  color:var(--wxp02-ink)!important;
  font-size:14px!important;
  font-weight:700!important;
  text-decoration:none!important;
}
.weauty-wxp02 ul.products>li.weauty-product-card .price del{
  order:1!important;
  color:#777!important;
  opacity:.62!important;
  font-size:11px!important;
  font-weight:400!important;
  text-decoration-thickness:1px!important;
}
.weauty-wxp02 ul.products>li.weauty-product-card .onsale,
.weauty-wxp02 ul.products>li.weauty-product-card .weauty-sale-percent-badge{
  top:10px!important;
  right:10px!important;
  left:auto!important;
  min-width:0!important;
  min-height:0!important;
  padding:5px 8px!important;
  border:0!important;
  border-radius:999px!important;
  background:var(--wxp02-sale)!important;
  color:#fff!important;
  box-shadow:0 5px 14px rgba(232,54,60,.14)!important;
  font-size:10px!important;
  font-weight:700!important;
  line-height:1.35!important;
  direction:rtl!important;
}
.weauty-wxp02 ul.products>li.weauty-product-card .ct-woo-card-actions{
  display:flex!important;
  align-items:flex-start!important;
  margin-top:auto!important;
  padding:2px 3px 1px!important;
}
.weauty-wxp02 ul.products>li.weauty-product-card a.button,
.weauty-wxp02 ul.products>li.weauty-product-card a.ct-button{
  display:inline-flex!important;
  width:auto!important;
  min-width:0!important;
  min-height:34px!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:6px!important;
  margin:3px 0 0!important;
  padding:4px 1px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:var(--wxp02-text-2)!important;
  box-shadow:none!important;
  font-size:11.5px!important;
  font-weight:500!important;
  line-height:1.5!important;
  text-align:right!important;
  text-decoration:none!important;
  white-space:normal!important;
  transform:none!important;
}
.weauty-wxp02 ul.products>li.weauty-product-card a.button::after,
.weauty-wxp02 ul.products>li.weauty-product-card a.ct-button::after{
  content:"←";
  display:inline-block;
  color:var(--wxp02-ink);
  font-size:13px;
  transition:transform .18s ease;
}
@media (hover:hover) and (pointer:fine){
  .weauty-wxp02 ul.products>li.weauty-product-card a.button:hover,
  .weauty-wxp02 ul.products>li.weauty-product-card a.ct-button:hover{
    color:var(--wxp02-ink)!important;
    background:transparent!important;
    box-shadow:none!important;
    transform:none!important;
  }
  .weauty-wxp02 ul.products>li.weauty-product-card a.button:hover::after,
  .weauty-wxp02 ul.products>li.weauty-product-card a.ct-button:hover::after{transform:translateX(-2px)}
}

/* Home shelves inherit exactly the same cards; only rhythm is normalized. */
.weauty-wxp02.home .weauty-product-scroll{
  border-radius:20px!important;
  padding-block:6px 12px!important;
}
.weauty-wxp02.home .weauty-product-scroll ul.products{
  gap:clamp(10px,1.2vw,18px)!important;
}
.weauty-wxp02.home .weauty-product-scroll ul.products>li.weauty-product-card{
  box-shadow:0 7px 22px rgba(17,17,17,.04)!important;
}
.weauty-wxp02.home .weauty-tier-card,
.weauty-wxp02.home .weauty-image-card{
  border-radius:18px!important;
  border-color:var(--wxp02-border)!important;
}

/* Related / Style-With keep WXP-03 layout ownership, WXP-02 owns the card language. */
.weauty-wxp02.single-product .related.products ul.products>li.weauty-product-card,
.weauty-wxp02.single-product .up-sells.upsells ul.products>li.weauty-product-card{
  padding:8px!important;
  border-radius:16px!important;
}
.weauty-wxp02.single-product .weauty-style-card.weauty-product-card{
  border-color:var(--wxp02-border)!important;
  box-shadow:var(--wxp02-shadow)!important;
}
.weauty-wxp02.single-product .weauty-style-card-title,
.weauty-wxp02.single-product .weauty-style-card-price{font-weight:700!important}
.weauty-wxp02.single-product .weauty-style-card-copy small{font-weight:400!important}
.weauty-wxp02.single-product .weauty-style-sale-badge{background:var(--wxp02-sale)!important;font-weight:700!important}

/* ---------------- Shop / Category ---------------- */
.weauty-wxp02.woocommerce-shop .weauty-shop-hero{
  width:min(1320px,calc(100% - 48px))!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:20px!important;
  padding:22px 28px!important;
  margin:0 auto 22px!important;
  border:1px solid var(--wxp02-border)!important;
  border-radius:20px!important;
  background:linear-gradient(135deg,#f8f8f8 0%,#fff 64%,#f4f4f4 100%)!important;
  box-shadow:0 10px 30px rgba(17,17,17,.035)!important;
}
.weauty-wxp02.woocommerce-shop .weauty-shop-hero:after{opacity:.45!important}
.weauty-wxp02.woocommerce-shop .weauty-shop-eyebrow{
  margin-bottom:3px!important;
  color:#838383!important;
  font-size:10px!important;
  font-weight:500!important;
  letter-spacing:1.5px!important;
}
.weauty-wxp02.woocommerce-shop .weauty-shop-hero .weauty-shop-hero-heading{
  margin:0 0 5px!important;
  font-size:clamp(28px,2.7vw,38px)!important;
  font-weight:700!important;
  line-height:1.4!important;
}
.weauty-wxp02.woocommerce-shop .weauty-shop-hero p{
  max-width:720px!important;
  color:var(--wxp02-text-2)!important;
  font-size:13px!important;
  line-height:1.85!important;
}
.weauty-wxp02.woocommerce-shop .weauty-shop-hero-actions{display:none!important}
.weauty-wxp02.woocommerce-shop .weauty-shop-perks{
  display:flex!important;
  max-width:420px!important;
  flex-wrap:wrap!important;
  justify-content:flex-end!important;
  gap:7px!important;
}
.weauty-wxp02.woocommerce-shop .weauty-shop-perk{
  min-height:34px!important;
  padding:7px 10px!important;
  border-color:var(--wxp02-border)!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.82)!important;
}
.weauty-wxp02.woocommerce-shop .weauty-shop-perk b{font-size:10.5px!important;font-weight:500!important}
.weauty-wxp02.tax-product_cat .weauty-shop-hero.weauty-phase06-category-hero{display:none!important}
.weauty-wxp02.tax-product_cat .hero-section{
  margin:0 auto 22px!important;
  padding:24px!important;
  width:min(1280px,calc(100% - 48px))!important;
  min-height:0!important;
  border:1px solid var(--wxp02-border)!important;
  border-radius:20px!important;
  background:linear-gradient(135deg,#fafafa,#fff)!important;
  box-sizing:border-box!important;
}
.weauty-wxp02.tax-product_cat .hero-section .entry-header{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  text-align:right!important;
}
.weauty-wxp02.tax-product_cat .hero-section .page-title{
  width:auto!important;
  max-width:100%!important;
  margin:7px 0 0!important;
  font-size:clamp(30px,3.2vw,42px)!important;
  font-weight:700!important;
  line-height:1.45!important;
  writing-mode:horizontal-tb!important;
  white-space:normal!important;
}

/* Listing shell and toolbar */
.weauty-wxp02 .wxp02-commerce-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  width:100%;
  margin:0 0 10px;
  padding:10px 12px;
  border:1px solid var(--wxp02-border);
  border-radius:14px;
  background:#fff;
  box-sizing:border-box;
}
.weauty-wxp02 .wxp02-result-count{
  display:flex;
  align-items:baseline;
  gap:5px;
  min-width:max-content;
  color:var(--wxp02-text-2);
  font-size:12px;
  line-height:1.5;
}
.weauty-wxp02 .wxp02-result-count strong{color:var(--wxp02-ink);font-size:14px;font-weight:700}
.weauty-wxp02 .wxp02-commerce-tools{display:flex;align-items:center;gap:8px;margin-inline-start:auto}
.weauty-wxp02 .wxp02-sort{
  position:relative;
  margin:0;
}
.weauty-wxp02 .wxp02-sort select{
  min-width:185px;
  height:44px;
  margin:0;
  padding:0 12px 0 34px;
  border:1px solid var(--wxp02-border);
  border-radius:11px;
  background:#fff;
  color:var(--wxp02-ink);
  font-family:inherit;
  font-size:12px;
  font-weight:500;
  line-height:1.4;
  cursor:pointer;
}
.weauty-wxp02 .wxp02-filter-trigger{
  display:none!important;
  min-width:112px!important;
  width:auto!important;
  min-height:44px!important;
  margin:0!important;
  padding:0 13px!important;
  border:1px solid var(--wxp02-border)!important;
  border-radius:11px!important;
  background:#fff!important;
  color:var(--wxp02-ink)!important;
  box-shadow:none!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  font-size:12px!important;
  font-weight:700!important;
}
.weauty-wxp02 .wxp02-filter-count{
  display:none;
  min-width:20px;
  height:20px;
  padding:0 5px;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:var(--wxp02-ink);
  color:#fff;
  font-size:10px;
}
.weauty-wxp02 .wxp02-filter-trigger[data-count]:not([data-count="0"]) .wxp02-filter-count{display:inline-flex}

/* Active filter chips */
.weauty-wxp02 .wxp02-active-filters{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin:0 0 14px;
}
.weauty-wxp02 .wxp02-active-filters[hidden]{display:none!important}
.weauty-wxp02 .wxp02-filter-chip,
.weauty-wxp02 .wxp02-clear-all{
  display:inline-flex;
  min-height:34px;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:5px 10px;
  border:1px solid var(--wxp02-border);
  border-radius:999px;
  background:#fff;
  color:var(--wxp02-ink);
  font-size:11px;
  font-weight:500;
  line-height:1.4;
  text-decoration:none!important;
}
.weauty-wxp02 .wxp02-filter-chip::after{content:"×";font-size:14px;color:#777}
.weauty-wxp02 .wxp02-clear-all{background:var(--wxp02-soft);color:var(--wxp02-text-2)}

/* Wide filter sidebar: calm, one-dimensional, not admin-form-like. */
@media (min-width:1200px){
  .weauty-wxp02.woocommerce-shop #sidebar,
  .weauty-wxp02.tax-product_cat #sidebar{padding:0!important}
  .weauty-wxp02.woocommerce-shop #sidebar .ct-sidebar,
  .weauty-wxp02.tax-product_cat #sidebar .ct-sidebar{
    position:static!important;
    top:auto!important;
  }
  .weauty-wxp02.woocommerce-shop #block-7,
  .weauty-wxp02.tax-product_cat #block-7{
    padding:16px!important;
    border:1px solid var(--wxp02-border)!important;
    border-radius:18px!important;
    background:#fff!important;
    box-shadow:0 8px 24px rgba(17,17,17,.035)!important;
  }
  .weauty-wxp02 #block-7 .weauty-filter-title{margin-bottom:12px!important}
  .weauty-wxp02 #block-7 .weauty-filter-title h3{font-size:17px!important;font-weight:700!important}
  .weauty-wxp02 #block-7 .weauty-filter-reset{font-size:10.5px!important;color:var(--wxp02-muted)!important}
  .weauty-wxp02 #block-7 .weauty-filters{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:9px!important;
  }
  .weauty-wxp02 #block-7 .weauty-filter-field{gap:4px!important}
  .weauty-wxp02 #block-7 .weauty-filter-label{font-size:11px!important;font-weight:500!important;color:var(--wxp02-text-2)!important}
  .weauty-wxp02 #block-7 .weauty-multiselect>summary{
    min-height:42px!important;
    padding:0 11px!important;
    border:1px solid var(--wxp02-border)!important;
    border-radius:10px!important;
    background:var(--wxp02-subtle)!important;
    font-size:12px!important;
    font-weight:500!important;
  }
  .weauty-wxp02 #block-7 .weauty-price-filter,
  .weauty-wxp02 #block-7 .weauty-filter-checks{
    grid-column:1/-1!important;
  }
  .weauty-wxp02 #block-7 .weauty-filters>button[type=submit]{
    grid-column:1/-1!important;
    min-height:44px!important;
    border-radius:11px!important;
    background:var(--wxp02-ink)!important;
    font-weight:700!important;
  }
}

/* Laptop + tablet + mobile: product grid gets the width, filters become a drawer. */
@media (max-width:1199px){
  .weauty-wxp02.woocommerce-shop #main>.ct-container[data-sidebar],
  .weauty-wxp02.tax-product_cat #main>.ct-container[data-sidebar]{
    grid-template-columns:minmax(0,1fr)!important;
  }
  .weauty-wxp02.woocommerce-shop #sidebar,
  .weauty-wxp02.tax-product_cat #sidebar{display:none!important}
  .weauty-wxp02 .wxp02-filter-trigger{display:inline-flex!important}
  .weauty-wxp02.woocommerce-shop ul.products,
  .weauty-wxp02.tax-product_cat ul.products{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:16px 12px!important;
  }
}
@media (max-width:899px){
  .weauty-wxp02.woocommerce-shop ul.products,
  .weauty-wxp02.tax-product_cat ul.products{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:14px 10px!important;
  }
}

/* Drawer */
.weauty-wxp02 .wxp02-filter-overlay{
  position:fixed;
  inset:0;
  z-index:1000002;
  display:none;
  align-items:stretch;
  justify-content:flex-start;
  padding:0;
  background:rgba(17,17,17,.38);
  backdrop-filter:blur(2px);
}
.weauty-wxp02 .wxp02-filter-overlay.is-open{display:flex}
.weauty-wxp02 .wxp02-filter-panel{
  display:flex;
  flex-direction:column;
  width:min(430px,92vw);
  height:100%;
  margin:0 0 0 auto;
  overflow:hidden;
  background:#fff;
  box-shadow:0 18px 60px rgba(0,0,0,.2);
  direction:rtl;
}
.weauty-wxp02 .wxp02-drawer-head{
  display:grid;
  grid-template-columns:44px minmax(0,1fr) auto;
  align-items:center;
  gap:9px;
  min-height:68px;
  padding:12px 14px;
  border-bottom:1px solid var(--wxp02-border);
}
.weauty-wxp02 .wxp02-drawer-close{
  display:inline-flex;
  width:44px;
  height:44px;
  align-items:center;
  justify-content:center;
  border:1px solid var(--wxp02-border);
  border-radius:11px;
  background:#fff;
  color:var(--wxp02-ink);
  font-size:22px;
  cursor:pointer;
}
.weauty-wxp02 .wxp02-drawer-title{min-width:0}
.weauty-wxp02 .wxp02-drawer-title strong{display:block;font-size:16px;font-weight:700;line-height:1.5}
.weauty-wxp02 .wxp02-drawer-title span{display:block;color:var(--wxp02-muted);font-size:11px;line-height:1.5}
.weauty-wxp02 .wxp02-drawer-clear{
  display:inline-flex;
  min-height:40px;
  align-items:center;
  padding:0 10px;
  color:var(--wxp02-text-2);
  font-size:11px;
  font-weight:500;
  text-decoration:none!important;
}
.weauty-wxp02 .wxp02-filter-panel-body{
  flex:1;
  overflow:auto;
  padding:14px;
  overscroll-behavior:contain;
}
.weauty-wxp02 .wxp02-filter-panel .weauty-filters{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:13px!important;
  margin:0!important;
}
.weauty-wxp02 .wxp02-filter-panel .weauty-filter-field{display:grid!important;gap:6px!important}
.weauty-wxp02 .wxp02-filter-panel .weauty-filter-label{
  color:var(--wxp02-text-2)!important;
  font-size:12px!important;
  font-weight:500!important;
}
.weauty-wxp02 .wxp02-filter-panel details.weauty-multiselect{
  width:100%;
}
.weauty-wxp02 .wxp02-filter-panel details.weauty-multiselect>summary{
  display:flex!important;
  min-height:46px!important;
  align-items:center!important;
  justify-content:space-between!important;
  padding:0 12px!important;
  border:1px solid var(--wxp02-border)!important;
  border-radius:11px!important;
  background:var(--wxp02-subtle)!important;
  font-size:13px!important;
  font-weight:500!important;
}
.weauty-wxp02 .wxp02-filter-panel .weauty-multiselect-menu{
  position:static!important;
  width:auto!important;
  max-height:240px!important;
  margin-top:6px!important;
  padding:5px!important;
  overflow:auto!important;
  border:1px solid var(--wxp02-border)!important;
  border-radius:10px!important;
  box-shadow:none!important;
}
.weauty-wxp02 .wxp02-filter-panel .weauty-multiselect-option{
  min-height:42px!important;
  padding:8px!important;
  border-radius:8px!important;
  font-size:13px!important;
  font-weight:400!important;
}
.weauty-wxp02 .wxp02-filter-panel .weauty-price-filter,
.weauty-wxp02 .wxp02-filter-panel .weauty-filter-checks{
  grid-column:1/-1!important;
}
.weauty-wxp02 .wxp02-filter-panel .weauty-filter-check{
  min-height:44px!important;
  border:1px solid var(--wxp02-border)!important;
  border-radius:10px!important;
  background:var(--wxp02-subtle)!important;
  padding:9px 10px!important;
  font-weight:400!important;
}
.weauty-wxp02 .wxp02-filter-panel .weauty-filters>button[type=submit]{
  position:static!important;
  bottom:auto!important;
  z-index:auto!important;
  grid-column:1/-1!important;
  width:100%!important;
  min-height:48px!important;
  margin-top:4px!important;
  border:0!important;
  border-radius:12px!important;
  background:var(--wxp02-ink)!important;
  color:#fff!important;
  box-shadow:0 -10px 22px rgba(255,255,255,.9)!important;
  font-size:14px!important;
  font-weight:700!important;
}
body.weauty-wxp02.wxp02-filter-open{overflow:hidden!important}

/* Zero-result recovery */
.weauty-wxp02 .woocommerce-no-products-found>.woocommerce-info{display:none!important}
.weauty-wxp02 .wxp02-zero-recovery{
  display:grid;
  justify-items:center;
  gap:8px;
  width:min(720px,100%);
  margin:28px auto 46px;
  padding:34px 24px;
  border:1px solid var(--wxp02-border);
  border-radius:20px;
  background:var(--wxp02-subtle);
  text-align:center;
}
.weauty-wxp02 .wxp02-zero-mark{
  display:grid;
  width:42px;
  height:42px;
  place-items:center;
  border:1px solid var(--wxp02-border-strong);
  border-radius:50%;
  color:var(--wxp02-muted);
  font-size:24px;
}
.weauty-wxp02 .wxp02-zero-recovery h2{
  margin:3px 0 0!important;
  color:var(--wxp02-ink)!important;
  font-size:22px!important;
  font-weight:700!important;
  line-height:1.55!important;
}
.weauty-wxp02 .wxp02-zero-recovery p{
  margin:0!important;
  color:var(--wxp02-text-2)!important;
  font-size:13px!important;
  line-height:1.8!important;
}
.weauty-wxp02 .wxp02-zero-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
  margin-top:10px;
}
.weauty-wxp02 .wxp02-zero-actions a{
  display:inline-flex;
  min-height:44px;
  align-items:center;
  justify-content:center;
  padding:8px 13px;
  border:1px solid var(--wxp02-border);
  border-radius:11px;
  background:#fff;
  color:var(--wxp02-ink);
  font-size:12px;
  font-weight:500;
  text-decoration:none!important;
}
.weauty-wxp02 .wxp02-zero-actions .wxp02-zero-clear{background:var(--wxp02-ink);color:#fff;border-color:var(--wxp02-ink)}

/* Mobile density */
@media (max-width:689px){
  .weauty-wxp02.woocommerce-shop .weauty-shop-hero{
    width:auto!important;
    grid-template-columns:1fr!important;
    margin:0 12px 14px!important;
    padding:19px 16px!important;
    text-align:right!important;
    border-radius:17px!important;
  }
  .weauty-wxp02.woocommerce-shop .weauty-shop-hero .weauty-shop-hero-heading{font-size:27px!important}
  .weauty-wxp02.woocommerce-shop .weauty-shop-hero p{font-size:12.5px!important;line-height:1.8!important}
  .weauty-wxp02.woocommerce-shop .weauty-shop-perks{display:none!important}
  .weauty-wxp02.tax-product_cat .hero-section{
    width:auto!important;
    margin:0 12px 14px!important;
    padding:18px 16px!important;
    border-radius:17px!important;
  }
  .weauty-wxp02.tax-product_cat .hero-section .page-title{font-size:30px!important}
  .weauty-wxp02 .wxp02-commerce-bar{
    display:grid;
    grid-template-columns:1fr;
    gap:9px;
    margin:0 0 9px;
    padding:10px;
    border-radius:13px;
  }
  .weauty-wxp02 .wxp02-result-count{padding-inline:2px}
  .weauty-wxp02 .wxp02-commerce-tools{
    display:grid;
    grid-template-columns:1fr 1fr;
    width:100%;
    gap:8px;
  }
  .weauty-wxp02 .wxp02-filter-trigger{width:100%!important;min-width:0!important;min-height:46px!important}
  .weauty-wxp02 .wxp02-sort select{width:100%;min-width:0;height:46px}
  .weauty-wxp02 .wxp02-active-filters{
    gap:6px;
    margin-bottom:10px;
    overflow-x:auto;
    flex-wrap:nowrap;
    padding-bottom:2px;
    scrollbar-width:none;
  }
  .weauty-wxp02 .wxp02-active-filters::-webkit-scrollbar{display:none}
  .weauty-wxp02 .wxp02-filter-chip,
  .weauty-wxp02 .wxp02-clear-all{
    flex:0 0 auto;
    min-height:36px;
  }
  .weauty-wxp02 ul.products>li.weauty-product-card{
    padding:6px!important;
    border-radius:15px!important;
  }
  .weauty-wxp02 ul.products>li.weauty-product-card>figure,
  .weauty-wxp02 ul.products>li.weauty-product-card figure>a,
  .weauty-wxp02 ul.products>li.weauty-product-card img{border-radius:11px!important}
  .weauty-wxp02 ul.products>li.weauty-product-card .woocommerce-loop-product__title{
    min-height:40px!important;
    margin:7px 2px 0!important;
    font-size:12.5px!important;
    line-height:1.55!important;
  }
  .weauty-wxp02 ul.products>li.weauty-product-card .price{
    min-height:27px!important;
    margin:2px 2px 0!important;
    font-size:12px!important;
  }
  .weauty-wxp02 ul.products>li.weauty-product-card .price ins{font-size:12.5px!important}
  .weauty-wxp02 ul.products>li.weauty-product-card .ct-woo-card-actions{padding:0 2px!important}
  .weauty-wxp02 ul.products>li.weauty-product-card a.button,
  .weauty-wxp02 ul.products>li.weauty-product-card a.ct-button{
    min-height:31px!important;
    margin:1px 0 0!important;
    font-size:10.5px!important;
  }
  .weauty-wxp02 .wxp02-filter-panel{width:min(100%,390px)}
  .weauty-wxp02 .wxp02-zero-recovery{margin:18px 0 34px;padding:28px 16px;border-radius:17px}
  .weauty-wxp02 .wxp02-zero-recovery h2{font-size:19px!important}
}

/* WXP-01 Search is frozen: no selectors here rewrite its overlay/results. */

@media (prefers-reduced-motion:reduce){
  .weauty-wxp02 ul.products>li.weauty-product-card,
  .weauty-wxp02 ul.products>li.weauty-product-card img,
  .weauty-wxp02 ul.products>li.weauty-product-card a.button::after{
    transition:none!important;
    transform:none!important;
  }
  .weauty-wxp02 .wxp02-filter-overlay{backdrop-filter:none}
}


/* WXP-02 v1.0.1 refinement */
/* Home rails: enforce the same 3:4 media contract even against legacy home inline rules. */
body.weauty-wxp02.home .weauty-product-scroll ul.products>li.weauty-product-card figure a.ct-media-container img.wp-post-image,
body.weauty-wxp02.home .weauty-product-scroll ul.products>li.weauty-product-card img.wp-post-image{
  aspect-ratio:3/4!important;
  object-fit:cover!important;
}

/* Category identity stays compact; legacy theme min-height must not force a 350px banner. */
body.weauty-wxp02.tax-product_cat .hero-section{
  min-height:0!important;
  height:auto!important;
}

/* Tablet Shop: keep the server-rendered native H1 and suppress the late-moved widget hero.
   This removes the historical 690–999px relocation jump without touching Phase06. */
@media (min-width:690px) and (max-width:999px){
  body.weauty-wxp02.woocommerce-shop .weauty-shop-hero{
    display:none!important;
  }
  body.weauty-wxp02.woocommerce-shop .hero-section{
    min-height:0!important;
    height:auto!important;
    margin:0 0 20px!important;
    padding:0!important;
  }
  body.weauty-wxp02.woocommerce-shop .hero-section>.entry-header{
    display:block!important;
    width:min(100% - 48px,1280px)!important;
    margin:0 auto!important;
    padding:18px 20px!important;
    box-sizing:border-box!important;
    border:1px solid var(--wxp02-border)!important;
    border-radius:18px!important;
    background:linear-gradient(135deg,#fafafa,#fff)!important;
    text-align:right!important;
  }
  body.weauty-wxp02.woocommerce-shop .hero-section .page-title{
    display:block!important;
    width:auto!important;
    margin:0!important;
    color:var(--wxp02-ink)!important;
    font-size:30px!important;
    font-weight:700!important;
    line-height:1.5!important;
  }
}

/* The old 465px mobile reservation matched the old tall hero.
   Reserve the new compact hero's real footprint instead so CLS protection remains intentional. */
@media (max-width:689px){
  body.weauty-wxp02.woocommerce-shop .hero-section{
    min-height:190px!important;
  }

  body.weauty-wxp02.home .weauty-product-scroll ul.products>li.weauty-product-card{
    padding:6px!important;
    border-radius:15px!important;
  }
  body.weauty-wxp02.home .weauty-product-scroll ul.products>li.weauty-product-card>figure,
  body.weauty-wxp02.home .weauty-product-scroll ul.products>li.weauty-product-card figure>a,
  body.weauty-wxp02.home .weauty-product-scroll ul.products>li.weauty-product-card img{
    border-radius:11px!important;
  }
  body.weauty-wxp02.home .weauty-product-scroll ul.products>li.weauty-product-card .woocommerce-loop-product__title{
    min-height:40px!important;
    margin:7px 2px 0!important;
    font-size:12.5px!important;
    line-height:1.55!important;
  }
  body.weauty-wxp02.home .weauty-product-scroll ul.products>li.weauty-product-card .price{
    min-height:34px!important;
    margin:2px 2px 0!important;
    font-size:12px!important;
  }
  body.weauty-wxp02.home .weauty-product-scroll ul.products>li.weauty-product-card .price ins{
    font-size:12.5px!important;
  }

  /* Dedicated collection pages use the same deliberate two-column mobile density as PLP. */
  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{
    width:auto!important;
    min-width:0!important;
  }

  .weauty-wxp02 .wxp02-filter-panel .weauty-multiselect-option{
    min-height:44px!important;
  }
}


/* WXP-02 v1.0.2 stabilization */
.wxp02-mobile-search{display:none!important}

body.weauty-wxp02.tax-product_cat .hero-section>.entry-header,
body.weauty-wxp02.tax-product_cat .hero-section .entry-header{
  min-height:0!important;
  height:auto!important;
}

@media (min-width:690px) and (max-width:999px){
  body.weauty-wxp02.woocommerce-shop .hero-section>.entry-header{
    min-height:0!important;
    height:auto!important;
  }
}

@media (max-width:689px){
  /* All mobile Shop controls are now server-rendered, so no late-injection reservation is needed. */
  body.weauty-wxp02.woocommerce-shop .hero-section{
    min-height:190px!important;
    margin-bottom:14px!important;
  }
  body.weauty-wxp02.woocommerce-shop .wxp02-mobile-search{
    display:block!important;
    margin:0 23px 10px!important;
  }
  body.weauty-wxp02.woocommerce-shop .wxp02-commerce-bar .wxp02-filter-trigger{
    display:inline-flex!important;
    visibility:visible!important;
    opacity:1!important;
  }
  body.weauty-wxp02.wxp02-collection-page ul.products>li.weauty-product-card{
    min-height:334px!important;
  }
}


/* WXP-02 v1.0.3 legacy isolation */
body.weauty-wxp02.woocommerce-shop .weauty-mobile-search.wxp02-phase11-marker{
  display:none!important;
  width:0!important;
  height:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
}

@media (max-width:689px){
  body.weauty-wxp02.woocommerce-shop .wxp02-mobile-search{
    display:block!important;
    width:auto!important;
    margin:0 23px 10px!important;
    padding:0!important;
    box-sizing:border-box!important;
    direction:rtl!important;
  }
  body.weauty-wxp02.woocommerce-shop .wxp02-mobile-search .weauty-product-search{
    margin:0!important;
  }
  body.weauty-wxp02.woocommerce-shop .wxp02-mobile-search label{
    display:block!important;
    margin:0 0 7px!important;
    font-size:13px!important;
    font-weight:500!important;
    line-height:1.5!important;
  }
  body.weauty-wxp02.woocommerce-shop .wxp02-mobile-search .weauty-search-row{
    display:flex!important;
    gap:8px!important;
  }
  body.weauty-wxp02.woocommerce-shop .wxp02-mobile-search input[type=search]{
    flex:1!important;
    min-width:0!important;
    height:48px!important;
    padding:0 12px!important;
    border:1px solid var(--wxp02-border-strong)!important;
    border-radius:11px!important;
    background:#fff!important;
    color:var(--wxp02-ink)!important;
    font:inherit!important;
    font-size:14px!important;
    box-sizing:border-box!important;
  }
  body.weauty-wxp02.woocommerce-shop .wxp02-mobile-search button{
    display:flex!important;
    width:48px!important;
    min-width:48px!important;
    height:48px!important;
    align-items:center!important;
    justify-content:center!important;
    padding:0!important;
    border:0!important;
    border-radius:11px!important;
    background:var(--wxp02-ink)!important;
    color:#fff!important;
    font-size:18px!important;
    box-shadow:none!important;
  }
}


/* WXP-02 v1.0.4 consolidated stability */
/* Final reserve values measured with the consolidated single-layer build. */
@media (min-width:1000px){
  body.weauty-wxp02.woocommerce-shop .hero-section{
    min-height:158px!important;
    height:auto!important;
  }
}
@media (max-width:689px){
  body.weauty-wxp02.woocommerce-shop .hero-section{
    min-height:170px!important;
    height:auto!important;
    margin-bottom:14px!important;
    overflow:visible!important;
  }
  body.weauty-wxp02.woocommerce-shop .hero-section>.weauty-shop-hero{
    min-height:170px!important;
    box-sizing:border-box!important;
  }
  body.weauty-wxp02.tax-product_cat .hero-section{
    padding:16px!important;
  }
}


/* WXP02 unified product-card numeral typography */
html body.weauty-wxp02 ul.products > li.weauty-product-card .price,
html body.weauty-wxp02 ul.products > li.weauty-product-card .price *,
html body.weauty-wxp02 ul.products > li.weauty-product-card .onsale,
html body.weauty-wxp02 ul.products > li.weauty-product-card .weauty-sale-percent-badge,
html body.weauty-wxp02.single-product .weauty-style-card-price,
html body.weauty-wxp02.single-product .weauty-style-card-price *{
  font-family:var(--weauty-font-family,"IRANYekanWEAUTY",Tahoma,Arial,sans-serif)!important;
}


/* WXP02 r4 exact Style-With numeral typography for all product cards */
html body.weauty-wxp02 ul.products > li.weauty-product-card .price,
html body.weauty-wxp02 ul.products > li.weauty-product-card .price ins,
html body.weauty-wxp02 ul.products > li.weauty-product-card .price .woocommerce-Price-amount,
html body.weauty-wxp02 ul.products > li.weauty-product-card .price ins .woocommerce-Price-amount,
html body.weauty-wxp02.single-product .weauty-style-card-price,
html body.weauty-wxp02.single-product .weauty-style-card-price .woocommerce-Price-amount{
  font-family:var(--weauty-font-family,"IRANYekanWEAUTY",Tahoma,Arial,sans-serif)!important;
  font-size:12px!important;
  font-weight:700!important;
  font-feature-settings:"kern" 1!important;
  font-variant-numeric:normal!important;
  letter-spacing:0!important;
  line-height:1.5!important;
}
html body.weauty-wxp02 ul.products > li.weauty-product-card .price del,
html body.weauty-wxp02 ul.products > li.weauty-product-card .price del .woocommerce-Price-amount{
  font-family:var(--weauty-font-family,"IRANYekanWEAUTY",Tahoma,Arial,sans-serif)!important;
  font-size:10.5px!important;
  font-weight:400!important;
  font-feature-settings:"kern" 1!important;
  font-variant-numeric:normal!important;
  letter-spacing:0!important;
}

/* WXP02 mobile/Safari numeral parity: explicit glyph descendants match Style-With exactly. */
html body.weauty-wxp02 ul.products > li.weauty-product-card .price > .woocommerce-Price-amount,
html body.weauty-wxp02 ul.products > li.weauty-product-card .price > .woocommerce-Price-amount bdi,
html body.weauty-wxp02 ul.products > li.weauty-product-card .price > .woocommerce-Price-amount .woocommerce-Price-currencySymbol,
html body.weauty-wxp02 ul.products > li.weauty-product-card .price ins .woocommerce-Price-amount,
html body.weauty-wxp02 ul.products > li.weauty-product-card .price ins .woocommerce-Price-amount bdi,
html body.weauty-wxp02 ul.products > li.weauty-product-card .price ins .woocommerce-Price-currencySymbol{
  font-family:var(--weauty-font-family,"IRANYekanWEAUTY",Tahoma,Arial,sans-serif)!important;
  font-size:12px!important;
  font-weight:700!important;
  line-height:1.5!important;
  font-feature-settings:"kern" 1!important;
  font-variant-numeric:normal!important;
  letter-spacing:0!important;
}
html body.weauty-wxp02 ul.products > li.weauty-product-card .price del .woocommerce-Price-amount,
html body.weauty-wxp02 ul.products > li.weauty-product-card .price del .woocommerce-Price-amount bdi,
html body.weauty-wxp02 ul.products > li.weauty-product-card .price del .woocommerce-Price-currencySymbol{
  font-family:var(--weauty-font-family,"IRANYekanWEAUTY",Tahoma,Arial,sans-serif)!important;
  font-size:10.5px!important;
  font-weight:400!important;
  line-height:1.5!important;
  font-feature-settings:"kern" 1!important;
  font-variant-numeric:normal!important;
  letter-spacing:0!important;
}


/* PDP-independent product search: do not reserve the Shop hero height when no hero exists. */
body.search.search-results.post-type-archive-product #main .hero-section{
  min-height:0!important;
  height:auto!important;
  margin-bottom:18px!important;
}
