/* General Styles */

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

body {
    background-color: #f8f1e4; /* Light beige background for the whole site */
}

header {
    position: absolute; /* Position the navigation inside the banner */
    top: 0;
    width: 100%;
    z-index: 10; /* Ensure the nav stays above the image */
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end; /* Aligns the links to the right */
    padding: 20px 30px;
    border-radius: 0 0 10px 10px; /* Rounded corners at the bottom */
}

nav ul li {
    margin: 0 20px; /* Adds spacing between the links */
}

nav ul li a {
    color: #1a1918; /* Darker beige/taupe color for text */
    text-decoration: none;
    font-family: "Roboto Mono", monospace;
    font-size: 20px;
    padding: 10px 20px; /* Increase padding for spacing inside borders */
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

nav ul li a:hover {
    background-color: #ffffff; /* Darker beige on hover */
    color: #000; /* Darker text color on hover */
    border-color: #000; /* Change border color on hover */
}

/* Banner Image */
.banner img {
    width: 100%;
    max-width: 1920px;
    height: 700px;
    object-fit: cover;
}

/* Best Sellers Section */
.best-sellers {
    padding: 50px;
    text-align: center;
    background-color: #ffffff; /* Matches the body background */
}

.best-sellers h2 {
    color: #666; /* Lighter shade */
    font-family: "Roboto Mono", monospace;
    font-weight: 100;
    letter-spacing: 1.7px;
    font-size: 2.5em;
    margin-bottom: 180px;
}

/* Book List */
.book-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px; /* Add some controlled spacing between items */
}

.book-item {
    text-align: center;
    /* Removed background, border, and box-shadow */
}

.book-item img {
    width: 250px;      /* Keep a fixed width for uniformity */
    height: auto;      /* Allow height to adjust naturally */
    object-fit: contain; /* Ensures the entire image is shown, might add blank space if aspect differs */
    margin-bottom: 15px;
}


.book-item p {
    font-size: 1.1em;
    color: #3b3a36;
    font-family: "Roboto Mono", monospace;
}


/* Products Page Specific Styles */

/* Header & Navigation for Products Page */
.products-header {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 10;
}

.products-nav-list {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    padding: 20px 30px;
    border-radius: 0 0 10px 10px; /* same style as homepage */
}

.products-nav-item {
    margin: 0 20px;
}

.products-nav-item a {
    color: #1a1918;
    text-decoration: none;
    font-family: "Roboto Mono", monospace;
    font-size: 20px;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.products-nav-item a:hover {
    background-color: #ffffff;
    color: #000;
    border-color: #000;
}

/* Banner for Products Page */
.products-banner img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Products Section */
.products-section {
    background-color: #ffffff;
    padding: 50px;
    text-align: center;
}

.products-heading {
    color: #666;
    font-family: "Roboto Mono", monospace;
    font-weight: 100;
    letter-spacing: 1.7px;
    font-size: 2em;
    margin-bottom: 80px;
}

.products-row {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 50px;
}

.products-item {
    text-align: center;
}

.products-item img {
    width: 250px; 
    height: auto;  
    margin-bottom: 15px;
    object-fit: contain;
}

.products-item p {
    font-size: 1.1em;
    color: #3b3a36;
    font-family: "Roboto Mono", monospace;
}


/* Contact Page Specific Styles */

.contact-header {
    width: 100%;
    background-color: transparent; 
    position: relative;
    top: 0;
    z-index: 10;
}

.contact-nav-list {
    list-style: none;
    display: flex;
    justify-content: flex-end; 
    padding: 20px 30px;
    border-radius: 0 0 10px 10px; 
}

.contact-nav-item {
    margin: 0 20px; 
}

.contact-nav-item a {
    color: #1a1918;
    text-decoration: none;
    font-family: "Roboto Mono", monospace;
    font-size: 20px;
    padding: 10px 20px; 
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.contact-nav-item a:hover {
    background-color: #ffffff; 
    color: #000; 
    border-color: #000; 
}

.contact-section {
    background-color: #ffffff;
    padding: 50px;
    text-align: center;
}

.contact-heading {
    color: #666;
    font-family: "Roboto Mono", monospace;
    font-weight: 100;
    letter-spacing: 1.7px;
    font-size: 2em;
    margin-bottom: 80px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left; 
    font-family: "Roboto Mono", monospace;
}

.contact-form-group {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
}

.contact-form-group label {
    margin-bottom: 10px;
    color: #3b3a36;
    font-size: 1em;
}

.contact-form-group input[type="email"],
.contact-form-group textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    font-family: "Roboto Mono", monospace;
    color: #3b3a36;
    background-color: #f8f1e4;
}

.contact-form-group input[type="email"]:disabled {
    background-color: #e0ddd6; 
    color: #555;
    cursor: not-allowed;
}

.contact-submit-btn {
    background-color: #1a1918;
    color: #ffffff;
    padding: 15px 30px;
    font-size: 1em;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-family: "Roboto Mono", monospace;
    transition: background-color 0.3s, color 0.3s;
}

.contact-submit-btn:hover {
    background-color: #ffffff;
    color: #000;
}

/* Newsletter Popup Styles */
.newsletter-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.newsletter-popup {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 300px;
    max-width: 80%;
    position: relative;
    text-align: center;
    font-family: "Roboto Mono", monospace;
}

.newsletter-popup h3 {
    margin-bottom: 15px;
    color: #1a1918;
}

.newsletter-popup p {
    margin-bottom: 20px;
    color: #3b3a36;
}

.newsletter-popup form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.newsletter-popup input[type="email"] {
    padding: 10px;
    margin-bottom: 15px;
    width: 100%;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-family: "Roboto Mono", monospace;
    color: #3b3a36;
}

.newsletter-popup button[type="submit"] {
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    background: #1a1918;
    color: #fff;
    cursor: pointer;
    font-family: "Roboto Mono", monospace;
    transition: background-color 0.3s, color 0.3s;
}

.newsletter-popup button[type="submit"]:hover {
    background-color: #fff;
    color: #000;
}

.close-btn {
    position: absolute;
    right: 15px;
    top: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 24px;
    cursor: pointer;
    color: #000;
}
