.stock-container {
  text-align: center;
  padding: 20px 0;
}

.stock-search {
  margin-bottom: 18px;
}
.stock-search input {
  width: 60%;
  max-width: 400px;
  padding: 6px 10px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.95em;
  border: 2px solid var(--accent);
  border-radius: 6px;
  background: #171717;
  color: #fff;
  text-align: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
  padding: 0 6px;
}

.product-card {
  background-color: #202020;
  border-radius: 10px;
  padding: 10px;
  color: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  gap: 6px;
}

.product-card:hover {
  transform: scale(1.03);
  box-shadow: 0 3px 10px rgba(0,0,0,0.35);
}

.img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #202020;
  border-radius: 6px;
  overflow: hidden;
}

.product-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-title {
  font-family: 'Oswald', sans-serif;
  color: var(--accent);
  text-align: center;
  line-height: 1.1;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.9em;
}

.product-price {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85em;
  color: #fff;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 18px;
  gap: 10px;
  font-family: 'Oswald', sans-serif;
  color: #fff;
}
.pagination button {
  background: none;
  border: 2px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  font-size: 1.1em;
  width: 34px;
  height: 34px;
  cursor: pointer;
  transition: background 0.2s;
}
.pagination button:hover:not(:disabled) {
  background: var(--accent);
  color: #171717;
}
.pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}

.no-stock {
  color: var(--accent);
  font-family: 'Oswald', sans-serif;
  font-size: 1.05em;
  margin-top: 32px;
}

@media (max-width: 768px) { .stock-search input {
    width: 90%;
    max-width: none;
    font-size: 0.9em;
  }

  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding: 0 4px;
  }

  .product-card {
    padding: 6px;
    gap: 4px;
  }

  .img-wrap {
    aspect-ratio: 1 / 1;
  }

  .product-title {
    font-size: 0.72em;
  }

  .product-price {
    font-size: 0.7em;
  }
}

@media (max-width: 360px) {
  .product-title { font-size: 0.68em; }
  .product-price { font-size: 0.66em; }
}
