/**
 * Cosmetics hub — shop / inventory / showcase.
 */

body.hw-cosmetics-page {
  overflow-x: clip;
  background:
    radial-gradient(ellipse 70% 45% at 12% 0%, rgba(184, 92, 58, 0.12), transparent 55%),
    radial-gradient(ellipse 55% 40% at 90% 8%, rgba(90, 120, 140, 0.08), transparent 50%),
    var(--hw-fe-canvas, var(--hw-fe-bg, #f7f3ed));
  color: var(--hw-fe-text, #211b16);
}

body.hw-cosmetics-page .site,
body.hw-cosmetics-page #wrapper,
body.hw-cosmetics-page .site-content,
body.hw-cosmetics-page #content,
body.hw-cosmetics-page .content-bg,
body.hw-cosmetics-page .entry-content,
body.hw-cosmetics-page .entry-content-wrap,
body.hw-cosmetics-page article.page {
  background: transparent !important;
  box-shadow: none !important;
}

.hw-cosmetics {
  --hw-cos-ink: var(--hw-fe-text, #211b16);
  --hw-cos-soft: var(--hw-fe-text-soft, #5c564e);
  --hw-cos-muted: var(--hw-fe-muted, #8a8379);
  --hw-cos-line: var(--hw-fe-border, #e4ded4);
  --hw-cos-panel: var(--hw-fe-elevated, #fcfaf7);
  --hw-cos-flame: var(--hw-fe-accent, #b85c3a);
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: calc(var(--hw-global-nav-h, 68px) + 1.75rem) 0 3.5rem;
  color: var(--hw-cos-ink);
  font-family: var(--hw-fe-font-ui, "DM Sans", system-ui, sans-serif);
}

.hw-cosmetics__eyebrow {
  margin: 0 0 0.35rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--hw-cos-flame);
}

.hw-cosmetics__title {
  margin: 0 0 0.4rem;
  font-family: var(--hw-fe-font-display, "Playfair Display", Georgia, serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hw-cosmetics__lead {
  margin: 0 0 1rem;
  max-width: 40rem;
  color: var(--hw-cos-soft);
  line-height: 1.5;
}

.hw-cosmetics__balances {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.hw-cosmetics__bal-sep {
  color: var(--hw-cos-muted);
}

.hw-cosmetics__wallet-link {
  margin-left: 0.5rem;
  color: var(--hw-cos-flame);
  font-weight: 600;
  text-decoration: none;
}

.hw-cosmetics__wallet-link:hover {
  text-decoration: underline;
}

.hw-cosmetics__msg {
  margin: 0.5rem 0 0;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--hw-cos-line);
  background: rgba(184, 92, 58, 0.08);
  color: var(--hw-cos-ink);
}

.hw-cosmetics__msg.is-ok {
  border-color: rgba(90, 140, 100, 0.35);
  background: rgba(90, 140, 100, 0.1);
}

.hw-cosmetics__guest-card {
  max-width: 28rem;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--hw-cos-line);
  background: var(--hw-cos-panel);
  text-align: center;
}

.hw-cosmetics__cta {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  background: var(--hw-cos-flame);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.hw-cosmetics__layout {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (max-width: 800px) {
  .hw-cosmetics__layout {
    grid-template-columns: 1fr;
  }
}

.hw-cosmetics__rail {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

@media (max-width: 800px) {
  .hw-cosmetics__rail {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.hw-cosmetics__rail-link {
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  color: var(--hw-cos-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.hw-cosmetics__rail-link.is-active,
.hw-cosmetics__rail-link:hover {
  background: rgba(184, 92, 58, 0.1);
  color: var(--hw-cos-ink);
}

.hw-cosmetics__panel-head h2 {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
}

.hw-cosmetics__panel-head p {
  margin: 0 0 1rem;
  color: var(--hw-cos-soft);
  font-size: 0.95rem;
}

.hw-cosmetics__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.hw-cosmetics__filters select {
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--hw-cos-line);
  background: var(--hw-cos-panel);
  color: var(--hw-cos-ink);
  font: inherit;
}

.hw-cosmetics__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.hw-cosmetics__card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid var(--hw-cos-line);
  background: var(--hw-cos-panel);
  overflow: hidden;
}

.hw-cosmetics__card--pack {
  overflow: visible;
}

.hw-cosmetics__card-preview {
  height: 88px;
  background:
    radial-gradient(circle at 30% 40%, rgba(224, 112, 64, 0.35), transparent 55%),
    linear-gradient(145deg, #2a1c16, #1a1210);
}

.hw-cosmetics__pack-preview {
  position: relative;
  height: 168px;
  overflow: visible;
  background: #1a1410;
}

.hw-cosmetics__pack-scene {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hw-cosmetics__pack-avatar {
  --hw-avatar-box: 3.35rem;
  position: absolute !important;
  left: 0.85rem;
  bottom: 0.75rem;
  z-index: 2;
}

.hw-cosmetics__card-blurb {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--hw-cos-soft);
}

.hw-cosmetic-preview--gilded-ember {
  background:
    radial-gradient(circle at 50% 30%, rgba(212, 175, 55, 0.45), transparent 50%),
    linear-gradient(145deg, #3a2a12, #1a1210);
}

.hw-cosmetic-preview--night {
  background: linear-gradient(145deg, #0a0b0d, #1a2030);
}

.hw-cosmetic-preview--seasonal-wash {
  background:
    radial-gradient(ellipse at 50% 80%, rgba(184, 92, 58, 0.3), transparent 60%),
    linear-gradient(180deg, #c4b8a8, #8a7460);
}

.hw-cosmetics__card-body {
  padding: 0.85rem 0.95rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.hw-cosmetics__card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
}

.hw-cosmetics__card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0;
}

.hw-cosmetics__pill {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--hw-cos-line);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--hw-cos-soft);
  text-transform: capitalize;
}

.rarity-legendary .hw-cosmetics__pill:first-child,
.rarity-epic .hw-cosmetics__pill:first-child {
  border-color: rgba(184, 92, 58, 0.45);
  color: var(--hw-cos-flame);
}

.hw-cosmetics__season,
.hw-cosmetics__earn,
.hw-cosmetics__owned {
  margin: 0;
  font-size: 0.85rem;
  color: var(--hw-cos-muted);
  font-weight: 600;
}

.hw-cosmetics__card-actions {
  margin-top: auto;
  padding-top: 0.35rem;
}

.hw-cosmetics__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--hw-cos-line);
  background: var(--hw-cos-panel);
  color: var(--hw-cos-ink);
  font: inherit;
  font-weight: 650;
  font-size: 0.88rem;
  cursor: pointer;
}

.hw-cosmetics__btn:hover {
  border-color: rgba(184, 92, 58, 0.45);
}

.hw-cosmetics__btn--buy,
.hw-cosmetics__btn--ember {
  background: var(--hw-cos-flame);
  border-color: transparent;
  color: #fff;
}

.hw-cosmetics__btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.hw-cosmetics__empty {
  color: var(--hw-cos-muted);
}

.hw-cosmetics__showcase-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.hw-cosmetics__showcase-slot {
  min-height: 4.5rem;
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px dashed var(--hw-cos-line);
  background: rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hw-cosmetics__showcase-empty {
  color: var(--hw-cos-muted);
  font-size: 0.9rem;
}

.hw-cosmetics__hint {
  margin: 0 0 0.75rem;
  color: var(--hw-cos-soft);
  font-size: 0.9rem;
}

.hw-cosmetics__showcase-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin-bottom: 1rem;
}

.hw-cosmetics__pick {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.hw-cosmetics-showcase {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.hw-cosmetics-showcase__label {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 650;
  opacity: 0.75;
}

.hw-cosmetics-showcase__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hw-cosmetics-showcase__item {
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.hw-cosmetics-showcase__name {
  font-size: 0.88rem;
  font-weight: 650;
}

.hw-cosmetics-showcase__acq {
  font-size: 0.7rem;
  opacity: 0.7;
}
