/* Página de produto e página institucional. Complementa css/base.css. */

.breadcrumb.produto { margin-bottom: 31px; }

/* ------------------------------------------------------------ grade principal */
.box-col-product { display: flex; }
.product-colum-left { width: calc(100% - 561px); padding-right: 30px; min-width: 0; }
.product-colum-right { width: 561px; min-width: 0; }
@media (max-width: 1300px) {
  .product-colum-left { width: calc(100% - 480px); }
  .product-colum-right { width: 480px; }
}
@media (max-width: 1100px) {
  .product-colum-left { width: calc(100% - 400px); padding-right: 15px; }
  .product-colum-right { width: 400px; }
}
@media (max-width: 930px) {
  .box-col-product { display: block; max-width: 615px; margin: 10px auto 0; }
  .product-colum-left, .product-colum-right { width: 100%; padding-right: 0; }
  .product-colum-right { margin-top: 20px; }
}

/* -------------------------------------------------------------------- galeria */
.box-gallery { display: flex; height: 520px; }
.nav-images { position: relative; flex: none; width: 120px; margin: -20px 0; padding: 20px 2px 20px 0; }
.nav-images .list { height: 100%; overflow: hidden; scroll-behavior: smooth; }
.nav-images .item { height: 104px; }
.nav-images .box-img {
  display: flex; align-items: center; justify-content: center; width: 92px; height: 92px; padding: 0; background: #fff;
  border: 1px solid var(--color_border); border-radius: 4px; cursor: pointer; transition: opacity .3s; overflow: hidden;
}
.nav-images .box-img img { max-width: 90px; max-height: 90px; object-fit: contain; }
.nav-images .box-img:hover, .nav-images .box-img.ativa { opacity: .5; }
.nav-images .arrow {
  position: absolute; left: 0; width: 92px; height: 20px; display: flex; align-items: center; justify-content: center; transition: opacity .3s;
}
.nav-images .arrow::before {
  content: ''; width: 9px; height: 9px; border-left: 2px solid var(--color_primary); border-top: 2px solid var(--color_primary);
}
.nav-images .arrow.prev { top: -3px; }
.nav-images .arrow.prev::before { transform: translateY(3px) rotate(45deg); }
.nav-images .arrow.next { bottom: -3px; }
.nav-images .arrow.next::before { transform: translateY(-3px) rotate(-135deg); }
.nav-images .arrow[disabled] { opacity: .25; cursor: default; }
.nav-images .arrow[hidden] { display: none; }

