/*
Theme Name:   Woodmart Child
Description:  Woodmart Child Theme
Author:       XTemos
Author URI:   http://xtemos.com
Template:     woodmart
Version:      1.0.0
Text Domain:  woodmart
*/

/* ============================================================
   CANARINHO STORE — CSS Unificado e Revisado
   Arquivo: style.css (child theme)
   Última revisão: 2026-03

   ESTRATÉGIA:
   - Nunca aplicar color em tags genéricas (div, span, p)
   - Usar classes de body do WordPress para isolar páginas
   - Header protegido com seletores específicos
   - Páginas claras (produto, categoria) isoladas do dark global

   CLASSES DE BODY POR PÁGINA:
   - Home:        .home
   - Categoria:   .tax-product_cat / .archive.woocommerce
   - Produto:     .single-product
   - Carrinho:    .woocommerce-cart
   - Checkout:    .woocommerce-checkout
   - Conta:       .woocommerce-account
   ============================================================ */


/* ============================================================
   1. VARIÁVEIS
   ============================================================ */

:root {
  --cnrnh-black:  #111111;
  --cnrnh-dark:   #1a1a1a;
  --cnrnh-card:   #1e1e1e;
  --cnrnh-yellow: #FFD700;
  --cnrnh-white:  #FFFFFF;
  --cnrnh-gray:   #888888;
}


/* ============================================================
   2. RESET GLOBAL SEGURO
   ============================================================ */

html { scroll-behavior: smooth; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cnrnh-black); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

.widget,
.sidebar,
.wd-widgets-area {
  background: transparent !important;
}

.wd-brands,
.woodmart-brands-element,
.woodmart-brands-widget {
  display: none !important;
}


/* ============================================================
   3. HEADER E TOP BAR — protegido em todas as páginas
   ============================================================ */

/* Top Bar */
.woodmart-top-bar,
.wd-top-bar {
  background-color: var(--cnrnh-yellow) !important;
  border-bottom: none !important;
  padding: 8px 0 !important;
  text-align: center !important;
}
.woodmart-top-bar *,
.wd-top-bar * {
  color: #111111 !important;
}

/* Header — fundo preto em todas as páginas */
.site-header,
.woodmart-header,
.wd-header,
.whb-header,
.whb-main-header,
.whb-row,
.whb-sticky-header,
.whb-sticky-header.whb-sticked {
  background-color: var(--cnrnh-black) !important;
  border-bottom: 1px solid #222222 !important;
}

/* Textos do header — brancos em todas as páginas */
.whb-header *,
.whb-row *,
.wd-header *,
.site-header * {
  color: var(--cnrnh-white) !important;
}

/* Links do menu */
.woodmart-navigation .menu > li > a,
.wd-nav-menu > li > a,
.whb-row .menu > li > a,
.site-header .menu > li > a {
  color: var(--cnrnh-white) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}
.woodmart-navigation .menu > li > a:hover,
.wd-nav-menu > li > a:hover,
.whb-row .menu > li > a:hover,
.site-header .menu > li > a:hover {
  color: var(--cnrnh-yellow) !important;
}

/* Ícones do header */
.woodmart-header-icons .woodmart-header-icon,
.wd-header-icons .wd-icon-el {
  color: var(--cnrnh-white) !important;
  fill: var(--cnrnh-white) !important;
}
.woodmart-header-icons .woodmart-header-icon:hover,
.wd-header-icons .wd-icon-el:hover {
  color: var(--cnrnh-yellow) !important;
  fill: var(--cnrnh-yellow) !important;
}

/* Contador do carrinho */
.cart-items-count,
.wd-cart-count {
  background-color: var(--cnrnh-yellow) !important;
  color: var(--cnrnh-black) !important;
  font-weight: 700 !important;
  font-size: 10px !important;
}


/* ============================================================
   4. HOME — fundo e cores dark
   ============================================================ */

.home,
.home .site-wrapper,
.home .page-wrapper,
.home .wd-content-area,
.home .main-page-wrapper,
.home #content {
  background-color: var(--cnrnh-black) !important;
}

.home .entry-content,
.home .elementor-widget-container,
.home .elementor-heading-title,
.home .elementor-text-editor {
  color: var(--cnrnh-white);
}

.home a:not(.button):not(.btn):not(.wp-element-button) {
  color: var(--cnrnh-white);
}
.home a:not(.button):not(.btn):not(.wp-element-button):hover {
  color: var(--cnrnh-yellow);
}

.cnrnh-section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--cnrnh-white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}


/* ============================================================
   5. BOTÕES
   ============================================================ */

.home .wd-btn,
.home .button,
.home .wp-element-button,
.home a.button,
.home button.button,
.home .cnrnh-btn {
  background-color: var(--cnrnh-white) !important;
  color: var(--cnrnh-black) !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 10px 24px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  cursor: pointer;
  display: inline-block;
  transition: background 0.2s, color 0.2s;
}
.home .wd-btn:hover,
.home .button:hover,
.home a.button:hover,
.home .cnrnh-btn:hover {
  background-color: var(--cnrnh-yellow) !important;
  color: var(--cnrnh-black) !important;
}

