/* ============================================================
   EraSmart Home V3 — Editorial premium pass
   Language: warm paper + ink black, single restrained amber,
   light-weight display numerals, hairline dividers, no boxes.
   Scope: .hm-* + legacy overrides under .hm-page
   ============================================================ */

:root {
  --hm-orange: #ff6a00;
  --hm-orange-dark: #e85d00;
  --hm-orange-ink: #c94f00;
  --hm-orange-soft: #fff3ea;
  --hm-ink: #141414;
  --hm-paper: #fafaf9;
  --hm-paper-2: #f4f3f0;
  --hm-gray: #4a4a4c;
  --hm-gray-light: #6e6e73;
  --hm-line: rgba(20, 20, 20, .08);
  --hm-radius: 12px;
  --hm-shadow-soft: 0 1px 2px rgba(17, 17, 17, .04);
  --hm-shadow-lift: 0 18px 44px rgba(17, 17, 17, .12);
  --hm-font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.hm-page,
.hm-page .hm-hero-brand,
.hm-page .hm-section,
.hm-page .hm-usp,
.hm-page .hm-dark {
  font-family: var(--hm-font);
}

/* ---------- 1. HERO — cinematic ink ---------- */
.hm-hero-brand {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #141414 0%, #191919 55%, #101010 100%);
  padding: 96px 0 104px;
}
.hm-watermark {
  position: absolute;
  right: -1%;
  bottom: -3%;
  font-size: clamp(110px, 15vw, 210px);
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .06);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.hm-hero-glow {
  position: absolute;
  width: 520px;
  height: 280px;
  right: 6%;
  top: 10%;
  background: radial-gradient(closest-side, rgba(255, 106, 0, .14), transparent);
  filter: blur(10px);
  pointer-events: none;
}
.hm-hero-wrap { position: relative; z-index: 2; }
.hm-hero-title {
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 700;
  color: #fff;
  line-height: 1.06;
  letter-spacing: -.025em;
  margin: 20px 0 22px;
}
.hm-hero-title span {
  color: var(--hm-orange);
}
.hm-hero-sub {
  font-size: 15px;
  font-weight: 400;
  color: #a7a7ac;
  line-height: 1.75;
  max-width: 470px;
  margin: 0 0 34px;
}
.hm-hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hm-hero-trust {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .10);
  padding-top: 20px;
}
.hm-hero-trust span {
  color: #d4d4d8;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
}
.hm-hero-trust i.bi {
  color: var(--hm-orange);
  margin-right: 7px;
}
.hm-hero-visual {
  position: relative;
  margin: 0 auto;
  max-width: 600px;
}
.hm-hero-shot {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  background: #fff;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .5);
}
@media (max-width: 992px) {
  .hm-hero-brand { padding: 60px 0 64px; }
  .hm-hero-title { font-size: 34px; }
  .hm-hero-visual { max-width: 460px; }
  .hm-watermark { display: none; }
}

/* ---------- Section rhythm (editorial) ---------- */
.hm-section { padding: 84px 0 78px; }
.hm-section.hm-steps { background: var(--hm-paper); }
.hm-section.hm-blog { background: var(--hm-paper); }
.hm-head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 56px;
}
.hm-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--hm-orange-ink);
  background: transparent;
  border: 1px solid rgba(201, 79, 0, .35);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hm-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--hm-ink);
  margin: 0 0 12px;
  line-height: 1.18;
  letter-spacing: -.015em;
}
.hm-sub {
  font-size: 14.5px;
  color: var(--hm-gray-light);
  margin: 0;
  line-height: 1.7;
}
@media (max-width: 768px) {
  .hm-section { padding: 52px 0 48px; }
  .hm-title { font-size: 24px; }
  .hm-head { margin-bottom: 34px; }
}

/* ---------- 2. USP — hairline editorial strip ---------- */
.hm-usp {
  padding: 0;
  background: #fff;
  border-bottom: 1px solid var(--hm-line);
}
.hm-usp-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 30px 8px;
}
.hm-usp-item i.bi {
  flex: 0 0 auto;
  color: var(--hm-orange);
  font-size: 22px;
}
.hm-usp-item b {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--hm-ink);
  line-height: 1.3;
  letter-spacing: .01em;
}
.hm-usp-item span {
  display: block;
  font-size: 12px;
  color: var(--hm-gray-light);
  margin-top: 3px;
}

