/*
Theme Name: Sarandeio Child
Theme URI: https://sarandeio.com.br/
Description: Tema filho do Blocksy com base visual Sarandeio Rural e Urbano.
Author: KZWeb / Sarandeio
Template: blocksy
Version: 1.0.0
Text Domain: sarandeio-child
*/

:root {
  --sarandeio-couro: #5A3825;
  --sarandeio-couro-escuro: #2B1A12;
  --sarandeio-erva: #3F6B3A;
  --sarandeio-verde-campo: #5F7F3A;
  --sarandeio-cru: #F4E6CF;
  --sarandeio-areia: #D8B98A;
  --sarandeio-vermelho-lenco: #8B2F24;
  --sarandeio-amarelo-farroupilha: #D6A640;
  --sarandeio-preto-cafe: #1C1713;

  /* Paleta Blocksy: usada em botões, links, headings e detalhes globais */
  --theme-palette-color-1: var(--sarandeio-erva);
  --theme-palette-color-2: var(--sarandeio-vermelho-lenco);
  --theme-palette-color-3: #4D3A2D;
  --theme-palette-color-4: var(--sarandeio-preto-cafe);
  --theme-palette-color-5: #DEC8A5;
  --theme-palette-color-6: #F8F0E4;
  --theme-palette-color-7: var(--sarandeio-cru);
  --theme-palette-color-8: #FFFFFF;

  --theme-button-border-radius: 7px;
}

body {
  background: var(--sarandeio-cru);
}

h1, h2, h3, h4, h5, h6,
.ct-title-label,
.entry-title,
.product_title,
.woocommerce-loop-product__title {
  letter-spacing: -0.01em;
}

/* Cabeçalho */
#header [data-row] {
  border-bottom-color: rgba(90, 56, 37, .16);
}

#header [data-row*="middle"] {
  background: #fffaf2;
}

#header [data-row*="top"] {
  background: var(--sarandeio-couro-escuro);
  color: #fff7ea;
}

/* Botões e chamadas */
button,
.button,
.ct-button,
.wp-element-button,
.add_to_cart_button,
.single_add_to_cart_button,
.checkout-button {
  font-weight: 700;
  text-transform: none;
  box-shadow: 0 8px 18px rgba(63, 107, 58, .16);
}

.button:hover,
.ct-button:hover,
.wp-element-button:hover,
.add_to_cart_button:hover,
.single_add_to_cart_button:hover,
.checkout-button:hover {
  transform: translateY(-1px);
}

/* Cards de produto */
.woocommerce ul.products li.product,
.ct-woo-card-extra {
  border: 1px solid rgba(90, 56, 37, .13);
  border-radius: 14px;
  background: #fffaf2;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(43, 26, 18, .06);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-weight: 700;
  color: var(--sarandeio-preto-cafe);
}

.price,
.woocommerce-Price-amount {
  color: var(--sarandeio-erva);
  font-weight: 800;
}

.onsale,
.ct-woo-badge-sale {
  background: var(--sarandeio-vermelho-lenco) !important;
  color: #fff !important;
  border-radius: 999px;
  font-weight: 800;
}

/* Faixas e blocos institucionais */
.sarandeio-faixa {
  background: var(--sarandeio-couro-escuro);
  color: #fff7ea;
  padding: 10px 16px;
  text-align: center;
  font-weight: 700;
}

.sarandeio-card-categoria {
  background: linear-gradient(135deg, #fffaf2 0%, var(--sarandeio-cru) 100%);
  border: 1px solid rgba(90, 56, 37, .16);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(43, 26, 18, .07);
}

.sarandeio-destaque-couro {
  background: linear-gradient(135deg, var(--sarandeio-couro-escuro), var(--sarandeio-couro));
  color: #fff7ea;
  border-radius: 22px;
  padding: clamp(24px, 4vw, 56px);
}

.sarandeio-destaque-couro h1,
.sarandeio-destaque-couro h2,
.sarandeio-destaque-couro h3 {
  color: #fff;
}

/* Formulários */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="password"],
textarea,
select {
  border-radius: 8px;
}

/* Rodapé */
.ct-footer {
  background: var(--sarandeio-couro-escuro);
  color: #f8ead3;
}

.ct-footer a {
  color: #fff7ea;
}

.ct-footer a:hover {
  color: var(--sarandeio-amarelo-farroupilha);
}
