/* Cosmetics Stylesheet for WarpVisuals */

.cosmetics-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px 40px 10px;
}

/* Category Filter Tabs */
.cosmetics-filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0 16px 0;
  margin-bottom: 20px;
}

.cosmetics-filter-bar::-webkit-scrollbar {
  display: none;
}

.cosmetics-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #a1a1aa;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.cosmetics-filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}

.cosmetics-filter-btn.active {
  background: linear-gradient(135deg, #FF4D6A, #FF7A8F);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(255, 77, 106, 0.35);
}

/* Category Blocks */
.cosmetics-category-block {
  margin-bottom: 45px;
}

.cosmetics-cat-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.cosmetics-cat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 77, 106, 0.1);
  color: #FF4D6A;
  border: 1px solid rgba(255, 77, 106, 0.2);
  flex-shrink: 0;
}

.cosmetics-cat-icon svg {
  width: 18px;
  height: 18px;
}

.cosmetics-filter-btn svg {
  width: 14px;
  height: 14px;
  vertical-align: middle;
}

.cosmetics-cat-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #f4f4f5;
  margin-right: 12px;
}

.cosmetics-cat-badge {
  font-size: 12px;
  color: #71717a;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 600;
}

/* Cosmetics Grid */
.cosmetics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

/* Card - Exact PulseVisuals color #0f0f12 (15, 15, 18) */
.cosmetic-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #0f0f12 !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 18px 14px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
}

.cosmetic-card:hover {
  background-color: #0f0f12 !important;
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.cosmetic-preview-box {
  position: relative;
  width: 100%;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0f0f12 !important;
  z-index: 1;
}

.cosmetic-preview-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.cosmetic-card:hover .cosmetic-preview-img {
  transform: scale(1.06);
}

.cosmetic-info-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
  z-index: 1;
}

.cosmetic-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.4;
}

.cosmetic-control-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

/* Beautiful Smooth Switch Toggle with Red/Accent Glow */
.cosmetic-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  cursor: pointer;
  transition: background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  user-select: none;
}

.cosmetic-switch:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
}

.cosmetic-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #f4f4f5;
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.cosmetic-switch.active {
  background: linear-gradient(135deg, #FF4D6A, #FF7A8F);
  border-color: #FF4D6A;
  box-shadow: 0 0 14px rgba(255, 77, 106, 0.45);
}

.cosmetic-switch.active::after {
  transform: translateX(20px);
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.cosmetic-sound-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f4f4f5;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cosmetic-sound-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}
