
/* =========================================
   BIBLIOTECA PSIFÁCIL — CSS COMPLETO
   Identidade oficial marrom e creme
========================================= */

:root {
  --brown-dark: #332a27;
  --brown: #7a5c58;
  --brown-light: #a8867e;
  --cream: #f7f3ee;
  --cream-dark: #eee6de;
  --white: #fff;
  --text: #302b29;
  --text-soft: #6f6864;
  --text-muted: #8c8581;
  --border: #e5ddd6;
  --container: 1180px;
  --shadow-sm: 0 8px 25px rgba(63,47,42,.06);
  --shadow-md: 0 18px 45px rgba(63,47,42,.09);
  --shadow-lg: 0 30px 70px rgba(63,47,42,.12);
}

/* BASE */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

:focus-visible {
  outline: 3px solid var(--brown-light);
  outline-offset: 3px;
}

::selection {
  background: var(--brown);
  color: white;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 15px;
  z-index: 500;
  background: var(--brown);
  color: white;
  padding: 10px 20px;
  border-radius: 9px;
}

.skip-link:focus {
  top: 12px;
}

/* =========================================
   HEADER
========================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,243,238,.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  flex-shrink: 0;
  line-height: 1;
}

.brand-main {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 27px;
  letter-spacing: -1px;
  color: var(--brown-dark);
}

.brand-sub {
  margin-top: 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--brown);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.header-nav a {
  position: relative;
  font-size: 13px;
  font-weight: 700;
  color: #5f5854;
  transition: color .25s;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--brown);
}

.header-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--brown);
}

.header-back {
  padding: 11px 18px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brown);
  white-space: nowrap;
  transition: .25s;
}

.header-back:hover {
  background: var(--brown);
  border-color: var(--brown);
  color: white;
}

/* =========================================
   HERO — BANNER PRINCIPAL
========================================= */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 80% 40%,
      rgba(234,222,215,.75),
      transparent 36%
    ),
    linear-gradient(180deg, #f8f4ef, #f4eee8);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 65px;
  min-height: 570px;
  padding: 65px 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brown);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.eyebrow-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brown-light);
  box-shadow: 0 0 0 5px rgba(168,134,126,.15);
}

.hero h1 {
  max-width: 690px;
  margin: 32px 0 23px;
  color: var(--brown-dark);
  font-family: "Manrope", sans-serif;
  font-size: clamp(39px, 4.8vw, 66px);
  font-weight: 800;
  letter-spacing: -2.8px;
  line-height: 1.12;
}

.hero h1 em {
  display: block;
  color: var(--brown);
  font-style: normal;
}

.hero-copy > p {
  max-width: 545px;
  margin: 0 0 30px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.85;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 15px 25px;
  background: var(--brown);
  border-radius: 50px;
  color: white;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(122,92,88,.19);
  transition: .25s;
}

.hero-link:hover {
  background: #684c49;
  transform: translateY(-3px);
}

.hero-caption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  color: var(--brown-light);
  font-size: 12px;
}

.caption-line {
  width: 26px;
  height: 1px;
  background: var(--brown-light);
}

/* =========================================
   ILUSTRAÇÃO DOS LIVROS
========================================= */

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 465px;
  perspective: 1100px;
  isolation: isolate;
}

.art-halo {
  position: absolute;
  z-index: -1;
  width: 385px;
  height: 385px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(231,214,204,.85),
    rgba(231,214,204,.45) 62%,
    transparent 74%
  );
}

.art-circle {
  position: absolute;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(122,92,88,.14);
  border-radius: 50%;
}

.hero-art .book {
  position: absolute;
  display: flex;
  flex-direction: column;
  border-radius: 5px 15px 15px 5px;
  box-shadow: 17px 26px 39px rgba(51,42,39,.19);
  transition: transform .35s ease;
}

