/**
 * Modwin homepage v4 — light editorial commerce
 * Charcoal is reserved for anchors and calls to action.
 */
body.home {
  --hv4-paper: #f5f2eb;
  --hv4-white: #fff;
  --hv4-ink: #171b20;
  --hv4-text: #35383d;
  --hv4-muted: #77746d;
  --hv4-line: #dcd6cb;
  --hv4-gold: #b38c4d;
  --hv4-gold-soft: #e5d5af;
  background: var(--hv4-paper) !important;
}
body.home .site-main,
body.home .entry-content { background: var(--hv4-paper) !important; }
body.home .entry-header { display: none !important; }
body.home .entry-content { overflow: hidden; }
body.home .mh { color: var(--hv4-text); }
body.home .mh-content-shell,
body.home .mh-brands-inner,
body.home .mh-section,
body.home .mh-banners-grid,
body.home .mh-section-block > .container,
body.home .entry-content > .woocommerce {
  width: min(calc(100% - 64px), 1400px) !important;
  max-width: 1400px !important;
  margin-inline: auto !important;
}

/* Hero: generous imagery with a restrained editorial panel. */
body.home .mh-slider {
  width: min(calc(100% - 64px), 1400px) !important;
  max-width: 1400px !important;
  margin: 30px auto 0 !important;
  overflow: hidden !important;
  background: var(--hv4-ink) !important;
  border: 1px solid rgba(23,27,32,.14) !important;
  border-radius: 8px !important;
  box-shadow: 0 22px 70px rgba(23,27,32,.12) !important;
}
body.home .mh-slider .mh-slide { min-height: clamp(440px,34vw,560px) !important; }
body.home .mh-slide:before { background: linear-gradient(90deg,rgba(13,16,20,.08) 25%,rgba(13,16,20,.82) 100%) !important; }
body.home .mh-slide-content {
  max-width: 570px !important;
  padding: 38px !important;
  background: rgba(18,22,27,.82) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 3px !important;
  box-shadow: none !important;
  backdrop-filter: blur(12px);
}
body.home .mh-slide-tag {
  color: var(--hv4-gold-soft) !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(229,213,175,.5) !important;
  border-radius: 0 !important;
}
body.home .mh-slide-content h2 { color: #fff !important; font-size: clamp(34px,4vw,58px) !important; font-weight: 680 !important; line-height: 1.4 !important; letter-spacing: -1.2px !important; }
body.home .mh-slide-content p { color: rgba(255,255,255,.7) !important; font-size: 14px !important; line-height: 2 !important; }
body.home .mh-slide-btn {
  color: var(--hv4-ink) !important;
  background: var(--hv4-gold-soft) !important;
  border: 1px solid var(--hv4-gold-soft) !important;
  border-radius: 2px !important;
  box-shadow: none !important;
}
body.home .mh-slide-btn:hover { background: #fff !important; transform: translateY(-2px) !important; box-shadow: none !important; }
body.home .mh-dot { width: 22px !important; height: 2px !important; background: rgba(255,255,255,.4) !important; border-radius: 0 !important; }
body.home .mh-dot.active { width: 44px !important; background: var(--hv4-gold-soft) !important; box-shadow: none !important; }

/* Reusable editorial headings. */
body.home :is(.mh-content-head,.mh-section-header) { align-items: end !important; padding-bottom: 24px !important; border-bottom: 1px solid var(--hv4-line); }
body.home :is(.mh-content-head h2,.mh-section-title,.mh-brands h2) { color: var(--hv4-ink) !important; font-size: clamp(27px,3vw,42px) !important; font-weight: 690 !important; letter-spacing: -.8px !important; }
body.home :is(.mh-content-kicker,.mh-catgroup) { color: var(--hv4-gold) !important; letter-spacing: 0 !important; }
body.home :is(.mh-content-head p,.mh-section-intro,.mh-brands .sub) { color: var(--hv4-muted) !important; }
body.home :is(.mh-inline-link,.mh-section-more) { color: var(--hv4-ink) !important; border-bottom: 1px solid var(--hv4-gold) !important; }

/* Brands: gallery-like, quiet and airy. */
body.home .mh-brands { padding: 72px 0 !important; background: #ebe5da !important; border-radius: 0 !important; }
body.home .mh-brands-inner > h2,
body.home .mh-brands-inner > .sub { text-align: right !important; }
body.home .mh-brands-grid { grid-template-columns: repeat(8,minmax(0,1fr)) !important; gap: 1px !important; margin-top: 34px !important; background: var(--hv4-line); border: 1px solid var(--hv4-line); }
body.home .mh-brand-card {
  min-height: 132px !important;
  padding: 20px 10px !important;
  background: rgba(255,255,255,.72) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body.home .mh-brand-card:hover { z-index: 1; background: #fff !important; box-shadow: inset 0 -2px 0 var(--hv4-gold) !important; transform: none !important; }
body.home .mh-brand-logo { max-height: 38px !important; filter: grayscale(1) contrast(.8); opacity: .72; }
body.home .mh-brand-card:hover .mh-brand-logo { filter: none; opacity: 1; }
body.home .mh-brand-name { color: var(--hv4-ink) !important; font-size: 12px !important; }
body.home .mh-brand-count { color: #99958d !important; font-size: 9px !important; }

/* Curated discovery: an asymmetric image wall. */
body.home .mh-discovery { padding: 76px 0 44px !important; background: var(--hv4-paper) !important; border-radius: 0 !important; }
body.home .mh-discovery-grid { grid-template-columns: repeat(12,minmax(0,1fr)) !important; gap: 14px !important; margin-top: 38px !important; }
body.home .mh-discovery-card,
body.home .mh-discovery-card:nth-child(1),
body.home .mh-discovery-card:nth-child(6) {
  grid-column: span 3 !important;
  min-height: 350px !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 3px !important;
}
body.home .mh-discovery-card:nth-child(1),
body.home .mh-discovery-card:nth-child(6) { grid-column: span 6 !important; }
body.home .mh-discovery-card:nth-child(7),
body.home .mh-discovery-card:nth-child(8) { grid-column: span 6 !important; }
body.home .mh-discovery-card:before { background: linear-gradient(0deg,rgba(14,17,21,.84),transparent 65%) !important; }
body.home .mh-discovery-card:after { content: '←' !important; color: var(--hv4-ink) !important; background: var(--hv4-gold-soft) !important; border-radius: 2px !important; }

/* Full catalogue categories: compact visual index. */
body.home .mh-cats { padding: 94px 0 !important; background: #fff !important; }
body.home .mh-catgroup { width: min(calc(100% - 64px),1400px); margin: 34px auto 15px !important; padding: 0 0 10px !important; border-bottom: 1px solid var(--hv4-line); }
body.home .mh-cats-grid { width: min(calc(100% - 64px),1400px) !important; max-width: 1400px !important; margin-inline: auto !important; grid-template-columns: repeat(5,minmax(0,1fr)) !important; gap: 12px !important; }
body.home .mh-cat-card { min-height: 230px !important; border: 0 !important; border-radius: 3px !important; box-shadow: none !important; }
body.home .mh-cat-card:before { background: linear-gradient(0deg,rgba(16,19,24,.8),transparent 62%) !important; }
body.home .mh-cat-card:hover { transform: translateY(-3px) !important; box-shadow: 0 14px 35px rgba(23,27,32,.12) !important; }
body.home .mh-cat-name { color: #fff !important; }
body.home .mh-cat-count { color: rgba(255,255,255,.65) !important; }

/* Campaign cards: one wide editorial row. */
body.home .mh-banners { padding: 90px 0 !important; background: var(--hv4-paper) !important; }
body.home .mh-banners-grid { grid-template-columns: 1.35fr 1fr 1fr !important; gap: 14px !important; }
body.home .mh-banner { min-height: 280px !important; align-content: end !important; padding: 34px !important; border: 1px solid var(--hv4-line) !important; border-radius: 3px !important; box-shadow: none !important; }
body.home .mh-banner-1 { color: #fff !important; background: var(--hv4-ink) !important; border-color: var(--hv4-ink) !important; }
body.home .mh-banner-2 { background: #dfcfac !important; }
body.home .mh-banner-3 { background: #fff !important; }
body.home .mh-banner-svg { border-radius: 2px !important; }
body.home .mh-banner h3 { font-size: 24px !important; }
body.home .mh-banner-1 :is(h3,p,.mh-banner-cta) { color: #fff !important; }

/* Product shelves. */
body.home .mh-section-block { padding: 54px 0 22px !important; background: var(--hv4-paper) !important; }
body.home .entry-content > .woocommerce { margin-bottom: 46px !important; }
body.home .entry-content > .woocommerce ul.products { grid-template-columns: repeat(4,minmax(0,1fr)) !important; gap: 18px !important; }
body.home .entry-content > .woocommerce ul.products li.product {
  padding: 0 0 18px !important;
  background: #fff !important;
  border: 1px solid #e2ddd4 !important;
  border-radius: 3px !important;
  box-shadow: none !important;
  transform: none !important;
}
body.home .entry-content > .woocommerce ul.products li.product:hover { border-color: #bda778 !important; box-shadow: 0 18px 40px rgba(23,27,32,.08) !important; transform: translateY(-3px) !important; }
body.home .entry-content > .woocommerce ul.products li.product :is(.woocommerce-loop-product__title,.price) { padding-inline: 16px !important; }
body.home .entry-content > .woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--hv4-ink) !important; font-size: 13px !important; line-height: 1.8 !important; }
body.home .entry-content > .woocommerce ul.products li.product .ct-media-container,
body.home .entry-content > .woocommerce ul.products li.product .woocommerce-LoopProduct-link > img { aspect-ratio: 1 / 1 !important; object-fit: contain !important; background: #faf9f6 !important; }

@media (max-width: 1050px) {
  body.home .mh-content-shell,body.home .mh-brands-inner,body.home .mh-section,body.home .mh-banners-grid,body.home .mh-section-block>.container,body.home .entry-content>.woocommerce,body.home .mh-slider { width: calc(100% - 36px) !important; }
  body.home .mh-brands-grid { grid-template-columns: repeat(4,minmax(0,1fr)) !important; }
  body.home .mh-cats-grid { width: calc(100% - 36px) !important; grid-template-columns: repeat(4,minmax(0,1fr)) !important; }
  body.home .mh-catgroup { width: calc(100% - 36px); }
  body.home .mh-discovery-card { grid-column: span 4 !important; }
  body.home .mh-discovery-card:nth-child(1),body.home .mh-discovery-card:nth-child(6) { grid-column: span 6 !important; }
}
@media (max-width: 700px) {
  body.home .mh-content-shell,body.home .mh-brands-inner,body.home .mh-section,body.home .mh-banners-grid,body.home .mh-section-block>.container,body.home .entry-content>.woocommerce,body.home .mh-slider { width: calc(100% - 24px) !important; }
  body.home .mh-slider { margin-top: 12px !important; border-radius: 3px !important; }
  body.home .mh-slider .mh-slide { min-height: 460px !important; }
  body.home .mh-slide-content { width: calc(100% - 28px) !important; margin: auto 14px 32px !important; padding: 24px !important; }
  body.home .mh-slide-content h2 { font-size: 31px !important; }
  body.home .mh-brands,body.home .mh-discovery,body.home .mh-cats,body.home .mh-banners { padding: 62px 0 !important; }
  body.home .mh-brands-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  body.home .mh-brand-card { min-height: 116px !important; }
  body.home .mh-discovery-grid { grid-template-columns: 1fr !important; }
  body.home .mh-discovery-card,body.home .mh-discovery-card:nth-child(1),body.home .mh-discovery-card:nth-child(6),body.home .mh-discovery-card:nth-child(7),body.home .mh-discovery-card:nth-child(8) { grid-column: auto !important; min-height: 320px !important; }
  body.home .mh-cats-grid { width: calc(100% - 24px) !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  body.home .mh-catgroup { width: calc(100% - 24px); }
  body.home .mh-cat-card { min-height: 200px !important; }
  body.home .mh-banners-grid { grid-template-columns: 1fr !important; }
  body.home .mh-banner { min-height: 240px !important; }
  body.home .entry-content>.woocommerce ul.products { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 12px !important; }
  body.home .mh-section-block { padding-top: 62px !important; }
}
