/*
Theme Name: Loja Clean
Theme URI: https://www.cleveron.com.br
Author: Cleveron
Author URI: https://www.cleveron.com.br
Description: Tema minimalista para WooCommerce, otimizado para performance, responsividade e SEO.
Version: 1.0
Text Domain: loja-clean
*/

@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins.woff2') format('woff2'), url('fonts/Poppins.woff') format('woff'),
    url('fonts/Poppins.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

body {
  font-family: 'Poppins', sans-serif;
  font-optical-sizing: auto;
  font-size: 1rem;
  font-weight: 400;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #ffffff;
  color: #333;
}

body a {
  color: #ff0080;
}

/********************/
.age-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
}

.age-modal-box {
  background: #fff;
  padding: 30px;
  max-width: 400px;
  border-radius: 10px;
  text-align: center;
}

.age-modal-box h2 {
  margin-bottom: 10px;
}

.age-modal-box p {
  margin-bottom: 20px;
}

.age-btn-yes,
.age-btn-no {
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  margin: 5px;
  border-radius: 6px;
}

.age-btn-yes {
  background: #28a745;
  color: white;
}

.age-btn-no {
  background: #dc3545;
  color: white;
}

/****************/
.top-bar {
  background-color: #cc0000; /* antigo 65b38a */
  color: white;
  font-size: 14px;
  padding: 5px 20px;
  text-align: right;
}

.menu-top {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end; /* alinha à direita */
  gap: 20px;
}

.menu-top a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.menu-top a:hover {
  color: #333333;
}

header,
#main-header {
  background-color: #ffffff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 997;
}

#main-header {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

#main-header .logo {
  height: 70px;
  width: auto;
  transition: height 0.25s ease;
}

#main-header.shrink .logo {
  height: 60px;
}

#main-header.shrink {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* desativar sticky em landscape */
@media (max-width: 991px) and (orientation: landscape) {
  #main-header {
    position: relative !important;
    transform: none !important;
  }
}

.search-box {
  position: relative;
  width: 100%;
}

.search-box input[type='search'] {
  width: 100%;
  padding: 10px 40px 10px 20px;
  border: none;
  background-color: #f1f1f1;
  border-radius: 999px;
  font-size: 16px;
  color: #333;
}

.search-box button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: #cc0000;
  font-size: 20px;
  cursor: pointer;
}

/****************/

.link-item {
  display: flex;
  flex-direction: column; /* Ícone em cima, texto embaixo */
  align-items: center;
  text-decoration: none;
  color: #333;
  font-size: 0.9rem;
  position: relative;
  gap: 5px;
  cursor: pointer;
}

.link-item i {
  font-size: 1.6rem;
  margin-bottom: 0px;
}

.link-item span {
  display: block;
  line-height: 1;
  margin-top: -5px;
}

/* Bolinha do contador de carrinho */
.cart-count {
  position: absolute;
  background-color: #cc0000;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 6px;
  border-radius: 50%;
  line-height: 1;
  top: 0px;
  right: 16px;
  cursor: pointer;
}

.link-item:hover {
  /*color: #0d6efd;*/
  /*transform: translateY(-2px);*/
  /*transition: all 0.2s ease;*/
}

/* 5% PIX PagBank */
.pix-5off-home {
  background: #f1f1f1;
  font-weight: 700;
  font-size: 1.4rem;
  padding: 10px 12px;
  border-radius: 10px;
  color: #28a745;
  margin: 8px 0;
}

.pix-note {
  display: block;
  font-size: 0.9rem;
  color: #333;
  font-weight: normal;
}

/****************/
/* Páginas criadas pelo próprio Wordpress */
body.page h1 {
  /*margin: 50px 0;*/
}

body.page h1 {
  margin: 50px 0;
  padding: 20px 0;
  background-color: #f9f9f9;
  border-left: 5px solid #cc0000;
  font-weight: bold;
}

body.page h2 {
  margin: 20px 0;
}

body.page .wp-block-list {
  padding-left: 2rem;
}

/* Categorias da página inicial */

.categoria-card {
  transition: 0.25s ease;
  color: #cc0000;
}

.categoria-card:hover {
  transform: translateY(-5px);
  color: #800000;
}

.categoria-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  transition: 0.25s ease;
}

.categoria-card:hover .categoria-img {
  transform: scale(1.05);
}

h5.categoria-nome {
  font-size: 1.4rem;
  letter-spacing: 1px;
  font-weight: bold;
  color: #ffffff;
  background-color: #cc0000;
  border-radius: 10px;
  padding: 15px;
  min-height: 150px;
  display: flex;
  align-items: center; /* centraliza verticalmente */
  justify-content: center; /* centraliza horizontalmente */
  text-align: center; /* centraliza textos quebrados */
  transition: background-color 0.3s ease;
}

h5.categoria-nome:hover {
  background-color: #800000;
}

/* Página de erro 404 */

.erro-404 h1 {
  margin: 50px 0;
}

.erro-404 h4 {
  margin: 30px 0;
  font-weight: bold;
}

/************/
/* Página do Blog e postagens do Blog */
body.blog h1 {
  margin: 50px 0;
  padding: 20px 0;
  background-color: #f9f9f9;
  border-left: 5px solid #cc0000;
  font-weight: bold;
}

body.blog h4 {
  font-weight: bold;
}

/* Contêiner para posicionar o botão */
.search-box-blog {
  position: relative;
  width: 100%;
}

/* Campo de busca */
.search-box-blog input[type='search'] {
  width: 100% !important;
  padding: 10px 40px 10px 20px; /* espaço para o ícone */
  border: none;
  background-color: #f1f1f1;
  border-radius: 999px;
  font-size: 16px;
  color: #333;
  outline: none;
}

/* Botão com ícone */
.search-box-blog button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: #cc0000; /* mesma cor usada por você */
  font-size: 20px;
  cursor: pointer;
  padding: 0;
}

.sidebar-blog {
  padding: 20px;
}

.sidebar-blog h3 {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 20px 0;
}

.sidebar-blog ul li {
  list-style: none;
  line-height: 1.8rem;
}

.sidebar-blog ul li a {
  text-decoration: none;
}

body.blog article {
  border: 1px solid #f1f1f1;
}

body.blog article .btn {
  width: 30%;
  display: inline-block !important;
  margin-left: auto !important;
  /*margin-right: 0 !important;*/
  margin-right: 50px;
  background-color: #cc0000 !important;
  border: none;
}

body.blog article .btn:hover {
  background-color: #800000 !important;
}

/************/

/* Página da postagens individual do Blog */

.single-post h1 {
  margin: 50px 0;
  padding: 20px 0;
  background-color: #f9f9f9;
  border-left: 5px solid #cc0000;
  font-weight: bold;
}

.single-post h4 {
  font-weight: bold;
}

