/* ============================================================
   LIVRARIA LIDO — STYLE.CSS
   Front-end moderno e responsivo
   ============================================================ */

/* ============================================================
   01. RESET
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 130px;
}

body {
    min-height: 100vh;
    background: #f6f7f9;
    color: #172033;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

body.dark-mode {
    background: #0f172a;
    color: #e5e7eb;
}

body.no-scroll {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

ul,
ol {
    list-style: none;
}

/* ============================================================
   02. VARIÁVEIS
   ============================================================ */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;

    --accent: #f59e0b;
    --accent-dark: #d97706;

    --success: #16a34a;
    --danger: #dc2626;

    --text: #172033;
    --text-soft: #64748b;
    --text-light: #94a3b8;

    --background: #f6f7f9;
    --surface: #ffffff;
    --surface-soft: #f8fafc;

    --border: #e2e8f0;
    --border-dark: #cbd5e1;

    --shadow-sm:
        0 2px 8px rgba(15, 23, 42, 0.05);

    --shadow-md:
        0 8px 30px rgba(15, 23, 42, 0.08);

    --shadow-lg:
        0 20px 50px rgba(15, 23, 42, 0.14);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 30px;

    --container: 1240px;

    --transition:
        180ms ease;

    --transition-slow:
        350ms ease;
}

/* ============================================================
   03. DARK MODE
   ============================================================ */

body.dark-mode {
    --text: #f1f5f9;
    --text-soft: #94a3b8;
    --text-light: #64748b;

    --background: #0f172a;
    --surface: #111c31;
    --surface-soft: #172236;

    --border: #26354d;
    --border-dark: #334155;

    --primary-light: #172554;

    --shadow-sm:
        0 2px 8px rgba(0, 0, 0, 0.2);

    --shadow-md:
        0 8px 30px rgba(0, 0, 0, 0.25);

    --shadow-lg:
        0 20px 50px rgba(0, 0, 0, 0.35);
}

/* ============================================================
   04. ACESSIBILIDADE
   ============================================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.4);
    outline-offset: 3px;
}

/* ============================================================
   05. CONTAINER
   ============================================================ */

.header-container,
.nav-container,
.footer-container,
.footer-bottom,
.categories,
.books-section,
.about-section {
    width: min(
        calc(100% - 40px),
        var(--container)
    );
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   06. HEADER
   ============================================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition:
        background var(--transition),
        box-shadow var(--transition);
}

body.dark-mode .site-header {
    background: rgba(15, 23, 42, 0.94);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-container {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 28px;
}

/* ============================================================
   07. LOGO
   ============================================================ */

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    transition: transform var(--transition);
}

.logo:hover {
    transform: translateY(-1px);
}

.logo-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background:
        linear-gradient(
            135deg,
            var(--primary),
            #7c3aed
        );
    color: #fff;
    font-size: 23px;
    box-shadow:
        0 8px 20px rgba(37, 99, 235, 0.25);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.logo-text strong {
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.logo-text b {
    color: var(--primary);
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

/* ============================================================
   08. SEARCH
   ============================================================ */

.search-form {
    position: relative;
    flex: 1;
    max-width: 620px;
    margin: 0 auto;
}

.search-form input {
    width: 100%;
    height: 48px;
    padding:
        0 58px
        0 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-soft);
    color: var(--text);
    outline: none;
    font-size: 14px;
    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

.search-form input::placeholder {
    color: var(--text-light);
}

.search-form input:hover {
    border-color: var(--border-dark);
}

.search-form input:focus {
    border-color: var(--primary);
    background: var(--surface);
    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.1);
}

.search-form button {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 17px;
    transition:
        background var(--transition),
        transform var(--transition);
}

.search-form button:hover {
    background: var(--primary-dark);
    transform: scale(1.04);
}

/* ============================================================
   09. HEADER ACTIONS
   ============================================================ */

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-link {
    min-width: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 6px 8px;
    border-radius: 10px;
    color: var(--text-soft);
    transition:
        color var(--transition),
        background var(--transition);
}

.header-link:hover {
    color: var(--primary);
    background: var(--surface-soft);
}

.header-link span {
    font-size: 19px;
    line-height: 1.1;
}

.header-link small {
    font-size: 10px;
    white-space: nowrap;
}

.theme-button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--surface-soft);
    color: var(--text);
    transition:
        transform var(--transition),
        background var(--transition);
}

