/* Camada local: carrinho, busca e avisos */
.sb-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: #263238;
  border-left: 4px solid #ff4dab;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  border-radius: 8px;
  padding: 14px 20px;
  font-family: 'Montserrat', Roboto, Arial, sans-serif;
  max-width: 380px;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: 0.25s ease;
}
.sb-toast.is-on {
  opacity: 1;
  transform: translateY(0);
}
.sb-toast__icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #28c8d6;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex: 0 0 26px;
}
.sb-toast strong {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.sb-toast span {
  display: block;
  font-size: 12px;
  color: #607d8b;
  margin-top: 2px;
}

/* modal checkout */
.sb-modal {
  position: fixed;
  inset: 0;
  background: rgba(13, 43, 49, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99998;
  padding: 20px;
}
.sb-modal.is-on {
  display: flex;
}
.sb-modal__box {
  background: #fff;
  border-radius: 10px;
  max-width: 520px;
  width: 100%;
  padding: 32px;
  font-family: 'Montserrat', Roboto, Arial, sans-serif;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}
.sb-modal__box h2 {
  margin: 0 0 10px;
  font-size: 22px;
  color: #0d2b31;
}
.sb-modal__box p {
  font-size: 14px;
  line-height: 1.6;
  color: #4a5b60;
  margin: 0 0 22px;
}
.sb-modal__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.sb-btn {
  display: inline-block;
  background: #ff4dab;
  color: #fff !important;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: 30px;
  border: 0;
  cursor: pointer;
  transition: 0.2s;
}
.sb-btn:hover {
  filter: brightness(0.95);
}
.sb-btn--ghost {
  background: #fff;
  color: #0d2b31 !important;
  border: 1px solid #cbdcdf;
}

/* carrinho */
#sb-cart {
  font-family: 'Montserrat', Roboto, Arial, sans-serif;
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 16px 50px;
}
.sb-cart__head {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0d2b31;
  margin: 10px 0 34px;
}
.sb-cart__head svg {
  width: 26px;
  height: 26px;
}
.sb-cart__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.sb-cart__table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8aa0a5;
  padding: 0 10px 12px;
  border-bottom: 1px solid #e6eef0;
  font-weight: 600;
}
.sb-cart__table td {
  padding: 18px 10px;
  border-bottom: 1px solid #eef4f5;
  vertical-align: middle;
}
.sb-cart__prod {
  display: flex;
  gap: 16px;
  align-items: center;
  max-width: 520px;
}
.sb-cart__prod img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  background: #f7fbfc;
  border-radius: 6px;
  flex: 0 0 84px;
}
.sb-cart__prod a {
  color: #0d2b31;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.4;
}
.sb-cart__prod small {
  display: block;
  color: #8aa0a5;
  margin-top: 4px;
  font-size: 12px;
}
.sb-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dbe7e9;
  border-radius: 24px;
  overflow: hidden;
}
.sb-qty button {
  width: 32px;
  height: 34px;
  border: 0;
  background: #fff;
  color: #0d2b31;
  font-size: 16px;
  cursor: pointer;
}
.sb-qty span {
  min-width: 30px;
  text-align: center;
  font-weight: 700;
}
.sb-rm {
  background: none;
  border: 0;
  color: #9bb1b5;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}
.sb-cart__sub {
  font-weight: 700;
}
.sb-cart__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 28px;
}
.sb-cart__total {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4a5b60;
}
.sb-cart__total strong {
  font-size: 24px;
  color: #0d2b31;
  margin-left: 10px;
}
.sb-cart__actions {
  display: flex;
  gap: 12px;
}

/* grid de busca local */
.wd-browsing-grid-list.sb-search-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}
@media (max-width: 1220px) {
  .wd-browsing-grid-list.sb-search-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .wd-browsing-grid-list.sb-search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .wd-browsing-grid-list.sb-search-grid {
    grid-template-columns: 1fr;
  }
  .sb-cart__table thead {
    display: none;
  }
  .sb-cart__table tr {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* cards da busca local: botao igual ao da vitrine */
.sb-search-grid .new-buy-button-container { display: block !important; }
.sb-search-grid .new-buy-button-container a.btn-buy {
  display: block;
  height: 35px;
  line-height: 35px;
  background: #ff4dab;
  color: #fff !important;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 3px;
  padding: 0;
}
.sb-search-grid .new-buy-button-container a.btn-buy:hover { filter: brightness(0.94); }
.sb-search-grid .wd-product-line-wishlist { display: none; }
/* botão indo para o checkout */
.btn-buy.is-going,
.new-buy-button-container a.btn-buy.is-going { opacity: .7; cursor: progress; }

.sb-qty-fixed { font-size: 12.5px; color: #7d9297; font-weight: 600; }
.ck-pixlogo svg { color: var(--teal); }

/* barra de promocao do topo (texto quebrado "PRIMEIRACOMPRASB") */
body #header .headerPromoBar,
body .headerPromoBar,
.headerDesktopp .headerPromoBar,
.headerPromoBar,
.headerPromoBar__icon,
.headerPromoBar strong { display: none !important; height: 0 !important; }

/* modal de troca (1 produto por compra) */
.sb-swap { position: fixed; inset: 0; z-index: 99999; background: rgba(10,30,35,.45); display: grid; place-items: center; padding: 20px; backdrop-filter: blur(2px); }
.sb-swap__box { background: #fff; border-radius: 16px; max-width: 420px; width: 100%; padding: 26px; box-shadow: 0 24px 60px rgba(10,30,35,.25); font-family: Montserrat, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
.sb-swap__box h3 { margin: 0 0 8px; font-size: 17px; color: #0e2b31; }
.sb-swap__box p { margin: 0 0 20px; font-size: 13.5px; line-height: 1.5; color: #5b7378; }
.sb-swap__box strong { color: #0e2b31; }
.sb-swap__actions { display: flex; gap: 10px; }
.sb-swap__btn { flex: 1; border: 0; border-radius: 40px; padding: 13px 16px; font-size: 13.5px; font-weight: 700; cursor: pointer; background: #ff4dab; color: #fff; }
.sb-swap__btn--ghost { background: #fff; color: #0e2b31; border: 1.5px solid #dfe9eb; }
.sb-swap__btn:hover { filter: brightness(.96); }
