/* Malune Ateliê — identidade visual v3
   Direção: tons terrosos suaves (tendência 2026 do ramo) + sensação acolhedora.
   Carmim vira assinatura pontual, não cor dominante. Paleta extraída das fotos
   reais das canecas (terracota, argila, oliva, bege quente). Header/footer do
   tema ocultados (seletores confirmados no HTML: *.wp-block-template-part). */

:root {
  /* neutros terrosos — base do site */
  --m-creme: #FAF6F0;        /* fundo principal, quente */
  --m-areia: #F0E7DA;        /* seções alternadas */
  --m-argila: #C8B49A;       /* bordas, detalhes suaves */
  --m-terracota: #A97B54;    /* acentos quentes */
  --m-cafe: #4A3B2E;         /* texto principal (marrom profundo, não preto) */
  --m-cafe-suave: #7A6A5A;   /* texto secundário */
  /* carmim — só assinatura */
  --m-carmim: #C61F3B;
  --m-carmim-escuro: #A01730;
  --m-branco: #FFFFFF;
  --m-raio: 14px;
  --m-raio-sm: 10px;
  --m-sombra: 0 4px 24px rgba(74,59,46,0.08);
  --m-sombra-forte: 0 12px 40px rgba(74,59,46,0.14);
}

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600&display=swap');

/* Fraunces: serifada quente e sofisticada, combina com o afetivo/artesanal.
   Inter: sans limpa pro corpo. */

header.wp-block-template-part,
footer.wp-block-template-part {
  display: none !important;
}

body {
  background: var(--m-creme) !important;
  color: var(--m-cafe);
  font-family: 'Inter', -apple-system, sans-serif;
  line-height: 1.6;
}

h1, h2, h3, h4,
.wp-block-post-title,
.woocommerce-loop-product__title,
.product_title,
.entry-title {
  font-family: 'Fraunces', Georgia, serif !important;
  font-weight: 600 !important;
  color: var(--m-cafe) !important;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

a { color: var(--m-terracota); transition: color 0.15s ease; }
a:hover { color: var(--m-carmim); }

/* ============ HEADER — creme, discreto, logo carmim ============ */
.malune-header {
  background: rgba(250,246,240,0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid var(--m-argila);
}
.malune-header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.malune-header-logo img { height: 42px; width: auto; display: block; }
.malune-header-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  align-items: center;
}
.malune-header-nav a {
  color: var(--m-cafe) !important;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  position: relative;
}
.malune-header-nav a:not(.malune-header-carrinho)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--m-carmim);
  transition: width 0.2s ease;
}
.malune-header-nav a:not(.malune-header-carrinho):hover::after { width: 100%; }
.malune-header-carrinho { position: relative; display: inline-flex; }
.malune-header-carrinho svg { width: 23px; height: 23px; stroke: var(--m-cafe); }
.malune-header-carrinho .contagem {
  position: absolute;
  top: -7px; right: -9px;
  background: var(--m-carmim);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* ============ HERO — foto protagonista, texto elegante ============ */
.malune-hero {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}
.malune-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(74,59,46,0.55) 0%, rgba(74,59,46,0.15) 55%, transparent 100%);
}
.malune-hero-conteudo {
  position: relative;
  padding: 48px;
  color: #fff;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  box-sizing: border-box;
}
.malune-hero-tag {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: #fff;
  background: rgba(198,31,59,0.9);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.malune-hero-conteudo h1 {
  color: #fff !important;
  font-size: clamp(34px, 5.5vw, 56px);
  margin: 0 0 16px;
  max-width: 620px;
  font-weight: 600;
}
.malune-hero-conteudo p {
  font-size: 19px;
  opacity: 0.96;
  margin: 0 0 28px;
  max-width: 460px;
  line-height: 1.55;
}
.malune-hero-btn {
  display: inline-block;
  background: var(--m-branco) !important;
  color: var(--m-cafe) !important;
  padding: 15px 34px !important;
  border-radius: 100px !important;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  box-shadow: var(--m-sombra-forte);
  transition: transform 0.15s ease, background 0.15s ease;
}
.malune-hero-btn:hover {
  transform: translateY(-2px);
  background: var(--m-creme) !important;
  color: var(--m-carmim) !important;
}

/* ============ BENEFÍCIOS — cartões suaves, ícones terracota ============ */
.malune-beneficios {
  background: var(--m-branco);
  padding: 8px 24px 0;
  margin: -60px auto 56px;
  max-width: 1050px;
  position: relative;
  z-index: 5;
  border-radius: var(--m-raio);
  box-shadow: var(--m-sombra);
}
.malune-beneficios-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 28px 20px;
}
.malune-beneficio {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: center;
  padding: 6px 12px;
}
.malune-beneficio + .malune-beneficio { border-left: 1px solid var(--m-areia); }
.malune-beneficio svg { width: 32px; height: 32px; color: var(--m-terracota); flex-shrink: 0; }
.malune-beneficio strong {
  display: block;
  font-size: 15px;
  font-family: 'Fraunces', serif;
  color: var(--m-cafe);
  margin-bottom: 1px;
}
.malune-beneficio span { font-size: 13.5px; color: var(--m-cafe-suave); }
@media (max-width: 720px) {
  .malune-beneficios { margin: -30px 16px 40px; }
  .malune-beneficios-inner { grid-template-columns: 1fr; gap: 4px; }
  .malune-beneficio { justify-content: flex-start; }
  .malune-beneficio + .malune-beneficio { border-left: none; border-top: 1px solid var(--m-areia); }
  .malune-hero { min-height: 420px; }
}

