/* Scoped styles for SubCategoryProducts page */
.scp-page {
  /* Design variables */
  --background: #f8fafc;
  --foreground: #0f172a;
  --card: #ffffff;
  --primary: #3b82f6;
  --primary-foreground: #ffffff;
  --whatsapp: #25d366;
  --whatsapp-foreground: #ffffff;
  --border: #e2e8f0;
  --radius: 0.75rem;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-hover: 0 8px 25px rgba(0,0,0,0.15);
  --transition: all 0.2s ease-in-out;

  background-color: var(--background);
}

/* Ensure content sits neatly between header and footer, close to header */
.scp-page .page-content-wrapper { padding-top: 50px; padding-bottom: 92px; margin-top: 0 !important; }
/* In case theme adds extra spacing below header */
#headerArea, .header-area { margin-bottom: 0 !important; }

/* Product Card */
.scp-page .product-card {
  background-color: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow);
  position: relative; /* for badge positioning */
}
.scp-page .product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.scp-page .product-card-content { display: flex; flex-direction: row; height: 8rem; }

/* Shimmer (shine) effect */
.scp-page .shine-effect { position: relative; overflow: hidden; }
.scp-page .shine-effect::after {
  content: '';
  position: absolute;
  top: 0; left: -150%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-20deg);
  animation: shine 2.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shine { 0% { left: -150%; } 60% { left: 150%; } 100% { left: 150%; } }

/* Image */
.scp-page .product-image-container { width: 33.3333%; overflow: hidden; flex-shrink: 0; }
.scp-page .product-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.scp-page .product-card:hover .product-image { transform: scale(1.05); }

/* Top-right badge with ProductInfoTitlesTitle */
.scp-page .product-title-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(13, 90, 253, 0.92);
  color: #fff;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  z-index: 2; /* above shimmer */
  max-width: 60%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 8px rgba(13, 90, 253, 0.25);
}

/* Details */
.scp-page .product-details { width: 66.6667%; padding: 0.75rem; display: flex; flex-direction: column; justify-content: space-between; }
.scp-page .product-title { font-size: 1rem; font-weight: bold; color: var(--foreground); line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.2s ease; }
.scp-page .product-title:hover { color: var(--primary); }
.scp-page .product-detail-1 { font-size: 0.9rem; color: var(--foreground); font-weight: 600; margin: 0.15rem 0 0.35rem; }
.scp-page .product-description { font-size: 0.8rem; color: #64748b; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Action buttons */
.scp-page .product-actions { display: flex; gap: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--border); }
.scp-page .btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.25rem; padding: 0.4rem 0.8rem; border-radius: 0.375rem; font-size: 0.75rem; font-weight: 500; text-decoration: none; border: none; cursor: pointer; transition: var(--transition); flex: 1; }
.scp-page .btn:hover { transform: scale(1.05); }
.scp-page .btn-call { background-color: var(--primary); color: var(--primary-foreground); }
.scp-page .btn-whatsapp { background-color: var(--whatsapp); color: var(--whatsapp-foreground); }
