/**
 * Wishlist styles
 */

/* Header wishlist count: only show circle when there is a count */
.sawerna-header__icon-btn--wishlist {
  position: relative;
}

.sawerna-header__wishlist-count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sawerna-header__wishlist-count:empty {
  display: none;
}

.sawerna-header__wishlist-count:not(:empty) {
  background: rgb(149, 149, 95);
  color: #fff;
  min-width: 20px;
  padding: 0 6px;
}

.sawerna-header__mobile-actions .sawerna-header__wishlist-count:not(:empty) {
  border: 2px solid #fff;
}

.sawerna-wishlist {
  margin-top: 24px;
  margin-bottom: 24px;
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.sawerna-wishlist__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.sawerna-wishlist__result {
  color: #171717;
  font-size: 14px;
  font-weight: 600;
}

.sawerna-wishlist__controls {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.sawerna-wishlist__control {
  min-height: 44px;
}

.sawerna-wishlist__control--toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #171717;
  font-size: 14px;
}

.sawerna-wishlist__select {
  min-width: 196px;
  height: 44px;
  padding: 0 42px 0 14px;
  border: 1px solid #d8d8d8;
  border-radius: 0;
  background: #fff;
  color: #171717;
  font-size: 14px;
  cursor: pointer;
}

.sawerna-wishlist__control .sawerna-filter__toggle {
  position: relative;
  display: inline-flex;
  width: 46px;
  height: 26px;
}

.sawerna-wishlist__control .sawerna-filter__toggle input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.sawerna-wishlist__control .sawerna-filter__toggle-slider {
  position: relative;
  width: 100%;
  height: 100%;
  border: 1px solid #111;
  border-radius: 999px;
  background: #fff;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.sawerna-wishlist__control .sawerna-filter__toggle-slider::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #111;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.sawerna-wishlist__control .sawerna-filter__toggle input:checked + .sawerna-filter__toggle-slider {
  background: rgb(149, 149, 95);
  border-color: rgb(149, 149, 95);
}

.sawerna-wishlist__control .sawerna-filter__toggle input:checked + .sawerna-filter__toggle-slider::after {
  transform: translateX(20px);
  border-color: rgb(149, 149, 95);
}

.sawerna-wishlist__pagination {
  margin-top: 34px;
}

.sawerna-wishlist__pagination ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.sawerna-wishlist__pagination .page-numbers {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8d8d8;
  color: #171717;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.sawerna-wishlist__pagination .page-numbers.current,
.sawerna-wishlist__pagination a.page-numbers:hover,
.sawerna-wishlist__pagination a.page-numbers:focus-visible {
  border-color: #111;
  background: #111;
  color: #fff;
}

.sawerna-wishlist-empty {
  padding: 16px 0;
  font-size: 16px;
}

.sawerna-wishlist-page {
  width: 100%;
}

.sawerna-wishlist-page__content {
  max-width: 1220px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

.sawerna-wishlist-page__header {
  margin-bottom: 24px;
}

.sawerna-wishlist-page__title {
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.1;
}

.sawerna-wishlist-page .sawerna-wishlist {
  margin-top: 0;
  margin-bottom: 0;
  max-width: none;
}

@media (max-width: 640px) {
  .sawerna-wishlist__toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .sawerna-wishlist__controls {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .sawerna-wishlist__control,
  .sawerna-wishlist__control--toggle {
    width: 100%;
  }

  .sawerna-wishlist__control--toggle {
    justify-content: space-between;
  }

  .sawerna-wishlist__select {
    width: 100%;
    min-width: 0;
  }
}
