/* ═══════════════════════════════════════════════════════
LUNAR MINT — PREVIEW MODAL  (Style A — Split)
Image fixed on left | Info scrolls on right
═══════════════════════════════════════════════════════ */

:root {
  --lm-cyan:   #7ffcff;
  --lm-purple: #a78bfa;
  --lm-gold:   #ffd97d;
  --lm-green:  #22c55e;
  --lm-dark:   #060b18;
  --lm-border: rgba(120,180,255,0.18);
  --lm-text:   #e8f0ff;
  --lm-muted:  rgba(200,220,255,0.52);
}

/* ── Backdrop ─────────────────────────────────────────── */
.lm-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  background: rgba(6,11,24,0);
  backdrop-filter: blur(0px);
  transition: opacity .28s ease, background .28s ease, backdrop-filter .28s ease;
}
.lm-modal:not(.hidden) {
  opacity: 1;
  pointer-events: all;
  background: rgba(6,11,24,0.84);
  backdrop-filter: blur(12px);
}
.lm-modal-overlay {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

/* ── Container ────────────────────────────────────────── */
.lm-modal-container {
  position: relative;
  width: min(940px, 96vw);
  max-height: 92vh;
  background: linear-gradient(145deg, #0e1830, #0a1220);
  border: 1px solid rgba(120,180,255,0.22);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
  0 40px 100px rgba(0,0,0,0.8),
  0 0 0 1px rgba(120,180,255,0.06),
  0 0 80px rgba(127,252,255,0.03);
  transform: translateY(72px) scale(0.97);
  opacity: 0;
  transition:
    transform 0.55s cubic-bezier(0.34, 1.45, 0.64, 1),
    opacity   0.3s ease;
  z-index: 1;
}
.lm-modal:not(.hidden) .lm-modal-container {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* ── Close button ─────────────────────────────────────── */
.lm-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(120,180,255,0.2);
  background: rgba(6,11,24,0.75);
  color: rgba(200,220,255,0.6);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: all .18s ease;
}
.lm-modal-close:hover {
  background: rgba(255,70,70,0.18);
  border-color: rgba(255,70,70,0.4);
  color: #ff7070;
  transform: rotate(90deg) scale(1.1);
}

/* ── Scroll wrapper ───────────────────────────────────── */
.lm-modal-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1 1 auto;
  min-height: 0;
}
.lm-modal-scroll::-webkit-scrollbar {
  width: 0;
}

/* ══════════════════════════════════════════════════════════
STYLE A — SPLIT GRID
══════════════════════════════════════════════════════════ */

.lm-modal-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  min-height: 0;
}

/* ── IMAGE COLUMN (left) ──────────────────────────────── */
.lm-modal-image-section {
  position: relative;
  background: #060d1f;
  border-right: 1px solid rgba(120,180,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 380px;
}

/* subtle glow on right edge */
.lm-modal-image-section::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom,
  transparent,
  rgba(127,252,255,0.15) 30%,
  rgba(167,139,250,0.15) 70%,
  transparent);
  pointer-events: none;
}

.lm-modal-image-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.lm-modal-image {
  width: 100%;
  height: auto;
  max-height: 88vh;
  object-fit: contain;
  display: block;
  border-radius: 10px;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.lm-modal-image-wrap:hover .lm-modal-image {
  transform: scale(1.02);
}

/* image nav arrows */
.img-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(120,180,255,0.2);
  background: rgba(6,11,24,0.65);
  color: rgba(200,220,255,0.7);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  backdrop-filter: blur(6px);
  transition: all .15s ease;
}
.img-nav:hover {
  background: rgba(127,252,255,0.14);
  border-color: rgba(127,252,255,0.4);
  color: var(--lm-cyan);
}
.img-prev {
  left: 8px;
}
.img-next {
  right: 8px;
}

/* ── INFO COLUMN (right) ──────────────────────────────── */
.lm-modal-info {
  padding: 28px 26px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  max-height: 92vh;
}
.lm-modal-info::-webkit-scrollbar {
  width: 3px;
}
.lm-modal-info::-webkit-scrollbar-thumb {
  background: rgba(127,252,255,0.12);
  border-radius: 2px;
}