.elementor-element-1355805 .elementor-button,
.elementor-element-5ea7ab7 .elementor-button,
.elementor-element-42fff54 .elementor-button {
  background-color: var(--cnrnh-white) !important;
  color: var(--cnrnh-black) !important;
  border: none !important;
  font-weight: 600 !important;
}
.elementor-element-1355805 .elementor-button:hover,
.elementor-element-5ea7ab7 .elementor-button:hover,
.elementor-element-42fff54 .elementor-button:hover {
  background-color: var(--cnrnh-yellow) !important;
  color: var(--cnrnh-black) !important;
}

.woodmart-slide-wrap .btn,
.woodmart-slide-wrap .wd-btn,
.woodmart-slide-wrap a.button,
.woodmart-slider .woodmart-button,
.woodmart-slider .wd-button,
.woodmart-slider .btn-default,
.woodmart-slide .wd-btn {
  background-color: var(--cnrnh-white) !important;
  color: var(--cnrnh-black) !important;
  border: none !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
}
.woodmart-slide-wrap .btn:hover,
.woodmart-slide-wrap a.button:hover,
.woodmart-slider .woodmart-button:hover,
.woodmart-slider .wd-btn:hover {
  background-color: var(--cnrnh-yellow) !important;
  color: var(--cnrnh-black) !important;
}


/* ============================================================
   6. HOME — SEÇÕES CUSTOMIZADAS
   ============================================================ */

.wd-slider-wrap,
.woodmart-slider,
.cnrnh-hero-slider {
  background-color: var(--cnrnh-black) !important;
}
.woodmart-slider .slick-dots li button:before,
.wd-slider .slick-dots li button:before {
  background-color: rgba(255,255,255,0.4) !important;
  border-radius: 50%;
}
.woodmart-slider .slick-dots li.slick-active button:before,
.wd-slider .slick-dots li.slick-active button:before {
  background-color: var(--cnrnh-white) !important;
}
.woodmart-slider .slick-arrow,
.wd-slider .slick-arrow {
  background-color: rgba(255,255,255,0.12) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  color: var(--cnrnh-white) !important;
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
}
.woodmart-slider .slick-arrow:hover,
.wd-slider .slick-arrow:hover {
  background-color: rgba(255,255,255,0.25) !important;
}

.cnrnh-section-find {
  background-color: var(--cnrnh-black);
  padding: 60px 0;
}
.cnrnh-find-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.cnrnh-find-item {
  background-color: var(--cnrnh-dark);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.cnrnh-find-item img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.cnrnh-find-item:hover img { transform: scale(1.03); }
.cnrnh-find-item-info {
  padding: 16px;
  background-color: var(--cnrnh-black);
}
.cnrnh-find-item-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--cnrnh-white);
  margin: 0 0 12px;
  text-transform: uppercase;
}

.cnrnh-section-explore {
  background-color: var(--cnrnh-black);
  padding: 60px 0;
}
.cnrnh-explore-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 600px;
}
.cnrnh-explore-main {
  grid-row: 1 / 3;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}
.cnrnh-explore-sub {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}
.cnrnh-explore-main img,
.cnrnh-explore-sub img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.cnrnh-explore-main:hover img,
.cnrnh-explore-sub:hover img { transform: scale(1.04); }
.cnrnh-explore-label {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 2;
}
.cnrnh-explore-label a,
.cnrnh-explore-label span {
  background-color: rgba(17,17,17,0.75);
  color: var(--cnrnh-white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.2);
  display: inline-block;
  transition: background 0.2s;
}
.cnrnh-explore-label a:hover {
  background-color: rgba(255,215,0,0.85);
  color: var(--cnrnh-black);
}
.cnrnh-explore-main::after,
.cnrnh-explore-sub::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 60%);
  pointer-events: none;
}


/* ============================================================
   7. PÁGINAS CLARAS
      Categoria, Produto, Carrinho, Checkout, Conta
   ============================================================ */

.tax-product_cat,
.archive.woocommerce,
.single-product,
.woocommerce-cart,
.woocommerce-checkout,
.woocommerce-account {
  background-color: #FFFFFF !important;
}

.tax-product_cat .site-wrapper,
.tax-product_cat .page-wrapper,
.tax-product_cat .main-page-wrapper,
.tax-product_cat #content,
.tax-product_cat .wd-content-area,
.archive.woocommerce .site-wrapper,
.archive.woocommerce .page-wrapper,
.archive.woocommerce .main-page-wrapper,
.archive.woocommerce #content,
.single-product .site-wrapper,
.single-product .page-wrapper,
.single-product .main-page-wrapper,
.single-product #content,
.single-product .wd-content-area,
.single-product .site-content,
.woocommerce-cart .site-wrapper,
.woocommerce-cart .page-wrapper,
.woocommerce-cart #content,
.woocommerce-checkout .site-wrapper,
.woocommerce-checkout .page-wrapper,
.woocommerce-checkout #content {
  background-color: #FFFFFF !important;
}

