/**
 * Bookstore Page Specific Styles
 * Sustainable Practice Website - Bookstore Page
 * 
 * @version 0.1.0 - Initial bookstore page styles
 */

/* ========================================
   BOOKSTORE PAGE STYLES
   ======================================== */

/* Bookstore page background */
.bookstore-page {
    background-image: url('/img/background-bookstore.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

/* Bookstore hero section - override base hero-section background */
.bookstore-page .hero-section {
    position: relative; /* Changed from fixed to relative */
    width: 100%;
    min-height: 100vh; /* Use min-height instead of fixed height */
    z-index: 1;
    display: flex;
    align-items: flex-start; /* Changed from center to flex-start - content starts at top */
    justify-content: center;
    /* Override the base hero-section background */
    background-image: url('/img/background-bookstore.jpg') !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding-top: 80px; /* Ensure bookshelf is below header */
}

.bookstore-page .hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
}

.bookstore-page .hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.bookstore-page .hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.bookstore-page .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Bookstore hero spacer - no longer needed with relative positioning */
.bookstore-page .hero-spacer {
    display: none; /* Remove hero-spacer since hero is no longer fixed */
}

/* Bookstore content sections */
.bookstore-page .content-section {
    position: relative;
    z-index: 2;
    padding: 4rem 0;
}

.bookstore-page .content-section .container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bookstore-page .section-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
    text-align: center;
}

/* Books placeholder */
.bookstore-page .books-placeholder {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius-large);
    margin: 2rem 0;
}

.bookstore-page .books-placeholder p {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin: 0;
}

/* ========================================
   BOOK CARDS STYLES
   ======================================== */

/* Books grid layout */
.bookstore-page .books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Individual book card - Enhanced glass-morphism with nature-inspired colors */
.bookstore-page .book-card {
    background: rgba(241, 220, 167, 0.85); /* Sandy Beige - nature-inspired */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

/* Sophisticated green accent border */
.bookstore-page .book-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, var(--forest-green), var(--forest-green-light));
    border-radius: var(--border-radius-large);
    z-index: -1;
    opacity: 0.8;
}

.bookstore-page .book-card:hover {
    transform: translateY(-4px);
    background: rgba(241, 220, 167, 0.95); /* Enhanced Sandy Beige on hover */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 1);
}

/* Enhanced green accent on hover */
.bookstore-page .book-card:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, var(--forest-green-light), var(--forest-green));
}

/* Book cover */
.bookstore-page .book-cover {
    text-align: center;
    margin-bottom: 0; /* Override suspra.css margin-bottom: 1.5rem */
}

.bookstore-page .book-cover-image {
    max-width: 200px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.bookstore-page .book-card:hover .book-cover-image {
    transform: scale(1.02);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Book information */
.bookstore-page .book-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bookstore-page .book-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--forest-green);
    margin: 0;
    line-height: 1.3;
}

.bookstore-page .book-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-medium);
    margin: 0;
    line-height: 1.4;
}

.bookstore-page .book-description {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}

/* Book features */
.bookstore-page .book-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.bookstore-page .feature-tag {
    background: rgba(156, 175, 136, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: var(--forest-green-dark);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-small);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition-fast);
}

.bookstore-page .book-availability {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.25rem 0 0.75rem 0;
}

.bookstore-page .badge {
    padding: 0.2rem 0.6rem;
    font-size: 0.8rem;
    border-radius: var(--border-radius-small);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.bookstore-page .badge-digital {
    background: rgba(135, 206, 235, 0.75);
    color: #0b3954;
}

.bookstore-page .badge-paperback {
    background: rgba(241, 196, 15, 0.75);
    color: #5b3d00;
}

.bookstore-page .badge-guarantee {
    background: rgba(184, 233, 148, 0.75);
    color: #0b4919;
}

.bookstore-page .feature-tag:hover {
    background: rgba(156, 175, 136, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Book metadata */
.bookstore-page .book-metadata {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
}

.bookstore-page .metadata-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border-radius: var(--border-radius-small);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-fast);
}

.bookstore-page .metadata-item:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateX(2px);
}

.bookstore-page .metadata-item:last-child {
    border-bottom: none;
}

