/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f4f4f4;
    color: #333;
}

/* Header */
header {
    background-color: #232f3e;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header h1 {
    font-size: 24px;
    font-weight: 600;
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    transition: 0.3s ease-in-out;
}

nav ul li a:hover {
    background-color: #f90;
    border-radius: 5px;
}

/* Search Box */
.search-box {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-box input {
    padding: 8px;
    width: 200px;
    border-radius: 5px;
    border: 1px solid #ddd;
    outline: none;
}

.search-box button {
    background-color: #f90;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.search-box button:hover {
    background-color: #ff7700;
}

/* Main Section */
main {
    padding: 20px;
}

.products {
    text-align: center;
}

.products h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #232f3e;
}

/* Product List */
#product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
}

/* Product Card */
.product {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.product:hover {
    transform: translateY(-5px);
}

.product img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.product h3 {
    font-size: 18px;
    margin: 10px 0;
}

.product p {
    font-size: 16px;
    color: #555;
}

.product a {
    display: inline-block;
    margin-top: 10px;
    background-color: #f90;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.3s;
}

.product a:hover {
    background-color: #ff7700;
}

/* Footer */
footer {
    background-color: #232f3e;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 20px;
}
