/**
 * ============================================================
 * Tema do Catálogo — Big Móveis (Lavras-MG)
 * Carregado SOMENTE pelo index.html (depois de main.css).
 * O admin.html não referencia este arquivo — nada aqui muda o painel.
 *
 * Direção: loja de móveis calorosa, madeira mel + estofados crus,
 * com a identidade tri-color da marca (vermelho / azul / amarelo)
 * usada como um selo, não como papel de parede.
 * Assinatura: "etiqueta de preço" nos cards + friso tricolor
 * recorrente (navbar, hero, títulos de seção, rodapé).
 * ============================================================
 */

@import url('https://fonts.googleapis.com/css2?family=Bitter:wght@600;700;800&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Paleta refeita a partir do material de marca real (banners da loja) */
  --color-primary: #E4293B;
  --color-primary-hover: #C81F30;
  --color-primary-light: rgba(228, 41, 59, 0.12);
  --color-secondary: #ffffff;
  --color-secondary-hover: #fff8f0;
  --color-accent-blue: #12345C;
  --color-accent-yellow: #EEB424;

  --color-bg: #F3ECDC;
  --color-bg-alt: #EAE1CB;
  --color-bg-card: #ffffff;
  --color-text: #22293A;
  --color-text-muted: #7A7161;
  --color-border: #E1D6B8;

  /* Tokens novos usados só neste arquivo */
  --navy: #12345C;
  --navy-ink: #0E2740;
  --gold: #EEB424;
  --wood: #A9713C;
  --wood-light: #C9955F;
  --promo-new: #3F7D46;
  --cream: #FBF7EC;

  --stripe: linear-gradient(90deg, var(--color-primary) 0 33.33%, var(--navy) 33.33% 66.66%, var(--gold) 66.66% 100%);
  --stripe-on-navy: linear-gradient(90deg, var(--color-primary) 0 33.33%, #ffffff 33.33% 66.66%, var(--gold) 66.66% 100%);

  --font-display: 'Bitter', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, sans-serif;
}

/* ---------------------------------------------------------
   Base
--------------------------------------------------------- */
body {
  letter-spacing: 0.01em;
}

/* ---------------------------------------------------------
   Assinatura visual: friso tricolor sob todo section-title
--------------------------------------------------------- */
.section-title {
  position: relative;
  padding-bottom: 20px;
  letter-spacing: 0.01em;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 68px;
  height: 5px;
  border-radius: 3px;
  background: var(--stripe);
}

.casel-highlight {
  color: var(--color-primary);
}

/* ---------------------------------------------------------
   Navbar — friso vermelho fino como âncora de marca
--------------------------------------------------------- */
.navbar {
  border-bottom: 3px solid var(--color-primary);
}

.navbar__links a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------------------------------------------------------
   Hero — moldura com sombra azulada + friso tricolor na base
--------------------------------------------------------- */
.hero {
  border-radius: 0 0 28px 28px;
  box-shadow: 0 16px 34px -16px rgba(18, 52, 92, 0.45);
}

.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: var(--stripe);
  z-index: 3;
}

/* ---------------------------------------------------------
   Ritmo de seções: linho aquecido alternando com azul-marinho
--------------------------------------------------------- */
main > .section:nth-child(odd) {
  background: var(--color-bg);
}

#sobre,
#faq {
  background: var(--navy);
}

#sobre .section-title,
#faq .section-title {
  color: #fff;
}

#sobre .section-title::after,
#faq .section-title::after {
  background: var(--stripe-on-navy);
}

/* ---------------------------------------------------------
   Sobre Nós — texto + selo de destaques (sem depender de foto)
--------------------------------------------------------- */
.about {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
}

.about__lead {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
  font-size: 1.05rem;
  margin: 0 0 var(--space-8);
}

.about__lead strong {
  color: #fff;
  font-family: var(--font-display);
}

.about__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
  text-align: left;
}

.about__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.about__feature-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__feature-icon svg {
  width: 19px;
  height: 19px;
}

.about__feature-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
  line-height: 1.35;
  margin: 5px 0 0;
}

/* ---------------------------------------------------------
   Depoimentos — texto de apoio legível sobre o azul-marinho
--------------------------------------------------------- */
#depoimentos > .container > p {
  color: rgba(34, 41, 58, 0.7);
}

#depoimentos .grid > div {
  border: 1px solid var(--color-border);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  position: relative;
  overflow: hidden;
}