.bookstore-page .metadata-label {
    font-weight: 600;
    color: var(--text-medium);
    font-size: 0.9rem;
}

.bookstore-page .metadata-value {
    font-weight: 500;
    color: var(--forest-green);
    font-size: 0.9rem;
}

/* Purchase options */
.bookstore-page .purchase-options {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
}

.bookstore-page .purchase-btn {
    flex: 1;
    text-align: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.bookstore-page .purchase-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.bookstore-page .purchase-btn:hover::before {
    left: 100%;
}

.bookstore-page .purchase-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Store info and debug display */
.bookstore-page .store-info {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: var(--transition-fast);
}

.bookstore-page .store-info:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.bookstore-page .debug-info {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin: 0;
    font-style: italic;
}

/* Card interaction improvements */
.bookstore-page .book-card {
    cursor: pointer;
}

.bookstore-page .book-card:hover .book-title {
    color: var(--forest-green-light);
}

/* Prevent purchase buttons from triggering card click */
.bookstore-page .purchase-options {
    cursor: default;
}

/* ========================================
   BOOKSHELF CAROUSEL STYLES
   ======================================== */

/* Bookshelf carousel container */
.bookstore-page .bookshelf-carousel {
    width: 100%;
    min-height: 100vh; /* Full viewport height since hero has padding-top */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Changed from center to flex-start - content starts at top */
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 1.5rem; /* Reduced padding for compact design */
    box-sizing: border-box;
}

.bookstore-page .bookshelf-header {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.bookstore-page .bookshelf-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.bookstore-page .bookshelf-subtitle {
    font-size: 1.25rem;
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.bookstore-page .bookshelf-container {
    background-color: rgba(160, 82, 45, 0.85); /* Lighter wood tone - Sienna */
    border-radius: 7px 7px 0 0;
    position: relative;
    width: 100%; /* Use container width instead of viewport width */
    max-width: 1200px; /* Wide enough for 5 books + navigation arrows + padding */
    margin: 0 auto;
    padding: 0 0 0.75rem 0;
    overflow: hidden; /* Hide overflow to prevent bookshelf from extending beyond container */
}

.bookstore-page .bookshelf-track {
    display: flex;
    gap: 1.5rem; /* Reduced from 2rem for compact design */
    transition: transform 0.5s ease-in-out;
    padding: 1rem 0 0 0; /* Further reduced top padding to nudge books up more */
    align-items: flex-start; /* Align all cards to top */
    justify-content: flex-start; /* Start books from the left, not centered */
}

.bookstore-page .bookshelf-book {
    flex: 0 0 200px; /* Keep compact width */
    height: 320px; /* Fixed height for consistent alignment */
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--border-radius-large);
    overflow: hidden;
    background: rgba(241, 220, 167, 0.15); /* Sandy Beige - nature-inspired */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* Sophisticated layered border using box-shadow technique */
    border: 4px solid rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 0 0 2px var(--forest-green), /* Green accent border */
        0 0 0 4px rgba(255, 255, 255, 0.95); /* White inner border */
    position: relative;
    display: flex;
    flex-direction: column; /* Stack cover and info vertically */
    align-items: stretch; /* Ensure consistent width */
}

.bookstore-page .bookshelf-book:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(241, 220, 167, 0.25); /* Enhanced Sandy Beige on hover */
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.2),
        0 0 0 3px var(--forest-green-light), /* Enhanced green accent */
        0 0 0 5px rgba(255, 255, 255, 1); /* Enhanced white border */
}

.bookstore-page .bookshelf-book.selected {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}


/* Removed book-spine - no longer needed, book-cover and book-info are direct children */

.bookstore-page .book-cover {
    text-align: center;
    padding: 1rem; /* Padding around the image */
    margin-bottom: 0; /* Override suspra.css margin-bottom: 1.5rem */
    flex: 1; /* Take up the full card height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative; /* Enable absolute positioning for hover overlay */
    /* Clean background - no gradient needed */
    background: transparent;
    /* No rounded corners - should fill completely */
    border-radius: 0;
    /* No border - seamless connection */
    border: none;
    overflow: hidden; /* Hide overflow for clean hover effect */
}

