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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
}

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

.logo .books-text {
    color: #1a73e8;
}

.logo .flag-numbers {
    margin-left: 0;
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(to bottom,
        #000000 25%,
        #000000 43%,
        #ffffff 43%,
        #ffffff 48%,
        #dc143c 48%,
        #dc143c 60%,
        #ffffff 60%,
        #ffffff 65%,
        #006400 65%,
        #006400 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Fallback for browsers that don't support background-clip */
    color: #000;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #1a73e8;
    transform: translateY(-2px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #1a73e8;
    transition: width 0.3s ease;
}

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

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.4);
}

.whatsapp-float:before {
    content: "";
    width: 32px;
    height: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.890-5.335 11.893-11.893A11.821 11.821 0 0020.951 3.186'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Tooltip for WhatsApp button */
.whatsapp-float::after {
    content: "Chat with us!";
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-float:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(26, 115, 232, 0.7), rgba(26, 115, 232, 0.7)),
                url('https://images.unsplash.com/photo-1481627834876-b7833e8f5570?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') center/cover;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #1a73e8;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 115, 232, 0.4);
    background: #0d5bc2;
}

/* Search Section */
.search-section {
    padding: 80px 0;
    background: #fff;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.search-container h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #1a73e8;
}

.search-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.search-input {
    flex: 1;
    max-width: 400px;
    padding: 15px 20px;
    border: 1px solid #ddd;
    background: rgba(26, 115, 232, 0.05);
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    background: rgba(26, 115, 232, 0.08);
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.search-btn {
    padding: 15px 30px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #0d5bc2;
    transform: translateY(-2px);
}

.search-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background: rgba(26, 115, 232, 0.05);
    color: #1a73e8;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: #1a73e8;
    color: white;
    border-color: #1a73e8;
}

/* Limited Offers Section */
.limited-offers {
    padding: 100px 0;
    background: #1a73e8;
    color: white;
}

.limited-offers h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.offer-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.offer-card:hover .offer-image {
    transform: scale(1.05);
}

.offer-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #e8f0fe;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.offer-card {
    background: #fff;
    color: #333;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.offer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(26, 115, 232, 0.3);
}

.offer-badge {
    background: #1a73e8;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
    margin-bottom: 1.5rem;
    font-weight: bold;
    font-size: 0.9rem;
}

.offer-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.offer-price {
    font-size: 2rem;
    color: #1a73e8;
    margin: 1rem 0;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1.2rem;
    margin-right: 10px;
}

/* Best Sellers Section */
.bestsellers {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.bestsellers h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: #1a73e8;
}

