@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500&family=Inter&display=swap');

body {
  font-family: 'Inter', sans-serif;
  background-color: #faf7f2;
  margin: 0;
  padding: 0;
  color: #333;
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.layout {
  display: flex;
  width: 100%;
}

.sidebar {
  width: 280px;
  background-color: #ffffff;
  padding: 2rem;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sidebar h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: #111;
}

.sidebar input {
  padding: 0.8rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  margin-bottom: 2rem;
  width: 100%;
  font-size: 1rem;
}

.section {
  margin-bottom: 2rem;
}

.section h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: #444;
}

.section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.section ul li {
  padding: 0.3rem 0;
  color: #555;
  cursor: pointer;
}

.section ul li:hover {
  text-decoration: underline;
  color: #000;
}

.main-content {
  flex-grow: 1;
  padding: 2rem;
  overflow-y: auto;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.card {
  background: #fff;
  padding: 1.25rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
  cursor: pointer;
}

.card:hover {
  transform: scale(1.02);
}

.card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.card h3 {
  margin: 0.25rem 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: #222;
}

.card p {
  margin: 0.25rem 0;
  font-size: 0.95rem;
  color: #555;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  position: relative;
}

.modal-content img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.modal-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-top: 0.5rem;
}

.close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #888;
}

.close-button:hover {
  color: #000;
}

.buy-button {
  display: inline-block;
  margin-top: 1rem;
  background-color: #000;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}

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