.bookstore-page .book-cover img {
    width: 20vh; /* Increased responsive width based on viewport height */
    height: 28vh; /* Increased responsive height based on viewport height (book aspect ratio) */
    object-fit: contain; /* Shows full image without cropping, maintains aspect ratio */
    border-radius: var(--border-radius);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    margin-bottom: 0;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border for definition */
}

.bookstore-page .bookshelf-book:hover .book-cover img {
    transform: scale(1.05);
}

/* Hover overlay for title and subtitle */
.bookstore-page .book-cover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8); /* Dark overlay */
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    text-align: center;
}

.bookstore-page .bookshelf-book:hover .book-cover::after {
    opacity: 1;
}

/* Book info overlay container */
.bookstore-page .book-cover .book-info-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.bookstore-page .bookshelf-book:hover .book-cover .book-info-overlay {
    opacity: 1;
}

/* Title and subtitle styles within overlay */
.bookstore-page .book-cover .book-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
    max-width: 90%;
}

.bookstore-page .book-cover .book-subtitle {
    font-size: 1rem;
    font-weight: 500;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    margin: 0;
    line-height: 1.3;
    max-width: 90%;
}

/* Book info section removed - only showing cover image */

/* Navigation arrows */
.bookstore-page .bookshelf-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15); /* Increased opacity for better visibility */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3); /* Stronger border */
    border-radius: 50%;
    width: 56px; /* Increased size for better visibility */
    height: 56px; /* Increased size for better visibility */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Added shadow for depth */
}

.bookstore-page .bookshelf-nav:hover {
    background: rgba(255, 255, 255, 0.25); /* Increased hover opacity */
    border-color: rgba(255, 255, 255, 0.4); /* Stronger hover border */
    transform: translateY(-50%) scale(1.05); /* Subtle scale for elegance */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3); /* Enhanced shadow on hover */
}

.bookstore-page .bookshelf-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.bookstore-page .bookshelf-nav:disabled:hover {
    transform: translateY(-50%);
}

.bookstore-page .bookshelf-nav-prev {
    left: 8px; /* Position left arrow inside container on left side */
}

.bookstore-page .bookshelf-nav-next {
    right: 8px; /* Position right arrow inside container on right side */
}

/* Bookshelf indicators */
.bookstore-page .bookshelf-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem; /* Changed from margin-top to margin-bottom - now above bookshelf */
    opacity: 1;
    pointer-events: auto;
}

.bookstore-page .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bookstore-page .indicator:hover {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.bookstore-page .indicator.active {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* ========================================
   ENGRAVED SHELF DESIGN
   ======================================== */

/* Engraved shelf container - Rich wood tones */
.bookstore-page .shelf-engraved {
    background: linear-gradient(135deg, 
        #5D2F0A 0%,     /* Rich dark brown base */
        #8B4513 25%,    /* Saddle Brown - deep wood tone */
        #A0522D 50%,    /* Sienna - warm wood highlight */
        #8B4513 75%,    /* Saddle Brown - deep wood tone */
        #5D2F0A 100%    /* Rich dark brown base */
    );
    border-top: 3px solid rgba(139, 69, 19, 0.6); /* Rich wood border */
    position: relative;
    padding: 2rem 3rem; /* Increased padding for wider shelf */
    margin: 0 auto; /* Remove top margin so shelf moves up to meet books */
    border-radius: 0 0 50% 50%; /* Curved concave shape - flat top, curved bottom */
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.3), /* Enhanced wood shadow */
        inset 0 3px 0 rgba(255, 255, 255, 0.12), /* Enhanced inner highlight */
        inset 0 -2px 0 rgba(0, 0, 0, 0.2); /* Subtle inner shadow for depth */
    width: 100%; /* Use container width instead of viewport width */
    max-width: 1200px; /* Wide enough for 5 books + navigation arrows + padding */
}

/* Decorative engraved line - follows curved shape with consistent lighting */
.bookstore-page .shelf-engraved::before {
    content: '';
    position: absolute;
    top: 15px; /* Moved down to avoid conflicting with text lighting */
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255,255,255,0.15), /* Subtle highlight (toward light) */
        rgba(0,0,0,0.2), /* Shadow (away from light) */
        transparent
    );
    border-radius: 0 0 50% 50%; /* Match the curved shape */
}