.book-back {
  width: 215px;
  height: 310px;
  padding: 27px;
  color: white;
  background: linear-gradient(145deg,#c6ada3,#a78a81);
  transform: translate(-63px,4px) rotate(-16deg);
}

.back-book-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

.book-back b {
  margin-top: auto;
  font-family: "Manrope", sans-serif;
  font-size: 27px;
  line-height: 1.2;
}

.book-back i {
  margin-top: 20px;
  align-self: flex-end;
  font-size: 30px;
  font-style: normal;
}

.book-front {
  z-index: 2;
  width: 245px;
  height: 345px;
  padding: 25px 23px;
  background: linear-gradient(
    155deg,
    #81615b 0%,
    #634944 48%,
    #40312d 100%
  );
  color: white;
  transform: translate(48px,5px) rotate(9deg);
  overflow: hidden;
}

.book-front::after {
  content: "";
  position: absolute;
  top: 0;
  left: 7px;
  bottom: 0;
  width: 4px;
  background: rgba(255,255,255,.09);
}

/* LOGO NA CAPA */

.book-cover-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  position: relative;
  z-index: 2;
}

.book-cover-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  padding: 3px;
  background: var(--cream);
  border-radius: 7px;
}

.book-cover-brand > span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.book-cover-brand strong {
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.5px;
}

.book-cover-brand small {
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 1.5px;
  opacity: .85;
}

.book-cover-title {
  position: relative;
  z-index: 2;
  margin-top: auto;
}

.book-cover-title > span {
  display: block;
  margin-bottom: 14px;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 1.2px;
  opacity: .8;
}

.book-cover-title b {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 26px;
  line-height: 1.16;
  letter-spacing: -.9px;
}

.book-cover-line {
  width: 43px;
  height: 2px;
  margin: 16px 0 11px;
  background: #dec8bc;
}

.book-cover-title p {
  margin: 0;
  font-size: 8px;
  line-height: 1.6;
  opacity: .8;
}

.book-cover-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 21px;
}

.book-cover-bottom > span:first-child {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 1px;
  opacity: .8;
}

.book-cover-star {
  color: #e5c8b9;
  font-size: 27px;
  line-height: 1;
}

.art-spark {
  position: absolute;
  color: var(--brown);
}

.art-spark-one {
  top: 45px;
  right: 30px;
  font-size: 32px;
}

.art-spark-two {
  bottom: 60px;
  left: 25px;
  font-size: 22px;
  opacity: .45;
}

.art-caption {
  position: absolute;
  right: 0;
  bottom: 10px;
  color: var(--brown-light);
  font-family: "Lora", serif;
  font-size: 12px;
}

@media (hover: hover) {
  .hero-art:hover .book-front {
    transform: translate(48px,-3px) rotate(7deg);
  }

  .hero-art:hover .book-back {
    transform: translate(-70px,2px) rotate(-18deg);
  }
}

/* =========================================
   CATÁLOGO
========================================= */

.catalog-section {
  padding: 90px 0 110px;
  background: white;
}

.section-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 25px;
  margin-bottom: 32px;
}

.section-intro h2 {
  margin: 14px 0 10px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(30px,3.5vw,43px);
  letter-spacing: -1.4px;
  line-height: 1.2;
  color: var(--brown-dark);
}

.section-intro h2 em {
  color: var(--brown);
  font-style: normal;
}

.section-intro p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
}

.result-count {
  flex-shrink: 0;
  color: var(--brown);
  font-size: 12px;
  font-weight: 700;
}

/* PESQUISA */

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 13px;
  width: min(550px,100%);
  min-height: 55px;
  padding: 0 18px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: .2s;
}

.search-box:focus-within {
  border-color: var(--brown);
  box-shadow: 0 0 0 4px rgba(122,92,88,.08);
}

.search-box svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--brown-light);
}

.search-box input {
  width: 100%;
  min-width: 0;
  padding: 12px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
}

.search-box input::placeholder {
  color: #a49a95;
}

.toolbar-hint {
  color: var(--brown-light);
  font-family: "Lora",serif;
  font-size: 13px;
}

/* FILTROS */

.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 40px;
}

.category-filter {
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: white;
  color: var(--brown);
  font-size: 12px;
  font-weight: 700;
  transition: .2s;
}

.category-filter:hover {
  border-color: var(--brown-light);
}

.category-filter.active {
  background: var(--brown);
  color: white;
  border-color: var(--brown);
}

