﻿/* Homepage layout following the supplied storefront reference. */
body .ms-root .mc-home .store-header-root { background:#fff; color:#111; border:0; border-bottom:1px solid #dedee3; box-shadow:0 4px 12px rgb(17 17 17 / 6%); }
body .ms-root .mc-home .store-header-root .store-promo { display:flex; align-items:center; justify-content:center; min-height:28px; height:auto; padding:4px 14px; background:#151515; color:#fff; text-align:center; font-size:13px!important; line-height:20px; }
body .ms-root .mc-home .store-header { display:grid!important; grid-template-columns:240px minmax(220px,1fr) auto 24px 24px 32px; grid-template-rows:74px 52px; column-gap:22px; row-gap:0; max-width:1170px; width:calc(100% - 40px); height:126px; min-height:0; margin:0 auto; padding:0; position:relative; background:transparent; }
body .ms-root .mc-home .store-header-root::before { content:''; position:absolute; top:101px; left:0; right:0; height:1px; background:#e8e8eb; pointer-events:none; }
body .ms-root .mc-home .store-logo { grid-column:1; grid-row:1; width:240px; padding:0; }
body .ms-root .mc-home .store-brand-image { width:240px; max-width:100%; height:60px; object-fit:contain; object-position:left center; background:#fff; border-radius:6px; padding:0; }
body .ms-root .mc-home .store-logo strong { color:#111!important; }
body .ms-root .mc-home .store-header-actions { display:contents!important; }
body .ms-root .mc-home .store-inline-search { grid-column:2; grid-row:1; width:100%; min-width:0; }
body .ms-root .mc-home .store-inline-search .store-search { width:100%!important; height:44px; padding:0 14px!important; border:1px solid #e5e5e8; border-radius:7px; background:#f5f5f7; box-shadow:none; }
body .ms-root .mc-home .store-inline-search input { color:#111; display:block!important; font-size:14px!important; }
body .ms-root .mc-home .store-inline-search input::placeholder { color:#71717a; opacity:1; }
body .ms-root .mc-home .store-inline-search .store-search button { color:#111; }
body .ms-root .mc-home .store-inline-search:focus-within .store-search { border-color:#7c9aff; box-shadow:0 0 0 2px #1240f733; }
body .ms-root .mc-home .store-header-links { display:flex; grid-column:3; grid-row:1; align-items:center; gap:22px; }
body .ms-root .mc-home .store-header-links a { color:#111; font-size:14px!important; white-space:nowrap; text-decoration:none; }
body .ms-root .mc-home .store-header .store-account { grid-column:4; grid-row:1; }
body .ms-root .mc-home .store-header .store-order-lookup { grid-column:5; grid-row:1; }
body .ms-root .mc-home .store-header .store-cart { grid-column:6; grid-row:1; }
body .ms-root .mc-home .store-header :is(.store-account,.store-order-lookup,.store-cart) { display:flex; align-items:center; justify-content:center; padding:0; width:28px; min-width:0; color:#111!important; background:transparent!important; border:0!important; box-shadow:none; }
body .ms-root .mc-home .store-header :is(.store-account,.store-cart)>span { display:none; }
body .ms-root .mc-home .store-header .store-cart-count { background:#ef535d; border-color:#fff; font-size:11px; }
body .ms-root .mc-home .store-nav { grid-column:1/-1; grid-row:2; display:flex; justify-content:flex-start; align-items:center; gap:44px; height:52px; margin:0; padding:0; }
body .ms-root .mc-home .store-nav a { color:#111!important; font-size:14px!important; font-weight:500; }
body .ms-root .mc-home .store-nav a:hover,body .ms-root .mc-home .store-header-links a:hover { color:#1240f7!important; }
body .ms-root .mc-home .store-nav a::after { display:none; }
body .ms-root .mc-home .store-mega-menu { color:#111; }
body .ms-root .mc-home .mc-hero { width:calc(100% - 40px); max-width:1170px; height:auto; min-height:0; aspect-ratio:1170/427; margin:20px auto 0; border-radius:16px; background:#141416; }
body .ms-root .mc-home .mc-hero-slide { display:block; padding:0; }
body .ms-root .mc-home .mc-hero-slide img { width:100%; height:100%; object-fit:contain; object-position:center; }
body .ms-root .mc-home .mc-hero-cta { left:50%; bottom:38px; transform:translateX(-50%); padding:9px 20px; min-height:36px; margin:0; font-size:13px; opacity:0; transition:opacity .2s; }
body .ms-root .mc-home .mc-hero:hover .mc-hero-cta,body .ms-root .mc-home .mc-hero:focus-within .mc-hero-cta { opacity:1; }
body .ms-root .mc-home .mc-hero-controls { bottom:3px; gap:4px; }
body .ms-root .mc-home .mc-slide-dot { width:16px; height:30px; }
body .ms-root .mc-home .mc-slide-dot::after { width:8px; height:8px; top:11px; left:4px; border-radius:10px; background:#ffffff99; }
body .ms-root .mc-home .mc-slide-dot.is-active { width:26px; }
body .ms-root .mc-home .mc-slide-dot.is-active::after { width:22px; background:#fff; }
body .ms-root .mc-home .mc-pause { width:26px; height:26px; border:0; font-size:13px; opacity:0; transition:opacity .2s; }
body .ms-root .mc-home .mc-hero:hover .mc-pause,body .ms-root .mc-home .mc-hero:focus-within .mc-pause { opacity:1; }
.home-services { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:22px; width:calc(100% - 40px); max-width:1170px; min-height:88px; margin:20px auto 0; padding:20px 32px; border-radius:16px; background:#f4f4f6; }
.home-services>a { display:flex; align-items:center; gap:14px; min-width:0; color:#27272c; text-decoration:none; }
.home-service-icon { display:grid; place-items:center; flex:none; width:42px; height:42px; border-radius:50%; background:#fff; }
.home-service-icon svg { width:21px; height:21px; }
.home-services strong { display:block; font-size:14px; font-weight:500; line-height:1.5; }
body .ms-root .mc-home .home-services small { display:block; margin-top:3px; color:#7b7b86; font-size:13px!important; line-height:1.5; }
.home-services>a:hover strong { color:#1240f7; }
body .ms-root .mc-home .ms-section,body .ms-root .mc-home .mc-editorial { max-width:1218px; }
@media(max-width:1100px) and (min-width:851px) {
 body .ms-root .mc-home .store-header { grid-template-columns:190px minmax(180px,1fr) auto 24px 24px 28px; column-gap:14px; }
 body .ms-root .mc-home .store-logo { width:190px; }
 body .ms-root .mc-home .store-brand-image { width:190px; height:54px; }
 body .ms-root .mc-home .store-header-links { gap:14px; }
 body .ms-root .mc-home .store-nav { gap:30px; }
 .home-services { padding:20px; gap:14px; }
 .home-services>a { gap:10px; }
}
@media(max-width:850px) {
 body .ms-root .mc-home .store-header { grid-template-columns:32px minmax(0,1fr) 28px 28px 28px; grid-template-rows:64px 52px; gap:0 14px; height:128px; padding-bottom:12px; }
 body .ms-root .mc-home .store-header-root::before { display:none; }
 body .ms-root .mc-home .store-header .store-menu-toggle { display:block; grid-column:1; grid-row:1; color:#111; background:transparent; border:0; padding:0; }
 body .ms-root .mc-home .store-logo { grid-column:2; grid-row:1; width:100%; min-width:0; }
 body .ms-root .mc-home .store-brand-image { width:180px; height:50px; }
 body .ms-root .mc-home .store-header .store-account { grid-column:3; }
 body .ms-root .mc-home .store-header .store-order-lookup { grid-column:4; }
 body .ms-root .mc-home .store-header .store-cart { grid-column:5; }
 body .ms-root .mc-home .store-inline-search { grid-column:1/-1; grid-row:2; }
 body .ms-root .mc-home .store-header-links,body .ms-root .mc-home .store-nav { display:none; }
 body .ms-root .mc-home .store-mobile-nav { color:#111; background:#fff; border-color:#e8e8eb; }
 body .ms-root .mc-home .store-mobile-nav :is(a,button) { color:#111; }
 body .ms-root .mc-home .mc-hero { margin-top:16px; aspect-ratio:2/1; border-radius:12px; }
 body .ms-root .mc-home .mc-hero-cta { opacity:1; bottom:35px; padding:6px 14px; font-size:12px; min-height:30px; }
 .home-services { grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; padding:20px; border-radius:12px; margin-top:16px; }
}
@media(max-width:480px) {
 body .ms-root .mc-home .store-header,body .ms-root .mc-home .mc-hero,.home-services { width:calc(100% - 28px); }
 body .ms-root .mc-home .store-header { column-gap:10px; }
 body .ms-root .mc-home .mc-hero { aspect-ratio:1.65; }
 .home-services { padding:16px 12px; gap:18px 10px; }
 .home-services>a { gap:8px; align-items:flex-start; }
 .home-service-icon { width:32px; height:32px; }
 .home-service-icon svg { width:18px; height:18px; }
 .home-services strong { font-size:13px; }
 body .ms-root .mc-home .home-services small { font-size:12px!important; }
}
@media(prefers-reduced-motion:reduce) { body .ms-root .mc-home .mc-hero-cta,body .ms-root .mc-home .mc-pause { transition:none; } }

body .ms-root .mc-home .store-header-root * { font-family:Roboto,Arial,sans-serif!important; }
@media(max-width:850px) {
 body .ms-root .mc-home .store-header { height:128px!important; }
 body .ms-root .mc-home .store-header .store-menu-toggle { position:static; }
 body .ms-root .mc-home .store-header-root.store-search-active .store-inline-search { position:relative; inset:auto; padding:0; border:0; border-radius:0; background:transparent; }
 body .ms-root .mc-home .store-header-root .store-header-actions :is(.store-account,.store-order-lookup) { display:flex; }
 body .ms-root .mc-home .store-search-dropdown { position:absolute; top:calc(100% + 8px); right:0; width:100%; }
}

/* Use the BABU HUB row as the shared horizontal frame. */
body .ms-root .mc-home {
 --home-frame-max:1256px;
 --home-frame-gutter:32px;
 --home-frame-width:calc(100% - var(--home-frame-gutter) * 2);
}
body .ms-root .mc-home :is(.store-header,.mc-hero,.home-services,.home-catalog,.mc-editorial-stack,.babu-blog-home),
body .ms-root .mc-home main > .ms-section {
 width:var(--home-frame-width);
 max-width:var(--home-frame-max);
 margin-left:auto;
 margin-right:auto;
}
body .ms-root .mc-home :is(.home-catalog,.mc-editorial-stack,.babu-blog-home),
body .ms-root .mc-home main > .ms-section {
 padding-left:0;
 padding-right:0;
}
body .ms-root .mc-home #modern-categories {
 width:var(--home-frame-width);
 max-width:var(--home-frame-max);
 padding-left:0;
 padding-right:0;
}
body .ms-root .mc-home .mc-editorial-stack > .mc-editorial {
 width:auto;
 max-width:none;
 min-width:0;
 margin-left:0;
 margin-right:0;
}
body .ms-root .mc-home .babu-blog-grid { padding-left:0; padding-right:0; }
body .ms-root .mc-home .store-footer-root { padding-left:0; padding-right:0; }
body .ms-root .mc-home .store-footer-root > :is(.store-footer-grid,.store-footer-bottom) {
 width:var(--home-frame-width);
 max-width:var(--home-frame-max);
 margin-left:auto;
 margin-right:auto;
}
@media(max-width:850px) { body .ms-root .mc-home { --home-frame-gutter:20px; } }
@media(max-width:480px) { body .ms-root .mc-home { --home-frame-gutter:14px; } }

/* Center the desktop navigation in a soft brand-blue panel. */
@media(min-width:851px) {
 body .ms-root .mc-home .store-nav {
  justify-content:center;
  align-self:center;
  height:42px;
  gap:clamp(24px,3vw,44px);
  padding:0 24px;
  border:1px solid #e0e8ff;
  border-radius:10px;
  background:#f0f5ff;
 }
 body .ms-root .mc-home .store-nav a {
  color:#172b55!important;
  transition:color .15s ease;
 }
 body .ms-root .mc-home .store-nav a:hover,
 body .ms-root .mc-home .store-nav a:focus-visible,
 body .ms-root .mc-home .store-nav a[aria-expanded="true"] { color:#1240f7!important; }
}

/* Four distinct service cards, aligned to the shared homepage frame. */
body .ms-root .mc-home .home-services {
 gap:16px;
 padding:0;
 min-height:0;
 border-radius:0;
 background:transparent;
}
body .ms-root .mc-home .home-services > a {
 align-items:center;
 gap:14px;
 min-height:100px;
 padding:20px;
 border:1px solid #dfe8ff;
 border-radius:14px;
 background:#f1f6ff;
 box-shadow:0 2px 5px rgb(18 64 247 / 3%);
 transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background-color .18s ease;
}
body .ms-root .mc-home .home-service-icon {
 width:46px;
 height:46px;
 color:#1240f7;
 background:#fff;
 border:1px solid #e4ebff;
 box-shadow:0 3px 8px rgb(18 64 247 / 5%);
}
body .ms-root .mc-home .home-service-icon svg { width:23px; height:23px; }
body .ms-root .mc-home .home-services strong { color:#172b55; font-size:15px; font-weight:700; line-height:1.45; }
body .ms-root .mc-home .home-services small { margin-top:5px; color:#66748d; font-size:13px!important; }
body .ms-root .mc-home .home-services > a:focus-visible { outline:3px solid #1240f7; outline-offset:3px; border-color:#8aa7ff; }
@media(hover:hover) {
 body .ms-root .mc-home .home-services > a:hover {
  transform:translateY(-3px);
  border-color:#8aa7ff;
  background:#eaf2ff;
  box-shadow:0 8px 20px rgb(18 64 247 / 10%);
 }
 body .ms-root .mc-home .home-services > a:hover strong { color:#1240f7; }
}
@media(max-width:1100px) and (min-width:851px) {
 body .ms-root .mc-home .home-services { gap:12px; }
 body .ms-root .mc-home .home-services > a { gap:10px; padding:16px 12px; }
 body .ms-root .mc-home .home-service-icon { width:38px; height:38px; }
 body .ms-root .mc-home .home-services strong { font-size:14px; }
}
@media(max-width:850px) {
 body .ms-root .mc-home .home-services { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
}
@media(max-width:480px) {
 body .ms-root .mc-home .home-services { gap:10px; }
 body .ms-root .mc-home .home-services > a { flex-direction:column; align-items:flex-start; justify-content:flex-start; gap:12px; padding:16px 12px; }
 body .ms-root .mc-home .home-services strong { font-size:14px; }
 body .ms-root .mc-home .home-services small { font-size:13px!important; }
 body .ms-root .mc-home .home-service-icon { width:40px; height:40px; }
 body .ms-root .mc-home .home-service-icon svg { width:21px; height:21px; }
}
@media(prefers-reduced-motion:reduce) {
 body .ms-root .mc-home .home-services > a { transition:none; }
 body .ms-root .mc-home .home-services > a:hover { transform:none; }
}

/* A lighter navigation: individual highlights instead of a full-width panel. */
@media(min-width:851px) {
 body .ms-root .mc-home .store-nav {
  height:52px;
  gap:clamp(12px,2vw,28px);
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
 }
 body .ms-root .mc-home .store-nav a {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  height:36px;
  padding:0 14px;
  border-radius:8px;
  color:#242933!important;
  font-weight:500;
  transition:background-color .15s ease,color .15s ease;
 }
 body .ms-root .mc-home .store-nav a:hover,
 body .ms-root .mc-home .store-nav a:focus-visible,
 body .ms-root .mc-home .store-nav a[aria-expanded="true"],
 body .ms-root .mc-home .store-nav a.is-active {
  color:#1240f7!important;
  background:#eef3ff;
 }
 body .ms-root .mc-home .store-nav a svg { width:12px; height:12px; opacity:.65; }
}
@media(prefers-reduced-motion:reduce) {
 body .ms-root .mc-home .store-nav a { transition:none; }
}