/* ---------- 3. Product tabs ---------- */
.hm-tabs-wrap { position: relative; }
.hm-tabs {
  justify-content: center;
  gap: 6px;
  border-bottom: 1px solid var(--hm-line);
  margin-bottom: 36px;
}
.hm-tab {
  border: 0;
  background: none;
  font-family: var(--hm-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--hm-gray-light);
  padding: 12px 22px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  transition: color .25s, border-color .25s;
}
.hm-tab:hover { color: var(--hm-ink); }
.hm-tab.active {
  color: var(--hm-ink);
  border-bottom-color: var(--hm-orange);
}
.hm-viewall {
  position: absolute;
  right: 0;
  top: 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--hm-gray);
  text-decoration: none;
  transition: color .25s;
}
.hm-viewall:hover { color: var(--hm-orange-dark, #e85d00); }
.hm-viewall i.bi { font-size: 12px; margin-left: 2px; }

/* Product cards — de-boxed: tile image, no card chrome */
.hm-page .product-grid-item {
  background: transparent;
  border-radius: var(--hm-radius);
  transition: transform .35s;
  height: 100%;
}
.hm-page .product-grid-item:hover { transform: translateY(-4px); }
.hm-page .product-grid-item .image {
  background: var(--hm-paper-2, #f4f3f0);
  border-radius: var(--hm-radius);
  overflow: hidden;
  transition: box-shadow .35s;
}
.hm-page .product-grid-item:hover .image {
  box-shadow: 0 10px 30px rgba(17, 17, 17, .1);
}
.hm-page .product-grid-item .image img {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: contain;
  padding: 18px;
}
.hm-page .product-grid-item .product-item-info { text-align: left; padding: 14px 4px 0; }
.hm-page .product-grid-item .product-item-info .product-name {
  color: var(--hm-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  white-space: normal;
  text-overflow: clip;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(2 * 1.45em);
  margin: 0 0 10px;
}
.hm-page .product-grid-item .product-item-info .product-name a { color: inherit; }
.hm-page .product-grid-item .product-item-info .product-name a:hover {
  color: var(--hm-orange-ink);
  text-decoration: none;
}
/* prices in ink; legacy pink/red neutralized */
.hm-page .product-grid-item .product-item-info .product-price .price-new {
  color: var(--hm-ink);
  font-weight: 700;
  font-size: 15px;
}
.hm-page .product-grid-item .product-item-info .product-price .price-old {
  color: var(--hm-gray-light);
  margin-right: 8px;
}
/* persistent outline add-to-cart */
.hm-page .product-grid-item .product-bottom { position: static; overflow: visible; }
.hm-page .product-grid-item .product-bottom-btns { transform: none; margin-top: 12px; }
.hm-page .product-grid-item .product-item-info .product-bottom-btns .btn-add-cart {
  display: block;
  background: transparent;
  border: 1px solid var(--hm-ink);
  color: var(--hm-ink);
  border-radius: 999px;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  transition: all .25s;
}
.hm-page .product-grid-item .product-item-info .product-bottom-btns .btn-add-cart:hover {
  background: var(--hm-orange);
  border-color: var(--hm-orange);
  color: #fff;
}
.hm-page .product-grid-item .product-item-info .product-price {
  position: static;
  width: auto;
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
  gap: 8px;
  margin-top: 0;
}
.hm-page .product-grid-item:hover .product-price { transform: none; }

/* ---------- 4. Steps — photo workflow cards (htvront-style) ---------- */
.hm-steps .hm-step {
  background: transparent;
  padding: 0;
  height: 100%;
}
.hm-step-media {
  border-radius: var(--hm-radius);
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--hm-paper-2, #f4f3f0);
}
.hm-step-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform .5s;
}
.hm-step:hover .hm-step-img {
  transform: scale(1.04);
}
.hm-step-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--hm-orange-ink);
  margin-bottom: 8px;
}
.hm-step-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--hm-ink);
  margin: 0 0 8px;
  line-height: 1.3;
}
.hm-step-desc {
  font-size: 12.5px;
  color: var(--hm-gray);
  line-height: 1.65;
  margin: 0;
}

