:root {
  --blue-900: #002b66;
  --blue-800: #003f93;
  --blue-700: #0057d8;
  --blue-500: #12a8ff;
  --text: #101828;
  --muted: #667085;
  --line: #d9e2ef;
  --soft: #f4f8ff;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(0, 43, 102, .10);
  --radius: 18px;
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 52%, #ffffff 100%);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
.wrapper { width: min(var(--max), calc(100% - 72px)); margin: 0 auto; }

.top-ribbon {
  min-height: 34px;
  background: linear-gradient(90deg, var(--blue-800), var(--blue-900));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 8vw, 150px);
  padding: 7px 18px;
  font-size: .9rem;
  font-weight: 700;
}

.top-buy-box {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid rgba(18, 183, 106, .22);
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #f2fbf7 100%);
  box-shadow: 0 8px 24px rgba(16, 24, 40, .04);
}
.top-buy-box-text strong {
  display: block;
  color: var(--blue-900);
  font-size: 1rem;
  font-weight: 950;
}
.top-buy-box-text p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.45;
}
.top-buy-box-text p span {
  color: #12b76a;
  font-weight: 900;
}
.top-buy-box-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.top-buy-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 10px;
  font-weight: 900;
  white-space: nowrap;
}
.top-buy-link-shopee {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-800));
}
.top-buy-link-whatsapp {
  color: #fff;
  background: #12b76a;
  box-shadow: 0 10px 20px rgba(18, 183, 106, .20);
}
.top-buy-link, .purchase-link { gap: 8px; }
.top-buy-link .icon, .purchase-link .icon { width: 18px; height: 18px; }
.top-buy-link span, .purchase-link span { display: inline-flex; align-items: center; }

.header {
  width: min(var(--max), calc(100% - 72px));
  margin: 22px auto 14px;
  display: grid;
  grid-template-columns: 330px 1fr auto;
  align-items: center;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 18px; }
.brand img { width: 86px; height: 86px; border-radius: 50%; object-fit: cover; box-shadow: 0 12px 30px rgba(0, 63, 147, .16); }
.brand strong { display: block; font-size: clamp(1.55rem, 2vw, 2rem); line-height: 1; letter-spacing: -.04em; }
.brand small { display: block; margin-top: 8px; color: var(--muted); font-size: 1.05rem; }

