/* Categoria e produto: um unico HTML responsivo para desktop e celular. */
body.catalog-modern #content {
  background: #f6f3f1;
  box-sizing: border-box;
  clear: both;
  float: none;
  padding: 34px 0 56px;
  width: 100%;
}

.catalog-modern #content > .wrapper { overflow: visible; }
.catalog-modern .caminho { color: #796d6f; float: none; font-size: 12px; margin: 0 0 14px; width: 100%; }
.catalog-modern .caminho a { color: #971626; }

/* Lista de categorias */
.category-modern #content > .wrapper {
  align-items: start;
  display: grid;
  gap: 26px;
  grid-template-columns: 220px minmax(0, 1fr);
}

.category-modern #categorias {
  background: #fff;
  border: 1px solid #e6dcda;
  border-radius: 12px;
  box-sizing: border-box;
  float: none;
  overflow: hidden;
  width: 220px;
}

.category-modern #categorias h3 {
  background: #981525;
  box-sizing: border-box;
  float: none;
  height: auto;
  margin: 0;
  width: 100%;
}

.category-modern #categorias h3 a { margin: 0; padding: 12px 14px; }
.category-modern #categorias ul { background: #fff; border-radius: 0; float: none; margin: 0; padding: 4px 0 10px; width: 100%; }
.category-modern #categorias ul li { border: 0; border-bottom: 1px solid #f0e8e6; float: none; width: 100%; }
.category-modern #categorias ul li:last-child { border-bottom: 0; }
.category-modern #categorias ul li a { color: #584b4d; padding: 9px 14px; text-transform: none; }
.category-modern #categorias ul li a:hover { background: #f8f1f1; color: #981525; }

.category-modern #produtos_col { float: none; min-width: 0; width: 100%; }
.category-modern #produtos_col .title {
  align-items: center;
  background: #fff;
  border: 1px solid #e4d9d7;
  border-left: 5px solid #981525;
  border-radius: 8px;
  box-sizing: border-box;
  display: flex;
  float: none;
  height: auto;
  justify-content: space-between;
  margin: 0 0 20px;
  min-height: 58px;
  padding: 10px 14px;
  width: 100%;
}

.category-modern #produtos_col .title h2 { float: none; font-size: 22px; margin: 0; text-transform: none; }
.category-modern #produtos_col .title form { float: none; margin: 0; }
.category-modern #produtos_col .title select {
  background: #fff;
  border: 1px solid #d9cecc;
  border-radius: 6px;
  box-sizing: border-box;
  float: none;
  height: 38px;
  padding: 0 34px 0 10px;
  width: 180px;
}

.category-modern .navegacao { align-items: center; display: flex; float: none; justify-content: space-between; margin: 0 0 18px; width: 100%; }
.category-modern .navegacao ul { display: flex; flex-wrap: wrap; gap: 5px; }
.category-modern .navegacao ul li { float: none; }
.category-modern #produtos_col .area_produtos {
  display: grid;
  float: none;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
}

.category-modern #produtos_col .produto {
  background: #fff;
  border: 1px solid #e8deda;
  border-radius: 12px;
  box-sizing: border-box;
  float: none;
  margin: 0;
  min-height: 420px;
  overflow: hidden;
  padding: 16px;
  transition: box-shadow .2s ease, transform .2s ease;
  width: auto;
}

.category-modern #produtos_col .produto:hover { box-shadow: 0 10px 28px rgba(63, 31, 36, .1); transform: translateY(-2px); }
.category-modern #produtos_col .produto .thumb { align-items: center; display: flex; height: 180px; justify-content: center; width: 100%; }
.category-modern #produtos_col .produto .thumb img { height: auto; max-height: 170px; max-width: 100%; width: auto; }
.category-modern #produtos_col .produto h3 { min-height: 42px; }
.category-modern #produtos_col .produto h3,
.category-modern #produtos_col .produto h3 a,
.category-modern #produtos_col .produto p { overflow-wrap: anywhere; }
.category-modern #produtos_col .produto .detalhes { margin-top: 12px; }

/* Pagina de produto */
.product-modern #produtos_col.full { float: none; width: 100%; }
.product-modern #produtos_col > .title {
  background: #fff;
  border: 1px solid #e4d9d7;
  border-left: 5px solid #981525;
  border-radius: 8px;
  box-sizing: border-box;
  float: none;
  height: auto;
  margin: 0 0 24px;
  min-height: 58px;
  padding: 14px 16px;
  width: 100%;
}

.product-modern #produtos_col > .title h2 { float: none; font-size: 23px; margin: 0; text-transform: none; }
.product-modern .product-main { display: grid; gap: 32px; grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr); }
.product-modern #content .produto_esq, .product-modern #content .produto_dir { float: none; margin: 0; width: auto; }
.product-modern #galeria_produto {
  background: #fff;
  border: 1px solid #e4d9d7;
  border-radius: 12px;
  box-sizing: border-box;
  min-width: 0;
  padding: 20px;
  text-align: center;
  width: 100%;
}

.product-modern #galeria_produto #img_01 { height: auto; max-height: 520px; max-width: 100%; width: auto; }
.product-modern #product-image-link { cursor: zoom-in; display: block; }
.product-modern .product-image-hint { color: #625658; font-size: 13px; margin: 10px 0 0; text-align: center; }
.product-modern #gallery_01 { margin-top: 14px; width: 100%; }
.product-modern #gallery_01 img { border-radius: 5px; height: 62px; object-fit: cover; width: 62px; }
.product-modern .produto_esq > img { display: block; margin: 10px auto 0; max-width: 100%; }
.product-modern #dados_produtos {
  background: #fff;
  border: 1px solid #e4d9d7;
  border-radius: 12px;
  box-sizing: border-box;
  display: flow-root;
  overflow: hidden;
  padding: 24px;
}