.theme-button:hover {
    transform: rotate(10deg);
    background: var(--primary-light);
}

/* ============================================================
   10. MENU PRINCIPAL
   ============================================================ */

.main-nav {
    position: sticky;
    top: 82px;
    z-index: 900;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-container::-webkit-scrollbar {
    display: none;
}

.nav-container a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 17px;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition:
        color var(--transition),
        background var(--transition);
}

.nav-container a:hover,
.nav-container a.active {
    color: var(--primary);
}

.nav-container a.active::after {
    content: "";
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 0;
    height: 3px;
    border-radius: 4px 4px 0 0;
    background: var(--primary);
}

/* ============================================================
   11. HERO
   ============================================================ */

.hero {
    position: relative;
    width: min(
        calc(100% - 40px),
        var(--container)
    );
    min-height: 440px;
    margin: 34px auto 70px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(124, 58, 237, 0.3),
            transparent 35%
        ),
        linear-gradient(
            120deg,
            #0f172a,
            #172554 60%,
            #1e3a8a
        );
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(15, 23, 42, 0.85),
            rgba(15, 23, 42, 0.25)
        );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 60%;
    padding: 64px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #bfdbfe;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.hero h1 {
    max-width: 650px;
    margin: 20px 0 15px;
    font-size: clamp(
        42px,
        5vw,
        70px
    );
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.hero h1 strong {
    color: #93c5fd;
}

.hero p {
    max-width: 550px;
    margin-bottom: 30px;
    color: #cbd5e1;
    font-size: 17px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* ============================================================
   12. HERO DECORAÇÃO
   ============================================================ */

.hero-decoration {
    position: absolute;
    right: 4%;
    top: 0;
    width: 40%;
    height: 100%;
    display: grid;
    place-items: center;
}

.book-stack {
    position: relative;
    width: 230px;
    height: 280px;
    transform: rotate(-5deg);
}

.book {
    position: absolute;
    display: grid;
    place-items: center;
    border-radius: 8px 18px 18px 8px;
    box-shadow:
        20px 20px 40px rgba(0, 0, 0, 0.35);
    font-size: 90px;
    transition: transform var(--transition-slow);
}

.book-1 {
    width: 160px;
    height: 230px;
    right: 5px;
    top: 25px;
    background: #dc2626;
    transform: rotate(8deg);
}

.book-2 {
    width: 170px;
    height: 240px;
    left: 20px;
    top: 10px;
    background: #2563eb;
    transform: rotate(-4deg);
}

.book-3 {
    width: 155px;
    height: 225px;
    left: 0;
    bottom: 0;
    background: #16a34a;
    transform: rotate(-12deg);
}

.hero:hover .book-1 {
    transform:
        rotate(12deg)
        translate(12px, -8px);
}

.hero:hover .book-2 {
    transform:
        rotate(-7deg)
        translate(-8px, -10px);
}

.hero:hover .book-3 {
    transform:
        rotate(-16deg)
        translate(-10px, 5px);
}

/* ============================================================
   13. BOTÕES
   ============================================================ */

.btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: #fff;
    color: #172033;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ============================================================
   14. SEÇÕES
   ============================================================ */

.categories,
.books-section,
.about-section {
    margin-bottom: 76px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.section-heading h2,
.about-section h2,
.highlight-section h2 {
    color: var(--text);
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.view-all {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    transition: transform var(--transition);
}

.view-all:hover {
    transform: translateX(4px);
}

.book-count {
    color: var(--text-soft);
    font-size: 13px;
}

/* ============================================================
   15. CATEGORIAS
   ============================================================ */

.category-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.category-card {
    min-height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition:
        transform var(--transition-slow),
        box-shadow var(--transition-slow),
        border-color var(--transition);
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: #bfdbfe;
    box-shadow: var(--shadow-md);
}

.category-card span {
    margin-bottom: 12px;
    font-size: 28px;
}

.category-card strong {
    color: var(--text);
    font-size: 14px;
}

.category-card small {
    margin-top: 3px;
    color: var(--text-soft);
    font-size: 11px;
}

/* ============================================================
   16. GRID DE LIVROS
   ============================================================ */

.book-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.book-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition:
        transform var(--transition-slow),
        box-shadow var(--transition-slow),
        border-color var(--transition);
}

.book-card:hover {
    transform: translateY(-7px);
    border-color: #bfdbfe;
    box-shadow: var(--shadow-lg);
}

/* ============================================================
   17. CAPA
   ============================================================ */

.book-cover {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        linear-gradient(
            145deg,
            #e2e8f0,
            #f8fafc
        );
}

.book-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            110deg,
            rgba(255, 255, 255, 0.22),
            transparent 30%
        );
    pointer-events: none;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 18px;
    transition:
        transform var(--transition-slow);
}

