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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #333;
    color: white;
    padding: 15px 0;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner:not(.hidden) {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-btn {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.cookie-btn:hover {
    background: #357abd;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand .brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #333;
}

.logo {
    width: 40px;
    height: 40px;
}

.brand-text {
    font-size: 24px;
    font-weight: 700;
    color: #4a90e2;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #4a90e2;
    border-bottom-color: #4a90e2;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e3f2fd 100%);
    padding: 80px 0;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #1a202c;
}

.hero-text p {
    font-size: 18px;
    color: #4a5568;
    margin-bottom: 30px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-image {
    text-align: center;
}

.hero-bg {
    width: 100%;
    max-width: 400px;
    height: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: #4a90e2;
    color: white;
}

.btn-primary:hover {
    background: #357abd;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #4a90e2;
    border-color: #4a90e2;
}

.btn-secondary:hover {
    background: #4a90e2;
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #333;
    border-color: #ddd;
}

.btn-outline:hover {
    background: #333;
    color: white;
    border-color: #333;
}

/* Sections */
.featured-books,
.categories-preview {
    padding: 80px 0;
}

.featured-books h2,
.categories-preview h2 {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: #1a202c;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #4a5568;
    margin-bottom: 50px;
}

.section-actions {
    text-align: center;
    margin-top: 40px;
}

/* Books Grid */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.book-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.book-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f8f9fa;
}

.book-content {
    padding: 24px;
}

.book-category {
    display: inline-block;
    background: #e3f2fd;
    color: #1565c0;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.book-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a202c;
    line-height: 1.3;
}

.book-author {
    color: #4a5568;
    font-size: 14px;
    margin-bottom: 12px;
}

.book-description {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.book-actions {
    display: flex;
    gap: 12px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
    flex: 1;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.category-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.category-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a202c;
}

.category-card p {
    color: #4a5568;
    margin-bottom: 20px;
    line-height: 1.6;
}

.category-link {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

.category-link:hover {
    text-decoration: underline;
}

/* Search and Filter */
.search-filter {
    background: #f8f9fa;
    padding: 30px 0;
    border-bottom: 1px solid #e9ecef;
}

.filter-controls {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.search-input,
.filter-select {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    background: white;
}

.search-input {
    flex: 1;
    min-width: 250px;
}

.filter-select {
    min-width: 150px;
}

.search-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* Book Detail */
.book-detail {
    padding: 60px 0;
}

.book-detail-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.book-detail-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.book-detail-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    background: #f8f9fa;
}

.book-detail-info h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a202c;
}

.book-detail-meta {
    margin-bottom: 24px;
}

.book-detail-meta p {
    margin-bottom: 8px;
    color: #4a5568;
}

.book-detail-description {
    font-size: 18px;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 30px;
}

.book-detail-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.book-detail-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.book-detail-main h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a202c;
}

.book-detail-main h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 24px 0 12px 0;
    color: #1a202c;
}

.book-detail-main p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 16px;
}

.book-detail-main ul {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 24px;
    padding-left: 20px;
}

.book-detail-main li {
    margin-bottom: 8px;
}

.book-detail-sidebar {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    height: fit-content;
}

.disclaimer-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.disclaimer-box p {
    color: #856404;
    font-size: 14px;
    margin: 0;
}

/* Footer */
.footer {
    background: #1a202c;
    color: white;
    padding: 50px 0 20px 0;
    margin-top: 80px;
}

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

.footer-section h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.footer-section p {
    color: #a0aec0;
    line-height: 1.6;
}

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

.footer-section ul li {
    margin-bottom: 8px;
}

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

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 20px;
    border-top: 1px solid #2d3748;
    text-align: center;
    color: #a0aec0;
}

/* Form Styles */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a202c;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* Page Content */
.page-content {
    padding: 60px 0;
}

.page-content h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1a202c;
}

.page-content h2 {
    font-size: 28px;
    font-weight: 600;
    margin: 32px 0 16px 0;
    color: #1a202c;
}

.page-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 24px 0 12px 0;
    color: #1a202c;
}

.page-content p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 16px;
}

.page-content ul,
.page-content ol {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 16px;
    padding-left: 24px;
}

.page-content li {
    margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .books-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

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

    .search-input {
        min-width: unset;
    }

    .book-detail-header {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .book-detail-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .book-detail-body {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .container,
    .hero-content,
    .book-detail-content {
        padding: 0 16px;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .book-actions {
        flex-direction: column;
    }

    .book-detail-links {
        flex-direction: column;
    }

    .contact-form {
        padding: 24px;
    }
}

.hidden {
    display: none;
}