/* ===== Cores do logo Drogaria do Fernando ===== */
:root {
  --red: #d7262b;
  --red-dark: #b01c21;
  --red-soft: #fdeaea;
  --navy: #1b2a6b;
  --navy-dark: #121d4d;
  --navy-soft: #e8ebf6;
  --white: #ffffff;
  --bg: #f5f6f9;
  --text: #1d2233;
  --muted: #6b7185;
  --line: #e4e6ee;
  --green: #1a9c5b;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(27, 42, 107, .10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
}
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
.container { width: min(1260px, 100% - 32px); margin-inline: auto; }

/* ===== Faixa do topo ===== */
.topbar {
  background: linear-gradient(90deg, var(--navy-dark), var(--navy) 50%, var(--navy-dark));
  color: var(--white);
  font-size: 14px;
}
.topbar__inner { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 9px 0; flex-wrap: wrap; }
.topbar__tag { font-weight: 900; letter-spacing: .5px; font-size: 16px; }
.topbar__tag::before { content: "✚"; color: var(--red); background: #fff; border-radius: 6px; padding: 0 5px; margin-right: 8px; }
.topbar__btn { background: var(--red); color: #fff; font-weight: 800; padding: 5px 16px; border-radius: 999px; font-style: italic; }
.topbar__btn:hover { background: var(--red-dark); }

/* ===== Cabeçalho ===== */
.header { background: var(--white); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--line); }
.header__inner { display: flex; align-items: center; gap: 28px; padding: 14px 0; }
.header__logo img { height: 52px; width: auto; border-radius: 8px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--navy); }
.icon-btn:hover { background: var(--navy-soft); }
.header__menu { display: none; }

.search { flex: 1; display: flex; align-items: center; background: var(--bg); border-radius: 999px; padding: 0 8px 0 22px; border: 2px solid transparent; transition: border-color .2s; }
.search:focus-within { border-color: var(--navy); background: #fff; }
.search input { flex: 1; border: 0; background: transparent; padding: 13px 0; font: inherit; font-size: 15px; outline: none; color: var(--text); }
.search button { color: var(--navy); padding: 8px; }

.header__actions { display: flex; align-items: center; gap: 24px; }
.action { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--navy); white-space: nowrap; }
.action:hover { color: var(--red); }
.action--cart { position: relative; padding: 4px; }
.cart-count {
  position: absolute; top: -4px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--red); color: #fff; font-size: 12px; font-weight: 800; border-radius: 999px; display: grid; place-items: center;
}
.cart-count.bump { animation: bump .4s; }
@keyframes bump { 50% { transform: scale(1.35); } }

