/* =========================================================================
   BHARTIYA — design tokens
   Ink   #1B3A4B  deep indigo   — nav, headings, footer
   Sand  #F7F3EA  warm ivory    — page background
   Char  #2B2320  charcoal      — body text
   Gold  #C7962C  turmeric      — Verified accent
   Rust  #B85C38  terracotta    — Affordable accent
   Leaf  #5C7A4B  mehendi green — Trendies accent
   ========================================================================= */

:root {
  --ink: #1B3A4B;
  --ink-soft: #2E5064;
  --sand: #F7F3EA;
  --sand-deep: #EFE8D8;
  --char: #2B2320;
  --gold: #C7962C;
  --rust: #B85C38;
  --leaf: #5C7A4B;
  --line: rgba(43, 35, 32, 0.14);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--char);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- top bar ---------- */

.topbar {
  background: var(--ink);
  color: var(--sand);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 20px;
  flex-wrap: wrap;
}

.mark {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--sand);
}

.topnav {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.topnav a {
  text-decoration: none;
  color: var(--sand);
  opacity: 0.82;
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.topnav a:hover,
.topnav a:focus-visible {
  opacity: 1;
  border-color: var(--gold);
}

/* ---------- hero ---------- */

.hero {
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(3rem, 8vw, 5.4rem);
  line-height: 0.98;
  margin: 0 0 20px;
  max-width: 11ch;
}

.hero .tagline {
  font-size: 1.25rem;
  color: var(--ink-soft);
  max-width: 40ch;
  margin: 0 0 28px;
}

.hero p.lede {
  max-width: 58ch;
  font-size: 1.05rem;
  color: var(--char);
  margin: 0;
}

.hero .lede a {
  color: var(--ink);
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
}

/* ---------- category section ---------- */

.category {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}

.category-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  border-left: 4px solid var(--accent, var(--gold));
  padding-left: 20px;
  margin-bottom: 34px;
}

.category-head h2 {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 600;
  margin: 0;
}

.category-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.category--verified   { --accent: var(--gold); }
.category--affordable { --accent: var(--rust); }
.category--trendy     { --accent: var(--leaf); }

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card .photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sand-deep);
}

.card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card .body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 4px;
}

.card .note {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0 0 12px;
}

.card .price {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--accent, var(--ink));
  margin: 0 0 16px;
}

.card .buy {
  margin-top: auto;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  background: var(--ink);
  color: var(--sand);
  padding: 10px 16px;
  font-size: 0.92rem;
  border: 1px solid var(--ink);
  transition: background 0.15s ease, color 0.15s ease;
}

.card .buy:hover,
.card .buy:focus-visible {
  background: transparent;
  color: var(--ink);
}

.empty {
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------- footer ---------- */

footer {
  background: var(--ink);
  color: var(--sand);
  padding: 48px 0 36px;
}

footer .foot-mark {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin: 0 0 10px;
}

footer .disclosure {
  max-width: 62ch;
  font-size: 0.88rem;
  color: rgba(247, 243, 234, 0.72);
  line-height: 1.6;
  margin: 0 0 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(247, 243, 234, 0.18);
}

footer .credit {
  font-size: 0.85rem;
  color: rgba(247, 243, 234, 0.55);
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media (max-width: 640px) {
  .hero { padding: 56px 0 44px; }
  .category { padding: 44px 0; }
}
