/* Items Grid Sidebar (Right) */
.items-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}

.items-count {
  font-size: 12px;
  color: var(--text-secondary);
}

.items-grid-container {
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 4px;
}

.items-grid-container.is-dragging,
.items-grid-container.is-dragging *,
#categories-nav.is-dragging,
#categories-nav.is-dragging * {
  cursor: grabbing !important;
  user-select: none !important;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding-top: 4px;
  padding-bottom: 16px;
}

.items-sidebar.grid-cols-3 .items-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* Item Card styling */
.item-card {
  background: #ffecec;
  border: 1.5px solid #bf848e;
  border-radius: var(--radius-md);
  padding: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  transition: var(--transition-smooth);
  overflow: hidden;
  box-shadow: 2px 3px 0px rgba(191, 132, 142, 0.3);
}

.item-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: 0;
}

.item-card:hover,
.item-card:active {
  transform: translateY(-4px);
  border-color: var(--accent-pink);
  box-shadow: 3px 4px 0px rgba(191, 132, 142, 0.45);
}

.item-card.equipped {
  border-color: var(--accent-pink);
  box-shadow: 2px 3px 0px var(--accent-pink);
  background: #fff2f5;
}

.item-card.equipped::before {
  opacity: 0.03;
}

.item-thumb-wrapper {
  width: 100%;
  aspect-ratio: 1;
  background: #fef7fa;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid #eda1ba;
}

.item-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.item-card:hover .item-thumb {
  transform: scale(1.1);
}

.item-name {
  font-size: 11px;
  font-weight: 500;
  color: #844646;
  text-align: center;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  height: 2.4em; /* line-height 1.2 * 2 = 2.4em to maintain consistent grid heights */
  width: 100%;
  position: relative;
  z-index: 1;
}

.equipped-indicator {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--accent-pink);
  color: white;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 10px;
  font-weight: bold;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(74, 62, 61, 0.15);
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Accessory Visual Section Headers */
.grid-section-header {
  grid-column: 1 / -1;
  font-size: 11px;
  font-weight: bold;
  margin-top: 14px;
  margin-bottom: 4px;
  color: #844646;
  border-bottom: 1.5px dashed #bf848e;
  padding-bottom: 3px;
  text-align: left;
  width: 100%;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Locked item cards */
.item-card.locked {
  cursor: pointer;
  background: #f3e5e7;
  border-color: #c7abb0;
  box-shadow: 2px 3px 0px rgba(199, 171, 176, 0.35);
}

.item-card.locked .item-thumb {
  filter: grayscale(0.8) contrast(0.85) brightness(0.9);
  opacity: 0.7;
}

.lock-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  background: linear-gradient(135deg, #a78bfa, #f472b6); /* Y2K style lavender/pink gradient */
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: var(--radius-sm);
  z-index: 2;
  box-shadow: 0 2px 6px rgba(244, 114, 182, 0.2);
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.lock-badge.review-lock-badge {
  font-size: 8px;
  padding: 2px 5px;
  gap: 1.5px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b); /* Gold/orange gradient */
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.35);
}

.lock-badge.review-lock-badge svg {
  width: 8px;
  height: 8px;
}