/* ── Status badge (top) ───────────────────────────────── */
.lm-modal-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid currentColor;
  width: fit-content;
  margin-bottom: 8px;
}
.lm-modal-status.open      {
  color: #22c55e;
  background: rgba(34,197,94,0.1);
}
.lm-modal-status.close,
.lm-modal-status.closed    {
  color: #ef4444;
  background: rgba(239,68,68,0.1);
}
.lm-modal-status.available {
  color: #94a3b8;
  background: rgba(148,163,184,0.1);
}
.lm-modal-status.owned     {
  color: #64748b;
  background: rgba(100,116,139,0.1);
}

/* ── Title ────────────────────────────────────────────── */
.lm-modal-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 4px;
}

/* ── Gradient divider ─────────────────────────────────── */
.lm-modal-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(127,252,255,0.55), rgba(167,139,250,0.3), transparent);
  border-radius: 1px;
  margin-bottom: 16px;
}

/* ── Description ──────────────────────────────────────── */
.lm-modal-desc {
  font-size: 13px;
  color: rgba(200,220,255,0.62);
  line-height: 1.75;
  margin-bottom: 14px;
}

/* ── Adopt details grid ───────────────────────────────── */
.lm-modal-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: rgba(120,180,255,0.04);
  border: 1px solid rgba(120,180,255,0.1);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
}
.lm-modal-detail-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.lm-modal-detail-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(200,220,255,0.32);
}
.lm-modal-detail-value {
  font-size: 13px;
  font-weight: 600;
  color: rgba(200,220,255,0.85);
}

/* ── TOS / Lore box ───────────────────────────────────── */
.lm-modal-box {
  background: rgba(167,139,250,0.05);
  border: 1px solid rgba(167,139,250,0.14);
  border-left: 2px solid rgba(167,139,250,0.45);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  transition: all .2s ease;
}
.lm-modal-box:hover {
  border-left-color: rgba(167,139,250,0.75);
  background: rgba(167,139,250,0.08);
}
.lm-modal-box h4 {
  margin: 0 0 5px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(167,139,250,0.65);
}
.lm-modal-box p {
  margin: 0;
  font-size: 12px;
  color: rgba(167,139,250,0.5);
  line-height: 1.65;
}

/* ── Tags ─────────────────────────────────────────────── */
.lm-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.lm-modal-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border: 1px solid rgba(127,252,255,0.16);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(127,252,255,0.5);
  cursor: pointer;
  transition: all .15s ease;
}
.lm-modal-tag:hover {
  color: var(--lm-cyan);
  border-color: rgba(127,252,255,0.38);
  background: rgba(127,252,255,0.06);
  transform: translateY(-1px);
}

/* ── Price block (Style A card) ───────────────────────── */
.lm-modal-price-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(127,252,255,0.06), rgba(167,139,250,0.04));
  border: 1px solid rgba(127,252,255,0.14);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 14px;
}
.lm-modal-price-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lm-modal-price-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(127,252,255,0.42);
}
.lm-modal-price {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--lm-cyan), var(--lm-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.lm-modal-payment {
  font-size: 11px;
  color: rgba(200,220,255,0.38);
  margin-top: 3px;
}
.lm-modal-payment strong {
  color: rgba(200,220,255,0.62);
}

.lm-modal-status-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.lm-modal-status-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(200,220,255,0.3);
}

/* legacy price-status row compat */
.lm-modal-price-status-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 4px;
}
.lm-modal-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}