.book-card:hover .book-cover img {
    transform: scale(1.055);
}

.book-overlay {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    padding: 10px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.88);
    color: #fff;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity var(--transition),
        transform var(--transition);
}

.book-card:hover .book-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   18. INFORMAÇÕES DO LIVRO
   ============================================================ */

.book-info {
    min-height: 170px;
    padding: 17px;
    display: flex;
    flex-direction: column;
}

.book-info h3 {
    min-height: 43px;
    margin-bottom: 5px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.45;
}

.book-info h3 a:hover {
    color: var(--primary);
}

.book-author {
    margin-bottom: 4px;
    overflow: hidden;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.book-publisher {
    overflow: hidden;
    color: var(--text-light);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.book-bottom {
    min-height: 40px;
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid var(--border);
}

.book-price {
    color: var(--primary);
    font-size: 16px;
    font-weight: 800;
}

.details-button {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 800;
    transition:
        background var(--transition),
        color var(--transition),
        transform var(--transition);
}

.details-button:hover {
    background: var(--primary);
    color: #fff;
    transform: translateX(2px);
}

.buy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 9px;
    background: var(--success);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    transition:
        background var(--transition),
        transform var(--transition);
}

.buy-button:hover {
    background: #15803d;
    transform: translateY(-1px);
}

/* ============================================================
   19. DESTAQUE
   ============================================================ */

.highlight-section {
    position: relative;
    width: min(
        calc(100% - 40px),
        var(--container)
    );
    min-height: 280px;
    margin: 0 auto 76px;
    padding: 55px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(
            120deg,
            #eff6ff,
            #f5f3ff
        );
    border: 1px solid #dbeafe;
}

body.dark-mode .highlight-section {
    background:
        linear-gradient(
            120deg,
            #172554,
            #2e1065
        );
    border-color: #312e81;
}

.highlight-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.highlight-section p {
    max-width: 600px;
    margin: 14px 0 25px;
    color: var(--text-soft);
    font-size: 14px;
}

.highlight-section .btn-primary {
    background: var(--primary);
    color: #fff;
}

.highlight-section .btn-primary:hover {
    background: var(--primary-dark);
}

.highlight-icon {
    position: relative;
    z-index: 1;
    width: 180px;
    height: 180px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-md);
    font-size: 80px;
    transform: rotate(8deg);
}

body.dark-mode .highlight-icon {
    background: rgba(255, 255, 255, 0.08);
}

/* ============================================================
   20. EMPTY STATE
   ============================================================ */

.empty-state {
    grid-column: 1 / -1;
    min-height: 250px;
    display: grid;
    place-items: center;
    align-content: center;
    padding: 40px;
    border: 1px dashed var(--border-dark);
    border-radius: var(--radius-md);
    background: var(--surface);
    text-align: center;
}

