/* Global Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f4f6f7;
    --white: #ffffff;
    --border-color: #ddd;
    --font-heading: 'Merriweather', serif;
    --font-body: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    flex-shrink: 0;
}

footer {
    margin-top: auto;
    flex-shrink: 0;
}

section, .page-header, .content-section {
    flex: 1 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Text Block for Policy Pages */
.text-block {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    max-width: 900px;
    margin: 0 auto;
}

.text-block h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.text-block ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

/* Header */
header {
    background-color: transparent;
    box-shadow: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 15px 0;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    padding: 10px 0;
    backdrop-filter: blur(10px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px; /* Reduced from 80px */
}

.logo h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: color 0.3s ease;
}

header.scrolled .logo h1 {
    color: var(--primary-color);
    text-shadow: none;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav a {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    transition: all 0.3s ease;
}

header.scrolled nav a {
    color: var(--text-color);
}

nav a:hover, nav a.active {
    color: var(--white);
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

header.scrolled nav a:hover, header.scrolled nav a.active {
    color: var(--secondary-color);
    text-shadow: none;
}

.btn-primary {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

header.scrolled .btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

header.scrolled .btn-primary:hover {
    background-color: #1a252f;
    color: var(--white);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(20, 30, 48, 0.7), rgba(36, 59, 85, 0.7)), url('../images/hero_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 180px 0;
    display: flex;
    align-items: center;
    min-height: 85vh;
    color: var(--white);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, rgba(255,255,255,1), transparent);
    pointer-events: none;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
}

.hero-content h2 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    margin-bottom: 30px;
    color: var(--white);
    line-height: 1.1;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 45px;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    line-height: 1.8;
    font-weight: 300;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    perspective: 1000px;
}

.hero-book-container {
    transition: transform 0.5s ease;
}

.hero:hover .hero-book-container {
    transform: rotate(0deg) scale(1.05) !important;
}

.btn-large {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 18px 45px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.4);
    transition: all 0.3s ease;
}

.btn-large:hover {
    background-color: #2980b9;
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(52, 152, 219, 0.5);
}

/* Page Header (Common for inner pages) */
.page-header {
    height: 400px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--white);
    margin-bottom: 60px;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.page-header .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-header h1 {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    margin: 0;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Content Sections */
.content-section {
    padding-bottom: 80px;
}

.text-block {
    background: var(--white);
    padding: 60px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    max-width: 900px;
    margin: -100px auto 0; /* Overlap effect */
    position: relative;
    z-index: 2;
}

.text-block h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    display: inline-block;
}

.text-block h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: var(--primary-color);
}

.text-block p, .text-block li {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 15px;
}

.text-block ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

