/* Catálogo editorial — current shared utilities */
.filter-link{
  display:flex;
  justify-content:space-between;
  gap:12px;
  cursor:pointer;
}
.filter-count{opacity:.55}
.active-filter{
  display:inline-flex;
  align-items:center;
}
.active-filter button{
  border:0;
  background:none;
  padding:0;
  line-height:1;
  cursor:pointer;
}
.clear-filters,.sort-chip{cursor:pointer}
.catalog-results-grid .book,
.catalog-results-grid .book-cover{
  width:100%;
  max-width:none;
}

/* Cover frame harmonization — 2026-09-18 */
/*
 * Mantém um slot fixo para todos os cards, mas deixa o fundo do slot invisível.
 * A capa real fica alinhada pela base e recebe a sombra; assim formatos diferentes
 * não criam a "placa" bege visível atrás da imagem.
 */
.book .book-cover{
  background:transparent;
  box-shadow:none;
  overflow:visible;
}
.book .book-cover>.cover{
  background:transparent;
  overflow:visible;
  display:flex;
  align-items:center;
  justify-content:center;
}
.book .book-cover>.cover:not(.placeholder) img{
  width:auto;
  height:auto;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  display:block;
  box-shadow:0 16px 28px -20px rgba(0,0,0,.78);
}
.book .book-cover>.cover.placeholder{
  overflow:hidden;
  align-items:end;
}


/* Lists: fixed alignment without visible matte — 2026-09-18 */
.book .book-cover{
  background:transparent !important;
  box-shadow:none !important;
}
.book .book-cover>.cover:not(.placeholder){
  background:transparent !important;
  box-shadow:none !important;
  overflow:visible !important;
}
.book .book-cover>.cover:not(.placeholder) img{
  background:transparent !important;
  box-shadow:0 16px 28px -20px rgba(0,0,0,.78) !important;
}


/* Preserve intrinsic cover proportions — 2026-09-20 */
.book .book-cover>.cover:not(.placeholder){
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:visible !important;
}
.book .book-cover>.cover:not(.placeholder) img{
  width:auto !important;
  height:auto !important;
  max-width:100% !important;
  max-height:100% !important;
  aspect-ratio:auto !important;
  object-fit:contain !important;
  object-position:center center !important;
  display:block !important;
}


/* Canonical aspect correction for source assets — 2026-09-20 */
/*
 * Estes dois arquivos de origem chegaram com canvas/proporção divergente do
 * material canônico de e-commerce. Corrigimos a caixa renderizada para a
 * proporção visual do arquivo oficial, em vez de herdar a proporção distorcida.
 */
img[alt*="Romance de João e Maria"]{
  width:100% !important;
  height:auto !important;
  aspect-ratio:746 / 1000 !important;
  object-fit:fill !important;
  max-width:100% !important;
  max-height:100% !important;
}
img[alt*="Arthur e Teddy"]{
  width:100% !important;
  height:auto !important;
  aspect-ratio:673 / 1000 !important;
  object-fit:fill !important;
  max-width:100% !important;
  max-height:100% !important;
}


/* Card-only canonical cover boxes — 2026-09-20 */
/*
 * Na listagem, o wrapper .cover ainda tinha aspect-ratio 2/3.
 * Para estes títulos, a caixa do card precisa assumir a proporção canônica,
 * senão a imagem correta fica espremida dentro de um slot estreito.
 */
.book .book-cover>.cover:has(img[alt*="Romance de João e Maria"]){
  width:100% !important;
  height:auto !important;
  aspect-ratio:746 / 1000 !important;
}
.book .book-cover>.cover:has(img[alt*="Romance de João e Maria"]) img{
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  max-height:none !important;
  aspect-ratio:auto !important;
  object-fit:fill !important;
}
.book .book-cover>.cover:has(img[alt*="Arthur e Teddy"]){
  width:100% !important;
  height:auto !important;
  aspect-ratio:673 / 1000 !important;
}
.book .book-cover>.cover:has(img[alt*="Arthur e Teddy"]) img{
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  max-height:none !important;
  aspect-ratio:auto !important;
  object-fit:fill !important;
}


/* =========================================================
   BOOKS V3 — internal page born from the approved Home
   ========================================================= */
