.container {
  padding: 2rem 1.375rem;
  max-width: 1366px;
  margin: 0 auto;
}

.title {
  font-size: 24px;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.productGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;

  /* Ensure each grid item maintains same height */
  & > div {
    height: 100%;
    display: flex;

    /* Make ProductCard take full height of container */
    & > div {
      width: 100%;
      display: flex;
      flex-direction: column;
    }
  }

  @media screen and (max-width: 1230px) {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  }
  @media screen and (max-width: 1023px) {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  }
  @media screen and (max-width: 774px) {
    grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
    gap: 10px;
  }
  @media screen and (max-width: 519px) {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  @media screen and (max-width: 510px) {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  @media screen and (max-width: 425px) {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
}

.removingItem {
  position: relative;
  pointer-events: none;

  &::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
  }
}

.loadingContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.loadingSpinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: #3498db;
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 10px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.errorContainer {
  text-align: center;
  padding: 2rem;
}

.retryButton {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;

  &:hover {
    background-color: #2980b9;
  }
}
