/* --- Base Styles --- */
body {
    background-color: #ffffff;
    margin: 0;
    font-family: 'Inter', sans-serif;
    padding-top: 80px; /* Increased top padding to accommodate the fixed header */
}

a {
    text-decoration: none;
    color: inherit;
}

i {
    color: #ffffff;
    font-size: 20px;
}

/* Adjusted Header */
header {
    display: flex;
    justify-content: center;  /* Center the content horizontally */
    align-items: center;
    padding: 15px 20px;
    background-color: #fff;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}

/* Adjusted Header Form */
header form {
    display: flex;
    align-items: center;
    flex-grow: 2;
    width: 90%;  /* Make the form cover the entire width */
    border: 1px solid #ccc;
    background-color: #f4f4f4;  /* Background color for the entire form */
    overflow: hidden;  /* Ensures inner elements don't spill out */
    border-radius: 4px;  /* Optional: Rounded corners for the search box */
    margin-right: 40px;  /* Center the form horizontally */
}


header input[type="text"] {
    flex: 1;
    border: none;
    padding: 12px 15px; /* Adjusted padding for balanced spacing */
    font-size: 1em;
    outline: none;
    margin: 10px;
}

header form i.fas.fa-search {
    padding: 10px;
    cursor: pointer;
    background-color: #f4f4f4; /* Added background for contrast */
}

.user-cart-icons {
    display: flex;
    gap: 15px;
    align-items: center;
    margin: 20px 10px;  /* Adjusted the right margin to 10px */
}


/* --- Quick Links --- */
.quick-links {
    display: flex;
    justify-content: center;
    gap: 20px; /* Increased gap for spacing */
    background-color: #f4f4f4;
    padding: 15px 0; /* Increased padding for balance */
    margin-top: 20px; /* Space between header and quick links */
}

.quick-links li {
    list-style: none;
}

/* --- Banner Styles --- */
.banner {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.banner img {
    max-width: 100%;
    height: auto;
}

/* --- Product Grid --- */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 20px 0; /* Space between banner and product grid */
}

.product-card {
    background-color: #fff;
    padding: 15px;
    border: 1px solid #e0e0e0;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

.product-card img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    margin-bottom: 10px;
}

.product-card p {
    font-weight: bold;
}

.product-card a {
    color: #3196E7;
}

/* --- Account Creation Styles --- */
.account-form {
    background-color: #FFF;
    max-width: 400px;
    margin: 40px auto;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.account-form h2 {
    text-align: center;
    margin-bottom: 20px;
}

.account-form input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.account-form button {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #3196E7;
    color: #FFF;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.account-form button:hover {
    background-color: #277db2;
}

/* --- Shared Header Styles --- */
header .logo a {
    font-size: 24px;
    font-weight: bold;
    color: #3196E7;
    margin-right: 20px;
}

header .user-cart-icons {
    display: flex;
    gap: 15px;
}

header .user-cart-icons a {
    color: #525252;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

header .user-cart-icons a:hover {
    color: #3196E7;
}

/* --- Product Details Page Styles --- */
.product-details {
    justify-content: space-between;
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.product-card {
    background-color: #fff;
    padding: 15px;
    border: 1px solid #e0e0e0;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

.product-card img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    margin-bottom: 10px;
}

.product-card p {
    font-weight: bold;
}

.product-card a {
    color: #3196E7;
}

.product-details button {
    padding: 10px 20px;
    background-color: #3196E7;
    color: #FFF;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.product-details button:hover {
    background-color: #277db2;
}

.product-details img {
    max-width: 50%;
    height: auto;
    display: block;
    margin: 0 auto; /* centers the image horizontally */
}
.cart-item {
    background-color: #fff;
    padding: 15px;
    border: 1px solid #e0e0e0;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    display:flex; 
    align-items: center; 
    margin-bottom: 15px; 
}

.cart-item img {
    width: 50px;
    height: 50px;
    margin-right: 20px;
}

.cart-item h3 {
    flex-grow: 2;
}

.totalCost {
    display: flex;
    justify-content: space-between;
    background-color: #fff;
    padding: 15px;
    border: 1px solid #e0e0e0;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.cartOptions {
    display: flex;
    justify-content: space-between;
    background-color: #fff;
    padding: 15px;
    border: 1px solid #e0e0e0;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.cartOptions button {
    background-color: #3196E7;
    color: #FFF;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cartOptions button:hover {
    background-color: #277db2;
}
.myClass {
    color: red;
    background-color: #f5f5f5;
}


/* Button Styles */
.add-to-cart-btn {
    /* Your button styling here */
    background-color: #3196E7;
    color: #ffffff;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;

}