/* Bichos & Cia 8.40.0 · Pet Shop e Farmácia veterinária
   - celular: vitrine em 2 colunas, cartão compacto (antes 1 coluna de ~490px)
   - faixa compacta do cupom antes do catálogo
   - atalhos, selos, perguntas frequentes e ajuda pelo WhatsApp por categoria
   Carregado depois de todos os outros estilos do site. */

:root {
  --store-ink: #0b2a42;
  --store-teal: #078f91;
  --store-teal-dark: #056b72;
  --store-mint: #e7f6f3;
  --store-line: #dde8e4;
  --store-muted: #5d7180;
  --store-gold: #e8b552;
  --store-pharmacy: #0a7f6f;
  --store-pharmacy-soft: #e3f5ef;
}

/* ---------- Hero das vitrines ---------- */
.bc-site .shop-hero-v840 h1 { text-wrap: balance; }
.bc-site .shop-hero-v840 p { max-width: 62ch; }
.bc-site .shop-badges-v840 {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.bc-site .shop-badges-v840 li {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  color: #eaf6f4; font-size: .74rem; font-weight: 700; line-height: 1.2;
}
.bc-site .shop-badges-v840 li::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5fe0c9; flex: 0 0 auto;
}
.bc-site .shop-hero-v840.is-pharmacy-v840 { position: relative; overflow: hidden; }
.bc-site .shop-hero-v840.is-pharmacy-v840::after {
  /* cruz de farmácia discreta no canto */
  content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; opacity: .1; pointer-events: none;
  background:
    linear-gradient(#fff, #fff) center / 34% 100% no-repeat,
    linear-gradient(#fff, #fff) center / 100% 34% no-repeat;
  border-radius: 28px; transform: rotate(12deg);
}

/* ---------- Atalhos da categoria ---------- */
.bc-site .shop-shortcuts-v840 {
  max-width: 1450px; margin: 22px auto 0; padding: 0 max(3vw, 18px);
  display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: thin;
}
.bc-site .shop-shortcuts-v840 > span {
  flex: 0 0 auto; color: var(--store-muted); font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em; margin-right: 4px;
}
.bc-site .shop-shortcuts-v840 a {
  flex: 0 0 auto; padding: 10px 15px; border-radius: 999px;
  border: 1px solid var(--store-line); background: #fff; color: var(--store-ink);
  font-size: .8rem; font-weight: 750; white-space: nowrap;
  transition: border-color .2s, background .2s, color .2s;
}
.bc-site .shop-shortcuts-v840 a:hover,
.bc-site .shop-shortcuts-v840 a:focus-visible { border-color: var(--store-teal); background: var(--store-mint); color: var(--store-teal-dark); }

/* ---------- Faixa do cupom (antes do catálogo) ---------- */
.bc-site .coupon-strip-v840 {
  max-width: 1450px; margin: 22px auto 0; padding: 12px 16px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  border-radius: 18px; border: 1px dashed #f0b44c;
  background: linear-gradient(90deg, #fff7e6, #fff1f6);
  color: #4b3410; font-size: .9rem;
  width: calc(100% - 2 * max(3vw, 18px));
}
.bc-site .coupon-strip-v840 p { margin: 0; flex: 1 1 220px; }
.bc-site .coupon-strip-icon-v840 { font-size: 1.4rem; line-height: 1; }
.bc-site .coupon-code-v840 {
  border: 0; border-radius: 12px; padding: 9px 14px; cursor: pointer;
  background: #1d1408; color: #ffd27a; font: 800 .95rem/1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: .08em;
}
.bc-site .coupon-code-v840 small { font: 700 .62rem/1 system-ui, sans-serif; letter-spacing: .04em; color: #f7e6c4; margin-left: 6px; text-transform: uppercase; }
.bc-site .coupon-code-v840[data-copied] { background: #0a7f6f; color: #fff; }
.bc-site .coupon-strip-v840 > a { color: #8a4a00; font-weight: 800; font-size: .8rem; text-decoration: underline; }

/* ---------- Estoque baixo ---------- */
.bc-site .product-meta .stock-low-v840 { background: #fff1e2; color: #a14b00; font-weight: 800; }

/* ---------- Perguntas frequentes e ajuda ---------- */
.bc-site .shop-knowledge-v840 { max-width: 1450px; margin: 70px auto 0; padding: 0 max(3vw, 18px); }
.bc-site .shop-knowledge-head-v840 h2 {
  font-family: 'Playfair Display', Georgia, serif; font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 8px 0 22px; color: var(--store-ink); line-height: 1.1;
}
.bc-site .shop-knowledge-grid-v840 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.bc-site .shop-faq-v840 { display: grid; gap: 10px; }
.bc-site .shop-faq-v840 details {
  border: 1px solid var(--store-line); border-radius: 18px; background: #fff; padding: 0 20px;
  box-shadow: 0 8px 26px rgba(7, 29, 53, .05);
}
.bc-site .shop-faq-v840 summary {
  cursor: pointer; list-style: none; padding: 18px 28px 18px 0; position: relative;
  font-weight: 800; color: var(--store-ink); font-size: .98rem;
}
.bc-site .shop-faq-v840 summary::-webkit-details-marker { display: none; }
.bc-site .shop-faq-v840 summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--store-mint); color: var(--store-teal-dark); font-weight: 900;
}
.bc-site .shop-faq-v840 details[open] summary::after { content: "–"; }
.bc-site .shop-faq-v840 details p { margin: 0 0 18px; color: var(--store-muted); line-height: 1.65; font-size: .92rem; }
.bc-site .shop-help-v840 {
  position: sticky; top: 110px; padding: 26px; border-radius: 24px;
  background: linear-gradient(160deg, #0b2a42, #0d3c55); color: #fff;
  box-shadow: 0 20px 50px rgba(7, 29, 53, .18);
}
.bc-site .shop-help-v840 h3 { margin: 0 0 8px; font-size: 1.3rem; line-height: 1.2; }
.bc-site .shop-help-v840 p { color: #d3e3ea; line-height: 1.6; font-size: .9rem; }
.bc-site .shop-help-v840 .button { width: 100%; justify-content: center; margin: 8px 0 4px; }
.bc-site .shop-help-v840 h4 { margin: 20px 0 8px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #9fd9d1; }
.bc-site .shop-help-v840 ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.bc-site .shop-help-v840 li a { color: #fff; font-weight: 700; font-size: .86rem; }

/* ---------- Celular ---------- */
@media (max-width: 640px) {
  /* Vitrine em duas colunas, como nas grandes lojas. */
  .bc-site .product-grid-v591,
  .bc-site .catalog-grid-v629,
  .bc-site .promo-grid-v817,
  .bc-site .marketing-product-grid-v825 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  .bc-site .product-card-v591 { border-radius: 16px; box-shadow: 0 6px 18px rgba(7, 29, 53, .06); }
  .bc-site .product-card-v591:hover { transform: none; }
  .bc-v610 .product-image-v591,
  .bc-site .product-image-v591 { height: 140px !important; min-height: 140px !important; padding: 10px !important; }
  .bc-site .product-image-v591 > span { left: 8px; top: 8px; padding: 5px 8px; font-size: .58rem; }
  .bc-site .product-info-v591 { padding: 10px 11px 12px !important; display: flex; flex-direction: column; flex: 1 1 auto; }
  .bc-site .product-info-v591 > small { font-size: .55rem; letter-spacing: .08em; }
  .bc-site .product-info-v591 h3 {
    font-size: .84rem !important; line-height: 1.25; margin: 4px 0 6px !important; min-height: 2.5em !important;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .bc-site .product-info-v591 > p,
  .bc-site .product-meta .product-weight-v840,
  .bc-site .product-meta .promo-stock-v817 { display: none !important; }
  .bc-site .product-meta { margin: 0 0 8px !important; gap: 5px; }
  .bc-site .product-meta span { font-size: .58rem; padding: 4px 7px; }
  .bc-site .product-info-v591 footer { margin-top: auto; flex-direction: column; align-items: stretch !important; gap: 8px; padding-top: 10px !important; }
  .bc-site .product-info-v591 footer strong { font-size: 1.02rem; }
  .bc-site .product-info-v591 footer a { display: none; }
  .bc-site .product-old-price-v817 { font-size: .66rem; }
  .bc-site .product-info-v591 footer button { width: 100%; padding: 10px 8px !important; font-size: .78rem; }

  /* Hero das vitrines mais curto: o produto aparece antes. */
  .bc-site .shop-hero-v840 { padding-bottom: 28px !important; }
  .bc-site .shop-hero-v840 h1 { font-size: 2.05rem !important; line-height: 1.08 !important; }
  .bc-site .shop-hero-v840 p { font-size: .9rem; }
  .bc-site .shop-hero-v840 aside { display: none !important; }
  .bc-site .shop-badges-v840 li { font-size: .68rem; padding: 6px 10px; }
  .bc-site .shop-category-advice { margin-top: 14px !important; }

  .bc-site .coupon-strip-v840 { font-size: .82rem; gap: 8px; }
  .bc-site .shop-knowledge-grid-v840 { grid-template-columns: 1fr; }
  .bc-site .shop-help-v840 { position: static; }
  .bc-site .shop-faq-v840 details { padding: 0 16px; }
}

@media (min-width: 641px) and (max-width: 900px) {
  .bc-site .product-grid-v591 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

@media (prefers-reduced-motion: reduce) {
  .bc-site .shop-shortcuts-v840 a { transition: none; }
}
