* {
  box-sizing: border-box;
}

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

.product-detail-hero {
  position: relative;
  margin-top: 70px;
  padding: 80px 24px 100px;
  background: url("../images/hero-image.png") no-repeat center;
  background-size: cover;
}

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

.product-detail-hero .hero-content {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.9);
  padding: 28px 32px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

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

.product-detail-hero h1 {
  margin: 0 0 10px;
  font-size: 2.4rem;
  color: var(--text-strong);
}

.product-detail-hero p {
  margin: 0;
  color: var(--text-muted);
}

.detail-main {
  max-width: 1100px;
  margin: -60px auto 60px;
  margin-top: 60px;
  padding: 0 24px;
}

.detail-card {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.1fr);
  gap: 28px;
  background: var(--surface);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.detail-image {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-soft);
  min-height: 320px;
}

.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.status-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(31, 111, 229, 0.12);
  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);
}

.detail-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.detail-label {
  margin: 0 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.detail-header h2 {
  margin: 0;
  font-size: 2rem;
  color: var(--text-strong);
}

.unit-pill {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface-soft);
  font-weight: 600;
  color: var(--text-strong);
  font-size: 13px;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.meta-card {
  background: var(--surface-soft);
  border-radius: 14px;
  padding: 14px 16px;
}

.meta-card p {
  margin: 0 0 6px;
  color: var(--text-muted);
  font-size: 13px;
}

.meta-card strong {
  font-size: 16px;
  color: var(--text-strong);
}

.detail-description {
  background: #fdfefe;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 10px 18px rgba(31, 111, 229, 0.08);
}

.detail-description h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

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

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-outline {
  padding: 0.75rem 1.1rem;
  border-radius: 5px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
}

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

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

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

@media (max-width: 900px) {
  .detail-card {
    grid-template-columns: 1fr;
  }

  .detail-image {
    min-height: 260px;
  }
}

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

  .product-detail-hero h1 {
    font-size: 2rem;
  }

  .detail-header h2 {
    font-size: 1.6rem;
  }
}
