:root {
  --bg-main: #050509;
  --bg-card: #101118;
  --bg-card-soft: #181924;
  --accent: #ffb300;
  --accent-strong: #ff7a00;
  --text-main: #ffffff;
  --text-muted: #c3c6d1;
  --border-soft: #242632;
  --whats: #25d366;
  --whats-dark: #128c7e;
  --telegram: #229ed9;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-soft: 0 20px 40px rgba(0,0,0,.55);
  --max-width: 1160px;
}

/* RESET BÁSICO ------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.bb-body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  background: radial-gradient(circle at top, #23253a 0, #050509 40%, #000 100%);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* LAYOUT GERAL ------------------------------------------------- */

.bb-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 16px 60px;
}

/* HEADER -------------------------------------------------- */

.bb-main-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(5,5,9,.96), rgba(5,5,9,.88), transparent);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.bb-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 16px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
}

.bb-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bb-logo-mark img {
  height: 44px;
  width: auto;
  display: block;
}

/* NAV ----------------------------------------------------- */

.bb-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  flex-wrap: nowrap;
  flex: 1;
  justify-content: flex-end;
}

.bb-nav a {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--text-muted);
  border: 1px solid transparent;
  white-space: nowrap;
}

.bb-nav a:hover {
  color: var(--accent);
}

.bb-nav a.active {
  color: #fff;
  border-color: rgba(255,255,255,.16);
  background: rgba(0,0,0,.55);
}

.bb-nav-pill {
  background: linear-gradient(
  135deg,
  #FF9A50,  /* tom mais claro */
  #FF7518   /* tom original mais forte */
);

  color: #050509 !important;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0,0,0,.65);
}

/* BOTÕES -------------------------------------------------- */

.bb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  padding: 10px 16px;
  font-weight: 600;
  transition:
    transform .12s ease,
    box-shadow .12s ease,
    background .12s ease,
    filter .12s ease;
}

.bb-btn-primary {
  background: #FF7518;
  color: #050509;
  box-shadow: 0 10px 24px rgba(0,0,0,.75);
}

.bb-btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.bb-btn-ghost {
  background: background: #FF7518;
  color: var(--text-main);
  border: 1px solid rgba(255,255,255,.08);
}

.bb-btn-ghost:hover {
  border-color: var(--accent);
}

.bb-btn-sm {
  font-size: 14px;
  padding: 7px 12px;
}

.bb-btn-lg {
  font-size: 15px;
  padding: 13px 22px;
}

/* HERO ---------------------------------------------------- */

.bb-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  background: radial-gradient(circle at top left,#1b1d35 0,#050509 55%);
  border-radius: 26px;
  padding: 18px 26px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.bb-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,rgba(0,0,0,.7) 0,transparent 45%,rgba(0,0,0,.4) 100%);
  pointer-events: none;
}

.bb-hero-logo {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
}

.bb-hero-logo img {
  display: block;
  max-width: 460px;
  width: 100%;
  height: auto;
}

.bb-hero-copy {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  color: #fff;
  max-width: 500px;
  margin-left: auto;
  text-align: left;
}

.bb-hero-copy h1 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.3;
}

.bb-hero-copy h1 span {
  color: var(--accent);
}

.bb-hero-copy p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--text-muted);
}

/* HERO – CTA BOTÕES WHATS/TELEGRAM ----------------------- */

.bb-hero-cta {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  margin-top: 10px;
}

.bb-hero-cta .bb-btn {
  flex: 0 0 auto;
}

.bb-hero-cta .bb-hero-whats,
.bb-hero-cta .bb-hero-telegram {
  padding-inline: 18px;
}

/* SEÇÕES GERAIS ------------------------------------------- */

.bb-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 18px 16px 18px;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 16px 30px rgba(0,0,0,.45);
  margin-bottom: 26px;
}

.bb-section-head {
  margin-bottom: 14px;
}

.bb-section-head-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.bb-section-head h2 {
  margin: 0;
  font-size: 18px;
}

.bb-section-head p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* TÍTULO DA SEÇÃO DE OFERTAS ------------------------------ */

