/* v0.3.20 - Wishlist feature styles. Kept separate from frontend.css/header.css. */
.gktce-wishlist-toggle {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #dbe2ee;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}

.gktce-wishlist-toggle:hover {
  transform: translateY(-1px);
  border-color: #cbd5e1;
}

.gktce-wishlist-toggle img {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

.gktce-wishlist-toggle.is-active {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #e11d48;
}

.gktce-wishlist-toggle.is-active img {
  filter: invert(18%) sepia(94%) saturate(3587%) hue-rotate(334deg) brightness(94%) contrast(91%);
}

.gktce-wishlist-toggle.is-loading {
  pointer-events: none;
  opacity: .72;
}

.gktce-card-wishlist-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .08);
}

.gktce-card-badge + .gktce-card-wishlist-toggle,
.gktce-product-card .gktce-card-wishlist-toggle {
  right: 10px;
}

.gktce-single-summary .gktce-wishlist-placeholder.gktce-wishlist-toggle {
  flex: 0 0 38px !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 8px !important;
  background: #fff !important;
  border: 1px solid #dbe2ee !important;
}

.gktce-single-summary .gktce-wishlist-placeholder.gktce-wishlist-toggle.is-active {
  background: #fff1f2 !important;
  border-color: #fecdd3 !important;
}

.gktce-header-wishlist .gktce-header-action-icon,
.gktce-mobile-bottom-wishlist .gktce-bottom-wishlist-icon {
  position: relative;
  display: inline-flex;
}

.gktce-wishlist-count {
  display: inline-flex;
}

.gktce-header-badge.gktce-wishlist-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--gktce-primary, #0057ff);
  color: #fff;
  font-size: 10px;
  line-height: 1;
  font-weight: 950;
}

.gktce-header-badge.gktce-wishlist-count:empty,
.gktce-header-badge.gktce-wishlist-count[data-count="0"] {
  display: none !important;
}

.gktce-wishlist-page {
  --gktce-wishlist-primary: var(--gktce-primary, #0057ff);
  --gktce-wishlist-dark: #0f172a;
  --gktce-wishlist-muted: #64748b;
  --gktce-wishlist-line: #e5e7eb;
  width: min(100%, 1280px);
  margin: 24px auto 46px;
  padding: 0 14px;
  color: var(--gktce-wishlist-dark);
}

.gktce-wishlist-page * {
  box-sizing: border-box;
}

.gktce-wishlist-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.gktce-wishlist-header h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -.045em;
}

.gktce-wishlist-header h2 span {
  color: var(--gktce-wishlist-muted);
  font-size: .58em;
  font-weight: 850;
  letter-spacing: 0;
}

.gktce-wishlist-header p {
  margin: 7px 0 0;
  color: var(--gktce-wishlist-muted);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 750;
}

.gktce-wishlist-shop-link {
  color: var(--gktce-wishlist-primary);
  font-size: 13px;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
}

.gktce-wishlist-shop-link:hover {
  text-decoration: underline;
}

.gktce-wishlist-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid var(--gktce-wishlist-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}

.gktce-wishlist-toolbar span {
  color: var(--gktce-wishlist-muted);
  font-size: 13px;
  font-weight: 850;
}

.gktce-wishlist-clear {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #dbe2ee;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
}

.gktce-wishlist-clear:hover {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fff7f7;
}

.gktce-wishlist-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 42px 18px;
  border: 1px solid var(--gktce-wishlist-line);
  border-radius: 10px;
  background: #fff;
  text-align: center;
  box-shadow: 0 12px 34px rgba(15, 23, 42, .05);
}

.gktce-wishlist-empty-icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbe2ee;
  border-radius: 999px;
  color: #e11d48;
  font-size: 34px;
  line-height: 1;
}

.gktce-wishlist-empty h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -.035em;
}

.gktce-wishlist-empty p {
  margin: 0 0 8px;
  max-width: 420px;
  color: var(--gktce-wishlist-muted);
  font-size: 14px;
  line-height: 1.45;
}

.gktce-wishlist-grid.gktce-products {
  margin-top: 0;
}

@media (max-width: 780px) {
  .gktce-card-wishlist-toggle {
    top: 8px;
    right: 8px;
    width: 31px;
    height: 31px;
    border-radius: 7px;
  }

  .gktce-card-wishlist-toggle img {
    width: 18px;
    height: 18px;
  }

  .gktce-wishlist-page {
    margin-top: 16px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .gktce-wishlist-header {
    align-items: flex-start;
    margin-bottom: 12px;
  }

  .gktce-wishlist-header h2 {
    font-size: 26px;
  }

  .gktce-wishlist-header p {
    display: none;
  }

  .gktce-wishlist-shop-link {
    margin-top: 4px;
    font-size: 12px;
  }

  .gktce-wishlist-toolbar {
    min-height: 42px;
    padding: 8px 10px;
    margin-bottom: 10px;
  }

  .gktce-wishlist-toolbar span,
  .gktce-wishlist-clear {
    font-size: 11.5px;
  }

  .gktce-wishlist-grid.gktce-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}
