:root {
  --bg: #FAF7F2;
  --card-bg: #FFFFFF;
  --ink: #2B2B33;
  --ink-soft: #6B6B76;
  --accent: #F2994A;
  --accent-2: #2EA8A0;
  --border: #ECE6DC;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(43, 43, 51, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Nunito", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  min-height: 72px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
}
.brand-badge {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-badge svg { width: 100%; height: 100%; display: block; }
.brand small { display: block; font-weight: 600; font-size: 12px; color: var(--ink-soft); }
.nav-links { display: flex; gap: 24px; font-weight: 700; font-size: 14px; }
.nav-links a:hover { color: var(--accent); }

/* Hero */
.hero {
  padding: 56px 0 40px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 16px;
}
.hero p {
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0 0 24px;
  max-width: 480px;
}
.hero-img {
  border-radius: var(--radius);
  width: 100%;
  display: block;
  box-shadow: var(--shadow);
}
.pill {
  display: inline-block;
  background: #FFF3E7;
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* Category grid */
.section-title {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 6px;
}
.section-sub {
  color: var(--ink-soft);
  margin: 0 0 28px;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}
.cat-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(43,43,51,0.13); }
.cat-pic {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #FFF3E7, #E8F7F5);
  overflow: hidden;
}
.cat-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 110px;
}
.cat-tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  color: white;
  margin-bottom: 14px;
}
.cat-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}
.cat-count {
  margin-top: auto;
  padding-top: 14px;
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 700;
}

/* Product grid */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 56px;
}
.prod-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.prod-thumb {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #FFF3E7, #E8F7F5);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 14px;
  overflow: hidden;
}
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; }
.prod-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prod-body h4 { margin: 0; font-size: 16px; }
.prod-body p { margin: 0; color: var(--ink-soft); font-size: 14px; flex: 1; }
.prod-price { font-weight: 800; font-size: 17px; margin-top: 6px; }
.prod-price.free { color: var(--accent-2); }
.btn {
  display: inline-block;
  background: var(--ink);
  color: white;
  font-weight: 800;
  font-size: 14px;
  padding: 12px 18px;
  border-radius: 12px;
  text-align: center;
  border: none;
  cursor: pointer;
}
.btn.primary { background: var(--accent); }
.btn.outline { background: transparent; color: var(--ink); border: 2px solid var(--border); }
.btn:hover { filter: brightness(0.95); }

.checkout-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.checkout-form input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
}
.checkout-form .btn { flex-shrink: 0; }
.checkout-alt { font-size: 13.5px; color: var(--ink-soft); margin: 10px 0 0; }
.checkout-alt a { color: var(--accent-2); font-weight: 700; }

.empty-state {
  background: var(--card-bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  color: var(--ink-soft);
}

/* Product detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  padding: 40px 0 60px;
  align-items: start;
}
.product-gallery img, .product-gallery video, .product-gallery iframe {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 16/10;
  border: none;
  background: #eee;
}
.breadcrumbs {
  font-size: 13px;
  color: var(--ink-soft);
  padding: 20px 0 0;
}
.breadcrumbs a:hover { color: var(--accent); }
.product-info h1 { font-size: 30px; margin: 8px 0 12px; }
.product-info .prod-price { font-size: 26px; margin: 18px 0; }
.product-desc { white-space: pre-wrap; color: var(--ink-soft); font-size: 15px; margin-bottom: 24px; }

footer {
  border-top: 1px solid var(--border);
  padding: 30px 0;
  color: var(--ink-soft);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cat-grid { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .site-header .container { justify-content: flex-start; }
  .nav-links { gap: 14px; font-size: 13px; width: 100%; }
}