.image-show { position: relative; width: calc(100% - 120px); background: #fff; border: 1px solid var(--color_border); overflow: hidden; }
.image-show .list { display: flex; height: 100%; overflow: hidden; }
.image-show .item { flex: 0 0 100%; height: 100%; }
.image-show .box-img { height: 100%; max-height: 520px; min-height: 300px; text-align: center; }
.image-show .zoom { width: 100%; height: 100%; overflow: hidden; }
.image-show .zoom img { width: 100%; height: 100%; object-fit: contain; transition: transform .15s ease-out; }
.image-show .zoom img.recorte { padding: 0; }
.image-show .discount-line { position: absolute; top: 5px; right: 5px; left: auto; z-index: 2; }
.image-show .dots { display: none; }
@media (min-width: 1025px) and (hover: hover) { .image-show .zoom { cursor: zoom-in; } }

@media (max-width: 767px) {
  .box-gallery { height: auto; max-height: 575px; }
  .nav-images { display: none; }
  .image-show { width: 100%; aspect-ratio: 10 / 11; max-height: 420px; }
  .image-show .list {
    overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none;
    overscroll-behavior-x: contain;
  }
  .image-show .list::-webkit-scrollbar { display: none; }
  .image-show .item { scroll-snap-align: start; }
  .image-show .box-img { min-height: 0; }
  .image-show .dots { position: absolute; left: 0; right: 0; bottom: 20px; display: flex; justify-content: center; }
  .image-show .dot {
    width: 10px; height: 10px; padding: 0; margin: 0 3px; border-radius: 50%; background: #495968; border: 3px solid #fff;
    box-sizing: content-box; background-clip: padding-box; box-shadow: 0 0 0 1px rgba(73, 89, 104, .35);
  }
  .image-show .dot.dot-active { border-width: 2px; margin: 1px 4px; }
}

/* ------------------------------------------------------- coluna de informações */
.product-colum-right .product-name {
  font-size: 28px; line-height: 1.09; font-weight: 700; color: var(--color_text); margin-bottom: 20px; text-transform: uppercase;
}
.product-colum-right .linha-info { font-size: 16px; }
.list-seal-product { display: flex; flex-wrap: wrap; margin: 20px 0 15px; }
.list-seal-product .tag {
  padding: 0 8px; margin: 0 10px 5px 0; line-height: 2; font-size: 12px; text-transform: uppercase; color: #fff; border-radius: 4px;
  white-space: nowrap; background: var(--tag_destaque_bg); border: 1px solid var(--tag_destaque_bg);
}
.list-seal-product .tag:last-child { margin-right: 0; }
.list-seal-product .tag.new { background: var(--tag_lancamento_bg); border-color: var(--tag_lancamento_bg); }
.list-seal-product .tag.free { background: var(--tag_frete_bg); border-color: var(--tag_frete_bg); }
.list-seal-product .tag.off { background: var(--tag_desconto_bg); border-color: var(--tag_desconto_bg); }

.product-colum-right .list-star { justify-content: flex-start; align-items: center; margin: 12px 0; }
.product-colum-right .list-star .icon { width: 18.8px; height: 18.8px; }
.product-colum-right .list-star .total { font-size: 12px; text-transform: uppercase; text-decoration: underline; margin-left: 10px; }

.product-availability { font-size: 16px; }
#produto_preco { margin-top: 18px; }
#produto_preco .preco-de { display: inline-block; width: auto; font-size: 12px; }
#produto_preco .PrecoPrincipal {
  display: block; font-family: var(--fonte_sistema); font-size: 28px; font-weight: 700; line-height: 1.36; color: var(--preco_color);
}
#produto_preco .info-preco { font-size: 16px; }
#produto_preco .info-preco strong { font-family: var(--fonte_sistema); font-weight: 600; color: var(--payment_color); }
#produto_preco .nota-preco { font-size: 12px; }

.box-variants { margin: 20px 0; }
.box-variants .varTit { display: block; font-size: 12px; font-weight: 600; margin: 4px 0; }
.box-variants .select { color: var(--color_text); }
.box-variants .select:invalid, .box-variants .select.vazio { color: var(--text_input); }
.box-variants .select option { color: var(--color_text); }
.blocoAlerta { font-size: 12px; color: var(--erro); padding: 5px 0; margin: 5px 0; }
.blocoAlerta:empty { display: none; }

.product-colum-right .box-price { margin: 40px 0 0; padding: 0; }
#product-form-box { display: flex; align-items: center; max-width: 429px; width: calc(100% + 7px); margin-left: -7px; }
#quantidade { padding-left: 7px; flex: none; }
#bt_comprar { flex-grow: 1; margin-left: 15px; min-width: 0; }
#bt_comprar .botao-comprar {
  display: block; width: 100%; line-height: 50px; font-size: 24px; font-weight: 700; text-transform: uppercase; color: #fff;
  background: var(--button_details); border-radius: 25px; padding: 0 20px; text-align: center; white-space: nowrap; transition: background .3s;
}
#bt_comprar .botao-comprar:hover { background: var(--button_details_hover); }
#bt_comprar .botao-comprar[disabled] { background: #8a8a8a; cursor: default; }

