/* Shop modal with feminine design */
#shop-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2147483647;
  pointer-events: none;
}

#shop-modal.open {
  display: block;
}

.shop-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(107, 91, 127, 0.5);
  backdrop-filter: blur(8px);
  pointer-events: auto;
}

.shop-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, 92vw);
  background: linear-gradient(135deg, #f5d4e8 0%, #e8d5f2 100%);
  color: #6b5b7f;
  border: 4px solid #d8b5d3;
  box-shadow: 0 20px 40px rgba(107, 91, 127, 0.25), 0 0 0 2px #faf6f1;
  display: grid;
  grid-template-rows: auto auto 1fr;
  pointer-events: auto;
  border-radius: 24px;
  overflow: hidden;
}

.shop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 3px solid #d8b5d3;
  background: linear-gradient(135deg, #f4d4e8 0%, #e8d5f2 100%);
}

.shop-header .close {
  border-color: #d8b5d3;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #6b5b7f;
  font-weight: bold;
}

.shop-header .close:hover {
  background: rgba(232, 76, 122, 0.2);
}

.shop-header .shop-mcap {
  font-size: 12px;
  color: #e84c7a;
  font-weight: bold;
}

.shop-meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: #6b5b7f;
}

.shop-note {
  font-size: 11px;
  color: #e84c7a;
  padding: 8px 12px;
  border-bottom: 2px solid #d8b5d3;
  background: rgba(244, 212, 232, 0.5);
}

.shop-list {
  padding: 10px;
  display: grid;
  gap: 8px;
  background: rgba(250, 246, 241, 0.8);
  max-height: 300px;
  overflow-y: auto;
}

.shop-row {
  display: grid;
  grid-template-columns: 1fr 110px 90px;
  gap: 8px;
  align-items: center;
  padding: 10px;
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid #d8b5d3;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.shop-row:hover {
  background: rgba(245, 212, 232, 0.4);
  box-shadow: 0 4px 12px rgba(232, 76, 122, 0.1);
}

.shop-name {
  font-size: 12px;
  color: #6b5b7f;
  font-weight: bold;
}

.shop-desc {
  font-size: 10px;
  color: #8b7b9f;
  margin-top: 4px;
}

.shop-cost {
  font-size: 12px;
  color: #e84c7a;
  text-align: right;
  font-weight: bold;
}

.shop-row .btn {
  font: inherit;
  color: #fff;
  background: linear-gradient(135deg, #e84c7a, #f5a5c5);
  border: 2px solid #e84c7a;
  padding: 8px 10px;
  cursor: pointer;
  border-radius: 10px;
  text-align: center;
  transition: all 0.2s ease;
  font-size: 11px;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(232, 76, 122, 0.2);
}

.shop-row .btn:hover {
  background: linear-gradient(135deg, #f5a5c5, #e84c7a);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(232, 76, 122, 0.3);
}

.shop-row .btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(232, 76, 122, 0.2);
}

.shop-row .btn.disabled {
  opacity: 0.5;
  pointer-events: none;
  filter: grayscale(1);
}

.shop-locked {
  padding: 10px;
  border: 2px dashed #d8b5d3;
  font-size: 12px;
  color: #8b7b9f;
  background: rgba(232, 213, 242, 0.3);
  border-radius: 12px;
  text-align: center;
}