.archive h1 {
  /*margin: 50px 0;*/
  padding: 20px 0;
  background-color: #f9f9f9;
  border-left: 5px solid #cc0000;
  font-weight: bold;
}

.single-post li.type-product {
  list-style: none;
  margin: 0;
}

.single-post li.type-product h2,
.single-post li.type-product .price {
  font-size: 1.2rem !important;
  font-weight: normal;
  text-decoration: none;
}

.single-post .btn,
.archive .btn,
.sidebar-blog .btn,
.single-post span.btn a,
.blog .btn {
  color: #ffffff !important;
}

.single-post .post-content p {
  font-size: 1.1rem;
  line-height: 2rem;
}

.single-post .post-content h3 {
  font-size: 1.3rem;
  font-weight: bold;
  margin: 20px 0;
}

.single-post .post-content ol li,
.single-post .post-content ul li {
  font-size: 1.1rem;
  line-height: 2rem;
}

.single-post .post-content ul {
  list-style-position: inside;
  padding-left: 1.5em;
}

.single-post .post-content .btn {
  display: inline-block !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  background-color: #cc0000 !important; /* Para verificar se está aplicando */
}

.single-post .post-content .btn:hover {
  background-color: #800000 !important;
}

.single-post .btn-blog {
  width: 30%;
}

/************/

h1 {
  text-align: center;
  /*margin-bottom: 50px;*/
}
h1::after {
  content: '';
  display: block;
  width: 80px;
  height: 1px;
  background-color: #cc0000;
  margin-top: 5px;
  margin-left: auto;
  margin-right: auto;
}

footer a {
  color: #cc0000;
  text-decoration: underline;
  text-underline-offset: 4px;
}

footer a:hover {
  color: #333;
}

footer li {
  line-height: 2rem;
}

.footer-espaco {
  flex: 1;
}

/*******************/

.overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px; /* largura fixa */
  height: 100%;
  background-color: #fff;
  box-shadow: -4px 0 10px rgba(0, 0, 0, 0.3);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s ease;
  overflow-y: scroll;
}

.overlay.open {
  transform: translateX(0);
}

#menuOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 998;
}

/* Header dentro do menu */
.overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #800000;
}

.overlay-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #ffffff;
}

/* Botão fechar */
.overlay .closebtn {
  font-size: 30px;
  text-decoration: none;
  /*color: #333;*/
  color: #ffffff;
  position: relative; /* não fica mais absoluto */
}

/* Linha separadora */
.overlay hr {
  margin: 0;
  border: none;
  border-top: 1px solid #ddd;
}

/* Conteúdo */
.overlay-content {
  padding: 20px;
  flex-grow: 1; /* ocupa o restante do espaço */
}

/*.overlay a {
  padding: 8px 0;
  text-decoration: none;
  font-size: 1rem;
  color: #cc0000;
  display: block;
  transition: 0.3s;
}

.overlay a:hover {
  color: #333;
}*/

@media (max-width: 450px) {
  /*.overlay a {
    font-size: 10px;
  }*/
  .overlay .closebtn {
    font-size: 20px;
  }
  .menu-top {
    gap: 10px;
  }
  .menu-top a {
    font-size: 0.8rem;
  }
  body.post-type-archive-product .orderby,
  body.tax-product_cat .orderby {
    font-size: 0.8rem;
  }
  body.single-product input[type='number'] {
    width: 80px !important;
  }
  /* Campo Sobrenome ocupa a linha inteira */
  #billing_first_name_field,
  #billing_last_name_field {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 992px) {
  /* Empilhar TH e TD em linhas separadas */
  table.woocommerce-checkout-review-order-table tr.shipping th,
  table.woocommerce-checkout-review-order-table tr.shipping td {
    display: block !important;
    width: 100% !important;
    border: none !important;
  }
  .cart-count {
    right: 0;
  }
}

@media (max-width: 576px) {
  /* Some com o cabeçalho da tabela */
  body.woocommerce-cart .shop_table thead {
    display: none;
  }

  /* Cada linha vira um card */
  body.woocommerce-cart .shop_table tr {
    display: block;
    background: #fff;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e5e5e5;
  }

  /* Cada coluna vira um bloco */
  body.woocommerce-cart .shop_table td {
    display: block;
    width: 100%;
    padding: 10px 0;
    border: none !important;
    text-align: left !important;
  }

  /* Coloca o título da coluna antes do conteúdo */
  body.woocommerce-cart .shop_table td::before {
    content: attr(data-title); /* WooCommerce já escreve isso no HTML */
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
    display: block;
  }

  /* Ajustes visuais úteis */
  body.woocommerce-cart .product-thumbnail img {
    max-width: 120px;
    margin: 0 auto 10px;
    display: block;
  }

  body.woocommerce-cart .product-remove {
    text-align: right !important;
    padding-top: 12px;
  }
  /* Remove THs isolados (Subtotal / Entrega) das colunas externas */
  .cart-collaterals th {
    display: none !important;
  }
}

/*******************/

.fancybox__thumbs .carousel__slide .fancybox__thumb::after {
  border-color: #cc0000 !important;
}

/*******************/

.pagination {
  text-align: center;
  display: block;
}

.pagination a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
}

.pagination .page-numbers {
  background-color: #cc0000;
  border-radius: 50%;
  padding: 7px 14px;
  margin-right: 5px;
  display: inline-flex;
}

a.prev.page-numbers,
a.prev.page-numbers:hover,
a.next.page-numbers,
a.next.page-numbers:hover {
  background: none;
  color: #cc0000;
}

.pagination .page-numbers:hover,
.pagination .current {
  color: #ffffff;
  background-color: #800000;
}

/*******************/

/* Página da Loja (lista de produtos) */

body.post-type-archive-product header {
  margin-bottom: 50px;
}

/* Esconde <h1> na Loja e continua aparecendo nas categorias e na busca. */
body.woocommerce-shop:not(.search) h1 {
  display: none !important;
}

.card {
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease-in-out;
  border: 1px solid #f1f1f1;
}

.card:hover {
  transform: translateY(-5px);
  transform: scale(1.02);
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
}

.card a {
  border: none;
}

.card-body a:hover {
  color: #ffffff;
  background-color: #800000;
}

.card h5 {
  color: #cc0000;
  font-weight: bold;
}

.price {
  font-weight: bold;
  font-size: 1rem;
}

body.post-type-archive-product .orderby,
body.tax-product_cat .orderby {
  float: right;
  padding: 5px;
  border-radius: 10px;
  background-color: #ffffff;
  border: 1px solid #cacaca;
  margin-left: 10px;
}

.product-thumb-wrapper {
  position: relative;
  display: block;
  overflow: hidden;
}

