/* 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;
}

/* 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 */
}

/* 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 */
}