/* =========================================
   LIVROS SOLTOS — SEM CARDS
========================================= */

.book-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 48px 34px;
  align-items: stretch;
}

.book-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.book-card:hover {
  transform: none;
  box-shadow: none;
}

.book-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 266px;
  padding: 10px 0 22px;
  border: 0;
  background: transparent;
  overflow: visible;
}

.book-image img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
  filter: none;
  transition: transform .3s;
}

.book-image:hover img {
  transform: translateY(-4px);
}

.featured-label {
  position: absolute;
  top: 2px;
  left: 0;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 50px;
  background: var(--cream);
  color: var(--brown);
  font-size: 10px;
  font-weight: 800;
}

.book-placeholder {
  display: grid;
  place-items: center;
  width: 140px;
  height: 198px;
  background: var(--cream-dark);
  border: 1px solid var(--border);
  border-radius: 5px 12px 12px 5px;
  color: var(--brown);
  font-size: 50px;
}

.book-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 12px 0 0;
}

.book-category {
  color: var(--brown);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .3px;
}

.book-title {
  margin: 10px 0 8px;
  color: var(--brown-dark);
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -.3px;
}

.book-author {
  margin: 0 0 13px;
  color: var(--text-muted);
  font-size: 13px;
}

.book-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin: 0 0 20px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.75;
}

.book-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: auto;
  padding-top: 8px;
}

.details-button,
.amazon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 43px;
  padding: 10px 14px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  transition: .2s;
}

.details-button {
  border: 1px solid var(--brown);
  background: var(--brown);
  color: white;
}

.details-button:hover {
  background: var(--brown-dark);
  border-color: var(--brown-dark);
}

.amazon-button {
  border: 1px solid #e6d8d0;
  background: #f5ece6;
  color: var(--brown);
}

.amazon-button:hover {
  background: var(--cream-dark);
}

/* =========================================
   ESTADOS DO CATÁLOGO
========================================= */

.loading-state,
.empty-state,
.error-state {
  grid-column: 1 / -1;
  padding: 60px 25px;
  text-align: center;
}

.spinner {
  width: 38px;
  height: 38px;
  margin: 0 auto 20px;
  border: 3px solid var(--cream-dark);
  border-top-color: var(--brown);
  border-radius: 50%;
  animation: girar .8s linear infinite;
}

@keyframes girar {
  to { transform: rotate(360deg); }
}

.empty-icon {
  display: block;
  margin-bottom: 12px;
  color: var(--brown-light);
  font-size: 42px;
}

.empty-state h3,
.error-state h3 {
  margin: 0 0 10px;
  color: var(--brown-dark);
  font-family: "Manrope",sans-serif;
  font-size: 22px;
}

.empty-state p,
.error-state p,
.loading-state p {
  color: var(--text-soft);
  font-size: 13px;
}

.empty-state button,
.error-state button {
  padding: 12px 22px;
  margin-top: 15px;
  border: 0;
  border-radius: 30px;
  background: var(--brown);
  color: white;
  font-weight: 800;
  font-size: 12px;
}

/* =========================================
   LEMBRETE
========================================= */

.reading-note {
  padding: 55px 0;
  background: var(--cream-dark);
  border-block: 1px solid var(--border);
}

.note-inner {
  display: flex;
  align-items: center;
  gap: 26px;
}

.note-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 19px;
  background: var(--brown);
  color: white;
  font-size: 34px;
}

.note-inner > div:nth-child(2) {
  flex: 1;
}

.note-inner h2 {
  margin: 9px 0;
  font-family: "Manrope",sans-serif;
  font-size: 24px;
  color: var(--brown-dark);
}

.note-inner p {
  max-width: 700px;
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.8;
}

.note-link {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--brown);
}

/* =========================================
   FOOTER — MESMO ESTILO DA HOME
========================================= */

.footer {
  padding: 70px 24px 25px;
  background: #302724;
  color: white;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr .8fr .8fr 1fr;
  gap: 50px;
  width: min(var(--container),100%);
  margin: 0 auto;
}