.product-thumb-wrapper img {
  transition: opacity 0.4s ease, transform 0.4s ease;
  width: 100%;
  height: auto;
  display: block;
}

/* Hover image (fica sobreposta) */
.product-image-hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

/* Efeito ao passar o mouse */
.product-thumb-wrapper:hover .product-image-hover {
  opacity: 1;
  /*transform: scale(1.03);*/
}

.product-thumb-wrapper:hover .product-image-main {
  opacity: 0;
  /*transform: scale(1.05);*/
  transform: none;
}

/*******************/

/* Página de categorias de produtos */

body.tax-product_cat header {
  margin-bottom: 50px;
}

body.tax-product_cat h1,
.busca {
  margin-bottom: 50px;
  padding: 20px 0;
  background-color: #f9f9f9;
  border-left: 5px solid #cc0000;
  font-weight: bold;
}

/******************


/* Só para a página de login */
body.woocommerce-account .u-column1.col-1,
body.woocommerce-account .u-column2.col-2 {
  width: 50% !important;
  max-width: 50% !important;
  float: left; /* fallback para temas sem flex */
  /*background: #f9f9f9 !important;*/
}

/* Só para usuários logados (pedidos, endereços etc.) */
body.woocommerce-account.logged-in {
  /*background: red;*/
}

/* Página Minha Conta (Login, Pedidos, etc.) */
body.woocommerce-account header {
  /*margin-bottom: 50px;*/
}

body.woocommerce-account .woocommerce-MyAccount-navigation {
  background-color: #f9f9f9;
  padding: 10px;
  border: 1px solid #f1f1f1;
  margin-bottom: 25px;
}

body.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-MyAccount-navigation a {
  color: #cc0000;
  line-height: 2rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
}

body.woocommerce-account.logged-in .col-1,
.woocommerce-MyAccount-navigation {
  width: 26%;
  float: left;
}

body.woocommerce-account.logged-in .col-2,
.woocommerce-MyAccount-content {
  width: 70%;
  float: right;
}

body.woocommerce-account .woocommerce-Address-title {
  box-shadow: none;
}

body.woocommerce-account input[type='text'],
body.woocommerce-account input[type='password'],
body.woocommerce-account input[type='email'],
body.woocommerce-account input[type='tel'] {
  display: block;
  border: 1px solid #cacaca;
  padding: 10px;
  /*width: 90%;*/
  width: 100%;
}

body.woocommerce-account .select2 {
  display: block;
  /*width: 90% !important;*/
  width: 100%;
}

body.woocommerce-account .select2-container--default .select2-selection--single {
  border-radius: 0;
  padding: 8px 0;
  border: 1px solid #cacaca;
  height: 46px;
}

body.woocommerce-account label {
  margin-bottom: 10px;
}

body.woocommerce-account .selection body.woocommerce-account .woocommerce-button,
body.woocommerce-account .button {
  width: auto;
  height: auto;
  display: block;
  background-color: #cc0000;
  color: #fff;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  margin-bottom: 5px;
  text-align: center;
  border: none;
}

/* Distância entre as colunas da página de login da minha conta*/
.woocommerce .u-columns {
  display: flex;
  gap: 40px;
}

/***** Mostrar senha na página de minha conta ********/

.password-input {
  position: relative !important;
  display: block !important;
  width: 100% !important;
}

.password-input input[type='password'],
.password-input input[type='text'] {
  padding-right: 45px !important;
  width: 100% !important;
  position: relative !important;
  z-index: 1 !important;
  box-sizing: border-box !important;
}

.password-input .show-password-input {
  position: absolute !important;
  right: 5px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  padding: 8px !important;
  color: #666 !important;
  z-index: 2 !important;
  height: 30px !important;
  width: 30px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  line-height: 1 !important;
}

/* Ícone do olho usando emoji */
.password-input .show-password-input::before {
  content: '👁️' !important;
}

/* Altera para ícone de cadeado quando senha está visível */
.password-input input[type='text'] + .show-password-input::before {
  content: '🚫' !important;
}

/* Efeitos hover para melhor usabilidade */
.password-input .show-password-input:hover {
  background: rgba(0, 0, 0, 0.05) !important;
  border-radius: 3px !important;
}

.password-input .show-password-input:focus {
  outline: 2px solid #2271b1 !important;
  outline-offset: 1px !important;
}

/****************/

/* Estilo para o contêiner do minicarrinho */
.woocommerce-mini-cart a {
  color: #cc0000;
}
.woocommerce-mini-cart img {
  max-width: 50px;
  height: auto;
  float: left;
  padding-right: 5px;
}

.woocommerce-mini-cart p {
  padding: 0;
  margin: 0;
}

.woocommerce-mini-cart ol,
ul {
  padding-left: 0;
}

.woocommerce-mini-cart li {
  list-style-type: none;
}

.woocommerce-mini-cart dt,
dd,
dl {
  display: inline-block;
}

dl p {
  /*margin: 0;*/
}

.woocommerce-mini-cart .quantity {
  display: block;
  /*margin-bottom: 5px;*/
}

a.remove_from_cart_button {
  display: none !important;
}

/* Estilo para subtotal */
.woocommerce-mini-cart .total {
  font-weight: bold;
  margin-top: 10px;
}

