:root {
  --navy: #071a33;
  --navy-2: #0d2748;
  --teal: #0aa8ad;
  --gold: #f0b429;
  --ink: #142033;
  --muted: #5c6b7a;
  --line: #e6edf2;
  --bg: #f4f7f8;
  --card: #fff;
  --sale: #d7263d;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: inherit; }
.ticker {
  background: var(--navy);
  color: #d7e4ee;
  font-size: 13px;
  overflow: hidden;
  white-space: nowrap;
}
.ticker p { display: inline-block; padding: 8px 0; animation: slide 28s linear infinite; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.cart-link { border: 0; background: transparent; font: inherit; cursor: pointer; }
.fx { position: relative; display: flex; align-items: center; gap: 8px; }
.fx-rate {
  border: 1px solid var(--line); background: #f7faf8; border-radius: 12px; padding: 6px 10px; cursor: pointer; text-align: left;
}
.fx-rate small { display: block; color: var(--muted); font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; }
.fx-rate strong { color: var(--navy); font-size: 13px; }
.fx-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.fx-switch button { border: 0; background: #fff; padding: 8px 10px; cursor: pointer; font-weight: 700; }
.fx-switch button.on { background: var(--navy); color: #fff; }
.fx-panel {
  position: absolute; top: calc(100% + 8px); right: 0; width: 260px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; padding: 12px; box-shadow: 0 12px 30px #071a3322; z-index: 8;
}
.fx-panel[hidden] { display: none; }
.fx-quote { margin: 4px 0 10px; font-size: 18px; }
.fx-panel label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; }
.fx-panel input, .fx-panel select { border: 1px solid var(--line); border-radius: 10px; padding: 8px; font: inherit; }
.fx-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; }
.fx-note { color: var(--muted); font-size: 12px; }
.header-main, .nav, .shelf, .steps, .faq, .news, .page-head, .layout, .product, .bag, .checkout, .receipt, .footer-grid, .long {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}
.header-main { display: flex; gap: 18px; align-items: center; padding: 14px 0; flex-wrap: wrap; }
.logo { display: flex; gap: 10px; align-items: center; text-decoration: none; }
.logo strong { display: block; font-size: 20px; letter-spacing: -0.03em; }
.logo small { color: var(--teal); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 11px; }
.mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--navy); color: var(--teal);
  display: grid; place-items: center; font-weight: 800; font-size: 22px;
}
.search { flex: 1; display: flex; background: #f3f6f8; border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.search input { flex: 1; border: 0; background: transparent; padding: 12px 16px; font: inherit; }
.search button, .btn, .card button, .buy button, .checkout button, .news button {
  border: 0; background: var(--gold); color: var(--navy); font-weight: 700; cursor: pointer; padding: 12px 18px;
}
.header-actions { display: flex; gap: 10px; align-items: center; }
.ghost, .cart-link { text-decoration: none; font-weight: 650; }
.cart-link span {
  background: var(--teal); color: #fff; border-radius: 999px; padding: 2px 8px; margin-left: 4px; font-size: 13px;
}
.nav { display: flex; gap: 18px; padding: 0 0 12px; overflow: auto; }
.nav a { text-decoration: none; color: var(--navy-2); font-weight: 650; white-space: nowrap; }
.flashes { width: min(1120px, calc(100% - 32px)); margin: 12px auto 0; }
.flash { background: #e8f7f2; border-radius: 10px; padding: 10px 12px; }
.flash.error { background: #fde8ea; }
.hero {
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto;
  background: linear-gradient(120deg, var(--navy), #134e62 70%);
  color: #fff; border-radius: 24px; height: 340px; position: relative; overflow: hidden;
}
.slide { display: none; padding: 48px 40px; max-width: 680px; }
.slide.on { display: block; }
.kicker { color: var(--gold); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; }
.hero h1, .page-head h1, .product h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.05; margin: 8px 0 12px; }
.btn { display: inline-block; text-decoration: none; border-radius: 999px; }
.btn.ghost { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.dots { position: absolute; left: 40px; bottom: 18px; display: flex; gap: 8px; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: #ffffff55; }
.dots button.on { background: var(--gold); }
.cats, .trust { width: min(1120px, calc(100% - 32px)); margin: 0 auto 18px; display: grid; gap: 12px; }
.cats { grid-template-columns: repeat(3, 1fr); }
.drawer-backdrop { position: fixed; inset: 0; background: #0b1b2ecc; z-index: 40; }
.drawer {
  position: fixed; top: 0; right: 0; z-index: 41; width: min(420px, 100%); height: 100%;
  background: #fff; display: flex; flex-direction: column; box-shadow: -16px 0 40px #0003;
}
.drawer[hidden], .drawer-backdrop[hidden] { display: none !important; }
.drawer header, .drawer footer { padding: 18px 18px 14px; }
.drawer header { display: flex; justify-content: space-between; align-items: start; border-bottom: 1px solid var(--line); }
.drawer header p { margin: 0; color: var(--muted); }
.drawer header strong { font-size: 28px; }
.drawer header button {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 26px; cursor: pointer;
}
.drawer-items { flex: 1; overflow: auto; padding: 8px 18px; }
.drawer-items article { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.drawer-items .mini {
  width: 72px; height: 84px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; flex: none;
}
.drawer-items strong { display: block; }
.drawer-items p { margin: 4px 0; color: var(--muted); }
.drawer-items .pix { color: #6aa312; font-weight: 800; font-size: 20px; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 18px;
}
.drawer-totals { background: #f7f8f4; border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; }
.drawer-totals p { display: flex; justify-content: space-between; margin: 8px 0; }
.drawer-totals strong { font-size: 28px; }
.drawer-go {
  display: block; text-align: center; text-decoration: none; background: #8bc34a; color: #fff;
  font-weight: 800; border-radius: 12px; padding: 14px;
}
.drawer-note, .drawer-empty { color: var(--muted); font-size: 13px; }
body.drawer-open { overflow: hidden; }
.cats a, .trust article, .card, .bag, .checkout, .receipt {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
}
.cats a { text-decoration: none; padding: 14px; display: grid; gap: 4px; }
.cats small, .brand, .size, .muted, .note { color: var(--muted); }
.icon {
  width: 36px; height: 36px; border-radius: 10px; background: #e7f7f7; color: var(--teal);
  display: grid; place-items: center; font-weight: 800;
}
.trust { grid-template-columns: repeat(4, 1fr); }
.trust article { padding: 14px 16px; }
.trust span { display: block; color: var(--muted); font-size: 14px; }
.shelf { padding: 10px 0 28px; }
.shelf-head, .bag footer { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.card { overflow: hidden; display: flex; flex-direction: column; }
.thumb { min-height: 160px; display: grid; place-items: center; position: relative; text-decoration: none; color: #fff; overflow: hidden; }
.thumb.xl { min-height: 360px; border-radius: 20px; }
.thumb img { width: 100%; height: 180px; object-fit: cover; display: block; }
.thumb.xl img { height: 360px; }
.glyph { font-size: 64px; font-weight: 800; opacity: 0.9; }
.mini-img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.badge { position: absolute; top: 10px; left: 10px; background: var(--navy); color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 999px; }
.badge.sale { background: var(--sale); }
.card-body { padding: 12px 14px 16px; display: grid; gap: 6px; }
.card h3 { margin: 0; font-size: 16px; }
.card h3 a { text-decoration: none; }
.price s { color: var(--muted); margin-right: 6px; }
.price em { color: var(--teal); font-style: normal; font-weight: 700; font-size: 12px; }
.card button, .buy button, .checkout button, .news button { border-radius: 999px; }
.card button:disabled { background: #d5dde3; cursor: not-allowed; }
.cainas { background: linear-gradient(160deg, #f0b429, #0aa8ad); }
.cat-dermocosmeticos { background: linear-gradient(160deg, #ef7aa0, #7c5cff); }
.cat-suplementos { background: linear-gradient(160deg, #134e62, #0aa8ad); }
.cat-higiene { background: linear-gradient(160deg, #3d7ea6, #9fd3e8); }
.cat-bem-estar { background: linear-gradient(160deg, #d7263d, #f0b429); }
.cat-infantil { background: linear-gradient(160deg, #7cc4a4, #f7d6e0); }
.steps, .faq, .news { background: #fff; border-block: 1px solid var(--line); padding: 28px 0; margin-top: 8px; }
.steps ol, .long { display: grid; gap: 12px; padding: 0; }
.steps li, .long li { list-style: none; background: var(--bg); border-radius: 14px; padding: 14px; }
.steps span { display: block; color: var(--muted); }
.faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.news { display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.news form { display: flex; gap: 8px; }
.news input, .checkout input, .checkout select, .bag input, .buy input {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px; font: inherit;
}
.page-head { padding: 28px 0 8px; }
.layout { display: grid; grid-template-columns: 220px 1fr; gap: 18px; padding-bottom: 40px; }
aside a { display: block; text-decoration: none; padding: 8px 0; color: var(--muted); }
aside a.on { color: var(--navy); font-weight: 800; }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 28px 0 40px; }
.buy { display: flex; gap: 10px; align-items: end; }
.bag { padding: 8px 0 40px; display: grid; gap: 10px; }
.bag article, .bag footer { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px; }
.checkout { display: grid; gap: 12px; padding-bottom: 40px; max-width: 640px; }
.checkout label { display: grid; gap: 6px; font-weight: 650; }
.receipt { padding: 8px 18px 28px; margin-bottom: 28px; }
.footer { background: var(--navy); color: #d5e2ec; margin-top: 28px; padding: 32px 0 16px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 18px; }
.footer a { display: block; color: #d5e2ec; text-decoration: none; margin: 6px 0; }
.logo.light strong, .logo.light small { color: #fff; }
.copy { text-align: center; color: #8ea0b3; font-size: 13px; }
.empty { grid-column: 1 / -1; }
.menu-btn, .mobile-bar { display: none; }
.menu-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 12px;
  font: inherit; font-weight: 800; cursor: pointer;
}
@media (max-width: 900px) {
  .cats, .trust, .grid, .footer-grid, .product, .layout { grid-template-columns: 1fr 1fr; }
  .header-main, .news { flex-direction: column; align-items: stretch; }
  .cats { grid-template-columns: 1fr 1fr; }
  .menu-btn { display: inline-flex; align-items: center; }
  .nav { display: none; width: calc(100% - 32px); padding-bottom: 14px; flex-direction: column; gap: 12px; }
  .nav.open { display: flex; }
  .fx { width: 100%; justify-content: space-between; flex-wrap: wrap; }
  .fx-panel { left: 0; right: auto; width: min(280px, calc(100vw - 32px)); }
  .hero { height: auto; min-height: 280px; }
  .news form, .buy, .bag article, .bag footer { flex-direction: column; align-items: stretch; }
  .mobile-bar {
    display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: #fff; border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  }
  .mobile-bar a, .mobile-bar button {
    border: 0; background: transparent; color: var(--navy); font: inherit; font-weight: 800; text-align: center; text-decoration: none; padding: 8px 4px;
  }
  body { padding-bottom: 72px; }
}
@media (max-width: 640px) {
  .grid, .trust, .footer-grid, .product, .layout, .cats { grid-template-columns: 1fr; }
  .slide { padding: 28px 20px 64px; }
  .search { min-width: 0; }
}
