@font-face {
  font-family: 'LiturgischZierbuchstaben';
  src: url('fonts/liturgischZierbuchstaben.woff2') format('woff2'),
       url('fonts/liturgischZierbuchstaben.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'LiturgischRegular';
  src: url('fonts/liturgischRegular.woff2') format('woff2'),
       url('fonts/liturgischRegular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

/* =====  SHOP SECTION ===== */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  font-family: 'Cardo', serif;
  color: black;
}

.shop-item {
  background: white;
  border: 2px solid black;
  padding: 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shop-item:hover {
  outline: 2px dotted black;
  background: #f9f9f9;
}

/* Product Image */
.shop-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 2px solid black;
  image-rendering: pixelated;
}

/* Product Details */
.item-details {
  border-top: 2px solid black;
  padding-top: 0.75rem;
  text-align: center;
}

.product-name {
  font-weight: bold;
  font-size: 1.2rem;
  text-transform: uppercase;
  border-bottom: 1px dashed black;
  padding-bottom: 4px;
  margin-bottom: 6px;
}

.product-size {
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.product-price {
  font-size: 1.05rem;
  font-weight: bold;
  color: black;
  margin-bottom: 0.5rem;
}

.price-old {
  text-decoration: line-through;
  font-size: 0.9rem;
  margin-right: 0.4rem;
}

.shop-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #e0e0e0;
  border: 3px solid #a0a0a0;
  padding: 10px;
  box-shadow: 2px 2px 0 #000, -2px -2px 0 #fff;
  border-radius: 2px;
  height: 100%;
  max-width: 300px; /* optional, set as needed */
  position: relative;
}

.item-details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.item-details h3,
.item-details .price {
  margin-bottom: 10px;
}

.buy-button {
  margin-top: auto;
  align-self: flex-start;
  background: #c0c0c0;
  border: 2px solid #707070;
  box-shadow: 1px 1px #fff inset, -1px -1px #000 inset;
  padding: 8px 14px;
  font-family: 'Cardo', serif;
  font-size: 15px;
  color: #111;
  text-transform: uppercase;
  transition: all 0.2s ease;
  cursor: pointer;
  justify-content: center;
  margin: auto;
}

.buy-button:hover {
  background-color: #dcdcdc;
  box-shadow: 1px 1px #000 inset, -1px -1px #fff inset;
  color: #000;
}

/* Remove underline and fix layout for the link */
.buy-button a {
  text-decoration: none;
  color: inherit;
  display: block;
}


/* Inventory Badges */
.inventory-badge-green,
.inventory-badge-orange,
.inventory-badge-red {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 3px 8px;
  border: 1px solid black;
  background: white;
  color: black;
  font-family: 'Cardo', serif;
}

.inventory-badge-green::before {
  content: "[In Stock]";
}

.inventory-badge-orange::before {
  content: "[Low Stock]";
}

.inventory-badge-red::before {
  content: "[Out of Stock]";
}

/* Responsive */
@media (max-width: 1024px) {
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .shop-grid {
    grid-template-columns: 1fr;
    justify-items: center; /* centers items in the grid */
    width: 90%;
  }

  .shop-item {
    width: 90%; /* override max-width: 300px */
  }

  .buy-button {
    width: 100%;
    font-size: 1rem;
  }
}
