/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #1a1a1a;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

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

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
    z-index: 10000;
    backdrop-filter: blur(10px);
    display: none;
}

.cookie-popup.show {
    display: block;
}

.cookie-content p {
    margin-bottom: 15px;
    color: #cccccc;
    font-size: 14px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.cookie-btn.accept {
    background: #d4af37;
    color: #1a1a1a;
}

.cookie-btn.accept:hover {
    background: #f0c87a;
}

.cookie-btn.reject {
    background: transparent;
    color: #cccccc;
    border: 1px solid #555;
}

.cookie-btn.reject:hover {
    background: #333;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #333;
}

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

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: #d4af37;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo:hover {
    color: #f0c87a;
}

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

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    font-size: 14px;
}

.nav-menu a:hover {
    color: #d4af37;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: url('./images/books.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #d4af37;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: #cccccc;
}

.cta-button {
    display: inline-block;
    background: #d4af37;
    color: #1a1a1a;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background: #f0c87a;
    transform: translateY(-2px);
}

/* Categories Section */
.categories {
    padding: 100px 0;
    background: #222222;
}

.categories h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #d4af37;
}

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

.category-card {
    background: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.category-content {
    padding: 25px;
}

.category-content h3 {
    color: #d4af37;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.category-content p {
    color: #cccccc;
    font-size: 14px;
    line-height: 1.5;
}

/* New Releases Section */
.new-releases {
    padding: 100px 0;
    background: #1a1a1a;
}

.new-releases h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #d4af37;
}

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

.book-card {
    background: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid #333;
}

.book-card:hover {
    transform: translateY(-5px);
}

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

.book-content {
    padding: 20px;
}

.book-content h3 {
    color: #d4af37;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.book-content p {
    color: #cccccc;
    font-size: 13px;
    line-height: 1.5;
}

/* Bestsellers Section */
.bestsellers {
    padding: 100px 0;
    background: #222222;
}

.bestsellers h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #d4af37;
}

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

.bestseller-card {
    background: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid #333;
}

.bestseller-card:hover {
    transform: translateY(-5px);
}

.bestseller-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.bestseller-content {
    padding: 20px;
}

.bestseller-content h3 {
    color: #d4af37;
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.rating {
    color: #d4af37;
    margin-bottom: 10px;
    font-size: 14px;
}

.bestseller-content p {
    color: #cccccc;
    font-size: 13px;
    line-height: 1.5;
}

/* About Section */
.about {
    padding: 100px 0;
    background: #1a1a1a;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #d4af37;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #cccccc;
    line-height: 1.8;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background: #222222;
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #d4af37;
}

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

.testimonial-card {
    background: #2a2a2a;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #333;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-card blockquote {
    font-style: italic;
    color: #cccccc;
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.6;
}

.testimonial-card cite {
    color: #d4af37;
    font-size: 14px;
    font-weight: 600;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: #1a1a1a;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #d4af37;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #cccccc;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 5px;
    color: #ffffff;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4af37;
}

.submit-btn {
    background: #d4af37;
    color: #1a1a1a;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: #f0c87a;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: #111111;
    padding: 50px 0 20px;
    border-top: 1px solid #333;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    color: #d4af37;
    margin-bottom: 15px;
}

.footer-section p {
    color: #cccccc;
    margin-bottom: 8px;
    font-size: 14px;
}

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

.footer-section a:hover {
    color: #d4af37;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.footer-bottom p {
    color: #888888;
    font-size: 12px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(26, 26, 26, 0.98);
        flex-direction: column;
        justify-content: start;
        align-items: center;
        padding-top: 50px;
        transition: left 0.3s ease;
        backdrop-filter: blur(10px);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .nav-menu a {
        font-size: 18px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .categories h2,
    .new-releases h2,
    .bestsellers h2,
    .about h2,
    .testimonials h2,
    .contact h2 {
        font-size: 2rem;
    }

    .categories-grid,
    .books-grid,
    .bestseller-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .cookie-popup {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .cookie-buttons {
        justify-content: center;
    }

    .about-content p {
        font-size: 1rem;
    }
}

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

    .hero p {
        font-size: 1rem;
    }

    .nav {
        padding: 10px 15px;
    }

    .logo {
        font-size: 20px;
    }

    .container {
        padding: 0 15px;
    }

    .categories,
    .new-releases,
    .bestsellers,
    .about,
    .testimonials,
    .contact {
        padding: 60px 0;
    }

    .category-content,
    .book-content,
    .bestseller-content {
        padding: 15px;
    }

    .testimonial-card {
        padding: 20px;
    }
}