.search-box {
  min-height: 58px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(16, 24, 40, .04);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
}
.search-box span { color: var(--muted); font-size: 1.4rem; }
.search-box input { border: 0; outline: 0; width: 100%; color: var(--text); background: transparent; }
.search-box input::placeholder { color: #8a94a6; }
.mobile-search { display: none; }

.header-actions { display: flex; gap: 14px; align-items: center; }
.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  border-radius: 9px;
  font-weight: 850;
  transition: .22s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.icon {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  display: inline-block;
}
.icon-whatsapp { color: currentColor; }
.icon-shopee { color: currentColor; }
.btn span { display: inline-flex; align-items: center; }
.buy-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.buy-btn .icon { width: 19px; height: 19px; }
.float-whatsapp .icon { width: 31px; height: 31px; }

.btn-whatsapp, .btn-primary { color: white; background: linear-gradient(135deg, var(--blue-700), var(--blue-800)); box-shadow: 0 14px 26px rgba(0, 87, 216, .18); }
.btn-outline { color: #344054; border: 1px solid var(--line); background: white; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border-radius: 12px;
  background: #071b3a;
  box-shadow: var(--shadow);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(0, 28, 68, .98) 0%, rgba(0, 43, 102, .86) 30%, rgba(0, 43, 102, .35) 54%, rgba(0, 0, 0, .06) 100%), url('assets/banner-ivc-britania.png');
  background-size: cover;
  background-position: center;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 670px;
  padding: clamp(32px, 5vw, 54px);
  color: white;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 15px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: white;
  font-size: .82rem;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: .02em;
}
.hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -.055em;
}
.hero h1 span { color: #38bdf8; }
.hero p { margin: 0; max-width: 540px; color: rgba(255,255,255,.92); font-size: 1.12rem; line-height: 1.55; }
.hero-benefits { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 26px; }
.hero-benefits span { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.hero-benefits strong { display: flex; align-items: center; font-size: .93rem; }
.hero-benefits small { display: block; margin-top: 2px; color: rgba(255,255,255,.82); font-size: .86rem; }
.hero-inline-icon { width: 16px; height: 16px; margin-right: 6px; vertical-align: -2px; color: #25d366; }
.hero-sidecards {
  position: absolute;
  z-index: 2;
  right: 42px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 14px;
  width: 215px;
}
.sidecard {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 10px;
  color: #fff;
  background: rgba(0, 31, 72, .82);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(8px);
}
.side-icon {
  grid-row: 1 / 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #38bdf8;
  background: rgba(56, 189, 248, .12);
}
.side-svg { width: 26px; height: 26px; }
.sidecard strong { display: block; }
.sidecard small { display: block; grid-column: 2; margin-top: -7px; color: rgba(255,255,255,.78); }

.store-profile {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1.25fr 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 24, 40, .04);
}
.profile-brand { display: flex; align-items: center; gap: 18px; min-width: 0; }
.profile-brand img { width: 86px; height: 86px; border-radius: 50%; object-fit: cover; box-shadow: 0 10px 24px rgba(0, 63, 147, .12); }
.profile-brand h2 { margin: 0 0 8px; font-size: 1.45rem; }
.profile-brand h2 span { display: inline-flex; align-items: center; margin-left: 8px; padding: 5px 10px; border-radius: 999px; background: #e8f1ff; color: var(--blue-700); font-size: .82rem; font-weight: 800; vertical-align: middle; }
.profile-brand p { margin: 0; color: var(--muted); line-height: 1.5; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.profile-stats div { text-align: center; border-left: 1px solid var(--line); padding: 0 18px; }
.profile-stats strong { display: block; color: var(--text); font-size: 1.7rem; }
.profile-stats span { display: block; color: var(--muted); margin-top: 4px; font-size: .92rem; }

.purchase-box {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(0, 87, 216, .18);
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #eef6ff 100%);
  box-shadow: 0 10px 28px rgba(16, 24, 40, .04);
}
.purchase-box-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #e8f1ff;
  color: var(--blue-700);
  font-size: 1.55rem;
}
.purchase-box-text strong {
  display: block;
  color: var(--blue-900);
  font-size: 1.05rem;
  font-weight: 950;
}
.purchase-box-text p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.45;
}
.purchase-box-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.purchase-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-radius: 10px;
  font-weight: 900;
  white-space: nowrap;
}
.purchase-link-shopee {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-800));
}
.purchase-link-whatsapp {
  color: #fff;
  background: #12b76a;
}

.benefit-bar {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 18px;
  border-radius: 12px;
  background: #f8fbff;
  border: 1px solid #edf2f9;
}
.benefit-bar div { display: grid; grid-template-columns: 42px 1fr; column-gap: 12px; align-items: center; }
.benefit-bar span { grid-row: 1 / 3; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #e8f1ff; color: var(--blue-700); font-size: 1.25rem; }
.benefit-bar span .icon { width: 24px; height: 24px; }
.benefit-bar strong { font-size: .96rem; }
.benefit-bar small { color: var(--muted); margin-top: 3px; }

.products { margin-top: 24px; padding-bottom: 46px; }
.category-scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.filter-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 13px 20px;
  min-width: max-content;
  color: #344054;
  cursor: pointer;
  font-weight: 750;
  transition: .22s ease;
}
.filter-btn:hover, .filter-btn.active { color: #fff; border-color: var(--blue-700); background: linear-gradient(135deg, var(--blue-700), var(--blue-800)); box-shadow: 0 10px 22px rgba(0, 87, 216, .18); }

.section-title { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 18px 0 20px; }
.section-title h2 { margin: 0 0 6px; font-size: clamp(1.6rem, 3vw, 2rem); letter-spacing: -.04em; }
.section-title p { margin: 0; color: var(--muted); line-height: 1.45; }
.section-title a { color: var(--blue-700); font-weight: 850; white-space: nowrap; }

.products-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.product-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, .04);
  display: flex;
  flex-direction: column;
  transition: .22s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 43, 102, .11); }