.footer-brand {
  max-width: 360px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: white;
  font-family: "Manrope",sans-serif;
  font-weight: 800;
  font-size: 27px;
  letter-spacing: -1px;
}

.footer-logo-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.footer-brand p {
  margin: 0 0 20px;
  color: #b9aeaa;
  font-size: 13px;
  line-height: 1.8;
}

.footer-about-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 5px;
  color: #e9d5ca;
  border-bottom: 1px solid rgba(233,213,202,.35);
  font-size: 12px;
  font-weight: 700;
  transition: .2s;
}

.footer-about-btn:hover {
  color: white;
  border-color: white;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}

.footer-column h3 {
  margin: 0 0 10px;
  color: white;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.footer-column > a {
  color: #b9aeaa;
  font-size: 13px;
  transition: color .2s;
}

.footer-column > a:hover {
  color: white;
}

/* REDES SOCIAIS */

.social-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.social-icons a,
.social-disabled {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  transition: .2s;
}

.social-icons a:hover {
  background: rgba(255,255,255,.17);
  transform: translateY(-3px);
}

.social-icons svg {
  display: block;
  width: 22px;
  height: 22px;
}

.social-disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* FAIXA INFERIOR */

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  width: min(var(--container),100%);
  margin: 55px auto 0;
  padding-top: 25px;
  border-top: 1px solid rgba(255,255,255,.11);
}

.footer-bottom-content p {
  margin: 0 0 5px;
  color: #d9ccc5;
  font-size: 12px;
}

.footer-bottom-content > span {
  color: #a99b95;
  font-size: 11px;
}

.footer-love {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  color: #b9aeaa;
  font-size: 11px;
}

.footer-love strong {
  color: #f0e4de;
  font-weight: 700;
}

.footer-heart {
  color: #df8e86;
  font-size: 17px;
}

/* =========================================
   MODAL DOS LIVROS
========================================= */

.detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(51,42,39,.72);
  backdrop-filter: blur(6px);
}

.detail-dialog {
  position: relative;
  width: min(880px,100%);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 23px;
  background: white;
  box-shadow: 0 30px 80px rgba(0,0,0,.24);
}

.detail-close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: white;
  color: var(--brown-dark);
  font-size: 27px;
}

.detail-close:hover {
  background: var(--cream-dark);
}

.detail-layout {
  display: grid;
  grid-template-columns: 43% 57%;
  min-height: 450px;
}

.detail-visual {
  display: grid;
  place-items: center;
  padding: 45px 25px;
  background: white;
}

.detail-image-wrap {
  display: grid;
  place-items: center;
  width: 100%;
}

.detail-image-wrap img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 325px;
  object-fit: contain;
}

.detail-content {
  padding: 55px 43px 45px 32px;
}

