.catalog-hero {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.8)), url('https://images.unsplash.com/photo-1481627834876-b7833e8f5570?ixlib=rb-4.0.3&auto=format&fit=crop&w=2128&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
}

.catalog-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 50%, #2d2d2d 100%);
}

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-color: transparent;
    transform: translateY(-2px);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

.book-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(76, 205, 196, 0.4);
    border-color: #4ecdc4;
}

.book-cover {
    width: 100%;
    height: 350px;
    object-fit: cover;
    position: relative;
}

.book-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.book-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-category {
    font-size: 0.85rem;
    color: #4ecdc4;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.book-title {
    font-size: 1.6rem;
    color: #e0e0e0;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.book-author {
    font-size: 0.95rem;
    color: #ff6b6b;
    margin-bottom: 1rem;
    font-style: italic;
}

.book-description {
    color: #b0b0b0;
    margin-bottom: 1rem;
    line-height: 1.6;
    flex: 1;
}

.book-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.book-pages {
    font-size: 0.85rem;
    color: #b0b0b0;
}

.book-format {
    font-size: 0.85rem;
    color: #4ecdc4;
}

.book-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.book-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff6b6b;
}

.book-rating {
    color: #FFD700;
    font-size: 0.9rem;
}

.book-actions {
    display: flex;
    gap: 0.5rem;
}

.preview-btn {
    flex: 1;
    padding: 12px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preview-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(76, 205, 196, 0.4);
}

.cart-btn {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-btn:hover {
    background: rgba(76, 205, 196, 0.2);
    border-color: #4ecdc4;
}

/* Book Preview Modal Styles */
.book-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.book-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.book-modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}

.modal-close:hover {
    background: rgba(255, 107, 107, 0.3);
    border-color: #ff6b6b;
    transform: rotate(90deg);
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.modal-cover {
    width: 150px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header-info {
    flex: 1;
    padding-right: 3rem;
}

.modal-header h2 {
    color: #e0e0e0;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.modal-author {
    color: #ff6b6b;
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 0.75rem;
}

.modal-category {
    display: inline-block;
    font-size: 0.85rem;
    color: #4ecdc4;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.25rem 0.75rem;
    background: rgba(76, 205, 196, 0.2);
    border-radius: 12px;
    margin-bottom: 0.75rem;
}

.modal-rating {
    color: #FFD700;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.modal-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    color: #b0b0b0;
}

.modal-description {
    color: #b0b0b0;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1rem;
}

.modal-preview h3 {
    color: #4ecdc4;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(76, 205, 196, 0.3);
}

.preview-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.preview-poem {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-left: 3px solid #4ecdc4;
    border-radius: 8px;
}

.preview-poem h4 {
    color: #ff6b6b;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.preview-poem p {
    color: #e0e0e0;
    line-height: 1.8;
    font-family: 'Georgia', serif;
    font-size: 0.95rem;
    white-space: pre-wrap;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.modal-price {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.price-label {
    font-size: 0.85rem;
    color: #b0b0b0;
}

.price-amount {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff6b6b;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-secondary {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-primary {
    padding: 12px 24px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 205, 196, 0.4);
}

@media (max-width: 768px) {
    .catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .book-modal {
        padding: 1rem;
    }

    .modal-content {
        max-height: 95vh;
    }

    .modal-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .modal-cover {
        width: 120px;
        height: 160px;
    }

    .modal-header-info {
        padding-right: 0;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .modal-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .modal-actions {
        width: 100%;
    }

    .btn-secondary,
    .btn-primary {
        flex: 1;
    }
}