.woocommerce-mini-cart .woocommerce-mini-cart-item {
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

/* Estilo para botões */
.overlay-content a.button.wc-forward,
.btn {
  width: 100%;
  height: auto;
  display: block;
  background-color: #cc0000;
  color: #fff;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  margin: 15px 0;
  text-align: center;
}

.overlay-content a.button.wc-forward:hover,
.btn:hover {
  background-color: #800000;
}

/*****************/

/* Página do Carrinho */

body.woocommerce-cart header {
  /*margin-bottom: 50px;*/
}

/* Container do carrinho */
body.woocommerce-cart .woocommerce {
  display: flex;
  flex-wrap: wrap; /* permite quebra em telas pequenas */
  gap: 15px; /* espaçamento entre os dois blocos */
}

/* Tabela do carrinho */
body.woocommerce-cart .woocommerce-cart-form {
  flex: 1 1 65%; /* ocupa 65% do espaço, mas pode encolher */
  min-width: 300px; /* mínimo para não ficar muito pequeno */
  height: fit-content;
  /*border: 1px solid #f1f1f1;*/
  /*padding: 15px;*/
  text-align: center;
  /*box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);*/
  /*border-radius: 5px;*/
  /*/background-color: #28a745;*/
}

body.woocommerce-cart .woocommerce-cart-form a {
  color: #cc0000;
}

/* Total do carrinho */
body.woocommerce-cart .cart-collaterals {
  flex: 1 1 30%; /* ocupa 30% do espaço, mas pode encolher */
  min-width: 250px;
  border: 1px solid #f1f1f1;
  padding: 0 15px;
  /*background-color: #f8f9fa;*/
  height: fit-content;
  /*box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);*/
  /*border-radius: 5px;*/
  background-color: #f9f9f9;
}

body.woocommerce-cart .cart-collaterals h2 {
  background-color: #f1f1f1;
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 5px;
  font-size: 1.2rem;
  font-weight: bold;
}

body.woocommerce-cart .shop_table {
  background-color: #f9f9f9;
  width: 100%;
  border-collapse: collapse;
}

/*body.woocommerce-cart .shop_table,*/
body.woocommerce-cart .shop_table th,
body.woocommerce-cart .shop_table td {
  border: 2px solid #f1f1f1 !important;
  border-collapse: collapse !important;
}

body.woocommerce-cart .shop_table th,
body.woocommerce-cart .shop_table td {
  padding: 10px;
}

body.woocommerce-cart .shop_table .actions {
  display: none;
}

body.woocommerce-cart .cart-collaterals .shop_table {
  background-color: #ffffff;
  width: 100%;
  padding: 15px;
}

body.woocommerce-cart .shop_table dt,
dd {
  display: inline-block;
}

/* Responsivo para telas pequenas */
@media (max-width: 768px) {
  body.woocommerce-cart .woocommerce {
    flex-direction: column;
  }

  body.woocommerce-cart .woocommerce-cart-form,
  body.woocommerce-cart .cart-collaterals {
    flex: 1 1 100%;
    min-width: 100%;
  }
}

/* Label */
body.woocommerce-cart .cart-collaterals label {
  /*background-color: #800000;*/
  display: inline;
  margin: 0;
}

body.woocommerce-cart .cart-collaterals input[type='radio'] {
  /*background-color: #800000;*/
  display: inline;
  margin-right: 5px;
}

body.woocommerce-cart .cart-collaterals ul {
  list-style: none;
  margin: 20px 0;
}

body.woocommerce-cart .cart-collaterals li {
  margin: 15px 0;
}

body.woocommerce-cart .woocommerce-cart-form td {
  padding: 5px;
  text-align: left;
}

body.woocommerce-cart .cart_totals tr.shipping th {
  /*display: none;*/
}

/* Estiliza apenas as linhas de Subtotal e Total no carrinho */
body.woocommerce-cart .cart-collaterals tr.cart-subtotal td,
body.woocommerce-cart .cart-collaterals tr.cart-subtotal th,
body.woocommerce-cart .cart-collaterals tr.order-total td,
body.woocommerce-cart .cart-collaterals tr.order-total th {
  /*padding: 5px 10px 5px 0; /* aumenta o espaço interno */
  /*width: 20%;*/
  /*background-color: #28a745;*/
  /*text-align: left;*/
}

/* Dá respiro acima e abaixo só nessas linhas */
body.woocommerce-cart .cart-collaterals tr.cart-subtotal,
body.woocommerce-cart .cart-collaterals tr.order-total {
  border-top: 2px solid #f1f1f1;
  border-bottom: 2px solid #f1f1f1;
}

body.woocommerce-cart .woocommerce-cart-form img {
  max-width: 80px;
  height: auto;
}

body.woocommerce-cart .woocommerce-cart-form input[type='number'] {
  width: 50px;
  height: auto;
  border: 1px solid #cacaca;
  padding: 3px 6px;
}

body.woocommerce-cart .woocommerce-cart-form button {
  float: right;
  width: auto;
  height: auto;
  display: block;
  background-color: #cc0000;
  color: #fff;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  margin-bottom: 5px;
  text-align: center;
  border: none;
}

body.woocommerce-cart .cart-collaterals .wc-proceed-to-checkout a {
  width: 100%;
  height: auto;
  display: block;
  background-color: #cc0000;
  color: #fff;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 20px;
  margin-bottom: 15px;
  text-align: center;
}

body.woocommerce-cart .cart-collaterals .wc-proceed-to-checkout a:hover {
  background-color: #800000;
}

body.woocommerce-cart a.remove {
  background-color: red;
  padding: 0px 5px;
  border-radius: 50%;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.8rem;
  margin: 0 10px;
}

/* Esconde o botão de atualização do carrinho */
.woocommerce-cart .actions .button[name='update_cart'] {
  display: none !important;
}

body.woocommerce-cart .woocommerce-cart-form thead tr {
  background-color: #d9534f;
  color: #ffffff;
  min-height: 50px;
}

.woocommerce-cart .product-quantity {
  text-align: center !important;
}

.woocommerce-cart .product-quantity .quantity {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.woocommerce-cart-form__cart-item.cart_item {
  /*border-bottom: 3px solid #f1f1f1;*/
}

/* Esconde o endereço padrão vindo do CEP na página do carrinho */
body.woocommerce-cart .woocommerce-shipping-destination {
  display: none;
}

/* Ocultar todos os campos do formulário */
.woocommerce-cart .shipping-calculator-form p {
  display: none !important;
}

/* Mostrar apenas o campo CEP */
.woocommerce-cart .shipping-calculator-form p#calc_shipping_postcode_field {
  display: block !important;
  margin-top: 10px;
}

/* Label do CEP (acima do input) */
.woocommerce-cart #calc_shipping_postcode_field > label {
  display: block !important;
  margin-bottom: 5px;
}

/* Estilo do input CEP */
.woocommerce-cart #calc_shipping_postcode {
  border: 1px solid #cacaca;
  padding: 3px 6px;
  max-width: 120px;
}

/* Mostrar o botão "Atualizar" */
.woocommerce-cart .shipping-calculator-form p:has(button[name='calc_shipping']) {
  display: block !important;
}

/* Agrupar CEP + botão na mesma linha */
.woocommerce-cart .shipping-calculator-form {
  display: flex !important;
  align-items: flex-end; /* botão alinha na parte inferior */
  gap: 10px;
  flex-wrap: wrap; /* melhor em telas pequenas */
}

/* Estilo final do botão */
.woocommerce-cart .shipping-calculator-form button[name='calc_shipping'] {
  display: inline-block !important;
  background-color: #cc0000;
  color: #ffffff;
  border: none;
  padding: 4px 10px;
  border-radius: 5px;
  margin: 0 !important; /* evita desalinhamento */
}

/*************************/

/* Página de Produto Individual */

body.single-product header {
  margin-bottom: 50px;
}

body.single-product .single_add_to_cart_button,
#wc-shipping-sim-form-fields button {
  float: left;
  width: auto;
  height: auto;
  display: block;
  background-color: #cc0000;
  color: #fff;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  margin: 10px 0;
  text-align: center;
  border: none;
}

.rm-pagbank-price {
  font-size: 1.2em !important;
  font-family: 'Poppins', sans-serif;
}

.rm-pagbank-price .icon-pix {
  display: none !important;
}