.box-frete { border-top: 1px solid var(--color_border); padding: 23px 0; margin: 26px 0 0; }
.box-frete .text { display: block; font-size: 14px; letter-spacing: .28px; margin-bottom: 12px; }
.box-frete .new-frete { display: flex; justify-content: space-between; max-width: 271px; }
.box-frete .caixa-cep {
  width: calc(100% - 71px); height: 40px; padding: 0 7px; background: #fff; border: 1px solid #000; border-radius: 25px;
}
.box-frete .caixa-cep:focus-within { outline: 2px solid #4d90fe; outline-offset: 2px; }
.box-frete .caixa-cep input {
  width: 100%; height: 38px; padding-left: 9px; border: 0; background: none; font-size: 14px; letter-spacing: .28px; color: #000; outline: 0;
}
.box-frete .caixa-cep input::placeholder { color: #000; opacity: .8; }
.box-frete .ok {
  width: 60px; height: 40px; background: var(--button_details); color: #fff; font-size: 14px; font-weight: 700; border-radius: 25px;
  transition: background .3s;
}
.box-frete .ok:hover { background: var(--button_details_hover); }
.box-frete .result { margin-top: 20px; font-size: 12px; }
.box-frete .result.erro { color: var(--erro); }

/* ------------------------------------------------- descrição e ficha técnica */
.page-info-product { margin: 40px 0 0; border-top: 2px solid var(--color_border); padding: 32px 0 0; }
.page-info-product .section-box + .section-box { margin-top: 40px; }
.page-info-product .title { font-size: 24px; font-weight: 700; text-transform: uppercase; color: var(--title_list); margin-bottom: 35px; }
.page-info-product .board_htm h3 { font-size: 16px; margin: 20px 0 8px; }
.page-info-product .board_htm ul.check { list-style: none; margin-left: 0; }
.page-info-product .board_htm ul.check li { position: relative; padding-left: 22px; }
.page-info-product .board_htm ul.check li::before {
  content: ''; position: absolute; left: 3px; top: 7px; width: 10px; height: 5px; border-left: 2px solid var(--color_second);
  border-bottom: 2px solid var(--color_second); transform: rotate(-45deg);
}
.page-info-product .ficha td:first-child, .page-info-product .ficha th:first-child { width: 52%; font-weight: 400; }

/* ---------------------------------------------------------------- relacionados */
.product-related { position: relative; z-index: 3; isolation: isolate; margin: 65px 0 0; padding: 1px 0 50px; }
.product-related::before {
  content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  background: var(--bg_title);
}
.product-related .section-showcase { margin-top: 40px; }
.product-related:empty { display: none; }

/* ------------------------------------------------------------------- visitados */
.visited-section { margin: 60px 0 0; }
.visited-section .linha { display: flex; align-items: flex-start; }
.visited-section .lista { display: flex; flex-wrap: wrap; width: calc(100% - 220px); }
.visited-section .visitado { display: block; width: 300px; max-width: 100%; min-height: 90px; padding: 0 10px 10px 100px; position: relative; }
.visited-section .visitado img { position: absolute; left: 0; top: 0; width: 90px; height: 90px; object-fit: contain; }
.visited-section .visitado .nome { display: block; font-size: 14px; font-weight: 700; margin: 10px 0; }
.visited-section .visitado .valor { display: block; font-size: 12px; }
.visited-section .visitado:hover .nome { color: var(--color_primary); text-decoration: underline; }
.visited-section .lado { width: 220px; font-size: 14px; text-align: right; }
.visited-section .paginas { display: flex; align-items: center; justify-content: flex-end; margin-top: 10px; }
.visited-section .paginas .rotulo { margin-right: 4px; }
.visited-section .paginas button { min-width: 26px; height: 26px; padding: 0 4px; margin-left: 4px; font-size: 14px; }
.visited-section .paginas button[aria-current] { background: var(--color_primary); color: #fff; }
@media (max-width: 767px) {
  .visited-section { margin-top: 30px; }
  .visited-section .linha { display: block; }
  .visited-section .lista { width: 100%; justify-content: center; }
  .visited-section .lado { width: 100%; text-align: center; margin-top: 10px; }
  .visited-section .paginas { justify-content: center; }
}

/* ------------------------------------------------------ produto não encontrado */
.produto-ausente { width: 100%; text-align: center; padding: 40px 0 20px; }
.produto-ausente h1 { font-size: 24px; margin-bottom: 12px; }
.produto-ausente p { margin-bottom: 24px; }

/* ----------------------------------------------------------- página institucional */
.institucional .titulo-pagina { font-size: 16px; font-weight: 700; text-align: center; margin-bottom: 14px; }
.institucional .contatos { list-style: none; margin-left: 0; }
.institucional .contatos li { margin-bottom: 6px; }
.institucional .outras { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--color_border); font-size: 14px; }
.institucional .outras a { display: inline-block; margin-right: 18px; margin-bottom: 6px; }

@media (max-width: 767px) {
  .product-colum-right .product-name { font-size: 16px; line-height: 1.25; }
  .product-colum-right .list-star .icon { width: 12px; height: 12px; margin-right: 3px; }
  .product-related { margin-top: 0; padding: 0; }
  .product-related::before { display: none; }
  .product-related .section-showcase { margin-top: 33px; }
}
@media (max-width: 550px) { .product-colum-right .list-star { margin: 10px 0; } }
