/* ==========================================================================
   dashboard.css
   Style riêng cho trang chủ (index.html): hero gradient, ô tìm kiếm, stats
   bar, core values, grid sản phẩm, trạng thái rỗng, skeleton card.
   ========================================================================== */

.hero {
  background: var(--gradient-hero);
  color: #fff;
  padding: var(--space-9) 0 var(--space-8);
  position: relative;
  overflow: hidden;
}

.hero .bg-blob:nth-child(1) {
  width: 420px;
  height: 420px;
  right: -120px;
  top: -160px;
  background: var(--color-orange);
  opacity: 0.25;
}
.hero .bg-blob:nth-child(2) {
  width: 280px;
  height: 280px;
  left: -80px;
  bottom: -100px;
  background: #fff;
  opacity: 0.08;
}
.hero .bg-blob:nth-child(3) {
  width: 180px;
  height: 180px;
  right: 12%;
  bottom: -60px;
  background: var(--color-orange-soft);
  opacity: 0.18;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-5);
}
.hero-eyebrow svg { width: 14px; height: 14px; }

.hero-title {
  font-size: var(--font-size-3xl);
  color: #fff;
  margin-bottom: var(--space-4);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-size: var(--font-size-md);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: var(--space-6);
  max-width: 600px;
}

@media (max-width: 599px) {
  .hero-title { font-size: var(--font-size-xl); }
  .hero { padding: var(--space-7) 0 var(--space-6); }
}

/* Search bar */
.search-bar {
  position: relative;
  max-width: 480px;
}
.search-bar input {
  width: 100%;
  padding: 14px 18px 14px 48px;
  border-radius: var(--radius-pill);
  border: none;
  font-size: var(--font-size-base);
  box-shadow: var(--shadow-md);
}
.search-bar input:focus {
  outline: none;
  box-shadow: var(--shadow-md), var(--shadow-focus);
}
.search-bar svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
}

/* Stats row */
.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
@media (max-width: 899px) {
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.hero-stat-value {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-extrabold);
  color: #fff;
  line-height: 1.1;
}
.hero-stat-label {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.75);
  margin-top: 4px;
}

/* Products section */
.products-section {
  padding: var(--space-8) 0;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}

.section-heading h2 {
  font-size: var(--font-size-lg);
  display: flex;
  align-items: center;
  gap: var(--space-2, 8px);
  position: relative;
  padding-left: 14px; 
}

.section-heading h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 1.1em; 
  background-color: var(--color-orange); 
  border-radius: 2px;

}

.results-count {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-5);
}
.product-card {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  transition: transform var(--transition-base);
}
/* .product-card:hover {
  transform: translateY(-4px);
  box-shadow: none;
  border-color: transparent;
  cursor: pointer;
} */

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform var(--transition-slow);
}
.product-card-media img:hover{
  cursor: pointer;
}
.product-card:hover .product-card-media img {
  transform: scale(1.03);
}

.product-card-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-title {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-2);
  margin-top: var(--space-3);
  color: var(--color-text-primary);
}
.product-card-title:hover {
  cursor: pointer;
  color: var(--color-blue-soft);
}

.product-card-desc {
  color: var(--color-text-secondary); 
  font-size: var(--font-size-sm);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
}

/* Ẩn hẳn các phần không dùng nữa, không cần xoá khỏi HTML/JS nếu bạn ngại sửa nhiều */
.product-card-category,
.product-card-tagline,
.product-card-actions,
.maturity-pill {
  display: none;
}

/* .product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.product-card-media {
  aspect-ratio: 3 / 2;
  background: var(--color-surface-alt);
  overflow: hidden;
  position: relative;
}
.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform var(--transition-slow);
}
.product-card:hover .product-card-media img {
  transform: scale(1.05);
} */

/* Huy hiệu mức độ sẵn sàng (maturity level) góc trên-phải ảnh card */
/* .maturity-pill {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 1;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.02em;
}
.maturity-pill.maturity-lv1 { color: var(--color-orange-dark); border: 1px solid var(--color-orange-light); }
.maturity-pill.maturity-lv2 { color: var(--color-blue); border: 1px solid var(--color-blue-light); }
.maturity-pill.maturity-lv3 { color: #1F8A4C; border: 1px solid #C7E9D3; }

.product-card-body {
  padding: var(--space-4) var(--space-5) var(--space-5);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-category {
  display: inline-block;
  align-self: flex-start;
  background: var(--color-orange-light);
  color: var(--color-orange-dark);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-2);
}

.product-card-title {
  font-size: var(--font-size-md);
  margin-bottom: var(--space-1);
  color: var(--color-blue);
}

.product-card-tagline {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-orange-dark);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-2);
}

.product-card-desc {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  flex: 1;
  margin-bottom: var(--space-4);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.product-card-actions .btn { flex: 1; } */

/* Skeleton card */
.skeleton-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.skeleton-media { aspect-ratio: 3 / 2; }
.skeleton-body { padding: var(--space-4) var(--space-5); }
.skeleton-line { height: 14px; margin-bottom: var(--space-3); }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-80 { width: 80%; }
.skeleton-line.w-40 { width: 40%; }

/* Empty / no-result state */
.empty-state {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  color: var(--color-text-secondary);
}
.empty-state svg {
  width: 64px;
  height: 64px;
  color: var(--color-border-strong);
  margin-bottom: var(--space-4);
}
.empty-state h3 {
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

/* ---------- CTA banner (cuối trang, trước footer) ---------- */
.cta-banner {
  background: var(--gradient-brand);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-7);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin: 0 var(--space-5) var(--space-8);
}
@media (max-width: 599px) {
  .cta-banner { padding: var(--space-6) var(--space-4); margin: 0 var(--space-4) var(--space-6); }
}
.cta-banner-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.cta-banner h2 { color: #fff; font-size: var(--font-size-2xl); margin-bottom: var(--space-3); }
.cta-banner p { color: rgba(255, 255, 255, 0.9); margin-bottom: var(--space-6); font-size: var(--font-size-md); }
.cta-banner-actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }

.value-card-icon {
  width: 100px;
  height: 100px;
}

.value-card-icon img {
width: 100%;
height: 100%;
object-fit: contain;
}