p.instructions,
#wc-rm-pagbank-cc-form {
  padding: 15px 0;
}
.woocommerce-checkout-payment li label {
  font-weight: bold;
}

body.single-product .rm-pagbank-price {
  margin-bottom: 25px !important;
  font-size: 1.2em;
  font-family: 'Poppins', sans-serif;
}

#wc-shipping-sim-form-fields .input-postcode,
#wc-shipping-sim-form-fields button {
  height: 2.8rem !important;
  padding: 0 10px !important;
  width: 150px !important;
}

#wc-shipping-sim {
  border: none;
  margin: 20px 0;
  background-color: #f1f1f1;
  padding: 10px;
  border-radius: 5px;
}

body.single-product input[type='number'],
body.single-product .input-postcode {
  border: 1px solid #cacaca;
  border-radius: 0 !important;
  padding: 10px;
  margin: 10px 0;
  width: 80px;
}

body.single-product .product-gallery img {
  border: 1px solid #f1f1f1;
}

body.single-product .variation-field label {
  display: block;
}

body.single-product .variation-field select {
  padding: 10px;
  margin: 5px 0;
  border: 1px solid #f1f1f1;
  display: block;
}

body.single-product .cart {
  background-color: #f1f1f1;
  padding: 10px;
  margin: 15px 0;
  border-radius: 5px;
}

body.single-product h1 {
  margin-bottom: 30px;
  text-align: left !important;
  font-weight: bold;
}

body.single-product h1::after {
  content: '';
  display: block;
  width: 80px;
  height: 1px;
  background-color: #cc0000;
  margin-top: 5px;
  margin-left: 0;
  /*margin-left: auto;
  margin-right: auto;*/
}

body.single-product h4 {
  margin: 30px 0;
  font-weight: bold;
}

body.single-product .col-md-5 .price {
  font-size: 1.2rem;
  margin-top: 25px;
}

.preco-promocional s {
  color: #888;
}

body.single-product .col-md-5 p {
  font-size: 1rem;
  margin: 30px 0;
}

/* Produto simples */
body.single-product form.cart:not(.variations_form) {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Produto variável */
body.single-product .variations_button {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.single-product #pa_cor,
body.single-product #pa_sabor,
body.single-product #pa_tamanho {
  background-color: #ffffff !important;
}

/* Variações fora de estoque no select */
.variations select option.variation-out-of-stock {
  color: #999 !important;
  opacity: 0.5;
}

/* Garante que selects e preço fiquem empilhados */
body.single-product .single_variation_wrap {
  display: block;
}

body.single-product .col-md-5 .pix-5off-home {
  font-size: 2rem;
}

.card {
  position: relative;
  overflow: hidden;
}

.card .main-image,
.card .hover-image {
  width: auto;
  height: auto;
  transition: opacity 0.6s ease;
  display: block;
  margin: 0 auto;
}

.card .hover-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  z-index: 1;
}

.card:hover .hover-image {
  opacity: 1;
}

.card:hover .main-image {
  opacity: 0;
}

.card img {
  transition: opacity 0.6s ease;
}

/* Estado loading do botão de frete */
.button.submit.loading {
  position: relative;
  pointer-events: none;
  color: transparent !important;
}

/* Spinner */
.button.submit.loading::after {
  content: '';
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: spinner 0.5s linear infinite;
}

/* Animação */
@keyframes spinner {
  to {
    transform: rotate(360deg) translate(-50%, -50%);
  }
}

/* Tabs para descrição longa e avaliações */
.woocommerce-tabs .nav-tabs .nav-link {
  font-weight: 700; /* negrito */
  color: #ff0080; /* cor padrão */
}

/* Aba ativa */
.woocommerce-tabs .nav-tabs .nav-link.active {
  color: #000000; /* cor da aba ativa */
  border-bottom: 3px solid #000000; /* destaque */
}

.woocommerce-tabs .tab-content > .active {
  /*margin-top: 40px;*/
  padding: 25px;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  background: #fff;
}

/* ====================================================================
   ÁREA GERAL DE AVALIAÇÕES
   ==================================================================== */

/* Título das avaliações */
#reviews .woocommerce-Reviews-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #cc0000;
}

/* Nenhuma avaliação ainda */
#reviews .woocommerce-noreviews {
  font-size: 16px;
  color: #555;
  background: #fafafa;
  padding: 12px 18px;
  border-left: 4px solid #cc0000;
  border-radius: 6px;
}

/* ====================================================================
   FORMULÁRIO DE AVALIAÇÃO
   ==================================================================== */
#review_form_wrapper {
  margin-top: 35px;
}

#respond {
  border: 1px solid #eee;
  padding: 25px;
  border-radius: 10px;
  background: #fafafa;
}

/* Título do formulário */
#respond .comment-reply-title {
  display: block;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
}

/* Labels */
#respond label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  color: #444;
}

/* Campos */
#respond input[type='text'],
#respond input[type='email'],
#respond textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 15px;
  transition: border 0.2s ease;
}

#respond input:focus,
#respond textarea:focus {
  border-color: #cc0000;
  box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.15);
  outline: none;
}

#respond input[type='submit'] {
  background-color: #cc0000;
  color: #ffffff;
  height: auto;
  display: block;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  margin: 15px 0;
  text-align: center;
  border: none;
}

#respond input[type='submit']:hover {
  background-color: #800000;
}

/* Checkbox */
#respond input[type='checkbox'] {
  accent-color: #cc0000;
}

/* Nome e Email lado a lado no formulário */
#respond form .comment-form-author,
#respond form .comment-form-email {
  width: 48%;
  float: left;
} /* Remove margem do segundo campo (email) */
#respond form .comment-form-email {
  margin-left: 4%;
} /* Modo responsivo: ficar empilhados no mobile */
@media (max-width: 762px) {
  #respond form .comment-form-author,
  #respond form .comment-form-email {
    width: 100%;
    float: none;
    margin-left: 0;
  }
}

/* ============================================================
   FORMULÁRIO — ESTRELAS (p.stars)
   ============================================================ */
p.stars {
  display: inline-flex;
  gap: 4px;
  margin: 0;
  padding: 0;
}

p.stars a {
  position: relative;
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  text-indent: -9999px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none !important;
}

/* ícone vazio (estrela vazia) */
p.stars a::before {
  content: '☆';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-indent: 0;
  font-size: 1.5em;
  line-height: 1;
  color: #ccc;
  text-align: center;
  transition: all 0.2s ease;
}

/* ícone preenchido (quando ativo ou hover) */
p.stars a.active::before,
p.stars.selected a:not(.active)::before {
  content: '★';
  color: #f2b01e;
}

/* hover: ilumina a estrela e as anteriores */
p.stars:hover a::before {
  content: '★';
  color: #f2b01e;
}