#depoimentos .grid > div::before {
  content: '\201C';
  position: absolute;
  top: -6px;
  right: 14px;
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--color-border);
  line-height: 1;
  z-index: 0;
}

#depoimentos .grid > div:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

#depoimentos .grid > div p,
#depoimentos .grid > div span {
  position: relative;
  z-index: 1;
}

/* ---------------------------------------------------------
   FAQ — cards sobre o azul-marinho, seta própria
--------------------------------------------------------- */
#faq details {
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: box-shadow var(--transition-base);
}

#faq summary {
  font-family: var(--font-display);
  list-style: none;
  position: relative;
  padding-right: 2.25rem !important;
}

#faq summary::-webkit-details-marker {
  display: none;
}

#faq summary::after {
  content: '+';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--color-primary);
  font-weight: 700;
  transition: transform var(--transition-fast);
}

#faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

#faq details:hover {
  box-shadow: var(--shadow-lg);
}

/* ---------------------------------------------------------
   Sidebar — cabeçalho em azul-marinho + categorias como selos
--------------------------------------------------------- */
.sidebar__header {
  background: var(--navy);
}

.catalog-sidebar {
  border-color: var(--color-border);
}

.sidebar__brands {
  flex-direction: row;
  flex-wrap: wrap;
  max-height: none;
  gap: 6px;
}

.sidebar__brand-item {
  flex: 0 0 auto;
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  padding: 5px 10px 5px 6px;
  background: var(--color-bg);
}

.sidebar__brand-item:hover {
  border-color: var(--wood-light);
  background: var(--color-bg-alt);
}

.sidebar__brand-item:has(.sidebar__brand-checkbox:checked) {
  background: var(--navy);
  border-color: var(--navy);
}

.sidebar__brand-item:has(.sidebar__brand-checkbox:checked) .sidebar__brand-name {
  color: #fff;
}

.sidebar__brand-checkbox {
  accent-color: var(--color-primary);
}

.sidebar__brand-name {
  font-weight: 500;
}

.sidebar__brand-star {
  color: var(--gold);
}

.sidebar__price-btn {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
}

/* ---------------------------------------------------------
   Cards de produto — etiqueta de preço "pendurada"
--------------------------------------------------------- */
.product-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

.product-card__name {
  font-weight: 700;
  font-size: 0.98rem;
}

.product-card__body p.text-sm.text-gray-500 {
  font-family: var(--font-body) !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.68rem !important;
  color: var(--wood) !important;
  font-weight: 600;
}

.product-card__body p.text-sm.text-gray-700,
.product-card__promo-line--new {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px !important;
  padding: 4px 10px 4px 7px;
  background: var(--color-bg);
  border: 1.5px dashed var(--wood-light);
  border-radius: 4px 12px 12px 4px;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  color: var(--color-text) !important;
}

.product-card__body p.text-sm.text-gray-700::before,
.product-card__promo-line--new::before {
  content: '';
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-bg-card);
  border: 1.5px solid var(--wood-light);
}

.product-card__promo-line--new {
  color: var(--promo-new) !important;
  border-color: var(--promo-new);
}

.product-card__promo-line--new::before {
  border-color: var(--promo-new);
}

.product-card__promo-line--old {
  display: block;
  font-size: 0.76rem;
  opacity: 0.75;
}

.product-card__promo-badge {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
}

/* ---------------------------------------------------------
   Botões — rótulo com pegada de etiqueta de loja
--------------------------------------------------------- */
.btn {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
}

/* ---------------------------------------------------------
   Modal do produto
--------------------------------------------------------- */
.modal__title {
  font-weight: 800;
}

.modal__price {
  font-weight: 800;
}

.modal__price .modal-price-new {
  color: var(--promo-new);
}

#modal-close:focus,
#modal-close:focus-visible {
  box-shadow: 0 0 0 3px var(--color-primary-light) !important;
  outline: none;
}

/* ---------------------------------------------------------
   Rodapé — friso tricolor no topo, ligando com o resto da página
--------------------------------------------------------- */
.footer {
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--stripe-on-navy);
}

.footer__title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------------------------------------------------------
   Responsivo: destaques da seção Sobre em coluna única
--------------------------------------------------------- */
@media (max-width: 640px) {
  .about__features {
    grid-template-columns: 1fr;
  }
}

/* Respeita preferência de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  #depoimentos .grid > div,
  #faq details {
    transition: none;
  }
}
