/* Homepage refinement based on the supplied navy-and-gold mbackmart reference. */
.mbackmart--home {
  background: #f3f6fa;
}

.mbackmart--home .hero-band { background: #06162d; }
.mbackmart--home .hero-grid { display: block; max-width: none; min-height: 0; padding: 0; }
.mbackmart--home .hero {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background-image:
    linear-gradient(90deg,rgba(2,15,35,.94) 0%,rgba(3,19,43,.78) 25%,rgba(3,19,43,.12) 53%,rgba(3,19,43,.04) 100%),
    url('../hero-luxury-blue-gold.png');
  background-size: cover;
  background-position: center center;
  box-shadow: inset 0 -1px 0 rgba(234,179,67,.25);
}
.mbackmart--home .hero::before,
.mbackmart--home .hero::after { display: none; }
.mbackmart--home .hero .copy {
  width: min(var(--market-wide),100%);
  margin: 0 auto;
  padding: 42px 18px 44px;
  position: relative;
  inset: auto;
  z-index: 5;
}
.mbackmart--home .hero .copy,
.mbackmart--home .hero .copy h1,
.mbackmart--home .hero .copy h1 span,
.mbackmart--home .hero .mini div,
.mbackmart--home .hero .mini i,
.mbackmart--home .hero .hero-btn,
.mbackmart--home .hero .dots {
  opacity: 1;
  transform: none;
  animation: none;
}
.mbackmart--home .copy h1 {
  width: 520px;
  max-width: 52%;
  color: #fff;
  font-size: clamp(44px,4.5vw,70px);
  line-height: .96;
  letter-spacing: -.04em;
  text-shadow: 0 4px 20px rgba(0,0,0,.35);
}
.mbackmart--home .copy h1 span { color: #f3cf7a; }
.mbackmart--home .mini {
  display: flex;
  width: 650px;
  max-width: 60%;
  gap: 18px;
  margin: 15px 0 12px;
}
.mbackmart--home .mini div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0;
  color: #fff;
  background: none;
  border: 0;
  box-shadow: none;
  font-size: 12px;
  white-space: nowrap;
}
.mbackmart--home .mini i {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin: 0;
  color: #f0bd4d;
  border: 1px solid #d8a840;
  border-radius: 50%;
  font-size: 18px;
}
.mbackmart--home .hero-btn {
  margin-top: 3px;
  padding: 11px 30px;
  border-radius: 22px;
  background: linear-gradient(135deg,#ffe28e,#e5a930);
  color: #07172d;
  font-size: 15px;
  box-shadow: 0 8px 24px rgba(218,157,43,.3);
}
.mbackmart--home .hero .arrow {
  width: 38px;
  height: 38px;
  border-color: rgba(255,255,255,.32);
  background: rgba(0,0,0,.44);
}
.mbackmart--home .hero .dots { bottom: 12px; }

.mbackmart--home > main.wrap {
  max-width: var(--market-wide);
  position: relative;
  z-index: 10;
  margin-top: -28px;
}
.mbackmart--home .luxury-categories {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(108px,1fr));
  gap: 0;
  min-height: 82px;
  margin: 0 0 12px;
  padding: 8px 10px 7px;
  border: 1px solid #e5e9ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(4,23,49,.2);
}
.mbackmart--home .luxury-categories a {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  height: 100%;
  gap: 4px;
  padding: 2px 8px;
  color: #24334a;
  font-size: 13.5px;
  font-weight: 500;
  text-align: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.mbackmart--home .luxury-categories a:hover { color: #b77a10; transform: translateY(-2px); }
.mbackmart--home .luxury-categories i {
  width: 47px;
  height: 47px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #17335a;
  font-size: 21px;
  background: linear-gradient(145deg,#f9fbff,#e8eef7);
}
.mbackmart--home .luxury-categories span { line-height: 1.25; white-space: nowrap; }
.mbackmart--home .consignment-cta { margin-top: 10px; }
.mbackmart--home .banners { margin: 10px 0 12px; gap: 12px; }
.mbackmart--home .banner,
.mbackmart--home .banner--shipping {
  min-height: 128px;
  padding: 17px 24px;
}
.mbackmart--home .banner h3 { font-size: 21px; }
.mbackmart--home .banner h3 strong { font-size: 31px; }
.mbackmart--home .banner .btn { margin-top: 9px; padding: 6px 14px; font-size: 11px; }
.mbackmart--home .banner-ship-copy .ship-main { font-size: 34px; }
.mbackmart--home .banner-ship-copy .ship-sub { font-size: 18px; }
.mbackmart--home .section,
.mbackmart--home .panel { border-radius: 14px; border: 1px solid #e6ebf2; box-shadow: 0 6px 22px rgba(14,35,63,.055); }
.mbackmart--home .home-all-products,
.mbackmart--home .home-new-products { margin-top: 10px; padding: 12px; }
.mbackmart--home .home-all-products .headrow,
.mbackmart--home .home-new-products .headrow { padding: 0 2px 10px; }
.mbackmart--home .home-all-products .title,
.mbackmart--home .home-new-products .title { font-size: 20px; color: #0a1b36; }
.mbackmart--home .home-new-products .title small { margin-left: 8px; font-size: 10px; font-weight: 500; color: #64748b; }
.mbackmart--home .home-all-grid {
  display: grid;
  grid-template-columns: repeat(8,minmax(0,1fr));
  gap: 8px;
}
.mbackmart--home .home-all-grid .card.home-product-card {
  min-width: 0;
  border: 1px solid rgba(216, 224, 235, .9);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(15, 35, 63, .11), 0 1px 3px rgba(15, 35, 63, .07);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.mbackmart--home .home-all-grid .card.home-product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(218, 169, 71, .5);
  box-shadow: 0 13px 28px rgba(15, 35, 63, .17), 0 3px 8px rgba(15, 35, 63, .09);
}
.mbackmart--home .home-all-grid .home-product-card .thumb { height: 142px; }
.mbackmart--home .home-all-grid .home-product-card .body { min-height: 88px; padding: 10px; }
.mbackmart--home .home-all-grid .home-product-card .name { min-height: 40px; font-size: 13px; line-height: 1.45; -webkit-line-clamp: 2; }
.mbackmart--home .home-all-grid .home-product-card .price b { font-size: 16px; color: #e11d2e; }
.mbackmart--home .home-all-grid .home-product-card .price span { font-size: 11px; }
.mbackmart--home .home-all-products .home-product-actions,
.mbackmart--home .home-all-products .home-product-cart,
.mbackmart--home .home-all-products .home-all-cat { display: none; }
.mbackmart--home .compact-product-card .home-product-card__body { min-height: 68px; }

.mbackmart--home .luxury-about {
  width: 100vw;
  min-height: clamp(250px, 18vw, 290px);
  margin-top: 14px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 24px clamp(28px,4vw,64px) 24px clamp(210px,16vw,260px);
  display: grid;
  grid-template-columns: minmax(350px,420px) minmax(440px,560px);
  justify-content: space-between;
  align-items: center;
  gap: clamp(170px,18vw,280px);
  color: #0b1d3a;
  background-image: url('../about-mbackmart-footer-bg.png?v=20261007-2');
  background-position: center 58%;
  background-size: cover;
  background-repeat: no-repeat;
  border-top: 1px solid #ead9b6;
  border-bottom: 1px solid #ead9b6;
}
.mbackmart--home .luxury-about__copy > span { color: #ba8425; font-size: 11px; letter-spacing: .12em; }
.mbackmart--home .luxury-about h2 { font-size: 38px; line-height: 1.12; font-weight: 500; }
.mbackmart--home .luxury-about h3 { margin: 5px 0 9px; font-size: 19px; font-weight: 500; }
.mbackmart--home .luxury-about p { max-width: 440px; color: #536174; font-size: 14px; line-height: 1.5; }
.mbackmart--home .luxury-about__copy a { display: inline-flex; gap: 9px; margin-top: 12px; padding: 10px 20px; border-radius: 22px; color: #fff; background: linear-gradient(135deg,#d8a43e,#b47a17); font-size: 13px; }
.mbackmart--home .luxury-about__features { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.mbackmart--home .luxury-about__features div { display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.mbackmart--home .luxury-about__features i { width: 65px; height: 65px; display: grid; place-items: center; margin-bottom: 4px; border: 1px solid #d5a342; border-radius: 50%; color: #b67e1f; font-size: 25px; }
.mbackmart--home .luxury-about__features b { font-size: 16px; font-weight: 500; white-space: nowrap; }
.mbackmart--home .luxury-about__features small { color: #64748b; font-size: 12px; }

@media (max-width: 1300px) {
  .mbackmart--home .luxury-about {
    min-height: 390px;
    padding: 30px clamp(28px,8vw,80px);
    grid-template-columns: 1fr;
    gap: 25px;
    background-image:
      linear-gradient(90deg,rgba(255,252,247,.9),rgba(255,252,247,.7)),
      url('../about-mbackmart-footer-bg.png?v=20261007-2');
  }
  .mbackmart--home .luxury-about__copy { max-width: 440px; }
  .mbackmart--home .luxury-about__features { width: min(100%,700px); margin-left: auto; }
}

@media (max-width: 980px) {
  .mbackmart--home .hero { min-height: 330px; background-position: 58% center; }
  .mbackmart--home .luxury-categories { overflow-x: auto; grid-template-columns: repeat(12,90px); }
  .mbackmart--home .home-all-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}

@media (max-width: 700px) {
  .mbackmart--home .hero {
    min-height: 400px;
    background-position: 66% center;
    background-image:
      linear-gradient(90deg,rgba(2,15,35,.95),rgba(3,19,43,.72) 55%,rgba(3,19,43,.18)),
      url('../hero-luxury-blue-gold.png');
  }
  .mbackmart--home .hero .copy { padding: 48px 22px 45px; }
  .mbackmart--home .copy h1 { max-width: 92%; width: 440px; font-size: 43px; }
  .mbackmart--home .mini { max-width: 92%; width: 360px; display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
  .mbackmart--home .mini { margin: 12px 0 10px; row-gap: 7px; }
  .mbackmart--home .hero-btn { margin-top: 2px; }
  .mbackmart--home .mini div { flex-direction: row; justify-content: flex-start; }
  .mbackmart--home .mini i { width: 30px; height: 30px; font-size: 12px; flex: 0 0 auto; }
  .mbackmart--home .hero .arrow { display: none; }
  .mbackmart--home .luxury-categories { margin-inline: -18px; border-radius: 0; }
  .mbackmart--home > main.wrap { margin-top: -20px; }
  .mbackmart--home .luxury-categories { min-height: 76px; padding: 7px 10px 6px; }
  .mbackmart--home .luxury-categories i { width: 42px; height: 42px; font-size: 19px; }
  .mbackmart--home .luxury-categories a { font-size: 11px; }
  .mbackmart--home .luxury-categories { grid-template-columns: repeat(7,92px); }
  .mbackmart--home .home-all-grid { display: flex; overflow-x: auto; gap: 8px; }
  .mbackmart--home .home-all-grid .card.home-product-card { flex: 0 0 150px; }
  .mbackmart--home .luxury-about { min-height: 450px; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding: 28px 20px; background-position: 42% center; }
  .mbackmart--home .luxury-about__features { grid-template-columns: repeat(2,1fr); }
  .mbackmart--home .consignment-cta {
    min-height: 126px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    padding: 20px 16px;
  }
  .mbackmart--home .consignment-cta__button {
    position: static;
    width: auto;
    min-height: 34px;
    padding: 8px 15px;
    font-size: 11px;
  }
}

/* Final responsive pass: keep the homepage balanced across tablets and phones. */
@media (max-width: 900px) {
  .mbackmart--home .hero,
  .mbackmart--home .hero-grid {
    height: 360px;
    min-height: 360px;
    max-height: 360px;
  }

  .mbackmart--home .hero .copy {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 40px 28px;
    inset: auto;
  }

  .mbackmart--home .copy h1 { width: min(480px,65%); font-size: clamp(38px,6vw,50px); }
  .mbackmart--home .mini { width: min(520px,70%); }

  .mbackmart--home .luxury-categories {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .mbackmart--home .luxury-categories::-webkit-scrollbar { display: none; }
  .mbackmart--home .luxury-categories a { flex: 0 0 104px; scroll-snap-align: start; }

  .mbackmart--home .banners {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 10px;
  }

  .mbackmart--home .banner,
  .mbackmart--home .banner--shipping { min-height: 118px; }
}

@media (max-width: 680px) {
  .mbackmart--home { padding-bottom: 0; }

  .mbackmart--home .hero,
  .mbackmart--home .hero-grid {
    height: 310px;
    min-height: 310px;
    max-height: 310px;
  }

  .mbackmart--home .hero { background-position: 62% center; }

  .mbackmart--home .hero .copy {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 30px 18px 24px;
    inset: auto;
  }

  .mbackmart--home .copy h1 {
    width: min(340px,94%);
    max-width: none;
    font-size: clamp(32px,9.4vw,40px);
    line-height: 1.08;
  }

  .mbackmart--home .mini {
    width: min(330px,92%);
    max-width: none;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 7px 9px;
  }

  .mbackmart--home .mini div { font-size: 10px; }
  .mbackmart--home .mini div:nth-child(3) { display: flex; }
  .mbackmart--home .mini i { width: 29px; height: 29px; font-size: 12px; }
  .mbackmart--home .hero-btn { margin-top: 8px; padding: 9px 19px; font-size: 12px; }

  .mbackmart--home > main.wrap { margin-top: -12px; }
  .mbackmart--home .luxury-categories { margin-inline: -12px; padding-inline: 12px; }
  .mbackmart--home .luxury-categories a { flex-basis: 96px; }

  .mbackmart--home .banners {
    display: flex;
    grid-template-columns: none;
    gap: 9px;
  }

  .mbackmart--home .banner,
  .mbackmart--home .banner--shipping {
    flex: 0 0 min(82vw,320px);
    min-height: 112px;
  }

  .mbackmart--home .consignment-cta { min-height: 78px; }

  .mbackmart--home .luxury-about {
    min-height: 0;
    padding: 30px 20px 34px;
    gap: 28px;
    background-position: center bottom;
  }

  .mbackmart--home .luxury-about h2 { font-size: clamp(28px,9vw,36px); }
  .mbackmart--home .luxury-about h3 { font-size: 16px; }
  .mbackmart--home .luxury-about p { font-size: 13px; }
  .mbackmart--home .luxury-about__features { width: 100%; gap: 22px 10px; }
  .mbackmart--home .luxury-about__features i { width: 58px; height: 58px; font-size: 22px; }
  .mbackmart--home .luxury-about__features b { font-size: 14px; }
  .mbackmart--home .luxury-about__features small { font-size: 11px; }
}

@media (max-width: 390px) {
  .mbackmart--home .copy h1 { font-size: 32px; }
  .mbackmart--home .luxury-about { padding-inline: 16px; }
  .mbackmart--home .luxury-about__features b { font-size: 13px; }
}
