* {
  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;
}

.new-products-section > p {
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.collection-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1rem;
}

.collection-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.collection-card-header img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

.collection-tag {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: #7b7698;
  margin-bottom: 0.25rem;
}

.collection-card h3 {
  font-family: 'Fredoka One';
  font-size: 1.35rem;
  color: #352f69;
}

.collection-copy {
  margin-bottom: 0.75rem;
}

.collectible-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.collectible-card {
  border: 1px solid #ece8f4;
  border-radius: 10px;
  padding: 0.75rem;
  background: #fbfafe;
  text-align: center;
}

.collectible-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  background: #ffffff;
}

.collectible-card h4 {
  margin-top: 0.7rem;
  font-size: 1rem;
}

.collectible-card p {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: #6f6a86;
}

.collectible-card--placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.collectible-placeholder {
  width: 100%;
  height: 140px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f1eef9, #e7eff8);
  color: #352f69;
  font-family: 'Fredoka One';
  font-size: 2rem;
}

.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: hidden;
  background-color: rgba(0,0,0,0.6);
  padding: 1rem;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #fff;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 10px;
  max-width: 1000px;
  position: relative;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  width: min(1000px, 100%);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.close-btn {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(60vh, 500px);
  margin: 1rem 0;
}

.modal-main-image {
  max-width: calc(100% - 6rem);
  max-height: min(60vh, 500px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.92);
  border: 1px solid #ddd;
  border-radius: 999px;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #352f69;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.modal-arrow--prev {
  left: 0.5rem;
}

.modal-arrow--next {
  right: 0.5rem;
}

.modal-thumbnails {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.modal-thumbnail {
  width: 60px;
  height: auto;
  cursor: pointer;
  border-radius: 4px;
  border: 2px solid transparent;
  object-fit: contain;
}

#thumbnails img:hover {
  opacity: 0.8;
  transition: 0.2s;
}

#prevBtn:hover, #nextBtn:hover {
  color: #888;
}