    :root {
            --primary: #8B4513;
            --primary-light: #A0522D;
            --secondary: #2C5530;
            --accent: #D4AF37;
            --light: #F5F5F5;
            --dark: #2C2C2C;
            --gray: #6C757D;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Montserrat', sans-serif;
            background-color: #fefefe;
            color: var(--dark);
            overflow-x: hidden;
        }

        h1, h2, h3, h4, h5 {
            font-family: 'Playfair Display', serif;
            font-weight: 700;
        }

        /* Header & Navigation */
        .navbar {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
            padding: 15px 0;
            transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
        }

        .navbar.scrolled {
            padding: 10px 0;
            background: rgba(255, 255, 255, 0.98);
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
        }

        .navbar-brand {
            font-family: 'Dancing Script', cursive;
            font-weight: 700;
            font-size: 32px;
            color: var(--primary);
            display: flex;
            align-items: center;
            transition: all 0.5s ease;
        }

        .navbar-brand:hover {
            transform: scale(1.05);
        }

        .navbar-brand i {
            color: var(--accent);
            margin-right: 10px;
            font-size: 36px;
            transition: transform 0.5s ease;
        }

        .navbar-brand:hover i {
            transform: rotate(15deg);
        }

        .nav-link {
            font-family: 'Raleway', sans-serif;
            font-weight: 500;
            margin: 0 10px;
            color: var(--dark);
            position: relative;
            transition: color 0.3s;
        }

        .nav-link:hover {
            color: var(--primary);
        }

        .nav-link::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--primary);
            transition: width 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
        }

        .nav-link:hover::after {
            width: 100%;
        }

        .navbar-toggler {
            border: none;
            padding: 5px 10px;
            transition: transform 0.3s ease;
        }

        .navbar-toggler:focus {
            box-shadow: none;
        }

        .navbar-toggler:hover {
            transform: scale(1.1);
        }

        /* Hero Section */
        .hero {
            background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                        url('https://images.unsplash.com/photo-1507842217343-583bb7270b66?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1740&q=80');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            color: white;
            padding: 180px 0 120px;
            position: relative;
            overflow: hidden;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, rgba(139, 69, 19, 0.3), rgba(212, 175, 55, 0.3));
            z-index: 1;
            animation: gradientShift 8s ease-in-out infinite;
        }

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

        .hero h1 {
            font-size: 4rem;
            margin-bottom: 20px;
            animation: fadeInUp 1.2s ease, textGlow 3s ease-in-out infinite alternate;
            text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
        }

        .hero p {
            font-family: 'Source Serif Pro', serif;
            font-size: 1.3rem;
            margin-bottom: 30px;
            animation: fadeInUp 1.2s ease 0.3s both;
            font-weight: 300;
        }

        .hero-btns {
            animation: fadeInUp 1.2s ease 0.6s both;
        }

        .btn-primary-custom {
            background: var(--primary);
            border: none;
            padding: 14px 35px;
            font-weight: 600;
            border-radius: 30px;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            position: relative;
            overflow: hidden;
            font-family: 'Raleway', sans-serif;
        }

        .btn-primary-custom::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            transition: left 0.7s ease;
        }

        .btn-primary-custom:hover {
            background: var(--primary-light);
            transform: translateY(-5px) scale(1.05);
            box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
        }

        .btn-primary-custom:hover::before {
            left: 100%;
        }

        .btn-outline-custom {
            border: 2px solid white;
            color: white;
            background: transparent;
            padding: 12px 32px;
            font-weight: 600;
            border-radius: 30px;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            font-family: 'Raleway', sans-serif;
            position: relative;
            overflow: hidden;
        }

        .btn-outline-custom::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 0;
            height: 100%;
            background: white;
            transition: width 0.4s ease;
            z-index: -1;
        }

        .btn-outline-custom:hover {
            color: var(--dark);
            transform: translateY(-5px) scale(1.05);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        }

        .btn-outline-custom:hover::before {
            width: 100%;
        }

        /* Featured Books */
        .section-title {
            text-align: center;
            margin-bottom: 60px;
            position: relative;
        }

        .section-title h2 {
            font-size: 2.8rem;
            color: var(--primary);
            display: inline-block;
            position: relative;
            animation: titlePulse 3s ease-in-out infinite;
        }

        .section-title h2::after {
            content: '';
            position: absolute;
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 4px;
            background: var(--accent);
            border-radius: 2px;
            animation: lineExtend 2s ease-in-out infinite alternate;
        }

        .book-card {
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            margin-bottom: 30px;
            height: 100%;
            opacity: 0;
            transform: translateY(30px);
            animation: cardAppear 0.8s ease forwards;
        }

        .book-card:nth-child(1) { animation-delay: 0.1s; }
        .book-card:nth-child(2) { animation-delay: 0.2s; }
        .book-card:nth-child(3) { animation-delay: 0.3s; }
        .book-card:nth-child(4) { animation-delay: 0.4s; }

        .book-card:hover {
            transform: translateY(-15px) rotate(1deg);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        }

        .book-img {
            height: 300px;
            overflow: hidden;
            position: relative;
        }

        .book-img::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 0;
            background: linear-gradient(transparent, rgba(139, 69, 19, 0.3));
            transition: height 0.5s ease;
        }

        .book-card:hover .book-img::after {
            height: 100%;
        }

        .book-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.7s ease;
        }

        .book-card:hover .book-img img {
            transform: scale(1.15) rotate(1deg);
        }

        .book-info {
            padding: 25px;
            position: relative;
        }

        .book-title {
            font-family: 'Playfair Display', serif;
            font-size: 1.4rem;
            font-weight: 700;
            margin-bottom: 10px;
            color: var(--dark);
            transition: color 0.3s ease;
        }

        .book-card:hover .book-title {
            color: var(--primary);
        }

        .book-author {
            font-family: 'Source Serif Pro', serif;
            color: var(--gray);
            font-size: 0.95rem;
            margin-bottom: 10px;
            font-style: italic;
        }

        .book-price {
            font-family: 'Raleway', sans-serif;
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 15px;
            transition: transform 0.3s ease;
        }

        .book-card:hover .book-price {
            transform: scale(1.1);
        }

        .book-rating {
            color: var(--accent);
            margin-bottom: 15px;
            font-size: 0.9rem;
        }

        .btn-sm-custom {
            background: var(--secondary);
            color: white;
            border: none;
            padding: 10px 22px;
            border-radius: 20px;
            font-size: 0.9rem;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            font-family: 'Raleway', sans-serif;
            font-weight: 600;
            position: relative;
            overflow: hidden;
        }

        .btn-sm-custom::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            transition: left 0.7s ease;
        }

        .btn-sm-custom:hover {
            background: var(--primary);
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
        }

        .btn-sm-custom:hover::before {
            left: 100%;
        }

        /* Categories */
        .categories-section {
            background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
            padding: 100px 0;
            position: relative;
            overflow: hidden;
        }

        .categories-section::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
            animation: float 20s linear infinite;
        }

        .category-card {
            background: white;
            border-radius: 15px;
            padding: 35px 25px;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            margin-bottom: 30px;
            height: 100%;
            cursor: pointer;
            opacity: 0;
            transform: translateY(30px);
            animation: cardAppear 0.8s ease forwards;
        }

        .category-card:nth-child(1) { animation-delay: 0.1s; }
        .category-card:nth-child(2) { animation-delay: 0.2s; }
        .category-card:nth-child(3) { animation-delay: 0.3s; }
        .category-card:nth-child(4) { animation-delay: 0.4s; }
        .category-card:nth-child(5) { animation-delay: 0.5s; }
        .category-card:nth-child(6) { animation-delay: 0.6s; }

        .category-card:hover {
            transform: translateY(-15px) scale(1.03);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        }

        .category-icon {
            width: 90px;
            height: 90px;
            background: var(--primary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 25px;
            color: white;
            font-size: 35px;
            transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            position: relative;
            overflow: hidden;
        }

        .category-icon::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255,255,255,0.1);
            transform: scale(0);
            border-radius: 50%;
            transition: transform 0.5s ease;
        }

        .category-card:hover .category-icon {
            background: var(--accent);
            transform: rotateY(180deg) scale(1.1);
        }

        .category-card:hover .category-icon::before {
            transform: scale(1);
        }

        .category-card h3 {
            font-family: 'Playfair Display', serif;
            font-size: 1.6rem;
            margin-bottom: 15px;
            color: var(--dark);
            transition: color 0.3s ease;
        }

        .category-card:hover h3 {
            color: var(--primary);
        }

        .category-card p {
            font-family: 'Source Serif Pro', serif;
            color: var(--gray);
            margin-bottom: 20px;
            font-size: 1rem;
            line-height: 1.6;
        }

        /* Testimonials */
        .testimonial-section {
            padding: 100px 0;
            background: white;
            position: relative;
            overflow: hidden;
        }

        .testimonial-section::before {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 300px;
            height: 300px;
            background: radial-gradient(circle, rgba(139, 69, 19, 0.05) 0%, transparent 70%);
            animation: pulse 4s ease-in-out infinite alternate;
        }

        .testimonial-card {
            background: white;
            border-radius: 15px;
            padding: 35px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            margin: 15px;
            position: relative;
            transition: all 0.4s ease;
            opacity: 0;
            transform: translateY(30px);
            animation: cardAppear 0.8s ease forwards;
        }

        .testimonial-card:nth-child(1) { animation-delay: 0.1s; }
        .testimonial-card:nth-child(2) { animation-delay: 0.2s; }
        .testimonial-card:nth-child(3) { animation-delay: 0.3s; }

        .testimonial-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
        }

        .testimonial-card::before {
            content: '\201C';
            font-size: 100px;
            color: var(--accent);
            position: absolute;
            top: -30px;
            left: 20px;
            font-family: Georgia, serif;
            opacity: 0.2;
            animation: quoteFloat 3s ease-in-out infinite;
        }

        .testimonial-text {
            font-family: 'Source Serif Pro', serif;
            font-style: italic;
            margin-bottom: 25px;
            color: var(--dark);
            font-size: 1.1rem;
            line-height: 1.7;
        }

        .testimonial-author {
            display: flex;
            align-items: center;
        }

        .author-img {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            overflow: hidden;
            margin-right: 15px;
            border: 3px solid var(--accent);
            transition: transform 0.3s ease;
        }

        .testimonial-card:hover .author-img {
            transform: scale(1.1);
        }

        .author-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .author-info h4 {
            font-family: 'Raleway', sans-serif;
            margin-bottom: 0;
            font-size: 1.1rem;
            font-weight: 600;
        }

        .author-info p {
            font-family: 'Montserrat', sans-serif;
            color: var(--gray);
            margin-bottom: 0;
            font-size: 0.9rem;
        }

        /* Newsletter */
        .newsletter-section {
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            padding: 100px 0;
            color: white;
            position: relative;
            overflow: hidden;
        }

        .newsletter-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('https://images.unsplash.com/photo-1481627834876-b7833e8f5570?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80');
            background-size: cover;
            background-position: center;
            opacity: 0.1;
            animation: backgroundPan 30s linear infinite;
        }

        .newsletter-content {
            text-align: center;
            max-width: 600px;
            margin: 0 auto;
            position: relative;
            z-index: 2;
        }

        .newsletter-content h2 {
            font-family: 'Playfair Display', serif;
            font-size: 2.8rem;
            margin-bottom: 20px;
            animation: textGlow 3s ease-in-out infinite alternate;
        }

        .newsletter-content p {
            font-family: 'Source Serif Pro', serif;
            margin-bottom: 30px;
            font-size: 1.2rem;
            font-weight: 300;
        }

        .newsletter-form {
            display: flex;
            max-width: 500px;
            margin: 0 auto;
            position: relative;
        }

        .newsletter-input {
            flex: 1;
            padding: 15px 25px;
            border: none;
            border-radius: 30px 0 0 30px;
            outline: none;
            font-family: 'Montserrat', sans-serif;
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .newsletter-input:focus {
            box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.5);
        }

        .newsletter-btn {
            background: var(--accent);
            color: var(--dark);
            border: none;
            padding: 0 30px;
            border-radius: 0 30px 30px 0;
            font-weight: 600;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            font-family: 'Raleway', sans-serif;
        }

        .newsletter-btn:hover {
            background: #e6c12e;
            transform: scale(1.05);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        /* Footer */
        footer {
            background: var(--dark);
            color: white;
            padding: 80px 0 20px;
            position: relative;
            overflow: hidden;
        }

        footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
        }

        .footer-logo {
            font-family: 'Dancing Script', cursive;
            font-weight: 700;
            font-size: 36px;
            color: white;
            display: flex;
            align-items: center;
            margin-bottom: 20px;
            transition: transform 0.3s ease;
        }

        .footer-logo:hover {
            transform: scale(1.05);
        }

        .footer-logo i {
            color: var(--accent);
            margin-right: 10px;
            font-size: 40px;
            transition: transform 0.5s ease;
        }

        .footer-logo:hover i {
            transform: rotate(15deg);
        }

        .footer-about p {
            font-family: 'Source Serif Pro', serif;
            color: #aaa;
            margin-bottom: 20px;
            font-size: 1rem;
            line-height: 1.7;
        }

        .footer-links h4 {
            font-family: 'Playfair Display', serif;
            font-size: 1.4rem;
            margin-bottom: 20px;
            position: relative;
            padding-bottom: 10px;
        }

        .footer-links h4::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 40px;
            height: 3px;
            background: var(--accent);
            transition: width 0.3s ease;
        }

        .footer-links:hover h4::after {
            width: 80px;
        }

        .footer-links ul {
            list-style: none;
            padding: 0;
        }

        .footer-links li {
            margin-bottom: 12px;
            transition: transform 0.3s ease;
        }

        .footer-links li:hover {
            transform: translateX(5px);
        }

        .footer-links a {
            font-family: 'Montserrat', sans-serif;
            color: #aaa;
            text-decoration: none;
            transition: color 0.3s;
        }

        .footer-links a:hover {
            color: var(--accent);
        }

        .social-icons {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }

        .social-icons a {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            position: relative;
            overflow: hidden;
        }

        .social-icons a::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--accent);
            transform: scale(0);
            border-radius: 50%;
            transition: transform 0.3s ease;
        }

        .social-icons a:hover {
            transform: translateY(-5px) scale(1.1);
            box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
        }

        .social-icons a:hover::before {
            transform: scale(1);
        }

        .social-icons a i {
            position: relative;
            z-index: 1;
        }

        .copyright {
            text-align: center;
            padding-top: 30px;
            margin-top: 50px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: #aaa;
            font-size: 0.9rem;
            font-family: 'Montserrat', sans-serif;
        }

        /* Shopping Cart */
        .cart-sidebar {
            position: fixed;
            top: 0;
            right: -450px;
            width: 400px;
            height: 100vh;
            background: white;
            box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
            transition: right 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
            z-index: 1050;
            padding: 25px;
            overflow-y: auto;
        }

        .cart-sidebar.active {
            right: 0;
        }

        .cart-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 1px solid #eee;
        }

        .close-cart {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--gray);
            transition: transform 0.3s ease;
        }

        .close-cart:hover {
            transform: rotate(90deg);
        }

        .cart-items {
            margin-bottom: 25px;
            max-height: 60vh;
            overflow-y: auto;
        }

        .cart-item {
            display: flex;
            margin-bottom: 20px;
            padding-bottom: 20px;
            border-bottom: 1px solid #eee;
            animation: slideInRight 0.5s ease;
        }

        .cart-item-img {
            width: 80px;
            height: 100px;
            object-fit: cover;
            border-radius: 8px;
            margin-right: 15px;
            transition: transform 0.3s ease;
        }

        .cart-item:hover .cart-item-img {
            transform: scale(1.05);
        }

        .cart-item-details {
            flex: 1;
        }

        .cart-item-title {
            font-family: 'Playfair Display', serif;
            font-weight: 600;
            margin-bottom: 5px;
            font-size: 1.1rem;
        }

        .cart-item-price {
            font-family: 'Raleway', sans-serif;
            color: var(--primary);
            font-weight: 600;
        }

        .cart-item-remove {
            color: var(--danger);
            background: none;
            border: none;
            cursor: pointer;
            font-size: 0.9rem;
            margin-top: 5px;
            transition: color 0.3s ease;
        }

        .cart-item-remove:hover {
            color: #c82333;
        }

        .cart-total {
            display: flex;
            justify-content: space-between;
            font-family: 'Raleway', sans-serif;
            font-weight: 700;
            font-size: 1.3rem;
            margin-bottom: 25px;
            padding-top: 20px;
            border-top: 2px solid #eee;
        }

        .checkout-btn {
            width: 100%;
            padding: 15px;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 10px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            font-family: 'Raleway', sans-serif;
            font-size: 1.1rem;
            position: relative;
            overflow: hidden;
        }

        .checkout-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            transition: left 0.7s ease;
        }

        .checkout-btn:hover {
            background: var(--primary-light);
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
        }

        .checkout-btn:hover::before {
            left: 100%;
        }

        .cart-count {
            background: var(--accent);
            color: var(--dark);
            border-radius: 50%;
            width: 22px;
            height: 22px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            font-weight: 700;
            position: absolute;
            top: -5px;
            right: -5px;
            animation: pulse 1.5s infinite;
        }

        /* Category Books Section */
        .category-books {
            display: none;
            padding: 80px 0;
            background: linear-gradient(135deg, #f9f5f0 0%, #f0e6d6 100%);
        }

        .category-books.active {
            display: block;
            animation: fadeIn 0.8s ease;
        }

        .back-to-categories {
            background: var(--secondary);
            color: white;
            border: none;
            padding: 12px 25px;
            border-radius: 30px;
            margin-bottom: 30px;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            font-family: 'Raleway', sans-serif;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .back-to-categories:hover {
            background: var(--primary);
            transform: translateX(-5px);
            box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
        }

        /* Animations */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(50px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes slideInRight {
            from {
                opacity: 0;
                transform: translateX(30px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes cardAppear {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes gradientShift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        @keyframes textGlow {
            from { text-shadow: 0 0 10px rgba(212, 175, 55, 0.5); }
            to { text-shadow: 0 0 20px rgba(212, 175, 55, 0.8), 0 0 30px rgba(212, 175, 55, 0.6); }
        }

        @keyframes titlePulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.02); }
            100% { transform: scale(1); }
        }

        @keyframes lineExtend {
            0% { width: 80px; }
            100% { width: 120px; }
        }

        @keyframes float {
            0% { transform: translate(0, 0) rotate(0deg); }
            50% { transform: translate(10px, 10px) rotate(5deg); }
            100% { transform: translate(0, 0) rotate(0deg); }
        }

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }

        @keyframes quoteFloat {
            0% { transform: translateY(0); }
            50% { transform: translateY(-5px); }
            100% { transform: translateY(0); }
        }

        @keyframes backgroundPan {
            0% { background-position: 0% 0%; }
            100% { background-position: 100% 100%; }
        }

        /* Floating elements */
        .floating-book {
            position: absolute;
            font-size: 2rem;
            color: rgba(212, 175, 55, 0.3);
            animation: floatAround 15s linear infinite;
            z-index: 1;
        }

        .floating-book:nth-child(1) {
            top: 10%;
            left: 5%;
            animation-delay: 0s;
        }

        .floating-book:nth-child(2) {
            top: 20%;
            right: 10%;
            animation-delay: 2s;
        }

        .floating-book:nth-child(3) {
            bottom: 15%;
            left: 15%;
            animation-delay: 4s;
        }

        .floating-book:nth-child(4) {
            bottom: 25%;
            right: 5%;
            animation-delay: 6s;
        }

        @keyframes floatAround {
            0% {
                transform: translate(0, 0) rotate(0deg);
            }
            25% {
                transform: translate(20px, 20px) rotate(5deg);
            }
            50% {
                transform: translate(10px, 30px) rotate(10deg);
            }
            75% {
                transform: translate(-10px, 20px) rotate(5deg);
            }
            100% {
                transform: translate(0, 0) rotate(0deg);
            }
        }

        /* Page Load Animation */
        .page-loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--primary);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 0.5s ease, visibility 0.5s ease;
        }

        .page-loader.fade-out {
            opacity: 0;
            visibility: hidden;
        }

        .loader-book {
            font-size: 4rem;
            color: white;
            animation: bookFlip 1.5s ease-in-out infinite;
        }

        @keyframes bookFlip {
            0% { transform: rotateY(0); }
            50% { transform: rotateY(180deg); }
            100% { transform: rotateY(360deg); }
        }

        /* Responsive Adjustments */
        @media (max-width: 768px) {
            .hero h1 {
                font-size: 2.8rem;
            }
            
            .section-title h2 {
                font-size: 2.2rem;
            }
            
            .newsletter-form {
                flex-direction: column;
            }
            
            .newsletter-input {
                border-radius: 30px;
                margin-bottom: 10px;
            }
            
            .newsletter-btn {
                border-radius: 30px;
                padding: 15px;
            }
            
            .cart-sidebar {
                width: 100%;
            }
            
            .floating-book {
                display: none;
            }
        }