/* Menu de categorias */
.catbar { border-top: 1px solid var(--line); }
.catbar__inner { display: flex; justify-content: space-between; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.catbar__inner::-webkit-scrollbar { display: none; }
.catbar button { padding: 13px 6px; font-size: 15px; color: #4a5068; white-space: nowrap; border-bottom: 3px solid transparent; }
.catbar button:hover, .catbar button.active { color: var(--navy); border-bottom-color: var(--red); }
.catbar__all { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy) !important; }
.catbar__offer { color: var(--red) !important; font-weight: 700; }

/* ===== Carrossel ===== */
.hero { margin-top: 22px; }
.slider { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.slides { display: flex; transition: transform .6s cubic-bezier(.6,.05,.3,1); }
.slide {
  min-width: 100%; position: relative; min-height: 400px; padding: 40px 70px 60px;
  display: grid; grid-template-columns: 1.1fr 1fr 1.1fr; align-items: center; gap: 24px; color: #fff; overflow: hidden;
}
.slide--red { background: radial-gradient(circle at 20% 30%, #f04a3c, var(--red) 40%, #6d0d10 100%); }
.slide--navy { background: radial-gradient(circle at 80% 20%, #3a4fa8, var(--navy) 45%, var(--navy-dark)); }
.slide--light { background: linear-gradient(120deg, #fff 0%, var(--navy-soft) 100%); color: var(--navy); }
.slide::after { /* brilhos */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.35) 1.5px, transparent 2px);
  background-size: 46px 46px; opacity: .25;
}
.slide__kicker { font-size: 26px; font-weight: 900; letter-spacing: 2px; opacity: .85; }
.slide__title { font-size: clamp(44px, 6vw, 78px); line-height: .92; font-weight: 900; letter-spacing: -1px; text-shadow: 0 4px 0 rgba(0,0,0,.18); }
.slide--light .slide__title { color: var(--red); text-shadow: none; }
.slide__mid { text-align: center; position: relative; z-index: 1; }
.slide__product { font-size: 19px; }
.slide__deal em { font-family: Georgia, serif; font-size: 32px; font-weight: 700; }
.slide__price { font-size: 92px; font-weight: 900; line-height: 1; margin: 6px 0 18px; }
.slide__price small { font-size: 32px; margin-right: 6px; font-weight: 800; }
.slide__price sup { font-size: 38px; }
.slide__price span { font-size: 22px; font-family: Georgia, serif; font-style: italic; margin-left: -18px; }
.slide__cta {
  background: linear-gradient(180deg, #ffb32c, #ff7a00); color: var(--navy-dark); font-weight: 900; font-size: 28px;
  padding: 10px 36px; border-radius: 999px; box-shadow: 0 6px 0 rgba(0,0,0,.2); transition: transform .15s;
}
.slide--light .slide__cta { background: var(--red); color: #fff; }
.slide__cta:hover { transform: translateY(-2px); }
.slide__legal {
  position: absolute; left: 0; right: 0; bottom: 0; background: #ffb32c; color: var(--navy-dark);
  font-size: 12px; padding: 7px 28px; z-index: 1;
}
.slide--navy .slide__legal { background: var(--red); color: #fff; }
.slide--light .slide__legal { background: var(--navy); color: #fff; }

/* Ilustrações dos banners */
.slide__art { position: relative; height: 300px; z-index: 1; }
.pack {
  position: absolute; right: 10px; bottom: 10px; width: 220px; height: 250px; border-radius: 26px 26px 14px 14px;
  background: linear-gradient(160deg, #29c7c0, #138e9a); border: 4px solid #fff; box-shadow: 0 18px 40px rgba(0,0,0,.35);
  display: flex; align-items: flex-end; padding: 18px; font-weight: 900; font-size: 34px; transform: rotate(6deg);
}
.pack b { font-size: 46px; margin-left: 6px; }
.pack::before { content: "PACOTE ECONÔMICO"; position: absolute; top: 18px; left: 16px; right: 16px; background: #fff; color: var(--red); font-size: 14px; text-align: center; border-radius: 8px; padding: 4px; }
.pack--back { right: 130px; bottom: 30px; transform: rotate(-8deg) scale(.9); filter: brightness(.85); }
.bottle {
  position: absolute; right: 60px; bottom: 0; width: 120px; height: 270px; border-radius: 30px 30px 18px 18px;
  background: linear-gradient(90deg, #fff, #f1f2f8); color: var(--navy); display: grid; place-items: center;
  font-weight: 900; font-size: 26px; text-align: center; box-shadow: 0 18px 40px rgba(0,0,0,.35); transform: rotate(-6deg);
}
.bottle::before { content: ""; position: absolute; top: -26px; width: 56px; height: 34px; background: var(--red); border-radius: 10px; }
.bottle--small { right: 180px; height: 190px; width: 100px; font-size: 18px; transform: rotate(8deg); background: linear-gradient(90deg, var(--red-soft), #fff); }
.moto { font-size: 200px; text-align: center; line-height: 300px; transform: scaleX(-1); }

.slider__arrow {
  position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--navy);
  font-size: 30px; line-height: 1; box-shadow: var(--shadow); z-index: 2;
}
.slider__arrow--prev { left: 14px; }
.slider__arrow--next { right: 14px; }
.dots { display: flex; justify-content: center; gap: 8px; margin: 16px 0 6px; }
.dots button { width: 9px; height: 9px; border-radius: 999px; background: #c9ccd8; transition: width .3s, background .3s; }
.dots button.active { width: 26px; background: var(--red); }

/* ===== Atalhos ===== */
.shortcuts { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; padding: 24px 0 8px; }
.shortcut { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 13px; color: #4a5068; text-align: center; line-height: 1.3; }
.shortcut__icon {
  width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; font-size: 40px; font-weight: 900; color: var(--red);
  background: var(--c); border: 3px solid #fff; box-shadow: var(--shadow); transition: transform .2s;
}
.shortcut:hover .shortcut__icon { transform: translateY(-4px) scale(1.04); }
.shortcut:hover { color: var(--navy); }

/* ===== Vantagens ===== */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 26px auto; background: #fff; border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); }
.perk { display: flex; gap: 12px; align-items: center; }
.perk > span { font-size: 28px; width: 50px; height: 50px; display: grid; place-items: center; background: var(--navy-soft); border-radius: 12px; }
.perk strong { display: block; color: var(--navy); font-size: 15px; }
.perk small { color: var(--muted); }

/* ===== Produtos ===== */
.products { margin-top: 10px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.section-head h2, .stores h2 { font-size: 26px; color: var(--navy); font-weight: 800; }
.section-head h2::after, .stores h2::after { content: ""; display: block; width: 46px; height: 4px; background: var(--red); border-radius: 4px; margin-top: 6px; }
.section-head select { font: inherit; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--navy); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.card {
  background: #fff; border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 8px; position: relative;
  border: 1px solid var(--line); transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card__badge { position: absolute; top: 12px; left: 12px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; z-index: 1; }
.card__badge--rx { left: auto; right: 12px; background: var(--navy); }
.card__img { height: 150px; border-radius: 12px; display: grid; place-items: center; font-size: 72px; background: var(--tone, var(--navy-soft)); }
.card__brand { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-top: 4px; }
.card__name { font-size: 15px; font-weight: 600; min-height: 42px; }
.card__old { font-size: 13px; color: var(--muted); text-decoration: line-through; min-height: 18px; }
.card__price { font-size: 24px; font-weight: 800; color: var(--navy); }
.card__price small { font-size: 14px; }
.card__inst { font-size: 12px; color: var(--muted); }
.card__add {
  margin-top: auto; background: var(--red); color: #fff; font-weight: 700; padding: 11px; border-radius: 10px; transition: background .2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.card__add:hover { background: var(--red-dark); }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ===== Promo ===== */
.promo-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 40px auto; }
.promo { border-radius: 20px; padding: 32px; color: #fff; position: relative; overflow: hidden; }
.promo::after { content: "✚"; position: absolute; right: -10px; bottom: -40px; font-size: 180px; opacity: .12; }
.promo--red { background: linear-gradient(135deg, var(--red), var(--red-dark)); }
.promo--navy { background: linear-gradient(135deg, var(--navy), var(--navy-dark)); }
.promo h3 { font-size: 24px; margin-bottom: 6px; }
.promo p { opacity: .9; max-width: 380px; margin-bottom: 18px; }
.promo button { background: #fff; color: var(--navy); font-weight: 800; padding: 10px 22px; border-radius: 999px; }

/* ===== Lojas ===== */
.stores { margin-bottom: 50px; }
.stores__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.store { background: #fff; border-radius: var(--radius); padding: 20px; border-left: 5px solid var(--red); }
.store strong { color: var(--navy); display: block; margin-bottom: 6px; font-size: 17px; }
.store p { color: var(--muted); font-size: 14px; }

/* ===== Rodapé ===== */
.footer { background: var(--navy-dark); color: #c9cde0; }
.footer__news { background: var(--red); color: #fff; }
.footer__news-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; flex-wrap: wrap; }
.footer__news strong { font-size: 20px; margin-right: 10px; }
.news-form { display: flex; gap: 8px; flex: 0 1 440px; }
.news-form input { flex: 1; padding: 12px 16px; border-radius: 999px; border: 0; font: inherit; min-width: 0; }
.news-form button { background: var(--navy); color: #fff; font-weight: 700; padding: 0 22px; border-radius: 999px; }
.footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 30px; padding: 40px 0; }
.footer__logo { height: 54px; width: auto; border-radius: 8px; margin-bottom: 12px; }
.footer h4 { color: #fff; margin-bottom: 12px; }
.footer__cols a, .footer__cols p { display: block; font-size: 14px; margin-bottom: 8px; }
.footer__cols a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: 12px; text-align: center; }
.footer__bottom p { margin: 3px 0; }

/* ===== Carrinho ===== */
.overlay { position: fixed; inset: 0; background: rgba(18, 29, 77, .45); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 90; }
.overlay.show { opacity: 1; pointer-events: auto; }
.cart {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%); background: #fff; z-index: 100;
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s ease;
}
.cart.open { transform: none; }
.cart__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cart__head h3 { color: var(--navy); }
.cart__ship { padding: 12px 20px; font-size: 13px; background: var(--navy-soft); color: var(--navy); }
.cart__ship .bar { height: 6px; background: #fff; border-radius: 6px; margin-top: 6px; overflow: hidden; }
.cart__ship .bar i { display: block; height: 100%; background: var(--green); transition: width .4s; }
.cart__items { list-style: none; flex: 1; overflow-y: auto; padding: 8px 20px; }
.cart__empty { text-align: center; color: var(--muted); padding: 50px 0; }
.cart__empty span { font-size: 54px; display: block; margin-bottom: 10px; }
.citem { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.citem__img { width: 58px; height: 58px; border-radius: 10px; display: grid; place-items: center; font-size: 30px; background: var(--tone, var(--navy-soft)); }
.citem__name { font-size: 14px; font-weight: 600; }
.citem__price { color: var(--navy); font-weight: 800; font-size: 15px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; margin-top: 6px; width: max-content; }
.qty button { width: 28px; height: 28px; color: var(--navy); font-weight: 800; }
.qty span { min-width: 24px; text-align: center; font-size: 14px; }
.citem__rm { color: var(--muted); font-size: 18px; align-self: start; }
.citem__rm:hover { color: var(--red); }
.cart__foot { padding: 16px 20px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.cart__row { display: flex; justify-content: space-between; font-size: 14px; }
.cart__row--total { font-size: 18px; color: var(--navy); }

.btn { padding: 13px 20px; border-radius: 10px; font-weight: 700; text-align: center; transition: background .2s; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); }
.btn--primary:disabled { background: #d9a3a5; cursor: not-allowed; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--ghost { color: var(--navy); }
.btn--ghost:hover { background: var(--navy-soft); }

/* ===== Modal ===== */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; background: rgba(18, 29, 77, .55); }
.modal[hidden] { display: none; }
.modal__box { background: #fff; border-radius: 18px; width: min(520px, 100%); max-height: 90vh; overflow-y: auto; padding: 28px; position: relative; animation: pop .25s; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.modal__close { position: absolute; top: 12px; right: 12px; }
.modal h3 { color: var(--navy); font-size: 22px; margin-bottom: 8px; padding-right: 30px; }
.modal p { color: var(--muted); margin-bottom: 14px; }
.form { display: grid; gap: 12px; }
.form label { font-size: 13px; font-weight: 600; color: var(--navy); display: grid; gap: 5px; }
.form input, .form select { padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.form input:focus, .form select:focus { outline: 2px solid var(--navy); border-color: transparent; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pay-opts label { border: 2px solid var(--line); border-radius: 10px; padding: 10px; text-align: center; cursor: pointer; display: block; }
.pay-opts input { display: none; }
.pay-opts label:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.summary { background: var(--bg); border-radius: 10px; padding: 12px; font-size: 14px; display: grid; gap: 4px; }
.success { text-align: center; }
.success .big { font-size: 64px; }

/* ===== Toast, cookies, WhatsApp ===== */
.toast {
  position: fixed; left: 50%; bottom: 90px; translate: -50% 20px; background: var(--navy); color: #fff; padding: 12px 22px;
  border-radius: 999px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: .3s; z-index: 130; white-space: nowrap;
}
.toast.show { opacity: 1; translate: -50% 0; }
.cookies {
  position: fixed; left: 0; right: 0; bottom: 0; background: #fff; box-shadow: 0 -4px 20px rgba(0,0,0,.08); z-index: 80;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; font-size: 14px; color: #4a5068;
}
.cookies[hidden] { display: none; }
.cookies div { display: flex; gap: 10px; }
/* Farmacêutico animado */
.pharma { position: fixed; right: 16px; bottom: 12px; z-index: 70; display: flex; align-items: flex-end; gap: 6px; }
.pharma__btn { position: relative; width: 120px; height: 135px; animation: float 3.2s ease-in-out infinite; filter: drop-shadow(0 8px 14px rgba(18,29,77,.3)); }
.pharma__btn:hover { animation-play-state: paused; transform: scale(1.06); }
.pharma__btn::before { /* círculo de fundo */
  content: ""; position: absolute; left: 8px; right: 8px; bottom: 0; height: 96px; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #fff, var(--navy-soft)); border: 3px solid #25d366;
}
.pharma__svg { position: relative; width: 100%; height: 100%; overflow: visible; }
.pharma__arm { transform-origin: 124px 142px; transform-box: view-box; animation: wave 2.4s ease-in-out infinite; }
.pharma__eyes { transform-origin: 80px 63px; transform-box: view-box; animation: blink 4s infinite; }
.pharma__wpp {
  position: absolute; right: 4px; bottom: 4px; width: 32px; height: 32px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; border: 3px solid #fff; animation: pulse 2s infinite;
}
.pharma__bubble {
  position: relative; background: #fff; color: var(--text); border-radius: 16px 16px 4px 16px; padding: 12px 30px 12px 14px;
  box-shadow: var(--shadow); max-width: 220px; font-size: 13px; margin-bottom: 70px; border: 1px solid var(--line);
  animation: pop .35s ease;
}
.pharma__bubble[hidden] { display: none; }
.pharma__bubble strong { display: block; color: var(--navy); font-size: 14px; margin-bottom: 2px; }
.pharma__x { position: absolute; top: 6px; right: 8px; color: var(--muted); font-size: 12px; }
.pharma__x:hover { color: var(--red); }
.modal-avatar { width: 170px; height: 191px; margin: -4px auto 6px; display: block; }
.modal-avatar .pharma__svg { width: 100%; height: 100%; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30%, 50% { transform: rotate(-14deg); } 20%, 40% { transform: rotate(10deg); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.6); } 70% { box-shadow: 0 0 0 12px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
@media (prefers-reduced-motion: reduce) {
  .pharma__btn, .pharma__arm, .pharma__eyes, .pharma__wpp { animation: none; }
}

/* ===== Responsivo ===== */
@media (max-width: 1100px) {
  .action span:not(.cart-count) { display: none; }
  .header__actions { gap: 14px; }
  .slide { grid-template-columns: 1fr 1fr; padding: 36px 60px 56px; }
  .slide__art { display: none; }
  .shortcuts { grid-template-columns: repeat(4, 1fr); row-gap: 20px; }
}
@media (max-width: 760px) {
  .header__inner { flex-wrap: wrap; gap: 10px; padding: 10px 0; }
  .header__menu { display: grid; }
  .header__logo img { height: 40px; }
  .header__actions { margin-left: auto; }
  .header__actions .action:not(.action--cart) { display: none; }
  .search { order: 3; flex-basis: 100%; }
  .catbar { display: none; }
  .catbar.open { display: block; }
  .catbar.open .catbar__inner { flex-direction: column; }
  .catbar.open button { text-align: left; border-bottom: 1px solid var(--line); }
  .topbar__text { display: none; }
  .slide { grid-template-columns: 1fr; text-align: center; padding: 30px 20px 60px; min-height: 0; gap: 10px; }
  .slide__title { font-size: 46px; }
  .slide__price { font-size: 64px; }
  .slider__arrow { display: none; }
  .shortcut__icon { width: 64px; height: 64px; font-size: 30px; }
  .shortcut { font-size: 12px; }
  .perks { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card { padding: 10px; }
  .card__img { height: 110px; font-size: 52px; }
  .card__price { font-size: 20px; }
  .promo-strip, .stores__grid { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .cookies { flex-direction: column; align-items: stretch; text-align: center; }
  .cookies div { justify-content: center; }
  .form .row, .pay-opts { grid-template-columns: 1fr; }
  .pharma { right: 8px; bottom: 8px; }
  .pharma__btn { width: 96px; height: 108px; }
  .pharma__btn::before { height: 80px; }
  .pharma__wpp { width: 28px; height: 28px; }
  .pharma__bubble { max-width: 180px; margin-bottom: 56px; }
}

/* =====================================================================
   NAVEGAÇÃO, PÁGINAS INTERNAS E LOJAS
   ===================================================================== */
.catbar { position: relative; }
.catbar__inner > a { padding: 13px 6px; font-size: 15px; color: #4a5068; white-space: nowrap; border-bottom: 3px solid transparent; }
.catbar__inner > a:hover, .catbar__inner > a.active { color: var(--navy); border-bottom-color: var(--red); }

/* Mega-menu */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: 0 18px 40px rgba(18,29,77,.15); border-top: 1px solid var(--line); z-index: 60; }
.mega[hidden] { display: none; }
.mega__inner { display: grid; grid-template-columns: 250px 1fr; min-height: 380px; }
.mega__side { border-right: 1px solid var(--line); padding: 18px 0; }
.mega__label { color: var(--red); font-weight: 800; font-size: 18px; padding: 0 16px 10px; }
.mega__groups { list-style: none; }
.mega__groups a { display: flex; align-items: center; gap: 10px; padding: 10px 16px; color: #4a5068; font-size: 15px; }
.mega__groups a i { margin-left: auto; font-style: normal; color: #b4b8c8; }
.mega__groups a:hover, .mega__groups a.active { background: var(--navy-soft); color: var(--navy); font-weight: 600; }
.mega__panel { padding: 20px 28px; max-height: 70vh; overflow-y: auto; }
.mega__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.mega__head h3 { color: var(--red); font-size: 20px; }
.mega__head a { color: var(--red); font-weight: 700; font-size: 14px; }
.mega__cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px 28px; }
.mega__col { display: flex; flex-direction: column; gap: 6px; }
.mega__col a { font-size: 14px; color: var(--muted); }
.mega__col a:hover { color: var(--navy); text-decoration: underline; }
.mega__col .mega__cat { color: var(--navy); font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.mega__col .mega__all { color: var(--red); font-weight: 700; font-size: 13px; margin-top: 2px; }

/* Menu lateral (celular) */
.drawer { position: fixed; top: 0; left: 0; height: 100%; width: min(340px, 88%); background: #fff; z-index: 100; transform: translateX(-100%); transition: transform .3s; display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.drawer__head img { height: 38px; border-radius: 6px; }
.drawer__body { overflow-y: auto; padding: 6px 0 20px; }
.drawer__link, .drawer summary { display: block; padding: 13px 18px; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--line); cursor: pointer; list-style: none; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary::after { content: "+"; float: right; color: var(--red); font-weight: 800; }
.drawer details[open] > summary::after { content: "\2013"; }
.drawer__link--red { color: var(--red); }
.drawer details a { display: block; padding: 9px 18px 9px 34px; color: #4a5068; font-size: 14px; }
.drawer__sub summary { padding-left: 30px; font-size: 14px; color: #4a5068; }
.drawer .drawer__sub a { padding-left: 46px; }
.drawer .drawer__all { color: var(--red); font-weight: 700; }

/* Sugestões de busca */
.search { position: relative; }
.suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border-radius: 16px; box-shadow: 0 16px 40px rgba(18,29,77,.18); padding: 12px; z-index: 70; max-height: 70vh; overflow-y: auto; border: 1px solid var(--line); }
.suggest[hidden] { display: none; }
.suggest__title { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin: 6px 8px; }
.suggest__top { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; }
.suggest__top a, .suggest__cat, .suggest__item, .suggest__all { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; font-size: 14px; }
.suggest__top b { color: var(--red); }
.suggest__top a:hover, .suggest__cat:hover, .suggest__item:hover { background: var(--navy-soft); }
.suggest__cat small { color: var(--muted); font-size: 12px; }
.suggest__icon { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--tone); font-size: 20px; }
.suggest__item strong { margin-left: auto; color: var(--navy); white-space: nowrap; }
.suggest__all { color: var(--red); font-weight: 700; justify-content: center; }
.suggest__none { padding: 10px; color: var(--muted); font-size: 14px; }
.suggest__none a { color: var(--red); font-weight: 700; }

/* Home */
.see-all { color: var(--red); font-weight: 700; font-size: 14px; white-space: nowrap; }
.products { margin-bottom: 36px; }
.group-tiles { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.group-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 10px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: .2s; }
.group-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.group-tile__icon { width: 60px; height: 60px; border-radius: 50%; background: var(--tone); display: grid; place-items: center; font-size: 28px; }
.group-tile strong { color: var(--navy); font-size: 14px; }
.group-tile small { color: var(--muted); font-size: 12px; }
.store-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #fff; border-radius: 20px; padding: 26px 30px; margin-bottom: 50px; border-left: 6px solid var(--red); box-shadow: var(--shadow); }
.store-cta h2 { color: var(--navy); }
.store-cta p { color: var(--muted); }

/* Páginas internas */
.page { min-height: 60vh; padding-bottom: 50px; }
.page[hidden], #home[hidden] { display: none; }
.crumbs { font-size: 13px; color: var(--muted); padding: 18px 0 10px; }
.crumbs a { color: var(--navy); }
.crumbs a:hover { text-decoration: underline; }
.crumbs i { font-style: normal; margin: 0 4px; color: #b4b8c8; }

/* Listagem */
.listing__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.listing__head h1 { color: var(--navy); font-size: 28px; }
.filters-toggle { display: none; }
/* Tipo do medicamento e promoção por quantidade */
.type { font-style: normal; font-weight: 700; text-transform: none; letter-spacing: 0; }
.type--generico { color: #b07800; }
.type--etico { color: var(--navy); }
.type--similar { color: #2f7a1a; }
.type--psicotropico { color: #5b2d8e; }
.type--fitoterapico { color: var(--green); }
.card__qp { font-size: 12px; font-weight: 700; color: #b34700; background: #fff1e3; border-radius: 8px; padding: 4px 8px; align-self: flex-start; }
.card__qp b { color: var(--red); }
.qp-box { border: 2px solid #ffb27a; background: #fffaf3; border-radius: 14px; padding: 12px; margin-bottom: 14px; }
.qp-box__title { font-weight: 800; color: #b34700; margin-bottom: 8px; }
.qp-box__rows { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qp-box__rows button { background: #fff; border: 2px solid var(--line); border-radius: 10px; padding: 10px; text-align: left; display: grid; gap: 2px; }
.qp-box__rows button span { font-size: 13px; color: var(--muted); }
.qp-box__rows button strong { font-size: 18px; color: var(--navy); }
.qp-box__rows button small { font-size: 12px; font-weight: 600; }
.qp-box__rows button.active { border-color: #ff7a00; background: #fff1e3; }
.qp-box__until { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.pdp__total { font-size: 15px; color: #4a5068; margin-bottom: 10px; min-height: 1px; }
.pdp__total strong { color: var(--navy); font-size: 18px; }
.pdp__save { color: var(--green); font-weight: 700; }
.pdp__hint { color: #b34700; }
.citem__price s { color: var(--muted); font-weight: 400; font-size: 12px; }
.citem__qp { display: block; font-size: 12px; font-weight: 700; color: var(--green); margin-top: 2px; }
.citem__qp--hint { color: #b34700; }

/* Descrição do produto */
.pdp__about { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; margin-bottom: 14px; }
.pdp__about-title { font-weight: 800; color: var(--navy); font-size: 14px; margin-bottom: 6px; }
.pdp__text { font-size: 14px; }
.pdp__text p { color: #4a5068; margin-bottom: 8px; line-height: 1.6; }
.pdp__text p:last-child { margin-bottom: 0; }
.pdp__text.is-clamped { max-height: 7.2em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.pdp__more { color: var(--red); font-weight: 700; font-size: 13px; margin-top: 6px; }
.pdp__subtitle { color: var(--navy); font-size: 17px; margin: 18px 0 10px; }

/* Fotos de produto enviadas pelo painel */
.card__img, .citem__img, .suggest__icon { position: relative; overflow: hidden; }
.card__img img, .citem__img img, .suggest__icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.card__img img { inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); border-radius: 8px; }
.pdp__img img { max-width: 90%; max-height: 340px; object-fit: contain; }
.admin-link { color: inherit; text-decoration: underline; opacity: .7; }

.chips-row { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 6px; scrollbar-width: none; }
.chips-row::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font-size: 14px; color: var(--navy); white-space: nowrap; }
.chip small { color: var(--muted); margin-left: 4px; }
.chip:hover, .chip.active { border-color: var(--red); color: var(--red); background: var(--red-soft); }
.chip--empty { opacity: .55; }
.listing__body { display: grid; grid-template-columns: 260px 1fr; gap: 24px; margin-top: 12px; align-items: start; }
.filters { background: #fff; border-radius: var(--radius); padding: 18px; border: 1px solid var(--line); display: grid; gap: 18px; position: sticky; top: 140px; max-height: calc(100vh - 160px); overflow-y: auto; }
.filter h4 { color: var(--navy); font-size: 15px; margin-bottom: 10px; }
.tree { list-style: none; display: grid; gap: 2px; }
.tree a { display: block; padding: 5px 8px; border-radius: 8px; font-size: 14px; color: #4a5068; }
.tree a:hover { background: var(--navy-soft); }
.tree a.active { background: var(--red-soft); color: var(--red); font-weight: 700; }
.tree small { color: #a0a5b8; }
.tree ul { list-style: none; margin: 2px 0 6px 12px; border-left: 2px solid var(--line); padding-left: 6px; }
.tree li.open > a { font-weight: 700; color: var(--navy); }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 4px 0; cursor: pointer; color: #4a5068; }
.check input { accent-color: var(--red); width: 16px; height: 16px; }
.check small { color: #a0a5b8; }
.price-range { display: flex; align-items: center; gap: 6px; }
.price-range input { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; min-width: 0; }
.price-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.price-quick button { font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; color: var(--navy); }
.price-quick button.active, .price-quick button:hover { border-color: var(--red); color: var(--red); }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; color: var(--muted); font-size: 14px; gap: 10px; }
.toolbar label { display: flex; align-items: center; gap: 8px; }
.toolbar select { font: inherit; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--navy); }
.load-more { display: block; margin: 24px auto 0; }
.load-more[hidden] { display: none; }
.empty__icon { font-size: 48px; }
.empty p { margin-bottom: 6px; }
.empty[hidden] { display: none; }
.empty__btns { display: flex; gap: 10px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.notfound h1 { color: var(--navy); margin-bottom: 6px; }
.notfound .btn { display: inline-block; margin-top: 12px; }
a.card__name { display: block; color: var(--text); }
a.card__name:hover { color: var(--red); }

/* Página de produto */
.pdp__main { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; background: #fff; border-radius: 20px; padding: 26px; border: 1px solid var(--line); }
.pdp__img { position: relative; background: var(--tone); border-radius: 16px; min-height: 380px; display: grid; place-items: center; }
.pdp__img > span:not(.card__badge) { font-size: 160px; }
.pdp__img small { position: absolute; bottom: 10px; right: 14px; font-size: 11px; color: var(--muted); }
.pdp__info h1 { color: var(--navy); font-size: 26px; line-height: 1.2; margin: 4px 0 6px; }
.pdp__code { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.alert { background: #fff6e0; border: 1px solid #f5d48a; color: #7a5300; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-bottom: 14px; }
.pdp__price { margin-bottom: 18px; }
.pdp__price strong { font-size: 38px; color: var(--navy); font-weight: 900; }
.pdp__off { background: var(--red); color: #fff; font-weight: 800; border-radius: 999px; padding: 3px 10px; font-size: 14px; margin-left: 10px; vertical-align: middle; }
.pdp__buy { display: flex; gap: 10px; }
.pdp__buy .btn { flex: 1; }
.qty--lg { margin-top: 0; }
.qty--lg button { width: 42px; height: 48px; font-size: 20px; }
.qty--lg span { min-width: 34px; font-size: 17px; font-weight: 700; }
.pdp__now { width: 100%; margin-top: 10px; }
.pdp__perks { list-style: none; margin-top: 18px; display: grid; gap: 8px; font-size: 14px; color: #4a5068; background: var(--bg); border-radius: 12px; padding: 14px; }
.pdp__perks a { color: var(--red); font-weight: 700; }
.pdp__desc { background: #fff; border-radius: 20px; padding: 26px; border: 1px solid var(--line); margin: 20px 0 30px; }
.pdp__desc h2 { color: var(--navy); margin-bottom: 10px; font-size: 20px; }
.pdp__desc p { color: #4a5068; margin-bottom: 14px; }
.specs { display: grid; grid-template-columns: 140px 1fr; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 14px; }
.specs dt, .specs dd { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.specs dt { background: var(--bg); font-weight: 700; color: var(--navy); }
.specs dd a { color: var(--red); }
.pdp__warn { margin-top: 14px; font-size: 12px; font-weight: 700; color: var(--muted) !important; text-transform: uppercase; }

/* Nossas Lojas */
.stores-hero { background: linear-gradient(120deg, var(--navy-soft), #cfd7f3); overflow: hidden; }
.stores-hero__inner { display: flex; align-items: center; gap: 40px; min-height: 210px; }
.stores-hero h1 { font-size: clamp(40px, 6vw, 68px); color: var(--navy); font-weight: 900; letter-spacing: -1px; }
.stores-hero h1 span { color: var(--red); }
.facade { width: 230px; height: 170px; background: linear-gradient(90deg, var(--navy) 0 18%, #fff 18% 82%, var(--navy) 82%); border-radius: 10px 10px 0 0; position: relative; margin-top: 40px; box-shadow: 0 10px 0 #b9c3e8; }
.facade::before { content: ""; position: absolute; left: 0; right: 0; top: 62%; height: 12px; background: var(--red); }
.facade__sign { position: absolute; top: -26px; left: 50%; translate: -50% 0; background: #fff; padding: 6px; border-radius: 8px; box-shadow: var(--shadow); }
.facade__sign img { height: 34px; width: auto; border-radius: 4px; }
.facade__door { position: absolute; bottom: 0; left: 50%; translate: -50% 0; width: 60px; height: 90px; background: linear-gradient(160deg, #cfe3ff, #9fb9e9); border: 3px solid var(--navy); border-bottom: 0; z-index: 1; }
.locator { display: grid; grid-template-columns: 400px 1fr; gap: 24px; align-items: start; }
.locator__side { display: grid; gap: 12px; }
.locator__intro { text-align: center; padding: 10px 0; }
.locator__pin { font-size: 46px; width: 96px; height: 96px; display: grid; place-items: center; background: var(--navy-soft); border-radius: 50%; margin: 0 auto 10px; }
.locator__intro h2 { color: var(--navy); font-size: 19px; }
.locator__intro p { color: var(--muted); font-size: 14px; }
.locator__input { width: 100%; padding: 13px 18px; border-radius: 999px; border: 1px solid var(--line); font: inherit; background: #fff; }
.locator__input:focus { outline: 2px solid var(--navy); }
.locator__geo { border: 1px dashed var(--navy); }
.locator__count { font-size: 13px; color: var(--muted); }
.locator__list { display: grid; gap: 12px; max-height: 640px; overflow-y: auto; padding-right: 4px; }
.store-card { background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 6px; font-size: 14px; color: #4a5068; transition: border-color .2s; }
.store-card.is-selected { border-color: var(--red); }
.store-card__top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.store-card h3 { color: var(--navy); font-size: 17px; }
.store-card strong { color: var(--text); }
.store-card a[href^="tel"] { color: var(--navy); font-weight: 600; }
.store-card__dist { color: var(--green); font-weight: 700; }
.status { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.status--open { background: #e2f7e9; color: var(--green); }
.status--closed { background: var(--red-soft); color: var(--red); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.tags span { background: var(--navy-soft); color: var(--navy); font-size: 12px; border-radius: 999px; padding: 3px 10px; }
.store-card__btns { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 6px; }
.store-card__btns .btn { padding: 10px 6px; font-size: 13px; }
.btn--outline { border: 2px solid var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy-soft); }
.btn--wpp { background: #25d366; color: #fff; }
.btn--wpp:hover { background: #1fb457; }
.locator__map { position: sticky; top: 140px; border-radius: 20px; overflow: hidden; background: #e4e7ef; min-height: 560px; }
.locator__map iframe { width: 100%; height: 600px; border: 0; display: block; }

/* Manipulação */
.manip { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: start; }
.manip__intro h1 { color: var(--navy); font-size: 34px; margin-bottom: 8px; }
.manip__intro > p { color: #4a5068; margin-bottom: 20px; }
.steps { list-style: none; display: grid; gap: 14px; }
.steps li { display: flex; gap: 14px; background: #fff; border-radius: 14px; padding: 16px; border: 1px solid var(--line); }
.steps b { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; }
.steps strong { display: block; color: var(--navy); }
.steps span { color: var(--muted); font-size: 14px; }
.manip__form { background: #fff; border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.manip__form h3 { color: var(--navy); }
.form textarea { padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; font: inherit; resize: vertical; }
.hint { color: var(--muted); font-size: 12px; }

/* Institucional */
.info { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.info__nav { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 10px; display: grid; position: sticky; top: 140px; }
.info__nav a { padding: 9px 12px; border-radius: 8px; font-size: 14px; color: #4a5068; }
.info__nav a:hover { background: var(--navy-soft); }
.info__nav a.active { background: var(--red-soft); color: var(--red); font-weight: 700; }
.info__body { background: #fff; border-radius: 20px; padding: 28px; border: 1px solid var(--line); color: #4a5068; }
.info__body h1 { color: var(--navy); margin-bottom: 14px; }
.info__body p, .info__body ol, .info__body ul { margin-bottom: 12px; }
.info__body ol, .info__body ul { padding-left: 22px; display: grid; gap: 6px; }
.info__body a { color: var(--red); font-weight: 700; }

/* Checkout e pedidos */
.form__label { font-size: 13px; font-weight: 600; color: var(--navy); }
.pay-opts--2 { grid-template-columns: 1fr 1fr; }
.form input.invalid { border-color: var(--red); background: var(--red-soft); }
.form__error { color: var(--red); font-weight: 700; font-size: 14px; }
.form__error[hidden], #coAddress[hidden], #coPickup[hidden], #coChange[hidden] { display: none; }
a.citem__name { display: block; }
a.citem__name:hover { color: var(--red); }
.citem__rx { display: inline-block; font-size: 11px; background: var(--navy); color: #fff; border-radius: 999px; padding: 1px 8px; margin: 3px 0; }
.cart__empty a { color: var(--red); font-weight: 700; }
.orders { list-style: none; display: grid; gap: 10px; }
.orders li { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; font-size: 14px; }
.orders small { display: block; color: var(--muted); }
.orders__items { color: #4a5068; font-size: 13px; }
.orders__foot { display: flex; justify-content: space-between; align-items: center; }
.orders__foot strong { color: var(--navy); font-size: 16px; }

/* Rodapé */
.footer__cols { grid-template-columns: 1.3fr 1fr 1fr 1fr 1.2fr; }
.footer__help strong { color: #fff; }
.pay-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.pay-chips span { background: rgba(255,255,255,.1); color: #fff; border-radius: 6px; padding: 4px 10px; font-size: 12px; }
.footer__small { font-size: 12px !important; }
#footerCats { display: grid; }

/* Responsivo das novas telas */
@media (max-width: 1100px) {
  .group-tiles { grid-template-columns: repeat(4, 1fr); }
  .locator { grid-template-columns: 1fr; }
  .locator__map { position: static; min-height: 0; }
  .locator__map iframe { height: 380px; }
  .locator__list { max-height: none; }
  .footer__cols { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 900px) {
  .listing__body { grid-template-columns: 1fr; }
  .filters-toggle { display: inline-block; }
  .filters { display: none; position: static; max-height: none; }
  .filters.open { display: grid; }
  .pdp__main, .manip, .info { grid-template-columns: 1fr; }
  .pdp__img { min-height: 260px; }
  .pdp__img > span:not(.card__badge) { font-size: 110px; }
  .info__nav { position: static; display: flex; overflow-x: auto; }
  .info__nav a { white-space: nowrap; }
}
@media (max-width: 760px) {
  .group-tiles { grid-template-columns: repeat(2, 1fr); }
  .store-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .stores-hero__art { display: none; }
  .stores-hero__inner { min-height: 120px; justify-content: center; }
  .store-card__btns { grid-template-columns: 1fr; }
  .listing__head h1 { font-size: 22px; }
  .suggest__top { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__help { grid-column: 1 / -1; }
  .specs { grid-template-columns: 110px 1fr; }
  .pdp__main { padding: 14px; }
}

/* =====================================================================
   PÁGINA INICIAL POR SEÇÕES (Editor do site)
   ===================================================================== */
.home { padding-bottom: 40px; }
.hs { margin-top: 28px; }
.hs:first-child { margin-top: 22px; }
.hs--sp-none { margin-top: 0; }
.hs--sp-sm { margin-top: 12px; }
.hs--sp-lg { margin-top: 52px; }
.hs .products, .hs .perks, .hs .promo-strip, .hs .store-cta { margin-top: 0; margin-bottom: 0; }
.hs .shortcuts { padding: 0; }
.hs[hidden] { display: none; }
.hs--size-sm { zoom: .85; }
.hs--size-lg { zoom: 1.15; }
@media (max-width: 760px) { .only-desktop { display: none; } }
@media (min-width: 761px) { .only-mobile { display: none; } }

/* Destaque da seção selecionada na prévia do editor */
.is-preview #home .hs { cursor: pointer; transition: outline-color .2s; outline: 2px dashed transparent; outline-offset: 4px; border-radius: 6px; }
.is-preview #home .hs:hover { outline-color: rgba(27, 42, 107, .35); }
.is-preview #home .hs--focus { outline: 3px solid var(--red); }
.hs--empty p { padding: 22px; text-align: center; color: var(--muted); border: 2px dashed var(--line); border-radius: var(--radius); background: #fff; }

/* Banners */
.slider--sm .slide { min-height: 280px; padding: 28px 64px 50px; }
.slider--sm .slide__title { font-size: clamp(34px, 4.4vw, 56px); }
.slider--sm .slide__price { font-size: 64px; }
.slider--sm .slide__art { height: 200px; transform: scale(.75); }
.slider--lg .slide { min-height: 520px; }
.slider--lg .slide__art { height: 380px; }
.slide--no-art { grid-template-columns: 1.1fr 1fr; }
.slide--no-art .slide__art { display: none; }
.slide--has-img { background-size: cover !important; background-position: center !important; }
.slide--has-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.12)); }
.slide--light.slide--has-img::before { background: linear-gradient(90deg, rgba(255,255,255,.85), rgba(255,255,255,.2)); }
.slide--has-img .slide__left, .slide--has-img .slide__mid { position: relative; z-index: 1; }
.slide--image { display: block; background-color: var(--navy-soft); background-size: cover; background-position: center; padding: 0; }
.slider--sm .slide--image { min-height: 280px; }
.slide__cta { display: inline-block; }
.slide__pre { display: block; font-size: 20px !important; font-weight: 600 !important; margin: 0 0 -6px !important; }
.slide__price .slide__price-text { font-size: 56px; letter-spacing: -1px; font-family: inherit; font-style: normal; margin-left: 0; }
.slider--sm .slide__price-text { font-size: 40px; }

/* Atalhos e vantagens com quantidade variável */
.shortcuts { grid-template-columns: repeat(var(--n, 8), 1fr); }
.shortcut__icon img { width: 70%; height: 70%; object-fit: contain; }
.shortcuts--sm .shortcut__icon { width: 64px; height: 64px; font-size: 30px; }
.shortcuts--lg .shortcut__icon { width: 108px; height: 108px; font-size: 50px; }
.perks { grid-template-columns: repeat(var(--n, 4), 1fr); }

/* Vitrine em carrossel */
.shelf { position: relative; }
.shelf__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 54px) / 4); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 10px;
}
.shelf__track::-webkit-scrollbar { display: none; }
.shelf__track > * { scroll-snap-align: start; }
.shelf__arrow {
  position: absolute; top: 40%; z-index: 2; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--navy);
  font-size: 26px; line-height: 1; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.shelf__arrow--prev { left: -14px; }
.shelf__arrow--next { right: -14px; }

/* Anúncios (imagens) */
.ads { display: grid; grid-template-columns: repeat(var(--cols, 2), 1fr); gap: 14px; }
.ads-full .ads { gap: 0; }
.ad { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--navy-soft); }
.ads-full .ad { border-radius: 0; }
.ads--sm .ad { height: 140px; }
.ads--md .ad { height: 220px; }
.ads--lg .ad { height: 320px; }
.ads--xl .ad { height: 440px; }
.ad img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.ads--fit-contain .ad img { object-fit: contain; }
.ads--auto .ad img { height: auto; }
.ad:hover img { transform: scale(1.03); }
.ad__title { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 16px 12px; color: #fff; font-weight: 800; font-size: 18px; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.ad--empty { border: 2px dashed #b9c0d6; display: grid; place-items: center; min-height: 140px; }
.ad--empty .ad__title { position: static; background: none; color: var(--muted); font-size: 14px; font-weight: 600; padding: 12px; text-align: center; }

/* Cartões promocionais */
.promo-strip { grid-template-columns: repeat(var(--cols, 2), 1fr); }
.promo--orange { background: linear-gradient(135deg, #ff8a00, #e65100); }
.promo--green { background: linear-gradient(135deg, #22a559, #0f6b3a); }
.promo--dark { background: linear-gradient(135deg, #2b2f3a, #12141a); }
.promo__btn { display: inline-block; background: #fff; color: var(--navy); font-weight: 800; padding: 10px 22px; border-radius: 999px; }
.promo__btn:hover { transform: translateY(-1px); }

/* Oferta relâmpago */
.countdown { display: flex; align-items: center; gap: 24px; justify-content: space-between; flex-wrap: wrap; border-radius: 20px; padding: 22px 28px; color: #fff; background: linear-gradient(135deg, var(--red), var(--red-dark)); }
.countdown--navy { background: linear-gradient(135deg, var(--navy), var(--navy-dark)); }
.countdown--orange { background: linear-gradient(135deg, #ff8a00, #e65100); }
.countdown--green { background: linear-gradient(135deg, #22a559, #0f6b3a); }
.countdown--dark { background: linear-gradient(135deg, #2b2f3a, #12141a); }
.countdown h2 { font-size: 26px; }
.countdown p { opacity: .9; }
.countdown__clock { display: flex; gap: 10px; }
.countdown__clock span { background: rgba(255,255,255,.16); border-radius: 12px; padding: 8px 12px; text-align: center; min-width: 66px; }
.countdown__clock b { display: block; font-size: 30px; font-weight: 900; font-variant-numeric: tabular-nums; }
.countdown__clock small { font-size: 11px; text-transform: uppercase; opacity: .85; }
.countdown__btn { background: #fff; color: var(--navy); font-weight: 800; padding: 12px 22px; border-radius: 999px; }

/* Faixa de avisos rolando */
.ticker { background: var(--bg); color: var(--fg); overflow: hidden; white-space: nowrap; padding: 11px 0; font-weight: 700; font-size: 15px; }
.ticker__track { display: inline-flex; animation: ticker var(--dur, 25s) linear infinite; }
.ticker__track span { padding: 0 44px; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* Bloco de texto */
.tblock { border-radius: 20px; padding: 28px; }
.tblock--center { text-align: center; }
.tblock--white { background: #fff; border: 1px solid var(--line); }
.tblock--navy { background: var(--navy); color: #fff; }
.tblock--red { background: var(--red); color: #fff; }
.tblock h2 { color: inherit; font-size: 26px; margin-bottom: 10px; }
.tblock--white h2, .tblock--none h2 { color: var(--navy); }
.tblock p { margin-bottom: 10px; line-height: 1.6; max-width: 760px; }
.tblock--center p { margin-left: auto; margin-right: auto; }
.tblock--navy p, .tblock--red p { opacity: .92; }
.tblock__btn { display: inline-block; margin-top: 8px; }
.tblock--red .tblock__btn { background: #fff; color: var(--red); }

/* Vídeo */
.video__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000; }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Cadastro de e-mail */
.nl { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: var(--navy); color: #fff; border-radius: 20px; padding: 24px 28px; }
.nl h2 { font-size: 22px; }
.nl p { opacity: .85; }
.nl .news-form { flex: 0 1 440px; }
.nl .news-form button { background: var(--red); }

@media (max-width: 1100px) {
  .shelf__track { grid-auto-columns: calc((100% - 36px) / 3); }
}
@media (max-width: 760px) {
  .hs { margin-top: 18px; }
  .hs--sp-lg { margin-top: 32px; }
  .shortcuts { grid-template-columns: repeat(4, 1fr); }
  .perks { grid-template-columns: 1fr 1fr; }
  .shelf__track { grid-auto-columns: calc((100% - 10px) / 2); gap: 10px; }
  .shelf__arrow { display: none; }
  .ads:not(.ads--c1) { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ads--md .ad { height: 150px; }
  .ads--lg .ad { height: 220px; }
  .ads--xl .ad { height: 300px; }
  .promo-strip { grid-template-columns: 1fr; }
  .countdown { padding: 18px; }
  .countdown__clock span { min-width: 54px; padding: 6px 8px; }
  .countdown__clock b { font-size: 22px; }
  .slider--sm .slide, .slider--lg .slide { min-height: 0; padding: 30px 20px 60px; }
  .slide--no-art { grid-template-columns: 1fr; }
  .slide--image, .slider--sm .slide--image { min-height: 200px; }
  .slider--lg .slide--image { min-height: 300px; }
  .slide__price-text { font-size: 40px; }
}

/* =====================================================================
   CABEÇALHO EM UMA LINHA: logo · categorias · busca (expande) · conta
   ===================================================================== */
.header__inner { gap: 18px; }
.catbar { border-top: 0; height: 0; }
.header__cats {
  display: flex; align-items: center; gap: 8px; flex: none; padding: 10px 14px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--navy); font-weight: 700; font-size: 14px; white-space: nowrap;
  transition: background .2s, padding .3s, border-color .2s;
}
.header__cats:hover, .header__cats[aria-expanded="true"] { background: var(--navy-soft); border-color: transparent; }
.header__cats span { overflow: hidden; max-width: 170px; transition: max-width .3s, opacity .2s; }
.header__logo img { transition: height .3s; }
.search { flex: 1 1 260px; max-width: 360px; transition: max-width .35s ease, box-shadow .2s; }
.header__actions { margin-left: auto; }
.action__txt, .header__actions .action > span:not(.cart-count) { transition: opacity .2s; }

/* Logo em destaque */
.header__inner { padding: 12px 0; }
.header__logo { flex: none; }
.header__logo img { height: 68px; border-radius: 10px; box-shadow: 0 2px 10px rgba(27,42,107,.12); }
.header__logo:hover img { transform: scale(1.02); }

/* Menu do cliente */
.account-menu { position: relative; }
.account-menu__panel {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 75; width: 240px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 16px 40px rgba(18,29,77,.18); padding: 8px; display: grid; gap: 2px;
}
.account-menu__panel[hidden] { display: none; }
.account-menu__panel::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; } /* mantém aberto ao descer o mouse */
.account-menu__hello { font-size: 12px; color: var(--muted); padding: 6px 10px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu__panel a, .account-menu__panel button { display: block; text-align: left; padding: 10px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--navy); }
.account-menu__panel a:hover, .account-menu__panel button:hover { background: var(--navy-soft); }
.account-menu__panel button { color: var(--red); border-top: 1px solid var(--line); border-radius: 0 0 9px 9px; margin-top: 4px; }

/* Buscando: a busca ocupa o espaço e o resto encolhe */
.header.is-searching .search { max-width: 100%; flex-grow: 3; box-shadow: 0 6px 20px rgba(27,42,107,.12); }
.header.is-searching .header__cats { padding: 10px 12px; }
.header.is-searching .header__cats span { max-width: 0; opacity: 0; }
.header.is-searching .header__logo img { height: 54px; }
.header.is-searching .header__actions { gap: 10px; }
.header.is-searching .header__actions .action > span:not(.cart-count) { display: none; }

@media (max-width: 1100px) {
  .header__cats span { max-width: 0; opacity: 0; }
  .header__cats { padding: 10px 12px; }
  .search { max-width: none; }
}
@media (max-width: 760px) {
  .header__cats { display: none; }
  .search { max-width: none; flex-basis: 100%; }
  .header__logo img, .header.is-searching .header__logo img { height: 50px; }
  .header__inner { padding: 10px 0; }
}

/* =====================================================================
   ORGANIZAÇÃO INSPIRADA NA REFERÊNCIA (cabeçalho, vitrines, rodapé, celular)
   ===================================================================== */
/* Conta no cabeçalho em duas linhas */
.action--account { gap: 10px; }
.action__txt { display: grid; line-height: 1.15; text-align: left; }
.action__txt small { font-size: 12px; font-weight: 500; color: var(--muted); }
.action__txt span { font-size: 14px; font-weight: 700; }

/* Títulos de seção com links e setas à direita */
.section-head__side { display: flex; align-items: center; gap: 14px; }
.section-head--sm h2 { font-size: 20px; }
.section-head--sm h2::after { display: none; }
.shelf__nav { display: flex; gap: 6px; }
.shelf__nav button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: 22px; line-height: 1; }
.shelf__nav button:hover { border-color: var(--navy); background: var(--navy-soft); }
.shelf__arrow { display: none; }

/* Preço em destaque nos cards */
.card__price { font-size: 28px; letter-spacing: -.5px; }
.card__price small { font-size: 14px; font-weight: 700; }
.card__price sup { font-size: 15px; font-weight: 800; }

/* Atalhos em rolagem lateral (estilo "stories") */
.shortcuts--scroll { display: flex; overflow-x: auto; gap: 18px; padding: 4px 2px 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.shortcuts--scroll .shortcut { flex: 0 0 96px; scroll-snap-align: start; }
.shortcuts--scroll .shortcut__icon { border: 3px solid #fff; box-shadow: 0 0 0 2px var(--red), var(--shadow); }

/* Vitrine de campanhas */
.tiles { display: grid; grid-template-columns: repeat(var(--n, 6), 1fr); gap: 12px; }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 14px 10px 12px; min-height: 190px; border-radius: 16px; color: #fff; transition: transform .2s, box-shadow .2s; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile strong { font-size: 15px; line-height: 1.2; }
.tile small { margin-top: auto; background: rgba(255,255,255,.95); color: var(--navy); font-weight: 800; font-size: 12px; border-radius: 999px; padding: 4px 10px; }
.tile__icon { font-size: 56px; margin: auto 0; filter: drop-shadow(0 6px 8px rgba(0,0,0,.2)); }
.tile img { width: 100%; height: 100px; object-fit: contain; margin: auto 0; }
.tile--red { background: linear-gradient(160deg, var(--red), var(--red-dark)); }
.tile--navy { background: linear-gradient(160deg, var(--navy), var(--navy-dark)); }
.tile--orange { background: linear-gradient(160deg, #ffa22b, #e65100); }
.tile--green { background: linear-gradient(160deg, #2bb673, #0f6b3a); }
.tile--purple { background: linear-gradient(160deg, #8e5bd8, #4b2a8a); }
.tile--teal { background: linear-gradient(160deg, #22b5c9, #0b6f80); }

/* Benefícios em uma linha com até 5 itens */
.perks { grid-template-columns: repeat(var(--n, 4), 1fr); }

/* Dois painéis lado a lado */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.duo__panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.duo__head { display: flex; align-items: center; justify-content: space-between; }
.duo__head h3 { color: var(--navy); font-size: 18px; }
.duo__head span { width: 36px; height: 36px; border-radius: 50%; background: var(--navy-soft); display: grid; place-items: center; font-size: 18px; }
.duo__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mini { display: grid; gap: 6px; align-content: start; padding: 8px; border-radius: 12px; border: 1px solid var(--line); transition: border-color .2s; }
.mini:hover { border-color: var(--red); }
.mini__img { position: relative; height: 86px; border-radius: 10px; background: var(--tone); display: grid; place-items: center; font-size: 40px; overflow: hidden; }
.mini__img img { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); object-fit: contain; }
.mini__name { font-size: 12.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 32px; }
.mini__price { display: grid; }
.mini__price s { font-size: 11px; color: var(--muted); }
.mini__price strong { color: var(--navy); font-size: 15px; }
.duo__more { align-self: flex-end; color: var(--red); font-weight: 700; font-size: 13px; }

/* Marcas */
.brands { grid-auto-columns: 150px !important; }
.brand { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 14px 8px; background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s; }
.brand:hover { border-color: var(--red); }
.brand__logo { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 24px; }
.brand strong { color: var(--navy); font-size: 14px; }
.brand small { color: var(--muted); font-size: 12px; }

/* Rodapé: descontos e voltar ao topo */
.footer__deals { padding: 30px 0 4px; }
.footer__deals h3 { color: #fff; font-size: 18px; margin-bottom: 14px; }
.deals { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.deals a { display: grid; gap: 2px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 14px; transition: background .2s; }
.deals a:hover { background: rgba(255,255,255,.14); }
.deals span { font-size: 24px; }
.deals strong { color: #fff; font-size: 15px; }
.deals small { color: #aab1cc; font-size: 12px; }
.news-form input[type=text] { flex: 0 1 160px; }
.news-form { flex-wrap: wrap; min-width: 0; }
.news-form input { min-width: 0; }
.section-head { flex-wrap: wrap; }
@media (max-width: 760px) {
  .footer__news-inner .news-form { flex: 1 1 100%; }
  .news-form input, .news-form input[type=text] { flex: 1 1 100%; }
  .news-form button { flex: 1 1 100%; padding: 12px; }
  .section-head__side .see-all { font-size: 13px; }
}
.footer__bottom { position: relative; }
.to-top { display: block; margin: 0 auto 12px; color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 6px 16px; font-size: 13px; font-weight: 700; }
.to-top:hover { background: rgba(255,255,255,.1); }

/* Barra fixa do celular */
.bottom-nav { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 64px; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 85;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(18,29,77,.08); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-nav a, .bottom-nav button { position: relative; display: grid; justify-items: center; gap: 2px; color: var(--muted); font-size: 11px; font-weight: 600; padding: 4px 0; }
  .bottom-nav .active { color: var(--red); }
  .bn-count { position: absolute; top: 0; left: 55%; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; display: grid; place-items: center; }
  .pharma { bottom: 74px; }
  .cookies { bottom: 64px; }
  .toast { bottom: 150px; }
  .header__actions .action--cart { display: none; }
  .tiles { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .tiles::-webkit-scrollbar { display: none; }
  .tile { flex: 0 0 42%; min-height: 160px; scroll-snap-align: start; }
  .hs--perks .perks { --n: 2 !important; }
  .duo { grid-template-columns: 1fr; }
  .duo__list { grid-template-columns: repeat(2, 1fr); }
  .deals { grid-template-columns: 1fr 1fr; }
  .card__price { font-size: 22px; }
  .shortcuts--scroll .shortcut { flex-basis: 78px; }
  .shelf__nav { display: none; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .duo { grid-template-columns: 1fr; }
  .deals { grid-template-columns: repeat(3, 1fr); }
  .hs--perks .perks { --n: 3 !important; }
}

/* =====================================================================
   CONTA DO CLIENTE E FAVORITOS
   ===================================================================== */
.fav {
  position: absolute; top: 128px; right: 24px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 10px rgba(18,29,77,.18); font-size: 19px; line-height: 1; color: var(--red); display: grid; place-items: center;
  transition: transform .15s;
}
.fav:hover { transform: scale(1.12); }
.fav.on { animation: favpop .3s; }
@keyframes favpop { 50% { transform: scale(1.3); } }
.pdp__fav { width: 100%; margin-top: 8px; border: 1px solid var(--line); color: var(--red); }
.pdp__fav.on { background: var(--red-soft); border-color: transparent; }
.pdp__fav .fav__icon { font-size: 17px; }
.check-line { display: flex !important; align-items: center; gap: 8px; font-weight: 500 !important; color: var(--text) !important; }
.check-line input { width: 17px; height: 17px; accent-color: var(--red); }
.check-line a { color: var(--red); font-weight: 700; }
.form .row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.form button strong { color: var(--red); }

.account-gate { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 40px 20px; max-width: 560px; margin: 10px auto 40px; }
.account-gate h1 { color: var(--navy); margin-bottom: 6px; }
.account-gate p { color: var(--muted); }
.account__head { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px 22px; margin-bottom: 18px; }
.account__head h1 { color: var(--navy); font-size: 24px; }
.account__head p { color: var(--muted); font-size: 14px; }
.account__head .btn { margin-left: auto; }
.account__avatar { width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg, var(--red), var(--navy)); color: #fff; font-weight: 900; font-size: 22px; display: grid; place-items: center; flex: none; }
.account__body { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; padding-bottom: 40px; }
.account__nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; display: grid; gap: 2px; position: sticky; top: 140px; }
.account__nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; color: #4a5068; }
.account__nav a:hover { background: var(--navy-soft); }
.account__nav a.active { background: var(--red-soft); color: var(--red); }
.account__nav small { background: var(--bg); color: var(--muted); border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.account__content { display: grid; gap: 16px; min-width: 0; }
.account__card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.account__card h2 { color: var(--navy); font-size: 17px; margin-top: 4px; }
.account__card .btn { justify-self: start; }
.account__danger summary { cursor: pointer; font-weight: 700; color: var(--red); }
.account__danger[open] summary { margin-bottom: 12px; }
.account__danger p { color: var(--muted); font-size: 14px; }
.account__bar { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 14px; }
.acc-orders { display: grid; gap: 14px; }
.acc-order { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.acc-order header, .acc-order footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; }
.acc-order header { background: #fafbfd; border-bottom: 1px solid var(--line); }
.acc-order header strong { color: var(--navy); }
.acc-order header small { display: block; color: var(--muted); font-size: 12px; }
.acc-order ul { list-style: none; padding: 10px 16px; display: grid; gap: 6px; font-size: 14px; }
.acc-order li { display: flex; justify-content: space-between; gap: 10px; }
.acc-order li a:hover { color: var(--red); text-decoration: underline; }
.acc-order footer { border-top: 1px solid var(--line); font-size: 13px; color: #4a5068; }
.acc-order footer strong { color: var(--navy); font-size: 15px; }
.acc-status { font-size: 12px; font-weight: 800; border-radius: 999px; padding: 4px 12px; background: #fff3c4; color: #7a5300; }
.acc-status--confirmado { background: var(--navy-soft); color: var(--navy); }
.acc-status--saiu { background: #ece7ff; color: #4b3aa8; }
.acc-status--entregue { background: #e2f7e9; color: var(--green); }
.acc-status--cancelado { background: var(--red-soft); color: var(--red); }

@media (max-width: 900px) {
  .account__body { grid-template-columns: 1fr; }
  .account__nav { position: static; display: flex; overflow-x: auto; }
  .account__nav a { white-space: nowrap; }
}
@media (max-width: 760px) {
  .fav { top: 86px; right: 16px; width: 34px; height: 34px; font-size: 17px; }
  .form .row3 { grid-template-columns: 1fr; }
  .account__head { flex-wrap: wrap; padding: 14px; }
  .account__head h1 { font-size: 20px; }
  .account__card { padding: 16px; }
}

/* =====================================================================
   FARMACÊUTICO NO CANTO (parado, alternando pequenas ações)
   ===================================================================== */
.pharma.doc { position: fixed; right: 10px; left: auto; bottom: 8px; z-index: 70; display: block; width: max-content; pointer-events: none; }
.doc__btn { pointer-events: auto; position: relative; display: block; width: 144px; height: 280px; filter: drop-shadow(0 10px 14px rgba(18, 29, 77, .22)); transition: transform .2s; }
.doc__btn:hover { transform: translateY(-4px); }
.doc__poses { position: absolute; inset: 0; transform-origin: 50% 100%; animation: docBreath 3.6s ease-in-out infinite; }
.doc__pose { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; opacity: 0; transition: opacity .45s ease; }
.doc__pose.is-on { opacity: 1; }
/* pequenos movimentos de cada ação */
.doc[data-pose="bula"] .doc__pose.is-on { transform-origin: 50% 100%; animation: docRead 3s ease-in-out infinite; }
.doc[data-pose="cabelo"] .doc__pose.is-on { transform-origin: 50% 100%; animation: docScratch .5s ease-in-out 4; }
.doc[data-pose="caixa"] .doc__pose.is-on { transform-origin: 50% 100%; animation: docPeer 2.6s ease-in-out infinite; }
.doc[data-pose="parado"] .doc__pose.is-on { transform-origin: 50% 100%; animation: docHi .6s ease-out; }
.doc__shadow { position: absolute; left: 22%; right: 22%; bottom: -2px; height: 12px; border-radius: 50%; background: rgba(0, 0, 0, .16); filter: blur(2px); }
/* balão por cima, ao lado da cabeça, virado para dentro do site */
.doc__bubble { position: absolute; right: 104px; bottom: 200px; pointer-events: auto; cursor: pointer; width: 220px; max-width: 70vw; border-radius: 16px 16px 4px 16px; }
.modal-avatar:has(.doc__modalimg) { width: 128px; height: 250px; }
.doc__modalimg { width: 100%; height: 100%; object-fit: contain; }
@keyframes docBreath { 50% { transform: scaleY(1.008); } }
@keyframes docRead { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-1deg) translateY(1px); } }
@keyframes docScratch { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(1.2deg); } }
@keyframes docPeer { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px) rotate(.6deg); } }
@keyframes docHi { 0% { transform: translateY(0); } 40% { transform: translateY(-6px); } 100% { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .doc__poses, .doc .doc__pose.is-on { animation: none !important; }
  .doc__pose { transition: none; }
}
@media (max-width: 760px) {
  .pharma.doc { bottom: 64px; right: 4px; }
  .doc__btn { width: 88px; height: 172px; }
  .doc__bubble { right: 62px; bottom: 124px; width: 180px; }
}

/* ===== Ofertas direcionadas (campanhas) ===== */
.camps { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.camp { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; min-height: 170px; padding: 18px; border-radius: var(--radius); color: #fff; background: var(--camp-bg, var(--red)); transition: transform .2s, box-shadow .2s; }
.camp:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.camp strong { font-size: 19px; line-height: 1.15; max-width: 70%; }
.camp__sub { font-size: 13px; opacity: .92; max-width: 70%; }
.camp__off { font-size: 40px; font-weight: 900; line-height: 1; letter-spacing: -1px; }
.camp__off small { font-size: 15px; margin-left: 3px; letter-spacing: 0; }
.camp__cta { margin-top: auto; font-weight: 700; font-size: 14px; }
.camp__icon { position: absolute; right: 12px; bottom: 6px; font-size: 64px; opacity: .9; }
.camp__img { position: absolute; right: 8px; bottom: 8px; width: 42%; max-height: 70%; object-fit: contain; }
.camp--red { --camp-bg: linear-gradient(135deg, var(--red), var(--red-dark)); }
.camp--navy { --camp-bg: linear-gradient(135deg, var(--navy), var(--navy-dark)); }
.camp--orange { --camp-bg: linear-gradient(135deg, #f59e0b, #d9480f); }
.camp--green { --camp-bg: linear-gradient(135deg, #22a565, #0f6b3f); }
.camp--purple { --camp-bg: linear-gradient(135deg, #8e44c9, #4d1f7a); }
.camp--teal { --camp-bg: linear-gradient(135deg, #14a3a3, #0c5f6b); }
.camp-hero { display: flex; align-items: center; gap: 20px; margin: 4px 0 18px; padding: 22px 24px; border-radius: var(--radius); color: #fff; background: var(--camp-bg, var(--red)); }
.camp-hero__icon { font-size: 64px; }
.camp-hero__img { width: 120px; height: 120px; object-fit: contain; background: #fff; border-radius: 12px; }
.camp-hero__off { display: inline-block; background: #fff; color: #111; font-weight: 900; font-size: 15px; padding: 3px 10px; border-radius: 999px; }
.camp-hero h2 { font-size: 28px; margin: 6px 0 2px; }
.camp-hero p { margin: 0 0 6px; opacity: .95; }
.camp-hero small { opacity: .85; }
@media (max-width: 600px) {
  .camps { grid-template-columns: 1fr 1fr; gap: 10px; }
  .camp { min-height: 150px; padding: 14px; }
  .camp strong { font-size: 15px; max-width: 100%; }
  .camp__off { font-size: 30px; }
  .camp__icon { font-size: 40px; }
  .camp-hero { padding: 16px; gap: 12px; }
  .camp-hero__icon { font-size: 44px; }
  .camp-hero h2 { font-size: 21px; }
}

/* Cartão de campanha com vitrine de 3 produtos */
.camps:has(.camp--show) { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.camp--show strong { max-width: 100%; }
.camp--show .camp__sub { max-width: 100%; }
.camp__shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0 4px; }
.camp__mini { display: flex; flex-direction: column; gap: 2px; background: #fff; color: var(--text); border-radius: 12px; padding: 8px; min-width: 0; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.camp__mini-img { display: grid; place-items: center; aspect-ratio: 1; font-size: 34px; border-radius: 8px; overflow: hidden; background: #fff; }
.camp__mini-img img { width: 100%; height: 100%; object-fit: contain; }
.camp__mini-name { font-size: 11px; line-height: 1.25; height: 2.5em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--muted); }
.camp__mini s { font-size: 11px; color: var(--muted); }
.camp__mini b { font-size: 14px; color: var(--red); }
@media (max-width: 600px) {
  .camps:has(.camp--show) { grid-template-columns: 1fr; }
  .camp--show strong { font-size: 18px; }
  .camp__mini { padding: 6px; }
  .camp__mini b { font-size: 13px; }
}
/* Uma campanha só: cartão largo, texto à esquerda e vitrine à direita */
@media (min-width: 761px) {
  .camps:has(> .camp:only-child) { grid-template-columns: 1fr; }
  .camp--show:only-child { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr); grid-template-areas: "off shelf" "name shelf" "sub shelf" "cta shelf"; column-gap: 28px; row-gap: 6px; align-content: center; padding: 22px 26px; }
  .camp--show:only-child .camp__off { grid-area: off; align-self: end; font-size: 52px; }
  .camp--show:only-child strong { grid-area: name; font-size: 24px; }
  .camp--show:only-child .camp__sub { grid-area: sub; font-size: 15px; }
  .camp--show:only-child .camp__cta { grid-area: cta; align-self: start; margin-top: 8px; }
  .camp--show:only-child .camp__shelf { grid-area: shelf; margin: 0; gap: 14px; }
  .camp--show:only-child .camp__mini-name { font-size: 13px; }
  .camp--show:only-child .camp__mini b { font-size: 17px; }
}

/* Fundo dos produtos sempre branco (foto, cartão, página, carrinho, busca, vitrines) */
.card__img, .pdp__img, .citem__img, .suggest__icon, .mini__img { background: #fff; }
.pdp__img, .citem__img, .suggest__icon { border: 1px solid var(--line); }
.card__img img, .pdp__img img, .citem__img img, .suggest__icon img, .mini__img img { background: #fff; object-fit: contain; }

/* Botão do cartão: menor, com ícone, escrito "Carrinho" */
.card__add { align-self: flex-start; padding: 7px 14px; font-size: 14px; border-radius: 999px; gap: 6px; }
.card__add svg { flex: none; }

/* Balão redondo de colocar no carrinho (miniaturas da página inicial) */
.mini__img, .camp__mini-img { position: relative; }
.add-bubble { position: absolute; right: 4px; bottom: 4px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: 0 3px 10px rgba(0,0,0,.22); cursor: pointer; transition: transform .15s, background .2s; }
.add-bubble:hover { background: var(--red-dark); transform: scale(1.08); }
.add-bubble:active { transform: scale(.94); }
.add-bubble b { position: absolute; top: -3px; right: -3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; color: var(--red); font-size: 13px; line-height: 15px; font-weight: 900; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.add-bubble svg { width: 17px; height: 17px; }

/* Ajustes: "Carrinho" centralizado e balão + ao lado do preço */
.card__add { align-self: center; }
.price-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; margin-top: auto; }
.price-row .add-bubble { position: relative; right: auto; bottom: auto; flex: none; width: 32px; height: 32px; }
.camp__mini-price { display: grid; min-width: 0; }
.camp__mini .price-row .add-bubble { width: 28px; height: 28px; }
.camp__mini .price-row .add-bubble svg { width: 15px; height: 15px; }
.camp__mini .price-row .add-bubble b { width: 14px; height: 14px; font-size: 11px; line-height: 13px; }

/* ===== Tamanhos no mesmo anúncio ===== */
.card__sizes { display: flex; flex-wrap: wrap; gap: 5px; margin: 2px 0; }
.size-chip { min-width: 30px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; font-weight: 700; color: var(--navy); text-align: center; background: #fff; }
.size-chip:hover { border-color: var(--navy); }
.card__from { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
.variants { margin: 6px 0 14px; }
.variants__title { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.variants__title strong { color: var(--text); }
.variants__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.variant { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 8px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); text-align: center; transition: border-color .15s; }
.variant:hover { border-color: var(--navy); }
.variant strong { font-size: 18px; color: var(--navy); line-height: 1.1; }
.variant span { font-size: 12px; color: var(--muted); }
.variant b { font-size: 14px; color: var(--red); margin-top: 2px; }
.variant.active { border-color: var(--red); background: var(--red-soft); }