.product-modern #dados_produtos h2 { font-size: 22px; line-height: 1.3; text-transform: none; }
.product-modern #dados_produtos .area_preco { background: #faf6f5; border-radius: 9px; box-sizing: border-box; padding: 16px; width: 100%; }
.product-modern #dados_produtos .formas { box-sizing: border-box; width: 100%; }
.product-modern #dados_produtos .formas img { height: auto; max-width: 100%; }
.product-modern .dados_produto_inferior {
  background: #fff;
  border: 1px solid #e4d9d7;
  border-radius: 12px;
  box-sizing: border-box;
  float: none;
  line-height: 1.65;
  margin: 64px 0 0;
  padding: 22px;
  width: 100%;
}

.product-modern .dados_produto_inferior img { height: auto; max-width: 100%; }
.product-modern .dados_produto_inferior,
.product-modern .dados_produto_inferior * { overflow-wrap: anywhere; }
.product-modern .dados_produto_inferior ul.lista_opiniao { box-sizing: border-box; padding: 0; }
.product-modern .dados_produto_inferior ul.lista_opiniao li { box-sizing: border-box; float: none; width: 100%; }

@media (max-width: 980px) {
  .category-modern #content > .wrapper { grid-template-columns: 190px minmax(0, 1fr); }
  .category-modern #categorias { width: 190px; }
  .category-modern #produtos_col .area_produtos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-modern .product-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  html, body.catalog-modern { max-width: 100%; overflow-x: hidden; }
  body.catalog-modern #content { box-sizing: border-box; display: block !important; padding: 22px 0 38px; width: 100%; }
  body.catalog-modern #content > .wrapper { box-sizing: border-box; max-width: 100%; overflow: hidden; padding: 0 14px; width: 100%; }
  body.catalog-modern #content *,
  body.catalog-modern #content *::before,
  body.catalog-modern #content *::after { box-sizing: border-box; }
  .catalog-modern #produtos_col,
  .catalog-modern .product-main,
  .catalog-modern .produto_esq,
  .catalog-modern .produto_dir,
  .catalog-modern #dados_produtos,
  .catalog-modern .dados_produto_inferior { max-width: 100%; min-width: 0; }
  .catalog-modern h1,
  .catalog-modern h2,
  .catalog-modern h3,
  .catalog-modern p,
  .catalog-modern a,
  .catalog-modern span { overflow-wrap: anywhere; white-space: normal; }
  .category-modern #content > .wrapper { display: block; }
  .category-modern #categorias { display: none; }
  .category-modern #produtos_col .title { align-items: stretch; flex-direction: column; gap: 12px; }
  .category-modern #produtos_col .title h2 { font-size: 20px; }
  .category-modern #produtos_col .title form, .category-modern #produtos_col .title select { width: 100%; }
  .category-modern .navegacao { align-items: flex-start; flex-direction: column; gap: 10px; }
  .category-modern #produtos_col .area_produtos { grid-template-columns: 1fr; }
  .category-modern #produtos_col .produto { min-height: 410px; min-width: 0; width: 100%; }
  .product-modern #produtos_col > .title h2 { font-size: 20px; line-height: 1.3; }
  .product-modern #produtos_col > .title h2,
  .product-modern #dados_produtos h2 { overflow-wrap: anywhere; }
  .product-modern .product-main { display: block; }
  .product-modern #content .produto_esq { margin-bottom: 22px; }
  .product-modern #galeria_produto { padding: 12px; }
  .product-modern #galeria_produto .zoomWrapper { height: auto !important; max-width: 100% !important; width: 100% !important; }
  .product-modern #galeria_produto .zoomWrapper #img_01 { height: auto !important; max-width: 100% !important; position: static !important; width: auto !important; }
  .product-modern .zoomContainer,
  .product-modern .zoomWindowContainer { display: none !important; }
  .product-modern .produto_esq > img { display: none; }
  .product-modern #dados_produtos { padding: 18px; }
  .product-modern #dados_produtos h2 { font-size: 20px; }
  .product-modern #dados_produtos .area_preco { display: flex; flex-wrap: wrap; gap: 10px 14px; }
  .product-modern #dados_produtos .area_preco .preco_left { float: none; margin: 0; width: 100%; }
  .product-modern #dados_produtos .area_preco .preco { font-size: 34px; white-space: normal; }
  .product-modern #dados_produtos .area_preco .parcelado { float: none; margin: 0; max-width: 100%; width: 100%; }
  .product-modern #dados_produtos .area_preco .parcelado span.b { box-sizing: border-box; max-width: calc(100% - 48px); white-space: normal; }
  .product-modern #dados_produtos .area_preco .preco_avista { float: none; }
  .product-modern #dados_produtos .comprar, .product-modern #dados_produtos .comprar img { height: auto; max-width: 100%; }
  .product-modern #dados_produtos .formas { clear: both; float: none; overflow: hidden; }
  .product-modern #dados_produtos .formas p { margin-left: 0; margin-right: 0; max-width: 100%; overflow: hidden; }
  .product-modern #dados_produtos .formas p img { display: block; height: auto; max-width: 100%; width: auto; }
  .product-modern #dados_produtos .avaliacao,
  .product-modern #dados_produtos .compartilhe { box-sizing: border-box; min-height: 72px; width: calc(50% - 3px); }
  .product-modern #dados_produtos .bt_dir { clear: both; }
  .product-modern #dados_produtos .bt_dir a { max-width: 49%; }
  .product-modern #dados_produtos .bt_dir img { height: auto; max-width: 100%; }
  .product-modern .dados_produto_inferior { margin-top: 58px; padding: 16px; }
}
