/* Livraria inteligente - identidade Themis, sem checkout interno */
.themis-home .th-section.th-lib-featured{padding:32px 0 38px}
.th-lib-heading{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:22px}
.th-lib-heading h2{font-family:var(--font-head);font-weight:700;letter-spacing:-.045em;line-height:1.1}
.th-lib-heading p:not(.th-overline){color:#627472;margin:8px 0 0;font-size:13px}
.th-lib-grid{display:grid;gap:17px}
.th-lib-grid-home{grid-template-columns:repeat(6,minmax(0,1fr))}
.th-lib-grid-all{grid-template-columns:repeat(4,minmax(0,1fr));gap:26px}
.th-lib-card{min-width:0;display:flex;flex-direction:column;background:#fff;border:1px solid #e0e9e7;border-radius:12px;overflow:hidden;box-shadow:0 5px 18px #0b292514;transition:transform .2s,box-shadow .2s}
.th-lib-card:hover{transform:translateY(-3px);box-shadow:0 14px 28px #0b29251a}
.th-lib-cover-link{display:block;background:#eff4f1;padding:16px 18px 11px}
.th-lib-cover{display:flex;align-items:center;justify-content:center;aspect-ratio:3/4}
.th-lib-cover img{display:block;width:100%;height:100%;object-fit:contain;box-shadow:0 10px 20px #071e1a30}
.th-lib-cover-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;height:100%;width:100%;background:linear-gradient(140deg,#0b514f,#163532);border-radius:5px;color:#b4f2e8;font-size:58px}
.th-lib-cover-empty small{font:600 12px var(--font-body);color:#e1f5f1}
.th-lib-card-body{display:flex;flex:1;flex-direction:column;gap:8px;padding:16px}
.th-lib-type{color:#008d91;font:700 10px/1.4 var(--font-body);letter-spacing:.07em;text-transform:uppercase}
.th-lib-card h3{font:700 17px/1.32 var(--font-head);letter-spacing:-.035em;margin:0;color:#183c3a}
.th-lib-card h3 a:hover{color:#007c83}
.th-lib-author,.th-lib-publisher{font-size:12px;color:#5f7370;line-height:1.5;margin:0}
.th-lib-publisher{font-size:11px;color:#758581}
.th-lib-price{font-size:15px;font-weight:750;color:#17413d;line-height:1.3;margin:auto 0 0}
.th-lib-price small{display:block;color:#71827f;font-size:10px;font-weight:500}
.th-lib-affiliate{font-size:10px;color:#5c706a;margin:0}
.th-lib-buy{margin-top:auto;display:inline-flex;align-items:center;justify-content:space-between;gap:8px;background:#008e92;border-radius:50px;padding:9px 12px;color:#fff!important;font-size:11px;font-weight:700;line-height:1.4}
.th-lib-buy:hover{background:#006b71}
.th-lib-disclaimer{font-size:11px;line-height:1.5;color:#6a7c76;margin:18px 0 0}
.th-lib-page{padding:62px 0 80px}
.th-lib-filters{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:32px}
.th-lib-filters a{padding:9px 16px;border:1px solid #d4e1dd;border-radius:30px;background:#fff;color:#315c56;font-size:12px;font-weight:700}
.th-lib-filters a.is-active,.th-lib-filters a:hover{background:#006f75;color:#fff;border-color:#006f75}
.th-lib-empty{background:#f5f9f7;border:1px solid #deebe7;border-radius:14px;padding:38px}
.th-lib-empty h2{font:700 24px/1.2 var(--font-head);margin:0 0 8px}
.th-lib-empty p{color:#5e716a}
@media(max-width:1050px){.th-lib-grid-home{grid-template-columns:repeat(3,minmax(0,1fr))}.th-lib-grid-all{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.th-lib-heading{align-items:flex-start;flex-direction:column}.th-lib-grid-home,.th-lib-grid-all{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.th-lib-card-body{padding:13px}.th-lib-card h3{font-size:15px}.th-lib-cover-link{padding:12px 12px 8px}}
@media(max-width:380px){.th-lib-grid-home,.th-lib-grid-all{grid-template-columns:1fr 1fr;gap:8px}.th-lib-card-body{padding:11px}.th-lib-cover-link{padding:9px}.th-lib-buy{font-size:10px;padding:8px}}

/* Contencao das capas no layout mobile */
.th-lib-grid{width:100%;min-width:0;max-width:100%}
.th-lib-card{width:100%;min-width:0;max-width:100%;overflow:hidden}
.th-lib-cover-link{display:block;width:100%;max-width:100%;min-width:0;overflow:hidden}
.th-lib-cover{width:100%;max-width:100%;min-width:0;aspect-ratio:3/4;max-height:300px}
.th-lib-cover img{display:block;width:100%;height:100%;max-width:100%;max-height:300px;object-fit:contain;object-position:center}
.th-lib-card-description{font-size:12px;line-height:1.5;color:#607370;margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
@media(max-width:760px){.th-lib-grid-home.th-lib-grid-single{grid-template-columns:minmax(0,240px);justify-content:center}}
