/* MotherCare ecommerce site */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&display=swap');

:root {
  --rose: #df5f7f;
  --rose-dark: #b93e61;
  --rose-soft: #fff0f4;
  --teal: #2f8f83;
  --mint: #e9f8f4;
  --amber: #f1a93b;
  --ink: #2d2830;
  --muted: #736a73;
  --line: #eadfe5;
  --paper: #fffafb;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(80, 54, 68, 0.12);
  --shadow-sm: 0 8px 22px rgba(80, 54, 68, 0.08);
  --maxw: 1180px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { border: 0; background: none; cursor: pointer; }

.announce {
  background: linear-gradient(90deg, var(--rose-dark), var(--teal));
  color: #fff;
  text-align: center;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
}

.header {
  position: sticky;
  top: 0;
  z-index: 900;
  border-bottom: 1px solid rgba(234, 223, 229, 0.9);
  background: rgba(255, 250, 251, 0.9);
  backdrop-filter: blur(14px);
}

.header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; text-decoration: none; }
.brand__logo { width: 38px; height: 38px; }
.brand__name {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 0.5px;
  color: #2d2830;
  text-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.brand__name::first-letter { font-size: 1.15em; }
.brand__name span {
  color: var(--rose-dark);
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0;
}

.nav { flex: 1; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 42px;
  padding: 9px 13px;
  border-radius: 8px;
  font-weight: 700;
  color: var(--ink);
  transition: background 0.2s, color 0.2s;
}
.nav__link:hover { background: var(--rose-soft); color: var(--rose-dark); }
.caret { font-size: 10px; }

.nav__item--has-menu { position: relative; }
.mega {
  position: absolute;
  top: 110%;
  left: 0;
  min-width: 520px;
  display: none;
  grid-template-columns: 1fr 1fr 1.35fr;
  gap: 22px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.nav__item--has-menu:hover .mega,
.nav__item--has-menu:focus-within .mega { display: grid; animation: pop 0.18s ease; }
.mega__col h4 {
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.mega__col a { display: block; padding: 6px 0; font-weight: 700; }
.mega__col a:hover { color: var(--rose-dark); }
.mega__promo { position: relative; overflow: hidden; min-height: 150px; border-radius: 8px; background: var(--mint); }
.mega__promo img { width: 100%; height: 100%; object-fit: cover; }
.mega__promo span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--rose-dark);
  font-size: 13px;
  font-weight: 850;
}

.header__actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  font-size: 17px;
  transition: background 0.2s, transform 0.2s;
}
.icon-btn:hover { background: var(--rose-soft); transform: translateY(-1px); }
.nav-toggle { display: none; }
.cart-btn { position: relative; }
.cart-count {
  position: absolute;
  top: 1px;
  right: 0;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
}
.search {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 42px;
  padding: 4px 5px 4px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}
.search input {
  width: 150px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}
