/* ========== COVIL — IDENTIDADE VISUAL ========== */

/* CABEÇALHO ORIGINAL: FALLBACK SEM JAVASCRIPT */
#cabecalho {
  background: #591a20 !important;
  border-bottom: 2px solid #c5a05b;
}

#cabecalho .busca {
  background: #faf5ec !important;
  border-color: #c5a05b !important;
}

#cabecalho .busca input {
  background: transparent !important;
  color: #591a20 !important;
}

#cabecalho .busca .botao-busca {
  background: transparent !important;
  border: 0 !important;
  color: #591a20 !important;
  box-shadow: none !important;
}

/* CABEÇALHO NOVO */
.cv-header,
.cv-header *,
.cv-benefits,
.cv-benefits *,
.cv-products,
.cv-products * {
  box-sizing: border-box;
}

.cv-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: #591a20;
  border-bottom: 2px solid #c5a05b;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}

body.cv-ready #cabecalho {
  display: none !important;
}

body.cv-ready .barra-inicial {
  display: none !important;
}

.cv-header-inner {
  display: flex;
  align-items: center;
  max-width: 1200px;
  min-height: 88px;
  padding: 12px 20px;
  margin: 0 auto;
}

.cv-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 90px;
  color: #ffffff;
  text-decoration: none;
}

.cv-logo img {
  display: block;
  width: auto;
  height: 64px;
  max-width: 100%;
  object-fit: contain;
}

.cv-logo span {
  font-family: Georgia, serif;
  font-size: 18px;
  line-height: 22px;
}

.cv-search {
  display: flex;
  flex: 1;
  min-width: 0;
  margin: 0 24px;
  padding: 0;
  background: #faf5ec;
  border: 1px solid #c5a05b;
  border-radius: 7px;
}

.cv-search input {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 14px;
  background: transparent;
  border: 0;
  border-radius: 7px;
  box-shadow: none;
  color: #451419;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

.cv-search input:focus {
  background: transparent;
  box-shadow: none;
}

.cv-search input::placeholder {
  color: #796b5b;
  opacity: 1;
}

.cv-search button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  color: #591a20;
  cursor: pointer;
}

.cv-actions {
  display: flex;
  align-items: center;
}

.cv-icon {
  display: block;
  flex-shrink: 0;
  width: 23px;
  height: 23px;
}

.cv-action,
.cv-dropdown > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  background: transparent;
  border: 0;
  border-radius: 5px;
  color: #ffffff;
  cursor: pointer;
  text-decoration: none;
  list-style: none;
}

.cv-action:hover,
.cv-dropdown > summary:hover {
  background: #753039;
  color: #ffffff;
  text-decoration: none;
}

.cv-dropdown > summary::-webkit-details-marker {
  display: none;
}

.cv-action-label {
  margin-left: 7px;
  font-size: 12px;
  line-height: 17px;
}

.cv-dropdown {
  position: relative;
}

.cv-panel {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1010;
  width: 260px;
  max-width: 88vw;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #e5ddd1;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  color: #514640;
}

.cv-panel-title {
  margin: 0;
  padding: 10px;
  border-bottom: 1px solid #eee6db;
  color: #591a20;
  font-size: 14px;
  font-weight: bold;
}

.cv-panel a {
  display: block;
  padding: 11px 10px;
  border-radius: 4px;
  color: #514640;
  font-size: 13px;
  line-height: 20px;
  text-decoration: none;
  word-wrap: break-word;
}

.cv-panel a:hover {
  background: #faf5ec;
  color: #591a20;
}

.cv-count {
  display: inline-block;
  min-width: 18px;
  margin-left: 4px;
  padding: 1px 4px;
  background: #d9b978;
  border-radius: 12px;
  color: #451419;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}

.cv-count[hidden] {
  display: none;
}

.cv-menu-button {
  display: none;
}

.cv-desktop-nav {
  background: #451419;
  border-top: 1px solid #78413e;
}

.cv-desktop-nav-inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.cv-desktop-nav a {
  display: block;
  padding: 11px 22px;
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  line-height: 22px;
  text-decoration: none;
}

.cv-desktop-nav a:hover {
  background: #753039;
}

.cv-mobile-search {
  display: none;
}

/* FAIXA DE BENEFÍCIOS */
.cv-benefits {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 6px 12px;
  background: #faf5ec;
  border-bottom: 1px solid #e5ddd1;
  color: #591a20;
  font-family: Arial, Helvetica, sans-serif;
}

.cv-benefit-text {
  flex: 1;
  max-width: 650px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: bold;
  line-height: 20px;
  text-align: center;
}

.cv-benefits button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 30px;
  padding: 0;
  background: transparent;
  border: 1px solid #d8c7aa;
  border-radius: 4px;
  color: #591a20;
  cursor: pointer;
  font-size: 15px;
}

