* {
  box-sizing: border-box;
}

:root {
  --surface: #ffffff;
  --surface-soft: #f4f7fb;
  --text-strong: #1f2a37;
  --text-muted: #5f6b7a;
  --accent: #1f6fe5;
  --accent-soft: rgba(31, 111, 229, 0.12);
  --success: #1f7a6b;
  --warning: #d07a29;
  --danger: #d64a4a;
  --shadow: 0 18px 40px rgba(15, 24, 22, 0.12);
}

body {
  background: #f5f8fc;
  color: var(--text-strong);
}

.products-hero {
  position: relative;
  margin-top: 70px;
  padding: 90px 24px 110px;
  background: url("../images/hero-image.png") no-repeat center;
  background-size: cover;
  overflow: hidden;
}

.products-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.92),
    rgba(255, 255, 255, 0.65)
  );
}

.products-hero__content {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px 32px;
  background: rgba(255, 255, 255, 0.86);
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin: 0;
}

.products-hero h1 {
  font-family: "Poppins", sans-serif;
  font-size: 2.6rem;
  margin: 0;
}

.products-hero p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stat-chip {
  background: var(--surface-soft);
  border-radius: 999px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.stat-chip strong {
  color: var(--text-strong);
  font-size: 15px;
}

.products-main {
  max-width: 1200px;
  margin: -60px 40px 60px auto;
  padding: 0 24px;
}

.products-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.products-toolbar h2 {
  margin: 0;
  font-size: 1.8rem;
}

.products-subtitle {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.products-count {
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--text-strong);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(31, 111, 229, 0.18);
}

.product-media {
  position: relative;
  background: var(--surface-soft);
  height: 190px;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent);
}

.status-fresh {
  background: rgba(31, 122, 107, 0.15);
  color: var(--success);
}

.status-soon {
  background: rgba(208, 122, 41, 0.15);
  color: var(--warning);
}

.status-expired {
  background: rgba(214, 74, 74, 0.15);
  color: var(--danger);
}

.product-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.product-unit {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--surface-soft);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.product-meta strong {
  color: var(--text-strong);
}

.empty-state {
  background: var(--surface);
  padding: 40px 32px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  text-align: center;
  grid-column: 1 / -1;
}

.empty-state h3 {
  margin: 0 0 8px;
}

.empty-state p {
  margin: 0;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .products-hero__content {
    padding: 24px;
  }

  .products-hero h1 {
    font-size: 2.1rem;
  }

  .products-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .products-main {
    margin-top: -40px;
  }

  .product-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}