/* hover: apaga as seguintes */
p.stars a:hover ~ a::before {
  content: '☆';
  color: #ccc;
}

/* após a ativa, as seguintes voltam ao cinza */
p.stars.selected a.active ~ a::before {
  content: '☆';
  color: #ccc;
}

/* ============================================================
   EXIBIÇÃO DAS ESTRELAS DOS COMENTÁRIOS (WooCommerce)
   ============================================================ */

.woocommerce .star-rating {
  position: relative;
  display: inline-block;
  width: 5.4em;
  height: 1.2em;
  font-size: 1em;
  line-height: 1.2;
  font-family: Arial, sans-serif;
  letter-spacing: 0.2em;
  overflow: hidden;
}

/* base — 5 estrelas vazias */
.woocommerce .star-rating::before {
  content: '☆☆☆☆☆';
  color: #ddd;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* container do preenchimento */
.woocommerce .star-rating span {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  overflow: hidden;
}

/* 5 estrelas preenchidas (sendo cortadas pela width) */
.woocommerce .star-rating span::before {
  content: '★★★★★';
  color: #f2b01e;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ============================================================
   MENSAGEM "AVALIAÇÃO X DE 5"
   ============================================================ */

/* Esconde o texto que aparece junto com as estrelas */
.woocommerce .star-rating strong,
.woocommerce .star-rating span > span {
  display: none !important;
}

/* Se quiser manter a mensagem mas estilizá-la: */
/*
.woocommerce .star-rating strong {
  font-size: 0.8em;
  color: #666;
  margin-left: 10px;
  font-weight: normal;
  display: inline !important;
}
*/

/* ============================================================
   AJUSTES PARA WOOCOMMERCE NATIVO
   ============================================================ */

/* Para garantir compatibilidade com o sistema de rating do WooCommerce */
.woocommerce-product-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

/* Remove qualquer conteúdo extra que possa estar aparecendo */
.woocommerce .star-rating::after {
  display: none;
}

/* ============================================================
   CORREÇÃO PARA EXIBIÇÃO EM DIFERENTES CONTEXTOS
   ============================================================ */

/* Comentários existentes */
#comments .star-rating,
.woocommerce-review__rating .star-rating {
  float: none;
  margin-right: 10px;
  vertical-align: middle;
}

/* Página do produto */
.product .star-rating {
  margin: 5px 0;
}

.woocommerce .star-rating span {
  overflow: hidden;
  color: transparent !important; /* esconde todo o texto */
  font-size: 0 !important;
}

.woocommerce .star-rating span::before {
  color: #f2b01e; /* ou #ffb400 */
  /*font-size: 1.1rem !important; /* tamanho das estrelas – ajuste ao seu gosto */
  font-size: initial;
  line-height: 1.3 !important;
}

/* ============================================================
   RESPONSIVIDADE
   ============================================================ */

@media (max-width: 768px) {
  /*.woocommerce .star-rating {
    font-size: 1em;
  }*/

  p.stars a {
    width: 1.3em;
    height: 1.3em;
  }

  p.stars a::before {
    font-size: 1.3em;
  }
}

/******************************************************************************/
/* Página de Finalização da Compra (Checkout) */

body.woocommerce-checkout header {
  /*margin-bottom: 50px;*/
}

body.woocommerce-checkout h3 {
  background-color: #f1f1f1;
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 5px;
  font-size: 1.2rem;
  font-weight: bold;
}

/* Esconder o segundo <h3> "Seu pedido" */
body.woocommerce-checkout h3:nth-of-type(2) {
  display: none;
}

body.woocommerce-checkout .woocommerce-button {
  background-color: #cc0000;
  color: #ffffff;
  padding: 10px 15px;
  border-radius: 5px;
  border: none;
}

body.woocommerce-checkout .woocommerce-button:hover {
  background-color: #800000;
}

body.woocommerce-checkout .col-1 {
  width: 49%;
  float: left;
  padding: 20px;
  border: 2px solid #f1f1f1;
  /*box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  border-radius: 5px;*/
  /*background-color: #f9f9f9;*/
}

body.woocommerce-checkout .col-1 label {
  margin-bottom: 10px;
  /*font-weight: 600;*/
}

label[for='billing_country'] {
  margin: 15px 0;
}

body.woocommerce-checkout input[type='text'],
body.woocommerce-checkout input[type='password'],
body.woocommerce-checkout input[type='email'],
body.woocommerce-checkout input[type='tel'],
body.woocommerce-checkout textarea {
  display: block;
  border: 1px solid #cacaca;
  padding: 10px;
  width: 100%;
}

body.woocommerce-checkout .select2-container--default .select2-selection--single {
  border-radius: 0;
  padding: 8px 0;
  border: 1px solid #cacaca;
  height: 46px;
}

body.woocommerce-checkout .col-2 {
  width: 49%;
  float: right;
  /*padding: 10px;*/
  background-color: blueviolet;
}

#order_review {
  width: 49%;
  float: right;
  padding: 20px;
  border: 2px solid #f1f1f1;
  /*box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  border-radius: 5px;*/
  /*background-color: #f9f9f9;*/
}

/* Checkout: organiza os campos em 2 colunas */
body.woocommerce-checkout .col-1 .woocommerce-billing-fields__field-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 colunas iguais */
  column-gap: 20px; /* gap horizontal */
  row-gap: 0; /* sem espaço vertical */
}

/* Campos que devem ocupar linha inteira */
body.woocommerce-checkout .col-1 .form-row-wide {
  grid-column: 1 / -1; /* força a ocupar as 2 colunas */
}

body.woocommerce-checkout .col-2 .woocommerce-additional-fields {
  display: none !important;
}

.col2-set {
  /*background-color: cadetblue;*/
  /*padding: 20px;*/
}

#order_review_heading {
  /*display: none;*/
}

#order_review > h3:not(:first-of-type) {
  display: none;
}

/* Esconde o campo número do formulário de finalização de compra */
body.woocommerce-checkout #billing_number_field {
  display: none;
}

.woocommerce-form-login-toggle {
  margin-bottom: 20px;
}

body.woocommerce-checkout #place_order {
  background-color: #cc0000;
  color: #ffffff;
  padding: 10px 15px;
  border-radius: 5px;
  border: none;
  width: 100%;
}
body.woocommerce-checkout #place_order:hover {
  background-color: #800000;
}

.checkout-inline-error-message {
  color: #cc0000;
  font-weight: bold;
}

.woocommerce-NoticeGroup-checkout {
  display: none;
}

/***********************/

.woocommerce-checkout-review-order-table {
  /*background-color: #28a745;*/
  width: 100%;
  background-color: #ffffff;
  padding: 10px;
}

.woocommerce-checkout-review-order-table,
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
  border: 2px solid #f1f1f1 !important;
  border-collapse: collapse !important;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
  padding: 8px 10px; /* opcional, só para ficar bonito */
}