/* VITRINES ORIGINAIS NO COMPUTADOR */
#corpo .listagem .titulo-categoria {
  padding-bottom: 12px;
  border-color: #c5a05b !important;
  color: #591a20 !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: normal;
  line-height: 1.3;
}

#corpo .listagem .listagem-item {
  background: #ffffff;
  border: 1px solid #e5ddd1;
  border-radius: 8px;
}

#corpo .listagem .nome-produto {
  color: #302725 !important;
}

#corpo .listagem .preco-promocional {
  color: #591a20 !important;
  font-weight: bold;
}

#corpo .botao.principal,
#corpo .botao-comprar,
#corpo .tag-comprar {
  background: #591a20 !important;
  background-image: none !important;
  border-color: #591a20 !important;
  border-radius: 5px;
  color: #ffffff !important;
  text-shadow: none !important;
}

#corpo .botao.principal:hover,
#corpo .botao-comprar:hover,
#corpo .tag-comprar:hover {
  background: #753039 !important;
  border-color: #753039 !important;
}

/* VITRINE MOBILE INDEPENDENTE DO CARROSSEL */
.cv-products {
  display: none;
  font-family: Arial, Helvetica, sans-serif;
}

.cv-product {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #e5ddd1;
  border-radius: 7px;
}

.cv-product-picture {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  margin-bottom: 12px;
  background: #ffffff;
  text-decoration: none;
}

.cv-product-picture img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cv-product-name {
  display: block;
  min-height: 40px;
  margin-bottom: 10px;
  color: #302725;
  font-size: 13px;
  font-weight: bold;
  line-height: 20px;
  text-align: center;
  text-decoration: none;
  word-wrap: break-word;
}

.cv-product-name:hover {
  color: #591a20;
}

.cv-product-pricing {
  margin-top: auto;
  text-align: center;
}

.cv-product-old {
  display: block;
  min-height: 17px;
  color: #85796e;
  font-size: 10px;
  line-height: 17px;
  text-decoration: line-through;
}

.cv-product-price {
  display: block;
  color: #591a20;
  font-size: 19px;
  font-weight: bold;
  line-height: 27px;
}

.cv-product-installment {
  min-height: 32px;
  margin: 4px 0 10px;
  color: #756b62;
  font-size: 10px;
  line-height: 16px;
}

.cv-product-button {
  display: block;
  width: 100%;
  padding: 10px 5px;
  background: #591a20;
  border-radius: 5px;
  color: #ffffff;
  font-size: 13px;
  font-weight: bold;
  line-height: 20px;
  text-align: center;
  text-decoration: none;
}

.cv-product-button:hover {
  background: #753039;
  color: #ffffff;
  text-decoration: none;
}

/* NEWSLETTER */
#barraNewsletter,
#barraNewsletter .componente {
  background: #faf5ec !important;
  color: #591a20 !important;
  border-color: #e5ddd1 !important;
  box-shadow: none !important;
}

#barraNewsletter .titulo,
#barraNewsletter .texto-newsletter,
#barraNewsletter .texto-newsletter span {
  color: #591a20 !important;
}

#barraNewsletter input {
  background: #ffffff !important;
  border-color: #d8c7aa !important;
  color: #514640 !important;
  box-shadow: none !important;
}

#barraNewsletter button,
#barraNewsletter .botao {
  background: #591a20 !important;
  background-image: none !important;
  border-color: #591a20 !important;
  color: #ffffff !important;
  text-shadow: none !important;
}

/* RODAPÉ */
#rodape .institucional {
  background: #591a20 !important;
  background-image: none !important;
  border-top: 3px solid #c5a05b;
}

#rodape .institucional,
#rodape .institucional p,
#rodape .institucional li,
#rodape .institucional a {
  color: #ffffff !important;
}

#rodape .institucional .titulo {
  color: #e3c68e !important;
  font-size: 15px;
  font-weight: bold;
}

#rodape .institucional a:hover {
  color: #e3c68e !important;
}

/* PAGAMENTOS COM CONTRASTE */
#rodape .institucional .pagamento,
#rodape .pagamento-selos .pagamento {
  padding: 16px !important;
  background: #ffffff !important;
  border: 1px solid #e5ddd1 !important;
  border-radius: 8px;
  box-sizing: border-box;
  color: #514640 !important;
}

#rodape .institucional .pagamento .titulo,
#rodape .pagamento-selos .pagamento .titulo {
  color: #591a20 !important;
  border-color: #e5ddd1 !important;
}

#rodape .pagamento .bandeiras-pagamento,
#rodape .pagamento .gateways-rodape {
  background: transparent !important;
  border: 0 !important;
}