/* ── Order button ─────────────────────────────────────── */
.lm-modal-order-btn {
  width: 100%;
  padding: 13px 24px;
  border-radius: 4px;
  border: 2px solid #1a3a5c;
  background: linear-gradient(180deg, #f7faff, #d7e7ff);
  color: #81d4fa;
  text-shadow:
    0 0 8px rgba(10, 40, 80, 0.9),
    0 0 2px rgba(10, 40, 80, 1),
    0 1px 0 rgba(0, 0, 0, 0.5);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .18s ease;
  margin-bottom: 12px;
  box-shadow:
    0 4px 0 #0f2d4a,
    0 6px 18px rgba(0, 0, 0, 0.4),
    0 0 28px rgba(125, 200, 255, 0.3);
}
.lm-modal-order-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 0 #0f2d4a,
    0 10px 28px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(125, 200, 255, 0.45);
}
.lm-modal-order-btn:active {
  transform: translateY(3px);
  box-shadow:
    0 1px 0 #0f2d4a,
    0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ── Artist row (avatar + name) ───────────────────────── */
.lm-artist-row-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(120,180,255,0.13);
  border-radius: 12px;
  cursor: pointer;
  transition: all .18s ease;
}
.lm-artist-row-preview:hover {
  border-color: rgba(127,252,255,0.28);
  background: rgba(127,252,255,0.04);
}
.lm-artist-avatar-wrap {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.lm-artist-avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(120,180,255,0.2);
  display: block;
}
.lm-artist-avatar-initial {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: #060b18;
  box-shadow: 0 0 12px rgba(127,252,255,0.2);
}
.lm-artist-row-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lm-artist-row-name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(200,220,255,0.85);
  transition: color .15s;
}
.lm-artist-row-preview:hover .lm-artist-row-name {
  color: var(--lm-cyan);
}
.lm-artist-row-sub {
  font-size: 10px;
  color: rgba(200,220,255,0.3);
  transition: color .15s;
}
.lm-artist-row-preview:hover .lm-artist-row-sub {
  color: rgba(127,252,255,0.45);
}

/* legacy compat — hide old artist text style */
.lm-modal-artist:not(.lm-artist-row-preview) {
  display: none;
}
.preview-artist-name {
  display: none;
}

/* ── Section label ────────────────────────────────────── */
.lm-modal-section-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(127,252,255,0.38);
  margin-bottom: 6px;
  margin-top: 14px;
}

/* ══════════════════════════════════════════════════════════
PRODUCT CARD OVERRIDES
══════════════════════════════════════════════════════════ */

.product-card {
  cursor: pointer;
}
.card-see-more {
  display: block;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: rgba(200,220,255,0.22);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  pointer-events: none;
  margin-bottom: 10px;
  transition: color .3s;
}
.product-card:hover .card-see-more {
  color: rgba(127,252,255,0.45);
}

.product-card .tag-list, .product-card .card-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin-bottom: 10px !important;
}
.product-card .tag {
  background: rgba(120,180,255,0.08) !important;
  color: rgba(127,252,255,0.65);
  padding: 3px 10px !important;
  border-radius: 20px !important;
  font-size: 11px !important;
  border: 1px solid rgba(120,180,255,0.18);
  transition: all .15s ease;
}
.product-card .tag.tag-clickable {
  cursor: pointer;
}
.product-card .tag.tag-clickable:hover {
  background: rgba(127,252,255,0.13) !important;
  color: var(--lm-cyan) !important;
  border-color: rgba(127,252,255,0.32);
}

.card-bottom {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  margin-top: 4px !important;
}
.card-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.card-price-text {
  font-size: 13px;
  color: rgba(200,220,255,0.42);
  font-weight: 500;
}
.card-price-text .price {
  color: #7ffcff !important;
  font-weight: 700 !important;
  font-size: 15px !important;
}

.card-price-row .status {
  font-size: 10px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  padding: 3px 10px !important;
  border-radius: 999px !important;
}
.card-price-row .status.open {
  background: rgba(34,197,94,0.12) !important;
  color: #22c55e !important;
  border: 1px solid rgba(34,197,94,0.28);
}
.card-price-row .status.sold, .card-price-row .status.closed {
  background: rgba(239,68,68,0.12) !important;
  color: #ef4444 !important;
  border: 1px solid rgba(239,68,68,0.28);
}

.product-card .artist-name {
  font-size: 12px !important;
  color: rgba(127,252,255,0.5) !important;
  margin: 0 !important;
  cursor: pointer;
  transition: color .18s;
}
.product-card .artist-name:hover {
  color: var(--lm-cyan) !important;
}

/* ══════════════════════════════════════════════════════════
RESPONSIVE
══════════════════════════════════════════════════════════ */