.bb-section-head-offers h2 {
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.bb-section-head-offers .bb-section-cat {
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(
  135deg,
  #FF9A50,  /* tom mais claro */
  #FF7518   /* tom original mais forte */
);
  color: #050509;
  font-weight: 700;
  font-size: 16px;
}

.bb-section-head-offers p {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

/* CATEGORIAS – CARROSSEL DE ÍCONES ------------------------ */

.bb-section.bb-section--categories {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 4px 0 10px;
}

.bb-section.bb-section--categories .bb-section-head {
  display: none;
}

.bb-section.bb-section--categories .bb-cat-grid {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding: 6px 0 10px;
  margin: 0;
  scroll-snap-type: none;
  -ms-overflow-style: none;  /* IE/Edge */
  scrollbar-width: none;     /* Firefox */
}

.bb-section.bb-section--categories .bb-cat-grid::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.bb-section.bb-section--categories .bb-cat-card {
  flex: 0 0 auto;
  width: 90px;
  min-width: 90px;
  padding: 6px;
  border-radius: 16px;
  background: var(--bg-card-soft);
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 10px 20px rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bb-section.bb-section--categories .bb-cat-icon {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bb-section.bb-section--categories .bb-cat-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* sem texto, só ícone */
.bb-section.bb-section--categories .bb-cat-text {
  display: none;
}

/* FILTROS: BUSCA + ORDENAR -------------------------------- */

.bb-filters-right {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap;
  margin-top: 10px;
}

/* busca destacada */
.bb-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: radial-gradient(circle at top left, #181924, #050509);
  border: 1px solid var(--accent);
  max-width: 430px;
  width: 100%;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.8),
    0 0 0 2px rgba(255,255,255,.05),
    0 12px 30px rgba(0,0,0,.8);
}

.bb-search-form input[type="text"] {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 14px;
  outline: none;
}

.bb-search-form button {
  border: none;
  background: #FF7518;
  color: #050509;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

/* select de ordenação estilizado */
.bb-sort-form {
  padding: 0;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  position: relative;
}

.bb-sort-form select {
  appearance: none;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: radial-gradient(circle at top, #181924, #050509);
  color: var(--text-main);
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
  outline: none;
  height: 44px;
  display: flex;
  align-items: center;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.8),
    0 8px 20px rgba(0,0,0,.7);
  padding-right: 30px;
}

.bb-sort-form select:hover {
  border-color: var(--accent);
}

/* setinha custom */
.bb-sort-form::after {
  content: "▾";
  position: absolute;
  right: 12px;
  pointer-events: none;
  font-size: 12px;
  color: var(--text-muted);
}

/* opções do select */
.bb-sort-form select option {
  background: #050509;
  color: var(--text-main);
  font-size: 13px;
  padding: 6px 10px;
}

.bb-sort-form select option:checked {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #050509;
  font-weight: 600;
}

/* GRID DE PRODUTOS ----------------------------------------- */

.bb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(230px,1fr));
  gap: 12px;
}

.bb-card {
  background: var(--bg-card-soft);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 15px 30px rgba(0,0,0,.7);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bb-card-image-link {
  position: relative;
  display: block;
  overflow: hidden;
  height: 159px; /* 180px - 21px = 159px */
}

.bb-card-image-link img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: #020617;
  transform: translateY(-21px);
}



.bb-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(34,197,94,0.14);
  color: #bbf7d0;
  border: 1px solid rgba(34,197,94,0.6);
}

.bb-card-body {
  padding: 0px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;              /* faz o body ocupar a altura toda do card */
}

.bb-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Limita a 3 linhas */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3; /* Ajuste opcional para melhor visualização */
  max-height: 3.9em; /* 3 linhas × 1.3 line-height */
  font-size: 15px;
}

.bb-card-title a:hover {
  color: var(--accent);
}

