/* Eşlikler sayfası (sayfaya özel) */

.es { padding: 48px 0 88px; }
.es .wrap { display: flex; flex-direction: column; gap: 28px; }

/* Başlık satırı */
.es-head { display: flex; align-items: flex-start; gap: 24px; }
.es-title { flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.es-crumb {
  font-weight: 400;
  font-size: 13px;
  line-height: 20px;
  color: var(--muted);
}
.es-crumb a:hover { color: var(--blue); }
.es-title h1 {
  font-weight: 600;
  font-size: 40px;
  line-height: 60px;
  color: var(--ink);
}
.es-title p {
  max-width: 520px;
  font-weight: 400;
  font-size: 15px;
  line-height: 22px;
  color: var(--muted);
}
.es-stats {
  flex: none;
  font-weight: 400;
  font-size: 13px;
  line-height: 20px;
  color: var(--muted);
  white-space: nowrap;
}

/* Arama satırı */
.es-bar { display: flex; align-items: center; gap: 10px; }
.es-search {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 51px;
  margin: 0;
  padding: 14px 22px;
  background: #fff;
  border: 1px solid #E4E7EE;
  border-radius: 999px;
  cursor: text;
  transition: border-color .2s;
}
.es-search:focus-within { border-color: var(--blue); }
.es-search span { flex: none; font-size: 15px; line-height: 22px; color: var(--placeholder); }
.es-search input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: inherit;
  font-weight: 400;
  font-size: 14px;
  line-height: 21px;
  color: var(--ink);
}
.es-search input::placeholder { color: var(--placeholder); opacity: 1; }
.es-search input::-webkit-search-cancel-button { display: none; }

.es-sort {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--gray);
  font-family: inherit;
  font-size: 13px;
  line-height: 20px;
  white-space: nowrap;
}
.es-sort-label { font-weight: 400; color: var(--placeholder); }
.es-sort strong { font-weight: 500; color: var(--blue); }
.es-sort i { font-style: normal; font-size: 9px; line-height: 14px; color: var(--blue); }
.es-sort-menu { border: 1px solid var(--border); border-radius: 16px; padding: 8px; box-shadow: var(--shadow-bar); font-family: inherit; }
.es-sort-menu .dropdown-item { border-radius: 10px; padding: 8px 14px; font-size: 13px; font-weight: 500; color: var(--menu); }
.es-sort-menu .dropdown-item:hover,
.es-sort-menu .dropdown-item.active { background: var(--blue-soft); color: var(--blue); }

/* Filtreler */
.es-filters { display: flex; flex-wrap: wrap; align-items: center; align-content: center; gap: 0 8px; min-height: 44px; }
.es-pill {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--gray);
  font-family: inherit;
  font-weight: 500;
  font-size: 14px;
  line-height: 140%;
  color: var(--menu);
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.es-pill em { font-style: normal; font-size: 12px; line-height: 140%; opacity: .6; }
.es-pill:hover { background: var(--blue-soft); }
.es-pill.active { background: var(--blue); color: #fff; }

/* Kitaplar ızgarası */
.es-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.es-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 14px 14px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: box-shadow .2s, border-color .2s;
}
.es-card:hover { border-color: var(--border-blue); box-shadow: var(--shadow-card); }
.es-card[hidden] { display: none; }
.es-cover {
  aspect-ratio: 267 / 356;
  border-radius: 14px;
  overflow: hidden;
  background: var(--gray);
}
.es-cover img { width: 100%; height: 100%; object-fit: cover; }
.es-text { display: flex; flex-direction: column; gap: 8px; padding: 0 4px; }
.es-text h3 {
  min-height: 41px;
  font-weight: 500;
  font-size: 15px;
  line-height: 135%;
  color: var(--ink);
}
.es-text span {
  font-weight: 400;
  font-size: 13px;
  line-height: 150%;
  color: var(--muted);
}

.es-empty {
  padding: 48px 0;
  text-align: center;
  font-size: 14px;
  line-height: 21px;
  color: var(--muted);
}
.es-empty[hidden] { display: none; }

/* Sayfalama */
.es-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; padding-top: 22px; }
.es-shown { font-weight: 400; font-size: 13px; line-height: 20px; color: var(--placeholder); }
.es-pager { display: flex; align-items: center; gap: 6px; }
.es-pager[hidden] { display: none; }
.es-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--gray);
  font-weight: 500;
  font-size: 13px;
  line-height: 20px;
  color: var(--menu);
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.es-page:hover { background: var(--blue-soft); color: var(--blue); }
.es-page.active,
.es-page.active:hover { background: var(--blue); color: #fff; }
.es-next { padding: 0 20px; }

/* Responsive */
@media (max-width: 1199.98px) {
  .es-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991.98px) {
  .es { padding: 32px 0 64px; }
  .es .wrap { gap: 24px; }
  .es-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767.98px) {
  .es-head { flex-direction: column; gap: 10px; }
  .es-stats { order: -1; }
}
@media (max-width: 575.98px) {
  .es-title h1 { font-size: 30px; line-height: 1.3; }
  .es-title p { font-size: 14px; }
  .es-bar { flex-wrap: wrap; }
  .es-search { flex-basis: 100%; }
  .es-sort { margin-left: auto; }
  .es-filters { gap: 8px; }
  .es-pill { padding: 10px 16px; }
  .es-grid { grid-template-columns: 1fr; }
}
