/* ===============================
LM CARD - FINAL DARK VERSION
================================ */

.lm-card {
  background: linear-gradient(145deg, #0f1b35, #0c152b);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(120,180,255,0.25);
  display: flex;
  flex-direction: column;
  box-shadow:
  0 10px 30px rgba(0,0,0,0.6),
  0 0 40px rgba(120,180,255,0.08);
  /* enter animation */
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition:
  opacity 0.5s ease,
  transform 0.55s cubic-bezier(0.34, 1.45, 0.64, 1),
  border-color 0.25s ease,
  box-shadow 0.25s ease;
  will-change: transform, opacity;
  width: 100%;
}

/* After IntersectionObserver trigger */
.lm-card.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.lm-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(120,180,255,0.55);
  box-shadow:
  0 20px 50px rgba(0,0,0,0.75),
  0 0 60px rgba(120,180,255,0.18),
  inset 0 0 0 1px rgba(120,180,255,0.1);
}

/* HEADER */
.lm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* this aligns items */

  padding-bottom: 10px;
  margin-bottom: 12px;

  border-bottom: 1px solid rgba(120,180,255,0.15);
}

.lm-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

/* STATUS */
.lm-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 4px 12px;
  /* flatter */
  height: 26px;
  /* force small height */
  line-height: 1;

  border-radius: 999px;
  font-size: 11px;
  /* reduce font size */
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.lm-status.open {
  background: rgba(34,197,94,0.15);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,0.4);
  box-shadow: 0 0 15px rgba(34,197,94,0.4);
}

.lm-status.close {
  background: rgba(239,68,68,0.15);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,0.4);
  box-shadow: 0 0 15px rgba(239,68,68,0.4);
}

.lm-status.available {
  background: rgba(34,197,94,0.15);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,0.4);
  box-shadow: 0 0 15px rgba(34,197,94,0.4);
}

/* IMAGE */
.lm-img-wrap {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  background: #0a1327;
  border: 1px solid rgba(120,180,255,0.2);
  aspect-ratio: 1 / 1;
  position: relative;
}

.lm-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  transition: 0.4s ease;
}

.lm-card:hover .lm-img {
  transform: scale(1.07);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lm-img {
  transition: transform 0.4s ease;
}

/* DESCRIPTION */
.lm-desc {
  font-size: 13px;
  color: rgba(200,220,255,0.7);
  line-height: 1.6;
  margin-bottom: 12px;

  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  /* number of rows */
  -webkit-box-orient: vertical;
}

/* TAGS */
.lm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.lm-tag {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(120,180,255,0.12);
  border: 1px solid rgba(120,180,255,0.35);
  color: #7ffcff;
}

/* PRICE BOX */
.lm-price-box {
  margin-bottom: 14px;
}

.lm-price-label {
  font-size: 12px;
  color: rgba(200,220,255,0.6);
  margin-bottom: 4px;
}

.lm-price {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #7ffcff, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lm-payment {
  margin-top: 4px;
  /* spacing from price */
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  /* abu transparan */
}

.lm-payment strong {
  color: #fff;
  /* clear white method */
}

/* FOOTER */
.lm-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(120,180,255,0.15);
  padding-top: 12px;
  margin-top: auto;  /* stick to bottom */
  padding-top: 14px; /* breathing room from border */
}

.lm-artist {
  font-size: 13px;
  color: #9ffcff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

.lm-artist:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(127,252,255,0.8);
}

.lm-artist-label {
  color: rgba(200,220,255,0.5);
  margin-right: 4px;
}

.lm-artist-name {
  color: #7ffcff;
  transition: 0.3s ease;
}

.lm-artist:hover .lm-artist-name {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(127,252,255,0.8);
}

.lm-see-more {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(200,220,255,0.6);
  transition: 0.3s ease;
}

.lm-see-more:hover {
  color: #ffffff;
}



/* Tablet */
@media (min-width: 600px) {
  
}

/* Desktop — always max 3 columns */
@media (min-width: 960px) {
  
}
/* ==============================
OWNED STATUS - CARD DISABLED
============================== */

.lm-status.owned {
  background: rgba(120,120,120,0.15);
  color: #888;
  border: 1px solid rgba(120,120,120,0.35);
  box-shadow: none;
}

.card-owned {
  cursor: not-allowed !important;
  opacity: 0.6;
  filter: grayscale(50%);
  pointer-events: none;
}

/* Close preview button remains clickable (override pointer-events) */
.card-owned .lm-see-more {
  display: none;
}