.woocommerce-checkout-review-order-table th {
  background-color: #d9534f;
  color: #ffffff;
}

/* ====== BLOCO DOS PRODUTOS ====== */
.woocommerce-checkout-review-order-table tbody .cart_item {
  /*border-bottom: 1px solid #e5e5e5;
  padding-bottom: 10px;*/
}

.woocommerce-checkout-review-order-table tbody .cart_item:last-of-type {
  margin-bottom: 20px;
}

/* ====== SEPARAÇÃO DO SUBTOTAL ====== */
.woocommerce-checkout-review-order-table tfoot .cart-subtotal {
  /*border-bottom: 2px solid #ddd;
  padding-top: 16px;
  margin-top: 20px;*/
  /*background-color: #28a745;*/
  font-weight: bold;
}

/* ====== SEPARAÇÃO DO FRETE ====== */
.woocommerce-checkout-review-order-table tfoot .shipping,
.woocommerce-checkout-review-order-table tfoot .woocommerce-shipping-totals {
  /*border-top: 2px solid #ddd;
  padding-top: 16px;
  margin-top: 20px;*/
}

/* ====== SEPARAÇÃO DO TOTAL ====== */
.woocommerce-checkout-review-order-table tfoot .order-total {
  /*border-top: 3px solid #222;*/
  /*padding-top: 20px;
  margin-top: 20px;
  font-size: 1.2rem;*/
  font-weight: bold;
}

/* espaçamento acima de um grupo */
.woocommerce-checkout-review-order-table .cart-subtotal::before,
.woocommerce-checkout-review-order-table .order-total::before {
  /*content: '';
  display: block;
  height: 1px;*/
  background-color: #ffffff;
}

/* SOLUÇÃO DEFINITIVA - LINHA DE ENTREGA COM COLUNAS MAIORES */
table.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals.shipping {
  display: table !important;
  width: 100% !important;
  table-layout: fixed !important;
}

table.woocommerce-checkout-review-order-table tr.shipping th {
  width: 25% !important;
  min-width: 120px !important;
  vertical-align: middle !important;
  padding-top: 15px;
  font-weight: 600;
  background-color: #ffffff;
  color: #000000;
}

.woocommerce-checkout-review-order-table input[type='radio'] {
  margin-right: 5px;
}

table.woocommerce-checkout-review-order-table tr.shipping td {
  /*width: 80% !important;
  min-width: 250px !important;
  vertical-align: top;*/
}

/* MELHORA A APARÊNCIA DAS OPÇÕES DE FRETE */
table.woocommerce-checkout-review-order-table tr.shipping td ul#shipping_method li {
  padding: 8px 0 !important;
  margin-bottom: 5px !important;
}

.woocommerce-checkout-review-order-table img {
  margin: 5px 0;
}

.woocommerce-checkout-review-order-table dt,
dd,
dl {
  display: inline-block;
  margin: 0;
}

/***********************/

#order_review .woocommerce-shipping-methods li {
  list-style: none !important;
  margin: 10px 0;
}

#order_review .woocommerce-checkout-payment li {
  list-style: none !important;
  margin: 10px 0;
}

.woocommerce-shipping-methods label {
  display: inline;
  /*margin: 5px;*/
}

.woocommerce-checkout-payment {
  background-color: #ffffff;
  padding: 20px;
}

.woocommerce-checkout-payment label {
  display: inline;
}

.woocommerce-checkout-payment #wc-rm-pagbank-cc-form select {
  display: block;
  border: 1px solid #cacaca;
  padding: 5px;
}

.woocommerce-checkout-payment .woocommerce-terms-and-conditions {
  border: 1px solid #cacaca;
  padding: 10px;
}

/******************/

/* Garante referência de posição */
.woocommerce-form__label-for-checkbox span {
  /*position: relative;
  cursor: help;*/
}

/* Tooltip */
/*.woocommerce-form__label-for-checkbox span::after {
  content: 'Criar uma conta permite acompanhar seus pedidos e comprar mais rápido nas próximas vezes.';
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  background: #222;
  color: #fff;
  padding: 10px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
  z-index: 999;
}

/* Exibe ao passar o mouse */
/*
.woocommerce-form__label-for-checkbox span:hover::after {
  opacity: 1;
  visibility: visible;
}*/

/* SOMENTE "Criar uma conta?" */
.woocommerce-account-fields .woocommerce-form__label-for-checkbox span::before,
.woocommerce-account-fields .woocommerce-form__label-for-checkbox span::after {
  position: static;
  transform: none;
  opacity: 1;
  visibility: visible;
  background: none;
  padding: 0;
}

/* Texto explicativo APENAS no criar conta */
.woocommerce-account-fields .woocommerce-form__label-for-checkbox span::after {
  content: ' (Criar uma conta permite acompanhar seus pedidos e comprar mais rápido nas próximas vezes.)';
  font-size: 12px;
  color: #666;
  display: block;
  margin-top: 4px;
}

/*****************/

/* ===== Sidebar Loja Minimalista ===== */
aside {
  border: 1px solid #f1f1f1;
  padding: 10px 0;
  border-radius: 5px;
  /*background-color: #f1f1f1;*/
  margin-bottom: 20px;
}

.sidebar-lateral-loja h3,
.sidebar-topo-loja h3,
.sidebar-lateral-loja h4,
.sidebar-topo-loja h4 {
  font-size: 1rem;
  font-weight: bold;
}

.sidebar-lateral-loja ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-lateral-loja li {
  margin: 3px 0;
}

/* Categoria principal (primeiro nível) */
.sidebar-lateral-loja ul > li > a {
  /*font-weight: 700; */
  color: #cc0000;
  text-decoration: none;
  padding: 5px 6px;
  display: inline-block;
  border-radius: 4px;
  transition: color 0.2s;
  font-size: 1rem;
}

.sidebar-lateral-loja ul > li > a:hover {
  color: #800000;
}

/* Filtro de buscas no topo por padrão oculto */
.sidebar-topo-loja {
  display: none;
}

/* Subcategorias (nível 2 ou mais) */
.sidebar-lateral-loja ul li ul li a {
  font-weight: normal;
  color: #cc0000;
  text-decoration: none;
  padding: 5px 6px;
  display: inline-block;
  border-radius: 4px;
  transition: color 0.2s;
  font-size: 0.9rem;
}

.sidebar-lateral-loja ul li ul li a:hover {
  color: #800000;
}

/* Número de produtos discreto */
.sidebar-lateral-loja li .count {
  font-size: 0.7rem;
  color: #888;
  margin-left: 0px;
  display: none;
}

/* Recuo para subcategorias */
.sidebar-lateral-loja li ul {
  padding-left: 15px; /* subitens recuados */
}

