:root {
  --primary: #2ecc71;
  --secondary: #3498db;
  --accent: #e74c3c;
  --dark: #1a1a2e;
  --darker: #16213e;
  --light: #f1f1f1;
  --ethio-green: #078C3F;
  --ethio-yellow: #FCDD09;
  --ethio-red: #DA121A;
  --ethio-black: #474242;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #f9fafb;
  color: #111;
}

a {
  text-decoration: none;
  color: inherit;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  padding: 0.75rem 1.5rem;
  gap: 3.5rem;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.logo-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
}

.nav-links {
  display: flex;
  gap: 3.5rem;
  align-items: center;
}

.navbar a {
  color: var(--dark);
  padding: 0.5rem 0.75rem;
  transition: background 0.2s;
}

.navbar a:hover {
  background: var(--primary);
  border-radius: 3px;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  color: #111;
  border-radius: 3px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  min-width: 200px;
  padding: 0.25rem 0;
  z-index: 100;
}

.dropdown-content a {
  padding: 0.6rem 1rem;
  color: #111;
  white-space: nowrap;
}

.dropdown-content a:hover {
  background: #f1f5f9;
}

.dropdown:hover > .dropdown-content {
  display: flex;
}

.nested-dropdown {
  position: relative;
}

.nested-dropdown-content {
  position: absolute;
  top: 0;
  left: 100%;
  background: white;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  min-width: 220px;
  padding: 0.25rem 0;
  z-index: 200;
}

.nested-dropdown-content a {
  padding: 0.6rem 1rem;
  white-space: nowrap;
}

.nested-dropdown-content a:hover {
  background: #f1f5f9;
}

.nested-dropdown:hover > .nested-dropdown-content {
  display: flex;
}

.main {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
  padding: 3rem 1rem;
  background: var(--light);
}

form {
  background: #fff;
  padding: 2.5rem 2rem;
  border-radius: 1rem;
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  max-width: 450px;
  width: 100%;
  margin: 0 auto 3rem auto;
}

form h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--ethio-green);
  font-family: 'Orbitron', sans-serif;
}

form label {
  display: block;
  margin: 0.75rem 0 0.25rem;
  font-weight: 600;
  color: var(--dark);
}

form input,
form select {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #ddd;
  border-radius: 0.5rem;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

form input:focus,
form select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(46, 204, 113, 0.3);
  outline: none;
}

form button {
  width: 100%;
  padding: 0.9rem;
  background-color: var(--primary);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
}

form button:hover {
  background-color: var(--ethio-green);
}

.product-section {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  gap: 20px;
}

.product-image {
  flex: 1;
}

.product-image img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.product-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 50px;
}

.product-details h1 {
  font-size: 2rem;
  margin: 0;
  color: var(--dark);
}

.product-details p {
  font-size: 16px;
  color: #333;
  line-height: 1.5;
}

.product-details button {
  margin: 5px 0;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background-color: var(--primary);
  color: white;
  cursor: pointer;
  transition: background-color 0.3s;
}

.product-details button:hover {
  background-color: var(--ethio-green);
}

.cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  margin-top: 30px;
  width: 100%;
}

.card {
  background-color: var(--light);
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 330px;
  overflow: hidden;
  text-align: center;
  gap: 10px;
  padding: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

.card h3 {
  margin: 10px 0 5px 0;
  color: var(--dark);
}

.card p {
  margin: 0 10px 10px 10px;
  font-size: 14px;
  color: #333;
}

.card button {
  margin-bottom: 10px;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background-color: var(--primary);
  color: white;
  cursor: pointer;
  transition: background-color 0.3s;
}

.card button:hover {
  background-color: var(--ethio-green);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

@media(max-width: 900px) {
  .product-section {
    flex-direction: column;
    align-items: center;
  }
  .cards-container {
    justify-content: center;
  }
}