html.ediouro-editorial-shell .editorial-catalog{
  --ec-paper:#FCFBF7;
  --ec-white:#FFFFFF;
  --ec-cool:#EEF1F2;
  --ec-warm:#E4E3DF;
  --ec-ink:#11110F;
  --ec-muted:#68645E;
  --ec-rule:#D8D7D2;
  background:var(--ec-white)!important;
  color:var(--ec-ink)!important;
  font-family:'Inter Tight',Arial,sans-serif!important;
}
html.ediouro-editorial-shell .editorial-catalog .wrap{
  width:min(1180px,calc(100% - 64px))!important;
  max-width:1180px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

html.ediouro-editorial-shell .catalog-editorial-hero{
  margin:0!important;
  padding:0!important;
  background:var(--ec-cool)!important;
  border:0!important;
}
html.ediouro-editorial-shell .catalog-editorial-hero-inner{
  min-height:540px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:86px 0 78px!important;
  text-align:center;
}
html.ediouro-editorial-shell .catalog-editorial-kicker{
  color:#697073!important;
  font:600 8px/1 'Inter Tight',Arial,sans-serif!important;
  letter-spacing:.26em!important;
  text-transform:uppercase!important;
}
html.ediouro-editorial-shell .catalog-editorial-hero h1{
  margin:25px 0 0!important;
  color:var(--ec-ink)!important;
  font:400 clamp(42px,5vw,68px)/1 'Inter Tight',Arial,sans-serif!important;
  letter-spacing:.18em!important;
  text-transform:uppercase!important;
}
html.ediouro-editorial-shell .catalog-editorial-hero p{
  max-width:590px!important;
  margin:25px auto 0!important;
  color:#3E4446!important;
  font:italic 400 clamp(20px,1.9vw,27px)/1.35 'Newsreader',Georgia,serif!important;
  letter-spacing:0!important;
}
html.ediouro-editorial-shell .catalog-editorial-search{
  width:min(760px,100%);
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:end;
  gap:24px;
  margin:62px auto 0;
  border-bottom:1px solid var(--ec-ink);
}
html.ediouro-editorial-shell .catalog-editorial-search input{
  width:100%;
  min-width:0;
  padding:0 0 13px!important;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  color:var(--ec-ink)!important;
  font:400 16px/1.25 'Inter Tight',Arial,sans-serif!important;
}
html.ediouro-editorial-shell .catalog-editorial-search input::placeholder{
  color:#747B7D!important;
}
html.ediouro-editorial-shell .catalog-editorial-search button{
  margin:0 0 12px!important;
  padding:0 0 5px!important;
  border:0!important;
  border-bottom:1px solid currentColor!important;
  border-radius:0!important;
  background:transparent!important;
  color:var(--ec-ink)!important;
  font:600 8px/1 'Inter Tight',Arial,sans-serif!important;
  letter-spacing:.22em!important;
  text-transform:uppercase!important;
}

html.ediouro-editorial-shell .catalog-editorial-explore{
  padding:92px 0 98px!important;
  background:#FFF!important;
  border:0!important;
}
html.ediouro-editorial-shell .catalog-editorial-section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:30px;
  margin:0 0 44px;
  padding:0 0 17px;
  border-bottom:1px solid #E2E1DC;
}
html.ediouro-editorial-shell .catalog-editorial-section-head h2{
  margin:0!important;
  color:var(--ec-ink)!important;
  font:400 clamp(28px,2.8vw,42px)/1 'Inter Tight',Arial,sans-serif!important;
  letter-spacing:.16em!important;
  text-transform:uppercase!important;
}
html.ediouro-editorial-shell .catalog-editorial-section-head>span{
  padding-bottom:3px;
  color:#75716B!important;
  font:500 9px/1 'Inter Tight',Arial,sans-serif!important;
  letter-spacing:.16em;
  text-transform:uppercase;
}
html.ediouro-editorial-shell .catalog-editorial-filter-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  border-top:1px solid var(--ec-ink);
  border-bottom:1px solid #DDDCD7;
}
html.ediouro-editorial-shell .catalog-editorial-filter{
  position:relative;
  border-right:1px solid #DDDCD7;
}
html.ediouro-editorial-shell .catalog-editorial-filter:last-child{
  border-right:0;
}
html.ediouro-editorial-shell .catalog-editorial-filter summary{
  min-height:126px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  gap:14px;
  padding:28px 30px 26px!important;
  cursor:pointer;
  list-style:none;
  background:#FFF!important;
}
html.ediouro-editorial-shell .catalog-editorial-filter summary::-webkit-details-marker{
  display:none;
}
html.ediouro-editorial-shell .catalog-editorial-filter summary:after{
  content:"+";
  position:absolute;
  top:25px;
  right:28px;
  color:#7A7670;
  font:400 20px/1 'Inter Tight',Arial,sans-serif;
}
html.ediouro-editorial-shell .catalog-editorial-filter[open] summary:after{
  content:"−";
}
html.ediouro-editorial-shell .catalog-editorial-filter summary>span{
  color:#7C7872!important;
  font:600 8px/1 'Inter Tight',Arial,sans-serif!important;
  letter-spacing:.22em!important;
  text-transform:uppercase!important;
}
html.ediouro-editorial-shell .catalog-editorial-filter summary>strong{
  max-width:86%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--ec-ink)!important;
  font:450 23px/1.1 'Inter Tight',Arial,sans-serif!important;
  letter-spacing:-.02em!important;
}
html.ediouro-editorial-shell .catalog-editorial-panel{
  position:absolute;
  z-index:30;
  top:100%;
  left:-1px;
  right:-1px;
  max-height:390px;
  overflow:auto;
  padding:18px 28px 22px;
  border:1px solid #D4D3CE;
  background:#FFF;
  box-shadow:0 22px 36px rgba(0,0,0,.08);
}
html.ediouro-editorial-shell .catalog-editorial-panel .filter-link{
  padding:9px 0!important;
  border-bottom:1px solid #EEEDE9!important;
  color:#4F4B45!important;
  font:400 12px/1.25 'Inter Tight',Arial,sans-serif!important;
}
html.ediouro-editorial-shell .catalog-editorial-panel .filter-link:last-child{
  border-bottom:0!important;
}
html.ediouro-editorial-shell .catalog-editorial-panel .filter-link.active{
  color:var(--ec-ink)!important;
  font-weight:650!important;
}

