.book-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #4fc2f7;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    -webkit-box-shadow: 2px 2px 8px 0px rgba(34, 60, 80, 0.2);
    -moz-box-shadow: 2px 2px 8px 0px rgba(34, 60, 80, 0.2);
    box-shadow: 2px 2px 8px 0px rgba(34, 60, 80, 0.2);
}

.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: contain;
}

.card-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #333;
}

.card-author {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.card-rating {
    font-size: 0.9rem;
    color: #ff9800;
    margin-bottom: 10px;
}

.book-price {
    font-size: 1rem;
    color: #333;
    font-weight: bold;
    margin-bottom: 15px;
}

.card-buttons {
    display: flex;
    flex-direction:column;
    gap: 8px;
    margin-top: auto;
}

.btn-cart, .btn-favor {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.9rem;
    border-radius: 4px;
    text-align: center;
    transition: background-color 0.3s;
    text-decoration: none;
}

.btn-search:hover {
    background: #4fc2f7;
    color: white;
}

.btn-search {
    padding: 6px;
    font-size: 12px;
    text-align: center;
    border: 1px solid #4fc2f7;
    border-radius: 4px;
    color: #4fc2f7;
    text-decoration: none;
    transition: all 0.3s;
}

.search-container {
    padding: 15px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.no-results {
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    color: #666;
}

.search-header {
    margin-bottom: 30px;
}

@media (min-width: 321px) and (max-width: 375px) {
    .search-results {
        grid-template-columns: repeat(2, 2fr);
    }
}

@media (min-width: 376px) and (max-width: 480px) {
    .search-results {
        grid-template-columns: repeat(2, 2fr);
    }
}