/* === Pin Icon in Product Loop (Vertical Bar) ======================== */
.dm-pin-icon-wrapper {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 10001;
}

.dm-pin-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 7px;
  background: rgba(0, 0, 0, .75);
  color: #fff;
  text-decoration: none;
  transition: transform .12s ease, background .08s ease, opacity .12s ease;
  backdrop-filter: blur(1px);
  cursor: pointer;
  opacity: 0.6;
}

.dm-pin-icon:hover,
.dm-pin-icon:focus {
  transform: translateY(-1px) scale(1.05);
  background: rgba(247, 147, 26, 0.9);
  color: #fff;
  opacity: 1;
}

.dm-pin-icon i {
  font-size: 18px;
  line-height: 1;
  transition: transform .2s ease;
}

.dm-pin-icon.active {
  background: rgba(247, 147, 26, 0.85);
  opacity: 1;
}

.dm-pin-icon.active i {
  transform: rotate(45deg);
}

.dm-pin-icon-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.dm-pin-icon-disabled:hover {
  transform: none !important;
  background: rgba(0, 0, 0, .75) !important;
}

/* WCPS Slider - Position icon in upper left */
.wcps-items-thumb {
  position: relative;
}

.dm-pin-icon-wcps {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 10;
  margin: 0;
}

/* Ensure icon is visible over the image */
.wcps-items-thumb .dm-pin-icon-wcps {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === Button on Single Product Page ================================== */
.dm-merkliste-button-wrapper {
  margin: 18px 0;
}

.dm-merkliste-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #334155;
  color: #fff;
  border: 1px solid #334155;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all .2s ease;
  text-decoration: none;
}

.dm-merkliste-btn:hover {
  background: #f7931a;
  border-color: #f7931a;
  color: #fff;
  transform: translateY(-1px);
}

.dm-merkliste-btn.dm-in-list {
  background: #f7931a;
  border-color: #f7931a;
}

.dm-merkliste-btn.dm-in-list:hover {
  background: #dc2626;
  border-color: #dc2626;
}

.dm-merkliste-btn i {
  font-size: 16px;
}

.dm-merkliste-btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.dm-merkliste-btn-disabled:hover {
  background: #334155 !important;
  border-color: #334155 !important;
  transform: none !important;
}

/* === Dashboard Layout =============================================== */
.merkliste-dashboard-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 70vh;
}

.merkliste-dashboard-inner {
  width: 100%;
  max-width: 1000px;
  color: #fff;
  padding: 1rem;
}

.merkliste-dashboard-inner h2 {
  color: #fff;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

/* === Merkliste List (Cards) ========================================= */
.merkliste-list {
  list-style: none;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.merkliste-item {
  display: flex;
  gap: 1.5rem;
  border: 1px solid #2e3847;
  background: #181e27;
  border-radius: 10px;
  padding: 1.5rem !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .15);
  transition: transform .1s ease, box-shadow .2s ease;
  align-items: center;
}

.merkliste-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
}

/* Image */
.merkliste-item-image {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  background: #1f2732;
}

.merkliste-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Details */
.merkliste-item-details {
  flex: 1;
  min-width: 0;
}

.merkliste-item-head {
  margin-bottom: 0.5rem;
}

.merkliste-title {
  font-size: 1.1rem;
  color: #fff;
}

.merkliste-title a {
  color: #fff;
  text-decoration: none;
  transition: color .2s ease;
}

.merkliste-title a:hover {
  color: #f7931a;
}

.merkliste-vendor {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.merkliste-vendor i {
  color: #f7931a;
  font-size: 0.85rem;
}

.merkliste-vendor a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color .2s ease;
}

.merkliste-vendor a:hover {
  color: #f7931a;
}

.merkliste-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f7931a;
}

/* Actions */
.merkliste-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* === Buttons ======================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform .08s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.4rem 0.7rem;
  font-size: 0.9rem;
}

.btn-primary {
  background: #334155;
  border-color: #334155;
  color: #fff;
}

.btn-primary:hover {
  background: #42536a;
  border-color: #42536a;
  transform: translateY(-1px);
}

.btn-danger {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}

.btn-danger:hover {
  background: #dc2626;
  border-color: #dc2626;
  transform: translateY(-1px);
}

/* === Empty State ==================================================== */
.merkliste-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: #181e27;
  border: 1px solid #2e3847;
  border-radius: 10px;
}

.merkliste-empty i {
  font-size: 4rem;
  color: #f7931a;
  margin-bottom: 1rem;
  opacity: 1;
}

.merkliste-empty p {
  color: #cbd5e1;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.merkliste-empty .btn {
  margin-top: 1rem;
  background: #f7931a;
  border-color: #f7931a;
  color: #fff;
  padding: 12px 24px;
  font-size: 1rem;
}

.merkliste-empty .btn i {
  opacity: 1;
  color: #fff;
}

.merkliste-empty .btn:hover {
  background: #e27e00;
  border-color: #e27e00;
  transform: translateY(-1px);
}

/* === Responsive ===================================================== */
@media (max-width: 768px) {
  .merkliste-empty {
    padding: 2rem 1.5rem;
  }

  .merkliste-empty i {
    font-size: 2.5rem;
  }

  .merkliste-empty .btn {
    width: 100%;
    max-width: 220px;
    justify-content: center;
    padding: 10px 16px;
    font-size: 0.95rem;
  }

  .merkliste-list {
    padding-left: 0 !important;
  }

  .merkliste-item {
    flex-direction: column;
    text-align: center;
    padding: 1rem !important;
    gap: 1rem;
    margin: 0 !important;
  }

  .merkliste-item-image {
    width: 120px;
    height: 120px;
    margin: 0 auto;
  }

  .merkliste-item-details {
    text-align: center;
    flex: 1;
  }

  .merkliste-vendor {
    justify-content: center;
  }

  .merkliste-actions {
    flex-direction: row;
    width: 100%;
    gap: 0.5rem;
  }

  .merkliste-actions .btn {
    flex: 1;
    padding: 0.4rem 0.5rem;
    font-size: 0.85rem;
  }

  .merkliste-title {
    font-size: 1rem;
  }

  .merkliste-vendor {
    font-size: 0.85rem;
  }

  .merkliste-price {
    font-size: 1.1rem;
  }
}

/* === Loading States ================================================= */
.dm-pin-icon.loading,
.dm-merkliste-btn.loading {
  opacity: 0.6;
  pointer-events: none;
}

.dm-pin-icon.loading i,
.dm-merkliste-btn.loading i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* === Notification Toast ============================================= */
.dm-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 16px 24px;
  background: #252d38;
  border: 1px solid #2e3847;
  border-radius: 8px;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
  z-index: 9999;
  animation: slideIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dm-toast.success {
  border-left: 4px solid #10b981;
}

.dm-toast.error {
  border-left: 4px solid #ef4444;
}

.dm-toast i {
  font-size: 18px;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
