/* Theme 2: Shopee-inspired */
:root {
  --primary: #ee4d2d;
  --primary-strong: #d73211;
  --accent: #16a34a; /* free shipping green */
  --bg: #fff7f1;
  --card: #ffffff;
  --text: #1f2933;
  --muted: #6b7280;
  --border: #f3e1d7;
  --shadow: 0 12px 32px rgba(238, 77, 45, 0.14);
  --radius: 12px;
  --header-bg: #ee4d2d;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a {
  color: var(--primary-strong);
  text-decoration: none;
}
a:hover {
  color: var(--primary);
}

header {
  background: var(--header-bg);
  color: #ffffff;
  padding: 14px 20px;
  box-shadow: 0 8px 24px rgba(238, 77, 45, 0.3);
}
header nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
header a {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.2px;
}

main {
  padding: 20px;
}
.page {
  max-width: 1200px;
  margin: 0 auto;
}

.hero {
  background: linear-gradient(120deg, rgba(238, 77, 45, 0.1), rgba(255, 156, 116, 0.2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.hero h1 {
  margin: 0 0 6px;
}
.hero p {
  margin: 0;
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.product-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: #fff2e9;
}
.product-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.product-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-strong);
}
.stock {
  color: var(--muted);
  font-size: 0.9rem;
}
.product-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0;
}
.product-links a {
  background: #fff4ec;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 5px 9px;
  font-size: 0.85rem;
  color: var(--primary-strong);
  font-weight: 600;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
}
.badge.promo {
  background: #ffeaea;
  color: #d73211;
}
.badge.free-ship {
  background: #ecfdf3;
  color: #16a34a;
}

.actions {
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin-top: 10px;
}
.btn {
  appearance: none;
  border: none;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(238, 77, 45, 0.25);
}
.btn-primary:hover {
  background: var(--primary-strong);
}
.btn-outline {
  background: #ffffff;
  color: var(--primary-strong);
  border: 1px solid var(--primary-strong);
}
.btn-outline:hover {
  background: #fff1ea;
}

footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  color: var(--muted);
  padding: 16px 20px;
  text-align: center;
}