.detail-category {
  display: block;
  margin-top: 20px;
  color: var(--brown);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.detail-content h2 {
  margin: 12px 0 9px;
  color: var(--brown-dark);
  font-family: "Manrope",sans-serif;
  font-size: clamp(23px,3vw,34px);
  line-height: 1.25;
}

.detail-author {
  color: var(--text-muted);
  font-size: 13px;
}

.detail-divider {
  height: 1px;
  margin: 23px 0;
  background: var(--border);
}

.detail-content h3 {
  margin: 0 0 12px;
  font-family: "Manrope",sans-serif;
  font-size: 15px;
  color: var(--brown-dark);
}

.detail-description {
  max-height: 220px;
  overflow-y: auto;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.85;
  white-space: pre-wrap;
}

.detail-amazon {
  width: auto;
  margin-top: 25px;
  padding-inline: 25px;
  background: var(--brown);
  border-color: var(--brown);
  color: white;
}

.detail-amazon:hover {
  background: var(--brown-dark);
  color: white;
}

.affiliate-small {
  margin-top: 13px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.6;
}

/* =========================================
   RESPONSIVIDADE
========================================= */

@media (max-width: 1100px) {
  .hero-inner {
    gap: 30px;
  }

  .book-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }

  .footer-container {
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 35px;
  }

  .footer-column:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .header-nav {
    gap: 18px;
  }

  .hero-inner {
    grid-template-columns: 1fr 1fr;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero-art {
    transform: scale(.85);
  }

  .book-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 700px) {
  .container {
    width: calc(100% - 36px);
  }

  .header-inner {
    min-height: 72px;
  }

  .header-nav {
    display: none;
  }

  .brand-main {
    font-size: 24px;
  }

  .brand-sub {
    font-size: 8px;
  }

  .header-back {
    padding: 10px 13px;
    font-size: 11px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 65px 0 15px;
  }

  .hero h1 {
    font-size: clamp(36px,8vw,49px);
    letter-spacing: -1.8px;
  }

  .hero-copy > p {
    font-size: 14px;
  }

  .hero-art {
    min-height: 350px;
    transform: scale(.80);
  }

  .catalog-section {
    padding: 70px 0 80px;
  }

  .section-intro {
    flex-direction: column;
    align-items: flex-start;
  }

  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    width: 100%;
  }

  .toolbar-hint {
    display: none;
  }

  .categories {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
  }

  .category-filter {
    flex-shrink: 0;
  }

  .book-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 35px 18px;
  }

  .book-image {
    height: 210px;
  }

  .book-image img {
    max-height: 175px;
  }

  .book-title {
    font-size: 15px;
  }

  .book-excerpt {
    font-size: 12px;
  }

  .note-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-container {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 40px 25px;
  }

  .footer-column:last-child {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-visual {
    padding: 30px;
  }

  .detail-image-wrap img {
    max-height: 225px;
  }

  .detail-content {
    padding: 30px 25px;
  }
}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 28px);
  }

  .brand-main {
    font-size: 22px;
  }

  .hero h1 {
    font-size: 37px;
  }

  .hero-art {
    min-height: 290px;
    transform: scale(.68);
  }

  .art-caption {
    right: -25px;
  }

  .book-grid {
    gap: 28px 14px;
  }

  .book-image {
    height: 180px;
    padding: 5px 0 15px;
  }

  .book-image img {
    max-height: 155px;
  }

  .featured-label {
    font-size: 9px;
    padding: 4px 7px;
  }

  .book-content {
    padding-top: 8px;
  }

  .book-title {
    font-size: 14px;
  }

  .book-author,
  .book-excerpt {
    font-size: 11px;
  }

  .details-button,
  .amazon-button {
    min-height: 40px;
    padding: 9px 6px;
    font-size: 10px;
  }

  .footer {
    padding: 50px 20px 25px;
  }

  .footer-container {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 35px 20px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-column h3 {
    font-size: 11px;
  }

  .footer-column > a {
    font-size: 12px;
  }

  .footer-column:last-child {
    grid-column: 1 / -1;
  }

  .detail-overlay {
    padding: 10px;
  }

  .detail-dialog {
    max-height: 95vh;
  }

  .detail-content {
    padding: 25px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}


.footer-separator {
  margin: 0 8px;
  color: #a8867e;
  opacity: 0.6;
}

.footer-direitos {
  color: #d8b8a9;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-direitos:hover {
  color: #ffffff;
  text-decoration: underline;
}



/* ==========================================
   FOOTER INFERIOR — PSIFÁCIL
========================================== */

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 22px;
  width: min(1180px, 100%);
  margin: 55px auto 0;
  padding-top: 25px;
  border-top: 1px solid rgba(255,255,255,.12);
}

.footer-bottom-content p {
  margin: 0 0 5px;
  color: #d9ccc5;
  font-size: 12px;
}

.footer-bottom-content > span {
  display: block;
  color: #a99b95;
  font-size: 11px;
}

.footer-love {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px;
  color: #b9aeaa;
  font-size: 11px;
}

.footer-love strong {
  color: #f0e4de;
  font-weight: 700;
}

.footer-heart {
  color: #df8e86;
  font-size: 17px;
}

.footer-separator {
  margin: 0 9px;
  color: #a8867e;
  opacity: .7;
}

.footer-direitos {
  color: #d8b8a9;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: color .25s ease;
}

.footer-direitos:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* RESPONSIVO */

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-love {
    justify-content: flex-start;
  }
}
