:root {
    --primary-color: #2D3436;
    --secondary-color: #0984E3;
    --accent-color: #00B894;
    --text-color: #2D3436;
    --light-text: #636E72;
    --background: #F5F6FA;
    --card-bg: #FFFFFF;
    --gradient: linear-gradient(135deg, #0984E3, #00B894);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
    overflow-x: hidden;
}

/* Custom Cursor */
.cursor {
    width: 8px;
    height: 8px;
    background: var(--secondary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 24px;
    height: 24px;
    background: rgba(9, 132, 227, 0.1);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.6s ease, width 0.3s ease, height 0.3s ease;
    mix-blend-mode: difference;
}

/* Header Styles */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.logo-subtitle {
    font-size: 0.9rem;
    color: var(--light-text);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.search-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    transition: transform 0.3s ease;
}

.search-btn:hover {
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    padding: 8rem 2rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 80vh;
    align-items: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.hero-content {
    padding-right: 2rem;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-family: 'Libre Baskerville', serif;
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 3rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat {
    text-align: center;
}

.number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
}

.label {
    color: var(--light-text);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-image {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.floating-book {
    width: 100%;
    height: 600px;
    background: var(--gradient);
    border-radius: 20px;
    position: relative;
    transform: perspective(1000px) rotateY(-15deg);
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.1);
    animation: float 6s ease-in-out infinite;
    z-index: 1;
    will-change: transform;
}

@keyframes float {
    0%, 100% { transform: perspective(1000px) rotateY(-15deg) translateY(0); }
    50% { transform: perspective(1000px) rotateY(-15deg) translateY(-20px); }
}

/* Featured Books Section */
.featured-books {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
}

.featured-books h2 {
    font-family: 'Libre Baskerville', serif;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--primary-color);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 3rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0984e3;
    display: inline-block;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 3rem;
    width: 100%;
}

.books-section {
    width: 100%;
}

.books-section .books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.book-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 2/3;
    max-width: 380px;
    margin: 0 auto;
    width: 100%;
}

.book-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.book-cover {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.book-card:hover .book-cover img {
    transform: scale(1.1);
}

.book-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) transparent;
}

.book-card:hover .book-overlay {
    opacity: 1;
}

.book-card:hover .book-details {
    transform: translateY(0);
}

.book-overlay::-webkit-scrollbar {
    width: 6px;
}

.book-overlay::-webkit-scrollbar-track {
    background: transparent;
}

.book-overlay::-webkit-scrollbar-thumb {
    background-color: var(--secondary-color);
    border-radius: 3px;
}

.book-details {
    color: white;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    width: 100%;
    padding: 0.5rem;
}

.book-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.rating {
    color: #FFD700;
    display: flex;
    gap: 0.2rem;
}

.pages {
    color: #ccc;
    font-size: 0.9rem;
    white-space: nowrap;
}

.book-details h3 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.author {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.categories {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.category {
    background: rgba(9, 132, 227, 0.2);
    color: var(--secondary-color);
    padding: 0.3rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.description {
    font-size: 0.95rem;
    color: #ccc;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto;
    transition: transform 0.3s ease;
    white-space: nowrap;
}

.read-btn:hover {
    transform: scale(1.05);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--background);
    border-radius: 20px;
    padding: 3rem;
    width: 90%;
    max-width: 1200px;
    margin: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.modal-header h2 {
    color: var(--text-primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Libre Baskerville', serif;
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    line-height: 1.6;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--text-primary);
}

.subscription-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.subscription-card {
    background: var(--card-background);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 500px;
}

.subscription-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.subscription-card.featured {
    border: 2px solid var(--accent-color);
    background: linear-gradient(to bottom, rgba(0, 184, 148, 0.05), transparent);
}

.best-value {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
}

.card-header {
    margin-bottom: 2rem;
}

.card-header h3 {
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-family: 'Libre Baskerville', serif;
}

.price {
    color: var(--text-primary);
    margin: 1.5rem 0;
}

.price .amount {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
}

.price .period {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.features {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
    text-align: left;
}

.features li {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.features i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.subscribe-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: auto;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.2);
}

.subscribe-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 184, 148, 0.3);
}

.subscribe-btn.clicked {
    transform: scale(0.95);
}

@media (max-width: 1200px) {
    .modal-content {
        padding: 2.5rem;
    }
    
    .subscription-options {
        gap: 2rem;
    }
    
    .subscription-card {
        padding: 2.5rem;
        min-height: 450px;
    }
}

@media (max-width: 768px) {
    .modal {
        padding: 1rem;
    }
    
    .modal-content {
        padding: 2rem;
        width: 95%;
    }
    
    .modal-header h2 {
        font-size: 2rem;
    }
    
    .subscription-options {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .subscription-card {
        padding: 2rem;
        min-height: auto;
    }
    
    .card-header h3 {
        font-size: 1.8rem;
    }
    
    .price .amount {
        font-size: 3rem;
    }
    
    .features li {
        font-size: 1rem;
    }
    
    .subscribe-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 2rem;
        padding: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 2rem;
    }
}

/* Footer Styles */
footer {
    background: var(--primary-color);
    color: white;
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 1400px) {
    .books-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .nav-links a:not(.search-btn) {
        display: none;
    }

    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 2rem;
        padding: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 2rem;
    }

    .book-card {
        max-width: 320px;
    }

    .book-details h3 {
        font-size: 1.5rem;
    }

    .description {
        -webkit-line-clamp: 3;
        font-size: 0.9rem;
    }

    .read-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .modal-content {
        margin: 20px;
        padding: 2rem;
    }

    .subscription-options {
        grid-template-columns: 1fr;
    }
}

/* Add success message styles */
.success-message {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border-radius: 20px;
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.success-message.show {
    transform: scale(1);
    opacity: 1;
}

.success-message i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.success-message p {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.success-message .subtitle {
    font-size: 0.9rem;
    color: var(--light-text);
}

/* Fix body scroll when modal is open */
body.modal-open {
    overflow: hidden;
    padding-right: 15px; /* Prevent layout shift when scrollbar disappears */
}

/* Dialog Styles */
.dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.dialog-content {
    background: white;
    max-width: 1000px;
    width: 90%;
    margin: 50px auto;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.dialog-content.show {
    transform: translateY(0);
    opacity: 1;
}

.close-dialog {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--light-text);
    transition: color 0.3s ease;
    z-index: 1;
}

.close-dialog:hover {
    color: #e74c3c;
}

.dialog-body {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    padding: 2rem;
}

.book-preview {
    position: relative;
    aspect-ratio: 2/3;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.book-info {
    padding: 1rem 0;
}

.preview-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.preview-author {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.preview-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.preview-rating {
    color: #FFD700;
    display: flex;
    gap: 0.2rem;
}

.preview-pages {
    color: var(--light-text);
}

.preview-categories {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.preview-description {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
}

.buy-btn, .rent-btn {
    padding: 1rem 2rem;
    border-radius: 25px;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.buy-btn {
    background: var(--gradient);
    color: white;
}

.rent-btn {
    background: white;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.buy-btn:hover, .rent-btn:hover {
    transform: scale(1.05);
}

/* Checkout Page Styles */
.checkout-page {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    z-index: 3000;
    overflow-y: auto;
}

.checkout-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.checkout-header {
    margin-bottom: 3rem;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.checkout-header h2 {
    font-family: 'Libre Baskerville', serif;
    font-size: 2rem;
    color: var(--primary-color);
}

.secure-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #E0E0E0;
    color: var(--light-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--secondary-color);
    color: white;
}

.step-text {
    font-size: 0.9rem;
    color: var(--light-text);
}

.step.active .step-text {
    color: var(--secondary-color);
    font-weight: 500;
}

.step-line {
    width: 100px;
    height: 2px;
    background: #E0E0E0;
    margin-top: -16px;
}

.checkout-body {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
}

.checkout-main {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.shipping-section, .payment-section {
    margin-bottom: 2rem;
}

.shipping-section h3, .payment-section h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 0.9rem;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.payment-methods {
    margin-bottom: 1.5rem;
}

.payment-method {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method.selected {
    border-color: var(--secondary-color);
    background: rgba(9, 132, 227, 0.05);
}

.payment-method img {
    height: 40px;
    object-fit: contain;
}

.payment-method i {
    margin-left: auto;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.payment-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem;
    background: #F8F9FA;
    border-radius: 12px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--light-text);
    font-size: 0.9rem;
}

.info-item i {
    color: var(--secondary-color);
}

.checkout-sidebar {
    position: sticky;
    top: 2rem;
}

.order-summary {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.book-preview-small {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #E0E0E0;
}

.preview-cover-small {
    width: 80px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.book-info-small h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.format {
    font-size: 0.9rem;
    color: var(--light-text);
}

.summary-details {
    margin-bottom: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.summary-item.total {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
    padding-top: 1rem;
    border-top: 1px solid #E0E0E0;
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
    margin-bottom: 1.5rem;
}

.checkout-btn:hover {
    transform: scale(1.02);
}

.secure-payment-info {
    text-align: center;
}

.ssl-badge {
    width: 100%;
    max-width: 300px;
    margin-bottom: 0.5rem;
}

.secure-payment-info p {
    font-size: 0.9rem;
    color: var(--light-text);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .checkout-body {
        grid-template-columns: 1fr;
    }

    .checkout-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .checkout-content {
        padding: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .payment-info {
        grid-template-columns: 1fr;
    }

    .step-line {
        width: 50px;
    }
}

/* Search Section Styles */
.search-section {
    padding: 2rem;
    background: white;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.search-container {
    max-width: 1400px;
    margin: 0 auto;
}

.search-bar {
    position: relative;
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

.search-bar i {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-text);
    font-size: 1.2rem;
}

.search-bar input {
    width: 100%;
    padding: 1.2rem 3rem;
    border: 2px solid #E0E0E0;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(9, 132, 227, 0.1);
}

.clear-search {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--light-text);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.clear-search:hover {
    color: var(--primary-color);
}

.filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.category-filter {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid #E0E0E0;
    border-radius: 25px;
    background: white;
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.filter-btn.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.sort-filter select {
    padding: 0.6rem 2rem 0.6rem 1rem;
    border: 2px solid #E0E0E0;
    border-radius: 25px;
    background: white;
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%232D3436' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    transition: all 0.3s ease;
}

.sort-filter select:focus {
    border-color: var(--secondary-color);
    outline: none;
}

/* Section Header Styles */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.view-options {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    background: white;
    color: var(--light-text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.view-btn.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

/* Load More Button */
.load-more {
    text-align: center;
    margin-top: 3rem;
}

.load-more-btn {
    padding: 1rem 2rem;
    border: 2px solid var(--secondary-color);
    border-radius: 25px;
    background: white;
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

/* List View Styles */
.books-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.books-grid.list-view .book-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    max-width: none;
    aspect-ratio: auto;
    height: auto;
}

.books-grid.list-view .book-cover {
    height: 300px;
}

.books-grid.list-view .book-overlay {
    position: relative;
    background: none;
    padding: 2rem;
    opacity: 1;
}

.books-grid.list-view .book-details {
    transform: none;
    text-align: left;
    color: var(--text-color);
}

.books-grid.list-view .book-meta {
    justify-content: flex-start;
}

.books-grid.list-view .categories {
    justify-content: flex-start;
}

.books-grid.list-view .description {
    color: var(--text-color);
    -webkit-line-clamp: 2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-section {
        padding: 1rem;
    }

    .search-bar input {
        padding: 1rem 2.5rem;
        font-size: 1rem;
    }

    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .category-filter {
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .filter-btn {
        white-space: nowrap;
    }

    .sort-filter select {
        width: 100%;
    }

    .books-grid.list-view .book-card {
        grid-template-columns: 1fr;
    }

    .books-grid.list-view .book-cover {
        height: 200px;
    }
}

.sections-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.books-section {
    width: 100%;
}

.books-section .section-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0984e3;
    display: inline-block;
}

.books-section .books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .sections-container {
        gap: 3rem;
    }

    .books-section .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .books-section .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
} 