/* yhcplay — Play-Asia–inspired dense retail chrome (original brand) */
:root{
  --yhc-navy:#002D72;
  --yhc-text:#333333;
  --yhc-light:#F8F9FA;
  --yhc-sale:#FF4B4B;
  --yhc-success:#27972C;
  --yhc-radius:8px;
}
body{font-family:Inter,system-ui,-apple-system,sans-serif;color:var(--yhc-text);background:#fff;margin:0}
a{color:var(--yhc-navy);text-decoration:none}
a:hover{opacity:.85}
.yhc-wrap{max-width:1200px;margin:0 auto;padding:0 16px}
.yhc-topbar{background:var(--yhc-navy);color:#fff;padding:10px 0}
.yhc-topbar a{color:#fff}
.yhc-topbar-inner{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.yhc-logo{font-weight:700;font-size:1.45rem;letter-spacing:-.02em;white-space:nowrap}
.yhc-search{flex:1;display:flex;min-width:200px;max-width:520px}
.yhc-search input[type=search]{flex:1;border:0;border-radius:var(--yhc-radius) 0 0 var(--yhc-radius);padding:10px 12px;font-size:14px}
.yhc-search button{background:#001f52;color:#fff;border:0;padding:10px 16px;border-radius:0 var(--yhc-radius) var(--yhc-radius) 0;cursor:pointer;font-weight:600}
.yhc-util{display:flex;gap:14px;align-items:center;font-size:13px;flex-wrap:wrap}
.yhc-util a{opacity:.95}

/* util current page */
.yhc-util a.is-active,
.yhc-util a[aria-current="page"]{
  opacity:1!important;
  font-weight:700;
  position:relative;
  padding:4px 8px;
  border-radius:4px;
  background:rgba(255,255,255,.18);
  box-shadow:inset 0 -2px 0 #fff;
}
.yhc-util a.is-active:hover,
.yhc-util a[aria-current="page"]:hover{opacity:1!important}

.yhc-lang{opacity:.8;border-left:1px solid rgba(255,255,255,.25);padding-left:12px}
.yhc-catbar{background:#001f52;border-top:1px solid rgba(255,255,255,.08);position:relative;z-index:40}
.yhc-catnav{display:flex;gap:4px;flex-wrap:wrap;padding:0;align-items:stretch;position:relative}
.yhc-menu-item{position:static}
.yhc-menu-top{display:inline-flex;align-items:center;gap:4px;color:#fff;font-size:13px;font-weight:500;padding:10px 12px;border-radius:0;text-decoration:none;white-space:nowrap}
.yhc-menu-item:hover > .yhc-menu-top,
.yhc-menu-top:hover{background:rgba(255,255,255,.12)}
.yhc-caret{font-size:10px;opacity:.85}
.yhc-submenu{
  display:none;
  position:absolute;
  left:0;right:0;
  top:100%;
  background:#fff;
  color:#333;
  border-bottom:3px solid #002D72;
  box-shadow:0 12px 28px rgba(0,0,0,.18);
  padding:18px 24px 22px;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:18px 28px;
  z-index:50;
}
.yhc-menu-item:hover > .yhc-submenu,
.yhc-menu-item:focus-within > .yhc-submenu{display:grid}
.yhc-submenu-title{font-size:12px;font-weight:700;color:#002D72;margin:0 0 8px;letter-spacing:.02em}
.yhc-submenu a{display:block;color:#333;font-size:13px;font-weight:500;padding:6px 0;border-radius:0;text-decoration:none}
.yhc-submenu a:hover{color:#002D72;background:transparent;text-decoration:underline}
.yhc-sale-link{background:#FF4B4B!important;border-radius:999px!important;margin:6px 0 6px 8px!important;padding:6px 14px!important}
.yhc-sale-link:hover{filter:brightness(1.05)}
@media (max-width:768px){
  .yhc-submenu{position:relative;left:auto;right:auto;top:auto;box-shadow:none;border:0;padding:8px 12px 12px;background:#00163d}
  .yhc-submenu-title{color:#9eb6ff}
  .yhc-submenu a{color:#fff}
  .yhc-menu-item:hover > .yhc-submenu{display:none}
  .yhc-menu-item.is-open > .yhc-submenu{display:grid}
}
.yhc-sale-link{background:var(--yhc-sale)!important;font-weight:700!important}

.yhc-btn{display:inline-block;background:var(--yhc-navy);color:#fff!important;padding:10px 20px;border-radius:var(--yhc-radius);font-weight:600;border:0;cursor:pointer}
.yhc-btn:hover{opacity:.9}
.yhc-btn-sale{background:var(--yhc-sale)!important}

/* Woo product cards */
:not(.premium-woo-products-inner) > ul.products{display:grid!important;grid-template-columns:repeat(4,1fr);gap:16px;list-style:none;padding:0;margin:0!important}
/* Woo clearfix ::before/::after become rogue first grid cells — remove */
:not(.premium-woo-products-inner) > ul.products::before,
:not(.premium-woo-products-inner) > ul.products::after,
.woocommerce:not(.premium-woocommerce) ul.products::before,
.woocommerce:not(.premium-woocommerce) ul.products::after{content:none!important;display:none!important}
:not(.premium-woo-products-inner) > ul.products.columns-3{grid-template-columns:repeat(3,1fr)}
:not(.premium-woo-products-inner) > ul.products.columns-2{grid-template-columns:repeat(2,1fr)}
@media(max-width:900px){
  :not(.premium-woo-products-inner) > ul.products,
  :not(.premium-woo-products-inner) > ul.products.columns-3,
  :not(.premium-woo-products-inner) > ul.products.columns-4{grid-template-columns:repeat(2,1fr)}
}
:not(.premium-woo-products-inner) > ul.products li.product{width:auto!important;margin:0!important;float:none!important;clear:none!important;border:1px solid #e8eaed;border-radius:var(--yhc-radius);overflow:hidden;background:#fff;padding:0 0 12px!important;transition:box-shadow .15s}
:not(.premium-woo-products-inner) > ul.products li.product:hover{box-shadow:0 6px 18px rgba(0,0,0,.08)}
:not(.premium-woo-products-inner) > ul.products li.product img{border-radius:0;margin:0!important}
:not(.premium-woo-products-inner) > ul.products li.product .woocommerce-loop-product__title{font-size:14px!important;padding:8px 12px 4px;color:var(--yhc-text)}
:not(.premium-woo-products-inner) > ul.products li.product .price{padding:0 12px;color:var(--yhc-navy);font-weight:600}
:not(.premium-woo-products-inner) > ul.products li.product .price del{opacity:.55;font-weight:400}
:not(.premium-woo-products-inner) > ul.products li.product .price ins{text-decoration:none;color:var(--yhc-sale)}
:not(.premium-woo-products-inner) > ul.products li.product .button,:not(.premium-woo-products-inner) > ul.products li.product .add_to_cart_button{margin:8px 12px 0;border-radius:var(--yhc-radius);background:var(--yhc-navy)!important;color:#fff!important}
/* Sale flash — Play-Asia style top-left % pill */
.onsale,
span.onsale,
.shopengine-cl-badge .onsale,
:not(.premium-woo-products-inner) > ul.products li.product .onsale,
.woocommerce:not(.premium-woocommerce) ul.products li.product .onsale,
.shopengine-archive-products .product .onsale{
  position:absolute!important;
  top:10px!important;
  left:10px!important;
  right:auto!important;
  bottom:auto!important;
  z-index:12!important;
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  min-width:0!important;
  min-height:0!important;
  width:auto!important;
  height:auto!important;
  margin:0!important;
  padding:4px 10px!important;
  border-radius:999px!important;
  background:#FF4B4B!important;
  background-color:var(--yhc-sale,#FF4B4B)!important;
  color:#fff!important;
  font-size:12px!important;
  font-weight:700!important;
  line-height:1.2!important;
  letter-spacing:.02em;
  box-shadow:0 2px 6px rgba(0,0,0,.18);
}
.shopengine-archive-products__left-image,
.shopengine-archive-products .archive-product-container,
.shopengine-archive-products ul.products li.product,
:not(.premium-woo-products-inner) > ul.products li.product{
  position:relative;
}
.shopengine-cl-badge{
  position:absolute!important;
  top:10px!important;
  left:10px!important;
  z-index:12!important;
  margin:0!important;
  pointer-events:none;
}
.shopengine-cl-badge .onsale{
  position:static!important;
  top:auto!important;
  left:auto!important;
}

.yhc-payments{text-align:center}
.yhc-pay-row{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:8px}
.yhc-pay{display:inline-block;padding:8px 14px;border:1px solid #d0d5dd;border-radius:var(--yhc-radius);font-size:12px;font-weight:700;color:var(--yhc-navy);background:#fff}
/* Footer chrome payments (dark) */
.yhc-chrome-footer .yhc-payments{padding:8px 0 28px;border-top:1px solid rgba(255,255,255,.1)}
.yhc-chrome-footer .yhc-pay-label{color:#fff;font-weight:700;font-size:14px;margin-bottom:10px}
.yhc-chrome-footer .yhc-pay{border-color:rgba(255,255,255,.25);color:#fff;background:rgba(255,255,255,.08)}
.yhc-chrome-footer .yhc-pay-note{font-size:12px;opacity:.65;margin:12px 0 0;color:#c9d4e8}

.yhc-footer{background:#0b1a33;color:#c9d4e8;padding:40px 0 0;margin-top:24px}
.yhc-footer a{color:#e8eef8}
.yhc-footer h4{color:#fff;margin:0 0 12px;font-size:15px}
.yhc-footer-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;padding-bottom:28px}
@media(max-width:800px){.yhc-footer-grid{grid-template-columns:1fr 1fr}}
.yhc-footer ul{list-style:none;padding:0;margin:0}
.yhc-footer li{margin:6px 0;font-size:13px}
.yhc-copy{border-top:1px solid rgba(255,255,255,.1);padding:16px;font-size:12px;opacity:.8}

/* Dense Elementor canvas tweaks */
.elementor-section.elementor-section-boxed>.elementor-container{max-width:1200px}
.page-content,.site-main{padding:0!important}


/* yhcplay PLP promo carousel — taller, PA-like ~440px cover banner */
/* PLP feature carousel — left cat rail + cards, step one (not homepage) */
.yhc-plp-feature{
  display:grid;
  grid-template-columns:180px minmax(0,1fr);
  gap:12px;
  align-items:stretch;
  width:100%;
  max-width:100%;
  margin:0 0 14px;
  padding:0;
  box-sizing:border-box;
}
.yhc-plp-feature__rail{
  background:#f4f7fc;
  border:1px solid #e3e9f2;
  border-radius:8px;
  padding:10px 0 8px;
  min-height:100%;
}
.yhc-plp-feature__rail-title{
  padding:2px 14px 8px;
  font-size:13px;
  font-weight:700;
  color:#002D72;
}
.yhc-plp-feature__rail-list{
  list-style:none;
  margin:0;
  padding:0;
}
.yhc-plp-feature__rail-list li{margin:0}
.yhc-plp-feature__rail-link{
  display:block;
  padding:7px 14px;
  font-size:13px;
  color:#334155;
  text-decoration:none;
  border-left:3px solid transparent;
}
.yhc-plp-feature__rail-link:hover{background:#eaf0fa;color:#002D72}
.yhc-plp-feature__rail-link.is-active{
  background:#e8eefc;
  color:#002D72;
  font-weight:700;
  border-left-color:#1e6bff;
}
.yhc-plp-feature__stage{
  position:relative;
  min-width:0;
  padding:0 36px;
  box-sizing:border-box;
}
.yhc-plp-feature__viewport{
  overflow:hidden;
  width:100%;
}
.yhc-plp-feature__track{
  display:flex;
  gap:12px;
  width:max-content;
  transform:translate3d(0,0,0);
  transition:transform .35s ease;
  will-change:transform;
}
.yhc-plp-feature__card{
  position:relative;
  flex:0 0 calc((100vw - 180px - 24px - 72px - 48px) / 2);
  width:calc((100% - 12px) / 2);
  min-width:240px;
  max-width:420px;
  margin:0;
  border-radius:10px;
  overflow:hidden;
  background:#0b1e3d;
  aspect-ratio:3 / 4;
  max-height:440px;
  box-shadow:0 4px 16px rgba(0,30,70,.12);
}
/* Prefer stage-based width: 2 cards in viewport */
.yhc-plp-feature__stage .yhc-plp-feature__card{
  flex-basis:calc((100% - 12px) / 2);
  width:calc((100% - 12px) / 2);
  min-width:0;
  max-width:none;
}
.yhc-plp-feature__viewport{position:relative}
.yhc-plp-feature__track{
  /* card basis relative to viewport via JS width; CSS fallback: */
}
.yhc-plp-feature__stage .yhc-plp-feature__viewport{
  /* establish containing block for % flex-basis calc via resize JS; fixed formula: */
}
.yhc-plp-feature__link{
  display:block;
  position:relative;
  width:100%;
  height:100%;
  text-decoration:none;
  color:#fff;
}
.yhc-plp-feature__bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center top;
  display:block;
}
.yhc-plp-feature__shade{
  position:absolute;
  left:0;right:0;bottom:0;
  height:48%;
  background:linear-gradient(180deg, rgba(0,18,45,0) 0%, rgba(0,18,45,.55) 42%, rgba(0,18,45,.88) 100%);
  pointer-events:none;
  z-index:1;
}
.yhc-plp-feature__body{
  position:absolute;
  left:0;right:0;bottom:0;
  z-index:2;
  padding:16px 14px 18px;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:10px;
}
.yhc-plp-feature__title{
  margin:0;
  font-size:clamp(14px,1.5vw,18px);
  font-weight:800;
  line-height:1.25;
  letter-spacing:.02em;
  text-transform:uppercase;
  color:#fff;
  text-shadow:0 2px 8px rgba(0,0,0,.35);
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  max-width:100%;
}
.yhc-plp-feature__cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:132px;
  height:34px;
  padding:0 16px;
  border-radius:6px;
  background:#1e6bff;
  color:#fff;
  font-size:13px;
  font-weight:700;
}
.yhc-plp-feature__link:hover .yhc-plp-feature__cta{filter:brightness(.95)}
/* PLP feature arrows — Play-Asia style blue circle + white chevron */
.yhc-plp-feature__nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:5;
  width:42px;
  height:42px;
  border:0;
  border-radius:50%;
  background:#1a73e8;
  cursor:pointer;
  box-shadow:0 2px 10px rgba(0,40,120,.28);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
}
.yhc-plp-feature__nav:hover{background:#0b5fd4}
.yhc-plp-feature__prev{left:0}
.yhc-plp-feature__next{right:0}
.yhc-plp-feature__prev::before,
.yhc-plp-feature__next::before{
  content:"";
  display:block;
  width:11px;
  height:11px;
  border-top:2.5px solid #fff;
  border-right:2.5px solid #fff;
  box-sizing:border-box;
}
.yhc-plp-feature__prev::before{transform:rotate(-135deg); margin-left:3px}
.yhc-plp-feature__next::before{transform:rotate(45deg); margin-right:3px}
.yhc-plp-feature__stage{padding:0 48px}
.yhc-plp-feature__dots{
  display:flex;
  justify-content:center;
  gap:7px;
  margin-top:10px;
}
.yhc-plp-feature__dot{
  width:18px;
  height:3px;
  border:0;
  border-radius:2px;
  padding:0;
  background:#c9d4e6;
  cursor:pointer;
}
.yhc-plp-feature__dot.is-active{background:#1e6bff}
@media (max-width:900px){
  .yhc-plp-feature{grid-template-columns:150px minmax(0,1fr);gap:10px}
}
@media (max-width:768px){
  .yhc-plp-feature{grid-template-columns:1fr;gap:10px}
  .yhc-plp-feature__rail{display:none}
  .yhc-plp-feature__stage{padding:0 32px}
  .yhc-plp-feature__stage .yhc-plp-feature__card{
    flex-basis:100%;
    width:100%;
    max-height:380px;
  }
}


/* PLP: drop redundant big title above feature (rail already shows current cat) */
body.tax-product_cat .elementor-widget-shopengine-archive-title,
body.post-type-archive-product .elementor-widget-shopengine-archive-title{
  display:none!important;
}
.yhc-plp-feature{margin-top:0!important}

/* Hide legacy PLP heroes */
.yhc-plp-hero,
.yhc-plp-gallery{display:none!important}



/* P0: active filter chips */
.yhc-active-filters{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0 14px;padding:10px 12px;background:#F3F6FB;border:1px solid #E5E7EB;border-radius:8px}
.yhc-af-label{font-size:13px;font-weight:700;color:#002D72}
.yhc-af-chip{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;background:#fff;border:1px solid #CBD5E1;font-size:12px;color:#334155}
.yhc-af-clear{margin-left:auto;font-size:13px;font-weight:600;color:#DC2626;text-decoration:none}
.yhc-af-clear:hover{text-decoration:underline}

/* P0: mobile filter panel */
.yhc-mobile-filter-toggle{display:none;margin:8px 0 12px;padding:10px 16px;border:0;border-radius:8px;background:#002D72;color:#fff;font-weight:700;font-size:14px;cursor:pointer}
.yhc-filter-backdrop{display:none}
.yhc-filter-close{display:none;width:100%;margin:0 0 12px;padding:10px;border:0;border-radius:8px;background:#E11D48;color:#fff;font-weight:700;cursor:pointer}
@media (max-width:768px){
  .yhc-mobile-filter-toggle{display:inline-flex;align-items:center}
  .yhc-filter-panel-host,
  .elementor-widget-woofilters{
    position:fixed!important;left:0;top:0;bottom:0;width:min(92vw,360px);z-index:10050;
    background:#fff;padding:16px;overflow:auto;box-shadow:8px 0 24px rgba(0,0,0,.2);
    transform:translateX(-105%);transition:transform .2s ease;display:block!important
  }
  html.yhc-filter-open .yhc-filter-panel-host,
  html.yhc-filter-open .elementor-widget-woofilters{transform:translateX(0)}
  html.yhc-filter-open .yhc-filter-backdrop{display:block;position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:10040}
  html.yhc-filter-open .yhc-filter-close{display:block}
  /* Keep product grid usable when sidebar is off-canvas */
  .elementor-widget-woofilters .wpfMainWrapper{max-width:100%}
}

/* Buy Now base — PDP visual polish lives in pdp.css only */
body:not(.single-product) .wpcbn-btn-single,
body:not(.single-product) .single_add_to_cart_button.wpcbn-btn{
  background:#E11D48!important;border-color:#E11D48!important;color:#fff!important;margin-left:8px
}
form.cart{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
form.cart .quantity{margin-right:4px}
form.cart .wpcbn-btn-single{order:3}

/* yhcplay PLP equal-height + ATC bottom — ALL shop/archive/category cards */
.shopengine-archive-products:not(.shopengine-archive-products--view-list) ul.products{
  align-items:stretch!important;
  display:grid!important;
}
.shopengine-archive-products:not(.shopengine-archive-products--view-list) ul.products > li.product,
.shopengine-archive-products:not(.shopengine-archive-products--view-list) ul.products .archive-product-container{
  display:flex!important;
  flex-direction:column!important;
  height:100%!important;
  align-self:stretch!important;
}
.shopengine-archive-products ul.products .shopengine-archive-mode-grid{
  display:flex!important;
  flex-direction:column!important;
  flex:1 1 auto!important;
  height:100%!important;
  margin:0!important;
  padding:0!important;
  list-style:none!important;
}
.shopengine-archive-products ul.products .shopengine-archive-products__left-image{
  display:flex!important;
  flex-direction:column!important;
  flex:1 1 auto!important;
  width:100%!important;
  float:none!important;
  height:auto!important;
  min-height:0;
}
.shopengine-archive-products ul.products .shopengine-archive-products__left-image a.woocommerce-LoopProduct-link,
.shopengine-archive-products ul.products .shopengine-archive-products__left-image a[title="Archive Product Left Image"]{
  display:block!important;
  width:100%!important;
  aspect-ratio:1/1;
  overflow:hidden;
  background:#f3f4f6;
}
.shopengine-archive-products ul.products .shopengine-archive-products__left-image a[title="Archive Product Left Image"] img,
.shopengine-archive-products ul.products .shopengine-archive-products__left-image a.woocommerce-LoopProduct-link img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  margin:0!important;
}

/* Content column grows; footer sticks to bottom */
.shopengine-archive-products .shopengine-cl-content,
.shopengine-archive-products .shopengine-archive-products__left-image{
  display:flex!important;
  flex-direction:column!important;
  flex:1 1 auto!important;
  min-height:0;
}
.shopengine-archive-products .shopengine-cl-rating,
.shopengine-archive-products .woocommerce-product-rating,
.shopengine-archive-products .shopengine-product-rating-review-count{
  display:none!important;
}
.shopengine-archive-products .shopengine-cl-title,
.shopengine-archive-products .woocommerce-loop-product__title,
.shopengine-archive-products li.product .woocommerce-loop-product__title{
  display:-webkit-box!important;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden!important;
  min-height:2.6em!important;
  max-height:2.6em!important;
  line-height:1.3!important;
  margin:8px 10px 4px!important;
  padding:0!important;
  font-size:14px!important;
  word-break:break-word;
  text-transform:none!important;
}
.shopengine-archive-products .shopengine-cl-price,
.shopengine-archive-products li.product .price,
.shopengine-archive-products .price{
  margin:0 10px 6px!important;
  min-height:42px!important;
  display:flex!important;
  align-items:flex-start!important;
  flex-wrap:wrap!important;
  gap:4px;
}

/* Footer: icons row + full-width ATC — sitewide ShopEngine cards */


/* ============================================================
   yhcplay ATC — ONE clean layout for all product cards
   wishlist + quickview on one row, full-width navy 加入购物车 below
   ============================================================ */

/* Equal-height ShopEngine archive cards */
.shopengine-archive-products:not(.shopengine-archive-products--view-list) ul.products{
  display:grid!important;
  align-items:stretch!important;
  gap:16px!important;
}
.shopengine-archive-products:not(.shopengine-archive-products--view-list) ul.products.columns-4{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.shopengine-archive-products:not(.shopengine-archive-products--view-list) ul.products.columns-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.shopengine-archive-products:not(.shopengine-archive-products--view-list) ul.products.columns-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}

.shopengine-archive-products ul.products > li.archive-product-container{
  display:flex!important;
  flex-direction:column!important;
  height:auto!important;
  margin:0!important;
  float:none!important;
  width:auto!important;
}
.shopengine-archive-products ul.shopengine-archive-mode-grid{
  display:flex!important;
  flex-direction:column!important;
  flex:1 1 auto!important;
  width:100%!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  list-style:none!important;
}
.shopengine-archive-products li.shopengine-archive-products__left-image{
  display:flex!important;
  flex-direction:column!important;
  flex:1 1 auto!important;
  width:100%!important;
  margin:0!important;
  float:none!important;
  list-style:none!important;
}
/* Force visual order: image on top, then content+actions (beat Elementor row/wrap) */
.shopengine-archive-products .archive-product-container,
.shopengine-archive-products .shopengine-archive-mode-grid,
.shopengine-archive-products li.shopengine-archive-products__left-image,
.shopengine-archive-products .shopengine-cl-content,
.elementor-160 .shopengine-archive-products .products .product,
.elementor-161 .shopengine-archive-products .products .product,
.shopengine-archive-products.shopengine-hover-disable .products .product{
  display:flex!important;
  flex-direction:column!important;
  flex-wrap:nowrap!important;
  align-items:stretch!important;
}
.shopengine-archive-products li.shopengine-archive-products__left-image > a{
  order:1!important;
  display:block!important;
  width:100%!important;
  flex:0 0 auto!important;
}
.shopengine-archive-products li.shopengine-archive-products__left-image > .shopengine-cl-content{
  order:2!important;
  flex:1 1 auto!important;
  width:100%!important;
}
.shopengine-archive-products li.shopengine-archive-products__left-image > a img{display:block;width:100%;height:auto}
.shopengine-archive-products li.shopengine-archive-products__left-image > a img{display:block;width:100%;height:auto}

.shopengine-archive-products .shopengine-cl-content{
  display:flex!important;
  flex-direction:column!important;
  flex:1 1 auto!important;
  width:100%!important;
}
.shopengine-archive-products .shopengine-cl-title,
.shopengine-archive-products .woocommerce-loop-product__title{
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
  min-height:2.7em!important;
  max-height:2.7em!important;
}
.shopengine-archive-products .shopengine-cl-excerpt{
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
  min-height:2.6em!important;
  max-height:2.6em!important;
  font-size:12px!important;
  opacity:.75;
}
.shopengine-archive-products .shopengine-cl-category,
.shopengine-archive-products ul.product-categories{display:none!important}

/* Actions: icons row + full-width ATC */
.shopengine-archive-products .shopengine-cl-add-to-cart{
  margin-top:auto!important;
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:8px!important;
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  padding:8px 10px 12px!important;
}
.shopengine-archive-products .shopengine-cl-add-to-cart > a.shopengine-wishlist,
.shopengine-archive-products .shopengine-cl-add-to-cart > a.shopengine_add_to_list_action,
.shopengine-archive-products .shopengine-cl-add-to-cart > a.shopengine-quickview-trigger{
  flex:0 0 32px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:32px!important;
  height:32px!important;
  margin:0!important;
  color:#002D72!important;
  opacity:1!important;
  visibility:visible!important;
  font-size:16px!important;
}
.shopengine-archive-products .shopengine-cl-add-to-cart > a.button,
.shopengine-archive-products .shopengine-cl-add-to-cart > a.add_to_cart_button{
  flex:1 0 100%!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-width:100%!important;
  height:36px!important;
  max-height:36px!important;
  margin:0!important;
  box-sizing:border-box!important;
  background:#002D72!important;
  background-color:#002D72!important;
  color:#fff!important;
  border:0!important;
  border-radius:6px!important;
  font-size:12.5px!important;
  font-weight:700!important;
  writing-mode:horizontal-tb!important;
  white-space:nowrap!important;
}
.shopengine-archive-products .shopengine-cl-add-to-cart > a.shopengine-comparison,
.shopengine-archive-products .shopengine-cl-add-to-cart > .shopengine_comparison_add_to_list_action,
.shopengine-comparison,
.shopengine_comparison_add_to_list_action,
a.shopengine-comparison{display:none!important}


/* Hide nested classic product duplicate inside ShopEngine custom cards */
.shopengine-archive-products ul.shopengine-archive-mode-grid > li.product{
  display:none!important;
}

/* Force wishlist/QV visible even if ShopEngine marks cart-only */
.shopengine-archive-products .shopengine-cart-only .shopengine-wishlist,
.shopengine-archive-products .shopengine-cart-only .shopengine-quickview-trigger,
.shopengine-archive-products .shopengine-cl-add-to-cart > a.shopengine-wishlist,
.shopengine-archive-products .shopengine-cl-add-to-cart > a.shopengine_add_to_list_action,
.shopengine-archive-products .shopengine-cl-add-to-cart > a.shopengine-quickview-trigger{
  display:inline-flex!important;
  visibility:visible!important;
  opacity:1!important;
  width:32px!important;
  height:32px!important;
  color:#002D72!important;
  font-size:18px!important;
  line-height:1!important;
}
.shopengine-archive-products .shopengine-cl-add-to-cart > a.shopengine-wishlist i,
.shopengine-archive-products .shopengine-cl-add-to-cart > a.shopengine-quickview-trigger i,
.shopengine-archive-products .shopengine-cl-add-to-cart > a.shopengine-wishlist i::before,
.shopengine-archive-products .shopengine-cl-add-to-cart > a.shopengine-quickview-trigger i::before{
  display:inline-block!important;
  visibility:visible!important;
  opacity:1!important;
  font-size:18px!important;
  line-height:1!important;
  color:#002D72!important;
}


/* Icon glyphs via unicode — do not rely on ShopEngine font alone */
.shopengine-archive-products .shopengine-cl-add-to-cart > a.shopengine-wishlist,
.shopengine-archive-products .shopengine-cl-add-to-cart > a.shopengine_add_to_list_action,
.shopengine-archive-products .shopengine-cl-add-to-cart > a.shopengine-quickview-trigger{
  position:relative!important;
  z-index:2!important;
  overflow:visible!important;
  flex:0 0 36px!important;
  width:36px!important;
  height:36px!important;
  min-width:36px!important;
  min-height:36px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  color:#002D72!important;
  opacity:1!important;
  visibility:visible!important;
  background:#fff!important;
  border:1px solid #d7dee8!important;
  border-radius:6px!important;
  box-sizing:border-box!important;
}
.shopengine-archive-products .shopengine-cl-add-to-cart > a.shopengine-wishlist i,
.shopengine-archive-products .shopengine-cl-add-to-cart > a.shopengine-quickview-trigger i{
  display:none!important;
}
.shopengine-archive-products .shopengine-cl-add-to-cart > a.shopengine-wishlist::before,
.shopengine-archive-products .shopengine-cl-add-to-cart > a.shopengine_add_to_list_action::before{
  content:"♥"!important;
  font-family:Arial,sans-serif!important;
  font-size:16px!important;
  line-height:1!important;
  color:#002D72!important;
  speak:normal!important;
}
.shopengine-archive-products .shopengine-cl-add-to-cart > a.shopengine-quickview-trigger::before{
  content:"◎"!important;
  font-family:Arial,sans-serif!important;
  font-size:14px!important;
  line-height:1!important;
  color:#002D72!important;
  speak:normal!important;
}

/* Related products */
.single-product .related ul.products li.product{
  display:grid!important;
  grid-template-columns:32px 32px 1fr!important;
  grid-template-rows:auto auto auto!important;
  column-gap:8px!important;row-gap:8px!important;align-items:center!important;
}
.single-product .related ul.products li.product > a.woocommerce-LoopProduct-link{
  grid-column:1 / -1!important;grid-row:1!important;
}
.single-product .related ul.products li.product > a.shopengine-wishlist,
.single-product .related ul.products li.product > a.shopengine_add_to_list_action{
  grid-column:1!important;grid-row:2!important;
  display:inline-flex!important;width:32px!important;height:32px!important;
  color:#002D72!important;opacity:1!important;visibility:visible!important;margin:0!important;
}
.single-product .related ul.products li.product > a.shopengine-quickview-trigger{
  grid-column:2!important;grid-row:2!important;
  display:inline-flex!important;width:32px!important;height:32px!important;
  color:#002D72!important;opacity:1!important;visibility:visible!important;margin:0!important;
}
.single-product .related ul.products li.product > a.button,
.single-product .related ul.products li.product > a.add_to_cart_button{
  grid-column:1 / -1!important;grid-row:3!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;height:36px!important;margin:0!important;
  background:#002D72!important;background-color:#002D72!important;color:#fff!important;
  border:0!important;border-radius:6px!important;
}

/* Hide breadcrumbs */
.woocommerce-breadcrumb,nav.woocommerce-breadcrumb,.shopengine-breadcrumbs,
.elementor-widget-shopengine-breadcrumbs,.yoast-breadcrumbs,.rank-math-breadcrumb,
.elementor-widget-breadcrumbs,.ast-breadcrumbs-wrapper,.breadcrumb-trail,
nav[aria-label="Breadcrumb"],nav[aria-label="breadcrumb"],
.shopengine-widget .shopengine-breadcrumb{display:none!important}

/* ========== ARCHIVE CARD FLOW FIX (no flex-shrink collapse) ========== */
.shopengine-archive-products:not(.shopengine-archive-products--view-list) ul.products{
  display:grid!important;
  align-items:stretch!important;
  row-gap:28px!important;
  column-gap:16px!important;
}
.shopengine-archive-products ul.products > li.archive-product-container{
  display:flex!important;
  flex-direction:column!important;
  height:100%!important;
  overflow:visible!important;
  background:#fff!important;
  position:relative!important;
  margin:0!important;
  float:none!important;
  width:auto!important;
}
.shopengine-archive-products ul.shopengine-archive-mode-grid{
  display:block!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  list-style:none!important;
  position:relative!important;
}
.shopengine-archive-products ul.shopengine-archive-mode-grid > li.product{
  display:none!important;
}
.shopengine-archive-products li.shopengine-archive-products__left-image{
  display:block!important;
  height:auto!important;
  width:100%!important;
  margin:0!important;
  float:none!important;
  list-style:none!important;
  position:relative!important;
  flex:none!important;
}
.shopengine-archive-products li.shopengine-archive-products__left-image > a[title="Archive Product Left Image"],
.shopengine-archive-products li.shopengine-archive-products__left-image > a.woocommerce-LoopProduct-link{
  display:block!important;
  width:100%!important;
  aspect-ratio:1 / 1!important;
  overflow:hidden!important;
  position:relative!important;
  flex:none!important;
}
.shopengine-archive-products li.shopengine-archive-products__left-image > a img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}
.shopengine-archive-products li.shopengine-archive-products__left-image > .shopengine-cl-content{
  display:block!important;
  width:100%!important;
  height:auto!important;
  flex:none!important;
  position:relative!important;
  background:#fff!important;
  padding-top:8px!important;
}
.shopengine-archive-products .shopengine-cl-add-to-cart{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:8px!important;
  width:100%!important;
  margin:8px 0 0!important;
  padding:8px 10px 12px!important;
  box-sizing:border-box!important;
  position:relative!important;
  background:#fff!important;
}
.shopengine-archive-products .shopengine-cl-add-to-cart > a.shopengine-wishlist,
.shopengine-archive-products .shopengine-cl-add-to-cart > a.shopengine_add_to_list_action,
.shopengine-archive-products .shopengine-cl-add-to-cart > a.shopengine-quickview-trigger{
  display:inline-flex!important;
  visibility:visible!important;
  opacity:1!important;
  position:static!important;
  float:none!important;
  width:36px!important;
  height:36px!important;
  align-items:center!important;
  justify-content:center!important;
  background:#fff!important;
  border:1px solid #d7dee8!important;
  border-radius:6px!important;
  color:#002D72!important;
  order:1!important;
}
.shopengine-archive-products .shopengine-cl-add-to-cart > a.shopengine-wishlist i,
.shopengine-archive-products .shopengine-cl-add-to-cart > a.shopengine-quickview-trigger i{display:none!important}
.shopengine-archive-products .shopengine-cl-add-to-cart > a.shopengine-wishlist::before,
.shopengine-archive-products .shopengine-cl-add-to-cart > a.shopengine_add_to_list_action::before{
  content:"♥"!important;font-family:Arial,sans-serif!important;font-size:16px!important;color:#002D72!important;
}
.shopengine-archive-products .shopengine-cl-add-to-cart > a.shopengine-quickview-trigger::before{
  content:"◎"!important;font-family:Arial,sans-serif!important;font-size:16px!important;color:#002D72!important;
}
.shopengine-archive-products .shopengine-cl-add-to-cart > a.button,
.shopengine-archive-products .shopengine-cl-add-to-cart > a.add_to_cart_button{
  display:inline-flex!important;
  flex:1 0 100%!important;
  order:2!important;
  width:100%!important;
  height:36px!important;
  align-items:center!important;
  justify-content:center!important;
  background:#002D72!important;
  color:#fff!important;
  border:0!important;
  border-radius:6px!important;
  writing-mode:horizontal-tb!important;
  position:static!important;
}
.shopengine-archive-products .shopengine-comparison{display:none!important}


/* Product card titles: max 2 lines + ellipsis (user-approved CSS for this only) */
.premium-woo-products-inner .woocommerce-loop-product__title,
.premium-woo-products .woocommerce-loop-product__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  /* Fixed 2-line box. Premium Equal Height sets inline min-height from outerHeight(true)
     (includes the title's 8px top/bottom margins), which made the box ~2.8 lines tall and
     exposed a 3rd line under the ellipsis. Pinning to exactly 2 lines keeps every title the
     same height, so price + Add to Cart stay aligned. Equal Height setting is left on. */
  height: calc(1.4em * 2);
  min-height: calc(1.4em * 2) !important;
  max-height: calc(1.4em * 2);
}
