/* Vitrine da loja. Os nomes estante-* e o escopo .storefront isolam esta página.
   As variáveis de cor e a fonte Montserrat vêm da folha institucional. */
.storefront {
  --shelf-rule: var(--line-warm, #e5d6ca);
  --shelf-ink: var(--text-strong, #171313);
  --shelf-paper: var(--surface-cream, #fff9f2);
  --shelf-muted: var(--text-muted, #625149);
  --shelf-red: var(--brand-red, #e50914);
}
.storefront [hidden] { display: none !important; }
.storefront > .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.storefront > .skip-link:focus { display: inline-block; padding: .65rem 1rem; background: white; color: #9f1821; }
.storefront .estante-wrap { margin: clamp(2rem, 5vw, 4rem) auto 0; }
.estante-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.5rem, 4vw, 3.2rem);
  background: #fff0e3;
  border-radius: 1.25rem;
  color: var(--shelf-ink);
  overflow: hidden;
}
.estante-kicker, .estante-id, .estante-tag, .estante-count {
  font: 700 .74rem/1.4 var(--font-body, sans-serif);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.estante-kicker { display: flex; align-items: center; gap: .65rem; color: #98232a; }
.estante-kicker::before { content: ""; width: 2rem; height: .2rem; background: var(--shelf-red); }
.estante-masthead h1 {
  margin-block: .6rem .8rem;
  color: var(--shelf-ink);
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 1.03;
  letter-spacing: -.065em;
  text-align: left;
}
.estante-masthead h1 span { color: #b80711; }
.estante-lead { max-width: 50ch; font-size: clamp(.98rem, 1.4vw, 1.12rem); line-height: 1.65; color: var(--shelf-muted); }
.estante-books { display: none; width: 100%; max-width: 23rem; justify-self: end; }
@media (min-width: 48rem) {
  .estante-masthead { grid-template-columns: minmax(0, 1.45fr) minmax(0, .75fr); }
  .estante-books { display: block; }
}

/* Catálogo em ordem de leitura. Na ausência de JavaScript todos os itens são visíveis. */
.estante-catalog { margin-block: clamp(2rem, 5vw, 3.75rem); }
.estante-heading, .estante-tools, .estante-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.estante-heading { justify-content: space-between; gap: .6rem 1.5rem; }
.estante-heading h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.1rem); color: var(--shelf-ink); letter-spacing: -.045em; }
.estante-count { color: var(--shelf-muted); }
.estante-tools { justify-content: space-between; gap: .8rem; padding-block: 1rem; margin-bottom: 1.35rem; border-bottom: 1px solid var(--shelf-rule); }
.estante-tags { gap: .4rem; }
.estante-filter, .estante-reset {
  min-height: 44px;
  border: 1px solid var(--shelf-rule);
  border-radius: 999px;
  padding: .55rem .95rem;
  background: white;
  color: var(--shelf-ink);
  font: 700 .85rem/1.2 var(--font-body, sans-serif);
  cursor: pointer;
}
.estante-filter[aria-pressed="true"] { background: var(--shelf-ink); border-color: var(--shelf-ink); color: white; }
.estante-search { display: flex; align-items: center; gap: .55rem; width: min(100%, 18rem); padding: 0 .85rem; background: white; border: 1px solid var(--shelf-rule); border-radius: .65rem; }
.estante-search svg { flex: none; color: var(--shelf-muted); }
.estante-search input { width: 100%; min-width: 0; min-height: 44px; padding-block: .5rem; border: 0; background: transparent; color: var(--shelf-ink); font-size: 1rem; }
.estante-search:focus-within, .storefront .estante-wrap :focus-visible { outline: 3px solid #ad2630; outline-offset: 3px; }
.estante-search input:focus-visible { outline: 0 !important; }
.estante-empty { margin: 1.2rem 0; padding: 2rem; text-align: center; background: white; border: 1px solid var(--shelf-rule); border-radius: 1rem; }
.estante-empty p { color: var(--shelf-muted); margin-block: .5rem 1rem; }
.estante-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 38rem) { .estante-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 61rem) { .estante-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.estante-grid > li { min-width: 0; display: flex; }
.estante-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  background: var(--surface-white, white);
  border: 1px solid var(--shelf-rule);
  border-radius: 1rem;
}
.estante-cover { display: block; background: var(--shelf-paper); }
.estante-cover img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: contain; }
.estante-info { display: flex; flex: 1; flex-direction: column; align-items: stretch; padding: clamp(1rem, 2.1vw, 1.45rem); }
.estante-meta { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .7rem; }
.estante-tag { color: #9f1821; }
.estante-id { color: #786257; font-size: .68rem; }
.estante-info h3 { font-size: clamp(1.1rem, 2vw, 1.34rem); line-height: 1.23; letter-spacing: -.035em; color: var(--shelf-ink); margin-bottom: .55rem; }
.estante-info p { flex: 1; color: var(--shelf-muted); line-height: 1.6; font-size: .93rem; }
.estante-info a {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  min-height: 44px; margin-top: 1.1rem; padding: .65rem .9rem; border-radius: .5rem;
  background: var(--shelf-red); color: white; font-weight: 700; text-decoration: none;
}
.estante-info a[aria-disabled="true"] { background: #f4ede5; color: #685950; cursor: default; }
.estante-info a:focus-visible { outline-offset: -4px !important; outline-color: white !important; }
.estante-info a[aria-disabled="true"]:focus-visible { outline-color: #80544b !important; }
.estante-disclosure { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem 1.5rem; border-top: 1px solid var(--shelf-rule); padding-block: 1.2rem; color: var(--shelf-muted); font-size: .85rem; line-height: 1.6; }
.estante-disclosure p { flex: 1 1 30rem; }
.estante-disclosure a { color: #9d1720; text-underline-offset: .2em; font-weight: 700; }
@media (hover: hover) {
  .estante-filter:not([aria-pressed="true"]):hover { border-color: #aa7465; background: #fff0e3; }
  .estante-info a:not([aria-disabled]):hover { background: #b80711; }
  .estante-card:has(a:not([aria-disabled]):hover) { border-color: #c8a194; }
}
@media (max-width: 37.99rem) { .estante-search { width: 100%; } }

