/* General Reset and Layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* Header Styles */
header {
    background-color: lightblue;
    padding: 15px 0;
    color: white;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}

header a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2em;
    margin-top: 15px;
    display: inline-block;
    border: 1px solid #fff;
    padding: 10px 20px;
    border-radius: 5px;
}

header a:hover {
    background-color: lightcoral;
    border-color: lightcoral;
}

.logo-img {
    height: 120px; 
    width: auto;
    margin-right: 15px; 
}
/* Navbar Styling */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    background-color: white; /* Dark background for contrast */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow to give depth */
}

/* Navbar Links List */
.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
}

.nav-links li {
    margin-left: 30px; /* More spacing between links */
}

.nav-links a {
    color: black; /* Light gray text for readability */
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem; /* Slightly larger text for visibility */
    transition: color 0.3s, transform 0.3s; /* Smooth transition for hover effects */
}

/* Hover Effects for Links */
.nav-links a:hover {
    color: black; /* Accent color on hover */
    transform: scale(1.1); /* Slight zoom effect */
}

/* Navbar Logo */
.logo img {
    width: 130px; /* Adjust logo and right image size */
    height: 120px;
}

/* Navbar Right (auth links or other items) */
.auth-links a {
    color: black;
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
    transition: color 0.3s;
}

.auth-links a:hover {
    color: black; /* Accent color on hover */
}


.auth-links a {
    margin-left: 15px;
    color: black;
    text-decoration: none;
}

/* General body and font styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

/* Header Styles */
header {
    background-color: lightblue;
    color: white;
    padding: 20px;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}

header a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2em;
    margin-top: 15px;
    display: inline-block;
    border: 1px solid #fff;
    padding: 10px 20px;
    border-radius: 5px;
}

header a:hover {
    background-color: lightcoral;
    border-color: lightcoral;
}

/* Navbar Logo */
.logo-img {
    height: 120px;
    width: auto;
    margin-right: 15px;
}

/* Auth Links */
.auth-links a {
    color: black;
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
    transition: color 0.3s;
}

.auth-links a:hover {
    color: #ff4081;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 50%;
    max-width: 400px;
}

/* Close Button Styling */
.close-btn {
    color: #aaa; /* Light gray color */
    font-size: 28px; /* Font size for the "×" */
    font-weight: bold;
    cursor: pointer; /* Shows pointer cursor when hovering */
    position: absolute;
    top: 10px; /* Position from the top */
    right: 10px; /* Position from the right */
}

.close-btn:hover,
.close-btn:focus {
    color: black; /* Changes color when hovered or focused */
    text-decoration: none;
}


/* Form Styling */
#login-form input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#login-form button {
    width: 100%;
    padding: 10px;
    background-color: lightcoral;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#login-form button:hover {
    background-color: #ff3366;
}

#login-message {
    color: red;
    margin-top: 10px;
}

/* Products Section */
#products {
    padding: 50px 20px;
    text-align: center;
}

#products h1 {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 40px;
}

/* Filter Buttons */
.filters {
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 20px;
    margin: 0 10px;
    background-color: lightcoral;
    color: white;
    border: none;
    cursor: pointer;
}

.filter-btn:hover {
    background-color: lightblue;
}

/* Product Grid */
.product-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.product-category {
    display: none;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Product List */
.product-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns, each with equal width */
    gap: 20px; /* Space between grid items */
    justify-items: center; /* Center items horizontally in each grid cell */
}

/* Product Item */
.product-item {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.product-item img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.product-item h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.product-item p {
    font-size: 16px;
    color: #555;
}

/* New Stationery Product Styles */
.product-item img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;  /* Optional: add border radius for better appearance */
}

.product-item h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 10px;
    text-align: center;
}

.product-item p {
    font-size: 16px;
    color: #555;
    text-align: center;
}

.product-category h2 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.product-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

/* Add any necessary styles for the mug section */
.product-item img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;  /* Optional: add border radius for better appearance */
}

.product-item h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 10px;
    text-align: center;
}

