/* Cosmetics Finder Styles */

html {
  overflow-y: auto;
  overflow-x: hidden;
  height: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(251, 251, 251, 0.1) transparent;
}

body {
  background: transparent !important;
  padding: 0 !important;
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
}

/* ── Page Header ── */
.page-header {
  text-align: center;
  padding-top: 140px;
  margin-bottom: 2rem;
  animation: cf-fadeIn 0.8s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.page-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1px;
  margin: 0 0 0.5rem 0;
}

.page-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
  letter-spacing: 0.3px;
}

/* ── Search Section ── */
.search-section {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  padding: 0 1rem;
  animation: cf-fadeIn 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.15s both;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.search-wrapper:focus-within {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
}

.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #FBFBFB;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  padding: 16px 16px 16px 50px;
  width: 100%;
  letter-spacing: 0.2px;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.search-clear-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.35);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.search-clear-btn:hover {
  color: rgba(255, 255, 255, 0.7);
}

.search-clear-btn.hidden {
  display: none;
}

.search-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  padding: 16px 22px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.search-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #FBFBFB;
}

.search-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── Results Area ── */
.results-area {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1rem 4rem;
}

/* ── Error / Empty State ── */
.cf-message {
  text-align: center;
  padding: 3rem 1.5rem;
  animation: cf-fadeIn 0.4s ease both;
}

.cf-message-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cf-message-icon--error {
  background: rgba(246, 78, 98, 0.12);
  color: #f64e62;
}

.cf-message-icon--empty {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.35);
}

.cf-message-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #FBFBFB;
  margin: 0 0 0.4rem;
}

.cf-message-text {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* ── Skeleton Loading ── */
.cf-skeleton {
  animation: cf-fadeIn 0.3s ease both;
}

.cf-skeleton-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 2rem;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
}

.cf-skeleton-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  animation: cf-shimmer 1.8s ease-in-out infinite;
}

.cf-skeleton-lines {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 0.5rem;
}

.cf-skeleton-line {
  height: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  animation: cf-shimmer 1.8s ease-in-out infinite;
}

.cf-skeleton-line--title {
  width: 55%;
  height: 28px;
}

.cf-skeleton-line--short {
  width: 35%;
}

.cf-skeleton-line--medium {
  width: 65%;
}

.cf-skeleton-line--long {
  width: 85%;
}

/* Skeleton for grid results */
.cf-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.cf-skeleton-grid-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  overflow: hidden;
}

.cf-skeleton-grid-img {
  width: 100%;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.06);
  animation: cf-shimmer 1.8s ease-in-out infinite;
}

.cf-skeleton-grid-info {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cf-skeleton-grid-line {
  height: 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  animation: cf-shimmer 1.8s ease-in-out infinite;
}

.cf-skeleton-grid-line--name {
  width: 70%;
}

.cf-skeleton-grid-line--type {
  width: 45%;
  height: 12px;
}

@keyframes cf-shimmer {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ── Results Grid (multiple results) ── */
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  animation: cf-fadeIn 0.4s ease both;
}

.results-count {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.3px;
}

.results-back-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: none;
  align-items: center;
  gap: 6px;
}

.results-back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FBFBFB;
  border-color: rgba(255, 255, 255, 0.15);
}

.results-back-btn.visible {
  display: inline-flex;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  animation: cf-fadeIn 0.4s ease both;
}

.result-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  animation: cf-fadeIn 0.4s ease both;
  position: relative;
}

.result-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.result-card__image-wrap {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.result-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  transition: transform 0.3s ease;
}

.result-card:hover .result-card__image {
  transform: scale(1.05);
}

.result-card__image-placeholder {
  width: 48px;
  height: 48px;
  color: rgba(255, 255, 255, 0.15);
}