/* Features Section */
.features {
    padding: 60px 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.features .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-box {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    transition: transform 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-box i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.feature-box h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Categories Section */
.categories {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-card {
    position: relative;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cat-overlay {
    background: rgba(0,0,0,0.4);
    padding: 20px;
    border-radius: 10px;
    color: var(--white);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
}

.category-card:hover .cat-overlay {
    background: rgba(0,0,0,0.6);
}

.cat-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.cat-overlay a {
    color: var(--white);
    font-weight: 600;
    border-bottom: 2px solid var(--white);
    padding-bottom: 5px;
}

/* Category Filters */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center; /* Centered filters look better */
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #666;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

/* Products Grid */
.bestsellers, .shop-page {
    padding: 80px 0;
    background-color: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 40px;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    transition: transform 0.3s;
}

.book-cover {
    width: 100%;
    aspect-ratio: 2/3;
    background: #eee;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    line-height: 1.4;
}

.product-card h3 a {
    color: var(--primary-color);
}

.product-card .author {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.product-card .price {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.btn-add {
    display: block;
    width: 100%;
    padding: 10px;
    text-align: center;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s;
    background: transparent;
    cursor: pointer;
}

.btn-add:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Shop Page Specifics */
.search-container {
    display: flex;
    max-width: 600px;
    margin: 0 auto 50px;
}

#search-input {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 30px 0 0 30px;
    font-size: 1rem;
    outline: none;
}

#search-btn {
    padding: 0 30px;
    background-color: var(--secondary-color);
    border: none;
    border-radius: 0 30px 30px 0;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
}

.pagination {
    margin-top: 50px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn.active, .page-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 60px 0 0;
    margin-top: auto;
}

footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding-bottom: 60px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #bdc3c7;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    background-color: #1a252f;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Detail Page */
.product-detail-section {
    padding: 60px 0;
    background: var(--white);
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.detail-info h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.detail-meta {
    margin-bottom: 20px;
    color: #666;
    display: flex;
    gap: 20px;
    align-items: center;
}

.rating {
    color: #f1c40f;
}

.detail-price {
    font-size: 2rem;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 30px;
}

.detail-description {
    margin-bottom: 30px;
    line-height: 1.8;
}

.tabs-section {
    margin-top: 50px;
}

.tabs {
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 30px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #7f8c8d;
    cursor: pointer;
    position: relative;
    bottom: -2px;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.tab-content {
    display: none;
    animation: fadeEffect 0.5s;
}

.tab-content.active {
    display: block;
}

@keyframes fadeEffect {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* Cart Page */
.cart-page {
    padding: 60px 0;
}

.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.cart-items {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.cart-item {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.cart-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cart-item-image {
    width: 100px;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    border-radius: 5px;
}

.cart-item-image .book-cover-art {
    min-height: 140px;
    padding: 10px;
    border-radius: 4px;
    box-shadow: inset 5px 0 10px rgba(0,0,0,0.1), 1px 1px 3px rgba(0,0,0,0.1);
}

.cart-item-image .book-cover-title {
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.cart-item-image .book-cover-author {
    font-size: 0.6rem;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-item-details h3 {
    margin-bottom: 5px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary-color);
}

.cart-item-details .author {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.cart-item-details .price {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    width: fit-content;
    margin-top: 10px;
}

.qty-btn {
    background: none;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

.quantity-control input {
    width: 40px;
    text-align: center;
    border: none;
    outline: none;
    font-weight: 600;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    min-width: 120px;
}

.remove-btn {
    background: transparent;
    border: none;
    color: #95a5a6;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.remove-btn:hover {
    color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.1);
}

.cart-summary {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    height: fit-content;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.summary-total {
    border-top: 2px solid var(--border-color);
    padding-top: 20px;
    margin-top: 20px;
    font-weight: 700;
    font-size: 1.2rem;
}

.btn-checkout {
    display: block;
    width: 100%;
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content p {
        margin: 0 auto 30px;
    }

    nav ul {
        display: none; /* Mobile menu implementation needed if required */
    }

    .product-detail-container {
        grid-template-columns: 1fr;
    }

    .cart-container {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 20px;
}

.contact-info h2, .contact-form-container h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2rem;
}

.contact-info > p {
    margin-bottom: 40px;
    color: #666;
    font-size: 1.1rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 20px;
    margin-top: 5px;
    width: 30px;
    text-align: center;
}

.info-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.info-item p {
    color: #666;
    line-height: 1.6;
}

.contact-form-container {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-form-container form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form-container input,
.contact-form-container textarea {
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
    background: #f9f9f9;
}

.contact-form-container input:focus,
.contact-form-container textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
    background: var(--white);
}

.contact-form-container button {
    padding: 15px;
    font-size: 1.1rem;
    margin-top: 10px;
    cursor: pointer;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.contact-form-container button:hover {
    background-color: var(--secondary-color);
}

/* CSS Vector Book Covers */
.book-cover-art {
    width: 100%;
    height: 100%;
    min-height: 280px; /* Adjust based on your card height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    border-radius: 4px 8px 8px 4px;
    box-shadow: 
        inset 10px 0 20px rgba(0,0,0,0.2), /* Spine shadow */
        2px 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    background-color: #ddd; /* Fallback */
}

.product-card:hover .book-cover-art {
    transform: translateY(-5px) translateX(2px);
    box-shadow: 
        inset 10px 0 20px rgba(0,0,0,0.2),
        5px 5px 15px rgba(0,0,0,0.2);
}

.book-cover-art .cover-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.book-cover-title {
    font-family: 'Merriweather', serif;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
    word-wrap: break-word;
}

.book-cover-author {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.9;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.3);
}

/* Decorative Elements */
.book-decoration {
    position: absolute;
    z-index: 1;
    opacity: 0.2;
}

.deco-circle {
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: currentColor;
}

.deco-line {
    bottom: 40px;
    left: -20px;
    width: 150%;
    height: 20px;
    background: currentColor;
    transform: rotate(-35deg);
}

/* Category Themes */
/* Fiction / Mystery: Deep Purples/Blues */
.book-cover-art.cat-fiction {
    background: linear-gradient(135deg, #2c3e50, #4ca1af);
    color: #fff;
}
.book-cover-art.cat-fiction .book-decoration { color: #fff; opacity: 0.15; }

/* Business / Finance: Professional Blues/Greys */
.book-cover-art.cat-business {
    background: linear-gradient(135deg, #141E30, #243B55);
    color: #fff;
}
.book-cover-art.cat-business .book-decoration { color: #fff; opacity: 0.1; }

/* Technology: Modern Green/Black/Techy */
.book-cover-art.cat-technology {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #e0f7fa;
}
.book-cover-art.cat-technology .book-cover-title { font-family: 'Courier New', monospace; letter-spacing: -0.5px; }
.book-cover-art.cat-technology .book-decoration { color: #00bcd4; opacity: 0.1; }

/* Health / Wellness: Calming Pinks/Oranges */
.book-cover-art.cat-health {
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
    color: #5d4037;
}
.book-cover-art.cat-health .book-cover-author { border-color: rgba(93, 64, 55, 0.2); }
.book-cover-art.cat-health .book-decoration { color: #fff; opacity: 0.4; }

/* Architecture / Design: Artistic/Clean */
.book-cover-art.cat-architecture {
    background: linear-gradient(135deg, #8e2de2, #4a00e0);
    color: #fff;
}
.book-cover-art.cat-architecture .book-decoration { color: #fff; opacity: 0.2; }

/* Cart Specific Adjustments */
.cart-item-image .book-cover-art {
    min-height: 100px; /* Smaller for cart */
    padding: 10px;
    border-radius: 2px;
}
.cart-item-image .book-cover-title {
    font-size: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cart-item-image .book-cover-author {
    display: none; /* Hide author in tiny cart view */
}
.cart-item-image .book-decoration {
    display: none; /* Simplify for small icon */
}

/* Detail Page Adjustments */
.detail-image {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.detail-image .book-cover-art {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 2 / 3;
    min-height: auto; /* Remove fixed min-height to allow aspect ratio to work */
    box-shadow: 
        inset 20px 0 40px rgba(0,0,0,0.2), /* Spine shadow */
        10px 10px 30px rgba(0,0,0,0.3), /* Drop shadow */
        5px 0 10px rgba(0,0,0,0.1); /* Spine edge definition */
    border-radius: 4px 12px 12px 4px; /* More rounded right edge for pages */
    transform: rotateY(-5deg); /* Slight 3D perspective */
    transform-style: preserve-3d;
}

.detail-image .book-cover-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
}
.detail-image .book-cover-author {
    font-size: 1.2rem;
}