/* ============================================================
   COMPONENTS — Botões, cards, badges
   ============================================================ */

/* ── Botões ─────────────────────────────────────────────── */

.bt-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--text-navy);
  background: transparent;
  color: var(--text-navy);
  padding: 14px 36px;
  cursor: pointer;
  border-radius: 999px;          /* pill — pontas totalmente arredondadas */
  line-height: 1;
  overflow: hidden;
  z-index: 0;
  transition: color 0.5s ease, border-color 0.5s ease;
}

/* Background fill navy deslizando da esquerda */
.bt-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--text-navy);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: -1;
}

.bt-btn:hover,
.bt-btn:focus-visible {
  color: var(--bg-cream);
  background: transparent;
  border-color: var(--text-navy);
}
.bt-btn:hover::before,
.bt-btn:focus-visible::before {
  transform: scaleX(1);
}

.bt-btn--gold {
  color: var(--gold-dark);
  border-color: var(--gold);
}
.bt-btn--gold::before { background: var(--gold); }
.bt-btn--gold:hover { color: var(--bg-cream); border-color: var(--gold); }

.bt-btn--filled {
  background: var(--text-navy);
  color: var(--bg-cream);
  border-color: var(--text-navy);
}
.bt-btn--filled::before {
  background: var(--bg-cream);
}
.bt-btn--filled:hover {
  color: var(--text-navy);
}

.bt-btn--small {
  padding: 10px 22px;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
}

/* ── Link de texto com underline elegante ──────────────── */

.bt-text-link {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-navy);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  transition: all var(--duration-fast) var(--ease-soft);
}
.bt-text-link:hover {
  color: var(--gold-dark);
  text-underline-offset: 4px;
}

/* ── Card de produto ───────────────────────────────────── */

.bt-product-card {
  display: block;
  position: relative;
  background: var(--bg-white);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform var(--duration-mid) var(--ease-soft),
              box-shadow var(--duration-mid) var(--ease-soft);
}
.bt-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.bt-product-card__image-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-linen);
}
.bt-product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-soft);
}
.bt-product-card:hover .bt-product-card__image {
  transform: scale(1.03);
}

/* ── Selo "Esgotado" (estoque zerado) ──────────────────────────────────
   Faixa navy translúcida centralizada sobre a imagem (card + galeria do
   single). A imagem fica levemente esmaecida pra reforçar o estado. */
.bt-sold-out-badge {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 3;
  text-align: center;
  background: rgba(26, 39, 68, 0.82);          /* navy translúcido */
  color: var(--bg-cream);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  padding: 0.6rem 0;
  pointer-events: none;                        /* não bloqueia o clique no card */
}
.bt-sold-out-badge--lg {
  font-size: 0.95rem;
  padding: 0.9rem 0;
  letter-spacing: 0.4em;
}
.bt-is-esgotado .bt-product-card__image,
.bt-gallery__main.bt-is-esgotado img {
  filter: grayscale(0.35) brightness(0.92);
}
/* Botão desativado quando a peça está esgotada */
.bt-btn--esgotado {
  background: var(--bg-linen);
  color: var(--text-warm-light);
  border-color: transparent;
  cursor: not-allowed;
  pointer-events: none;
}
.bt-product-card__body {
  padding: 1.6rem 1rem 0.8rem;
  text-align: center;
}
.bt-product-card__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-navy);
  margin: 0 0 0.4rem;
}
.bt-product-card__excerpt {
  font-size: 0.85rem;
  color: var(--text-warm);
  line-height: 1.6;
  margin: 0 0 1rem;
  max-width: none;
}
.bt-product-card__price {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--gold-dark);
  letter-spacing: 0.05em;
}

/* ── Badge ─────────────────────────────────────────────── */

.bt-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: var(--gold-glow);
  padding: 0.3em 0.9em;
  border: 1px solid var(--border-soft);
}

/* ── Card de categoria (home grid) ─────────────────────── */

.bt-category-card {
  display: flex;
  flex-direction: column;
  text-align: center;
  background: transparent;
}
.bt-category-card__image-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-linen);
  margin-bottom: 1.4rem;
}
.bt-category-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;                   /* todas preenchem o container 4:5 idênticas */
  object-position: 50% 50%;            /* centro absoluto — qualquer crop é equilibrado */
  transition: transform 0.9s var(--ease-soft);
}
.bt-category-card:hover .bt-category-card__image {
  transform: scale(1.04);
}
.bt-category-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-navy);
  margin: 0 0 0.6rem;
}
.bt-category-card__excerpt {
  font-size: 0.85rem;
  color: var(--text-warm);
  line-height: 1.6;
  margin: 0 0 1.2rem;
  min-height: 3em;
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
}
.bt-category-card .bt-btn {
  align-self: center;
}

/* ── Quote bloco grande ────────────────────────────────── */

.bt-quote {
  text-align: center;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  line-height: 1.4;
  color: var(--text-navy);
  letter-spacing: 0.02em;
  margin: 0 auto 2rem;
  max-width: 40ch;
}
.bt-quote::before,
.bt-quote::after {
  content: '"';
  color: var(--gold);
  font-size: 1.2em;
  opacity: 0.5;
}

/* ── Divider com cruz dourada centralizada ─────────────── */

.bt-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
  color: var(--gold);
  opacity: 0.6;
}
.bt-divider::before,
.bt-divider::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: var(--gold);
}
.bt-divider span {
  padding: 0 1rem;
  font-size: 0.8rem;
}
