/* ================================
   BLH HEADER OPTIMIZATION - SLAZE
   (Paste into slaze-child/style.css)
================================ */

/* 1) Logo size */
.theme_header__area-menubar-left-logo img {
  max-height: 60px; /* 你可以改 56 / 64 */
  width: auto;
  display: block;
}

/* 2) Sticky header + background + shadow + padding */
.theme_header__area {
  top: 0;
  z-index: 999;
  background: #fff;
  padding: 16px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* 3) Menu spacing + typography (TOP LEVEL ONLY) */
.theme_header__area-menubar-center-menu > ul {
  display: flex;
  align-items: center;
  gap: 32px; /* 菜单之间距离：可改 28 / 36 */
  margin: 0;
  padding: 0;
  list-style: none;
}

.theme_header__area-menubar-center-menu > ul > li > a {
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

/* 4) Dropdown core fix:
      - Prevent dropdown from being forced into flex
      - Fix vertical text issue
*/
.theme_header__area-menubar-center-menu ul ul {
  display: block;
  min-width: 220px;
}

.theme_header__area-menubar-center-menu ul ul li a {
  white-space: nowrap;
  writing-mode: horizontal-tb;
}

/* 5) Dropdown style enhancement (optional but nice) */
.theme_header__area-menubar-center-menu ul ul {
  background: #fff;
  border-radius: 12px;
  padding: 12px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.theme_header__area-menubar-center-menu ul ul li a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  background: transparent;
  border-radius: 0;
}

.theme_header__area-menubar-center-menu ul ul li a:hover {
  background: #f3f4f6;
}

/* 6) Contact as CTA button (TOP LEVEL LAST ITEM ONLY)
      - Prevent affecting dropdown items
*/
.theme_header__area-menubar-center-menu > ul > li:last-child > a {
  background: linear-gradient(90deg, #0ea5e9, #22c55e);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  display: inline-block;
}

.theme_header__area-menubar-center-menu > ul > li:last-child > a:hover {
  opacity: 0.9;
}

/* 7) HARD SAFETY:
      Ensure dropdown items NEVER become CTA pill (fix your "last item looks weird" issue)
*/
.theme_header__area-menubar-center-menu ul ul li a {
  background: transparent !important;
  border-radius: 0 !important;
  padding: 10px 20px !important;
  display: block !important;
  color: inherit !important;
}


/* ================================
   EV CHARGER PRODUCT CARD (FINAL)
   ================================ */

/* 1. 整张卡片 */
.blh-ev-card{
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* 2. 整张卡片可点击（a 包住） */
.blh-ev-link{
  display: block;
  color: inherit;
  text-decoration: none;
}

.blh-ev-link:hover{
  text-decoration: none;
}

/* 3. 产品图片 hover 轻微放大（高级感） */
.blh-ev-card img{
  transition: transform .35s ease;
}

.blh-ev-card:hover img{
  transform: scale(1.04);
}

/* 4. 产品标题（可选微调） */
.blh-ev-card h3,
.blh-ev-card h4{
  margin-bottom: 8px;
}

/* 5. View Details 按钮：默认隐藏 */
.blh-ev-btn{
  opacity: 0;
  transform: translateY(8px);
  transition: all .25s ease;
  pointer-events: none;
}

/* 6. Hover 卡片才显示按钮 */
.blh-ev-card:hover .blh-ev-btn{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* 7. View Details 按钮样式 */
.blh-ev-btn .elementor-button{
  width: 100%;
  max-width: 220px;
  margin-top: 10px;
  background: #222;
  border: 1px solid #000;
  color: #fff;
  padding: 12px 20px;
  font-size: 14px;
  letter-spacing: 1px;
  transition: all .25s ease;
}

/* 8. Button hover（反白） */
.blh-ev-btn .elementor-button:hover{
  background: #000;
  color: #fff;
}

/* =========================================================
   BLH – EV CHARGER (SHOP / PRODUCT ARCHIVE) FINAL CSS
   - Image hover zoom
   - Hide price (no space)
   - Equal image + title height
   - View Details shows on hover (and closer to title)
========================================================= */

/* =========================
   1) PRODUCT CARD 基础
========================= */
body.post-type-archive-product .product__item{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  text-align:center !important;
}

/* =========================
   2) IMAGE AREA + HOVER ZOOM
   DOM: .product__thumb > img.wp-post-image
========================= */
body.post-type-archive-product .product__thumb{
  overflow:hidden !important; /* 放大不溢出 */
}

/* 统一图片尺寸（对齐用） */
body.post-type-archive-product .product__thumb img{
  height:260px !important;
  width:100% !important;
  object-fit:contain !important;
  margin-bottom:14px !important;

  /* hover 动画准备 */
  transform:scale(1);
  transition:transform .28s ease;
  will-change:transform;
}

/* Hover 整张卡片时，图片放大一点 */
body.post-type-archive-product .product__item:hover .product__thumb img{
  transform:scale(1.07);
}

/* =========================
   3) CONTENT AREA（标题+按钮区）
   不用固定高度也能对齐：靠标题 min-height
========================= */
body.post-type-archive-product .product__item .product__content{
  width:100% !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  min-height:0 !important; /* ✅ 以你最后的需求为准：不要多余高度 */
}

/* =========================
   4) TITLE HEIGHT UNIFY
========================= */
body.post-type-archive-product .product__item .product__title,
body.post-type-archive-product .product__item .woocommerce-loop-product__title{
  min-height:4.8em !important;
  line-height:1.35 !important;
  margin:0 !important;          /* 去掉默认下方空白 */
  margin-bottom:0 !important;   /* 双保险：不要空隙 */
}

/* =========================
   5) PRICE – 完全隐藏（不占位）
========================= */
body.post-type-archive-product .product__item .product__price,
body.post-type-archive-product .product__item .price,
body.post-type-archive-product .product__item .woocommerce-Price-amount,
body.post-type-archive-product .product__item .amount,
body.post-type-archive-product .product__item del,
body.post-type-archive-product .product__item ins{
  display:none !important;
}

/* =========================
   6) VIEW DETAILS – Hover 才出现
   位置：更靠近标题（margin-top:0）
========================= */
body.post-type-archive-product .product__item .blh-view-details-wrap{
  width:100% !important;
  display:flex !important;
  justify-content:center !important;

  margin-top:0 !important; /* ✅ 你最后的需求：更靠近标题 */

  opacity:0 !important;
  visibility:hidden !important;
  transform:translateY(8px) !important;
  transition:opacity .25s ease, transform .25s ease !important;
  pointer-events:none !important;
}

body.post-type-archive-product .product__item:hover .blh-view-details-wrap{
  opacity:1 !important;
  visibility:visible !important;
  transform:translateY(0) !important;
  pointer-events:auto !important;
}