#rodape .pagamento li,
#rodape .pagamento a,
#rodape .pagamento img,
#rodape .pagamento .icone-pagamento,
#rodape .selos img {
  opacity: 1 !important;
  filter: none !important;
  -webkit-filter: none !important;
}

#rodape .gateways-rodape img {
  max-width: 100%;
  height: auto;
}

#rodape .selos img {
  background: #ffffff;
  border-radius: 8px;
}

#rodape .pagamento-selos {
  background: #ffffff !important;
}

#rodape > div:last-child {
  background: #ffffff !important;
  color: #645b55 !important;
}

#rodape > div:last-child p {
  color: #645b55 !important;
  font-size: 11px;
  line-height: 19px;
}

/* BOTÃO TOPO */
.scrollToTop {
  z-index: 90 !important;
}

/* CONTROLE DOS BANNERS */
.cv-banner-control {
  display: block;
  margin: 8px auto 12px;
  padding: 7px 12px;
  background: #faf5ec;
  border: 1px solid #d8c7aa;
  border-radius: 4px;
  color: #591a20;
  font-size: 11px;
  line-height: 18px;
  cursor: pointer;
}

/* ACESSIBILIDADE */
.cv-header a:focus,
.cv-header button:focus,
.cv-header summary:focus,
.cv-benefits button:focus,
.cv-product a:focus,
.cv-banner-control:focus {
  outline: 2px solid #c5a05b;
  outline-offset: 3px;
}

/* CELULAR */
@media (max-width: 767px) {
  .cv-header-inner {
    min-height: 66px;
    padding: 7px 12px;
  }

  .cv-menu-button {
    display: block;
  }

  .cv-menu-button .cv-panel {
    right: auto;
    left: 0;
  }

  .cv-logo {
    flex: 1;
    width: auto;
    margin: 0 8px;
  }

  .cv-logo img {
    height: 48px;
    max-width: 140px;
  }

  .cv-header-inner > .cv-search {
    display: none;
  }

  .cv-action-label,
  .cv-desktop-nav,
  .cv-desktop-action {
    display: none;
  }

  .cv-mobile-search {
    display: block;
    border-top: 1px solid #78413e;
  }

  .cv-mobile-search > summary {
    display: block;
    padding: 8px 16px;
    color: #eaded8;
    font-size: 12px;
    line-height: 20px;
    list-style: none;
    cursor: pointer;
  }

  .cv-mobile-search > summary::-webkit-details-marker {
    display: none;
  }

  .cv-mobile-search .cv-search {
    margin: 0 12px 12px;
  }

  .cv-header .cv-panel {
    max-height: 65vh;
    overflow-y: auto;
  }

  .cv-benefit-text {
    font-size: 11px;
  }

  /* OCULTA APENAS CARROSSÉIS QUE GANHARAM NOVA VITRINE */
  body.cv-ready #corpo .cv-original-products {
    display: none !important;
  }

  .cv-products {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .cv-product-wrap {
    display: flex;
    flex: 0 0 50%;
    width: 50%;
    min-width: 0;
    padding: 6px;
    box-sizing: border-box;
  }

  .cv-product {
    width: 100%;
  }

  #corpo .listagem .titulo-categoria {
    margin-bottom: 12px !important;
    font-size: 24px;
    letter-spacing: 0;
  }

  /* NEWSLETTER COM ALTURA NATURAL */
  #barraNewsletter,
  #barraNewsletter .componente {
    height: auto !important;
    min-height: 0 !important;
  }

  #barraNewsletter .componente {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
  }

  #barraNewsletter .texto-newsletter {
    font-size: 15px !important;
    line-height: 23px !important;
  }

  /* RODAPÉ MAIS COMPACTO */
  #rodape .institucional .conteiner {
    padding-top: 22px !important;
    padding-bottom: 16px !important;
  }

  #rodape .institucional .span4,
  #rodape .institucional .span3,
  #rodape .institucional .span12 {
    min-height: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    padding-top: 0 !important;
  }

  #rodape .institucional .titulo {
    margin-bottom: 12px !important;
  }

  #rodape .institucional ul {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  #rodape .institucional li {
    margin-bottom: 5px;
  }

  #rodape .institucional .pagamento {
    padding: 14px !important;
  }

  #rodape .institucional .selos {
    padding-top: 0 !important;
  }

  #rodape .gateways-rodape {
    margin-top: 10px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .scrollToTop {
    right: 12px !important;
    bottom: 18px !important;
  }
}

@media (max-width: 360px) {
  .cv-product {
    padding: 9px;
  }

  .cv-product-picture {
    height: 135px;
  }

  .cv-product-price {
    font-size: 17px;
  }

  .cv-header-inner {
    padding-left: 7px;
    padding-right: 7px;
  }
}

/* ========== FIM IDENTIDADE VISUAL COVIL ========== */