/* Homepage
   §1  Departments and catalog disclosure
   §2  Seasonal collection and phone finder
   §3  Store reviews, service information and product shelves
   §4  Responsive layouts
*/

/* §1 Departments and catalog disclosure */
.mv-home {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3vw, 40px);
  padding-block: var(--space-2) var(--space-8);
}
.mv-home h1,
.mv-home h2 {
  margin: 0 !important; /* The legacy page headings set a global important margin. */
  padding: 0;
  color: var(--ink);
  text-wrap: balance;
}
.mv-home h1 {
  font-size: clamp(22px, 2.2vw, 32px);
  letter-spacing: -.035em;
  line-height: 1.16;
}
.mv-home .mv-h2 {
  font-size: clamp(20px, 1.7vw, 26px);
  letter-spacing: -.025em;
  line-height: 1.25;
}
.mv-home__departments {
  position: relative;
}
#home-stock {
  scroll-margin-top: var(--space-4);
}
.mv-home__tiles,
.mv-home__shortcuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.mv-home__tile {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 76px;
  min-width: 0;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  color: var(--ink);
  font-weight: 650;
  line-height: 1.3;
}
.mv-home__tile:hover {
  color: var(--brand-hover);
  border-color: var(--brand);
  text-decoration: none;
}
.mv-home__tile img {
  width: clamp(40px, 6vw, 80px);
  aspect-ratio: 1;
  object-fit: contain;
  flex: none;
}
.mv-home__tile .m-icon {
  margin-left: auto;
  color: var(--brand);
}
.mv-home__all summary,
.mv-home__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--size-touch);
  color: var(--brand);
  font-weight: 650;
  line-height: 1.3;
  cursor: pointer;
}
.mv-home__all {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  transition: none;
}
.mv-home__all summary {
  padding: 0;
  font-size: inherit;
  list-style: none;
}
.mv-home__all summary::-webkit-details-marker {
  display: none;
}
.mv-home__all summary .m-icon {
  width: 18px;
  height: 18px;
  transition: transform .15s ease;
}
.mv-home__all[open] summary .m-icon {
  transform: rotate(180deg);
}
.mv-home__all summary:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--radius-md);
}
/* The rest of the catalog opens as more tiles of the same size under the
   eight department tiles, so the grid simply grows instead of a link list. */
.mv-home__more {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-2);
}
@media (prefers-reduced-motion: reduce) {
  .mv-home__all summary .m-icon {
    transition: none;
  }
}

/* §2 Seasonal collection and phone finder */
.mv-home__campaigns {
  display: grid;
  gap: var(--space-3);
}
.mv-home__campaign {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--highlight-soft);
}
.mv-home__campaign .mv-home__hero {
  flex: 1;
  border-radius: 0;
}
.mv-home__gifts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
}
.mv-home__gifts a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding-inline: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface-raised);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.mv-home__gifts a:hover {
  border-color: var(--brand);
  color: var(--brand-hover);
}
.mv-home__hero,
.mv-home__finder {
  position: relative;
  isolation: isolate;
  border-radius: var(--radius-lg);
}
.mv-home__hero {
  display: flex;
  align-items: center;
  min-height: clamp(230px, 22vw, 305px);
  background: var(--highlight-soft);
}
.mv-home .mv-home__scene {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  border-radius: inherit;
}
.mv-home__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255,247,230,.88), rgba(255,247,230,.7) 36%, transparent 64%);
}
.mv-home__hero-copy {
  width: 56%;
  padding: clamp(18px, 3vw, 44px);
}
.mv-home__hero h2 {
  margin: 0;
  font-size: clamp(28px, 3.15vw, 47px);
  font-weight: 750;
  line-height: 1.06;
  letter-spacing: -.045em;
}
.mv-home__hero p,
.mv-home__finder p {
  margin: var(--space-3) 0 var(--space-5);
  line-height: 1.45;
}
.mv-home__hero .mv-btn {
  min-height: var(--size-touch);
  padding: var(--space-2) var(--space-4);
  white-space: normal;
  line-height: 1.3;
}
.mv-home__finder {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(18px, 2.15vw, 32px);
  background: var(--brand-soft);
}
.mv-home__finder img {
  position: absolute;
  top: var(--space-4);
  right: var(--space-3);
  z-index: -1;
  width: clamp(84px, 9vw, 138px);
  mix-blend-mode: multiply;
}
.mv-home__finder h2 {
  max-width: 69%;
  margin: 0;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.12;
}
.mv-home__finder p {
  max-width: 68%;
  margin-bottom: var(--space-3);
}
.mv-home__brands {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.mv-home__brands a {
  display: inline-flex;
  align-items: center;
  min-height: var(--size-touch);
  padding-inline: var(--space-3);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-weight: 600;
}
.mv-home__brands a:hover {
  color: var(--brand-hover);
  border-color: var(--brand);
}
.mv-home__finder .mv-home__link {
  margin-top: var(--space-1);
}

/* §3 Store reviews, service information and product shelves */
/* Trust strip: one light, low panel right under the departments, so the
   reasons to buy here are seen before the campaigns. Phone: the rating on
   one line, then the four facts 2 x 2; desktop: five cells in a row. */
.mv-home__trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
  list-style: none;
}
.mv-home__trust li {
  display: flex;
  min-width: 0;
  background: var(--surface-raised);
}
.mv-home__trust a {
  flex: 1;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}
