/* ===== Bebê Seguro ===== */
:root {
  --navy: #0f3b7d;
  --navy-2: #1d4a8f;
  --text: #1d3557;
  --muted: #4a5f7f;
  --blue: #2b6fc6;
  --blue-dark: #1f5aa8;
  --sky: #5aa6ee;
  --coral: #f4566a;
  --coral-2: #f87683;
  --bg: #eaf4fd;
  --bg-2: #f4f9ff;
  --card: #ffffff;
  --line: #dbe8f6;
  --star: #f5a623;
  --radius: 14px;
  --shadow: 0 6px 18px rgba(31, 79, 140, .10);
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Lexend", "Nunito", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
svg { width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; }

.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 24px; }

/* ===== Header ===== */
.site-header {
  position: relative;
  background:
    radial-gradient(90px 45px at 4% 30%, rgba(255,255,255,.95) 55%, transparent 60%),
    radial-gradient(70px 35px at 1% 55%, rgba(255,255,255,.95) 55%, transparent 60%),
    radial-gradient(90px 45px at 97% 45%, rgba(255,255,255,.95) 55%, transparent 60%),
    linear-gradient(180deg, #e4f1fd 0%, #eef6fe 100%);
  padding-top: 8px;
  z-index: 10;
}
.header-main {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 84px;
}
.logo { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.logo img { width: 56px; height: auto; transform: rotate(12deg); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 30px;
  color: var(--navy);
  letter-spacing: -.5px;
}
.logo-text small {
  margin-top: 6px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  text-align: center;
  color: var(--navy-2);
  line-height: 1.3;
}

.search {
  flex: 1;
  max-width: 520px;
  margin-left: auto;
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(31, 79, 140, .10);
  padding: 4px 4px 4px 44px;
}
.search-icon { position: absolute; left: 16px; color: #5b6f8c; font-size: 18px; }
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: transparent;
  padding: 10px 0;
}
.search input::placeholder { color: #6c7d96; }
.search button {
  width: 48px; height: 40px;
  border: 0; border-radius: 999px;
  background: var(--sky);
  color: #fff;
  font-size: 20px;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .2s;
}
.search button:hover { background: var(--blue); }

.header-actions { display: flex; align-items: center; gap: 40px; margin-left: auto; }
.account, .cart { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--navy); font-size: 15px; }
.account svg { font-size: 30px; }
.cart-icon { position: relative; font-size: 32px; display: flex; }
.cart-count {
  position: absolute;
  top: -8px; right: -8px;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid; place-items: center;
  transition: transform .25s;
}
.cart-count.bump { transform: scale(1.35); }
.cart-text { display: flex; flex-direction: column; line-height: 1.25; }
.cart-text strong { font-size: 15px; }
.cart-text span { font-size: 14px; font-weight: 600; color: var(--navy-2); }

/* nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(255,255,255,.75);
  border-radius: 16px 16px 0 0;
  margin-top: 4px;
  min-height: 58px;
  padding: 0 16px;
  position: relative;
}
.all-cats {
  display: flex; align-items: center; gap: 12px;
  border: 0; cursor: pointer;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(31, 79, 140, .10);
  padding: 10px 16px;
  font: inherit;
  font-weight: 800;
  font-size: 16px;
  color: var(--navy);
}
.all-cats svg { font-size: 22px; }
.nav-links { display: flex; flex: 1; justify-content: space-around; gap: 8px; }
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  padding: 8px 4px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.nav-links a:hover { color: var(--blue); border-color: var(--sky); }
.btn-offers {
  background: var(--coral-2);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  padding: 9px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(244, 86, 106, .25);
  transition: background .2s, transform .2s;
}
.btn-offers:hover { background: var(--coral); transform: translateY(-1px); }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  background: linear-gradient(90deg, #e9f3fd 0%, #e9f3fd 40%, #dcebfa 100%);
}
.hero-media {
  position: absolute;
  inset: 0 0 0 auto;
  width: 64%;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 75% 40%; }
.hero-media::before {
  /* esmaece a foto para o fundo à esquerda */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, #e9f3fd 0%, rgba(233,243,253,.9) 8%, rgba(233,243,253,.5) 18%, rgba(233,243,253,0) 34%);
  z-index: 1;
}
.hero::before, .hero::after {
  /* nuvens nos cantos */
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
}
.hero::before {
  left: -40px; top: 120px;
  width: 120px; height: 60px;
  background:
    radial-gradient(30px 30px at 40px 36px, #fff 98%, transparent),
    radial-gradient(26px 26px at 75px 30px, #fff 98%, transparent),
    radial-gradient(40px 22px at 60px 46px, #fff 98%, transparent);
  opacity: .9;
}
.hero::after {
  left: -20px; bottom: -10px; right: 0;
  height: 70px;
  background:
    radial-gradient(80px 40px at 40px 60px, rgba(255,255,255,.9) 98%, transparent),
    radial-gradient(70px 36px at 140px 70px, rgba(255,255,255,.8) 98%, transparent);
  opacity: .8;
}
.hero-inner {
  position: relative;
  z-index: 3;
  min-height: 560px;
  display: flex;
  align-items: center;
}
.hero-copy { max-width: 640px; padding: 48px 0; }
.hero h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.08;
  letter-spacing: -1px;
  color: var(--navy);
}
.hero-copy > p {
  margin-top: 18px;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.4;
  color: var(--text);
  max-width: 470px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-coral {
  margin-top: 30px;
  background: var(--coral);
  color: #fff;
  font-size: 19px;
  padding: 15px 30px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(244, 86, 106, .28);
}
.btn-coral svg { font-size: 22px; }
.btn-coral:hover { background: #e9465b; transform: translateY(-2px); }

.hero-features {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.hero-features li {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--text);
}
.feat-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #d8eafc;
  display: grid; place-items: center;
  color: var(--blue);
  margin-bottom: 8px;
}
.feat-icon svg { font-size: 30px; }

/* balão-nuvem */
.speech-cloud {
  position: absolute;
  right: 24px;
  top: 34px;
  width: 220px;
  height: 170px;
  display: grid;
  place-items: center;
  text-align: center;
  filter: drop-shadow(0 6px 14px rgba(31, 79, 140, .12));
}
.cloud-shape { position: absolute; inset: 0; width: 100%; height: 100%; fill: #fff; }
.speech-cloud p {
  position: relative;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy);
}
.cloud-heart {
  position: absolute;
  right: 14px; bottom: 22px;
  font-size: 28px;
  color: #f47a86;
  transform: rotate(10deg);
}

/* ===== Seções ===== */
.section { padding: 34px 0 30px; }
.categories { background: var(--bg-2); }
.products { background: var(--bg); }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-bottom: 20px;
}
.section-head h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 27px);
  color: var(--navy);
  letter-spacing: -.3px;
}
.see-all {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--navy);
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 1px;
  white-space: nowrap;
}
.see-all svg { font-size: 18px; }
.see-all:hover { color: var(--blue); }

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* categorias */
.cat-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(31, 79, 140, .16); }
.cat-card img { width: 100%; aspect-ratio: 140 / 100; object-fit: cover; }
.cat-body { display: flex; gap: 12px; padding: 14px 12px 18px; align-items: flex-start; }
.cat-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
  font-size: 22px;
  color: #fff;
}
.cat-icon.pink   { background: #fcd3d6; color: #f05d6c; }
.cat-icon.blue   { background: #5aa6ee; }
.cat-icon.green  { background: #7cc78f; }
.cat-icon.yellow { background: #fbd56b; color: #e98a0c; }
.cat-icon.purple { background: #b9a2f2; }
.cat-body h3 { font-size: 15px; font-weight: 800; color: var(--navy); line-height: 1.2; }
.cat-body p { margin-top: 4px; font-size: 13px; line-height: 1.3; color: var(--muted); }

/* produtos */
.product-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px 10px 14px;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(31, 79, 140, .16); }
.product-card img { width: 100%; height: auto; aspect-ratio: 140 / 96; object-fit: cover; border-radius: 6px; }
.product-card h3 {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
  min-height: 2.6em;
  padding: 0 4px;
}
.product-card h3 strong { font-weight: 800; display: block; }
.rating { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 0 4px; }
.stars {
  --percent: calc(var(--rating) / 5 * 100%);
  display: inline-block;
  font-size: 17px;
  line-height: 1;
  letter-spacing: 1px;
  font-family: Arial, sans-serif;
}
.stars::before {
  content: "★★★★★";
  background: linear-gradient(90deg, var(--star) var(--percent), #d8dee7 var(--percent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rating .count { font-size: 13px; color: var(--muted); }
.price {
  margin-top: 6px;
  padding: 0 4px;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
}
.btn-buy {
  margin-top: 12px;
  width: 100%;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 11px 12px;
  border-radius: 8px;
}
.btn-buy svg { font-size: 19px; }
.btn-buy:hover { background: var(--blue-dark); }
.btn-buy.added { background: #2f9e6a; }

/* selos */
.trust {
  background:
    radial-gradient(90px 40px at 0% 80%, #fff 55%, transparent 60%),
    radial-gradient(90px 40px at 100% 85%, #fff 55%, transparent 60%),
    #e3effc;
  padding: 22px 0;
}
.trust-list {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}
.trust-list li {
  display: flex; align-items: center; gap: 12px;
  color: var(--blue);
  font-size: 14px; font-weight: 700;
}
.trust-list li > svg { font-size: 34px; }
.trust-list .green-ic { color: #2fa36b; }
.trust-list span { display: flex; flex-direction: column; color: var(--navy); line-height: 1.3; }
.trust-list small { font-size: 13px; font-weight: 600; color: var(--muted); }

.site-footer {
  background: var(--navy);
  color: #cfe0f5;
  font-size: 14px;
  text-align: center;
  padding: 18px 0;
}

/* toast */
.toast {
  position: fixed;
  left: 50%; bottom: 24px;
  transform: translate(-50%, 140%);
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15, 59, 125, .35);
  transition: transform .3s ease, visibility .3s;
  visibility: hidden;
  z-index: 100;
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* ===== Responsivo ===== */
@media (max-width: 1100px) {
  .header-main { gap: 20px; }
  .header-actions { gap: 24px; }
  .nav-links a { font-size: 13px; }
  .btn-offers { padding: 9px 24px; }
}

@media (max-width: 960px) {
  .header-main { flex-wrap: wrap; padding-bottom: 12px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .account span { display: none; }

  .main-nav { flex-wrap: wrap; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    padding: 8px 20px 16px;
    box-shadow: 0 12px 24px rgba(31, 79, 140, .15);
    border-radius: 0 0 16px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; font-size: 15px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .btn-offers { margin-left: auto; }

  .hero, .hero-inner { min-height: 0; }
  .hero-media { position: relative; width: 100%; height: 340px; }
  .hero-media img { object-position: 68% 50%; }
  .hero::before { display: none; }
  .hero-media::before { background: linear-gradient(0deg, #e9f3fd 0%, rgba(233,243,253,0) 30%); }
  .hero-inner { flex-direction: column; align-items: stretch; }
  .hero-copy { max-width: none; padding: 8px 0 40px; }
  /* no celular o balão fica pequeno no canto superior esquerdo da foto */
  .speech-cloud {
    top: -332px; left: 6px; right: auto;
    width: 150px; height: 116px;
  }
  .speech-cloud p { font-size: 11px; line-height: 1.3; }
  .cloud-heart { font-size: 18px; right: 10px; bottom: 14px; }

  .grid-5 {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(200px, 42%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 4px 16px;
    margin: 0 -4px;
  }
  .grid-5 > * { scroll-snap-align: start; }

  .trust-list { flex-wrap: wrap; justify-content: flex-start; }
  .trust-list li { flex: 1 1 calc(50% - 18px); }
}

@media (max-width: 600px) {
  /* os diferenciais do topo repetem os selos do fim: no celular ficam só os selos */
  .hero .hero-features { display: none; }
  .hero-copy { padding-bottom: 32px; }
  .trust { padding: 14px 0 16px; }
  .trust-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 12px; }
  .trust-list li { gap: 8px; }
  .trust-list li:last-child { grid-column: 1 / -1; justify-self: center; }
  .trust-list li > svg {
    font-size: 18px; width: 34px; height: 34px; padding: 8px;
    border-radius: 50%; background: #fff; box-shadow: var(--shadow);
  }
  .trust-list span { font-size: 12.5px; line-height: 1.2; }
  .trust-list small { font-size: 11px; }

  .section { padding: 26px 0 22px; }
  .section-head { flex-direction: row; align-items: center; margin-bottom: 14px; }
  .section-head h2 { font-size: 20px; }
  .see-all { font-size: 13px; }
  .see-all svg { font-size: 15px; }

  /* categorias: bolinhas roláveis, estilo app */
  .categories .grid-5 {
    grid-auto-columns: 86px;
    gap: 12px;
    padding: 4px 4px 8px;
  }
  .cat-card {
    background: none; box-shadow: none; border-radius: 0; overflow: visible;
    display: flex; flex-direction: column; align-items: center; text-align: center;
  }
  .cat-card:hover { transform: none; box-shadow: none; }
  .cat-card img {
    width: 76px; height: 76px; aspect-ratio: 1; border-radius: 50%;
    border: 3px solid #fff; box-shadow: var(--shadow);
  }
  .cat-body { padding: 8px 0 0; display: block; }
  .cat-icon, .cat-body p { display: none; }
  .cat-body h3 { font-size: 12.5px; font-weight: 700; line-height: 1.25; }

  /* produtos: grade de 2 colunas */
  .products .grid-5 {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-columns: auto;
    overflow: visible;
    gap: 12px;
    padding: 0; margin: 0;
  }
  .product-card { padding: 8px 8px 10px; }
  .product-card img { aspect-ratio: 1; }
  .product-card h3 {
    margin-top: 10px; font-size: 13.5px; min-height: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .price { font-size: 18px; margin-top: 4px; }
  .btn-buy { font-size: 14px; padding: 9px 8px; margin-top: auto; }
  .product-card .price { margin-bottom: 10px; }
  .product-card:nth-child(5) { display: none; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .logo img { width: 44px; }
  .logo-text strong { font-size: 24px; }
  .logo-text small { font-size: 8px; letter-spacing: 1.6px; }
  .cart-text { display: none; }
  .header-main { gap: 12px; }
  .all-cats { font-size: 14px; padding: 9px 12px; }
  .btn-offers { padding: 9px 18px; font-size: 15px; }
  .hero-media { height: 280px; }
  .speech-cloud { top: -272px; }
  .hero-features { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .grid-5 { grid-auto-columns: 72%; }
}
