/* Publications Page Specific Styles */

.page-hero {
    background: linear-gradient(135deg, rgba(0, 78, 137, 0.9), rgba(255, 107, 53, 0.9)), url('../assets/images/vyasa20Jan-82aadf66_enhanced.jpeg');
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.6;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.3s both;
}

.section-description {
    max-width: 600px;
    margin: 20px auto 0;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Enhanced Books Grid */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }
}

@media (min-width: 1200px) {
    .books-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
        max-width: 1400px;
        margin: 60px auto 0;
        padding: 0;
    }
}

/* Enhanced Book Card */
.book-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.book-card:hover {
    transform: translateY(-15px) rotateY(5deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.book-image-container {
    position: relative;
    height: 420px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.book-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.book-card:hover .book-cover {
    transform: scale(1.1) rotateZ(2deg);
}

/* Clickable Elements */
.clickable-preview {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable-preview:hover {
    transform: translateY(-2px);
}

.book-title.clickable-preview {
    transition: color 0.3s ease, transform 0.3s ease;
}

.book-title.clickable-preview:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.book-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.book-badge span {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.badge-bestseller { background: linear-gradient(135deg, #ff6b6b, #ee5a52); }
.badge-popular { background: linear-gradient(135deg, #4ecdc4, #44a08d); }
.badge-spiritual { background: linear-gradient(135deg, #a8edea, #fed6e3); color: var(--text-dark) !important; }
.badge-featured { background: linear-gradient(135deg, #ffd89b, #19547b); }
.badge-new { background: linear-gradient(135deg, #667eea, #764ba2); }

/* Enhanced Book Info */
.book-info {
    padding: 30px;
    background: var(--white);
}

.book-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.stars {
    color: #ffc107;
    font-size: 1.1rem;
}

.rating-text {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.book-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.book-card:hover .book-title {
    color: var(--primary-color);
}

.book-author {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.book-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-light);
    border-radius: 15px;
    font-weight: 500;
}

.spec-item i {
    color: var(--primary-color);
}

/* Enhanced Price Section */
.book-price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--bg-light);
}

.price-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.current-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price {
    font-size: 1rem;
    text-decoration: line-through;
    color: var(--text-light);
}

.discount {
    font-size: 0.85rem;
    font-weight: 600;
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    padding: 4px 8px;
    border-radius: 10px;
    align-self: flex-start;
}

.add-to-cart-btn {
    background: linear-gradient(135deg, var(--primary-color), #e55a2b);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #e55a2b, var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

/* Featured Section */
.featured-section {
    padding: 80px 0;
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.featured-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.features-list {
    list-style: none;
    margin-bottom: 30px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-light);
}

.features-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.featured-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.testimonial-content {
    margin-bottom: 25px;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-light);
    line-height: 1.6;
    margin-top: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    color: var(--text-dark);
    margin-bottom: 5px;
}

.author-info span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Enhanced Book Preview Modal */
.book-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    animation: modalFadeIn 0.4s ease;
}

.book-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.book-modal-container {
    position: relative;
    width: 95%;
    max-width: 1200px;
    height: 90vh;
    margin: 2.5vh auto;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.book-modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid var(--bg-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.book-modal-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--text-dark);
    margin: 0;
}

.modal-close-btn {
    width: 45px;
    height: 45px;
    border: none;
    background: var(--white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.modal-close-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.book-modal-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    padding: 30px;
    flex: 1;
    overflow-y: auto;
}

.book-preview-left {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.preview-book-cover {
    position: relative;
    background: linear-gradient(145deg, #f0f2f5, #ffffff);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.modal-book-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.modal-book-img:hover {
    transform: rotateY(10deg) rotateX(5deg);
}

.book-3d-effect {
    position: absolute;
    top: 25px;
    left: 25px;
    right: 25px;
    bottom: 25px;
    background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    border-radius: 10px;
    pointer-events: none;
}

.book-quick-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-add-to-cart {
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
    background: linear-gradient(135deg, var(--primary-color), #e55a2b);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.btn-add-to-cart:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 107, 53, 0.4);
}

.book-preview-right {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.book-meta {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--bg-light);
}

.book-rating-large {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.stars-large {
    color: #ffc107;
    font-size: 1.3rem;
}

.rating-text-large {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
}

.modal-author {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.book-specs-modal {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.spec-modal {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
}

.spec-modal i {
    color: var(--primary-color);
}

.price-section-modal {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.current-price-modal {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price-modal {
    font-size: 1.2rem;
    text-decoration: line-through;
    color: var(--text-light);
}

.discount-modal {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

.book-description-modal h4,
.book-features-modal h4 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.book-description-modal p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1.05rem;
}

.book-features-modal ul {
    list-style: none;
    padding: 0;
}

.book-features-modal li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-light);
    line-height: 1.6;
}

.book-features-modal li::before {
    content: '✓';
    color: var(--accent-color);
    font-weight: 600;
    margin-top: 2px;
}

.book-modal-footer {
    border-top: 1px solid var(--bg-light);
    background: #f8f9fa;
}

.modal-tabs {
    display: flex;
    padding: 0 30px;
}

.tab-btn {
    padding: 20px 30px;
    border: none;
    background: transparent;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    font-size: 1rem;
}

.tab-btn.active,
.tab-btn:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    padding: 30px;
    max-height: 300px;
    overflow-y: auto;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.reviews-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.review-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--white);
    border-radius: 15px;
    border: 1px solid var(--bg-light);
}

.average-rating {
    text-align: center;
}

.avg-score {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.avg-stars {
    color: #ffc107;
    font-size: 1.2rem;
    margin: 10px 0;
}

.total-reviews {
    color: var(--text-light);
    font-weight: 500;
}

.author-info {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.author-details h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.author-details p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.author-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.author-stats .stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-weight: 500;
}

.author-stats .stat i {
    color: var(--primary-color);
}

.review-item {
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--bg-light);
    margin-bottom: 15px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.review-header strong {
    color: var(--text-dark);
    font-weight: 600;
}

.review-stars {
    color: #ffc107;
}

.review-text {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

.preview-content {
    color: var(--text-light);
    line-height: 1.7;
}

.preview-content h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.preview-content h4 {
    color: var(--primary-color);
    margin: 20px 0 10px 0;
    font-size: 1.1rem;
}

.preview-content blockquote {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 20px 0;
    font-style: italic;
    border-radius: 8px;
}

.preview-content ul, .preview-content ol {
    padding-left: 20px;
    margin: 15px 0;
}

.preview-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Responsive Design */
@media (max-width: 768px) {
    .book-modal-container {
        width: 98%;
        height: 95vh;
        margin: 2.5vh auto;
        border-radius: 15px;
    }
    
    .book-modal-content {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 20px;
    }
    
    .preview-book-cover {
        padding: 15px;
    }
    
    .modal-book-img {
        height: 300px;
    }
    
    .book-modal-header {
        padding: 20px;
    }
    
    .book-modal-header h2 {
        font-size: 1.4rem;
    }
    
    .modal-tabs {
        padding: 0 20px;
    }
    
    .tab-btn {
        padding: 15px 20px;
        font-size: 0.9rem;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .author-info {
        flex-direction: column;
        text-align: center;
    }
    
    .author-stats {
        justify-content: center;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .books-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        margin-top: 40px !important;
    }
    
    .book-card {
        max-width: 100%;
    }
    
    .book-image {
        height: 300px;
    }
    
    .featured-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .featured-text {
        order: 2;
    }
    
    .featured-image {
        order: 1;
    }
    
    .book-details {
        flex-direction: column;
        gap: 10px;
    }
    
    .book-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .add-to-cart {
        width: 100%;
        text-align: center;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-header,
    .modal-body {
        padding: 20px;
    }
    
    .cart-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .cart-header,
    .cart-items,
    .cart-footer {
        padding: 15px 20px;
    }
    
    .cart-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .cart-item-image {
        align-self: center;
    }
    
    .cart-item-price {
        text-align: center;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .page-hero {
        height: 300px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .book-card {
        margin-bottom: 20px;
    }
    
    .book-content {
        padding: 20px;
    }
    
    .book-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-preview,
    .btn-buy {
        width: 100%;
        justify-content: center;
    }
    
    .features-list li {
        font-size: 1rem;
    }
    
    .testimonial-card {
        padding: 20px;
    }
}

/* Animation for scroll reveal */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.book-card {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.book-card:nth-child(1) { animation-delay: 0.1s; }
.book-card:nth-child(2) { animation-delay: 0.2s; }
.book-card:nth-child(3) { animation-delay: 0.3s; }
.book-card:nth-child(4) { animation-delay: 0.4s; }
.book-card:nth-child(5) { animation-delay: 0.5s; }

/* Book rating styles */
.book-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.stars {
    color: var(--accent-color);
}

.rating-text {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Cart modal styles */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-modal-content {
    background: var(--white);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid var(--bg-light);
}

.close-cart {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.close-cart:hover {
    color: var(--primary-color);
}

.cart-items {
    padding: 20px 30px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--bg-light);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h4 {
    margin-bottom: 5px;
    font-size: 1rem;
}

.cart-item-details p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--bg-light);
    background: var(--white);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.quantity {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.cart-item-price {
    text-align: right;
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
}

.remove-item {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--white);
    border: 1px solid var(--bg-light);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-light);
    transition: var(--transition);
}

.remove-item:hover {
    background: #dc3545;
    color: var(--white);
    border-color: #dc3545;
}

.cart-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--bg-light);
    text-align: center;
}

.cart-total {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.checkout-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.checkout-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.empty-cart {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    padding: 40px 0;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 15px 20px;
    box-shadow: var(--shadow-hover);
    z-index: 10001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 250px;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left: 4px solid #28a745;
    color: #28a745;
}

.notification.error {
    border-left: 4px solid #dc3545;
    color: #dc3545;
}

.notification.info {
    border-left: 4px solid var(--primary-color);
    color: var(--primary-color);
}

/* Loading state for book images */
.book-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    z-index: -1;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