/* ═══════════════════════════════════════════════
   USER CHIP — header kanan atas semua halaman produk
═══════════════════════════════════════════════ */
.lm-user-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px 5px 5px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(127,252,255,0.15);
  border-radius: 40px; cursor: pointer;
  transition: all .2s;
  max-width: 160px;
}
.lm-user-chip:hover {
  background: rgba(127,252,255,0.08);
  border-color: rgba(127,252,255,0.3);
}
.lm-user-chip-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(127,252,255,0.2);
  flex-shrink: 0;
}
.lm-user-chip-name {
  font-size: 12.5px; font-weight: 600;
  color: rgba(255,255,255,0.8);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lm-login-btn {
  font-size: 12px !important;
  padding: 6px 14px !important;
  background: rgba(127,252,255,0.08) !important;
  border: 1px solid rgba(127,252,255,0.2) !important;
  border-radius: 8px !important;
  color: #7ffcff !important;
  text-decoration: none;
  font-weight: 600 !important;
  transition: all .2s;
}
.lm-login-btn:hover { background: rgba(127,252,255,0.16) !important; }

/* ═══════════════════════════════════════════════
   ARTIST CHIPS — di footer card produk
═══════════════════════════════════════════════ */
.lm-artist-chips {
  display: flex; flex-wrap: wrap; gap: 4px;
  align-items: center; flex: 1;
  min-width: 0;
}
.lm-artist-chip {
  display: inline-flex; align-items: center;
  border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(127,252,255,0.15);
  background: rgba(127,252,255,0.05);
  font-size: 11px; max-width: 140px;
}
.lm-artist-chip-name {
  padding: 3px 8px 3px 9px;
  background: none; border: none;
  color: rgba(200,240,255,0.8);
  font-size: 11px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 90px; transition: color .15s;
}
.lm-artist-chip-name:hover { color: #7ffcff; }
.lm-artist-chip-profile {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; flex-shrink: 0;
  background: rgba(127,252,255,0.1);
  border-left: 1px solid rgba(127,252,255,0.15);
  color: rgba(127,252,255,0.6);
  font-size: 9px; text-decoration: none;
  transition: all .15s;
}
.lm-artist-chip-profile:hover {
  background: rgba(127,252,255,0.2);
  color: #7ffcff;
}

/* ── Report button on card (legacy) ──────────────────────────── */
.lm-report-btn-wrap {
  display: inline-flex;
}

/* ── Global report button (next to currency) ─────── */
.lm-report-global-btn {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 8px;
  color: rgba(252,165,165,0.7);
  cursor: pointer;
  padding: 6px 10px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-width: 36px;
  transition: all .2s;
  flex-shrink: 0;
}
.lm-report-global-btn:hover {
  background: rgba(239,68,68,0.16);
  color: #fca5a5;
}

/* ── Currency slot layout ─────────────────────────── */
.lm-currency-slot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ── Force 1 col on mobile ─────────────────────────── */


/* ── Artist box badge tiers ─────────────────────────── */
/* Rising  — subtle */
.lm-artist-box[data-badge="rising"] {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
}
/* Trusted — soft purple */
.lm-artist-box[data-badge="trusted"] {
  border-color: rgba(167,139,250,0.45);
  background: rgba(167,139,250,0.07);
  box-shadow: 0 0 8px rgba(167,139,250,0.12);
}
.lm-artist-box[data-badge="trusted"] button {
  color: #a78bfa;
  font-weight: 600;
}
/* Premium — cyan glow */
.lm-artist-box[data-badge="premium"] {
  border-color: rgba(127,252,255,0.5);
  background: linear-gradient(135deg, rgba(127,252,255,0.09), rgba(100,200,255,0.05));
  box-shadow: 0 0 10px rgba(127,252,255,0.18);
}
.lm-artist-box[data-badge="premium"] button { color: #7ffcff; font-weight: 700; }

/* Elite — gold, double border */
.lm-artist-box[data-badge="elite"] {
  border-color: rgba(251,191,36,0.55);
  background: linear-gradient(135deg, rgba(251,191,36,0.10), rgba(255,220,100,0.05));
  box-shadow: 0 0 14px rgba(251,191,36,0.22);
  outline: 1px solid rgba(251,191,36,0.2);
  outline-offset: 2px;
}
.lm-artist-box[data-badge="elite"] button { color: #fbbf24; font-weight: 700; }

/* ═══ MOBILE: FORCE 1 COLUMN ═══ */
@media screen and (max-width: 768px) {
  
}

/* ══ PRODUCT GRID — definitive ══════════════════════ */
#product-list {
  display: grid;
  gap: 24px;
  padding: 0 0 24px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  grid-template-columns: 1fr;
}
/* Tablet 640px+ → 2 col */
@media (min-width: 640px) {
  #product-list { grid-template-columns: repeat(2, 1fr); }
}
/* Desktop 1024px+ → 3 col */
@media (min-width: 1024px) {
  #product-list { grid-template-columns: repeat(3, 1fr); }
}
/* Hard override: phones always 1 col */
@media (max-width: 639px) {
  #product-list { grid-template-columns: 1fr !important; }
}

/* ── Estimate badge ── */
.lm-estimate {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: rgba(127,252,255,0.55);
  margin-top: 4px; font-weight: 600;
}
.lm-estimate i { font-size: 10px; }
