/* =========================================================
   LojaMundo Brasil - Estilos
   Paleta: azul-marinho (cabeçalho) + laranja (CTA), estilo marketplace
   ========================================================= */

:root {
  --navy: #0f2a4a;
  --navy-dark: #0a1e36;
  --navy-light: #163b66;
  --orange: #ff8a00;
  --orange-dark: #e67a00;
  --yellow: #ffc233;
  --red: #e53935;
  --green: #1e9e5a;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f4f6f9;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(15, 42, 74, 0.08);
  --shadow-lg: 0 10px 30px rgba(15, 42, 74, 0.15);
  --container: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 70px; /* espaço para a barra do app */
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: 6px; font-weight: 700; font-size: 14px;
  transition: all .2s ease; white-space: nowrap;
}
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(255,138,0,.35); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--yellow); }
.btn--lg { padding: 14px 32px; font-size: 16px; }
.btn--sm { padding: 8px 14px; font-size: 12px; }
.btn--add {
  width: 100%; background: var(--navy); color: #fff; padding: 9px; font-size: 13px; margin-top: 10px;
}
.btn--add:hover { background: var(--orange); }

.link { color: var(--navy-light); font-weight: 600; font-size: 14px; }
.link:hover { color: var(--orange); }

/* ---------- Barra superior ---------- */
.topbar { background: var(--navy-dark); color: #cbd5e1; font-size: 12px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; height: 32px; }
.topbar__left, .topbar__right { display: flex; gap: 10px; align-items: center; }
.topbar__sep { opacity: .4; }
.topbar a:hover { color: var(--yellow); }
.topbar strong { color: #fff; }

/* ---------- Cabeçalho ---------- */
.header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.header__inner { display: flex; align-items: center; gap: 20px; height: 68px; }

.header__burger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.header__burger span { width: 24px; height: 3px; background: #fff; border-radius: 2px; }

.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo__icon {
  width: 38px; height: 38px; border-radius: 8px; background: var(--orange);
  display: grid; place-items: center; font-weight: 900; font-size: 22px; color: #fff;
}
.logo__text { font-size: 22px; font-weight: 400; letter-spacing: -.5px; }
.logo__text strong { color: var(--yellow); }

.search { flex: 1; display: flex; max-width: 720px; height: 42px; border-radius: 6px; overflow: hidden; background: #fff; }
.search__cat { border: none; background: #eef2f7; color: var(--text); padding: 0 10px; font-size: 13px; border-right: 1px solid var(--line); outline: none; }
.search__input { flex: 1; border: none; padding: 0 14px; font-size: 14px; outline: none; color: var(--text); }
.search__btn { background: var(--orange); width: 52px; font-size: 18px; }
.search__btn:hover { background: var(--orange-dark); }

.header__actions { display: flex; gap: 18px; margin-left: auto; }
.action { display: flex; align-items: center; gap: 8px; }
.action__icon { font-size: 24px; position: relative; }
.action__text { display: flex; flex-direction: column; line-height: 1.15; }
.action__text small { font-size: 11px; color: #cbd5e1; }
.action__text strong { font-size: 13px; }
.cart-badge {
  position: absolute; top: -6px; right: -10px; background: var(--orange); color: #fff;
  font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px;
  display: grid; place-items: center; padding: 0 4px;
}

/* ---------- Navegação ---------- */
.nav { background: var(--navy-light); border-top: 1px solid rgba(255,255,255,.08); }
.nav__inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav__inner::-webkit-scrollbar { display: none; }
.nav__item { padding: 10px 12px; font-size: 13px; font-weight: 500; white-space: nowrap; color: #e2e8f0; border-bottom: 2px solid transparent; }
.nav__item:hover { color: #fff; border-bottom-color: var(--orange); }
.nav__item--deal { color: var(--yellow); font-weight: 700; }

/* ---------- Hero ---------- */
.hero { padding: 20px 0 10px; }
.slider { position: relative; border-radius: 14px; overflow: hidden; height: 360px; box-shadow: var(--shadow-lg); }
.slide {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 40px 60px; opacity: 0; transition: opacity .6s ease; color: #fff;
}
.slide.is-active { opacity: 1; z-index: 1; }
.slide--1 { background: linear-gradient(120deg, #0f2a4a 0%, #1e5aa8 60%, #ff8a00 140%); }
.slide--2 { background: linear-gradient(120deg, #6a1b9a 0%, #e53935 100%); }
.slide--3 { background: linear-gradient(120deg, #00695c 0%, #1e88e5 100%); }
.slide__content { max-width: 560px; }
.slide__tag { display: inline-block; background: rgba(255,255,255,.18); padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 14px; }
.slide h1 { font-size: 42px; line-height: 1.1; margin-bottom: 14px; font-weight: 800; }
.slide h1 em { font-style: normal; color: var(--yellow); }
.slide p { font-size: 17px; opacity: .92; margin-bottom: 24px; }
.slide__visual { font-size: 150px; line-height: 1; filter: drop-shadow(0 10px 25px rgba(0,0,0,.3)); animation: float 4s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.slider__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.85); color: var(--navy);
  font-size: 28px; line-height: 1; display: grid; place-items: center; transition: background .2s;
}
.slider__arrow:hover { background: #fff; }
.slider__arrow--prev { left: 14px; }
.slider__arrow--next { right: 14px; }
.slider__dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: 8px; }
.slider__dots button { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5); transition: all .2s; }
.slider__dots button.is-active { background: #fff; width: 26px; border-radius: 5px; }

/* ---------- Seções ---------- */
.section { padding: 28px 0; }
.section--gray { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section__head h2 { font-size: 22px; font-weight: 800; color: var(--navy); }
.section__head .link { margin-left: auto; }
.section__head--center { flex-direction: column; text-align: center; gap: 6px; }
.rating-summary { color: var(--muted); }
.rating-summary b { color: var(--text); }

/* ---------- Tiles de categoria ---------- */
.tiles { display: grid; gap: 14px; }
.tiles--5 { grid-template-columns: repeat(5, 1fr); }
.tiles--4 { grid-template-columns: repeat(4, 1fr); }
.tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 22px 14px; border-radius: var(--radius); color: #fff; font-weight: 700; font-size: 14px; text-align: center;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tile__icon { font-size: 40px; }
.tile--a { background: linear-gradient(135deg, #37474f, #607d8b); }
.tile--b { background: linear-gradient(135deg, #1565c0, #42a5f5); }
.tile--c { background: linear-gradient(135deg, #ad1457, #ec407a); }
.tile--d { background: linear-gradient(135deg, #2e7d32, #66bb6a); }
.tile--e { background: linear-gradient(135deg, #ef6c00, #ffa726); }
.tiles--tall .tile { padding: 36px 14px; }
.tile__flag { font-size: 54px; }
.tile strong { font-size: 18px; }
.tiles--tall .tile span:last-child { font-weight: 400; font-size: 13px; opacity: .9; }
.tile--us { background: linear-gradient(135deg, #b71c1c, #1a237e); }
.tile--uk { background: linear-gradient(135deg, #1a237e, #c62828); }
.tile--eu { background: linear-gradient(135deg, #0d47a1, #fbc02d); }
.tile--hk { background: linear-gradient(135deg, #c62828, #ef5350); }

/* ---------- Barra "Comprar de" ---------- */
.storebar { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; }
.storebar__inner { display: flex; align-items: center; gap: 12px; }
.storebar__label { font-weight: 700; font-size: 14px; color: var(--navy); white-space: nowrap; }
.storebar__list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.storebar__list::-webkit-scrollbar { display: none; }
.chip { padding: 7px 14px; border-radius: 20px; border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; transition: all .15s; }
.chip:hover { border-color: var(--navy); }
.chip.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Countdown ---------- */
.countdown { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.countdown b { background: var(--red); color: #fff; padding: 3px 7px; border-radius: 4px; font-variant-numeric: tabular-nums; }

/* ---------- Grade de produtos ---------- */
.grid { display: grid; gap: 14px; }
.grid--products { grid-template-columns: repeat(6, 1fr); }
.grid--6 { grid-template-columns: repeat(6, 1fr); }

.product {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s;
}
.product:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.product__img {
  height: 150px; border-radius: 8px; display: grid; place-items: center; font-size: 64px; margin-bottom: 10px;
}
.product__img--1 { background: linear-gradient(135deg, #e3f2fd, #bbdefb); }
.product__img--2 { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); }
.product__img--3 { background: linear-gradient(135deg, #fff8e1, #ffecb3); }
.product__img--4 { background: linear-gradient(135deg, #f3e5f5, #e1bee7); }
.product__img--5 { background: linear-gradient(135deg, #eceff1, #cfd8dc); }
.product__img--6 { background: linear-gradient(135deg, #e0f7fa, #b2ebf2); }
.product__img--7 { background: linear-gradient(135deg, #fbe9e7, #ffccbc); }
.product__img--8 { background: linear-gradient(135deg, #e8eaf6, #c5cae9); }
.product__img--9 { background: linear-gradient(135deg, #fce4ec, #f8bbd0); }
.product__img--10 { background: linear-gradient(135deg, #fff3e0, #ffe0b2); }
.product__img--11 { background: linear-gradient(135deg, #f1f8e9, #dcedc8); }
.product__store { font-size: 11px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.product__title { font-size: 13px; font-weight: 600; line-height: 1.35; height: 2.7em; overflow: hidden; margin-bottom: 6px; }
.product__rating { font-size: 12px; color: #f5a623; margin-bottom: 6px; }
.product__rating small { color: var(--muted); }
.product__price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.product__price s { font-size: 12px; color: var(--muted); }
.product__price b { font-size: 18px; color: var(--navy); }

.badge { position: absolute; top: 10px; left: 10px; z-index: 1; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 4px; color: #fff; }
.badge--sale { background: var(--red); }
.badge--hot { background: var(--orange); }
.badge--new { background: var(--green); }

/* ---------- Deal tile ---------- */
.deal-tile {
  background: linear-gradient(160deg, var(--orange), #ff5722); color: #fff; border-radius: var(--radius);
  padding: 22px 16px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 8px;
}
.deal-tile__eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; opacity: .9; }
.deal-tile h3 { font-size: 22px; line-height: 1.15; font-weight: 800; }
.deal-tile p { font-size: 13px; opacity: .9; }
.coupon { background: #fff; color: #e65100; font-weight: 900; letter-spacing: 2px; padding: 8px 14px; border-radius: 6px; border: 2px dashed #e65100; font-size: 15px; }

/* ---------- Marcas ---------- */
.brands { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; margin-bottom: 26px; }
.brand {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 12px;
  display: flex; flex-direction: column; gap: 4px; text-align: center; transition: all .2s;
}
.brand:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.brand b { font-size: 17px; }
.brand span { font-size: 12px; color: var(--muted); }
.brand:hover span { color: #cbd5e1; }
.brand em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--orange); margin-top: 6px; }

.taglist h3 { font-size: 16px; color: var(--navy); margin-bottom: 10px; }
.taglist__items { display: flex; flex-wrap: wrap; gap: 8px; }
.taglist__items a { padding: 6px 12px; background: var(--bg); border-radius: 4px; font-size: 13px; border: 1px solid var(--line); }
.taglist__items a:hover { border-color: var(--navy); color: var(--navy); }
.taglist__more { color: var(--orange) !important; font-weight: 700; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 16px; text-align: center; }
.feature span { font-size: 36px; display: block; margin-bottom: 8px; }
.feature b { display: block; font-size: 15px; color: var(--navy); margin-bottom: 6px; }
.feature p { font-size: 13px; color: var(--muted); }

/* ---------- Avaliações ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review { background: var(--bg); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.review__stars { color: #f5a623; margin-bottom: 10px; font-size: 16px; }
.review p { font-size: 14px; font-style: italic; margin-bottom: 14px; color: var(--text); }
.review b { display: block; font-size: 14px; color: var(--navy); }
.review small { color: var(--muted); font-size: 12px; }

/* ---------- Newsletter ---------- */
.newsletter { background: linear-gradient(120deg, var(--navy), var(--navy-light)); color: #fff; padding: 40px 0; }
.newsletter__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.newsletter h2 { font-size: 24px; margin-bottom: 4px; }
.newsletter p { opacity: .85; font-size: 14px; }
.newsletter__form { display: flex; gap: 8px; flex: 1; max-width: 520px; }
.newsletter__form input { flex: 1; padding: 12px 16px; border-radius: 6px; border: none; font-size: 14px; outline: none; }
.newsletter__ok { display: none; width: 100%; color: var(--yellow); font-weight: 600; }
.newsletter__ok.is-visible { display: block; }

/* ---------- SEO colunas ---------- */
.seo-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.seo-cols h4 { font-size: 15px; color: var(--navy); margin-bottom: 8px; }
.seo-cols a { display: block; font-size: 13px; color: var(--muted); padding: 3px 0; }
.seo-cols a:hover { color: var(--orange); }

/* ---------- Rodapé ---------- */
.footer { background: var(--navy-dark); color: #cbd5e1; padding-top: 40px; font-size: 13px; }
.footer__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px; padding-bottom: 36px; }
.footer__col h4 { color: #fff; font-size: 14px; margin-bottom: 12px; margin-top: 18px; text-transform: uppercase; letter-spacing: .5px; }
.footer__col h4:first-child { margin-top: 0; }
.footer__col a { display: block; padding: 4px 0; }
.footer__col a:hover { color: var(--yellow); }
.footer__col p { margin-bottom: 8px; line-height: 1.6; }
.footer__col b { color: #fff; }
.paylogos { display: flex; flex-wrap: wrap; gap: 6px; }
.paylogos span { background: #fff; color: var(--navy); font-weight: 800; font-size: 11px; padding: 4px 8px; border-radius: 4px; }
.appbadges { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.appbadge { background: #000; color: #fff !important; padding: 10px 14px !important; border-radius: 6px; font-weight: 700; display: inline-block; border: 1px solid #333; }
.appbadge:hover { background: #222; }
.social { display: flex; gap: 8px; }
.social a { width: 36px; height: 36px; border-radius: 50%; background: var(--navy-light); display: grid !important; place-items: center; padding: 0 !important; font-weight: 700; }
.social a:hover { background: var(--orange); color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; }
.footer__bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12px; }
.trust { color: var(--green); font-weight: 600; }

/* ---------- Barra fixa do App ---------- */
.appbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; background: var(--navy); color: #fff;
  box-shadow: 0 -4px 16px rgba(0,0,0,.25); transition: transform .3s;
}
.appbar.is-hidden { transform: translateY(100%); }
.appbar__inner { display: flex; align-items: center; gap: 14px; height: 62px; }
.appbar__icon { font-size: 30px; }
.appbar__text { display: flex; flex-direction: column; line-height: 1.2; flex: 1; }
.appbar__text b { font-size: 14px; }
.appbar__text small { font-size: 12px; color: #cbd5e1; }
.appbar__close { color: #cbd5e1; font-size: 16px; padding: 6px; }

/* ---------- Voltar ao topo ---------- */
.totop {
  position: fixed; right: 16px; bottom: 80px; z-index: 80; width: 44px; height: 44px; border-radius: 50%;
  background: var(--orange); color: #fff; font-size: 20px; font-weight: 700; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.totop.is-visible { opacity: 1; pointer-events: auto; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; top: 90px; left: 50%; transform: translateX(-50%) translateY(-20px); z-index: 200;
  background: var(--green); color: #fff; padding: 12px 22px; border-radius: 8px; font-weight: 600; font-size: 14px;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: all .3s;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1100px) {
  .grid--products, .grid--6 { grid-template-columns: repeat(4, 1fr); }
  .brands { grid-template-columns: repeat(4, 1fr); }
  .features { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
  .seo-cols { grid-template-columns: repeat(3, 1fr); }
  .slide h1 { font-size: 34px; }
  .slide__visual { font-size: 110px; }
}

@media (max-width: 820px) {
  .topbar__right { display: none; }
  .header__inner { flex-wrap: wrap; height: auto; padding: 10px 16px; gap: 12px; }
  .header__burger { display: flex; }
  .search { order: 3; width: 100%; max-width: none; flex-basis: 100%; }
  .header__actions { gap: 12px; }
  .action__text { display: none; }
  .action--hide-mobile { display: none; }

  .nav { display: none; }
  .nav.is-open { display: block; }
  .nav__inner { flex-direction: column; gap: 0; }
  .nav__item { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }

  .slider { height: 300px; }
  .slide { padding: 24px; flex-direction: column; justify-content: center; text-align: center; }
  .slide__visual { display: none; }
  .slide h1 { font-size: 28px; }
  .slide p { font-size: 15px; }
  .slider__arrow { display: none; }

  .tiles--5 { grid-template-columns: repeat(3, 1fr); }
  .tiles--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--products, .grid--6 { grid-template-columns: repeat(2, 1fr); }
  .deal-tile { grid-column: span 2; }
  .brands { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .seo-cols { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter__form { max-width: none; flex-basis: 100%; }
  .section__head h2 { font-size: 19px; }
}

@media (max-width: 480px) {
  .topbar { font-size: 11px; }
  .topbar__left span:nth-child(n+4) { display: none; } /* esconde a moeda em telas pequenas */
  .tiles--5 { grid-template-columns: repeat(2, 1fr); }
  .tiles--5 .tile:last-child { grid-column: span 2; }
  .brands .brand:last-child { grid-column: span 2; }
  .tile__icon { font-size: 32px; }
  .tile { padding: 16px 10px; font-size: 13px; }
  .product__img { height: 120px; font-size: 50px; }
  .product__price b { font-size: 16px; }
  .features { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .seo-cols { grid-template-columns: 1fr; }
  .appbar__text small { display: none; }
  .newsletter__form { flex-direction: column; }
}
