/* ============================================================
   CvvStar — Wishlist + Compare
   ============================================================ */

/* ═══════════════════════════════════════════
   Product Card Actions (Wishlist + Compare)
   ═══════════════════════════════════════════ */

/* Hide old wish span */
.product-stage > .wish,
.product > .wish,
.product-link .wish {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

.product-actions {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 10 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  transform: none !important;
}

/* ═══ Button — Fixed 44x44 ═══ */
.product-actions .pa-btn {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;

  width: 44px;
  height: 44px;
  flex: 0 0 44px;

  margin: 0;
  padding: 0;

  border-radius: 12px;
  background: rgba(14, 14, 22, .95);
  border: 1px solid rgba(255,255,255,.2);
  color: #B0B1C5;

  font: inherit;
  font-size: 0;
  line-height: 0;

  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 4px 14px -4px rgba(0,0,0,.6);
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.product-actions .pa-btn:hover {
  color: #F3F4F8;
  border-color: rgba(255,255,255,.3);
  background: rgba(20, 20, 32, .98);
  transform: scale(1.08);
}

.product-actions .pa-btn:active {
  transform: scale(.94);
}

/* ═══ SVG — Fixed 22x22 ═══ */
.product-actions .pa-btn svg {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin: 0;
  padding: 0;
  overflow: visible;
  pointer-events: none;
}

/* ═══ Active: Wishlist ═══ */
.product-actions .pa-btn[data-wishlist].is-active {
  color: #FF6B9D;
  border-color: rgba(255,107,157,.65);
  background: rgba(255,107,157,.15);
}
.product-actions .pa-btn[data-wishlist].is-active svg {
  fill: #FF6B9D;
  stroke: #FF6B9D;
}

/* ═══ Active: Compare ═══ */
.product-actions .pa-btn[data-compare].is-active {
  color: #22D3EE;
  border-color: rgba(34,211,238,.65);
  background: rgba(34,211,238,.15);
}
.product-actions .pa-btn[data-compare].is-active svg {
  stroke: #22D3EE;
  fill: none;
}

/* ═══ Mobile ═══ */
@media (max-width: 900px) {
  .product-actions {
    top: 10px;
    right: 10px;
    gap: 6px;
  }
  .product-actions .pa-btn {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 10px;
  }
  .product-actions .pa-btn svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
  }
}
/* ═══════════════════════════════════════════
   Header Wishlist Badge
   ═══════════════════════════════════════════ */
/* ═══════════════════════════════════════════
   Wishlist Notification Badge
   ═══════════════════════════════════════════ */
/* ═══════════════════════════════════════════
   Wishlist Notification Badge
   ═══════════════════════════════════════════ */
.icon-btn:has(.wishlist-badge) {
  position: relative !important;
  overflow: visible !important;
}

.wishlist-badge {
  position: absolute !important;
  top: -8px !important;
  right: -8px !important;
  left: auto !important;
  bottom: auto !important;

  min-width: 20px !important;
  height: 20px !important;
  padding: 0 6px !important;

  background: #DC2626 !important;
  color: #FFFFFF !important;

  border-radius: 999px !important;
  border: 2px solid #07070B !important;

  font-family: 'Sora', sans-serif !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  box-shadow: 0 3px 8px rgba(220, 38, 38, .55) !important;
  z-index: 100 !important;
  transform: none !important;
  margin: 0 !important;
}

.wishlist-badge[hidden] {
  display: none !important;
}
/* ═══════════════════════════════════════════
   Wishlist / Compare Page Header
   ═══════════════════════════════════════════ */
.wl-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.wl-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin: 0 0 8px;
  color: var(--text);
}
.wl-lead {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

/* ═══ Clear All Button (Small) ═══ */
.wl-clear {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255,107,157,.08);
  border: 1px solid rgba(255,107,157,.3);
  border-radius: 9px;
  color: #FF9AB8;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s;
  font-family: inherit;
  white-space: nowrap;
  line-height: 1;
}
.wl-clear:hover {
  background: #FF6B9D;
  color: #fff;
  border-color: transparent;
}
.wl-clear svg {
  width: 13px !important;
  height: 13px !important;
  min-width: 13px !important;
  min-height: 13px !important;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   Empty State (Fixed icon)
   ═══════════════════════════════════════════ */
.wl-empty {
  text-align: center;
  padding: 80px 20px;
}

.wl-empty-icon {
  width: 100px !important;
  height: 100px !important;
  min-width: 100px !important;
  max-width: 100px !important;
  min-height: 100px !important;
  max-height: 100px !important;

  margin: 0 auto 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  border-radius: 50% !important;
  background: linear-gradient(135deg, rgba(124,107,255,.12), rgba(34,211,238,.06)) !important;
  border: 1px solid rgba(124,107,255,.2) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.wl-empty-icon svg {
  display: block !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  flex: 0 0 44px !important;
  color: var(--accent-2) !important;
  opacity: .75 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.wl-empty h2 {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  margin: 0 0 10px !important;
  color: var(--text) !important;
}

.wl-empty p {
  color: var(--muted) !important;
  font-size: 15px !important;
  margin: 0 0 26px !important;
}

/* ═══════════════════════════════════════════
   Compare Table
   ═══════════════════════════════════════════ */
.cmp-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px;
}
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 700px;
}
.cmp-table th,
.cmp-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  text-align: left;
}
.cmp-table tbody tr:last-child td { border-bottom: 0; }

