        :root {
            --bg-primary: #F5FBE6;
            --accent-terracotta: #C66E52;
            --soft-clay: #B77466;
            --text-main: #000000;
            --white: #FFFFFF;
            --black: #000000;
            --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        
        body {
            font-family: "Rambla", sans-serif;
            background-color: var(--bg-primary);
            color: var(--text-main);
            overflow-x: hidden;
            line-height: 1.6;
        }

        .rambla-regular { font-weight: 400; }
        .rambla-bold { font-weight: 700; }
        .rambla-italic { font-style: italic; }

        /* --- NAVIGATION --- */
        header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            padding: 20px 60px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        header.scrolled {
            padding: 15px 60px;
        }


        nav ul {
            display: flex;
            list-style: none;
            gap: 40px;
        }

        nav a {
            text-decoration: none;
            color: var(--text-main);
            font-weight: 400;
            font-size: 1.1rem;
            cursor: pointer;
            transition: var(--transition);
        }

        nav a:hover { color: var(--accent-terracotta); }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 25px;
        }

        .action-btn {
            background: none;
            border: none;
            cursor: pointer;
            position: relative;
            color: var(--text-main);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .badge {
            position: absolute;
            top: -8px;
            right: -8px;
            background: var(--accent-terracotta);
            color: white;
            font-size: 0.7rem;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* --- HERO --- */
        .hero {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            padding: 100px 20px;
            position: relative;
            overflow: hidden;
        }

        .hero-content {
            max-width: 850px;
            z-index: 2;
        }

        .hero h1 {
            font-size: clamp(3rem, 8vw, 6rem);
            color: var(--accent-terracotta);
            margin-bottom: 30px;
            line-height: 1.1;
        }

        .hero p {
            font-size: 1.4rem;
            margin-bottom: 40px;
            opacity: 0.8;
            max-width: 700px;
            margin-left: auto;
            margin-right: auto;
        }

        .hero-image {
            position: absolute;
            bottom: -60px;
            width: 45%;
            right:-5px;
            pointer-events: none;
        }

        @keyframes float {
            0%, 100% { transform: rotate(-5deg) translateY(0); }
            50% { transform: rotate(-3deg) translateY(-20px); }
        }

        /* --- BUTTONS --- */
        .btn {
            display: inline-block;
            padding: 16px 36px;
            background: var(--accent-terracotta);
            color: var(--white);
            text-decoration: none;
            border-radius: 8px;
            font-weight: 700;
            border: none;
            cursor: pointer;
            font-family: inherit;
            font-size: 1.1rem;
            transition: var(--transition);
        }

        .btn:hover {
            background: var(--soft-clay);
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(198, 110, 82, 0.2);
        }

        /* --- SECTIONS --- */
        section { padding: 100px 60px; }
        .white-bg { background: var(--white); }
        .clay-bg { background: var(--soft-clay); color: var(--white); }

        .section-title {
            font-size: 3rem;
            margin-bottom: 50px;
            text-align: center;
            color: var(--accent-terracotta);
        }

        /* --- BOOK GRID --- */
        .filter-container {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-bottom: 50px;
            flex-wrap: wrap;
        }

        .filter-tab {
            padding: 8px 24px;
            border: 1px solid var(--accent-terracotta);
            border-radius: 20px;
            cursor: pointer;
            transition: var(--transition);
        }

        .filter-tab.active {
            background: var(--accent-terracotta);
            color: white;
        }

        .book-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 40px;
            max-width: 1300px;
            margin: 0 auto;
        }

        .book-card {
            background: var(--white);
            border-radius: 12px;
            padding: 20px;
            transition: var(--transition);
            text-align: center;
            border: 1px solid #eee;
            display: flex;
            flex-direction: column;
        }

        .book-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.06);
        }

        .book-cover {
            height: 320px;
            background: #eee;
            border-radius: 6px;
            margin-bottom: 20px;
            overflow: hidden;
            box-shadow: 5px 5px 15px rgba(0,0,0,0.1);
        }

        .book-cover img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .book-card h3 { font-size: 1.3rem; margin-bottom: 5px; }
        .book-card p.author { font-style: italic; color: #666; margin-bottom: 10px; }
        .book-card p.price { font-weight: 700; color: var(--accent-terracotta); font-size: 1.2rem; margin-bottom: 15px; }

        /* --- BLOG --- */
        .blog-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 30px;
            max-width: 1300px;
            margin: 0 auto;
        }

        .blog-card {
            background: var(--bg-primary);
            border-radius: 15px;
            overflow: hidden;
            transition: var(--transition);
        }

        .blog-card:hover { transform: scale(1.02); }

        .blog-img { height: 220px; background: #ddd; }
        .blog-img img { width: 100%; height: 100%; object-fit: cover; }
        .blog-body { padding: 25px; }
        .blog-body h4 { font-size: 1.5rem; margin-bottom: 15px; }
        .blog-link { color: var(--accent-terracotta); text-decoration: none; font-weight: 700; }

        /* --- FOOTER --- */
        footer {
            background: var(--black);
            color: var(--white);
            padding: 80px 60px 40px;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            gap: 50px;
            max-width: 1300px;
            margin: 0 auto;
        }

        .footer-col h5 { font-size: 1.4rem; margin-bottom: 25px; color: var(--bg-primary); }
        .footer-col ul { list-style: none; }
        .footer-col li { margin-bottom: 12px; }
        .footer-col a { color: #ccc; text-decoration: none; transition: 0.3s; cursor: pointer; }
        .footer-col a:hover { color: var(--accent-terracotta); }

        /* --- MODALS --- */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.5);
            backdrop-filter: blur(5px);
            z-index: 2000;
            display: none;
            justify-content: center;
            align-items: center;
        }

        .modal-overlay.active { display: flex; }

        .modal-content {
            background: var(--bg-primary);
            padding: 50px;
            border-radius: 20px;
            max-width: 900px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
        }

        .close-modal {
            position: absolute;
            top: 20px;
            right: 20px;
            cursor: pointer;
        }

        /* --- AUTH FORM --- */
        .auth-form {
            max-width: 400px;
            margin: 0 auto;
        }

        .form-group { margin-bottom: 20px; }
        .form-group label { display: block; margin-bottom: 8px; font-weight: 700; }
        .form-group input {
            width: 100%;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-family: inherit;
        }

        /* --- RESPONSIVE --- */
        @media (max-width: 1000px) {
            .footer-grid, .blog-grid { grid-template-columns: 1fr 1fr; }
            header { padding: 15px 30px; }
            section { padding: 60px 30px; }
        }

        @media (max-width: 600px) {
            .footer-grid, .blog-grid { grid-template-columns: 1fr; }
            nav { display: none; }
            .hero h1 { font-size: 3rem; }
        }

            /* Desktop nav is hidden on small screens */
    .desktop-nav { display: flex; }
    #mobile-menu-toggle { display: none; border: none; background: none; cursor: pointer; }

    @media (max-width: 768px) {
        .desktop-nav { display: none; }
        #mobile-menu-toggle { display: block; }
        #mobile-nav ul { list-style: none; margin: 0; padding: 0; }
        #mobile-nav li { margin: 15px 0; text-align: center; }
        #mobile-nav a { text-decoration: none; color: var(--text-main); font-weight: 500; font-size: 1.2rem; }
        #mobile-nav a:hover { color: var(--accent-terracotta); }
    }

    .btn {
        background-color: #6c5ce7;
        color: white;
        border: none;
        cursor: pointer;
        border-radius: 5px;
        font-weight: 500;
    }
    .btn:hover { background-color: #5a4bd8; }

    .btn-secondary {
        background-color: #dfe6e9;
        color: #2d3436;
    }
    .btn-secondary:hover {
        background-color: #b2bec3;
    }

