:root { color-scheme: light; --ink: #203041; --muted: #596a79; --red: #bb1529; --line: #dce3e8; font: 18px Arial, Helvetica, sans-serif; color: var(--ink); background: #f5f7f8; }
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; }
a:focus-visible, input:focus-visible { outline: 3px solid #176bc0; outline-offset: 4px; }
.shell { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.site-header { background: #192430; color: #fff; border-bottom: 4px solid var(--red); }
.header-row { min-height: 108px; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.brand img { display: block; width: 200px; height: 67px; object-fit: contain; }
.header-link { font-size: 16px; color: #edf1f5; text-decoration: none; border-left: 1px solid #65717f; padding: 10px 0 10px 26px; }
.skip-link { position: absolute; top: -80px; left: 18px; background: #fff; color: #162d42; padding: 15px; z-index: 5; }
.skip-link:focus { top: 15px; }
.hero { padding: 47px 0 34px; }
.eyebrow { font-size: 13px; text-transform: uppercase; letter-spacing: .11em; font-weight: 700; color: var(--red); margin: 0 0 14px; }
h1 { font-size: clamp(34px, 4.4vw, 49px); letter-spacing: -.035em; line-height: 1.12; margin: 0 0 20px; max-width: 900px; }
.hero > p:not(.eyebrow) { margin: 0; max-width: 760px; color: var(--muted); line-height: 1.65; font-size: 20px; }
.catalog-tools { display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; margin-top: 29px; }
.search { width: min(600px, 100%); }
.search label { display: block; font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.search input { width: 100%; min-height: 52px; border: 1px solid #b4c1cb; border-radius: 8px; padding: 13px 15px; font: inherit; color: var(--ink); background: #fff; }
.counter { margin: 0 0 15px; white-space: nowrap; font-size: 15px; color: var(--muted); }
.family { margin-bottom: 40px; }
.family-title { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin: 0 0 22px; }
.family-title .eyebrow { font-size: 11px; margin-bottom: 8px; color: var(--muted); }
h2 { margin: 0 0 10px; font-size: 29px; letter-spacing: -.025em; }
.family-title p:not(.eyebrow) { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 0; }
.family-count { padding: 8px 12px; border: 1px solid var(--line); border-radius: 30px; background: #fff; color: var(--muted); font-size: 13px; white-space: nowrap; }
.manual-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.manual-card { border: 1px solid var(--line); border-radius: 15px; background: #fff; overflow: hidden; box-shadow: 0 6px 24px #142d4206; }
.cover { height: 224px; display: flex; align-items: center; justify-content: center; text-decoration: none; background: #e9edf0; border-bottom: 1px solid var(--line); padding: 20px; }
.cover img { width: auto; height: 184px; display: block; border: 1px solid #d5dbe0; box-shadow: 4px 6px 12px #20304122; }
.cover-placeholder { padding: 30px; font-size: 20px; font-weight: 700; line-height: 1.5; color: #41566a; text-align: center; }
.manual-content { padding: 27px 29px 28px; }
.tags { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 17px; font-size: 13px; font-weight: 700; }
.type-tag { color: #65513c; background: #f4efe7; border-radius: 5px; padding: 7px 10px; }
.pages { color: #176240; background: #e9f6ef; border-radius: 30px; padding: 7px 10px; }
h3 { font-size: 30px; letter-spacing: -.025em; margin: 0 0 13px; line-height: 1.2; }
.manual-content > p { color: var(--muted); font-size: 17px; line-height: 1.7; margin: 0 0 23px; }
.open-button { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 58px; background: var(--red); color: #fff; font-size: 20px; font-weight: 700; text-decoration: none; border-radius: 8px; padding: 15px 20px; }
.open-button:hover { background: #9f1224; }
.new-tab { display: inline-block; margin-top: 17px; font-size: 15px; text-underline-offset: 4px; line-height: 1.6; }
.empty { background: #fff; padding: 32px; border: 1px solid var(--line); border-radius: 12px; line-height: 1.7; }
.footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; border-top: 1px solid var(--line); padding-block: 26px; font-size: 13px; color: var(--muted); }
.footer strong { color: var(--ink); display: block; font-size: 16px; margin-bottom: 7px; }
.footer a { text-underline-offset: 4px; }
.version { font-size: 11px; }
@media(max-width: 700px) {
 .shell { width: calc(100% - 34px); }
 .header-row { min-height: 87px; gap: 14px; }
 .brand img { width: 150px; height: 50px; }
 .header-link { font-size: 13px; padding-left: 15px; max-width: 120px; line-height: 1.4; }
 .hero { padding-top: 32px; }
 .hero > p:not(.eyebrow) { font-size: 18px; }
 .catalog-tools { flex-direction: column; align-items: stretch; gap: 13px; }
 .counter { margin: 0; }
 .family-title { align-items: flex-start; gap: 12px; }
 h2 { font-size: 25px; }
 .family-count { font-size: 11px; padding: 7px 9px; }
 .manual-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
 .cover { height: 168px; padding: 15px; }
 .cover img { height: 138px; }
 .manual-content { padding: 23px; }
 h3 { font-size: 28px; }
 .footer { align-items: flex-start; gap: 22px; }
}

/* Família e visualizador na mesma página */
button { font: inherit; cursor: pointer; }
button:focus-visible { outline: 3px solid #176bc0; outline-offset: 4px; }
.family-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 14px; margin: 28px 0; }
.family-choice { border: 1px solid #cbd6df; border-radius: 10px; background: white; padding: 21px; text-align: left; color: var(--ink); min-height: 100px; }
.family-choice strong { display: block; font-size: 20px; margin-bottom: 10px; }
.family-choice span { font-size: 14px; color: var(--muted); }
.family-choice.active { border: 2px solid var(--red); padding: 20px; background: #fff8f9; }
.family-choice.active strong { color: var(--red); }
.search { width: min(680px, 100%); }
.search-row { display: flex; gap: 10px; }
.search-row input { min-width: 0; }
.clear-search { flex-shrink: 0; background: #fff; border: 1px solid #b4c1cb; color: var(--ink); border-radius: 8px; padding: 10px 15px; font-size: 15px; }
.pending { border: 1px dashed #b5c3ce; border-radius: 14px; padding: 30px; display: flex; align-items: center; gap: 22px; background: #fff; }
.pending > span { font-size: 40px; color: #7a8a97; }
.pending h3 { font-size: 22px; margin: 0 0 9px; }
.pending p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); }
.viewer { padding: 0; margin: 0; border: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; background: #e8edf0; color: var(--ink); }
.viewer[open] { display: flex; flex-direction: column; }
.viewer::backdrop { background: #192430dd; }
.viewer-header { display: flex; align-items: center; gap: 22px; padding: 14px 24px; background: #192430; color: white; min-height: 78px; }
.viewer-header h2 { font-size: 21px; margin: 0; flex: 1; }
.viewer-header a { font-size: 15px; white-space: nowrap; }
.viewer-back { border: 1px solid #74808b; border-radius: 7px; padding: 12px 16px; color: white; background: transparent; font-size: 16px; }
.viewer iframe { border: 0; width: 100%; flex: 1; min-height: 0; background: white; }
@media(max-width:700px) {
 .family-nav { grid-template-columns: minmax(0,1fr); gap: 9px; }
 .family-choice { min-height: 75px; padding: 15px 17px; }
 .family-choice.active { padding: 14px 16px; }
 .family-choice strong { font-size: 18px; margin-bottom: 5px; }
 .pending { padding: 23px; gap: 14px; }
 .search-row { flex-wrap: wrap; }
 .search-row input { flex: 1 1 100%; }
 .viewer-header { flex-wrap: wrap; gap: 12px; padding: 12px 15px; }
 .viewer-header h2 { font-size: 18px; }
 .viewer-back { padding: 11px; font-size: 14px; }
 .viewer-header a { margin-left: auto; }
}

#familias { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px; align-items: start; }
#familias .manual-grid { grid-template-columns: minmax(0,1fr); }
#familias .family { min-width: 0; margin-bottom: 16px; }
@media(max-width:700px) { #familias { grid-template-columns: minmax(0,1fr); gap: 24px; } }

/* Best4Home — Front V2.1.4: duas colunas de famílias. */
:root {
 --ink: #223044;
 --muted: #617184;
 --red: #b91c30;
 --line: #e1e7ee;
 background: #f6f8fb;
 font-family: Arial, Helvetica, sans-serif;
}
body { background: #f6f8fb; }
.shell { width: min(1180px, calc(100% - 64px)); }
.site-header { border-bottom-width: 3px; }
.header-row { min-height: 100px; }
.brand img { width: 190px; height: 64px; }
.hero { padding: 40px 0 30px; }
.hero > .eyebrow { font-size: 11px; letter-spacing: .14em; margin-bottom: 12px; }
.hero h1 { font-size: clamp(32px, 3.8vw, 44px); letter-spacing: -.035em; margin-bottom: 15px; }
.hero > p:not(.eyebrow) { font-size: 17px; line-height: 1.65; max-width: 800px; }
.catalog-tools { margin-top: 23px; gap: 24px; }
.search { width: min(670px, 100%); }
.search label { font-size: 14px; margin-bottom: 9px; }
.search input { min-height: 50px; border-color: #c7d2df; border-radius: 10px; padding: 13px 16px; background: #fff; box-shadow: 0 2px 4px #21354703; font-size: 17px; }
.search input:focus { border-color: #8095ac; }
.counter { font-size: 14px; margin-bottom: 16px; }

/* O grid externo coloca as famílias lado a lado. */
#familias { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; align-items: stretch; padding-bottom: 30px; }
#familias > .family { display: flex; flex-direction: column; min-width: 0; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 5px 20px #20344b05; }
#familias .family-title { padding: 23px 25px 20px; margin: 0; min-height: 160px; flex-shrink: 0; gap: 16px; align-items: flex-start; }
#familias .family-title > div { min-width: 0; }
#familias .family-title .eyebrow { font-size: 10px; letter-spacing: .1em; color: #738196; margin-bottom: 8px; }
#familias .family-title h2 { font-size: 25px; line-height: 1.2; margin-bottom: 9px; letter-spacing: -.025em; }
#familias .family-title p:not(.eyebrow) { font-size: 14px; line-height: 1.55; color: var(--muted); }
#familias .family-count { font-size: 11px; margin-top: 20px; padding: 7px 10px; border-color: #e3e9f0; background: #f8fafc; }

/* Cada cartão ocupa toda a largura da sua família. */
#familias .manual-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; flex: 1; }
#familias .manual-card { display: flex; flex-direction: column; min-width: 0; margin: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
#familias .manual-card + .manual-card { border-top: 1px solid var(--line); }
#familias .cover { height: 220px; padding: 18px; background: linear-gradient(145deg, #f4f7fa, #edf2f7); border-top: 1px solid #edf1f5; border-bottom: 1px solid #edf1f5; }
#familias .cover img { display: block; width: auto; height: 184px; max-width: 100%; object-fit: contain; border: 1px solid #dfe5eb; box-shadow: 0 5px 14px #24384b16; }
#familias .cover-placeholder { font-size: 19px; font-weight: 600; color: #617184; }
#familias .manual-content { display: flex; flex: 1; flex-direction: column; padding: 23px 25px 20px; }
#familias .tags { margin-bottom: 15px; gap: 9px; font-size: 12px; }
#familias .type-tag { padding: 6px 9px; background: #f1f4f8; color: #52647a; font-weight: 600; }
#familias .pages { padding: 6px 9px; color: #287255; background: #edf7f1; }
#familias .manual-content h3 { font-size: 25px; line-height: 1.2; letter-spacing: -.025em; margin-bottom: 10px; }
#familias .manual-content > p { color: var(--muted); font-size: 15px; line-height: 1.6; margin-bottom: 20px; }
#familias .open-button { margin-top: auto; min-height: 51px; font-size: 17px; padding: 13px 17px; border-radius: 9px; background: var(--red); }
#familias .open-button:hover { background: #9d1728; }
#familias .new-tab { align-self: flex-start; margin-top: 8px; padding: 9px 0; min-height: 38px; font-size: 14px; line-height: 1.4; color: #5b6c80; text-underline-offset: 4px; }
#familias .pending { margin: 0 24px 24px; padding: 25px 20px; flex: 1; min-height: 230px; }
.footer { margin-top: 10px; padding-block: 25px; }
.family-nav { gap: 12px; margin-block: 25px; }
.family-choice { min-height: 86px; padding: 18px; border-color: #dce4ed; }
.family-choice.active { padding: 17px; }
.family-choice strong { font-size: 18px; margin-bottom: 8px; }
.family-choice span { font-size: 13px; }

@media (min-width: 761px) and (max-width: 980px) {
 #familias .family-title { min-height: 200px; }
}

@media (max-width: 760px) {
 .shell { width: calc(100% - 34px); }
 .header-row { min-height: 84px; }
 .brand img { width: 155px; height: 52px; }
 .hero { padding: 29px 0 24px; }
 .hero h1 { font-size: clamp(30px, 7vw, 38px); }
 .hero > p:not(.eyebrow) { font-size: 16px; }
 .catalog-tools { flex-direction: column; align-items: stretch; gap: 13px; margin-top: 20px; }
 .counter { margin: 0; }
 #familias { grid-template-columns: minmax(0, 1fr); gap: 21px; }
 #familias .family-title { min-height: 0; padding: 21px; gap: 12px; }
 #familias .family-title h2 { font-size: 24px; }
 #familias .family-count { padding: 6px 8px; font-size: 10px; }
 #familias .cover { height: 200px; padding: 17px; }
 #familias .cover img { height: 166px; }
 #familias .manual-content { padding: 22px 21px 18px; }
 #familias .manual-content h3 { font-size: 25px; }
 #familias .open-button { min-height: 52px; }
 #familias .pending { margin: 0 21px 21px; min-height: 180px; }
 .footer { gap: 18px; align-items: flex-start; }
}