.cmp-label-cell {
  width: 160px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
  border-right: 1px solid var(--border);
}
.cmp-value-cell {
  color: #C4C5D6;
  font-weight: 500;
}
.cmp-value-cell.is-empty {
  color: #4A4B63;
  font-style: italic;
}

.cmp-product-cell {
  width: 240px;
  text-align: center;
  vertical-align: top;
  position: relative;
  padding-top: 40px !important;
  background: linear-gradient(180deg, rgba(124,107,255,.04), transparent 60%);
}
.cmp-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: rgba(255,107,157,.1);
  border: 1px solid rgba(255,107,157,.3);
  color: #FF6B9D;
  cursor: pointer;
  transition: all .2s;
  padding: 0;
}
.cmp-remove:hover {
  background: #FF6B9D;
  color: #fff;
  border-color: transparent;
}
.cmp-remove svg { width: 11px; height: 11px; }

.cmp-img {
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  margin: 0 auto 14px;
  border-radius: 12px;
  background: radial-gradient(circle, rgba(124,107,255,.15), transparent 70%);
  overflow: hidden;
  border: 1px solid var(--border);
}
.cmp-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cmp-img svg { width: 70%; height: auto; opacity: .6; }

.cmp-name {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  line-height: 1.4;
  margin-bottom: 8px;
  transition: color .2s;
}
.cmp-name:hover { color: var(--accent-2); }

.cmp-price {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--accent-2);
  margin-bottom: 14px;
}

.cmp-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--grad);
  color: #07070B;
  border: 0;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all .25s;
}
.cmp-add-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(124,107,255,.9);
}

/* ═══════════════════════════════════════════
   Compare Floating Bar
   ═══════════════════════════════════════════ */
.cmp-float {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: rgba(14,14,22,.96);
  border: 1px solid rgba(124,107,255,.4);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px -12px rgba(0,0,0,.9);
  transition: transform .4s cubic-bezier(.22,1,.36,1);
  max-width: calc(100% - 32px);
}
.cmp-float.is-visible {
  transform: translateX(-50%) translateY(0);
}
.cmp-float-count {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: var(--accent-2);
  white-space: nowrap;
}
.cmp-float-thumbs {
  display: flex;
  gap: 6px;
}
.cmp-float-thumb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}
.cmp-float-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cmp-float-thumb svg { width: 70%; height: auto; opacity: .5; }
.cmp-float-actions {
  display: flex;
  gap: 6px;
  margin-left: 4px;
}
.cmp-float-btn {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 0;
  font-family: inherit;
  transition: all .25s;
  white-space: nowrap;
}
.cmp-float-btn.go {
  background: var(--grad);
  color: #07070B;
  text-decoration: none;
}
.cmp-float-btn.go:hover { transform: translateY(-2px); }
.cmp-float-btn.clear {
  background: rgba(255,107,157,.1);
  color: #FF6B9D;
  border: 1px solid rgba(255,107,157,.3);
}
.cmp-float-btn.clear:hover {
  background: #FF6B9D;
  color: #fff;
}

@media (max-width: 640px) {
  .cmp-float {
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 14px;
  }
  .cmp-float-thumbs { display: none; }
  .cmp-label-cell { width: 120px; font-size: 10.5px; }
  .cmp-product-cell { width: 200px; }
}