/****************/

/* Botão mobile */
#toggle-avancada-btn {
  display: none;
  width: 100%;
  padding: 14px 15px;
  margin: 15px 0;
  background: #cc0000;
  color: #fff;
  border: none;
  border-radius: 6px;
}

/* Wrapper com animação mais robusta */
#sidebar-topo-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

/* Quando aberto */
#sidebar-topo-wrapper.open {
  max-height: 100vh; /* altura suficiente para qualquer sidebar */
}

/* Desktop: sempre aberto */
@media (min-width: 768px) {
  #toggle-avancada-btn {
    display: none !important;
  }
  #sidebar-topo-wrapper {
    max-height: none !important;
  }
}

/* Mobile: botão visível + sidebar fechada por padrão */
@media (max-width: 767px) {
  #toggle-avancada-btn {
    display: block;
  }
}

/*****************/

/* ===== Slider de Preço ===== */
.sidebar-lateral-loja .widget_price_filter {
  margin-top: 15px;
}

/* Cor das bolinhas do filtro de preço */
/*.wc-block-components-price-slider__range-input::-webkit-slider-thumb {
  background-color: #cc0000 !important;
  border-color: #cc0000 !important;
}

.wc-block-components-price-slider__range-input::-moz-range-thumb {
  background-color: #cc0000 !important;
  border-color: #cc0000 !important;
}*/

/* WebKit (Chrome, Edge, Safari) */
.wc-block-product-filter-price-slider input[type='range']::-webkit-slider-thumb {
  background: red !important;
}

/* Firefox */
.wc-block-product-filter-price-slider input[type='range']::-moz-range-thumb {
  background: red !important;
}

/* Para garantir contraste ao focar */
.wc-block-product-filter-price-slider input[type='range']:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.4) !important;
}

/* Valores do preço */
.sidebar-lateral-loja .widget_price_filter .price_label,
.wc-block-product-filter-price-slider {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center;
  /*font-weight: 600;*/
  font-size: 16px;
  color: #333;
  margin: 15px 0;
}

/* Botão dos filtros */
.reset-filters {
  font-size: 14px;
  padding: 6px 12px;
  background: #cc0000;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
  width: 100% !important;
  display: block;
}

.reset-filters:hover {
  background: #800000;
}

.wc-block-product-filters__open-overlay {
  display: none;
}
/************************************/

/* Slider de preço - 100% igual ao WooCommerce oficial */

.widget_price_filter .price_slider {
  background-color: #f0f0f0;
  border-radius: 5px;
  height: 5px;
  margin: 20px 10px 0 10px;
  position: relative;
}

.widget_price_filter .ui-slider-range {
  background: #000000 !important;
  border-radius: 5px;
  height: 100%;
}

.widget_price_filter .ui-slider-handle {
  background: #cc0000 !important;
  border: 3px solid #000000 !important;
  width: 16px !important;
  height: 16px !important;
  border-radius: 50% !important;
  top: -7px !important;
  cursor: grab;
}

.widget_price_filter .ui-slider-handle:hover {
  border: 3px solid #ffffff !important;
}

.widget_price_filter .ui-slider-handle:active {
  cursor: grabbing;
}

.widget_price_filter .button:hover {
  background: #aa0000 !important;
}

/* Página rastrear pedido */
.form-rastreio {
  max-width: 400px;
  margin: 30px auto;
}

.form-rastreio input,
.form-rastreio button {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
}

.btn-rastrear {
  display: inline-block;
  margin-top: 5px;
  padding: 10px 20px;
  background-color: #cc0000;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  border: none;
  transition: 0.3s ease;
}

.btn-rastrear:hover {
  background-color: #800000;
}

/******************/

/* Mobile */
@media (max-width: 767px) {
  /*.widget_price_filter {
    padding: 18px;
    border-radius: 12px;
    background: #fdfdfd;
  }*/
}

.widget_price_filter .button {
  display: none !important;
}

.price_slider {
  margin: 20px 0;
  height: 6px;
  background: #e0e0e0;
  border-radius: 5px;
  position: relative;
}
.ui-slider-range {
  background: #cc0000 !important;
  height: 100%;
  border-radius: 5px;
}
.ui-slider-handle {
  background: #fff !important;
  border: 3px solid #cc0000 !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  top: -7px !important;
  margin-left: -10px !important;
}
.price_label {
  /*text-align: center;*/
  /*font-weight: 600;*/
  font-size: 16px;
  color: #333;
  margin: 10px 0;
}

/********************************/

/* Avisos do site */

.woocommerce-notices-wrapper {
  display: block; /* garante que quebre a linha */
  width: 100%; /* ocupa toda a largura disponível */
  clear: both; /* empurra abaixo de floats, se houver */
}

.woocommerce-notices-wrapper li {
  list-style-type: none;
}

.woocommerce-message,
.woocommerce-error {
  background-color: #f1f1f1;
  padding: 10px;
  margin-bottom: 25px;
}

.woocommerce-message li,
.woocommerce-error li {
  list-style: none;
}

/****************/

@media (max-width: 768px) {
  .search-box {
    margin-top: 10px;
  }

  .link-item span:not(.cart-count) {
    display: none;
  }
  .d-md-none {
    transform: translateX(-15px) !important;
    margin-left: -15px;
  }

  .cart-count {
    right: -25px !important;
    margin-right: 5px;
  }

  .link-item {
    flex-direction: column;
  }
  body.woocommerce-checkout .col-1 {
    width: 100%;
  }

  #order_review {
    width: 100%;
    margin-top: 20px;
  }

  body.woocommerce-account .u-columns {
    display: block;
  }
  body.woocommerce-account .u-column1.col-1,
  body.woocommerce-account .u-column2.col-2 {
    width: 100% !important;
    max-width: 100% !important;
    display: block;
  }
  body.woocommerce-account .col-1,
  .woocommerce-MyAccount-navigation {
    width: 100%;
  }
  body.woocommerce-account .col-2,
  .woocommerce-MyAccount-content {
    width: 100%;
  }
  /*.woocommerce-ordering {
    margin-top: 20px;
  }*/
  body.post-type-archive-product .orderby,
  body.tax-product_cat .orderby {
    float: none;
    margin-bottom: 20px;
    width: 100%;
    margin-left: 0;
  }
  /* Botões do blog e post individual */
  body.blog article .btn,
  .botao-voltar-container .btn,
  .single-post .btn-blog {
    width: 100% !important;
    margin: 0;
  }
  body.blog article .col-md-8 {
    /*background-color: #2271b1;*/
    padding: 30px !important;
  }
  aside {
    /*display: none;*/
  }
  .sidebar-lateral-loja {
    display: none;
  }
  .sidebar-topo-loja {
    display: block;
    animation: slideDown 0.3s ease;
  }
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
