/* ==========================================================================
   MYSELF: fontes e botoes modernos
   Fonte: Plus Jakarta Sans (Google Fonts), no lugar da Exo.
   Para desligar: remover o enqueue de "myself-fontes" no functions.php.
   ========================================================================== */

:root {
  --my-font: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  --my-green: #016738;
  --my-green-dark: #014a29;
  --my-ink: #1a1a1a;
  --my-text: #555;

  --wd-text-font: var(--my-font);
  --wd-title-font: var(--my-font);
  --wd-entities-title-font: var(--my-font);
  --wd-header-el-font: var(--my-font);
  --wd-alternative-font: var(--my-font);
  --wd-text-font-size: 15px;
}
body[class*="elementor-kit"] {
  --e-global-typography-primary-font-family: "Plus Jakarta Sans";
  --e-global-typography-secondary-font-family: "Plus Jakarta Sans";
  --e-global-typography-text-font-family: "Plus Jakarta Sans";
  --e-global-typography-accent-font-family: "Plus Jakarta Sans";
}

/* ---------- 1. FONTE ---------- */
body {
  font-family: var(--my-font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--my-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6,
.title, .wd-entities-title, .product_title,
input, select, textarea, button, .button, .btn,
.elementor-widget :is(.elementor-heading-title, .elementor-text-editor,
  .elementor-widget-container, .elementor-button, .elementor-icon-box-title,
  .elementor-icon-box-description, .elementor-icon-list-text, .elementor-image-box-title,
  .elementor-image-box-description) {
  font-family: var(--my-font) !important;
}
/* Cabecalho, faixa do topo e menus (os icones usam fonte propria no ::before) */
:is(.whb-header, .whb-top-bar, .wd-nav, .wd-tools-element, .mobile-nav, .wd-side-hidden,
    .elementor-widget-text-editor)
  :is(p, a, span:not([class*="icon"]), bdi, li, strong) {
  font-family: var(--my-font) !important;
}

/* ---------- 2. TAMANHOS ---------- */
/* Titulos de secao */
.home .elementor-widget-heading .elementor-heading-title {
  font-size: clamp(20px, 2.1vw, 28px) !important;
  font-weight: 800 !important;
  letter-spacing: .02em !important;
  line-height: 1.2 !important;
}
/* Menu principal */
.wd-nav-main > li > a,
.whb-header .wd-nav > li > a {
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: .06em;
}
/* Faixa do topo */
.whb-top-bar { font-size: 13px; font-weight: 500; letter-spacing: .02em; }

/* Vitrine */
.product-grid-item .wd-entities-title,
.product-grid-item .wd-entities-title a {
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: var(--my-ink) !important;
}
.product-grid-item .price,
.product-grid-item .price .amount {
  font-size: 16px !important;
  font-weight: 700 !important;
}
.product-grid-item .price del,
.product-grid-item .price del .amount {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #999 !important;
}
.myself-parcelas { font-size: 13px; color: #6b6b6b; }

/* Pagina do produto */
.single-product .product_title {
  font-size: clamp(24px, 2.4vw, 32px) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: -.01em;
  color: var(--my-ink) !important;
}
.single-product .elementor-element-6197e389 .woocommerce-Price-amount {
  font-size: 26px !important;
  font-weight: 800 !important;
}
.single-product .woocommerce-product-details__short-description,
.single-product .woocommerce-Tabs-panel { font-size: 15px; line-height: 1.7; }

/* Rodape */
.main-footer { font-size: 14px; }

/* ---------- 3. BOTOES ---------- */
/* Botao principal (verde): mesma altura, peso e hover em todo o site */
.btn.btn-color-primary, .btn-accent,
.button.alt, .single_add_to_cart_button, .checkout-button,
.woocommerce .button.alt, .elementor-button,
.wd-cookies-popup .cookies-accept-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 28px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background-color: var(--my-green) !important;
  color: #fff !important;
  font-family: var(--my-font) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(1, 103, 56, .18);
  transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.btn.btn-color-primary:hover, .btn-accent:hover,
.button.alt:hover, .single_add_to_cart_button:hover, .checkout-button:hover,
.elementor-button:hover,
.wd-cookies-popup .cookies-accept-btn:hover {
  background-color: var(--my-green-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(1, 103, 56, .26);
}
.btn:active, .button:active, .elementor-button:active { transform: translateY(0) scale(.98); }

/* "Adicionar ao carrinho" na pagina do produto: maior, e ocupa a linha */
.single-product form.cart .single_add_to_cart_button {
  min-height: 54px;
  font-size: 15px !important;
  flex: 1 1 auto;
}

/* Botao secundario (claro): contorno verde */
.btn.btn-color-default, .button:not(.alt):not(.add_to_cart_button):not(.single_add_to_cart_button):not(.wd-tools-element *),
.woocommerce .button:not(.alt):not(.add_to_cart_button) {
  min-height: 44px;
  padding: 0 24px !important;
  border: 1.5px solid var(--my-green) !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--my-green) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: .04em;
}
.btn.btn-color-default:hover, .button:not(.alt):not(.add_to_cart_button):not(.single_add_to_cart_button):hover {
  background: var(--my-green) !important;
  color: #fff !important;
}

/* Quantidade (- 1 +) arredondada, na mesma altura do botao */
.single-product form.cart .quantity {
  display: inline-flex;
  align-items: center;
  height: 54px;
  border: 1.5px solid #e2e2e2;
  border-radius: 999px;
  overflow: hidden;
}
.single-product form.cart .quantity input {
  height: 100% !important;
  border: 0 !important;
  background: transparent !important;
  font-weight: 700;
}

/* Opcoes de cor e tamanho: pilulas maiores, selecionada em verde */
.wd-swatches-product .wd-swatch.wd-text {
  min-width: 48px !important;
  min-height: 42px !important;
  padding: 0 16px !important;
  border: 1.5px solid #e2e2e2 !important;
}
.wd-swatches-product .wd-swatch.wd-text:hover { border-color: var(--my-green) !important; }
.wd-swatch {
  border-radius: 999px !important;
  font-weight: 600;
  font-size: 14px;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.wd-swatch.wd-active,
.wd-swatch.wd-active .wd-swatch-text {
  border-color: var(--my-green) !important;
  background-color: var(--my-green) !important;
  color: #fff !important;
}

/* Busca: botao redondo verde */
.searchform .searchsubmit { border-radius: 0 999px 999px 0 !important; }

/* Botao do WhatsApp no rodape */
.main-footer .elementor-button { box-shadow: none; }

@media (max-width: 767px) {
  .product-grid-item .wd-entities-title,
  .product-grid-item .wd-entities-title a { font-size: 14px !important; }
  .product-grid-item .price,
  .product-grid-item .price .amount { font-size: 15px !important; }
  .myself-parcelas { font-size: 12px; }
}

