/* Category Box Styling */
.box {
    background-color: rgba(0, 100, 0, 0.9);
    background-size: cover;
    background-position: center;
    text-transform: uppercase;
    color: white;
    height: 200px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    backdrop-filter: blur(5px);
}

.box:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.box-name {
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 4px 6px rgba(0, 0, 0, 0.5);
    z-index: 2;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* Modern Book Card Design */
.product-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.product-card img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card-body {
    padding: 24px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

.product-card-author {
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
}

.product-card-price {
    margin-top: auto;
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
}

.badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    background: #2c3e50;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-card {
        border-radius: 12px;
    }

    .product-card-body {
        padding: 20px;
    }

    .product-card-title {
        font-size: 1.1rem;
    }

    .product-card-author {
        font-size: 0.9rem;
    }

    .product-card-price {
        font-size: 1.2rem;
    }
}
