
/* ===== Scoped base (ONLY this module) ===== */
#wholesale-hero-v40{
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
#wholesale-hero-v40 *{ box-sizing:border-box; }
#wholesale-hero-v40 img{ display:block; max-width:100%; }

/* ===== Hero container (Big-screen friendly like ps-hero-v2) ===== */
#wholesale-hero-v40 .hero{
  position:relative;
  width:100%;
  max-width:1920px;
  margin:0 auto 48px;
  overflow:hidden;
  border-radius:12px;

  /* ✅ Reference logic */
  min-height:500px;
  height:min(100svh, 680px);  /* ✅ cap 680px, adapt to viewport */
}

/* ===== Image layer ===== */
#wholesale-hero-v40 .hero__img-box{
  position:absolute;
  inset:0;
  z-index:0;
  overflow:hidden;
}
#wholesale-hero-v40 .hero__img{
  width:100%;
  height:100%;
  object-fit:cover;

  transform:scale(1);
  transition:transform .7s ease;
  will-change:transform;
}

/* ===== Overlay (keep your simpler overlay, can be upgraded later) ===== */
#wholesale-hero-v40 .hero__overlay{
  position:absolute;
  inset:0;
  z-index:1;
  background:rgba(0,0,0,0.18);
  pointer-events:none;
}

/* ===== Content ===== */
#wholesale-hero-v40 .hero__content{
  position:absolute;
  inset:0;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:0 20px;

  /* ✅ keeps full-area hover working */
  pointer-events:none;
}
#wholesale-hero-v40 .hero__content-inner{
  width:100%;
  max-width:1100px;
  margin:0 auto;
}

/* ===== Typography (CeilingFanHub Standard) ===== */
#wholesale-hero-v40 .hero__title{
  margin:0 0 26px 0; /* ✅ 24–28px */
  color:#fff;
  font-weight:600;
  font-size:clamp(52px, 4.2vw, 68px);
  line-height:1.12;
  letter-spacing:-0.015em;
  text-shadow:0 2px 4px rgba(0,0,0,.30);
}
#wholesale-hero-v40 .hero__subtitle{
  margin:0 auto 34px auto; /* ✅ 32–36px */
  color:#fff;
  font-weight:400;
  font-size:clamp(20px, 1.6vw, 26px);
  line-height:1.55;
  max-width:58ch;
  text-shadow:0 2px 4px rgba(0,0,0,.30);
}

/* ===== CTA (Standard) ===== */
#wholesale-hero-v40 .hero__btn{
  pointer-events:auto;        /* ✅ clickable */
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding:14px 24px;
  border-radius:10px;
  text-decoration:none;
  cursor:pointer;

  font-size:17px;
  font-weight:600;
  line-height:1;
  color:#fff;

  background:#8B4513;
  border:1px solid #8B4513;
  transition:transform .18s ease, box-shadow .2s ease, background-color .18s ease, border-color .18s ease;
  white-space:nowrap;
}
#wholesale-hero-v40 .hero__btn:hover{
  background:#6d350f;
  border-color:#6d350f;
  transform:translateY(-1px);
  box-shadow:0 6px 16px rgba(0,0,0,0.18);
}

/* ===== Hover zoom (DESKTOP ONLY, full area) ===== */
@media (hover:hover) and (pointer:fine){
  #wholesale-hero-v40 .hero:hover .hero__img{
    transform:scale(1.08); /* ✅ align with ps-hero-v2 feel */
  }
}

/* ===== Mobile (≤768px) ===== */
@media (max-width:768px){
  #wholesale-hero-v40 .hero{
    min-height:460px;
    height:min(100svh, 620px); /* ✅ reference logic */
    border-radius:10px;
    margin:0 auto 32px;
  }

  #wholesale-hero-v40 .hero__title{
    font-size:clamp(34px, 6vw, 44px);
    margin-bottom:18px;
  }
  #wholesale-hero-v40 .hero__subtitle{
    font-size:clamp(16px, 4.2vw, 20px);
    margin-bottom:24px;
    max-width:44ch; /* ✅ mobile tighter */
  }

  #wholesale-hero-v40 .hero__btn{
    width:100%;
    max-width:340px;
    white-space:normal;
    text-align:center;
  }
}