.product-item p {
    font-size: 16px;
    color: #555;
    text-align: center;
}

.product-category h2 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.product-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.product-description {
    text-align: left;
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.product-description h4,
.product-description h5 {
    font-size: 20px;
    margin-bottom: 10px;
}

.product-description p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

/* Rating Styles */
.rating {
    font-size: 18px;
    color: gold;
}

/* Reviews Link */
.reviews-link {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 18px;
    font-size: 16px;
    text-decoration: none;
    background-color: lightcoral;
    color: white;
    border-radius: 5px;
    text-align: left;
}

.reviews-link:hover {
    background-color: lightcoral;
}

/* Reviews Section */
.reviews {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
    background-color: lightcoral;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.reviews h2 {
    font-size: 2em;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

/* Review Item Styles */
.review-item {
    border-bottom: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 20px;
}

.review-item p {
    font-size: 1.1em;
    margin: 10px 0;
    color: #555;
}

.review-item span {
    font-style: italic;
    color: #777;
}

.review-item:last-child {
    border-bottom: none;
}

.review-item .reviewer-name {
    font-weight: bold;
    color: #333;
}

/* Style for the "More Details" button */
.more-details-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 18px;
    background-color: lightcoral;
    color: white;
    font-size: 16px;
    text-decoration: none;
    border-radius: 5px;
    text-align: right;
}

.more-details-btn:hover {
    background-color: lightcoral;
}

/* General reset for margins and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}


/* Product Section */
.product {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

#product-image {
    width: 80%;
    max-width: 400px;
    margin-bottom: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
}

#product-image:hover {
    transform: scale(1.05);
}

#product-name {
    font-size: 2rem;
    color: #333;
    margin: 10px 0;
}

#product-price {
    font-size: 1.5rem;
    color: #e74c3c;
    margin-bottom: 20px;
    display: block; /* Ensure it behaves as a block-level element */
    margin-left: auto; /* Center horizontally */
    margin-right: auto; /* Center horizontally */
    text-align: center; /* Center the text */
}


/* Size and Quantity Section */
.product-sizes, .quantity {
    display: inline-block;
    margin: 15px 0;
}

label {
    font-weight: bold;
    margin-right: 10px;
}

select, input[type="number"] {
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    width: 150px;
}

select:focus, input[type="number"]:focus {
    outline: none;
    border-color: #3498db;
}

/* Size and Quantity Section */
.product-sizes, .quantity {
    display: block; /* Stack them vertically */
    margin: 15px 0; /* Add vertical space between them */
}

label {
    font-weight: bold;
    margin-bottom: 8px; /* Space below the label */
    display: block; /* Make the label block to take full width */
}

select, input[type="number"] {
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    width: 150px;
}

select:focus, input[type="number"]:focus {
    outline: none;
    border-color: #3498db;
}


/* Add to Basket Button */
#add-to-basket-btn {
    background-color: lightcoral;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#add-to-basket-btn:hover {
    background-color: #ff3366;
}

/* Message Box */
.message-box {
    background-color: lightblue;
    color: #fff;
    padding: 15px;
    margin-top: 20px;
    border-radius: 5px;
    font-size: 1.1rem;
    display: none; /* Hidden by default, can be shown with JS */
}

/* Product Description */
.product-description {
    margin-top: 30px;
    text-align: left;
}

.product-description h4 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 15px;
}

.product-description p {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}

.product-description h5 {
    font-size: 1.2rem;
    color: #333;
    margin-top: 20px;
}

.product-description li {
    list-style-type: none;
    margin-left: 20px;
    font-size: 1rem;
    color: #555;
}

.product-description li::before {
    content: "• ";
    color: #3498db;
}

/* Back to Product Page Button */
.back-to-product-page {
    margin-top: 30px; /* Add some space above the button */
    text-align: center; /* Center the button */
}

.back-btn {
    padding: 12px 24px;
    font-size: 1.2rem;
    background-color: lightcoral;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.back-btn:hover {
    background-color: #ff3366; /* Darker shade of coral on hover */
}

.review-form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    max-width: 900px; /* Increased width */
    margin: 0 auto;
}

