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

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

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  padding-top: 70px; /* Added padding to account for fixed navbar */
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

@media (max-width: 768px) {
  main {
    margin-top: 90px; /* Increased padding for mobile view to prevent navbar overlap */
  }
}

/* Product image styling */
.kep {
  width: 45%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 2rem;
}

.kep:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

/* Product description section */
.product-info {
  width: 50%;
  display: flex;
  flex-direction: column;
}

.rendeles {
  font-size: 1.8rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  color: #444;
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.allapot {
  font-size: 1.5rem;
  font-weight: 600;
  color: #e63946;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  background-color: rgba(230, 57, 70, 0.1);
  border-left: 4px solid #e63946;
  border-radius: 4px;
}
.allapot2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #8bc540;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  background-color: rgba(139, 197, 64, 0.1);
  border-left: 4px solid #8bc540;
  border-radius: 4px;
}
/* Price styling */
#ar {
  font-size: 2.2rem;
  font-weight: bold;
  color: #8bc540;
  margin: 1.5rem 0;
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: rgba(139, 197, 64, 0.1);
  border-radius: 8px;
}

/* Form styling */
form {
  width: 100%;
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
}

.szoveg {
  font-size: 1.2rem;
  font-weight: 500;
  color: #444;
  display: block;
  margin-bottom: 0.5rem;
}

.doboz {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 1.1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.doboz:focus {
  outline: none;
  border-color: #8bc540;
  box-shadow: 0 0 0 3px rgba(139, 197, 64, 0.2);
}

.doboz::placeholder {
  color: #aaa;
}

/* Button styling */
.gomb,
.gomb1 {
  font-size: 1.4rem;
  font-weight: 600;
  color: white;
  background-color: #e63946;
  border: none;
  border-radius: 10px;
  padding: 0.8rem 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(230, 57, 70, 0.3);
  text-align: center;
  display: inline-block;
  margin-right: 1rem;
}

.gomb:hover,
.gomb1:hover {
  background-color: #8bc540;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(139, 197, 64, 0.4);
}

.gomb:active,
.gomb1:hover {
  transform: translateY(-1px);
}

/* Checkbox styling */
.check {
  height: 1.3em;
  width: 1.3em;
  margin-right: 0.5em;
  vertical-align: middle;
  accent-color: #8bc540;
}

/* Dropdown styling */
.valaszto {
  font-size: 1.2rem;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: white;
  margin-bottom: 1.5rem;
  width: 100%;
}

/* Additional text styling */
h2:not(#ar) {
  font-size: 1.3rem;
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.5;
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid #8bc540;
}

/* Responsive design */
@media (max-width: 992px) {
  main {
    padding: 1.5rem;
  }

  .kep,
  .product-info {
    width: 100%;
  }

  .kep {
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  main {
    padding: 1rem;
  }

  .kep {
    height: 300px;
    object-fit: cover;
  }

  .rendeles {
    font-size: 1.5rem;
  }

  .gomb,
  .gomb1 {
    font-size: 1.2rem;
    padding: 0.7rem 1.5rem;
    width: 100%;
    margin-bottom: 1rem;
  }

  #ar {
    font-size: 1.8rem;
  }

  form {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .rendeles {
    font-size: 1.3rem;
  }

  .szoveg {
    font-size: 1.1rem;
  }

  .doboz {
    font-size: 1rem;
  }

  #ar {
    font-size: 1.6rem;
  }
}
