* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Varela Round';
  color: #352f69;
  background-color: #ffffff;
  line-height: 1.6;
}

header {
  background-color: #2f3b69;
  padding: 2rem 1rem;
  font-family: 'Fredoka One';
}

header h4 {
  font-size: 1.25rem;
  color: #ffffff;
}

nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1rem 0;
}

nav a {
  text-decoration: none;
  color: #352f69;
  font-weight: bold;
}

ul {
    margin-left: 40px;
  }

.header-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.logo {
  max-height: 125px;
  width: auto;
  height: auto;
  flex: 0 1 auto;
}

.header-text {
  flex: 1 1 300px;
  min-width: 250px;
}

.container {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.section {
  margin-bottom: 3rem;
}

.section h2 {
  font-family: 'Fredoka One';
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.product {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.product-item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  width: calc(50% - 1rem);
  padding: 1rem;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

.product-item:hover {
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-item img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.product-item h3 {
  margin-top: 0.5rem;
  font-size: 1.2rem;
}

footer {
  background-color: #2f3b69;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #ffffff;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 2rem;
  border-radius: 10px;
  max-width: 1000px;
  position: relative;
}

.close-btn {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}

#thumbnails img:hover {
  opacity: 0.8;
  transition: 0.2s;
}

#prevBtn:hover, #nextBtn:hover {
  color: #888;
}