.empty-state span {
    margin-bottom: 10px;
    font-size: 45px;
}

.empty-state h3 {
    margin-bottom: 5px;
    color: var(--text);
    font-size: 18px;
}

.empty-state p {
    color: var(--text-soft);
    font-size: 13px;
}

/* ============================================================
   21. SOBRE
   ============================================================ */

.about-section {
    display: grid;
    grid-template-columns: 180px 1fr;
    align-items: center;
    gap: 40px;
    padding: 45px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.about-icon {
    width: 150px;
    height: 150px;
    display: grid;
    place-items: center;
    border-radius: 35px;
    background:
        linear-gradient(
            135deg,
            var(--primary-light),
            #ede9fe
        );
    font-size: 70px;
}

.about-section p {
    max-width: 720px;
    margin: 15px 0;
    color: var(--text-soft);
    font-size: 14px;
}

.text-link {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.text-link:hover {
    text-decoration: underline;
}

/* ============================================================
   22. FOOTER
   ============================================================ */

.site-footer {
    margin-top: 90px;
    background: #0f172a;
    color: #cbd5e1;
}

.footer-container {
    padding-top: 55px;
    padding-bottom: 45px;
    display: grid;
    grid-template-columns:
        2fr 1fr 1fr;
    gap: 50px;
}

.footer-brand {
    max-width: 380px;
}

.footer-logo {
    margin-bottom: 12px;
    color: #fff;
    font-size: 21px;
    font-weight: 800;
}

.footer-brand p {
    color: #94a3b8;
    font-size: 13px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.footer-column h3 {
    margin-bottom: 8px;
    color: #fff;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-column a {
    color: #94a3b8;
    font-size: 12px;
    transition:
        color var(--transition),
        transform var(--transition);
}

.footer-column a:hover {
    color: #fff;
    transform: translateX(3px);
}

.footer-bottom {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #64748b;
    font-size: 11px;
}

/* ============================================================
   23. WHATSAPP FLUTUANTE
   ============================================================ */

.floating-whatsapp {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1100;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    font-size: 26px;
    box-shadow:
        0 10px 30px rgba(34, 197, 94, 0.35);
    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.floating-whatsapp:hover {
    transform: scale(1.08);
    box-shadow:
        0 14px 35px rgba(34, 197, 94, 0.45);
}

/* ============================================================
   24. ANIMAÇÕES
   ============================================================ */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.04);
    }
}

.hero-content {
    animation:
        fadeUp 600ms ease both;
}

.book-card {
    animation:
        fadeUp 500ms ease both;
}

.category-card {
    animation:
        fadeUp 450ms ease both;
}

/* ============================================================
   25. RESPONSIVIDADE — 1100PX
   ============================================================ */

@media (max-width: 1100px) {

    .header-container {
        gap: 16px;
    }

    .header-actions {
        gap: 2px;
    }

    .header-link {
        min-width: 48px;
    }

    .book-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .category-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .hero-content {
        width: 70%;
        padding: 50px;
    }

    .hero-decoration {
        opacity: 0.75;
    }
}

/* ============================================================
   26. RESPONSIVIDADE — 800PX
   ============================================================ */

@media (max-width: 800px) {

    html {
        scroll-padding-top: 125px;
    }

    .header-container {
        min-height: auto;
        padding-top: 12px;
        padding-bottom: 12px;
        flex-wrap: wrap;
    }

    .logo {
        order: 1;
    }

    .header-actions {
        order: 2;
        margin-left: auto;
    }

    .search-form {
        order: 3;
        flex-basis: 100%;
        max-width: none;
    }

    .main-nav {
        top: 111px;
    }

    .hero {
        min-height: 500px;
        margin-top: 25px;
    }

    .hero-content {
        width: 100%;
        padding: 45px 35px;
    }

    .hero-decoration {
        right: -40px;
        width: 50%;
        opacity: 0.22;
    }

    .hero h1 {
        font-size: 48px;
    }

    .book-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .about-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-icon {
        margin: auto;
    }

    .about-section p {
        margin-left: auto;
        margin-right: auto;
    }

    .highlight-section {
        padding: 40px;
    }

    .highlight-icon {
        width: 130px;
        height: 130px;
        font-size: 60px;
    }

    .footer-container {
        grid-template-columns:
            1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* ============================================================
   27. RESPONSIVIDADE — 560PX
   ============================================================ */

@media (max-width: 560px) {

    .header-container,
    .nav-container,
    .footer-container,
    .footer-bottom,
    .categories,
    .books-section,
    .about-section {
        width: min(
            calc(100% - 24px),
            var(--container)
        );
    }

    .header-container {
        gap: 10px;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        border-radius: 11px;
        font-size: 20px;
    }

    .logo-text b {
        font-size: 20px;
    }

    .logo-text strong {
        font-size: 9px;
    }

    .header-link {
        display: none;
    }

    .theme-button {
        width: 38px;
        height: 38px;
    }

    .search-form input {
        height: 44px;
    }

    .search-form button {
        width: 34px;
        height: 34px;
    }

    .main-nav {
        top: 110px;
    }

    .nav-container a {
        padding-left: 12px;
        padding-right: 12px;
        font-size: 11px;
    }

    .hero {
        width: calc(100% - 24px);
        min-height: 470px;
        margin-bottom: 50px;
        border-radius: 22px;
    }

    .hero-content {
        padding: 35px 25px;
    }

    .hero h1 {
        margin-top: 16px;
        font-size: 42px;
    }

    .hero p {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-decoration {
        right: -80px;
        width: 70%;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .category-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .category-card {
        min-height: 115px;
        padding: 15px;
    }

    .category-card span {
        margin-bottom: 7px;
        font-size: 23px;
    }

    .category-card strong {
        font-size: 12px;
    }

    .category-card small {
        font-size: 9px;
    }

    .book-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .book-cover {
        height: 220px;
    }

    .book-cover img {
        padding: 10px;
    }

    .book-info {
        min-height: 155px;
        padding: 12px;
    }

    .book-info h3 {
        min-height: 39px;
        font-size: 12px;
    }

    .book-author {
        font-size: 10px;
    }

    .book-publisher {
        font-size: 9px;
    }

    .book-price {
        font-size: 13px;
    }

    .details-button {
        width: 30px;
        height: 30px;
    }

    .buy-button {
        padding: 0 8px;
        font-size: 9px;
    }

    .highlight-section {
        width: calc(100% - 24px);
        min-height: 330px;
        padding: 30px 25px;
    }

    .highlight-icon {
        position: absolute;
        right: -35px;
        bottom: -35px;
        opacity: 0.3;
    }

    .about-section {
        padding: 30px 20px;
        gap: 25px;
    }

    .about-icon {
        width: 110px;
        height: 110px;
        font-size: 55px;
        border-radius: 25px;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px 20px;
    }

    .footer-bottom {
        padding: 15px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }

    .floating-whatsapp {
        right: 15px;
        bottom: 15px;
        width: 52px;
        height: 52px;
        font-size: 23px;
    }
}

/* ============================================================
   28. TELAS MUITO PEQUENAS
   ============================================================ */

@media (max-width: 360px) {

    .book-grid {
        grid-template-columns: 1fr;
    }

    .book-cover {
        height: 300px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-tag {
        font-size: 9px;
    }
}

/* ============================================================
   29. REDUÇÃO DE MOVIMENTO
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}

/* ============================================================
   30. IMPRESSÃO
   ============================================================ */

@media print {

    .site-header,
    .main-nav,
    .floating-whatsapp,
    .hero-buttons,
    .theme-button,
    .search-form,
    .site-footer {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .hero,
    .highlight-section,
    .about-section,
    .book-card,
    .category-card {
        box-shadow: none;
        break-inside: avoid;
    }

    .book-grid {
        grid-template-columns:
            repeat(4, 1fr);
    }

    .book-overlay {
        display: none;
    }

}

/* ============================================================
   FIM DO STYLE.CSS
   ============================================================ */