/**
 * GrandMoya Theme — Custom CSS additions
 * Additional styles beyond main style.css (e.g. for WordPress admin & extras)
 */

/* Category image upload button */
.grandmoya-upload-btn {
  background: #0a6999;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
}
.grandmoya-upload-btn:hover {
  background: #002789;
  color: #fff;
}

/* Product category image upload in WooCommerce */
.woocommerce .product .grandmoya-cat-upload {
  margin-top: 10px;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Skeleton loading for demo products */
.product-card.skeleton {
  background: #e8e8e8;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Flash sale progress bar animation */
.sold-bar .progress-fill {
  position: relative;
  overflow: hidden;
}
.sold-bar .progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.3),
    transparent
  );
  animation: shimmer 2s infinite;
}
@keyframes shimmer {
  100% { left: 100%; }
}

/* Hover effects for product cards */
.product-card .product-thumb::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 105, 153, 0);
  transition: background 0.3s ease;
  pointer-events: none;
}
.product-card:hover .product-thumb::after {
  background: rgba(10, 105, 153, 0.05);
}

/* Announcement bar style */
.announcement-bar {
  background: var(--color-primary-dark);
  color: #fff;
  text-align: center;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 500;
}

/* Breadcrumb */
.breadcrumb {
  padding: 10px 0;
  font-size: 13px;
  color: #666;
}
.breadcrumb a {
  color: var(--color-primary);
}
.breadcrumb span {
  margin: 0 5px;
}
