.wishlist-panel {
  position: fixed;
  inset: 0;
  z-index: 10050;
  pointer-events: none;
}

.wishlist-panel.is-open {
  pointer-events: auto;
}

.wishlist-panel__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.wishlist-panel.is-open .wishlist-panel__overlay {
  opacity: 1;
  pointer-events: auto;
}

.wishlist-panel__drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100%;
  min-height: 0;
  background: #fff;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  visibility: hidden;
}

.wishlist-panel.is-open .wishlist-panel__drawer {
  transform: translateX(0);
  visibility: visible;
}

.wishlist-panel__head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--fanat-border, #e2e8f0);
}

.wishlist-panel__title {
  margin: 0;
  font-family: var(--fanat-font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.wishlist-panel__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #333;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.wishlist-panel__close:hover,
.wishlist-panel__close:focus {
  background: var(--fanat-bg-alt, #f5f8fc);
  outline: 0;
}

.wishlist-panel__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 8px 0;
  -webkit-overflow-scrolling: touch;
}

.wishlist-panel__cart-bar {
  flex: 0 0 auto;
  padding: 12px 24px;
  border-top: 1px solid var(--fanat-border, #e2e8f0);
}

.wishlist-panel__cart-btn {
  display: block;
  width: 100%;
  height: 42px;
  border: 1px solid var(--fanat-brand, #004494);
  border-radius: var(--fanat-radius, 0.75rem);
  background: var(--fanat-brand, #004494);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.wishlist-panel__cart-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.wishlist-panel__contacts {
  flex: 0 0 auto;
  padding: 16px 24px 8px;
  border-top: 1px solid var(--fanat-border, #e2e8f0);
  background: var(--fanat-bg-alt, #f5f8fc);
}

.wishlist-panel__contacts-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
}

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

.wishlist-panel__contacts-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}

.wishlist-panel__contacts-label {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wishlist-panel__contacts-value {
  font-size: 14px;
  color: #111;
  text-decoration: none;
}

a.wishlist-panel__contacts-value:hover {
  color: var(--fanat-brand, #004494);
}

.wishlist-panel__foot {
  flex: 0 0 auto;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--fanat-border, #e2e8f0);
}

.wishlist-panel__all-link {
  display: block;
  text-align: center;
  color: var(--fanat-brand, #004494);
  text-decoration: none;
}

.wishlist-panel__empty,
.wishlist-page__empty {
  margin: 0;
  padding: 32px 24px;
  color: #777;
  text-align: center;
}

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

.wishlist-panel__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  border-bottom: 1px solid #f0f0f0;
}

.wishlist-panel__thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid #ececec;
}

.wishlist-panel__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wishlist-panel__info {
  flex: 1 1 auto;
  min-width: 0;
}

.wishlist-panel__name {
  display: block;
  margin-bottom: 6px;
  color: #333;
  font-size: 14px;
  text-decoration: none;
}

.wishlist-panel__price {
  font-size: 15px;
  font-weight: 600;
}

.wishlist-btn__icon {
  display: inline-flex;
  line-height: 0;
}

.wishlist-btn__icon svg {
  width: 18px;
  height: 16px;
}

.wishlist-btn__icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linejoin: round;
}

.wishlist-btn--active .wishlist-btn__icon path {
  fill: currentColor;
}

.wishlist-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #333;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.wishlist-btn:hover,
.wishlist-btn:focus {
  color: #d9534f;
  text-decoration: none;
  outline: 0;
}

.wishlist-btn--active {
  color: #d9534f;
}

.wishlist-btn--compact {
  box-shadow: none;
  background: transparent;
}

body.is-wishlist-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .wishlist-panel__drawer {
    max-width: none;
  }
}
