body {
  margin: 0;
  color: #818479;
  font-family: 'Lexend Giga', sans-serif;
}

.prices {
  max-width: 1600px;
  margin: auto;
  padding: clamp(20px, 4vw, 60px);
}

h1 {
  margin-top: 0;
  text-align: center;
  font-size: clamp(2.5rem, 8vw, 6rem);
  letter-spacing: 0.2em;
  margin-bottom: 4rem;
  padding-top: 3%;
}

/* GRID */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  overflow-x: auto;
}

/* CARD */
.price-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  
  border-radius: 24px;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
}

.price-card h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #e06e6f;
  font-family: "Abhaya Libre", serif;
}

/* CONTENT INSIDE CARD */
.card-content {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;  /* vaihda center → flex-start */
  gap: clamp(0.5rem, 1.5vw, 1rem);  /* pienennä gap */
  width: 100%;
  min-width: 0;
}

/* MAIN IMAGE */
.regular-img {
  width: clamp(120px, 30vw, 230px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  flex-shrink: 1;
}

/* RIGHT SIDE */
.card-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

/* CHIBI IMAGE */
.chibi-img {
  width: clamp(90px, 20vw, 140px);  
  max-width: 100%;
  height: auto;
  object-fit: contain;
  flex-shrink: 1;
}

/* TABLE */
table {
  border-collapse: collapse;
  background: #7ee67e;
  color: white;
  width: 100%;
  max-width: 280px;
  box-sizing: border-box;
}

th,
td {
  border: 3px solid white;
  padding: 1rem;
  text-align: center;
  font-family: "Lexend Giga", serif;
}

th {
  font-weight: bold;
}

/* NOTE */
.background-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
  max-width: 280px;
  color: #666;
  line-height: 1.4;
}

/* EXTRAS */
.extras-section {
  margin: 3rem 0;
}

.extras-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.extra-card,
.revision-note {
  background: white;
  border-radius: 20px;
  padding: 1.5rem 1.75rem;
  border: 2.5px solid #7ee67e;
}

.extra-label {
  font-size: 0.75rem;
  color: #818479;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 0.4rem;
}

.extra-card h3,
.revision-note h3 {
  color: #e06e6f;
  font-family: "Abhaya Libre", serif;
  font-size: 1.4rem;
  margin: 0 0 0.75rem;
}

.extra-price {
  background: #d2e4c4;
  color: #1a4a1a;
  border-radius: 10px;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  display: inline-block;
}

.revision-note p {
  color: #818479;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0.25rem 0;
}

.revision-sub {
  color: #aaa !important;
  font-size: 0.82rem !important;
}



/* MOBILE */


@media (max-width: 1800px) {
  th, td {
    padding: 0.6rem 0.5rem;
    font-size: 0.85rem;
  }

  table {
    width: 100%;
    max-width: 100%;
  }

  .card-right {
    flex: 1;
    min-width: 0;
  }

  .regular-img {
    width: clamp(100px, 20vw, 180px);
  }
}


@media (max-width: 1100px) {
  .price-grid {
    grid-template-columns: 1fr;
  }

  .extras-grid {
    grid-template-columns: 1fr;
  }

  .card-content {
    flex-direction: column;
    align-items: center;
  }

  .regular-img {
    order: -1;
    width: clamp(140px, 50vw, 200px);
  }

  .chibi-img {
    width: clamp(90px, 30vw, 150px);
    margin-bottom: 2rem;
  }


  .price-card h2 {
    font-size: 3rem;
    margin-top: 5rem;
    margin-bottom: 0;
  }

}