/* ─────────────────────────────────────────────────────────
   HWING WISHLIST — styles matched to theme design system
───────────────────────────────────────────────────────── */

/* ── Heart button — loop cards ──────────────────────── */
.hwing-wl-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #888884;
  transition: color .2s, transform .15s;
  line-height: 1;
}
.hwing-wl-btn:hover { color: #000; }
.hwing-wl-btn.is-saved { color: #c0392b; }
.hwing-wl-btn.is-saved .hwing-wl-icon path { fill: #c0392b; stroke: #c0392b; }
.hwing-wl-icon { display: block; }

/* Loop card button — appears top-right on hover */
.hwing-wl-btn--loop {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  width: 34px !important;
  height: 34px !important;
  background: rgba(255,255,255,.92) !important;
  backdrop-filter: blur(4px) !important;
  border-radius: 50% !important;
  z-index: 5 !important;
  opacity: 0 !important;
  transform: scale(.85) !important;
  transition: opacity .2s, transform .2s !important;
}
.product-card:hover .hwing-wl-btn--loop,
li.product:hover .hwing-wl-btn--loop { opacity: 1 !important; transform: scale(1) !important; }
.hwing-wl-btn--loop.is-saved { opacity: 1 !important; transform: scale(1) !important; }

/* ── Toast ──────────────────────────────────────────── */
.hwing-wl-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: #000;
  color: #fff;
  font-family: "DM Sans", Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .06em;
  padding: 14px 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  z-index: 99999;
  opacity: 0;
  transition: opacity .3s, transform .3s;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0,0,0,.22);
}
.hwing-wl-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: all; }
.hwing-wl-toast a { color: #fff; text-decoration: underline; opacity: .7; margin-left: 4px; }
.hwing-wl-toast a:hover { opacity: 1; }

/* ── My Account tab ────────────────────────────────── */
.hwing-wl-account { padding: 0 0 48px; }

.hwing-wl-account__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
  font-weight: 300;
  letter-spacing: -.01em;
  color: #000;
  margin: 0 0 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e8e8e6;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.hwing-wl-account__count {
  font-family: "DM Sans", Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: #888884;
  letter-spacing: normal;
}

/* Grid */
.hwing-wl-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

/* Item card */
.hwing-wl-item {
  display: flex;
  flex-direction: column;
}
.hwing-wl-item__img {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: #f5f5f3;
  margin-bottom: 14px;
}
.hwing-wl-item__img a { display: block; width: 100%; height: 100%; }
.hwing-wl-item__img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform .4s ease;
}
.hwing-wl-item:hover .hwing-wl-item__img img { transform: scale(1.04); }

.hwing-wl-item__info { flex: 1; display: flex; flex-direction: column; gap: 5px; }

.hwing-wl-item__name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.25;
  color: #000;
  text-decoration: none;
  display: block;
}
.hwing-wl-item__name:hover { color: #444440; }

.hwing-wl-item__price {
  font-family: "DM Sans", Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #000;
}

.hwing-wl-item__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* Add to Bag button */
.hwing-wl-atc,
a.hwing-wl-atc {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 !important;
  min-width: 0 !important;
  background: #000 !important;
  background-image: none !important;
  color: #fff !important;
  border: 2px solid #000 !important;
  border-radius: 0 !important;
  padding: 11px 16px !important;
  font-family: "DM Sans", Helvetica, Arial, sans-serif !important;
  font-size: 10px !important;
  font-weight: 400 !important;
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  text-shadow: none !important;
  box-shadow: none !important;
  transition: background .2s !important;
  cursor: pointer;
}
.hwing-wl-atc:hover,
a.hwing-wl-atc:hover { background: #444 !important; border-color: #444 !important; color: #fff !important; }

/* View Product link */
.hwing-wl-view,
a.hwing-wl-view {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  background: none;
  color: #888884;
  border: 1px solid #c8c8c4;
  padding: 10px 16px;
  font-family: "DM Sans", Helvetica, Arial, sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.hwing-wl-view:hover { border-color: #000; color: #000; }

/* Remove link */
.hwing-wl-remove {
  background: none;
  border: none;
  padding: 0;
  font-family: "DM Sans", Helvetica, Arial, sans-serif;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #888884;
  cursor: pointer;
  text-decoration: underline;
  transition: color .2s;
  white-space: nowrap;
}
.hwing-wl-remove:hover { color: #c0392b; }

/* Empty state */
.hwing-wl-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
  gap: 12px;
}
.hwing-wl-empty svg { color: #c8c8c4; }
.hwing-wl-empty h3 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 24px; font-weight: 300; color: #000; margin: 0; }
.hwing-wl-empty p { font-family: "DM Sans", Helvetica, Arial, sans-serif; font-size: 14px; color: #888884; margin: 0; }
.hwing-wl-empty .button,
.hwing-wl-empty a.button {
  margin-top: 12px !important;
  background: #000 !important;
  color: #fff !important;
  border: 2px solid #000 !important;
  border-radius: 0 !important;
  padding: 14px 32px !important;
  font-family: "DM Sans", Helvetica, Arial, sans-serif !important;
  font-size: 10px !important;
  font-weight: 400 !important;
  letter-spacing: .2em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  display: inline-flex !important;
  background-image: none !important;
  text-shadow: none !important;
  box-shadow: none !important;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 1200px) { .hwing-wl-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
@media (max-width: 900px)  { .hwing-wl-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 480px)  {
  .hwing-wl-grid { grid-template-columns: 1fr; gap: 32px; }
  .hwing-wl-toast { left: 16px; right: 16px; width: auto; white-space: normal; }
}
