/* item-listing.css */

/* Global box-sizing for consistency */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Body and container styles */
html, body {
  font-family: sans-serif;
  background-color: #C0C0C0; /* Silver background */
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

.item-list-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center; /* Center items horizontally */
  width: 100%;
  padding: 20px;
}

/* Individual item card */
.item-card {
  background-color: #888888;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  text-align: center;
  width: 300px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.item-card:hover,
.item-card:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  outline: none;
}

/* Item title */
.item-title {
  color: #ffffff;
  font-size: 24px;
  margin-bottom: 15px;
  font-weight: bold;
  font-family: inherit;
}

/* Image container */
.item-image-container {
  background-color: #ffffff;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.item-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Buy button */
.buy-button {
  background-color: #cccccc;
  color: #000000;
  border: none;
  border-radius: 20px;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.buy-button:hover,
.buy-button:focus {
  background-color: #bbbbbb;
  outline: none;
}

.buy-button:focus-visible {
  outline: 3px solid #0f0;
  outline-offset: 2px;
}

.buy-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Responsive tweaks */
@media (max-width: 400px) {
  .item-card {
    width: 90vw;
  }
}