/* Conteúdo das páginas claras — texto preto */
.tax-product_cat .woocommerce-loop-product__title,
.tax-product_cat .price,
.tax-product_cat .woocommerce-breadcrumb,
.tax-product_cat .woocommerce-result-count,
.archive.woocommerce .woocommerce-loop-product__title,
.archive.woocommerce .price,
.archive.woocommerce .woocommerce-breadcrumb,
.archive.woocommerce .woocommerce-result-count,
.single-product .product_title,
.single-product .price,
.single-product .woocommerce-breadcrumb,
.single-product .woocommerce-product-details__short-description,
.single-product .posted_in,
.single-product .sku_wrapper,
.single-product .woocommerce-tabs,
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
  color: #111111 !important;
}

/* Links nas páginas claras */
.tax-product_cat a:not(.button),
.archive.woocommerce a:not(.button),
.single-product a:not(.button),
.woocommerce-cart a:not(.button),
.woocommerce-checkout a:not(.button) {
  color: #111111 !important;
}


/* ============================================================
   8. RODAPÉ
   ============================================================ */

footer.wd-footer,
.site-footer,
.woodmart-footer,
.wd-prefooter,
.copyrights-wrapper {
  background-color: #1a1a1a !important;
  display: block !important;
}

.site-footer .wp-block-wd-title,
.site-footer h2.title,
.wd-footer .wp-block-wd-title,
.wd-footer h2.title {
  color: #FFFFFF !important;
}
.site-footer p,
.wd-footer p {
  color: #888888 !important;
}
.site-footer a,
.wd-footer a {
  color: #888888 !important;
}
.site-footer a:hover,
.wd-footer a:hover {
  color: #FFFFFF !important;
  text-decoration: none !important;
}

.wd-cnrnh-footer-main .wd-sub-menu li a,
.wd-cnrnh-footer-main .sub-sub-menu li a,
.wd-cnrnh-footer-main .wp-block-wd-menu-list a {
  color: #888888 !important;
}
.wd-cnrnh-footer-main .wd-sub-menu li a:hover,
.wd-cnrnh-footer-main .sub-sub-menu li a:hover,
.wd-cnrnh-footer-main .wp-block-wd-menu-list a:hover {
  color: #FFFFFF !important;
}

.wd-cnrnh-footer-main .wp-block-wd-title,
.wd-cnrnh-footer-main h2.title {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  margin-bottom: 20px !important;
}

.wd-cnrnh-footer-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 40px !important;
}
.wd-cnrnh-footer-row .wp-block-wd-column {
  flex: 1 1 180px !important;
  min-width: 160px !important;
  max-width: 280px !important;
}

.wd-cnrnh-footer-main .wd-sub-menu,
.wd-cnrnh-footer-main .sub-sub-menu {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.wd-cnrnh-footer-main .wd-sub-menu li a,
.wd-cnrnh-footer-main .sub-sub-menu li a {
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 2.2 !important;
  text-decoration: none !important;
}

.woodmart-copyright,
.wd-copyright-bar,
.wd-cnrnh-footer-bottom {
  background-color: #0d0d0d !important;
  color: #555555 !important;
  font-size: 12px !important;
  text-align: center !important;
  padding: 16px 0 !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
  display: block !important;
}

.cnrnh-payment-icons {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}
.cnrnh-payment-icons svg {
  border-radius: 4px !important;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.cnrnh-payment-icons svg:hover { opacity: 1; }


/* ============================================================
   9. SELETOR DE TAMANHO — WCCF
   ============================================================ */

.wccf_field_container_radio ul li input[type="radio"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
}
.wccf_field_container_radio ul {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 12px 0 20px !important;
}
.wccf_field_container_radio ul li {
  position: relative !important;
  margin: 0 !important;
}
.wccf_field_container_radio ul li label {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 52px !important;
  height: 52px !important;
  padding: 0 12px !important;
  border: 1.5px solid #CCCCCC !important;
  border-radius: 4px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #111111 !important;
  background: #FFFFFF !important;
  cursor: pointer !important;
  transition: border-color 0.15s, background 0.15s, color 0.15s !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  margin: 0 !important;
  user-select: none !important;
}
.wccf_field_container_radio ul li label:hover {
  border-color: #111111 !important;
}
.wccf_field_container_radio ul li:has(input:checked) label {
  border-color: #111111 !important;
  background-color: #111111 !important;
  color: #FFFFFF !important;
}
.wccf_field_container_radio > label {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #111111 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  margin-bottom: 10px !important;
  display: block !important;
}
.wccf_field_container_radio > label .wccf_label {
  color: #111111 !important;
}


/* ============================================================
   10. RESPONSIVO
   ============================================================ */

@media (max-width: 768px) {
  .cnrnh-find-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .cnrnh-explore-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: auto;
  }
  .cnrnh-explore-main { grid-row: auto; min-height: 300px; }
  .cnrnh-explore-sub { min-height: 200px; }
  .elementor-widget-heading .elementor-heading-title {
    font-size: 24px !important;
  }
  .wd-cnrnh-footer-row .wp-block-wd-column {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }
  .cnrnh-payment-icons { flex-wrap: wrap !important; }
}