/* ===== BASE BOOK CARD STYLES ===== */
.product-content {
    padding: 1.5rem;
    background: #fff;
    border-radius: 0 0 12px 12px;
    border: 1px solid rgba(139, 31, 189, 0.15);
    border-top: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 15, 41, 0.08);
}

.product-content:hover {
    box-shadow: 0 12px 30px rgba(139, 31, 189, 0.15);
}

/* ===== CATEGORY PILL ===== */
.category-pill-mini a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #963fbe, #7a337b);
    color: white !important;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(139, 31, 189, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-pill-mini a:hover {
    background: linear-gradient(135deg, #a033e0, #3a1040);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 31, 189, 0.4);
}

/* ===== BOOK TITLE & AUTHOR ===== */
.book-title-compact {
    font-size: 1.22rem !important;
    font-weight: 700;
    line-height: 1.35;
    margin: 0.5rem 0 0.75rem;
    color: #7a337b;
    word-break: break-word;
}

.book-title-compact a:hover {
    color: #963fbe !important;
}

.author-by {
    font-size: 0.94rem;
    line-height: 1.4;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: #555;
}

/* ===== BOOK METADATA ROW ===== */
.book-meta-row {
    padding: 12px;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.9) 0%, rgba(233, 236, 239, 0.9) 100%);
    border-radius: 12px;
    margin: 1.25rem 0;
    font-size: 0.875rem;
    border: 1px solid rgba(139, 31, 189, 0.2);
    position: relative;
    overflow: hidden;
}

.book-meta-inner {
    flex-wrap: wrap;
    gap: 12px;
}

.book-meta-row .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    color: #444;
    font-weight: 500;
    font-size: 0.9rem;
    min-width: 0;
}

.book-meta-row .meta-item i {
    color: #963fbe;
    font-size: 1.15rem;
    width: 20px;
    text-align: center;
}

/* Publisher item specifically */
.book-meta-row .meta-item:first-child {
    flex: 1 1 180px;
    min-width: 0;
}

