/* ═══════════════════════════════════════════════════
   TripGo Wishlist Styles v2.1
   ═══════════════════════════════════════════════════ */

/* ─── KALP BUTONU (kartlarda) ─────────────────────── */

.wl-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  color: #bbb;
  transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  outline: none;
}

.wl-btn:hover {
  background: #fff;
  color: #e53935;
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.wl-btn:focus-visible {
  outline: 2px solid #e53935;
  outline-offset: 2px;
}

.wl-btn--active {
  color: #e53935 !important;
  background: #fff !important;
}

.wl-btn--active .wl-icon {
  fill: #e53935;
}

.wl-btn--card {
  top: 10px;
  right: 10px;
}

/* Ürün sayfası butonu */
.wl-btn--product-page {
  position: relative;
  top: auto;
  right: auto;
  width: 44px;
  height: 44px;
  display: inline-flex;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  color: #bbb;
  border-radius: 50%;
}

.wl-btn--product-page:hover {
  background: #fff;
  color: #e53935;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

.wl-btn--product-page.wl-btn--active {
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important;
  color: #e53935 !important;
}

/* ─── KALP İKON SVG ───────────────────────────────── */

.wl-icon {
  width: 18px;
  height: 18px;
  fill: none;
  pointer-events: none;
  transition: fill 0.2s ease;
  display: block;
}

.wl-btn--product-page .wl-icon {
  width: 22px;
  height: 22px;
}

/* ─── BEAT ANİMASYONU ─────────────────────────────── */

@keyframes wl-beat {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.35); }
  60%  { transform: scale(0.92); }
  80%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.wl-btn--beat {
  animation: wl-beat 0.45s ease forwards;
}

/* ─── HEADER WRAPPER ──────────────────────────────── */

.wl-header-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.wl-header-wrapper > a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none !important;
  color: inherit;
  line-height: 1;
}

/* İkon + badge sarmalayıcı */
.wl-header-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Header kalp SVG — 26px, tema nav link rengi */
.wl-header-icon {
  width: 26px;
  height: 26px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
  transition: stroke 0.2s ease, fill 0.2s ease;
}

.wl-header-wrapper > a:hover .wl-header-icon {
  stroke: #e53935;
}

.wl-header-wrapper.has-items .wl-header-icon {
  fill: #e53935;
  stroke: #e53935;
}

/* "Wish List" yazısı */
.wl-header-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: inherit;
  white-space: nowrap;
  line-height: 1;
}

.wl-header-wrapper > a:hover .wl-header-label {
  color: #e53935;
}

/* ─── HEADER BADGE (sayı) ─────────────────────────── */

.wl-header-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 100px;
  background: #e53935;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  font-family: inherit;
  pointer-events: none;
}

/* ─── BADGE POP ANİMASYONU ────────────────────────── */

@keyframes wl-badge-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.5); }
  70%  { transform: scale(0.88); }
  100% { transform: scale(1); }
}

.wl-badge--pop {
  animation: wl-badge-pop 0.35s cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards;
}

/* ─── TOAST BİLDİRİM ──────────────────────────────── */

#wl-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 99999;
  padding: 11px 22px;
  border-radius: 100px;
  background: rgba(30, 30, 30, 0.92);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#wl-toast.wl-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

#wl-toast.wl-toast--hide {
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
}

/* ─── ÜRÜN SAYFASI BUTON WRAPPER ──────────────────── */

.wl-product-btn-wrap {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

/* ─── WISHLIST SAYFASI ────────────────────────────── */

.wl-page {
  padding: 20px 0 60px;
}

/* Loading */
.wl-page__loading {
  text-align: center;
  padding: 60px 20px;
  color: #888;
  font-size: 15px;
}

.wl-page__loading::before {
  content: '';
  display: block;
  width: 36px;
  height: 36px;
  margin: 0 auto 16px;
  border: 3px solid #eee;
  border-top-color: #e53935;
  border-radius: 50%;
  animation: wl-spin 0.7s linear infinite;
}

@keyframes wl-spin {
  to { transform: rotate(360deg); }
}

/* Boş durum */
.wl-page__empty {
  text-align: center;
  padding: 80px 20px;
}

.wl-page__empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  color: #ddd;
  display: block;
}

.wl-page__empty h3 {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  margin: 0 0 10px;
}

.wl-page__empty p {
  color: #888;
  font-size: 15px;
  margin: 0 0 28px;
}

.wl-page__empty-btn {
  display: inline-block;
  padding: 13px 32px;
  background: #e53935;
  color: #fff !important;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.15s ease;
}

.wl-page__empty-btn:hover {
  background: #c62828;
  transform: translateY(-1px);
}

/* Üst bar */
.wl-page__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.wl-page__count {
  font-size: 15px;
  color: #666;
}

.wl-page__count strong {
  color: #222;
}

.wl-page__clear {
  background: none;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 7px 16px;
  font-size: 13px;
  color: #888;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.wl-page__clear:hover {
  border-color: #e53935;
  color: #e53935;
}

/* Grid */
.wl-page__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .wl-page__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
  .wl-page__grid { grid-template-columns: 1fr; }
}

/* Kart */
.wl-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.wl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.13);
}

/* Görsel */
.wl-card__img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #f0f0f0;
}

.wl-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.wl-card:hover .wl-card__img-wrap img {
  transform: scale(1.05);
}

/* Kartın üstündeki wishlist butonu */
.wl-card__img-wrap .wl-btn {
  top: 10px;
  right: 10px;
}

/* İçerik */
.wl-card__body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wl-card__title {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin: 0;
  line-height: 1.35;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wl-card__title:hover {
  color: #e53935;
}

.wl-card__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.wl-card__meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #888;
}

.wl-card__meta-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #aaa;
}

/* Yıldız */
.wl-card__stars {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #888;
}

.wl-card__stars svg {
  width: 13px;
  height: 13px;
  color: #f5a623;
  fill: #f5a623;
}

/* Alt bölüm: fiyat + buton */
.wl-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.wl-card__price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wl-card__price-new {
  font-size: 18px;
  font-weight: 700;
  color: #e53935;
}

.wl-card__price-old {
  font-size: 13px;
  color: #aaa;
  text-decoration: line-through;
}

.wl-card__price-label {
  font-size: 11px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wl-card__btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  background: #e53935;
  color: #fff !important;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.wl-card__btn:hover {
  background: #c62828;
}

/* Skeleton loader */
.wl-skeleton {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.wl-skeleton__img {
  aspect-ratio: 16/9;
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: wl-shimmer 1.4s infinite;
}

.wl-skeleton__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wl-skeleton__line {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: wl-shimmer 1.4s infinite;
}

.wl-skeleton__line--title { width: 80%; height: 18px; }
.wl-skeleton__line--meta  { width: 50%; }
.wl-skeleton__line--price { width: 40%; }

@keyframes wl-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}