.product-heart { position: absolute; z-index: 3; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); border: 1px solid var(--line); box-shadow: 0 8px 18px rgba(16, 24, 40, .08); color: #667085; }
.product-media { display: block; aspect-ratio: 1 / 1; padding: 18px; background: #fff; }
.product-media img { width: 100%; height: 100%; object-fit: contain; transition: none; }
.product-card:hover .product-media img { transform: none; }
.product-body { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.category-pill { width: fit-content; padding: 6px 9px; border-radius: 999px; color: var(--blue-700); background: #e8f1ff; font-size: .72rem; font-weight: 850; }
.product-body h3 { margin: 0; min-height: 48px; font-size: .98rem; line-height: 1.32; letter-spacing: -.015em; }
.product-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .82rem; }
.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.price { color: var(--blue-800); font-size: 1.35rem; font-weight: 950; letter-spacing: -.035em; }
.old-price { color: #98a2b3; text-decoration: line-through; font-size: .86rem; }
.product-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
.buy-btn { min-height: 42px; display: grid; place-items: center; border-radius: 10px; color: white; background: linear-gradient(135deg, var(--blue-700), var(--blue-800)); font-weight: 900; }
.badge { position: absolute; left: 14px; top: 14px; z-index: 3; padding: 7px 10px; border-radius: 999px; color: white; background: var(--blue-700); font-size: .76rem; font-weight: 900; }
.empty-state { grid-column: 1/-1; padding: 28px; border: 1px solid var(--line); border-radius: 12px; text-align: center; color: var(--muted); }
.empty-state a { color: var(--blue-700); font-weight: 850; }
.price-note { max-width: 820px; margin: 24px auto 0; text-align: center; color: var(--muted); line-height: 1.55; font-size: .92rem; }

.float-whatsapp { position: fixed; right: 18px; bottom: 18px; z-index: 20; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: #12b76a; color: white; box-shadow: 0 16px 34px rgba(18, 183, 106, .30); font-size: 1.5rem; }
.footer { margin-bottom: 24px; padding: 22px; display: flex; align-items: center; gap: 14px; border-radius: 12px; background: var(--blue-900); color: rgba(255,255,255,.82); }
.footer img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.footer p { margin: 0; line-height: 1.45; }

@media (max-width: 1180px) {
  .header { grid-template-columns: 260px 1fr; }
  .header-actions { grid-column: 2; justify-content: flex-end; }
  .products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-sidecards { display: none; }
}

@media (max-width: 920px) {
  .top-buy-box { flex-direction: column; align-items: stretch; text-align: center; }
  .top-buy-box-actions { justify-content: stretch; }
  .top-buy-link { flex: 1; }
  .wrapper, .header { width: min(var(--max), calc(100% - 28px)); }
  .top-ribbon { justify-content: flex-start; overflow-x: auto; gap: 28px; }
  .header { grid-template-columns: 1fr; margin-top: 16px; gap: 14px; }
  .brand img { width: 70px; height: 70px; }
  .brand small { font-size: .95rem; }
  .search-desktop { display: none; }
  .mobile-search { display: block; margin-bottom: 14px; }
  .header-actions { grid-column: auto; justify-content: stretch; }
  .header-actions .btn { flex: 1; padding: 0 12px; }
  .hero { min-height: 520px; border-radius: 14px; }
  .hero-bg { background-position: 62% center; }
  .hero-content { padding: 30px 22px; }
  .hero-benefits { gap: 14px; }
  .hero-benefits span { width: 100%; }
  .store-profile { grid-template-columns: 1fr; align-items: stretch; }

  .purchase-box { grid-template-columns: 54px 1fr; }
  .purchase-box-actions { grid-column: 1 / -1; justify-content: stretch; }
  .purchase-link { flex: 1; }
  .profile-stats { grid-template-columns: repeat(3, 1fr); }
  .profile-stats div { border-left: 0; border-top: 1px solid var(--line); padding-top: 14px; }
  .benefit-bar { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section-title { align-items: start; flex-direction: column; }
}

@media (max-width: 620px) {
  .top-buy-box-actions { flex-direction: column; }
  .top-buy-link { width: 100%; }
  .top-ribbon { font-size: .82rem; }
  .header-actions { flex-direction: column; }
  .header-actions .btn { width: 100%; }
  .hero { min-height: 560px; }
  .hero-bg { background-image: linear-gradient(180deg, rgba(0, 28, 68, .98) 0%, rgba(0, 43, 102, .84) 45%, rgba(0, 43, 102, .20) 100%), url('assets/banner-ivc-britania.png'); background-position: 65% center; }
  .hero h1 { font-size: 2.35rem; }
  .profile-brand { align-items: flex-start; }
  .profile-brand img { width: 64px; height: 64px; }
  .profile-brand h2 span { display: block; width: fit-content; margin: 8px 0 0; }
  .profile-stats { gap: 6px; }
  .profile-stats strong { font-size: 1.35rem; }
  .profile-stats span { font-size: .78rem; }

  .purchase-box { grid-template-columns: 1fr; text-align: center; }
  .purchase-box-icon { margin: 0 auto; }
  .purchase-box-actions { flex-direction: column; }
  .purchase-link { width: 100%; }
  .benefit-bar { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-media { padding: 10px; }
  .product-body { padding: 0 12px 12px; }
  .product-body h3 { min-height: auto; font-size: .9rem; }
  .product-meta { flex-direction: column; gap: 3px; }
  .price { font-size: 1.12rem; }
  .old-price { font-size: .78rem; }
  .badge { left: 10px; top: 10px; font-size: .7rem; }
  .product-heart { width: 34px; height: 34px; top: 10px; right: 10px; }
}

@media (max-width: 390px) {
  .products-grid { grid-template-columns: 1fr; }
}


/* Ajustes de nitidez: evita aparência tremida em imagens e SVGs */
img,
svg {
  image-rendering: auto;
  -webkit-font-smoothing: antialiased;
  backface-visibility: hidden;
}
.product-media img,
.brand img,
.profile-brand img,
.footer img {
  transform: none;
  will-change: auto;
}
.hero-bg {
  image-rendering: auto;
  background-repeat: no-repeat;
}


/* Reforço responsivo para desktop e celular */
@media (min-width: 1441px) {
  .wrapper,
  .header {
    max-width: 1440px;
  }
}

@media (max-width: 620px) {
  .hero-content {
    max-width: 100%;
  }
  .hero p {
    font-size: 1rem;
  }
  .btn {
    min-height: 48px;
  }
}

/* Ajustes finais para manter a mesma versão bem alinhada no celular */
@media (max-width: 620px) {
  body { overflow-x: hidden; }
  .wrapper, .header { width: calc(100% - 24px); }
  .top-buy-box { margin-top: 10px; padding: 14px; }
  .top-buy-box-text p { font-size: .92rem; }
  .mobile-search { display: block; }
  .mobile-search .search-box { min-height: 54px; }
  .hero-content { padding: 28px 20px; }
  .hero h1 { font-size: 2.15rem; }
  .hero p { font-size: 1rem; }
  .hero-benefits { align-items: flex-start; }
  .hero-benefits span { align-items: flex-start; }
  .purchase-box { padding: 16px; }
  .top-buy-link, .purchase-link { min-height: 44px; }
  .top-buy-link .icon, .purchase-link .icon { width: 18px; height: 18px; }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 390px) {
  .products-grid { grid-template-columns: 1fr; }
}