/* Main shelf text - Engraved wood effect with consistent lighting */
.bookstore-page .shelf-text-main {
    font-family: 'Crimson Text', serif; /* Elegant serif font */
    font-size: 1.8rem; /* Increased for substantial presence */
    font-weight: 700;
    color: #F5F5DC; /* Cream/beige text for contrast on dark wood */
    text-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.1), /* Top-left highlight (toward light) */
        inset 0 2px 4px rgba(0,0,0,0.6), /* Deep carved shadow */
        inset 0 -1px 0 rgba(0,0,0,0.4); /* Bottom-right shadow (away from light) */
    margin-bottom: 0.75rem;
    text-align: center;
    line-height: 1.3;
    letter-spacing: 0.5px; /* Subtle letter spacing for elegance */
}

/* Secondary shelf text - Engraved wood effect */
.bookstore-page .shelf-text-secondary {
    font-family: 'Crimson Text', serif; /* Elegant serif font */
    font-size: 1.4rem; /* Increased for better readability */
    font-weight: 500;
    color: #E8E8D3; /* Lighter cream for hierarchy */
    text-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.08), /* Top-left highlight (toward light) */
        inset 0 2px 3px rgba(0,0,0,0.5), /* Deep carved shadow */
        inset 0 -1px 0 rgba(0,0,0,0.3); /* Bottom-right shadow (away from light) */
    text-align: center;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* Tertiary shelf text - Engraved wood effect */
.bookstore-page .shelf-text-tertiary {
    font-family: 'Crimson Text', serif; /* Elegant serif font */
    font-size: 1.1rem; /* Increased for better legibility */
    font-style: italic;
    color: #D4D4C4; /* Subtle cream for tertiary text */
    text-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.06), /* Top-left highlight (toward light) */
        inset 0 1px 2px rgba(0,0,0,0.4), /* Deep carved shadow */
        inset 0 -1px 0 rgba(0,0,0,0.25); /* Bottom-right shadow (away from light) */
    text-align: center;
    opacity: 0.9;
}

/* ========================================
   BOOK PURCHASE DIALOG STYLES
   ======================================== */

/* Book purchase dialog overlay */
.bookstore-page .book-purchase-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

/* Book purchase dialog */
.bookstore-page .book-purchase-dialog {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius-large);
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 8px 25px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
    animation: dialogSlideIn 0.3s ease-out;
}

@keyframes dialogSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Dialog close button */
.bookstore-page .book-purchase-dialog-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--text-dark);
    z-index: 1;
}

.bookstore-page .book-purchase-dialog-close:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

/* Dialog content */
.bookstore-page .book-purchase-dialog-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Dialog header */
.bookstore-page .book-purchase-dialog-header {
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.bookstore-page .book-purchase-dialog-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--forest-green);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.bookstore-page .book-purchase-dialog-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin: 0;
    line-height: 1.4;
}

/* Dialog body */
.bookstore-page .book-purchase-dialog-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bookstore-page .book-purchase-dialog-description {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

/* Purchase options */
.bookstore-page .book-purchase-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bookstore-page .btn-purchase-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
    text-decoration: none;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.bookstore-page .btn-purchase-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.bookstore-page .btn-purchase-option:hover::before {
    left: 100%;
}

.bookstore-page .btn-purchase-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}


/* Button prices */
.bookstore-page .btn-price {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 500;
}

/* Primary button (eBook) */
.bookstore-page .btn-purchase-option.btn-primary {
    background: var(--forest-green);
    color: white;
    border-color: var(--forest-green);
}

.bookstore-page .btn-purchase-option.btn-primary:hover {
    background: var(--forest-green-light);
    border-color: var(--forest-green-light);
    box-shadow: 0 8px 25px rgba(46, 94, 78, 0.3);
}

/* Outline button (Paperback) */
.bookstore-page .btn-purchase-option.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: var(--forest-green);
    border-color: var(--forest-green);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.bookstore-page .btn-purchase-option.btn-outline:hover {
    background: var(--forest-green);
    color: white;
    border-color: var(--forest-green);
    box-shadow: 0 8px 25px rgba(46, 94, 78, 0.3);
}

