* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.logo img {
    width: 80px;
    height: 80px;
    margin-right: 10px;
    border-top-left-radius: 40%;
}

.top-bar p {
    text-align: center;
    word-spacing: 20px;
}

/* ✅ Make Products Display Horizontally */
.products {
    display: flex;
    flex-wrap: wrap;
    /* Allows wrapping for multiple rows */
    justify-content: center;
    /* Centers the products */
    gap: 20px;
    /* Adds spacing between products */
    padding: 2rem;
}

/* ✅ Improved Product Card Styling */
.product-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    width: 250px;
    /* Set fixed width */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.product-card img {
    width: 100%;
    height: 180px;
    /* Keep images consistent */
    /* object-fit: cover; */
    border-radius: 5px;
}

/* ✅ Align Text and Buttons */
.product-card h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.product-card p {
    font-size: 1rem;
    color: #555;
}

.product-card button {
    background-color: #004d40;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 5px;
}

/* ✅ Responsive Design */
@media (max-width: 768px) {
    .products {
        flex-direction: row;
        /* Ensure products stay in a row */
        flex-wrap: wrap;
        /* Wrap on smaller screens */
    }

    .product-card {
        width: 45%;
        /* Make them take half the width on smaller screens */
    }
}

/* Smooth scaling for product images */
.product-card img {
    transition: transform 0.3s ease-in-out;
}

.product-card img:hover {
    transform: scale(1.1);
}

/* Button hover effect */
button {
    transition: background 0.3s ease, transform 0.2s;
}

button:hover {
    transform: translateY(-2px);
    background-color: #00796b;
}

/* Fade-in animation for product cards */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.5s ease-in-out;
}

/* Fade-in animation for cart */
.cart-container {
    animation: fadeIn 0.5s ease-in-out;
}

/* Stylish toast notifications */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #004d40;
    color: white;
    padding: 15px;
    border-radius: 5px;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.search-bar {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 10px 0;
}

#searchBar {
    padding: 10px;
    width: 250px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.search-bar button {
    padding: 10px;
    background: #ff6600;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.top-bar {
    background-color: #004d40;
    color: #fff;
    text-align: center;
    padding: 0.5rem;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    flex-wrap: wrap;
}

.navbar {
    display: flex;
    justify-content: center;
    background-color: #f1f1f1;
    padding: 1rem;
    list-style: none;
}

.navbar li {
    margin: 0 1rem;
}

.navbar a {
    text-decoration: none;
    color: #333;
}

.hero {
    position: relative;
    width: 100%;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero button {
    position: relative;
    top: 29%;
    left: -38%;
    height: 24%;
    width: 14%;
    color: white;
    background-color: rgb(0, 0, 0);
    padding: 10px 20px;
    border-radius: 15px;
    font-size: 1.5rem;
}

.filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1rem;
}

/* ✅ User Page Styling */
.user-container {
    width: 90%;
    max-width: 800px;
    margin: 20px auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ✅ User Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #004d40;
    color: white;
}

tr:hover {
    background-color: #f1f1f1;
}

/* ✅ Back Button */
.back-btn {
    display: inline-block;
    padding: 8px 15px;
    margin: 10px;
    background-color: #ff6600;
    color: white;
    border-radius: 5px;
    text-decoration: none;
}

.back-btn:hover {
    background-color: #cc5500;
}


/* Footer Styles */
footer {
    text-align: center;
    background-color: #222;
    color: white;
    padding: 15px;
    margin-top: 30px;
}

footer a {
    color: #f8f9fa;
    text-decoration: none;
    margin: 0 10px;
    font-size: 14px;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #007bff; /* Blue on hover */
    text-decoration: underline;
}

footer p {
    margin-top: 10px;
    font-size: 14px;
    color: #bbb;
}


/* ✅ Mobile Optimizations */
@media (max-width: 768px) {

    .main-header,
    .navbar,
    .filters {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .search-bar {
        width: 90%;
    }

    .hero img {
        height: 200px;
    }

    .product-card {
        flex-direction: column;
        /* Ensure vertical stacking on small screens */
        text-align: center;
    }

    .product-card img {
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .logo img {
        width: 50px;
        height: 50px;
    }

    .hero button {
        font-size: 1rem;
        padding: 8px;
    }

    .products {
        grid-template-columns: 1fr;
    }
}

/* Policy Page Styles */
.policy-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

header h1 {
    text-align: center;
    color: #007bff;
    font-size: 28px;
    margin-bottom: 20px;
}

main p,
main ul {
    font-size: 16px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 15px;
}

main ul {
    padding-left: 20px;
    list-style-type: disc;
}

footer {
    text-align: center;
    margin-top: 30px;
    padding: 15px;
    background-color: #222;
    color: white;
}

footer p {
    margin: 0;
    font-size: 14px;
}