/* Books Page - Modern UI Styles */
/* Extends featured-products.css with book-specific styles */

.books-category-section {
    padding: 40px 0;
    background: white;
}

.books-category-section .category-header {
    margin-bottom: 30px;
    text-align: left;
}

.books-category-section .category-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0;
}

/* Book Carousel Container */
.book-carousel-wrapper {
    position: relative;
    overflow: hidden;
}

.book-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

/* Book Product Card */
.book-product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: block;
    flex: 0 0 calc(25% - 30px);
    margin: 0 10px;
    text-decoration: none;
    color: inherit;
}

.book-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

/* Book Image Container */
.book-product-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.book-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.book-product-card:hover .book-product-image img {
    transform: scale(1.08);
}

/* Gradient Overlay - Blue */
.book-product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 123, 255, 0.6) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.book-product-card:hover .book-product-image::after {
    opacity: 1;
}

/* Book Info */
.book-product-info {
    padding: 15px;
    background: white;
}

.book-product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

/* Rating Stars */
.book-product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.book-rating-stars {
    color: #ffc107;
    font-size: 0.9rem;
}

.book-rating-value {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

/* Book Actions - 2 Buttons */
.book-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.book-action-btn {
    flex: 1;
    padding: 8px 12px;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Add to Cart Button - Green */
.book-action-btn.add-to-cart {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.book-action-btn.add-to-cart:hover {
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    color: white;
    text-decoration: none;
}

/* See Details Button - Blue */
.book-action-btn.see-details {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.book-action-btn.see-details:hover {
    background: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
    color: white;
    text-decoration: none;
}

.book-action-btn svg {
    width: 16px;
    height: 16px;
}

/* Navigation Buttons */
.book-carousel-control {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.book-carousel-control:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
    transform: translateY(-50%) scale(1.1);
}

.book-carousel-control.prev {
    left: -15px;
}

.book-carousel-control.next {
    right: -15px;
}

.book-carousel-control svg {
    width: 18px;
    height: 18px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .book-product-card {
        flex: 0 0 calc(50% - 20px);
    }

    .book-product-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .book-product-card {
        flex: 0 0 calc(100% - 20px);
    }

    .book-product-image {
        height: 200px;
    }

    .books-category-section .category-title {
        font-size: 1.5rem;
    }

    .book-actions {
        flex-direction: column;
    }

    .book-action-btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .books-category-section {
        padding: 30px 0;
    }

    .book-product-image {
        height: 180px;
    }
}