/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Roboto:wght@400;700&display=swap');

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2); /* Soft gradient */
    color: #333;
    background-attachment: fixed; /* Makes the background stay fixed while scrolling */
}




header {
    background: linear-gradient(90deg, #011a35, #044b9c);
    color: white;
    padding: 20px 0;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: top 0.3s ease-in-out;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

nav {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    text-decoration: underline;
}

main {
    padding: 20px;
    margin-bottom: 100px;
}

footer {
    background-color: #011a35;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    bottom: 0;
    font-family: 'Open Sans', sans-serif;
}

/* Product Detail Section */
.product-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.product-detail img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.product-info {
    flex: 1;
}

.product-info h2 {
    margin-top: 0;
}

.product-info ul {
    list-style-type: disc;
    padding-left: 20px;
}

.product-info ul li {
    margin-bottom: 10px;
}

.product-info p {
    margin: 10px 0;
}

/* Button Container */
.button-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.button-container button {
    padding: 10px;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.button-container .add-to-cart {
    background-color: #28a745;
}

.button-container .buy-now {
    background-color: #044b9c;
}

.button-container button:hover {
    opacity: 0.9;
}

/* Cart Item Buttons */
.cart-item button {
    padding: 8px;
    background-color: #dc3545;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

.cart-item button:hover {
    background-color: #c82333;
}

/* Additional Styles */
.filters-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.filters {
    flex: 1;
    margin-right: 20px;
}

.filters:last-child {
    margin-right: 0;
}

.filters h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    margin-bottom: 10px;
}

.filters label {
    display: block;
    margin-bottom: 10px;
    font-family: 'Open Sans', sans-serif;
}

.filters input[type="checkbox"] {
    margin-right: 10px;
}

.search-container {
    margin: 20px 0;
    text-align: center;
}

#search-bar {
    width: 60%;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 4px;
}

/* Product Grid */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.product {
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    flex: 1 1 calc(25% - 20px);
    box-sizing: border-box;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.product img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.product h3, .product p {
    margin: 10px 0;
    font-weight: 400;
}

.product button {
    padding: 10px;
    background-color: #28a745;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

.product button:hover {
    background-color: #218838;
}

/* Cart Items */
.cart-items .cart-item img {
    width: 50px;
    height: auto;
    border-radius: 5px;
    margin-right: 15px;
}

.cart-items .cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

/* Form Section for Login, Register, and Contact Us */
form {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Base styles for form input and textarea */
form input, form textarea {
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
}

/* Button styles */
form button {
    padding: 12px;
    background-color: #011a35;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

form button:hover {
    background-color: #0056b3;
}

/* Media Queries */

/* Small devices (600px and below) */
@media (max-width: 600px) {
    header h1 {
        font-size: 1.5em;
    }

    nav {
        flex-wrap: wrap;
    }

    nav a {
        font-size: 14px;
        padding: 8px 12px;
    }

    .product-grid .product {
        flex: 1 1 calc(50% - 20px);
    }

    .product-detail {
        flex-direction: column;
        align-items: center;
    }

    .button-container {
        flex-direction: column;
        gap: 10px;
    }

    #search-bar, form input, form textarea {
        width: 100%;
    }

    form button {
        width: 100%;
    }
}

/* Medium devices (601px to 1024px) */
@media (min-width: 601px) and (max-width: 1024px) {
    .product-detail {
        flex-direction: column;
    }

    form input, form textarea {
        width: 80%;
    }

    form button {
        width: 80%;
    }
}
/* Style for "Register here" link */
#registerLink {
    color: #044b9c;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

#registerLink:hover {
    color: #011a35;
    text-decoration: underline;
}

/* "OR" separator styling */
.or {
    position: relative;
    display: inline-block;
    width: 100%;
    margin: 20px 0;
    text-align: center;
    font-family: 'Roboto', sans-serif;
}

.or h3 {
    display: inline-block;
    background-color: #f4f4f4;
    padding: 0 10px;
    position: relative;
    font-size: 1.2em;
    font-weight: 400;
    color: #666;
}

.or::before, .or::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background-color: #ccc;
}

.or::before {
    left: 0;
}

.or::after {
    right: 0;
}

/* Button styling for social login */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 12px 20px;
    border-radius: 30px;
    border: none;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Google Button */
.google-btn {
    background-color: white;
    color: #000;
    border: 1px solid #ddd;
}

.google-btn img {
    margin-right: 10px;
}

.google-btn:hover {
    background-color: #575757;
    box-shadow: 0 6px 12px rgba(250, 249, 249, 0.15);
}

/* Microsoft Button */
.microsoft-btn {
    background-color: #f3f3f3;
    color: #000;
    border: 1px solid #ccc;
}

.microsoft-btn img {
    margin-right: 10px;
}

.microsoft-btn:hover {
    background-color: #575757;
    box-shadow: 0 6px 12px rgba(250, 249, 249, 0.15);
}

/* Apple Button */
.apple-btn {
    background-color: #fcfbfb;
    color: rgb(12, 12, 12);
}

.apple-btn img {
    margin-right: 10px;
}

.apple-btn:hover {
    background-color: #575757;
    box-shadow: 0 6px 12px rgba(250, 249, 249, 0.15);
}

/* Center alignment for the buttons */
.text-center {
    text-align: center;
}

/* Ensure proper spacing between buttons */
.text-center > div {
    margin-top: 20px;
}

/* Responsive design for smaller screens */
@media (max-width: 600px) {
    .btn {
        max-width: 100%;
        width: auto;
    }
}