/* ============ TÍTULO DE SEÇÃO (loja) ============ */
.woocommerce-products-header,
.term-description { text-align: center; }
.woocommerce-products-header__title,
h1.woocommerce-loop-heading,
.wc-block-store-notice { display: none; } /* tira título cru "Loja" */

/* ============ BOTÕES ============ */
.button,
button:not(.malune-editor-btn):not(.malune-hero-btn),
input[type="submit"],
.wp-block-button__link,
.single_add_to_cart_button,
.checkout-button,
#place_order,
.wc-block-components-checkout-place-order-button,
.added_to_cart {
  background: var(--m-carmim) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 100px !important;
  font-weight: 600 !important;
  font-family: 'Inter', sans-serif !important;
  padding: 13px 28px !important;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 10px rgba(198,31,59,0.18);
}
.button:hover,
button:not(.malune-editor-btn):not(.malune-hero-btn):hover,
input[type="submit"]:hover,
.wp-block-button__link:hover,
.single_add_to_cart_button:hover,
#place_order:hover {
  background: var(--m-carmim-escuro) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(198,31,59,0.28);
}

/* ============ PREÇO E CARDS DE PRODUTO ============ */
.woocommerce-Price-amount,
.price,
.wc-block-components-product-price {
  color: var(--m-terracota) !important;
  font-weight: 700 !important;
  font-family: 'Fraunces', serif;
}
ul.products li.product,
.wc-block-grid__product {
  background: var(--m-branco);
  border-radius: var(--m-raio);
  padding: 14px !important;
  box-shadow: var(--m-sombra);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
}
ul.products li.product:hover {
  transform: translateY(-5px);
  box-shadow: var(--m-sombra-forte);
}
ul.products li.product img,
.wc-block-grid__product-image img {
  border-radius: var(--m-raio-sm);
  margin-bottom: 12px;
}
ul.products li.product .woocommerce-loop-product__title {
  font-size: 18px;
  padding: 0 4px;
}

/* ============ SEÇÃO HISTÓRIA/AFETO (injetada antes do rodapé) ============ */
.malune-historia {
  background: var(--m-areia);
  padding: 64px 24px;
  margin-top: 64px;
  text-align: center;
}
.malune-historia-inner { max-width: 720px; margin: 0 auto; }
.malune-historia h2 {
  font-size: clamp(26px, 4vw, 38px);
  margin: 0 0 16px;
}
.malune-historia p {
  font-size: 18px;
  color: var(--m-cafe-suave);
  line-height: 1.7;
  margin: 0;
}
.malune-historia .assinatura {
  display: inline-block;
  margin-top: 24px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 20px;
  color: var(--m-terracota);
}

/* ============ RODAPÉ — café profundo, quente ============ */
.malune-rodape {
  background: var(--m-cafe);
  color: #EDE4D8;
  padding: 56px 24px 28px;
}
.malune-rodape-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
}
.malune-rodape img.logo { height: 46px; width: auto; margin-bottom: 14px; }
.malune-rodape p { margin: 5px 0; font-size: 14px; opacity: 0.85; line-height: 1.6; }
.malune-rodape h4 {
  color: #fff !important;
  font-family: 'Fraunces', serif;
  font-size: 17px;
  margin: 0 0 14px;
  font-weight: 600;
}
.malune-rodape a { color: #EDE4D8 !important; text-decoration: none; opacity: 0.85; }
.malune-rodape a:hover { opacity: 1; color: #fff !important; }
.malune-pagamentos { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.malune-pagamentos img {
  height: 28px; width: auto;
  background: #fff;
  border-radius: 5px;
  padding: 3px 7px;
}
.malune-rodape-base {
  max-width: 1160px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(237,228,216,0.18);
  font-size: 13px;
  opacity: 0.7;
  text-align: center;
}
@media (max-width: 780px) {
  .malune-rodape-inner { grid-template-columns: 1fr; gap: 28px; }
}

/* ============ WHATSAPP FLUTUANTE ============ */
.malune-whats {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 998;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
  transition: transform 0.12s ease;
}
.malune-whats:hover { transform: scale(1.08); }
.malune-whats svg { width: 29px; height: 29px; fill: #fff; }