/* Responsive dialog */
@media (max-width: 768px) {
    .bookstore-page .book-purchase-dialog {
        max-width: 90vw;
        margin: 0.5rem;
    }
    
    .bookstore-page .book-purchase-dialog-content {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .bookstore-page .book-purchase-dialog-title {
        font-size: 1.5rem;
    }
    
    .bookstore-page .book-purchase-dialog-subtitle {
        font-size: 1rem;
    }
    
    .bookstore-page .btn-purchase-option {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
    }
}

/* ========================================
   NEWSLETTER SECTION STYLES - REMOVED
   ======================================== */
/* Newsletter styles moved to suspra.css for consistency across all pages */

/* ========================================
   BOOK DISPLAYER COMPONENT STYLES
   ======================================== */

/* Book displayer layout */
.bookstore-page .book-displayer {
    width: 100%;
}

.bookstore-page .book-displayer-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    min-height: 600px;
}

/* Book finder styles */
.bookstore-page .book-displayer-finder {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bookstore-page .finder-navigation {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.bookstore-page .nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
}

.bookstore-page .nav-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bookstore-page .nav-btn i {
    font-size: 1rem;
}

.bookstore-page .finder-header {
    margin-bottom: 2rem;
}

.bookstore-page .finder-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--forest-green);
    margin: 0 0 0.5rem 0;
}

.bookstore-page .finder-subtitle {
    font-size: 1rem;
    color: var(--text-medium);
    margin: 0;
}

.bookstore-page .finder-controls {
    margin-bottom: 2rem;
}

.bookstore-page .search-container {
    margin-bottom: 1.5rem;
}

.bookstore-page .search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: var(--text-dark);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.bookstore-page .search-input:focus {
    outline: none;
    border-color: var(--forest-green);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(46, 94, 78, 0.2);
}

.bookstore-page .search-input::placeholder {
    color: var(--text-medium);
}

.bookstore-page .pathway-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bookstore-page .filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-small);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: var(--text-dark);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.bookstore-page .filter-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.bookstore-page .filter-btn.active {
    background: var(--forest-green);
    color: white;
    border-color: var(--forest-green);
}

.bookstore-page .books-grid {
    display: grid;
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.bookstore-page .book-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: var(--transition-fast);
}

.bookstore-page .book-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.bookstore-page .book-item .book-cover {
    flex: 0 0 60px;
}

.bookstore-page .book-item .book-cover img {
    width: 60px;
    height: auto;
    border-radius: var(--border-radius-small);
}

.bookstore-page .book-item .book-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.bookstore-page .book-item .book-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--forest-green);
    margin: 0;
    line-height: 1.3;
}

.bookstore-page .book-item .book-subtitle {
    font-size: 0.85rem;
    color: var(--text-medium);
    margin: 0;
    line-height: 1.3;
}

.bookstore-page .book-meta-small {
    display: flex;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.bookstore-page .book-pathway {
    color: var(--forest-green);
    font-weight: 500;
}

.bookstore-page .book-price {
    color: var(--text-medium);
    font-weight: 500;
}

.bookstore-page .book-item .book-description {
    font-size: 0.8rem;
    color: var(--text-medium);
    margin: 0;
    line-height: 1.4;
}

/* Book reader styles */
.bookstore-page .book-displayer-reader {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow-y: auto;
    max-height: 600px;
}

.bookstore-page .reader-header {
    margin-bottom: 2rem;
}

.bookstore-page .reader-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--forest-green);
    margin: 0 0 0.5rem 0;
}

.bookstore-page .reader-subtitle {
    font-size: 1rem;
    color: var(--text-medium);
    margin: 0;
}

.bookstore-page .book-details {
    display: flex;
    gap: 2rem;
}

.bookstore-page .book-cover-large {
    flex: 0 0 200px;
}