.bestseller-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.bestseller-card {
    background: rgba(26, 115, 232, 0.03);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.bestseller-card:hover {
    transform: scale(1.03);
    background: rgba(26, 115, 232, 0.06);
    box-shadow: 0 15px 30px rgba(26, 115, 232, 0.1);
}

.bestseller-rank {
    background: #1a73e8;
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.book-cover {
    height: 250px;
    background: linear-gradient(45deg, #1a73e8, #4285f4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    padding: 1rem;
}

.book-info {
    padding: 1.5rem;
}

.book-info h3 {
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1.3rem;
}

.book-info .author {
    color: #666;
    margin-bottom: 1rem;
    font-style: italic;
}

.book-price {
    font-size: 1.4rem;
    font-weight: bold;
    color: #1a73e8;
    margin-bottom: 1rem;
}

.add-to-cart {
    width: 100%;
    padding: 12px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart:hover {
    background: #0d5bc2;
    transform: translateY(-2px);
}

/* Order Section */
.order-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.order-container {
    max-width: 900px;
    margin: 0 auto;
}

.order-section h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: #1a73e8;
}

.order-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.step-card {
    background: rgba(26, 115, 232, 0.03);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    background: rgba(26, 115, 232, 0.06);
    box-shadow: 0 10px 25px rgba(26, 115, 232, 0.1);
}

.step-number {
    width: 60px;
    height: 60px;
    background: #1a73e8;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.step-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: bold;
}

.order-form {
    background: rgba(26, 115, 232, 0.03);
    padding: 3rem;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    background: rgba(26, 115, 232, 0.02);
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(26, 115, 232, 0.05);
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.submit-order {
    width: 100%;
    padding: 18px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-order:hover {
    background: #0d5bc2;
    transform: translateY(-2px);
}

/* Features Section */
.features {
    padding: 100px 0;
    background: white;
}

.features h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: #1a73e8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.feature-card {
    background: rgba(26, 115, 232, 0.03);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(26, 115, 232, 0.06);
    box-shadow: 0 20px 40px rgba(26, 115, 232, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: #1a73e8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Footer */
footer {
    background: #1a73e8;
    color: white;
    text-align: center;
    padding: 3rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section a {
    color: #e8f0fe;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .features h2,
    .bestsellers h2,
    .limited-offers h2,
    .order-section h2 {
        font-size: 2rem;
    }

    .search-form {
        flex-direction: column;
        align-items: center;
    }

    .search-input {
        max-width: 100%;
        margin-bottom: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }

    .whatsapp-float::after {
        display: none;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Cart Icon */
.cart-icon {
    position: relative;
    cursor: pointer;
    margin-left: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
}

.cart-icon svg {
    width: 100%;
    height: 100%;
    fill: #555;
    transition: fill 0.3s ease;
}

.cart-icon:hover svg {
    fill: #1a73e8;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: #ff4757;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
    padding: 2px 6px;
    pointer-events: none;
    transition: transform 0.3s ease;
}

/* Floating Cart Styles */
.floating-cart {
    position: fixed;
    top: 60px;
    right: 20px;
    width: 350px;
    max-height: calc(100vh - 80px);
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transform: translateX(120%);
    transition: transform 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
}

.floating-cart.visible {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    background-color: #f7f9fc;
    border-radius: 12px 12px 0 0;
}

.cart-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.cart-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
    transition: color 0.2s ease;
}

.cart-close-btn:hover {
    color: #333;
}

.cart-items {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background-color: #f7f9fc;
    border-radius: 8px;
    position: relative;
}

.cart-item-image {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 1rem;
}

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

.cart-item-details h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    color: #333;
}

.cart-item-details p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.cart-item-price {
    font-weight: 600;
    color: #1a73e8;
    white-space: nowrap;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}

.quantity-btn {
    width: 25px;
    height: 25px;
    background-color: #ddd;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    line-height: 1;
    transition: background-color 0.2s ease;
}

.quantity-btn:hover {
    background-color: #ccc;
}

.cart-item-quantity span {
    margin: 0 0.5rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.remove-item {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    color: #ff4757;
    cursor: pointer;
    font-size: 1rem;
}

.cart-summary {
    padding: 1rem;
    border-top: 1px solid #eee;
}

.cart-summary .total-price {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.checkout-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.checkout-btn:hover {
    background-color: #1765c9;
}

.cart-empty-message {
    text-align: center;
    color: #888;
    padding: 2rem;
}

/* Books Grid Section */
.books-grid-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Quick View Button Styles */
.book-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.book-cover:hover .book-overlay {
    opacity: 1;
}

.quick-view-btn {
    background: #1a73e8;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3);
}

.quick-view-btn:hover {
    background: #1765c9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.4);
}

.quick-view-btn:active {
    transform: translateY(0);
}

/* Load More Books Button Styles */
.load-more-container {
    text-align: center;
    margin: 3rem 0;
}

.load-more-btn {
    background: linear-gradient(135deg, #1a73e8 0%, #1765c9 100%);
    color: #fff;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(26, 115, 232, 0.3);
    position: relative;
    overflow: hidden;
}

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

.load-more-btn:hover {
    background: linear-gradient(135deg, #1765c9 0%, #1557b8 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(26, 115, 232, 0.4);
}

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

.load-more-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.3);
}

.load-more-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.load-more-btn:disabled:hover {
    background: #ccc;
    transform: none;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .quick-view-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .load-more-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
    }
}

/* Additional book card styles for overlay */
.book-card {
    aspect-ratio: auto;
}

.book-cover {
    position: relative;
    overflow: hidden;
}

/* Best Seller Number Badge Styles */
.book-rank {
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1a73e8 0%, #4285f4 100%);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.4);
    border: 2px solid #fff;
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    transition: all 0.3s ease;
}

.book-rank::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.book-card:hover .book-rank {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(26, 115, 232, 0.6);
}

/* Text-based bestseller badge (alternative approach) */
.bestseller-text-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #1a73e8 0%, #4285f4 100%);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(26, 115, 232, 0.3);
    z-index: 10;
}

/* Ribbon-style badge */
.ribbon-badge {
    position: absolute;
    top: 15px;
    right: -8px;
    background: #1a73e8;
    color: #fff;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    transform: rotate(45deg);
    transform-origin: center;
    min-width: 80px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(26, 115, 232, 0.3);
}

.ribbon-badge::before,
.ribbon-badge::after {
    content: '';
    position: absolute;
    top: 100%;
    width: 0;
    height: 0;
    border-style: solid;
}

.ribbon-badge::before {
    left: 0;
    border-width: 0 0 8px 8px;
    border-color: transparent transparent #1765c9 transparent;
}

.ribbon-badge::after {
    right: 0;
    border-width: 0 8px 8px 0;
    border-color: transparent transparent #1765c9 transparent;
}

/* Book Cover Image Fixes */
.book-cover {
    width: 100%;
    height: 280px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #f8f9fa;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

/* Alternative approach using actual img tags */
.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background-color: #f8f9fa;
}

/* For book cards that use background-image */
.book-card .book-cover {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #f8f9fa;
}

/* Ensure consistent aspect ratio */
.book-card {
    aspect-ratio: auto;
}

/* Alternative: If you want to use actual img elements instead of background-image */
.book-cover-img {
    width: 100%;
    height: 280px;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    background-color: #f8f9fa;
    display: block;
}

/* Hover effect for book covers */
.book-card:hover .book-cover {
    transform: translateY(-5px);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .book-cover {
        height: 240px;
    }

    .book-cover-img {
        height: 240px;
    }
}

@media (max-width: 480px) {
    .book-cover {
        height: 200px;
    }

    .book-cover-img {
        height: 200px;
    }
}