/* ---------- 5. Scenes — minimal hairline tiles ---------- */
.hm-scene-item {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--hm-line);
  border-radius: 0;
  text-align: left;
  padding: 18px 2px 0;
  height: 100%;
  transition: border-color .3s;
}
.hm-scene-item i.bi {
  font-size: 20px;
  color: var(--hm-ink);
  display: block;
  margin-bottom: 12px;
  transition: color .3s;
}
.hm-scene-item:hover { border-top-color: var(--hm-orange); }
.hm-scene-item:hover i.bi { color: var(--hm-orange); }
.hm-scene-item b {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--hm-ink);
  margin-bottom: 4px;
}
.hm-scene-item span {
  display: block;
  font-size: 12px;
  color: var(--hm-gray-light);
  line-height: 1.4;
}

/* ---------- 6. Dark trust — flatter, lighter numerals ---------- */
.hm-dark {
  background: #101010;
  padding: 88px 0 80px;
}
.hm-head-light .hm-kicker {
  color: var(--hm-orange);
  border-color: rgba(255, 106, 0, .4);
  background: transparent;
}
.hm-head-light .hm-title { color: #fff; }
.hm-head-light .hm-sub { color: #9c9ca1; }
.hm-stat {
  text-align: center;
  padding: 10px 8px;
}
.hm-stat b {
  display: block;
  font-size: 58px;
  font-weight: 300;
  color: #fff;
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -.02em;
}
.hm-stat span {
  font-size: 11.5px;
  color: #8f8f94;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hm-stat::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--hm-orange);
  margin: 14px auto 0;
}
.hm-dark-cta {
  text-align: center;
  margin-top: 46px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.hm-btn {
  display: inline-block;
  background: var(--hm-ink, #141414);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: .04em;
  padding: 15px 32px;
  border-radius: 10px;
  text-decoration: none;
  transition: all .3s;
}
.hm-btn:hover {
  background: var(--hm-orange);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 106, 0, .3);
}
.hm-btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
}
.hm-btn-ghost:hover {
  border-color: var(--hm-orange);
  color: var(--hm-orange);
  background: transparent;
  box-shadow: none;
}

/* ---------- 7. Blog (white cards on paper) ---------- */
.hm-page .blog-item {
  background: #fff;
  border-radius: var(--hm-radius);
  overflow: hidden;
  padding: 0 0 20px;
  box-shadow: var(--hm-shadow-soft);
  transition: transform .35s, box-shadow .35s;
  display: flex;
  flex-direction: column;
  height: 100%;
  margin-bottom: 0;
}
.hm-page .blog-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--hm-shadow-lift);
}
.hm-page .blog-item .image {
  border-radius: 0;
  margin-bottom: 0;
}
.hm-page .blog-item .blog-item-info {
  padding: 18px 20px 0;
  flex: 1;
}
.hm-page .blog-item .blog-title,
.hm-page .blog-item .blog-title a {
  color: var(--hm-ink) !important;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.45;
}
.hm-page .blog-item .blog-title a {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hm-page .blog-item .blog-title a:hover {
  color: var(--hm-orange-ink) !important;
}
.hm-page .blog-item .blog-catalog,
.hm-page .blog-item .blog-catalog a {
  color: var(--hm-orange-ink) !important;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hm-page .blog-item .blog-item-info .author-wrap {
  color: var(--hm-gray-light);
  font-size: 12.5px;
}
.hm-page .blog-item .blog-item-info .author-wrap .blog-created {
  color: var(--hm-gray-light);
}

/* ---------- Legacy accent cleanup inside homepage ---------- */
.hm-page .swiper .swiper-pagination-bullet-active {
  background: var(--hm-orange) !important;
}

/* ---------- responsive ---------- */
@media (max-width: 768px) {
  .hm-usp-item { padding: 18px 4px 14px; }
  .hm-usp-item i.bi { font-size: 19px; }
  .hm-tab { padding: 9px 13px; font-size: 11.5px; letter-spacing: .1em; }
  .hm-viewall { position: static; display: inline-block; margin-top: 8px; }
  .hm-stat b { font-size: 38px; }
  .hm-dark { padding: 56px 0 52px; }
}

/* ============================================================
   V3.1 — Full-bleed photographic hero (erasmart.store style)
   ============================================================ */
.hm-hero-brand.hm-hero-light {
  background: #efe7db;
  padding: 190px 0 170px;
}
.hm-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}
.hm-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(250, 249, 247, .95) 0%,
    rgba(250, 249, 247, .82) 32%,
    rgba(250, 249, 247, .28) 58%,
    rgba(250, 249, 247, .04) 78%);
}
.hm-hero-light .hm-watermark {
  -webkit-text-stroke-color: rgba(20, 20, 20, .07);
  bottom: -2%;
}
.hm-hero-light .hm-kicker {
  color: var(--hm-orange-ink);
  border-color: rgba(20, 20, 20, .22);
  background: rgba(255, 255, 255, .6);
}
.hm-hero-light .hm-hero-title { color: var(--hm-ink); }
.hm-hero-light .hm-hero-title span { color: var(--hm-orange-dark, #e85d00); }
.hm-hero-light .hm-hero-sub { color: #3c3c40; }
.hm-hero-light .hm-btn { background: var(--hm-orange, #ff6a00); }
.hm-hero-light .hm-btn:hover {
  background: var(--hm-orange-dark, #e85d00);
  box-shadow: 0 12px 30px rgba(255, 106, 0, .32);
}
.hm-hero-light .hm-btn-ghost {
  background: rgba(255, 255, 255, .65);
  border: 1px solid rgba(20, 20, 20, .35);
  color: var(--hm-ink, #141414);
}
.hm-hero-light .hm-btn-ghost:hover {
  background: #fff;
  border-color: var(--hm-orange);
  color: var(--hm-orange-dark, #e85d00);
  box-shadow: none;
}
.hm-hero-light .hm-hero-trust {
  border-top-color: rgba(20, 20, 20, .14);
}
.hm-hero-light .hm-hero-trust span { color: #262629; }
@media (max-width: 992px) {
  .hm-hero-brand.hm-hero-light { padding: 90px 0 78px; }
  .hm-hero-scrim {
    background: linear-gradient(180deg,
      rgba(250, 249, 247, .88) 0%,
      rgba(250, 249, 247, .55) 45%,
      rgba(250, 249, 247, .15) 100%);
  }
}

/* ---------- FAQ — editorial two-column ---------- */
.hm-faq-item {
  border-top: 1px solid var(--hm-line);
  padding: 20px 6px 4px 0;
  height: 100%;
}
.hm-faq-q {
  font-size: 15px;
  font-weight: 800;
  color: var(--hm-ink);
  margin: 0 0 10px;
  line-height: 1.4;
}
.hm-faq-q i.bi {
  color: var(--hm-orange);
  margin-right: 8px;
  font-size: 16px;
}
.hm-faq-a {
  font-size: 13px;
  color: var(--hm-gray);
  line-height: 1.75;
  margin: 0;
}

/* ---------- Videos — facade cards + lightbox ---------- */
.hm-videos .hm-video-card { cursor: pointer; }
.hm-videos .hm-video-thumb {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--hm-paper-2, #f4f3f0);
}
.hm-videos .hm-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.hm-videos .hm-video-card:hover .hm-video-thumb img { transform: scale(1.06); }
.hm-videos .hm-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(20, 20, 20, .68);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: background .3s, transform .3s;
}
.hm-videos .hm-video-card:hover .hm-play {
  background: var(--hm-orange);
  transform: scale(1.08);
}
.hm-videos .hm-video-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--hm-ink);
  margin: 12px 2px 0;
  line-height: 1.4;
}

/* ---------- Video empty slots — Coming Soon placeholder ---------- */
.hm-video-card.hm-video-empty { cursor: default; }
.hm-video-empty .hm-video-thumb {
  background: var(--hm-paper-2, #f4f3f0);
  border: 1px dashed rgba(20, 20, 20, .18);
}
.hm-video-empty .hm-play-ghost {
  background: transparent;
  color: rgba(20, 20, 20, .25);
  border: 1.5px solid rgba(20, 20, 20, .14);
}
.hm-video-card.hm-video-empty:hover .hm-play-ghost {
  background: rgba(20, 20, 20, .05);
  transform: none;
}
.hm-video-empty .hm-video-title { font-weight: 600; }
