body {
  font-family: "Roboto", sans-serif;
  color: #292929;
  background-color: #ffffff;
}

section {
  margin: 0 auto;
}

button {
  cursor: pointer;
}

/* Task-1 */
.task-1 {
  display: flex;
  justify-content: center;
}

.product-card {
  width: 280px;
  height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  border-radius: 8px;
  background-color: #fdfcfc;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0px 2px 1px 0px rgba(46, 47, 66, 0.08),
    0px 1px 1px 0px rgba(46, 47, 66, 0.16),
    0px 1px 6px 0px rgba(46, 47, 66, 0.08);

  @media (max-width: 320px) {
    width: 100%;
    height: auto;
  }
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.product-img {
  object-fit: cover;
}

.product-title {
  font-size: 18px;
  font-weight: 700;
  margin: 24px 0 12px;
  text-align: center;
}

.product-description {
  font-size: 14px;
  margin: 0 8px;
  text-align: center;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 16px;
}

.old-price {
  color: firebrick;
  text-decoration: line-through;
}

.new-price {
  font-weight: 700;
}

.buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.cart-btn {
  font-size: 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 12px;
  background: #ff9046;
  color: rgb(255, 253, 253);
  transition: background 0.3s ease;
}

.cart-btn:hover {
  background: rgb(255, 253, 253);
  color: #ff9046;
  border: 1px solid #ff9046;
}

.favorite-btn {
  background-color: transparent;
  border: none;
  width: 34px;
  height: 34px;
}

.icon-heart {
  fill: rgb(252, 164, 164);
  margin-top: 4px;
}

.icon-heart:hover {
  fill: firebrick;
}

/* Task-2 */

.nav-menu {
  background-color: #fdfcfc;
}

.menu {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu li {
  position: relative;
}

.menu > li {
  flex: 1;
}

.menu a {
  display: block;
  text-decoration: none;
  color: #292929;
  padding: 8px 4px;
}

.menu a:hover {
  background-color: #ff9046;
  color: rgb(255, 253, 253);
}

.submenu {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffccaa;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.submenu li a {
  padding: 8px 12px;
  color: rgb(255, 253, 253);
}

.submenu li a:hover {
  background-color: #ff9046;
}

.menu li:hover > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
