/* ═══ N-VERSE SKELETON LOADERS 2026 ═══
   Shimmer animation for content placeholders
   while data loads from API
   ═══════════════════════════════════════ */

@keyframes skeleton-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 25%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.04) 75%
  );
  background-size: 800px 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}

/* ─── Product Card Skeleton ─── */
.skeleton-card {
  background: rgba(10, 31, 68, 0.6);
  border: 1px solid rgba(255, 215, 0, 0.1);
  border-radius: 16px;
  overflow: hidden;
}

.skeleton-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.skeleton-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-card__title {
  height: 20px;
  width: 75%;
}

.skeleton-card__text {
  height: 14px;
  width: 90%;
}

.skeleton-card__text--short {
  height: 14px;
  width: 50%;
}

.skeleton-card__price {
  height: 24px;
  width: 35%;
  margin-top: 4px;
}

.skeleton-card__btn {
  height: 42px;
  width: 100%;
  border-radius: 8px;
  margin-top: 8px;
}

/* ─── Product Detail Skeleton ─── */
.skeleton-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.skeleton-detail__gallery {
  aspect-ratio: 1;
  border-radius: 16px;
}

.skeleton-detail__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 1rem;
}

.skeleton-detail__title {
  height: 32px;
  width: 80%;
}

.skeleton-detail__desc {
  height: 14px;
  width: 100%;
}

.skeleton-detail__price-row {
  height: 28px;
  width: 30%;
}

@media (max-width: 768px) {
  .skeleton-detail {
    grid-template-columns: 1fr;
  }
}

/* ─── Cart Item Skeleton ─── */
.skeleton-cart-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: rgba(10, 31, 68, 0.4);
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.1);
}

.skeleton-cart-item__img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  flex-shrink: 0;
}

.skeleton-cart-item__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-cart-item__line {
  height: 14px;
  width: 60%;
}

.skeleton-cart-item__line--short {
  height: 14px;
  width: 30%;
}