html.ediouro-editorial-shell .catalog-editorial-results{
  padding:106px 0 124px!important;
  background:var(--ec-paper)!important;
  border:0!important;
}
html.ediouro-editorial-shell .catalog-editorial-results-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:28px;
  margin:0 0 22px;
  padding:0 0 18px;
  border-bottom:1px solid var(--ec-ink);
}
html.ediouro-editorial-shell .catalog-editorial-results-head h2{
  max-width:820px;
  margin:12px 0 0!important;
  color:var(--ec-ink)!important;
  font:400 clamp(31px,3.2vw,46px)/1.04 'Inter Tight',Arial,sans-serif!important;
  letter-spacing:-.025em!important;
}
html.ediouro-editorial-shell .catalog-editorial-results-head>span{
  padding-bottom:4px;
  color:#706C66!important;
  font:500 9px/1 'Inter Tight',Arial,sans-serif!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
}
html.ediouro-editorial-shell .catalog-editorial-active{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:14px;
  margin:18px 0 0;
}
html.ediouro-editorial-shell .catalog-editorial-active .active-filter{
  gap:8px!important;
  padding:0 0 4px!important;
  border:0!important;
  border-bottom:1px solid #9C9892!important;
  color:#4B4741!important;
  font:500 9px/1 'Inter Tight',Arial,sans-serif!important;
  letter-spacing:.04em!important;
}
html.ediouro-editorial-shell .catalog-editorial-active .active-filter button{
  font-size:13px!important;
}
html.ediouro-editorial-shell .catalog-editorial-active .clear-filters{
  padding:0 0 4px!important;
  border:0!important;
  border-bottom:1px solid #B5B1AA!important;
  background:transparent!important;
  color:#77726C!important;
  font:500 8px/1 'Inter Tight',Arial,sans-serif!important;
  letter-spacing:.14em!important;
  text-transform:uppercase!important;
}
html.ediouro-editorial-shell .catalog-editorial-sort{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:18px;
  margin:27px 0 54px;
}
html.ediouro-editorial-shell .catalog-editorial-sort>span{
  color:#817D77!important;
  font:600 8px/1 'Inter Tight',Arial,sans-serif!important;
  letter-spacing:.2em!important;
  text-transform:uppercase!important;
}
html.ediouro-editorial-shell .catalog-editorial-sort .sort-chip{
  padding:0 0 4px!important;
  border:0!important;
  border-bottom:1px solid transparent!important;
  border-radius:0!important;
  background:transparent!important;
  color:#5D5953!important;
  font:500 9px/1 'Inter Tight',Arial,sans-serif!important;
  letter-spacing:.04em!important;
}
html.ediouro-editorial-shell .catalog-editorial-sort .sort-chip.active{
  border-bottom-color:var(--ec-ink)!important;
  background:transparent!important;
  color:var(--ec-ink)!important;
  font-weight:650!important;
}