.bb-card-store {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.bb-tag {
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
}

.bb-tag-shipping {
  border: 1px solid rgba(34,197,94,0.5);
  color: #a7f3d0;
  background: rgba(22,163,74,0.18);
}

.bb-card-prices {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-top: 4px;
}

.bb-price-old {
  font-size: 15px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.bb-price-new {
  font-size: 25px;
  color: var(--accent);
  font-weight: 800;
}

.bb-card-top {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bb-card-actions {
  margin-top: auto;     /* EMPURRA os botões para o rodapé do card */
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* PAGINAÇÃO ----------------------------------------------- */

.bb-pagination {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.bb-pagination a,
.bb-pagination span {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
}

.bb-page-current {
  background: linear-gradient(135deg,var(--accent),var(--accent-strong));
  color: #050509;
  border-color: transparent;
}

.bb-page-dots {
  border: none;
}

.bb-page-prev,
.bb-page-next {
  font-weight: 600;
}

/* ESTADO VAZIO -------------------------------------------- */

.bb-empty {
  padding: 18px 14px;
  border-radius: 16px;
  background: rgba(0,0,0,.6);
  border: 1px dashed rgba(255,255,255,.18);
  font-size: 14px;
}

/* PRODUTO - PÁGINA DETALHE -------------------------------- */

.bb-prod-section {
  margin-top: 10px;
}

.bb-prod-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 2fr);
  gap: 22px;
}

.bb-prod-image {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: radial-gradient(circle at top, #282a3d 0, #0b0c12 50%, #020308 100%);
  box-shadow: 0 18px 36px rgba(0,0,0,.7);
}

.bb-prod-image img {
  width: 100%;
  display: block;
  max-height: 380px;
  object-fit: contain;
  background: #000;
}

.bb-prod-original {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.bb-prod-original a {
  color: var(--accent);
}

.bb-prod-breadcrumb {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 6px;
}

.bb-prod-breadcrumb a {
  color: var(--accent);
}

.bb-prod-title {
  font-size: 22px;
  margin: 0 0 10px;
}

.bb-prod-store {
  margin-bottom: 12px;
}

.bb-prod-prices {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 14px;
}

.bb-price-label {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
}

.bb-price-old-wrap .bb-price-old {
  font-size: 15px;
}

.bb-price-new-wrap .bb-price-new {
  font-size: 24px;
}

.bb-prod-cta {
  margin-bottom: 16px;
}

.bb-prod-safe {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

.bb-prod-description h2 {
  font-size: 16px;
  margin: 0 0 6px;
}

.bb-prod-description p {
  font-size: 14px;
  color: var(--text-muted);
}

.bb-prod-meta {
  margin-top: 12px;
  font-size: 11px;
  color: var(--text-muted);
}

/* CUPONS --------------------------------------------------- */

.bb-coupon-list {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 10px;
}

.bb-coupon-card {
  background: var(--bg-card-soft);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.07);
  padding: 10px 12px 12px;
  box-shadow: 0 15px 30px rgba(0,0,0,.7);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bb-coupon-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.bb-coupon-store {
  font-size: 12px;
  color: var(--text-muted);
}

.bb-coupon-code {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .12em;
}

.bb-coupon-desc {
  font-size: 13px;
}

.bb-coupon-cond {
  font-size: 12px;
  color: var(--text-muted);
}

.bb-coupon-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

/* FOOTER --------------------------------------------------- */

.bb-footer {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 16px 20px;
  background: radial-gradient(circle at top, #1f2937 0, #020617 55%);
}

.bb-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto 10px;
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.6fr);
  gap: 20px;
}

.bb-footer-left h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.bb-footer-left p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.bb-footer-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bb-btn-whats {
  background: linear-gradient(135deg,var(--whats),var(--whats-dark));
  color: #fff;
}

.bb-btn-telegram {
  background: linear-gradient(135deg,var(--telegram),#1479b8);
  color: #fff;
}

.bb-footer-right p {
  font-size: 12px;
  color: var(--text-muted);
}

.bb-footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: var(--text-muted);
}

/* RESPONSIVO 880px ---------------------------------------- */

@media (max-width: 950px) {
  .bb-main {
    padding: 16px 12px 40px;
    width: 100%; /* Adicionei */
    box-sizing: border-box; /* Adicionei */
  }

  .bb-header-inner {
    padding: 10px 12px 8px;
    gap: 10px;
    width: 100%; /* Adicionei */
    box-sizing: border-box; /* Adicionei */
  }

  .bb-nav {
    overflow-x: auto;
    width: 100%; /* Adicionei */
  }

  .bb-nav::-webkit-scrollbar {
    height: 0;
  }

  .bb-hero {
    flex-direction: column;
    align-items: center;
    padding: 18px 16px;
    text-align: center;
    width: 100%; /* Adicionei */
    box-sizing: border-box; /* Adicionei */
  }

  .bb-hero-logo img {
    max-width: 260px;
    width: 100%; /* Adicionei */
  }

  .bb-hero-copy {
    margin-left: 0;
    max-width: 100%;
    text-align: center;
    width: 100%; /* Adicionei */
  }

  .bb-hero-copy h1 {
    font-size: 22px;
    width: 100%; /* Adicionei */
  }

  .bb-hero-copy p {
    font-size: 13px;
    width: 100%; /* Adicionei */
  }

  .bb-prod-layout {
    grid-template-columns: 1fr;
    width: 100%; /* Adicionei */
  }

  .bb-section {
    padding: 16px 14px;
    border-radius: 18px;
    width: 100%; /* Adicionei */
    box-sizing: border-box; /* Adicionei */
  }

  .bb-card-image-link img {
    height: 210px;
    width: 100%; /* Adicionei */
  }

  .bb-coupon-list {
    grid-template-columns: 1fr;
    width: 100%; /* Adicionei */
  }

  /* ADICIONEI ESTE BLOCO PARA OS FILTROS TAMBÉM */
  .bb-filters-right {
    width: 100%;
  }

  .bb-search-form {
    width: 100%;
    max-width: 100%;
  }

  .bb-sort-form {
    width: 100%;
  }

  .bb-sort-form select {
    width: 100%;
  }
}

/* RESPONSIVO 720px ---------------------------------------- */

@media (max-width: 720px) {
  .bb-header-inner {
    align-items: center;
  }

  .bb-nav {
    justify-content: flex-end;
    gap: 8px;
  }

  /* esconde Início e Categorias no mobile */
  .bb-nav a:nth-child(1),
  .bb-nav a:nth-child(2) {
    display: none;
  }

  .bb-section-head-row {
    flex-direction: column;
    align-items: stretch; /* Mudei de flex-start para stretch */
    width: 100%;
  }

  .bb-grid {
    grid-template-columns: 1fr;
  }

  .bb-card-body {
    padding: 0px 10px 12px;
  }

  .bb-footer-inner {
    grid-template-columns: 1fr;
  }

  .bb-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  /* esconder linha de loja/frete para ficar mais compacto */
  .bb-card-store,
  .bb-tag-shipping {
    display: none;
  }

  /* HERO – esconder botões no mobile */
  .bb-hero-cta,
  .bb-hero-whats,
  .bb-hero-telegram {
    display: none !important;
  }

  /* filtros empilhados - AGORA COM LARGURA TOTAL */
  .bb-filters-right {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }

  .bb-search-form {
    width: 100%;
    max-width: 100%;
  }
  
  .bb-sort-form {
    width: 100%;
  }
  
  .bb-sort-form select {
    width: 100%;
    text-align: center;
  }

  /* GARANTIR que a seção principal também use largura total */
  .bb-main {
    padding: 16px 12px 40px;
    width: 100%;
    box-sizing: border-box;
  }

  /* GARANTIR que as seções usem largura total */
  .bb-section {
    width: 100%;
    box-sizing: border-box;
  }
}

/* RESPONSIVO 520px ---------------------------------------- */

@media (max-width: 520px) {
  .bb-main {
    padding: 14px 10px 32px;
  }

  .bb-hero-copy h1 {
    font-size: 20px;
  }

  .bb-card-image-link img {
    height: 210px;
  }

  .bb-prod-title {
    font-size: 19px;
  }
}


.bb-card-storeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.bb-card-store-name {
  font-weight: 500;
}

/* reaproveitando o estilo do tag de frete, mas menor */
.bb-tag.bb-tag-mini {
  font-size: 10px;
  padding: 2px 6px;
  white-space: nowrap;
}

/* preços */
.bb-card-prices {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}





/* desconto ao lado do preço final */
.bb-price-discount {
   display: inline-flex;  
   align-items: center;  
   text-align: center;     
  font-size: 12px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(34,197,94,0.16);
  color: #bbf7d0;
  border: 1px solid rgba(34,197,94,0.6);
}
.bb-btn-buy {
  flex: 1;
  justify-content: center;
}

.bb-btn-details {
  padding-inline: 12px;
}
  /* esconder linha de loja/frete para ficar mais compacto */
  .bb-card-storeline {
    display: none;
  }







