/* ==========================================================================
   AUREL — Sales Pop notification widget
   Fixed-position (no layout shift) • bottom-left desktop, bottom-center mobile
   Premium: navy glass card, gold hairline, refined serif product line
   ========================================================================== */

.sales-pop {
  position: fixed;
  left: 1.25rem;
  /* Sits above the WhatsApp float button (52px + its bottom offset) */
  bottom: calc(clamp(1rem, 3vw, 1.75rem) + 52px + 0.9rem);
  z-index: 90; /* under modals/drawers (100+), above content */
  pointer-events: none;
}

.sales-pop__card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 360px;
  max-width: calc(100vw - 2.5rem);
  max-width: min(360px, calc(100dvw - 2.5rem));
  padding: 0.9rem 2.2rem 0.9rem 0.9rem;
  box-sizing: border-box;
  position: relative;
  pointer-events: auto;
  background: rgba(12, 17, 30, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(168, 139, 74, 0.3);
  border-radius: 4px;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.5),
    0 2px 10px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Gold hairline across the top — same signature as the site header */
.sales-pop__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 184, 118, 0.75) 50%, transparent 100%);
  pointer-events: none;
}

/* Steady, calm presence — no floating/bobbing motion */
.sales-pop__card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sales-pop__thumb {
  flex-shrink: 0;
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 3px;
  overflow: hidden;
  background: #ececec;
  border: 1px solid rgba(168, 139, 74, 0.35);
}

.sales-pop__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.sales-pop__body {
  min-width: 0;
  flex: 1;
}

.sales-pop__line {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.45;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.78);
}

.sales-pop__line strong {
  color: #fff;
  font-weight: 600;
}

.sales-pop__line--social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
}

.sales-pop__social-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  color: var(--color-primary, #A88B4A);
  flex-shrink: 0;
}

.sales-pop__social-icon svg {
  width: 100%;
  height: 100%;
}

.sales-pop__product {
  margin: 0.2rem 0 0;
  font-family: var(--font-heading, serif);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sales-pop__product a {
  color: #d4b876;
  text-decoration: none;
  transition: color 0.25s ease;
}

.sales-pop__product a:hover {
  color: #f0e2bc;
}

.sales-pop__variant {
  font-family: var(--font-body, sans-serif);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.sales-pop__meta {
  margin: 0.3rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.sales-pop__verified {
  display: inline-flex;
  width: 13px;
  height: 13px;
  color: #34c77b;
  flex-shrink: 0;
}

.sales-pop__verified svg {
  width: 100%;
  height: 100%;
}

.sales-pop__close {
  position: absolute;
  top: 0.4rem;
  right: 0.5rem;
  width: 1.4rem;
  height: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: color 0.2s ease, background 0.2s ease;
}

.sales-pop__close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Mobile — bottom center, ~90% width, above WhatsApp float */
@media (max-width: 767px) {
  .sales-pop {
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(max(0.85rem, env(safe-area-inset-bottom)) + 52px + 0.9rem);
    width: 90%;
  }

  .sales-pop__card {
    width: 100%;
    max-width: 100%;
  }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .sales-pop__card {
    transition: opacity 0.25s ease;
    transform: none;
  }

  .sales-pop__card.is-visible {
    transform: none;
  }
}
