/* ============================================
   ZAYRÉ — Components CSS (extra UI pieces)
============================================ */

/* ── Notification Toast ──────────────────── */
.toast-container {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: linear-gradient(135deg, rgba(45,26,11,0.95), rgba(18,10,3,0.98));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-primary);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  animation: toastIn 0.5s cubic-bezier(0.22,1,0.36,1) forwards;
  pointer-events: auto;
  white-space: nowrap;
}
.toast.removing { animation: toastOut 0.4s ease forwards; }
.toast-icon { font-size: 20px; }
.toast-gold { border-color: rgba(201,163,81,0.6); }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-10px); }
}

/* ── Wishlist heart ──────────────────────── */
.pm-wishlist { transition: all 0.3s ease; }
.pm-wishlist.wishlisted svg { fill: #c0392b; stroke: #c0392b; }

/* ── Number counter ──────────────────────── */
.stat-num.counting { animation: countUp 0.3s ease; }

/* ── Section dot pattern ─────────────────── */
.dot-pattern-dark {
  background-image: radial-gradient(circle, rgba(201,168,124,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ── Gradient separator ──────────────────── */
.gradient-sep {
  width: 80px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 20px auto;
}

/* ── Smooth scrollbar indicator ─────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(to right, var(--brown-mid), var(--gold));
  z-index: 10001;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.1s linear;
}

/* ── Image tilt wrapper ──────────────────── */
.tilt-wrapper {
  perspective: 1000px;
  transform-style: preserve-3d;
}
.tilt-inner {
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
  transform-style: preserve-3d;
}

/* ── Magnetic button effect ──────────────── */
.magnetic { display: inline-block; }

/* ── Filter count badge ──────────────────── */
.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  font-size: 10px;
  font-weight: 700;
  margin-left: 6px;
}

/* ── Scrollable note categories ─────────── */
.pm-notes-wrap {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.pm-notes-wrap::-webkit-scrollbar { display: none; }

.pm-note-pill {
  flex-shrink: 0;
  padding: 6px 14px;
  background: rgba(201,168,124,0.06);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ── Size picker ─────────────────────────── */
.size-option {
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-secondary);
  cursor: none;
  transition: var(--transition-fast);
  user-select: none;
}
.size-option.selected {
  background: rgba(201,163,81,0.1);
  border-color: var(--gold);
  color: var(--gold);
}

/* ── Accord/Notes visualization ─────────── */
.accord-bar-wrap { margin-bottom: 8px; }
.accord-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); margin-bottom: 5px; }
.accord-bar { height: 4px; background: rgba(201,168,124,0.12); border-radius: 2px; overflow: hidden; }
.accord-fill { height: 100%; background: linear-gradient(to right, var(--brown-mid), var(--gold)); border-radius: 2px; transition: width 1s cubic-bezier(0.22,1,0.36,1) 0.3s; width: 0; }
.accord-fill.animate { }

/* ── Quick view badge ────────────────────── */
.qv-badge {
  position: absolute;
  bottom: 70px;
  right: 12px;
  width: 40px;
  height: 40px;
  background: rgba(10,7,4,0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: var(--transition);
}
.product-card:hover .qv-badge { opacity: 1; transform: scale(1); }

/* ── Perfume note pyramid ─────────────────── */
.notes-pyramid { text-align: center; padding: 16px 0; }
.notes-pyramid-row { display: flex; justify-content: center; gap: 8px; margin-bottom: 8px; }
.notes-pyramid-label { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.note-bubble {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: rgba(201,168,124,0.04);
}
.note-bubble.top { border-color: rgba(201,163,81,0.4); color: var(--gold); }
.note-bubble.mid { border-color: var(--border-strong); }

/* ── Full-page overlay lock ──────────────── */
body.locked { overflow: hidden; }

/* ── Animation for product card entrance ── */
.product-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color var(--transition), box-shadow var(--transition);
}
.product-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.product-card:hover {
  transform: translateY(-6px) !important;
}

/* ── Scroll progress bar ─────────────────── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(to right, var(--brown-mid), var(--gold));
  z-index: 10001;
  width: 0%;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ── Loading skeleton for product grid ───── */
.product-skeleton {
  background: linear-gradient(145deg, rgba(30,18,6,0.8), rgba(18,10,3,0.9));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.skel-img {
  aspect-ratio: 3/4;
  background: linear-gradient(90deg, rgba(201,168,124,0.04) 25%, rgba(201,168,124,0.09) 50%, rgba(201,168,124,0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s ease infinite;
}
.skel-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.skel-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(201,168,124,0.05) 25%, rgba(201,168,124,0.1) 50%, rgba(201,168,124,0.05) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s ease infinite;
}
.skel-line.w-60 { width: 60%; }
.skel-line.w-80 { width: 80%; }
.skel-line.w-40 { width: 40%; }