.mv-home__trust a:hover {
  background: var(--brand-soft);
}
.mv-home__trust a:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: -3px;
}
.mv-home__trust-review {
  grid-column: 1 / -1;
}
.mv-home__trust-review a {
  display: flex;
  align-items: center;
  gap: 2px var(--space-3);
  padding: var(--space-3) var(--space-4);
}
.mv-home__score {
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -.04em;
  line-height: 1;
  white-space: nowrap;
}
.mv-home__score small {
  margin-left: 2px;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}
.mv-home__review-source {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  align-items: center;
  gap: 2px var(--space-2);
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.35;
}
.mv-home__review-source .mv-stars {
  --s: 16px;
}
.mv-home__trust-review .m-icon {
  flex: none;
  width: 14px;
  height: 14px;
  margin-left: auto;
  color: var(--ink-muted);
}
.mv-home__trust-review a:hover .mv-home__review-source span:last-child,
.mv-home__trust-fact a:hover strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mv-home__trust-fact a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  gap: 1px var(--space-2);
  padding: var(--space-3);
}
.mv-home__trust-fact .m-icon {
  grid-row: span 2;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--brand);
}
.mv-home__trust-fact strong {
  font-size: 14px;
  line-height: 1.3;
}
.mv-home__trust-fact span {
  color: var(--ink-muted);
  font-size: 12.5px;
  line-height: 1.35;
}
.mv-home__section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 var(--space-3);
}
.mv-home__products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.mv-home__product {
  display: flex;
  min-width: 0;
}
.mv-home__product .mv-card {
  width: 100%;
}
/* The shelf title already says "in our warehouse"; a badge on every card repeats it. */
#home-stock .mv-card__stock {
  display: none;
}
.mv-home__shortcuts img {
  width: 60px;
}
.mv-home__about {
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}
.mv-home__about p {
  max-width: 78ch;
  margin: var(--space-2) 0;
  line-height: 1.5;
}
.mv-home__service {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-6);
}
.mv-home__service a {
  display: inline-flex;
  align-items: center;
  min-height: var(--size-touch);
  gap: var(--space-2);
  color: var(--brand);
  font-weight: 600;
}

/* §4 Responsive layouts */
@media (min-width: 680px) {
  .mv-home__trust {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .mv-home__trust-review a {
    padding-inline: var(--space-5);
  }
  .mv-home__trust-fact a {
    padding: var(--space-3) var(--space-4);
  }
}
@media (min-width: 1100px) {
  .mv-home__trust {
    grid-template-columns: auto repeat(4, minmax(0, 1fr));
  }
  .mv-home__trust-review {
    grid-column: auto;
  }
  .mv-home__trust-review a {
    padding-inline: var(--space-5) var(--space-4);
  }
  .mv-home__review-source {
    display: grid;
    gap: 3px;
  }
  .mv-home__trust-review .m-icon {
    align-self: flex-start;
  }
  .mv-home__trust-fact strong {
    font-size: 15px;
  }
  .mv-home__trust-fact span {
    font-size: 13px;
  }
}
@media (max-width: 1199px) {
  #home-deals .mv-home__products {
    grid-auto-flow: column;
    grid-auto-columns: clamp(160px, 47%, 215px);
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: var(--space-2);
    scroll-snap-type: x proximity;
  }
  #home-deals .mv-home__product {
    scroll-snap-align: start;
  }
}
@media (min-width: 741px) {
  .mv-home__departments h1 {
    padding-right: min(40%, 340px);
  }
  .mv-home__all summary {
    position: absolute;
    top: -4px;
    right: 0;
  }
  .mv-home__more {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .mv-home .mv-home__tile--phone {
    display: none;
  }
  .mv-home__tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .mv-home__campaigns:has(> :nth-child(2)) {
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
  }
  .mv-home__products,
  .mv-home__shortcuts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-3);
  }
}
@media (min-width: 1200px) {
  .mv-home__products {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
@media (min-width: 741px) and (max-width: 991px) {
  .mv-home__tiles .m-icon,
  .mv-home__more .m-icon {
    display: none;
  }
  .mv-home__tile img {
    width: 40px;
  }
  .mv-home__finder img {
    width: 76px;
  }
}
@media (max-width: 740px) {
  .mv-home__tiles .mv-home__tile--extra {
    display: none;
  }
  .mv-home__gifts {
    padding: var(--space-2) var(--space-3) var(--space-3);
  }
  .mv-home {
    gap: var(--space-6);
    padding-top: 0;
  }
  .mv-home__tiles {
    margin-top: var(--space-3);
  }
  .mv-home__tile {
    gap: var(--space-2);
    min-height: 64px;
    padding: var(--space-2);
    font-size: 14px;
  }
  .mv-home__tiles .m-icon,
  .mv-home__more .m-icon {
    display: none;
  }
  .mv-home__all {
    margin-top: var(--space-2);
  }
  .mv-home__all summary {
    justify-content: center;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface-raised);
  }
  .mv-home__all[open] summary {
    border-color: var(--brand);
  }
  .mv-home__hero {
    min-height: 206px;
  }
  .mv-home__hero-copy {
    width: 62%;
  }
  .mv-home__hero p {
    font-size: 14px;
    margin-block: var(--space-2) var(--space-3);
  }
  .mv-home__hero h2 {
    font-size: 26px;
  }
  .mv-home__hero .mv-btn {
    font-size: 14px;
  }
  .mv-home__finder p {
    margin-block: var(--space-2);
  }
  .mv-home__shortcuts img {
    width: 42px;
  }
  .mv-home__shortcuts .m-icon {
    display: none;
  }
  .mv-home__service {
    gap: 0 var(--space-3);
  }
}
