@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');

body {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.logo {
  width: 20rem;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.product {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid #000;
  padding: 1rem;
  overflow: hidden;
}

.products {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
}

@media (max-width: 900px) {
  .products {
    gap: 0.5rem;
  }
}

@media (max-width: 768px) {
  .products {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}

.product-image {
  width: 15rem;
  margin-bottom: auto;
  margin-top: 0.5rem;
}

.product-image {
  transition: transform 0.3s ease-in-out;
  object-fit: cover;
  width: 15rem;
  height: auto;
  display: block;
  overflow: hidden;
}

.product-name {
  border-top: 1px solid #000;
  width: 100%;
  text-align: center;
  padding-top: 0.5rem;
}

.product-subtitle {
  font-size: 0.8rem;
  color: #666;
  text-align: center;
  font-style: italic;
  line-height: 0.8;
  margin-bottom: -1rem;
}

.buy-button {
  background-color: #000;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

.buy-button:hover {
  background-color: #333;
}

.size-selection {
  width: 100%;
  margin: 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.size-selection label {
  font-weight: 500;
  font-size: 0.9rem;
}

.size-select {
  padding: 0.5rem;
  border: 1px solid #000;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 400;
  background-color: #fff;
  cursor: pointer;
}

.size-select:focus {
  outline: 2px solid #000;
  outline-offset: 1px;
}

.success-content {
  text-align: center;
  padding: 2rem;
  border: 1px solid #000;
  max-width: 500px;
}

.success-content h1 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.success-content p {
  margin-bottom: 2rem;
  line-height: 1.5;
}

.back-button {
  background-color: #000;
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.back-button:hover {
  background-color: #333;
}