.review-form h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#submit-review-btn {
    background-color: lightcoral;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

#submit-review-btn:hover {
    background-color: #ff3366;
}

/* Styling for the Reviews Section */
.reviews-section {
    max-width: 1200px; /* Increased width */
    margin: 0 auto;
    text-align: center;
}

.reviews-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.review-item {
    background-color: #fff;
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.review-item .reviewer-name {
    font-weight: bold;
    font-size: 18px;
}

.review-item .review-rating {
    font-size: 18px;
    color: gold;
}

.review-item .review-message {
    font-size: 16px;
    color: #555;
    margin-top: 10px;
}


.back-to-product-page {
    margin-bottom: 30px; /* Adjust this value to create the desired space */
}


@keyframes slideIn {
    from {
        bottom: -50px;
    }
    to {
        bottom: 20px;
    }
}

@keyframes bounceIn {
    0% {
        transform: translateX(-50%) scale(0.8);
    }
    50% {
        transform: translateX(-50%) scale(1.05);
    }
    100% {
        transform: translateX(-50%) scale(1);
    }
}

/* Message Box */
.message-box {
    background-color: lightblue;
    color: #fff;
    padding: 15px;
    margin-top: 20px;
    border-radius: 5px;
    font-size: 1.1rem;
    display: none; /* Hidden by default, can be shown with JS */
}

/* Remove underline from all links */
a {
    text-decoration: none;
}


/* Special Tags for Vegan and Gluten-Free */
.vegan, .gluten-free {
    font-weight: bold;
    color: #27ae60;
}

.vegan {
    background-color: #e74c3c;
    padding: 2px 10px;
    border-radius: 5px;
    color: white;
}

.gluten-free {
    background-color: #3498db;
    padding: 2px 10px;
    border-radius: 5px;
    color: white;
}



/* Footer Styles */
footer {
    background-color: lightblue;
    color: white;
    padding: 10px 0; /* Reduced padding */
    text-align: center;
}

.social-links a {
    color: white;
    margin: 0 10px; /* Reduced margin between links */
    text-decoration: none;
    font-size: 16px;
}

footer p {
    font-size: 14px; /* Optional: Reduces the font size of any text inside the footer */
}



/* Responsive Design */
@media screen and (max-width: 768px) {
    
    /* Logo adjustments */
    .navbar .logo {
        margin-top: 10px; /* Add small top margin for better spacing */
        margin-bottom: 0; /* Remove space below logo */
        text-align: center; /* Center the logo */
        padding-left: 15px; /* Add space to the left of the logo */
        padding-right: 15px; /* Add space to the right of the logo */
    }

    /* Navbar layout */
    .navbar {
        display: flex;
        flex-direction: column;  /* Stack elements vertically */
        justify-content: flex-start;  /* Align items at the top */
        align-items: left; /* Center items horizontally */
        min-height: 150px; /* Increase height for better spacing */
        padding: 2px 6px;  /* Add padding around navbar for even spacing on all sides */
        overflow-x: hidden; /* Prevent horizontal scrolling */
    }

    /* Links section layout */
    .navbar .nav-links,
    .auth-links {
        display: flex;
        flex-wrap: wrap; /* Allow items to wrap if necessary */
        justify-content: center; /* Center links horizontally */
        gap: 8px; /* Space between items */
        margin: 0; /* Remove any default margin */
        width: 100%; /* Ensure the links section takes up full width */
    }

    /* Style for individual links */
    .nav-links a,
    .auth-links a {
        font-size: 12px;  /* Smaller font size */
        padding: 2px 6px; /* Adjust padding for spacing */
        white-space: nowrap;  /* Prevent text wrapping */
        margin: 0 5px;  /* Small margin between links */
    }

    /* Auth links section */
    .auth-links {
        margin-top: 10px; /* Small gap between nav links and auth links */
    }

    /* Ensure nav links span the full width */
    .nav-links {
        text-align: center; /* Center text inside nav-links */
    }
}

/* Responsive Design for iPad */
@media screen and (min-width: 768px) and (max-width: 1024px) {

    /* Logo adjustments */
    .navbar .logo {
        margin-top: 10px; /* Add small top margin for better spacing */
        margin-bottom: 0; /* Remove space below logo */
        text-align: center; /* Center the logo */
        padding-left: 15px; /* Add space to the left of the logo */
        padding-right: 15px; /* Add space to the right of the logo */
        width: 100%; /* Ensure the logo takes up full width */
    }

    /* Navbar layout */
    .navbar {
        display: flex;
        flex-direction: ro;  /* Keep elements in a horizontal line */
        justify-content: space-between;  /* Space out elements with equal margins */
        align-items: center; /* Vertically align items */
        min-height: 100px; /* Ensure enough space for the navbar */
        padding: 10px 20px;  /* Add padding to the left and right of the navbar */
        overflow-x: hidden; /* Prevent horizontal scrolling */
        width: 100%; /* Ensure navbar takes up full width */
    }

    /* Links section layout */
    .navbar .nav-links,
    .auth-links {
        display: flex;
        flex-wrap: nowrap; /* Prevent wrapping of links */
        justify-content: flex-start; /* Align items to the left */
        gap: 15px; /* Increase space between items */
        margin: 0; /* Remove any default margin */
        width: auto; /* Let links take their natural width */
        flex-grow: 1; /* Allow links section to grow and take available space */
    }

    /* Style for individual links */
    .nav-links a,
    .auth-links a {
        font-size: 14px;  /* Slightly larger font size for readability */
        padding: 5px 10px; /* Adjust padding for better spacing */
        white-space: nowrap;  /* Prevent text wrapping */
        margin: 0;  /* Remove additional margins */
        text-align: center; /* Ensure links are centered */
    }

    /* Auth links section */
    .auth-links {
        margin-left: 20px; /* Add space between nav and auth links */
    }

    /* Ensure nav links stay aligned */
    .nav-links {
        text-align: left; /* Align links to the left */
        width: auto; /* Allow nav links to adjust their width */
    }
}

/* Responsive Design for iPad Mini (portrait/landscape, min-width: 768px and max-width: 1024px) */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    
    /* Logo adjustments */
    .navbar .logo {
        margin-top: 10px;
        margin-bottom: 0;
        text-align: center;
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;  /* Ensure logo takes up full width */
    }

    /* Navbar layout */
    .navbar {
        display: flex;
        flex-direction: column;  /* Stack elements vertically */
        justify-content: space-between;
        align-items: center;
        min-height: 100px;  /* Ensure enough height for the navbar */
        padding: 5px 10px;
        overflow-x: hidden;
        width: 100%;
    }

    /* Links section layout */
    .navbar .nav-links,
    .auth-links {
        display: flex;
        flex-wrap: nowrap;  /* Prevent wrapping of links */
        justify-content: flex-start;  /* Align items to the left */
        gap: 15px;  /* Increase space between items */
        margin: 0;
        width: auto;
        flex-grow: 1;  /* Allow links section to grow */
    }

    /* Style for individual links */
    .nav-links a,
    .auth-links a {
        font-size: 16px;  /* Slightly larger font size for readability */
        padding: 8px 12px;
        white-space: nowrap;
        margin: 0;
        text-align: center;  /* Ensure links are centered */
    }

    /* Auth links section */
    .auth-links {
        margin-left: 10px;  /* Space between nav and auth links */
    }

    /* Ensure nav links stay aligned */
    .nav-links {
        text-align: left;  /* Align links to the left */
        width: auto;
    }
}

/* Responsive Design for iPad */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .product-list {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
    }
}

/* Responsive Design for Phone */
@media screen and (max-width: 768px) {
    .product-list {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for phones */
    }
}

/* Media Query for iPhone and iPad */
@media (max-width: 200px) {
    .login-box {
        width: 20%;
    }

    .textbox input {
        font-size: 16px;
    }

    .submit-button button {
        font-size: 16px;
    }
}
