/* ProductSkeleton.css */

/* Skeleton Container */
.skeleton-loading {
    animation: skeletonFadeIn 0.3s ease;
}

@keyframes skeletonFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Base Skeleton Box */
.skeleton-box {
    position: relative;
    background: #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

/* Shimmer Effect */
.skeleton-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.6) 50%,
        transparent 100%
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Product Image Skeleton */
.pro_item .pro_img.skeleton-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #e0e0e0;
    border-radius: 8px;
}

/* Brand Name (h6) Skeleton */
.skeleton-h6 {
    width: 90px;
    height: 18px;
    margin-bottom: 10px;
}

/* Product Name (p) Skeleton */
.skeleton-p {
    width: 100%;
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-p-short {
    width: 65%;
}

/* Price Skeleton */
.skeleton-price {
    width: 140px;
    height: 28px;
    margin-bottom: 12px;
}

/* Stars Skeleton */
.skeleton-stars {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.skeleton-star {
    width: 16px;
    height: 16px;
    border-radius: 2px;
}

.skeleton-rating {
    width: 120px;
    height: 14px;
    margin-left: 8px;
}

/* Buttons Skeleton */
.pro_btn .skeleton-button {
    flex: 1;
    height: 45px;
    border-radius: 8px;
}

.pro_btn .skeleton-heart {
    width: 45px;
    height: 45px;
    border-radius: 8px;
}

/* Loading State for Grid */
.row.loading {
    pointer-events: none;
}

/* Alternative: Pulse Animation */
.skeleton-box.pulse-animation {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Alternative: Wave Animation */
.skeleton-box.wave-animation {
    background: linear-gradient(
        90deg,
        #e0e0e0 0px,
        #f0f0f0 40px,
        #e0e0e0 80px
    );
    background-size: 200% 100%;
    animation: wave 1.5s linear infinite;
}

@keyframes wave {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Banner background */
.skeleton-banner {
    position: relative;
    overflow: hidden;
}

.skeleton-bg {
    height: 450px;
    background: #e0e0e0;
}

/* Skeleton base */
.skeleton {
    background: linear-gradient(
        90deg,
        #e0e0e0 25%,
        #f2f2f2 37%,
        #e0e0e0 63%
    );
    background-size: 400% 100%;
    animation: shimmer 1.4s ease infinite;
    border-radius: 6px;
}

/* Skeleton sizes */
.skeleton-title {
    height: 32px;
    width: 80%;
    margin-bottom: 12px;
}

.skeleton-text {
    height: 18px;
    width: 100%;
    margin-bottom: 18px;
}

.skeleton-button {
    height: 44px;
    width: 160px;
    border-radius: 30px;
}

/* Animation */
@keyframes shimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* Tablets and smaller laptops (1024px and below) */
@media (max-width: 1024px) {
    .skeleton-bg {
        height: 400px;
    }

    .skeleton-title {
        height: 28px;
        width: 85%;
    }

    .skeleton-text {
        height: 16px;
        margin-bottom: 16px;
    }

    .skeleton-button {
        height: 42px;
        width: 140px;
    }

    .skeleton-h6 {
        height: 16px;
    }

    .skeleton-price {
        width: 120px;
        height: 24px;
    }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
    .pro_item .pro_img.skeleton-box {
        aspect-ratio: 4 / 3;
    }

    .skeleton-bg {
        height: 350px;
    }

    .skeleton-title {
        height: 26px;
        width: 90%;
        margin-bottom: 10px;
    }

    .skeleton-text {
        height: 15px;
        margin-bottom: 14px;
    }

    .skeleton-button {
        height: 40px;
        width: 130px;
    }

    .skeleton-h6 {
        width: 80px;
        height: 15px;
        margin-bottom: 8px;
    }

    .skeleton-p {
        height: 14px;
        margin-bottom: 6px;
    }

    .skeleton-price {
        width: 110px;
        height: 22px;
        margin-bottom: 10px;
    }

    .skeleton-star {
        width: 14px;
        height: 14px;
    }

    .skeleton-rating {
        width: 100px;
        height: 12px;
        margin-left: 6px;
    }

    .pro_btn .skeleton-button {
        height: 40px;
    }

    .pro_btn .skeleton-heart {
        width: 40px;
        height: 40px;
    }
}

/* Mobile devices (480px and below) */
@media (max-width: 480px) {
    .pro_item .pro_img.skeleton-box {
        aspect-ratio: 1 / 1;
        border-radius: 6px;
    }

    .skeleton-bg {
        height: 280px;
    }

    .skeleton-title {
        height: 22px;
        width: 95%;
        margin-bottom: 8px;
    }

    .skeleton-text {
        height: 14px;
        margin-bottom: 12px;
        width: 100%;
    }

    .skeleton-button {
        height: 38px;
        width: 110px;
        border-radius: 20px;
    }

    .skeleton-h6 {
        width: 70px;
        height: 14px;
        margin-bottom: 6px;
    }

    .skeleton-p {
        height: 13px;
        margin-bottom: 5px;
        width: 100%;
    }

    .skeleton-p-short {
        width: 60%;
    }

    .skeleton-price {
        width: 100px;
        height: 20px;
        margin-bottom: 8px;
    }

    .skeleton-stars {
        gap: 3px;
    }

    .skeleton-star {
        width: 12px;
        height: 12px;
    }

    .skeleton-rating {
        width: 85px;
        height: 11px;
        margin-left: 5px;
        font-size: 11px;
    }

    .pro_btn {
        gap: 8px;
    }

    .pro_btn .skeleton-button {
        height: 38px;
        border-radius: 6px;
        font-size: 13px;
    }

    .pro_btn .skeleton-heart {
        width: 38px;
        height: 38px;
        border-radius: 6px;
    }

    /* Adjust shimmer animation speed on mobile */
    .skeleton-shimmer {
        animation: shimmer 1.2s infinite;
    }

    .skeleton {
        animation: shimmer 1.2s ease infinite;
    }
}

/* Extra small devices (360px and below) */
@media (max-width: 360px) {
    .skeleton-bg {
        height: 250px;
    }

    .skeleton-title {
        height: 20px;
        margin-bottom: 6px;
    }

    .skeleton-text {
        height: 13px;
        margin-bottom: 10px;
    }

    .skeleton-button {
        height: 36px;
        width: 100px;
        font-size: 12px;
    }

    .skeleton-h6 {
        width: 60px;
        height: 13px;
    }

    .skeleton-p {
        height: 12px;
    }

    .skeleton-price {
        width: 90px;
        height: 18px;
    }

    .skeleton-star {
        width: 11px;
        height: 11px;
    }

    .skeleton-rating {
        width: 75px;
        height: 10px;
    }

    .pro_btn .skeleton-button {
        height: 36px;
        font-size: 12px;
    }

    .pro_btn .skeleton-heart {
        width: 36px;
        height: 36px;
    }
}

/* components/Loaders/ProgressLoader.css */

.progress-loader-container {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.progress-loader-content {
  text-align: center;
  max-width: 400px;
  width: 100%;
}

.loader-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: #f5f5f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 1.5s ease-in-out infinite;
}

.loader-icon i {
  font-size: 40px;
  color: #333;
}

.progress-loader-content h3 {
  font-size: 20px;
  color: #333;
  margin-bottom: 20px;
  font-weight: 500;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: #BFA56F;
  background-size: 200% 100%;
  animation: progress 1.5s ease-in-out infinite;
  border-radius: 10px;
}

@keyframes progress {
  0% {
    width: 0%;
    background-position: 0% 0%;
  }
  50% {
    width: 70%;
    background-position: 100% 0%;
  }
  100% {
    width: 100%;
    background-position: 0% 0%;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(51, 51, 51, 0.2);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(51, 51, 51, 0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .progress-loader-container {
    min-height: 50vh;
  }

  .loader-icon {
    width: 70px;
    height: 70px;
  }

  .loader-icon i {
    font-size: 35px;
  }

  .progress-loader-content h3 {
    font-size: 18px;
  }

  .progress-bar {
    height: 6px;
  }
}

@media (max-width: 480px) {
  .progress-loader-container {
    min-height: 40vh;
  }

  .loader-icon {
    width: 60px;
    height: 60px;
  }

  .loader-icon i {
    font-size: 30px;
  }

  .progress-loader-content h3 {
    font-size: 16px;
  }

  .progress-bar {
    height: 5px;
  }
}