/* ============================================================
   EMPTY STATE — shared component for wishlist & cart
   ============================================================ */

.empty-state {
  position: relative;
  padding: 56px 24px 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.empty-state__bg {
  position: absolute;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
  font-family: 'English111VivaceBT', cursive;
  font-size: 360px;
  line-height: 1;
  color: var(--ink);
  opacity: .035;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.empty-state__inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Medallion ── */
.empty-state__medallion {
  position: relative;
  width: 188px;
  height: 188px;
  border-radius: 50%;
  padding: 7px;
  margin-bottom: 34px;
  background: var(--paper);
  box-shadow: 0 26px 60px -32px rgba(15, 14, 12, .42);
}

.empty-state__ring {
  position: absolute;
  inset: -11px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  opacity: .7;
  pointer-events: none;
}

.empty-state__disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  background: var(--cream-2, #EFEAE2);
}

.empty-state__disc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9) brightness(1.02);
  display: block;
}

.empty-state__disc::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(120% 120% at 50% 18%, transparent 38%, rgba(245, 243, 240, .55) 100%);
  pointer-events: none;
}

.empty-state__badge {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent);
  display: grid;
  place-items: center;
  border: 4px solid var(--cream);
}

/* ── Typography ── */
.empty-state__title {
  font-family: 'Cormorant', serif;
  font-weight: 400;
  font-size: 44px;
  line-height: 1.04;
  margin: 0 0 16px;
  color: var(--ink);
}

.empty-state__text {
  font-size: 16px;
  line-height: 1.62;
  color: var(--muted);
  max-width: 46ch;
  margin: 0 auto 26px;
  text-wrap: pretty;
}

/* ── Promise with hairlines ── */
.empty-state__promise {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 36px;
  color: var(--ink-2);
}

.empty-state__promise::before,
.empty-state__promise::after {
  content: '';
  width: 46px;
  height: 1px;
  background: var(--line-2);
  flex-shrink: 0;
}

.empty-state__promise span {
  font-family: 'Cormorant', serif;
  font-style: italic;
  font-size: 21px;
  white-space: nowrap;
}

/* ── CTA ── */
.empty-state__cta {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.empty-state__cta .btn {
  white-space: nowrap;
}

/* ── Hint ── */
.empty-state__hint {
  margin-top: 22px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ── Animation ── */
@media (prefers-reduced-motion: no-preference) {
  .empty-state__medallion {
    animation: esMedallionIn .55s ease-out both;
  }

  .empty-state__title,
  .empty-state__text,
  .empty-state__promise,
  .empty-state__cta,
  .empty-state__hint {
    animation: esFadeUp .5s ease-out both;
  }

  .empty-state__text    { animation-delay: .07s; }
  .empty-state__promise { animation-delay: .13s; }
  .empty-state__cta     { animation-delay: .19s; }
  .empty-state__hint    { animation-delay: .25s; }

  @keyframes esMedallionIn {
    from { opacity: 0; transform: scale(.88); }
    to   { opacity: 1; transform: scale(1); }
  }

  @keyframes esFadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .empty-state {
    padding: 40px 20px 56px;
  }

  .empty-state__bg {
    font-size: 140px;
    opacity: .04;
  }

  .empty-state__medallion {
    width: 138px;
    height: 138px;
    margin-bottom: 26px;
  }

  .empty-state__badge {
    width: 46px;
    height: 46px;
  }

  .empty-state__badge svg {
    width: 18px;
    height: 18px;
  }

  .empty-state__title {
    font-size: 30px;
  }

  .empty-state__text {
    font-size: 14px;
    max-width: 30ch;
  }

  .empty-state__promise span {
    font-size: 16px;
  }

  .empty-state__promise::before,
  .empty-state__promise::after {
    width: 26px;
  }

  .empty-state__cta {
    flex-direction: column;
    width: 100%;
  }

  .empty-state__cta .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 390px) {
  .empty-state {
    padding: 32px 16px 48px;
  }

  .empty-state__title {
    font-size: 26px;
  }

  .empty-state__text {
    font-size: 13px;
  }

  .empty-state__promise span {
    font-size: 14px;
    white-space: normal;
    text-align: center;
  }

  .empty-state__promise::before,
  .empty-state__promise::after {
    width: 16px;
  }

  .empty-state__hint {
    font-size: 10px;
    letter-spacing: .08em;
    white-space: normal;
    text-align: center;
  }

  .empty-state__cta .btn {
    padding-left: 16px;
    padding-right: 16px;
    font-size: 13px;
  }
}