.result-card__series-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.result-card__info {
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.result-card__name {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #FBFBFB;
  margin: 0 0 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.result-card__type,
.result-card__rarity {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-card__type {
  color: rgba(255, 255, 255, 0.35);
}

.result-card__rarity {
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.65rem;
}

/* Rarity color classes */
.rarity--common {
  background: rgba(176, 176, 176, 0.15);
  color: #b0b0b0;
}
.rarity--uncommon {
  background: rgba(96, 170, 58, 0.15);
  color: #60aa3a;
}
.rarity--rare {
  background: rgba(73, 172, 255, 0.15);
  color: #49acff;
}
.rarity--epic {
  background: rgba(177, 91, 226, 0.15);
  color: #b15be2;
}
.rarity--legendary {
  background: rgba(211, 120, 33, 0.15);
  color: #d37821;
}
.rarity--mythic {
  background: rgba(255, 208, 56, 0.15);
  color: #ffd038;
}
.rarity--exotic {
  background: rgba(127, 209, 219, 0.15);
  color: #7fd1db;
}
.rarity--gaminglegends {
  background: rgba(128, 120, 255, 0.15);
  color: #8078ff;
}
.rarity--marvel,
.rarity--dc,
.rarity--icon,
.rarity--starwars,
.rarity--frozen,
.rarity--shadow,
.rarity--slurp,
.rarity--lava,
.rarity--dark,
.rarity--crew {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
}

/* ── Cosmetic Detail Card ── */
.cosmetic-card-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: cf-fadeIn 0.5s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.cosmetic-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 2rem;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Series gradient accent support */
.cosmetic-card.has-series-gradient {
  border-color: rgba(255, 255, 255, 0.15);
}

.cosmetic-card__series-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.cosmetic-card__left {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.cosmetic-card__image-wrap {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
}

.cosmetic-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cosmetic-card__image.is-background {
  object-fit: cover;
  padding: 0;
}

.cosmetic-card__image-placeholder {
  color: rgba(255, 255, 255, 0.15);
}

/* Image Style Switcher Tabs (Standard, LEGO, Bean, Background Art) */
.image-style-tabs {
  display: flex;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

.image-style-tab {
  flex: 1;
  min-width: 60px;
  background: none;
  border: none;
  padding: 6px 8px;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.image-style-tab:hover {
  color: #FBFBFB;
  background: rgba(255, 255, 255, 0.06);
}

.image-style-tab.is-active {
  color: #FBFBFB;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ── Card Body / Info ── */
.cosmetic-card__body {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.cosmetic-card__top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.cosmetic-card__name {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 800;
  color: #FBFBFB;
  margin: 0 0 0.15rem;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.cosmetic-card__series-emblem {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.6));
}

.cosmetic-card__id {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.3);
  margin: 0 0 0.75rem;
  letter-spacing: 0.3px;
  word-break: break-all;
}

.cosmetic-card__description {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.cosmetic-card__badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.25rem;
}

.cosmetic-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 5px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}

/* V-Bucks Price Badge */
.vbucks-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  padding: 5px 12px;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.vbucks-icon {
  width: 15px;
  height: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Series Badge with Custom Gradient */
.series-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* ── Details Grid ── */
.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.detail-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s ease;
}

.detail-item:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.detail-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.2rem;
}

.detail-value {
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  word-break: break-word;
}

/* ── Shop History Section ── */
.shop-history-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1.25rem;
  margin-top: 0.5rem;
}

.shop-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.shop-history-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #FBFBFB;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.shop-history-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.shop-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 0.75rem;
  text-align: center;
}

.shop-stat-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 0.2rem;
}

.shop-stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #FBFBFB;
}

.shop-stat-sub {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2px;
}

/* ── Showcase Video Section ── */
.showcase-video-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1.25rem;
}

.showcase-video-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.showcase-video-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #FBFBFB;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.showcase-video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  border-radius: 12px;
  overflow: hidden;
  background: #000000;
}

.showcase-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Variants Section ── */
.variants-section {
  margin-top: 1.75rem;
  animation: cf-fadeIn 0.5s ease 0.2s both;
}

.variants-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #FBFBFB;
  margin: 0 0 1rem;
  letter-spacing: 0.3px;
}

.variant-group {
  margin-bottom: 1.25rem;
}

.variant-group__name {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 0.6rem;
}

.variant-options {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.variant-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
  cursor: default;
  min-width: 72px;
  max-width: 100px;
}

.variant-option:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

.variant-option__image-wrap {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

.variant-option__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.variant-option__name {
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}

.variant-option__unlock {
  font-family: 'Outfit', sans-serif;
  font-size: 0.58rem;
  font-weight: 600;
  color: #ffd700;
  text-align: center;
  max-width: 90px;
  line-height: 1.1;
}

/* ── Gameplay Tags ── */
.tags-section {
  margin-top: 1rem;
}

.tags-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 0.5rem;
}

.tags-list {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.tag-chip {
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 3px 8px;
  word-break: break-all;
}

/* ── Animations ── */
@keyframes cf-fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .page-header {
    padding-top: 100px;
    margin-bottom: 1.5rem;
  }

  .search-section {
    margin-bottom: 2rem;
  }

  .cf-skeleton-card {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }

  .cf-skeleton-image {
    max-width: 240px;
    margin: 0 auto;
  }

  .cosmetic-card {
    grid-template-columns: 1fr;
    padding: 1.25rem;
    gap: 1.5rem;
  }

  .cosmetic-card__image-wrap {
    max-width: 280px;
    margin: 0 auto;
  }

  .cosmetic-card__name {
    font-size: 1.75rem;
  }

  .details-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .shop-history-stats {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .results-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
  }

  .cf-skeleton-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

@media (max-width: 480px) {
  .page-header {
    padding-top: 90px;
    margin-bottom: 1rem;
  }

  .cosmetic-card {
    padding: 1rem;
  }

  .cosmetic-card__image-wrap {
    max-width: 220px;
  }

  .cosmetic-card__name {
    font-size: 1.4rem;
  }

  .results-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .cf-skeleton-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .variant-options {
    gap: 0.4rem;
  }

  .variant-option {
    min-width: 60px;
    padding: 0.4rem;
  }

  .variant-option__image-wrap {
    width: 44px;
    height: 44px;
  }
}