.search .icon-btn { width: 32px; height: 32px; font-size: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 850;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--rose-dark); color: #fff; box-shadow: var(--shadow-sm); border: 2px solid transparent; }
.btn--primary:hover { background: #9e2a49; }
.btn--light { background: #fff; color: var(--ink); }
.btn--outline { border: 2px solid var(--rose); color: var(--rose-dark); background: transparent; }
.btn--outline:hover { background: var(--rose); color: #fff; }
.btn--block { width: 100%; }

.eyebrow {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px;
}
.hero__slides {
  position: relative;
  min-height: clamp(500px, 70vh, 680px);
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.hero__slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 28px;
  padding: clamp(34px, 6vw, 66px);
  opacity: 0;
  transform: scale(0.99);
  transition: opacity 0.5s, transform 0.5s;
  pointer-events: none;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); pointer-events: auto; }
.hero__slide--photo {
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(90deg, rgba(45, 40, 48, 0.72), rgba(45, 40, 48, 0.24), rgba(45, 40, 48, 0.05)),
    url("../images/afrimother.jpg") center center / cover no-repeat;
}
.hero__slide--bundle { background: linear-gradient(120deg, #fff0f4, #e9f8f4); }
.hero__slide--play { background: linear-gradient(120deg, #f7f1ff, #fff8ed); }
.hero__text { max-width: 560px; }
.hero__slide--photo .hero__text { color: #fff; padding-bottom: 22px; }
.hero__slide--photo .eyebrow { color: #fbd7a0; }
.hero__text h1, .hero__text h2 {
  margin: 4px 0 16px;
  font-size: 76px;
  line-height: 0.98;
  letter-spacing: 0;
}
.hero__text h2 { font-size: 54px; }
.hero__text p {
  max-width: 500px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 18px;
}
.hero__slide--photo .hero__text p { color: rgba(255, 255, 255, 0.9); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Prevent hero CTA buttons from getting clipped and keep them styled like normal buttons */
.hero__text { position: relative; z-index: 1; }
.hero__cta .btn {
  white-space: nowrap;
  padding: 12px 24px;
  font-size: 15px;
  border-radius: 999px;
}


.hero__media img {
  width: min(420px, 100%);
  margin-left: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.hero__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.hero__dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d7c8d0;
  transition: width 0.25s, background 0.25s;
}
.hero__dots button.is-active { width: 30px; background: var(--rose); }

.features {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 4px 22px 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.features__item {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.features__ico {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--teal);
  font-size: 18px;
}
.features__item strong { display: block; font-size: 15px; }
.features__item small { color: var(--muted); font-size: 13px; }

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 62px 22px;
}
.section--tint {
  max-width: none;
  background: linear-gradient(180deg, var(--rose-soft), #fff);
}
.section__inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.section__head h2 {
  font-size: 36px;
  line-height: 1.12;
  letter-spacing: 0;
}
.link-more { color: var(--rose-dark); font-weight: 850; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
}
.cat {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
  font-weight: 850;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; background: var(--mint); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}
.chip:hover { color: var(--rose-dark); border-color: var(--rose); }
.chip.is-active { background: var(--teal); color: #fff; border-color: var(--teal); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s, box-shadow 0.22s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--rose-soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--amber);
  color: #2d2830;
  font-size: 12px;
  font-weight: 850;
}
.card__wish {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--rose-dark);
  font-size: 18px;
}
.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
}
.card__cat {
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.card__title { font-size: 16px; line-height: 1.3; }
.card__stars { color: var(--amber); font-size: 14px; letter-spacing: 1px; }
.card__price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.card__price .now { color: var(--rose-dark); font-size: 18px; font-weight: 850; }
.card__price .was { color: var(--muted); font-size: 14px; text-decoration: line-through; }
.card__actions {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 8px;
  padding: 0 16px 16px;
}
.card__actions .btn { min-height: 42px; padding: 10px 12px; font-size: 14px; }
.card__quick {
  width: 44px;
  min-height: 42px;
  border-radius: 8px;
  background: var(--mint);
  color: var(--teal);
  font-size: 18px;
  font-weight: 850;
}
.card__quick:hover { background: var(--teal); color: #fff; }
.empty { text-align: center; color: var(--muted); padding: 42px; font-size: 18px; }

.promo {
  max-width: var(--maxw);
  margin: 64px auto 0;
  padding: 0 22px;
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  align-items: center;
  gap: 0;
}
.promo__bg {
  width: 100%;
  height: 100%;
  min-height: 220px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  border-radius: 8px 0 0 8px;
  background: var(--mint);
}


/* Make sure the grid row gives the image a real height to render */
.promo > .promo__bg {
  align-self: stretch;
}
.promo__content {
  min-height: 280px;
  padding: 42px;
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: #fff;
}
.promo__content h2, .about__text h2, .newsletter__inner h2 {
  margin-bottom: 12px;
  font-size: 36px;
  line-height: 1.14;
}
.promo__content p, .about__text p, .newsletter__inner p { color: var(--muted); }
.promo__content p { max-width: 430px; margin-bottom: 22px; }

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
}
.about__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.about__text p { margin-bottom: 18px; }
.about__list {
  display: grid;
  gap: 10px;
  margin: 20px 0 24px;
  list-style: none;
}
.about__list li {
  position: relative;
  padding-left: 24px;
  font-weight: 750;
}
.about__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
}

.t-grid, .blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.t-card, .blog-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.t-card { padding: 26px; text-align: center; }
.t-avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 50%;
}
.t-stars { color: var(--amber); letter-spacing: 2px; margin-bottom: 10px; }
.t-card blockquote { margin-bottom: 14px; font-style: italic; }
.t-card figcaption { color: var(--muted); font-size: 14px; font-weight: 800; }

.blog-card { transition: transform 0.2s, box-shadow 0.2s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-card__media {
  height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--mint);
  border-radius: 8px 8px 0 0;
}

/* Make the image itself scale to the container width while preserving full view */
.blog-card__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}





.blog-card > div { padding: 18px; }
.blog-tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
}
.blog-card h3 { margin-bottom: 6px; font-size: 18px; }
.blog-card p { color: var(--muted); font-size: 14px; }

.newsletter {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto 64px;
  padding: 0 22px;
}
.newsletter__bg {
  position: absolute;
  inset: 0 22px;
  width: calc(100% - 44px);
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.newsletter__inner {
  position: relative;
  padding: 54px 34px;
  text-align: center;
}
.newsletter__inner p { margin-bottom: 22px; }
.newsletter__form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.newsletter__form input {
  flex: 1 1 230px;
  min-height: 46px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
}
.newsletter__msg {
  display: block;
  margin-top: 12px;
  color: var(--rose-dark);
  font-weight: 850;
}
#hero{
  align-items:center;
}

.footer {
  padding: 54px 22px 24px;
  background: #2d2830;
  color: #d9d1d6;
}
.footer__cols {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.35fr;
  gap: 30px;
}
.footer__brand .brand__name { color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.25); }
.footer__brand p { margin-top: 12px; max-width: 300px; font-size: 14px; color: #c7bdc4; }
.footer h4 { margin-bottom: 12px; color: #fff; font-size: 15px; }
.footer__cols a, .footer__cols p { display: block; padding: 4px 0; color: #c7bdc4; font-size: 14px; }
.footer__cols a:hover { color: #fff; }
.socials { display: flex; gap: 9px; margin-top: 10px; }
.socials a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  font-weight: 850;
}
.footer__bottom {
  max-width: var(--maxw);
  margin: 34px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: #b8adb5;
  font-size: 13px;
}

.drawer-overlay, .modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45, 40, 48, 0.5);
}
.drawer-overlay { z-index: 1000; }
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1001;
  width: min(420px, 92vw);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18);
  transform: translateX(100%);
  transition: transform 0.28s ease;
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer__head, .cart-drawer__foot {
  padding: 20px;
  border-color: var(--line);
}
.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: grid;
  align-content: start;
  gap: 14px;
}
.cart-drawer__foot {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
}
.cart-empty { margin-top: 36px; text-align: center; color: var(--muted); }
.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: var(--rose-soft); }
.cart-item__title { font-size: 14px; font-weight: 850; }
.cart-item__price { color: var(--muted); font-size: 13px; }
.cart-item__qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.cart-item__qty button {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--mint);
  color: var(--teal);
  font-weight: 850;
}
.cart-item__remove { margin-top: 4px; color: var(--muted); font-size: 12px; text-decoration: underline; }
.cart-total { display: flex; justify-content: space-between; font-size: 17px; }
.cart-total strong { color: var(--rose-dark); }

.modal-overlay {
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal {
  position: relative;
  width: min(840px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  animation: pop 0.22s ease;
}
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.modal__media img { width: 100%; height: 100%; min-height: 330px; object-fit: cover; background: var(--rose-soft); }
.modal__info { padding: 36px; }
.modal__cat {
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.modal__info h3 { margin: 6px 0 8px; font-size: 27px; line-height: 1.18; }
.modal__stars { color: var(--amber); margin-bottom: 10px; }
.modal__price { margin-bottom: 12px; color: var(--rose-dark); font-size: 24px; font-weight: 850; }
.modal__desc { margin-bottom: 20px; color: var(--muted); }
.qty {
  display: inline-flex;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.qty__btn { width: 42px; height: 44px; background: var(--mint); color: var(--teal); font-weight: 850; }
.qty input {
  width: 52px;
  border: 0;
  outline: 0;
  text-align: center;
  font-weight: 850;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1200;
  transform: translateX(-50%) translateY(18px);
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 850;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

@keyframes pop {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 1040px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer__cols { grid-template-columns: 1.5fr 1fr 1fr; }
}

@media (max-width: 860px) {
  /* Center the whole last hero slide contents on tablet */
  .hero__slide--play,
  .hero__slide--bundle,
  .hero__slide--photo {
    justify-items: center;
  }
  .hero__text {
    margin: 0 auto;
  }

  .hero__cta { justify-content: center; }

  .nav-toggle { display: grid; }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 950;
    width: min(310px, 82vw);
    padding: 82px 20px 24px;
    background: #fff;
    box-shadow: -12px 0 35px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.28s;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list { align-items: stretch; flex-direction: column; }
  .mega {
    position: static;
    min-width: 0;
    grid-template-columns: 1fr;
    box-shadow: none;
    margin-top: 4px;
  }
  .search input { width: 110px; }
  .hero__slides { min-height: 560px; }
  .hero__slide { grid-template-columns: 1fr; text-align: center; }
  .hero__text h1 { font-size: 60px; }
  .hero__text h2 { font-size: 44px; }
  .section__head h2,
  .promo__content h2,
  .about__text h2,
  .newsletter__inner h2 { font-size: 32px; }
  .hero__slide--photo { align-items: center; text-align: center; }
  .hero__text p { margin-left: auto; margin-right: auto; }
  .hero__slide--photo .hero__text p { margin-left: 0; }
  .hero__cta { justify-content: center; }
  .hero__slide--photo .hero__cta { justify-content: center; }

  .hero__media { order: -1; max-width: 360px; margin: 0 auto; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .promo, .about, .t-grid, .blog-grid { grid-template-columns: 1fr; }
  .promo__bg { border-radius: 8px 8px 0 0; aspect-ratio: 16 / 9; min-height: 220px; }
  .promo__content { border-left: 1px solid var(--line); border-top: 0; border-radius: 0 0 8px 8px; }
  .modal { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; }
  .modal__media img { min-height: 250px; }
}

@media (max-width: 560px) {
  .announce { font-size: 12px; }
  .header__inner { flex-wrap: wrap; padding-inline: 16px; gap: 10px; }
  .brand__name { font-size: 20px; }
  .header__actions { margin-left: auto; }
  .search { order: 3; flex: 1 1 100%; }
  .search input { flex: 1; width: 100%; }
  .hero { padding: 16px; }
  .hero__slides { min-height: 570px; }
  .hero__slide { padding: 28px 22px; }
  .hero__slide--photo {
    background:
      linear-gradient(0deg, rgba(45, 40, 48, 0.82), rgba(45, 40, 48, 0.2)),
      url("../mother and baby.jpg") center top / cover no-repeat;
  }
  .hero__text h1 { font-size: 46px; }
  .hero__text h2 { font-size: 34px; }
  .section__head h2,
  .promo__content h2,
  .about__text h2,
  .newsletter__inner h2 { font-size: 28px; }
  .hero__cta .btn { width: 100%; }
  .features, .cat-grid, .product-grid, .footer__cols { grid-template-columns: 1fr; }
  .section { padding: 48px 16px; }
  .section--tint { padding-left: 16px; padding-right: 16px; }
  .promo, .newsletter { padding-inline: 16px; }
  .newsletter__bg { inset-inline: 16px; width: calc(100% - 32px); }
  .promo__content, .modal__info { padding: 28px 22px; }
  .footer__bottom { display: grid; }
}
