/* Search */
.search-page-hero {
  margin-bottom: 0;
}

.search-page-hero-inner {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.search-page-hero-inner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(0 0 0 / 65%), transparent 60%);
}

.search-page-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: 32px 40px;
}

.search-page-hero-content .label {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgb(255 255 255 / 15%);
  color: rgb(255 255 255 / 70%);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-page-hero-content h1 {
  margin: 0;
  color: #fff;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.search-bar-wrap {
  position: relative;
  max-width: 600px;
}

.search-hero {
  margin-bottom: 32px;
}

.search-page-heading {
  margin-bottom: 28px;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  z-index: 1;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  transform: translateY(-52%);
}

.search-clear {
  position: absolute;
  top: 50%;
  right: 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  transform: translateY(-50%);
}

.results {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
}

.result-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 1px 3px rgb(0 0 0 / 4%);
  text-decoration: none;
  transition: box-shadow 0.2s ease;
}

.result-item img {
  width: 120px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
}

.result-item .title {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
}

.result-item .excerpt {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.subcat {
  margin: 0;
  padding: 0;
  list-style: none;
}

.subcat li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.subcat li:last-child {
  border-bottom: 0;
}

.subcat li a {
  display: block;
  color: var(--fg);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.subcat li a:hover {
  color: var(--accent);
}

.subcat .count {
  float: right;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.result-item:hover .title {
  color: var(--accent);
}

.result-item:hover {
  box-shadow: 0 4px 16px rgb(0 0 0 / 8%);
}

.search-input {
  width: 100%;
  padding: 14px 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  background: var(--surface);
  color: var(--fg);
  font-size: 15px;
}

.search-input:focus {
  border-color: var(--accent);
}

.search-input::placeholder,
.search-info {
  color: var(--muted);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
}

.page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--fg);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}

.page-btn:hover:not(:disabled),
.page-btn.active {
  border-color: var(--fg);
  background: var(--fg);
  color: #fff;
}

.page-btn:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.55;
}

@media (max-width: 600px) {
  .search-page-hero-inner {
    height: 200px;
  }

  .search-page-hero-content {
    padding: 24px 20px;
  }

  .result-item {
    grid-template-columns: 1fr;
  }

  .result-item img {
    width: 100%;
    height: 160px;
  }
}
