* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, sans-serif;
  margin: 0;
  background: #fafafa;
  color: #222;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  text-align: center;
  padding: 2rem 1rem 1rem;
}

header h1 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

#search {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  width: 90%;
  max-width: 400px;
  border: 1px solid #ccc;
  border-radius: 999px;
}

.texture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.texture-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.texture-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.texture-card img {
  width: 100%;
  display: block;
}

.texture-card h3 {
  margin: 1rem;
  font-size: 1.25rem;
}

.texture-card p {
  margin: 0 1rem 1rem;
  color: #555;
}

.btn {
  display: inline-block;
  margin: 0 1rem 1.5rem;
  background: #0078ff;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s ease;
}

.btn:hover {
  background: #005fcc;
}

footer {
  text-align: center;
  padding: 1rem;
  margin-top: auto;
  font-size: 0.9rem;
  color: #777;
}
