/* =====================================================================
   VISUAL LIMPO (inspirado em Drogasil / Droga Raia)
   Fundo branco, bordas finas, sem degradês nem sombras pesadas.
   Vermelho só em ações e descontos; azul-marinho da logo nos títulos.
   Para voltar ao visual antigo, basta remover este arquivo do index.html.
   ===================================================================== */
:root {
  --red: #d7262b;
  --red-dark: #b81f24;
  --red-soft: #fdeeee;
  --navy: #1b2a6b;
  --navy-dark: #15204f;
  --navy-soft: #eef0f7;
  --bg: #ffffff;
  --surface: #f5f6f8;
  --text: #262a33;
  --muted: #6b6f7b;
  --line: #e6e7eb;
  --line-strong: #d4d6dc;
  --radius: 16px;
  --shadow: 0 6px 20px rgba(20, 24, 40, .07);
}

body {
  font-family: "Figtree", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--red-soft); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

/* ---------- Faixa do topo ---------- */
.topbar { background: var(--navy); font-size: 13px; }
.topbar__inner { padding: 7px 0; gap: 14px; }
.topbar__tag { font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.topbar__tag::before { content: none; }
.topbar__text { opacity: .9; }
.topbar__btn { background: none; padding: 0; font-style: normal; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; border-radius: 0; }
.topbar__btn:hover { background: none; opacity: .85; }

/* ---------- Cabeçalho ---------- */
.header { box-shadow: none; border-bottom: 1px solid var(--line); }
.header__inner { padding: 14px 0; gap: 20px; }
.header__logo img { height: 46px; border-radius: 0; box-shadow: none; }
.header__logo:hover img { transform: none; }
.header.is-searching .header__logo img { height: 40px; }
.header__cats { border-color: var(--line); color: var(--text); font-weight: 600; }
.header__cats:hover, .header__cats[aria-expanded="true"] { background: var(--surface); border-color: var(--line); }
.search { background: var(--surface); border: 1px solid var(--surface); }
.search:focus-within { border-color: var(--line-strong); background: #fff; }
.header.is-searching .search { box-shadow: none; }
.search input::placeholder { color: #8a8e99; }
.search button { color: var(--text); }
.action { color: var(--text); font-weight: 600; }
.action:hover { color: var(--navy); }
.action__txt small { color: var(--muted); font-weight: 400; }
.cart-count { font-weight: 700; font-size: 11px; }
.icon-btn { color: var(--text); }
.icon-btn:hover { background: var(--surface); }
.account-menu__panel { box-shadow: var(--shadow); border-radius: 12px; }
.account-menu__panel a, .account-menu__panel button { font-weight: 500; color: var(--text); }
.account-menu__panel a:hover, .account-menu__panel button:hover { background: var(--surface); }
.account-menu__panel button { color: var(--red); }

/* Mega-menu e busca */
.mega { box-shadow: 0 16px 32px rgba(20, 24, 40, .08); }
.mega__label, .mega__head h3 { color: var(--navy); font-weight: 700; font-size: 16px; }
.mega__groups a:hover, .mega__groups a.active { background: var(--surface); }
.mega__head a, .mega__col .mega__all { color: var(--navy); }
.suggest { box-shadow: 0 16px 32px rgba(20, 24, 40, .1); border-radius: 12px; }
.suggest__top a:hover, .suggest__cat:hover, .suggest__item:hover { background: var(--surface); }
.suggest__top b, .suggest__all, .suggest__none a { color: var(--navy); }

/* ---------- Títulos de seção ---------- */
.section-head { margin-bottom: 14px; }
.section-head h2, .stores h2 { font-size: 22px; font-weight: 700; color: var(--navy); letter-spacing: -.01em; }
.section-head h2::after, .stores h2::after { content: none; }
.section-head--sm h2 { font-size: 18px; }
.see-all, .duo__more { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.see-all:hover, .duo__more:hover { color: var(--red); }
.shelf__nav button { border-color: var(--line); color: var(--text); width: 34px; height: 34px; font-size: 20px; }
.shelf__nav button:hover { background: var(--surface); border-color: var(--line-strong); }

/* ---------- Banners ---------- */
.slider { border-radius: var(--radius); box-shadow: none; }
.slide::after { content: none; }
.slide, .slide--no-art { flex: 0 0 100%; min-width: 0; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); padding: 44px 72px 56px; }
.slide__art { display: none; }
.slide--red { background: var(--red); }
.slide--navy { background: var(--navy); }
.slide--light { background: var(--surface); color: var(--navy); }
.slide__kicker { font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.slide__title { font-size: clamp(36px, 4.4vw, 58px); font-weight: 800; line-height: 1.02; letter-spacing: -.02em; text-shadow: none; margin-top: 6px; }
.slide--light .slide__title { color: var(--navy); }
.slide__mid { text-align: left; }
.slide__product { font-size: 17px; opacity: .9; }
.slide__deal em { font-family: inherit; font-style: normal; font-size: 22px; font-weight: 600; }
.slide__price { font-size: 72px; font-weight: 800; letter-spacing: -.02em; margin: 2px 0 20px; }
.slide__price small { font-size: 24px; font-weight: 700; }
.slide__price sup { font-size: 30px; }
.slide__price span { font-family: inherit; font-style: normal; font-size: 18px; font-weight: 500; margin-left: 4px; }
.slide__cta { background: #fff; color: var(--red); font-size: 16px; font-weight: 700; padding: 13px 30px; box-shadow: none; }
.slide--navy .slide__cta { color: var(--navy); }
.slide--light .slide__cta { background: var(--red); color: #fff; }
.slide__cta:hover { transform: none; opacity: .92; }
.slide__legal, .slide--navy .slide__legal, .slide--light .slide__legal { background: transparent; color: inherit; opacity: .75; font-size: 11px; padding: 10px 72px; }
.slider__arrow { width: 40px; height: 40px; font-size: 24px; box-shadow: none; border: 1px solid var(--line); color: var(--text); }
.dots button { width: 8px; height: 8px; background: var(--line-strong); }
.dots button.active { width: 22px; background: var(--navy); }
.slider--sm .slide { padding: 30px 64px 46px; }
.slider--sm .slide__price { font-size: 54px; }

/* ---------- Atalhos de categorias ---------- */
.shortcut { color: var(--text); font-size: 13px; gap: 8px; }
.shortcut:hover { color: var(--navy); }
.shortcut__icon, .shortcuts--scroll .shortcut__icon {
  width: 76px; height: 76px; font-size: 32px; background: var(--surface); border: 0; box-shadow: none;
}
.shortcut:hover .shortcut__icon { transform: none; background: var(--navy-soft); }
.shortcuts--sm .shortcut__icon { width: 60px; height: 60px; font-size: 26px; }
.shortcuts--lg .shortcut__icon { width: 92px; height: 92px; font-size: 40px; }

/* ---------- Vitrine de campanhas (blocos coloridos) ---------- */
.tile { border-radius: var(--radius); min-height: 176px; padding: 16px 12px 14px; color: var(--c-ink, var(--text)); background: var(--c-bg, var(--surface)); }
.tile:hover { transform: none; box-shadow: none; filter: brightness(.98); }
.tile strong { font-size: 15px; font-weight: 700; }
.tile small { background: #fff; color: var(--c-ink, var(--text)); font-weight: 600; }
.tile__icon { font-size: 44px; filter: none; }
.tile--red    { --c-bg: #fdeeee; --c-ink: #a8191e; }
.tile--navy   { --c-bg: #eef0f7; --c-ink: var(--navy); }
.tile--orange { --c-bg: #fff3e6; --c-ink: #9a4a00; }
.tile--green  { --c-bg: #e9f6ef; --c-ink: #15693e; }
.tile--purple { --c-bg: #f2edfb; --c-ink: #5a2f8c; }
.tile--teal   { --c-bg: #e6f5f7; --c-ink: #0b6575; }
.tile--red, .tile--navy, .tile--orange, .tile--green, .tile--purple, .tile--teal { background: var(--c-bg); }
.brand__logo { color: var(--c-ink); font-weight: 700; font-size: 22px; }

/* ---------- Vantagens ---------- */
.perks { background: #fff; border: 1px solid var(--line); box-shadow: none; padding: 16px 20px; }
.perk > span { width: 44px; height: 44px; font-size: 22px; background: var(--surface); border-radius: 50%; }
.perk strong { color: var(--text); font-size: 14px; font-weight: 700; }
.perk small { font-size: 13px; }

/* ---------- Cartões de produto ---------- */
.card { border-radius: var(--radius); padding: 14px; gap: 6px; }
.card:hover { transform: none; box-shadow: none; border-color: var(--line-strong); }
.card__img { height: 136px; }
.card__badge { background: var(--red); font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.card__badge--rx { background: var(--navy); }
.card__brand { font-size: 11px; letter-spacing: .06em; }
.card__name, a.card__name { font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
a.card__name:hover { color: var(--navy); }
.card__old { font-size: 12px; }
.card__price { font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: -.01em; }
.card__price small { font-size: 13px; font-weight: 600; }
.card__price sup { font-size: 13px; font-weight: 700; }
.card__add { background: var(--red); font-weight: 600; font-size: 14px; padding: 8px 18px; }
.card__qp { background: #fff4e8; color: #9a4a00; font-weight: 600; }
.fav { box-shadow: none; border: 1px solid var(--line); }
.add-bubble { box-shadow: none; }
.add-bubble b { box-shadow: none; border: 1px solid var(--line); }
.type--generico { color: #8a5d00; }
.crumbs i, .mega__groups a i, .tree small, .check small { color: #8a8e99; }
.size-chip { color: var(--text); }

/* Dois painéis lado a lado */
.duo__panel { border-radius: var(--radius); padding: 18px; }
.duo__head h3 { color: var(--navy); font-weight: 700; }
.duo__head span { background: var(--surface); }
.mini { border-radius: 12px; }
.mini:hover { border-color: var(--line-strong); }
.mini__price strong { color: var(--text); }

/* Marcas */
.brand { border-radius: var(--radius); }
.brand:hover { border-color: var(--line-strong); }
.brand strong { color: var(--text); }

/* ---------- Blocos coloridos: cores chapadas, sem degradê ---------- */
.camp--red    { --camp-bg: var(--red); }
.camp--navy   { --camp-bg: var(--navy); }
.camp--orange { --camp-bg: #e0700f; }
.camp--green  { --camp-bg: #1d8a52; }
.camp--purple { --camp-bg: #6b3fa8; }
.camp--teal   { --camp-bg: #127f8c; }
.camp { border-radius: var(--radius); }
.camp:hover { transform: none; box-shadow: none; opacity: .96; }
.camp__off { font-weight: 800; }
.camp__mini { box-shadow: none; }
.camp__mini b { color: var(--red); }
.camp-hero { border-radius: var(--radius); }

.promo { border-radius: var(--radius); }
.promo::after { content: none; }
.promo--red { background: var(--red); }
.promo--navy { background: var(--navy); }
.promo--orange { background: #e0700f; }
.promo--green { background: #1d8a52; }
.promo--dark { background: #262a33; }
.promo button, .promo__btn { font-weight: 700; }

.countdown { border-radius: var(--radius); background: var(--red); }
.countdown--navy { background: var(--navy); }
.countdown--orange { background: #e0700f; }
.countdown--green { background: #1d8a52; }
.countdown--dark { background: #262a33; }
.countdown h2 { font-size: 22px; font-weight: 700; }
.countdown__clock b { font-weight: 700; }
.countdown__btn { font-weight: 700; }

.tblock, .nl, .video__frame { border-radius: var(--radius); }
.ad { border-radius: var(--radius); }
.ad:hover img { transform: none; }

.store, .store-cta { border: 1px solid var(--line); box-shadow: none; border-radius: var(--radius); }
.store-cta h2 { font-size: 20px; }
.group-tile { border-radius: var(--radius); }
.group-tile:hover { transform: none; box-shadow: none; border-color: var(--line-strong); }
.group-tile strong { color: var(--text); }

/* ---------- Botões ---------- */
.btn { border-radius: 999px; font-weight: 600; }
.btn--navy { background: #fff; color: var(--text); border: 1px solid var(--line-strong); }
.btn--navy:hover { background: var(--surface); }
.btn--outline { border: 1px solid var(--line-strong); color: var(--text); }
.btn--outline:hover { background: var(--surface); }
.btn--ghost:hover { background: var(--surface); }

/* ---------- Páginas internas ---------- */
.listing__head h1, .pdp__info h1, .notfound h1, .info__body h1, .account__head h1, .manip__intro h1, .account-gate h1 { font-weight: 700; letter-spacing: -.01em; }
.pdp__main, .pdp__desc, .info__body, .account__card, .account__head, .account-gate { border-radius: var(--radius); }
.pdp__price strong { font-weight: 800; color: var(--text); }
.pdp__off { font-weight: 700; border-radius: 6px; }
.pdp__img { border-radius: 12px; }
.qp-box { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; }
.qp-box__title { color: var(--text); font-weight: 700; }
.qp-box__rows button { border: 1px solid var(--line); }
.qp-box__rows button.active { border-color: var(--navy); background: #fff; box-shadow: inset 0 0 0 1px var(--navy); }
.pdp__hint, .citem__qp--hint { color: var(--muted); }
.chip { color: var(--text); }
.chip:hover, .chip.active { border-color: var(--navy); color: var(--navy); background: var(--navy-soft); }
.tree a:hover, .info__nav a:hover, .account__nav a:hover { background: var(--surface); }
.tree a.active, .info__nav a.active, .account__nav a.active { background: var(--navy-soft); color: var(--navy); }
.price-quick button.active, .price-quick button:hover { border-color: var(--navy); color: var(--navy); }
.stores-hero { background: var(--surface); }
.stores-hero h1 { font-weight: 800; }
.manip__form { box-shadow: none; border: 1px solid var(--line); }
.steps b { background: var(--navy); }
.account__avatar { background: var(--navy); font-weight: 700; }
.specs dt { background: var(--surface); }
.summary, .pdp__perks { background: var(--surface); }
.modal { background: rgba(20, 24, 40, .45); }
.modal__box { border-radius: var(--radius); }
.overlay { background: rgba(20, 24, 40, .4); }
.toast { background: var(--text); font-weight: 500; }
.cart__ship { background: var(--surface); color: var(--text); }
.cart__head h3, .cart__row--total { color: var(--text); }
.citem__price { color: var(--text); }

/* ---------- Rodapé claro ---------- */
.footer { background: var(--surface); color: var(--muted); border-top: 1px solid var(--line); }
.footer__news { background: #fff; color: var(--text); border-bottom: 1px solid var(--line); }
.footer__news strong { font-size: 18px; color: var(--navy); }
.footer__news span { color: var(--muted); }
.news-form input { border: 1px solid var(--line-strong); background: #fff; }
.news-form button { background: var(--red); font-weight: 600; }
.footer__deals h3 { color: var(--navy); font-size: 18px; font-weight: 700; }
.deals a { background: #fff; border: 1px solid var(--line); }
.deals a:hover { background: #fff; border-color: var(--line-strong); }
.deals span { font-size: 22px; }
.deals strong { color: var(--text); font-size: 14px; }
.deals small { color: var(--muted); }
.footer h4 { color: var(--text); font-size: 14px; font-weight: 700; }
.footer__cols a:hover { color: var(--navy); }
.footer__help strong { color: var(--text); }
.footer__logo { height: 40px; border-radius: 0; }
.pay-chips span { background: #fff; color: var(--text); border: 1px solid var(--line); }
.footer__bottom { border-top: 1px solid var(--line); color: var(--muted); }
.to-top { color: var(--text); border-color: var(--line-strong); font-weight: 600; }
.to-top:hover { background: #fff; }

/* Cookies */
.cookies { box-shadow: 0 -1px 0 var(--line); color: var(--muted); }

/* Menu lateral */
.drawer__head img { height: 32px; border-radius: 0; }
.drawer__link, .drawer summary { color: var(--text); }
.drawer summary::after { color: var(--muted); }
.drawer__link--red { color: var(--red); }
.drawer .drawer__all { color: var(--navy); }

/* ---------- Imagens enviadas no Editor: sempre centralizadas no espaço ---------- */
.header__logo img { width: auto; max-width: 240px; object-fit: contain; }
.shortcut__icon { position: relative; overflow: hidden; }
.shortcut__icon img { position: absolute; inset: 16%; width: 68%; height: 68%; object-fit: contain; object-position: center; }
.shortcut__icon--fill img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.perk > span, .duo__head span, .group-tile__icon { position: relative; overflow: hidden; }
.perk > span img, .duo__head span img, .group-tile__icon img { position: absolute; inset: 14%; width: 72%; height: 72%; object-fit: contain; object-position: center; }
.deals span { display: grid; place-items: center; width: 36px; height: 36px; }
.deals span img { width: 100%; height: 100%; object-fit: contain; }
.tile img { object-position: center; }
.brand__logo--img { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.brand__logo--img img { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; }
.promo--has-img { padding-right: 38%; }
.promo__img { position: absolute; right: 20px; top: 50%; translate: 0 -50%; width: 32%; max-height: 80%; object-fit: contain; }
.tblock__img { display: block; max-width: 100%; max-height: 280px; object-fit: contain; margin: 0 0 16px; border-radius: 12px; }
.tblock--center .tblock__img { margin-inline: auto; }
.store-cta__img { width: 96px; height: 96px; object-fit: contain; flex: none; }

/* ---------- Celular ---------- */
@media (max-width: 1100px) {
  .slide, .slide--no-art { padding: 36px 56px 52px; }
}
@media (max-width: 760px) {
  .header__inner { padding: 10px 0; }
  .header__logo img, .header.is-searching .header__logo img { height: 34px; }
  .section-head h2, .stores h2 { font-size: 18px; }
  .slide, .slide--no-art, .slider--sm .slide, .slider--lg .slide { grid-template-columns: minmax(0, 1fr); padding: 28px 22px 44px; text-align: left; gap: 8px; }
  .slide__title { font-size: 34px; }
  .slide__price { font-size: 52px; margin-bottom: 14px; }
  .slide__legal, .slide--navy .slide__legal, .slide--light .slide__legal { padding: 8px 22px; }
  .shortcut__icon, .shortcuts--scroll .shortcut__icon { width: 62px; height: 62px; font-size: 26px; }
  .shortcut { font-size: 12px; }
  .tile { min-height: 150px; }
  .tile__icon { font-size: 36px; }
  .card { padding: 10px; }
  .card__img { height: 120px; }
  .card__price { font-size: 19px; }
  .perks { padding: 14px; }
}

/* ---------- Foto do produto maior + lupa ---------- */
.pdp__img { align-self: start; position: sticky; top: 110px; aspect-ratio: 1 / 1; min-height: 0; overflow: hidden; cursor: zoom-in; }
.pdp__photo { position: absolute; inset: 24px 24px 48px; display: grid; place-items: center; }
.pdp__photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; object-position: center; }
.pdp__zoom-btn { position: absolute; left: 14px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--text); font-size: 12px; font-weight: 600; }
.pdp__zoom-btn:hover { border-color: var(--line-strong); }
.pdp__lens {
  position: absolute; z-index: 3; width: 200px; height: 200px; border-radius: 50%; pointer-events: none;
  background-color: #fff; background-repeat: no-repeat; border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line-strong), 0 10px 28px rgba(20, 24, 40, .18); opacity: 0; transition: opacity .15s;
}
.pdp__img.is-zooming .pdp__lens { opacity: 1; }
.pdp__img.is-zooming { cursor: none; }

.zoomview { position: fixed; inset: 0; z-index: 200; background: #fff; }
.zoomview__scroll { position: absolute; inset: 0; overflow: auto; cursor: grab; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.zoomview__scroll:active { cursor: grabbing; }
.zoomview__scroll img { display: block; max-width: none; margin: auto; user-select: none; -webkit-user-drag: none; }
.zoomview__close { position: fixed; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--line-strong); font-size: 18px; color: var(--text); display: grid; place-items: center; }
.zoomview__hint { position: fixed; left: 50%; bottom: 18px; translate: -50% 0; background: var(--text); color: #fff; font-size: 13px; padding: 7px 14px; border-radius: 999px; pointer-events: none; }
@media (max-width: 900px) {
  .pdp__img { position: relative; top: auto; aspect-ratio: 1 / 1; max-height: 70vh; width: 100%; }
  .pdp__photo { inset: 14px 14px 44px; }
}

/* Espaço entre seções da página inicial: menor (antes ficava muito espaçado) */
.hs { margin-top: 16px; }
.hs:first-child { margin-top: 12px; }
.hs--sp-sm { margin-top: 6px; }
.hs--sp-lg { margin-top: 28px; }
.hs .products { margin-bottom: 0; }
.shelf__track { padding-bottom: 4px; }

/* Carrossel no celular: o banner de imagem aparece inteiro, na proporção da própria imagem
   (antes ficava cortado nas laterais). A altura acompanha o banner da vez (js/app.js: initCarousels). */
@media (max-width: 760px) {
  .slider { transition: height .35s ease; }
  .slider .slides { align-items: flex-start; }
  .slide--image, .slider--sm .slide--image, .slider--lg .slide--image { min-height: 0; aspect-ratio: var(--ar, 2.7); background-size: cover; }
}
