/* RESET BASE */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #cdcdcd;
  color: #333;
}

/* ========================= */
/* HOME PAGE (index.html) */
/* ========================= */

.home {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  text-align: center;
  padding: 40px;
  border: 3px solid black;
  border-radius: 12px;
  background-color: white;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.container h1 {
  margin-bottom: 30px;
}

/* container class used for centering arbitrary content */
.center {
  text-align: center;
  margin-bottom: 20px;
}

.buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.btn {
  padding: 10px 20px;
  text-decoration: none;
  background: #FEDA01;
  color: black;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  transition: background 0.3s;
}

.btn:hover {
  background: #FF828B;
  color: white;
}

/* ========================= */
/* PRODUCTS (SSR + CSR) */
/* ========================= */

h1 {
  text-align: center;
  margin: 20px 0;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.card {
  position: relative;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  padding: 15px;
  text-align: center;
  overflow: visible;
}

.card img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 10px;
  transition: transform 0.2s;
}

.card img:hover {
  transform: scale(1.05);
}

.card h3 {
  margin: 10px 0;
}

.card p {
  font-weight: bold;
  color: #666;
  margin: 10px 0;
}

.card button {
  background: #FEDA01;
  color: black;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.card button:hover {
  background: #FF828B;
}

/* ========================= */
/* POPUP */
/* ========================= */

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.popup.hidden {
  display: none;
}

.popup img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

#close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  font-weight: bold;
}