/* Legacy card styles removed as per consolidation request */



/* --- Global Ultra-Minimalist Book Card --- */
.book-card {
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.book-card:hover {
    transform: translateY(-4px);
}

.book-card__link {
    position: absolute;
    inset: 0;
    z-index: 5;
}

.book-card__image-container {
    aspect-ratio: 2/3.1;
    background: #f0ebe5;
    overflow: hidden;
    position: relative;
    border-radius: 2px;
    margin-bottom: 0.4rem; /* Reduced */
}

.book-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.book-card:hover .book-card__image {
    transform: scale(1.05);
}

.book-card__content {
    padding: 0 1px; /* Reduced */
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-card__category {
    display: none;
}

.book-card__title {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.75rem; /* Reduced from 0.8rem */
    color: #3d3430;
    line-height: 1.2;
    margin-bottom: 0.1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    box-orient: vertical;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 1.85rem; /* Reduced */
}

.book-card__author {
    font-size: 0.6rem; /* Reduced from 0.65rem */
    color: #9c6644;
    opacity: 0.6;
    font-weight: 400;
    margin-bottom: 0.25rem; /* Reduced */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Price Box - Minimal */
.price-box {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-top: auto;
}

.price-box__old {
    text-decoration: line-through;
    color: #bdb0a6;
    font-size: 0.55rem; /* Reduced */
}

.price-box__new {
    color: #3d3430;
    font-size: 0.75rem; /* Reduced from 0.8rem */
    font-weight: 700;
}

.price-box__regular {
    color: #3d3430;
    font-size: 0.75rem; /* Reduced from 0.8rem */
    font-weight: 700;
}

/* Actions - Secondary Information */
.book-card__actions {
    position: absolute;
    top: 4px; /* Reduced */
    right: 4px; /* Reduced */
    z-index: 20;
    opacity: 1; /* Always visible as requested */
    transition: all 0.2s ease;
}

.book-card__btn {
    width: 24px; /* Smaller button */
    height: 24px;
    background: rgba(255, 255, 255, 0.85); /* Slightly more transparent */
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    color: #3d3430;
    border-radius: 50%;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.book-card__btn:hover {
    background: #fff;
    color: #f43f5e; /* rose-500 */
}

.book-card__btn.is-active {
    color: #e11d48; /* rose-600 */
}

/* Mobile Adjustments */
@media (max-width: 640px) {
    .book-card__image-container {
        margin-bottom: 0.3rem;
    }
    .book-card__title {
        font-size: 0.7rem;
        height: 1.7rem;
    }
    .book-card__author {
        font-size: 0.55rem;
    }
    .price-box__new, .price-box__regular {
        font-size: 0.7rem;
    }
    .book-card__btn {
        width: 18px; /* Even smaller for ultra-dense mobile */
        height: 18px;
        font-size: 0.75rem;
    }
}

/* Premium Discount Badge - Tiny */
.premium-discount-tag {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(61, 52, 48, 0.9);
    color: white;
    font-size: 7px; /* Reduced */
    font-weight: 800;
    padding: 2px 4px;
    z-index: 10;
    text-align: center;
    backdrop-filter: blur(2px);
}

/* Better Missing Image Handling */
.book-card__image-container:has(img[src*='placeholder.jpg']) {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fdfbf7;
}