.book-meta-row .meta-item:first-child span {
    display: inline-block;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

.book-meta-row .rating i {
    color: #963fbe;
}

/* ===== BOOK PRICE ===== */
.book-price {
    padding: 1rem;
    background: linear-gradient(135deg, rgba(139, 31, 189, 0.2), rgba(40, 15, 41, 0.3));
    border-radius: 12px;
    border-right: 5px solid #963fbe;
    text-align: center;
    margin: 1rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(139, 31, 189, 0.15);
}

.current-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: #7a337b;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

/* ===== ACTION BUTTONS ===== */
.add-to-cart-main-btn {
    background: linear-gradient(135deg, #963fbe 0%, #7a337b 100%) !important;
    border: none !important;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.9rem 1.5rem;
    border-radius: 16px;
    min-height: 54px;
    box-shadow: 0 6px 18px rgba(139, 31, 189, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.add-to-cart-main-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(139, 31, 189, 0.45);
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.btn-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: white;
    border: 2px solid #e0e0e0;
    color: #963fbe;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-icon:hover {
    background: #963fbe;
    color: white;
    border-color: #963fbe;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(139, 31, 189, 0.3);
}

.btn-icon.add-to-cart-btn:hover {
    background: #4caf50 !important;
    color: white !important;
}

.btn-icon.add-to-wishlist-btn:hover {
    background: #2196f3 !important;
    color: white !important;
}

.btn-icon.quick-view-btn:hover {
    background: #ff9800 !important;
    color: white !important;
}

/* ===== ENHANCED BATCH BADGES ===== */
.batch {
    position: relative;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
    cursor: default;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    margin-bottom: 6px;
    display: inline-block;
}

.batch:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.batch-content {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
    white-space: nowrap;
    color: white !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.batch-content i {
    color: white !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Batch Effects */
.batch-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    animation: batchShine 3s infinite linear;
    z-index: 2;
}

.batch-sparkle {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.batch-sparkle::before,
.batch-sparkle::after {
    content: '✦';
    position: absolute;
    font-size: 8px;
    color: white;
    animation: sparkleFloat 2s infinite ease-in-out;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
}

.batch-sparkle::before {
    top: -5px;
    left: 10px;
    animation-delay: 0s;
}

.batch-sparkle::after {
    bottom: -5px;
    right: 10px;
    animation-delay: 1s;
}

/* Bestseller Batch */
.bestseller-batch {
    background: linear-gradient(135deg, 
        rgba(255, 193, 7, 0.95) 0%, 
        rgba(255, 152, 0, 0.95) 100%);
    border-color: rgba(255, 235, 59, 0.6);
    animation: bestsellerGlow 2s ease-in-out infinite alternate;
}

/* New Book Batch */
.new-batch {
    background: linear-gradient(135deg, 
        rgba(76, 175, 80, 0.95) 0%, 
        rgba(56, 142, 60, 0.95) 100%);
    border-color: rgba(129, 199, 132, 0.6);
    animation: newBookPulse 2s ease-in-out infinite;
}

/* Limited Stock Batch */
.limited-batch {
    background: linear-gradient(135deg, 
        rgba(255, 152, 0, 0.95) 0%, 
        rgba(245, 124, 0, 0.95) 100%);
    border-color: rgba(255, 183, 77, 0.6);
    animation: warningPulse 1.5s ease-in-out infinite;
}

/* Discount Batch */
.discount-batch {
    background: linear-gradient(135deg, 
        rgba(244, 67, 54, 0.95) 0%, 
        rgba(211, 47, 47, 0.95) 100%);
    border-color: rgba(239, 83, 80, 0.6);
    animation: discountShake 2s ease-in-out infinite;
}

/* ===== BADGES AND HEART LAYOUT ===== */
/* Badges container in top-right corner */
.badges-top-right {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    max-width: calc(100% - 70px);
}

/* Remove any absolute positioning from individual badges */
.badges-top-right .batch {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    margin: 0;
    width: fit-content;
}

/* Heart container in top-left corner */
.heart-top-left {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 6;
    display: flex;
    align-items: flex-start;
}

/* Ensure badges don't exceed container width */
.badges-top-right .batch-content {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

/* Animation for badge entrance */
@keyframes badgeSlideIn {
    0% {
        opacity: 0;
        transform: translateX(20px) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

.badges-top-right .batch {
    animation: badgeSlideIn 0.5s ease forwards;
    animation-delay: calc(var(--badge-index, 0) * 0.1s);
}

/* For better visual hierarchy */
.bestseller-batch {
    order: -1;
}

/* ===== ENHANCED FAVORITE HEART ===== */
.fav-heart {
    position: relative;
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.heart-container {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.heart-icon {
    font-size: 1.2rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    padding: 9px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 3;
    position: relative;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.heart-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 107, 107, 0.3);
    animation: heartPulse 2s infinite;
    z-index: 1;
}

.heart-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        rgba(255, 107, 107, 0.1) 0%, 
        rgba(255, 62, 62, 0.2) 100%);
    filter: blur(8px);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.heart-sparkles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    opacity: 0;
}

.sparkle:nth-child(1) { top: 25%; left: 25%; }
.sparkle:nth-child(2) { top: 25%; right: 25%; }
.sparkle:nth-child(3) { bottom: 25%; left: 25%; }
.sparkle:nth-child(4) { bottom: 25%; right: 25%; }

/* Heart Hover Effects */
.fav-heart:hover .heart-icon {
    color: #ff6b6b;
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    border-color: #ff6b6b;
}

.fav-heart:hover .heart-backdrop {
    opacity: 1;
}

.fav-heart:hover .heart-pulse {
    animation: heartPulseFast 1s infinite;
}

.fav-heart:hover .sparkle {
    animation: sparkleFly 1s ease-out forwards;
}

.fav-heart:hover .sparkle:nth-child(1) { animation-delay: 0s; }
.fav-heart:hover .sparkle:nth-child(2) { animation-delay: 0.1s; }
.fav-heart:hover .sparkle:nth-child(3) { animation-delay: 0.2s; }
.fav-heart:hover .sparkle:nth-child(4) { animation-delay: 0.3s; }

/* Active state (when favorited) */
.fav-heart.active .heart-icon {
    color: #ff6b6b;
    background: white;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
}

.fav-heart.active .heart-pulse {
    background: rgba(255, 107, 107, 0.5);
    animation: heartPulseActive 1s infinite;
}

/* ===== CIRCULAR STATUS BADGES ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.25rem;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: help;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: visible;
    z-index: 3;
    margin-left: 8px;
}

.status-badge:hover {
    transform: translateY(-5px) scale(1.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.status-badge i {
    position: relative;
    z-index: 4;
    transition: all 0.3s ease;
}

.status-badge:hover i {
    transform: scale(1.3);
    animation: iconBounce 0.5s ease;
}

/* Dashed circle effects */
.status-badge > .rounded-circle {
    border: 2px dashed;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.status-badge:hover > .rounded-circle {
    opacity: 1;
    animation: dashRotate 8s linear infinite;
}

/* Bestseller Status Badge */
.status-badge.bestseller {
    background: linear-gradient(145deg, #FFD700 0%, #FFA500 100%);
    color: #8B4513;
    border: 2px solid #FFC107;
}

.status-badge.bestseller i {
    color: #8B4513;
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
    filter: drop-shadow(0 2px 4px rgba(139, 69, 19, 0.4));
}

.crown-dashed-circle {
    border-color: #FFD700 !important;
    animation: dashRotate 6s linear infinite, crownGlow 2s ease-in-out infinite;
}

/* New Book Status Badge */
.status-badge.new-book {
    background: linear-gradient(145deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
    border: 2px solid #81C784;
}

.status-badge.new-book i {
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.star-dashed-circle {
    border-color: #4CAF50 !important;
    animation: dashRotateReverse 5s linear infinite, starPulse 1.5s ease-in-out infinite;
}

/* Limited Stock Status Badge */
.status-badge.limited-stock {
    background: linear-gradient(145deg, #FF9800 0%, #F57C00 100%);
    color: white;
    border: 2px solid #FFB74D;
}

.status-badge.limited-stock i {
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.warning-dashed-circle {
    border-color: #FF9800 !important;
    animation: dashPulse 3s linear infinite, warningBlink 2s ease-in-out infinite;
}

/* Badges Group */
.badges-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* Status Badge Tooltips */
.status-badge::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    padding: 8px 16px;
    background: linear-gradient(145deg, #2c3e50 0%, #34495e 100%);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.status-badge::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    border-width: 8px;
    border-style: solid;
    border-color: #2c3e50 transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    pointer-events: none;
}

.status-badge:hover::after,
.status-badge:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Batch Tooltips */
.batch[data-title]:hover::after {
    content: attr(data-title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    padding: 8px 16px;
    background: linear-gradient(145deg, #2c3e50 0%, #34495e 100%);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.batch[data-title]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-2px);
    border-width: 8px;
    border-style: solid;
    border-color: #2c3e50 transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.batch:hover::after,
.batch:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Initialize sparkle directions */
.sparkle:nth-child(1) { --tx: -1; --ty: -1; }
.sparkle:nth-child(2) { --tx: 1; --ty: -1; }
.sparkle:nth-child(3) { --tx: -1; --ty: 1; }
.sparkle:nth-child(4) { --tx: 1; --ty: 1; }

/* ===== ANIMATIONS ===== */
@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(139, 31, 189, 0.4); }
    50% { box-shadow: 0 0 20px rgba(139, 31, 189, 0.7); }
}

@keyframes ripple {
    0% { transform: scale(0); opacity: 0.5; }
    100% { transform: scale(4); opacity: 0; }
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: translate(0, 0) scale(0); }
    50% { opacity: 1; transform: translate(20px, -20px) scale(1); }
}

@keyframes batchShine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes sparkleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
    50% { transform: translateY(-10px) scale(1.2); opacity: 1; }
}

@keyframes bestsellerGlow {
    0% { box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3); }
    100% { box-shadow: 0 6px 30px rgba(255, 215, 0, 0.6); }
}

@keyframes newBookPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes warningPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes discountShake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(1deg); }
    75% { transform: rotate(-1deg); }
}

@keyframes heartPulse {
    0% { transform: scale(1); opacity: 0.7; }
    70% { transform: scale(1.4); opacity: 0; }
    100% { transform: scale(1.4); opacity: 0; }
}

@keyframes heartPulseFast {
    0% { transform: scale(1); opacity: 0.7; }
    70% { transform: scale(1.3); opacity: 0; }
    100% { transform: scale(1.3); opacity: 0; }
}

@keyframes heartPulseActive {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

@keyframes sparkleFly {
    0% { transform: translate(0, 0) scale(1); opacity: 0; }
    50% { opacity: 1; }
    100% { 
        transform: translate(calc(var(--tx) * 30px), calc(var(--ty) * 30px)) scale(0); 
        opacity: 0; 
    }
}

@keyframes dashRotate {
    0% { transform: rotate(0deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1.2); }
}

@keyframes dashRotateReverse {
    0% { transform: rotate(360deg) scale(1.2); }
    100% { transform: rotate(0deg) scale(1.2); }
}

@keyframes dashPulse {
    0%, 100% { transform: rotate(0deg) scale(1.15); }
    50% { transform: rotate(180deg) scale(1.25); }
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.5); }
}

@keyframes crownGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.4); }
    50% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.8); }
}

@keyframes starPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes warningBlink {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* ===== RESPONSIVE DESIGN ===== */
/* Large screens */
@media (min-width: 992px) and (max-width: 1400px) {
    .book-meta-row .d-flex.flex-wrap {
        gap: 1rem !important;
    }
    
    .book-meta-row .meta-item {
        flex: 1 1 calc(33.333% - 1rem);
        max-width: calc(33.333% - 1rem);
    }
    
    .book-meta-row .rating {
        flex: 1 1 100%;
        max-width: 100%;
        margin-top: 0.5rem;
    }
}

@media (min-width: 992px) {
    .book-meta-inner {
        gap: 16px !important;
    }

    .book-meta-row .meta-item:not(.rating) {
        flex: 0 0 calc(50% - 8px);
        max-width: calc(50% - 8px);
    }

    .book-meta-row .rating {
        flex: 0 0 100%;
        margin-top: 12px;
        justify-content: right !important;
        font-size: 1rem;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .book-meta-row {
        padding: 16px;
        background: linear-gradient(135deg, rgba(248, 249, 250, 0.95) 0%, rgba(233, 236, 239, 0.95) 100%);
    }

    .book-meta-row .meta-item {
        font-size: 1rem;
        padding: 6px 12px;
        background: rgba(255, 255, 255, 0.6);
        border-radius: 8px;
        flex: 1 1 100% !important;
        justify-content: flex-start;
        text-align: right;
    }

    .book-meta-row .meta-item i {
        font-size: 1.35rem;
    }

    .book-meta-row .rating {
        justify-content: flex-start !important;
        margin-top: 6px;
    }
    
    /* Batches */
    .badges-top-right {
        top: 10px;
        right: 10px;
        gap: 5px;
        max-width: calc(100% - 60px);
    }
    
    .badges-top-right .batch {
        padding: 5px 10px !important;
        font-size: 0.7rem !important;
    }
    
    .batch-content i {
        font-size: 0.65rem !important;
    }
    
    /* Heart */
    .heart-top-left {
        top: 10px;
        left: 10px;
    }
    
    .heart-top-left .heart-container {
        width: 34px;
        height: 34px;
    }
    
    .heart-icon {
        font-size: 1rem !important;
        padding: 7px !important;
    }
    
    .badges-top-right .batch-content {
        max-width: 90px;
    }
    
    /* Status badges */
    .status-badge {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        margin-left: 6px;
    }
    
    .badges-group {
        gap: 8px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .book-meta-row {
        padding: 14px;
    }

    .book-meta-row .meta-item {
        font-size: 0.95rem;
    }

    .add-to-cart-main-btn {
        font-size: 1rem;
        padding: 0.8rem 1.2rem;
    }

    .btn-icon {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .book-actions .d-flex.gap-3.mb-3 {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .view-details-btn, 
    .buy-now-btn {
        width: 100% !important;
        min-height: 52px !important;
        font-size: 1rem !important;
    }
    
    .view-details-btn i,
    .buy-now-btn i {
        font-size: 1.2rem !important;
    }
    
    /* Batches */
    .badges-top-right {
        max-width: calc(100% - 50px);
        gap: 4px;
    }
    
    .badges-top-right .batch {
        padding: 4px 8px !important;
        font-size: 0.65rem !important;
    }
    
    .badges-top-right .batch-content {
        max-width: 70px;
    }
    
    /* Heart */
    .heart-top-left .heart-container {
        width: 32px;
        height: 32px;
    }
    
    .heart-icon {
        font-size: 0.9rem !important;
        padding: 6px !important;
    }
    
    /* Status badges */
    .status-badge {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }
    
    .status-badge::after {
        font-size: 0.8rem;
        padding: 6px 12px;
        bottom: calc(100% + 8px);
    }
}

/* Hide some badges on very small screens to prevent overlap */
@media (max-width: 380px) {
    .badges-top-right .batch:nth-child(n+3) {
        display: none;
    }
    
    .badges-top-right .batch-content {
        max-width: 60px;
    }
}

/* For better hover states */
.badges-top-right .batch:hover {
    z-index: 7 !important;
}

.heart-top-left:hover {
    z-index: 8 !important;
}

/* Make sure tooltips appear above everything */
.batch[data-title]:hover::after,
.batch[data-title]:hover::before {
    z-index: 1001 !important;
}

.fav-heart:hover::after,
.fav-heart:hover::before {
    z-index: 1001 !important;
}

/* Image overlay adjustment */
.product-img .book-image-overlay {
    z-index: 2;
}

/* Ensure image doesn't interfere with badges */
.book-image-hover {
    position: relative;
    z-index: 1;
}

/* Ripple effect class */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}