/* Tablet — stack vertically */
@media (max-width: 780px) {
  .lm-modal-grid {
    grid-template-columns: 1fr;
  }
.lm-modal-image-section {
  border-right: none;
  border-bottom: 1px solid rgba(120,180,255,0.12);
  min-height: auto;

}
.lm-modal-image-section::after {
  display: none;
}
.lm-modal-image-wrap {
  padding: 12px;
}
.lm-modal-image {
  max-height: 55vw;
}
.lm-modal-info {
  padding: 20px;
  max-height: none;
}
.lm-modal-title {
  font-size: 20px;
}
.lm-modal-price {
  font-size: 24px;
}
.lm-modal-details-grid {
  grid-template-columns: 1fr 1fr;
}
}

/* Mobile — sheet from bottom */
@media (max-width: 500px) {
  .lm-modal {
    padding: 0;
    align-items: flex-end;
  }
.lm-modal-container {
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-height: 95vh;
}
.lm-modal-image {
  max-height: 50vw;
}
.lm-modal-info {
  padding: 16px;
  padding-bottom: 32px;
}
.lm-modal-order-btn {
  font-size: 12px;
  padding: 12px;
}
.lm-modal-details-grid {
  grid-template-columns: 1fr 1fr;
}
.lm-modal-price {
  font-size: 22px;
}
}

/* ── Close animation ──────────────────────────────────── */
.lm-modal.closing {
  opacity: 0;
  transition: opacity .28s ease;
}
.lm-modal.closing .lm-modal-container {
  transform: translateY(40px) scale(0.96);
  transition: transform .28s cubic-bezier(0.4, 0, 1, 1), opacity .28s ease;
  opacity: 0;
}

/* ── Action bar (order + share row) ──────────────────── */
.lm-modal-action-bar {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.lm-share-tooltip-wrap {
  display: flex;
  flex-shrink: 0;
  align-self: stretch;
}
.lm-modal-share-icon-btn {
  width: 52px;
  height: auto;
  min-height: 0;
  align-self: stretch;
  padding: 0;
  flex: 0 0 52px;
}

/* ── Filter chips ─────────────────────────────────────── */
.chip-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: unset;
  padding: 2px 0;
}
.filter-section {
  margin-bottom: 12px;
}
.filter-section-label {
  margin-bottom: 6px;
}

/* ══════════════════════════════════════════════
   SHIMMER ANIMATIONS
══════════════════════════════════════════════ */

/* ── Price: looping white shimmer ────────────── */
@keyframes lmPriceShimmer {
  0%   { background-position: -150% center; }
  100% { background-position: 250% center; }
}

.lm-modal-price {
  background: linear-gradient(
    90deg,
    var(--lm-cyan)  0%,
    var(--lm-purple) 35%,
    #ffffff          50%,
    var(--lm-cyan)  65%,
    var(--lm-purple) 100%
  ) !important;
  background-size: 300% 100% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: lmPriceShimmer 2.4s linear infinite;
}

/* ── Buttons: shimmer on hover ───────────────── */
@keyframes lmBtnShimmer {
  0%   { left: -80%; }
  100% { left: 130%; }
}

.lm-modal-order-btn,
.lm-preview-share-btn {
  position: relative;
  overflow: hidden;
}

.lm-modal-order-btn::after,
.lm-preview-share-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.28),
    transparent
  );
  transform: skewX(-18deg);
  pointer-events: none;
  opacity: 0;
}

.lm-modal-order-btn:hover::after,
.lm-preview-share-btn:hover::after {
  opacity: 1;
  animation: lmBtnShimmer 0.55s ease forwards;
}

/* ── by: artist inline text below title ───────────────── */
.lm-modal-by-artist {
  margin: 0 0 4px 0;
  min-height: 0;
}
.lm-modal-by-text {
  font-size: 13px;
  color: rgba(160, 200, 255, 0.55);
  letter-spacing: 0.01em;
}
.lm-modal-by-name {
  color: #7ecfff;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
  text-decoration: none;
}
.lm-modal-by-name:hover {
  color: #a8e0ff;
  text-decoration: underline;
}