html.ediouro-editorial-shell .catalog-results-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:68px 42px!important;
}
html.ediouro-editorial-shell .catalog-results-grid .book{
  min-width:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
html.ediouro-editorial-shell .catalog-results-grid .book-cover{
  height:342px!important;
  margin:0 0 25px!important;
  display:flex!important;
  align-items:flex-end!important;
  justify-content:center!important;
  overflow:visible!important;
  background:transparent!important;
}
html.ediouro-editorial-shell .catalog-results-grid .book-cover>.cover{
  width:100%!important;
  height:100%!important;
  display:flex!important;
  align-items:flex-end!important;
  justify-content:center!important;
  overflow:visible!important;
  background:transparent!important;
}
html.ediouro-editorial-shell .catalog-results-grid .book-cover>.cover:not(.placeholder) img{
  width:auto!important;
  height:auto!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  box-shadow:-8px 16px 24px rgba(0,0,0,.18)!important;
  filter:none!important;
}
html.ediouro-editorial-shell .catalog-results-grid .book h3{
  margin:0 0 7px!important;
  color:var(--ec-ink)!important;
  font:450 clamp(18px,1.45vw,22px)/1.12 'Inter Tight',Arial,sans-serif!important;
  letter-spacing:-.022em!important;
}
html.ediouro-editorial-shell .catalog-results-grid .book p{
  margin:0!important;
  color:#282521!important;
  font:italic 400 clamp(18px,1.35vw,21px)/1.16 'Newsreader',Georgia,serif!important;
}
html.ediouro-editorial-shell .catalog-results-grid .book small{
  display:block!important;
  margin-top:10px!important;
  color:#77736D!important;
  font:600 7px/1.2 'Inter Tight',Arial,sans-serif!important;
  letter-spacing:.2em!important;
  text-transform:uppercase!important;
}

html.ediouro-editorial-shell .catalog-empty{
  max-width:670px!important;
  padding:62px 0 86px!important;
  border:0!important;
}
html.ediouro-editorial-shell .catalog-empty h3{
  margin:15px 0 13px!important;
  font:450 clamp(30px,3vw,42px)/1.04 'Inter Tight',Arial,sans-serif!important;
  letter-spacing:-.025em!important;
}
html.ediouro-editorial-shell .catalog-empty p{
  color:#625E58!important;
  font:400 15px/1.5 'Inter Tight',Arial,sans-serif!important;
}
html.ediouro-editorial-shell .catalog-empty button{
  margin-top:18px!important;
  padding:0 0 5px!important;
  border:0!important;
  border-bottom:1px solid var(--ec-ink)!important;
  background:transparent!important;
  color:var(--ec-ink)!important;
  font:600 8px/1 'Inter Tight',Arial,sans-serif!important;
  letter-spacing:.2em!important;
  text-transform:uppercase!important;
}

@media(max-width:980px) and (min-width:761px){
  html.ediouro-editorial-shell .catalog-results-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}

@media(max-width:760px){
  html.ediouro-editorial-shell .editorial-catalog .wrap{
    width:min(100% - 40px,1180px)!important;
  }
  html.ediouro-editorial-shell .catalog-editorial-hero-inner{
    min-height:430px;
    padding:62px 0 54px!important;
  }
  html.ediouro-editorial-shell .catalog-editorial-kicker{
    font-size:7px!important;
    letter-spacing:.24em!important;
  }
  html.ediouro-editorial-shell .catalog-editorial-hero h1{
    margin-top:20px!important;
    font-size:34px!important;
    letter-spacing:.18em!important;
  }
  html.ediouro-editorial-shell .catalog-editorial-hero p{
    max-width:315px!important;
    margin-top:20px!important;
    font-size:20px!important;
    line-height:1.34!important;
  }
  html.ediouro-editorial-shell .catalog-editorial-search{
    grid-template-columns:minmax(0,1fr) auto;
    gap:14px;
    margin-top:48px!important;
  }
  html.ediouro-editorial-shell .catalog-editorial-search input{
    padding-bottom:11px!important;
    font-size:14px!important;
  }
  html.ediouro-editorial-shell .catalog-editorial-search button{
    margin-bottom:10px!important;
    font-size:7px!important;
  }

  html.ediouro-editorial-shell .catalog-editorial-explore{
    padding:70px 0 76px!important;
  }
  html.ediouro-editorial-shell .catalog-editorial-section-head{
    align-items:flex-start;
    flex-direction:column;
    gap:12px;
    margin-bottom:32px!important;
    padding-bottom:14px!important;
  }
  html.ediouro-editorial-shell .catalog-editorial-section-head h2{
    font-size:27px!important;
    letter-spacing:.14em!important;
  }
  html.ediouro-editorial-shell .catalog-editorial-section-head>span{
    font-size:7px!important;
  }
  html.ediouro-editorial-shell .catalog-editorial-filter-grid{
    grid-template-columns:1fr!important;
    border-top:1px solid var(--ec-ink)!important;
  }
  html.ediouro-editorial-shell .catalog-editorial-filter{
    border-right:0!important;
    border-bottom:1px solid #DDDCD7!important;
  }
  html.ediouro-editorial-shell .catalog-editorial-filter:last-child{
    border-bottom:0!important;
  }
  html.ediouro-editorial-shell .catalog-editorial-filter summary{
    min-height:88px!important;
    padding:20px 0 18px!important;
  }
  html.ediouro-editorial-shell .catalog-editorial-filter summary:after{
    top:20px!important;
    right:2px!important;
  }
  html.ediouro-editorial-shell .catalog-editorial-filter summary>strong{
    font-size:20px!important;
  }
  html.ediouro-editorial-shell .catalog-editorial-panel{
    position:relative!important;
    left:auto!important;
    right:auto!important;
    top:auto!important;
    border:0!important;
    border-top:1px solid #E6E5E0!important;
    box-shadow:none!important;
    padding:12px 0 17px!important;
  }

  html.ediouro-editorial-shell .catalog-editorial-results{
    padding:78px 0 90px!important;
  }
  html.ediouro-editorial-shell .catalog-editorial-results-head{
    align-items:flex-start!important;
    gap:16px!important;
  }
  html.ediouro-editorial-shell .catalog-editorial-results-head h2{
    margin-top:10px!important;
    font-size:29px!important;
    line-height:1.05!important;
  }
  html.ediouro-editorial-shell .catalog-editorial-results-head>span{
    white-space:nowrap!important;
    font-size:7px!important;
  }
  html.ediouro-editorial-shell .catalog-editorial-sort{
    justify-content:flex-start!important;
    gap:16px!important;
    margin:22px -20px 42px 0!important;
    padding-right:20px!important;
    overflow-x:auto!important;
    scrollbar-width:none;
  }
  html.ediouro-editorial-shell .catalog-editorial-sort::-webkit-scrollbar{display:none}
  html.ediouro-editorial-shell .catalog-editorial-sort>span{display:none!important}
  html.ediouro-editorial-shell .catalog-editorial-sort .sort-chip{
    flex:0 0 auto!important;
    white-space:nowrap!important;
  }
  html.ediouro-editorial-shell .catalog-results-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:50px 22px!important;
  }
  html.ediouro-editorial-shell .catalog-results-grid .book-cover{
    height:226px!important;
    margin-bottom:18px!important;
  }
  html.ediouro-editorial-shell .catalog-results-grid .book h3{
    font-size:16px!important;
  }
  html.ediouro-editorial-shell .catalog-results-grid .book p{
    font-size:17px!important;
  }
  html.ediouro-editorial-shell .catalog-results-grid .book small{
    margin-top:8px!important;
    font-size:6.5px!important;
  }
}


