:root {
  --backgroundLinearGradient: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.05) 100%
  );
}
.skeleton-banner-wrapper {
  position: relative;
  width: 100%;
  padding-top: 43.28%;
  background: #f0f0f0;
  overflow: hidden;
  border-radius: 4px;
}
.skeleton-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--backgroundLinearGradient);
  animation: shimmer 2s infinite linear;
  background-size: 200% 100%;
}
/* Wrapper */
.skeleton-wrapper {
  padding: 0 0;
}
/* Shimmer Animation */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
/* Generic Skeleton Block */
.skeleton {
  background: #f0f0f0;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}
.skeleton::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--backgroundLinearGradient);
  animation: shimmer 1.6s infinite linear;
  background-size: 200% 100%;
}
/* Title */
.skeleton-title {
  width: 40%;
  height: 28px;
  margin: 10px 12px;
}
/* Grid */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
/* Image */
.skeleton-img {
  width: 100%;
  padding-top: 100%;
  margin-bottom: 12px;
}
/* Text lines */
.skeleton-text {
  height: 16px;
  margin-bottom: 10px;
}
.skeleton-price {
  height: 18px;
  width: 60%;
}
.page-skeleton-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  z-index: 9999;
  overflow-y: hidden;
}
/* Product Details Page Skeleton */
/* Header */
.skeleton-header {
  position: sticky;
  top: 0;
  background: #fff;
  padding: 10px 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 100;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}
.skeleton-logo {
  width: 20%;
  height: 40px;
}
.skeleton-search {
  width: 75%;
  height: 40px;
  border-radius: 20px;
}
/* Main Content */
.skeleton-main {
  padding-bottom: 100px;
}
/* Big Product Image */
.skeleton-main-image {
  width: 100%;
  height: 280px;
  margin: 20px 0;
}
/* Thumbnail Gallery */
.skeleton-thumbnails {
  display: flex;
  gap: 15px;
  padding: 0 20px;
  margin-bottom: 30px;
}
.skeleton-thumbnail {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  flex-shrink: 0;
}
/* Product Info */
.skeleton-product-info {
  padding: 0 20px;
}
.skeleton-product-info .skeleton-title {
  width: 70%;
  height: 32px;
  margin-bottom: 20px;
}
.skeleton-product-info .skeleton-text {
  width: 100%;
  margin-bottom: 12px;
}
.skeleton-text-short {
  width: 60% !important;
}
.skeleton-product-info .skeleton-price {
  height: 24px;
  width: 40%;
  margin-top: 20px;
}
/* Category Navigation */
.skeleton-category-nav {
  display: flex;
  gap: 15px;
  padding: 15px 20px;
  overflow-x: hidden;
  white-space: nowrap;
  border-bottom: 1px solid #f0f0f0;
}
.skeleton-category-nav-right {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 15px 20px;
  overflow-x: hidden;
  white-space: nowrap;
  border-bottom: 1px solid #f0f0f0;
  position: fixed;
  top: 90px;
  right: 0;
}
.skeleton-category-item {
  height: 32px;
  width: 80px;
  border-radius: 16px;
  flex-shrink: 0;
}
/* Main Content Area for Page Skeleton */
.skeleton-page-main {
  padding: 20px;
  padding-bottom: 20px;
}
/* Grid Layout for Image Cards */
.skeleton-grid-2-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-template-rows: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
/* Card Container */
.skeleton-card {
  background: #fff;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
/* Card Image */
.skeleton-card .skeleton-img {
  width: 100%;
  padding-top: 75%;
  border-radius: 6px;
  margin-bottom: 0px;
}
/* Card Text */
.skeleton-card .skeleton-text {
  height: 16px;
  margin-top: 10px;
  margin-bottom: 10px;
  width: 100%;
}
.skeleton-card .skeleton-text-short {
  width: 60% !important;
}
/* Card Price */
.skeleton-card .skeleton-price {
  height: 18px;
  width: 40%;
  margin-top: 10px;
}
/* Profile Skeleton */
.skeleton-profile-main {
  padding: 30px 20px;
}
.skeleton-profile-section {
  max-width: 600px;
  margin: 0 auto;
  padding-top: 70px;
}
.skeleton-profile-header {
  height: 85px;
  width: 100%;
  margin-bottom: 25px;
  border-radius: 8px;
}
.skeleton-profile-line {
  height: 50px;
  width: 100%;
  margin-bottom: 15px;
  border-radius: 4px;
}
/* Home Page Skeleton */
.skeleton-home-main {
  padding: 20px;
}
.skeleton-home-section {
  width: 100%;
}
.skeleton-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  width: 100%;
}
.skeleton-home-card {
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.skeleton-home-card .skeleton-img {
  width: 100%;
  padding-top: 75%;
  margin-bottom: 15px;
  border-radius: 6px;
}
.skeleton-home-card .skeleton-text {
  height: 16px;
  margin-bottom: 10px;
  width: 100%;
}
.skeleton-home-card .skeleton-text-short {
  width: 60% !important;
}
/* Responsive Design */
@media (min-width: 769px) {
  .skeleton-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .skeleton-grid-2x2 {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
  }
}
@media (max-width: 768px) {
  .skeleton-category-nav {
    padding: 10px 15px;
    gap: 10px;
  }
  .skeleton-category-item {
    width: 70px;
    height: 28px;
  }
  .skeleton-grid-2-2 {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-template-rows: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
  }
  .skeleton-profile-main {
    padding: 20px 15px;
  }
  .skeleton-profile-header {
    height: 85px;
    margin-bottom: 25px;
  }
  .skeleton-profile-line {
    height: 50px;
    margin-bottom: 15px;
  }
}
@media (max-width: 480px) {
  .skeleton-category-nav {
    padding: 8px 10px;
    gap: 8px;
  }
  .skeleton-category-item {
    width: 60px;
    height: 24px;
  }
  .skeleton-page-main {
    padding: 15px;
    padding-right: 120px;
  }
  .skeleton-grid-2-2 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
  }
  .skeleton-profile-main {
    padding: 15px 10px;
  }
  .skeleton-profile-section {
    max-width: 100%;
  }
  .skeleton-profile-header {
    height: 85px;
    margin-bottom: 25px;
  }
  .skeleton-profile-line {
    height: 50px;
    margin-bottom: 15px;
  }
}