.bookstore-page .book-cover-large img {
    width: 200px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.bookstore-page .book-meta {
    flex: 1;
}

.bookstore-page .book-title-large {
    font-size: 2rem;
    font-weight: 700;
    color: var(--forest-green);
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.bookstore-page .book-subtitle-large {
    font-size: 1.2rem;
    color: var(--text-medium);
    margin: 0 0 1.5rem 0;
    line-height: 1.3;
}

.bookstore-page .book-metadata {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.bookstore-page .metadata-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bookstore-page .metadata-label {
    font-weight: 600;
    color: var(--text-medium);
    font-size: 0.9rem;
}

.bookstore-page .metadata-value {
    font-weight: 500;
    color: var(--forest-green);
    font-size: 0.9rem;
}

.bookstore-page .book-description-large {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0 0 2rem 0;
}

.bookstore-page .book-actions {
    display: flex;
    gap: 1rem;
}

.bookstore-page .purchase-btn {
    flex: 1;
    text-align: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.bookstore-page .purchase-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.bookstore-page .purchase-btn:hover::before {
    left: 100%;
}

.bookstore-page .purchase-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* No book selected state */
.bookstore-page .no-book-selected {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    text-align: center;
}

.bookstore-page .no-book-content {
    color: var(--text-medium);
}

.bookstore-page .no-book-content svg {
    margin-bottom: 1rem;
    opacity: 0.5;
}

.bookstore-page .no-book-content h3 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
    color: var(--forest-green);
}

.bookstore-page .no-book-content p {
    margin: 0;
    font-size: 1rem;
}

/* Responsive design */
@media (max-width: 1024px) {
    .bookstore-page .book-displayer-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .bookstore-page .book-details {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .bookstore-page .book-cover-large {
        flex: none;
        text-align: center;
    }
    
    .bookstore-page .bookshelf-title {
        font-size: 2.5rem;
    }
    
    .bookstore-page .bookshelf-book {
        flex: 0 0 180px; /* Reduced for compact design */
        height: 280px; /* Fixed height for consistent alignment */
    }
    
    /* Tablet viewport optimization */
    .bookstore-page .bookshelf-carousel {
        min-height: 100vh; /* Full viewport height since hero has padding-top */
        padding: 1rem;
    }
    
    /* Tablet shelf uses responsive width with max-width constraint */
}

@media (max-width: 768px) {
    .bookstore-page .bookshelf-carousel {
        padding: 0.75rem;
        min-height: 100vh; /* Full viewport height since hero has padding-top */
    }
    
    .bookstore-page .bookshelf-title {
        font-size: 2rem;
    }
    
    .bookstore-page .bookshelf-subtitle {
        font-size: 1rem;
    }
    
    .bookstore-page .bookshelf-book {
        flex: 0 0 160px; /* Reduced for mobile compact design */
        height: 240px; /* Fixed height for consistent alignment */
    }
    
    /* Navigation arrows should be visible on mobile when bookshelf overflows */
    .bookstore-page .bookshelf-nav {
        width: 48px; /* Slightly smaller for mobile */
        height: 48px;
    }
    
    .bookstore-page .bookshelf-nav-prev {
        left: 8px; /* Position left arrow inside container on left side */
    }
    
    .bookstore-page .bookshelf-nav-next {
        right: 8px; /* Position right arrow inside container on right side */
    }
    
    /* Mobile shelf uses responsive width with max-width constraint */
    
    .bookstore-page .book-displayer-finder,
    .bookstore-page .book-displayer-reader {
        padding: 1.5rem;
    }
    
    .bookstore-page .finder-title,
    .bookstore-page .reader-title {
        font-size: 1.5rem;
    }
    
    /* Responsive shelf design */
    .bookstore-page .shelf-engraved {
        padding: 0.75rem 1rem; /* Reduced padding for mobile */
        margin: 0 auto; /* Remove top margin on mobile too - shelf should meet books */
    }
    
    .bookstore-page .shelf-text-main {
        font-size: 1.6rem; /* Increased mobile size to maintain prominence */
    }
    
    .bookstore-page .shelf-text-secondary {
        font-size: 1.3rem; /* Increased mobile size for better readability */
    }
    
    .bookstore-page .shelf-text-tertiary {
        font-size: 1rem; /* Increased mobile size for better legibility */
    }
}