html.ediouro-editorial-shell .catalog-load-more{
  display:flex;
  justify-content:center;
  margin-top:76px;
}
html.ediouro-editorial-shell .catalog-load-more button{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:0 0 7px;
  border:0;
  border-bottom:1px solid #11110F;
  background:transparent;
  color:#11110F;
  font:600 9px/1 'Inter Tight',Arial,sans-serif;
  letter-spacing:.18em;
  text-transform:uppercase;
  cursor:pointer;
}
html.ediouro-editorial-shell .catalog-load-more button span{
  color:#7A756E;
  font-weight:500;
}
@media(max-width:760px){
  html.ediouro-editorial-shell .catalog-load-more{
    margin-top:58px;
  }
}

/* __EDIOURO_IOS_INPUT_ZOOM_GUARD_V1 */
@media(max-width:760px){
 html.ediouro-editorial-shell .catalog-editorial-search input{font-size:16px!important}
}


/* Preview Sep 26 — product-art sizing in catalogue rows/cards. */
html.ediouro-editorial-shell .catalog-results-grid .book-cover:has(img[alt*="pack" i],img[alt*="kit" i],img[alt*="box" i]){
  overflow:hidden!important;
}
html.ediouro-editorial-shell .catalog-results-grid img[alt*="pack" i],
html.ediouro-editorial-shell .catalog-results-grid img[alt*="kit" i],
html.ediouro-editorial-shell .catalog-results-grid img[alt*="box" i]{
  transform:scale(1.42)!important;
  transform-origin:center!important;
}
