/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to right, #f9d423, #ff4e50);
    transition: background 0.4s, color 0.4s;
}

/* Header */
header {
    background-color: #4cc428;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
body {
    margin: 0;
    font-family: 'Oswald', sans-serif;
    background-color: #f4f6fa;
    color: #222;
    transition: background-color 0.4s ease, color 0.4s ease;
    line-height: 2.6;
}
header h1 {
    font-size: 40px;
    font-weight: 30000;
    margin-bottom: 8px;
    color: #0c0c0c;
    line-height: 1.2;
    text-align: center;
}
header h3 {
    font-size: 20px;
    font-weight: 3000;
    color: #0c0c0c;
    text-align: center;
     line-height: 2.2;
    margin-bottom: -20px;
}
nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

#searchInput {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#modeToggle {
    padding: 8px 12px;
    background-color: #ff4e50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#modeToggle:hover {
    background-color: #f5323c;
}

/* Product Grid */
.products {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* Product Card */
.product {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.product img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

/* Buttons */
.product button {
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #ff4e50;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.product button:hover {
    background-color: #f5323c;
}

.buy-now {
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    width: 100%;
    transition: background-color 0.3s;
}

.buy-now:hover {
    background-color: #45a049;
}

Footer
footer {
    background-color: #fff;
    text-align: center;
    padding: 10px;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .products {
        grid-template-columns: 1fr;
    }

    nav {
        flex-direction: column;
        gap: 8px;
    }
}

/* Dark Mode */
body.dark {
    background: #222;
    color: #eee;
}

body.dark header,
body.dark footer {
    background-color: #333;
    color: #eee;
}

body.dark .product {
    background: #444;
}

body.dark nav a,
body.dark #modeToggle {
    color: white;
}

body.dark nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.product {
  flex: 1 1 250px;
  max-width: 300px;
  margin: 10px;
}



/* shopping Button */
.other-product {
    padding: 8px 12px;
    background-color: #2196F3;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    width: 100%;
    transition: background-color 0.3s, transform 0.3s;
}

.other-product:hover {
    background-color: #1976D2;
    transform: translateY(-3px);
}


/* footer design */

.footer {
  background-color: #1f2937; /* dark gray */
  color: #ffffff;
  padding: 30px 20px;
  text-align: center;
  font-family: Arial, sans-serif;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.footer-links li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
}

.footer-links li a:hover {
  color: #facc15; /* yellow hover */
}

.footer-links i {
  margin-right: 6px;
}

.footer-copy {
  font-size: 15px;
  color: #d1d5db; /* light gray */
}
