:root {
  --bg: #faf5f1;
  --card: #fffdfb;
  --ink: #2b2324;
  --muted: #7a6d6c;
  --line: #ecdfda;
  --accent: #c96f7c;
  --accent-ink: #ffffff;
  --soft: #f9e3e3;
  --soft-2: #f4ece8;
  --radius: 18px;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --script: 'Allura', 'Brush Script MT', cursive;
  font-family: 'Montserrat', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

a {
  color: inherit;
}

button {
  font: inherit;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.heart {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-linejoin: round;
  vertical-align: -0.1em;
}

.script {
  font-family: var(--script);
  font-weight: 400;
  color: var(--accent);
}

/* ---------- Top nav ---------- */

.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: var(--script);
  font-size: 1.9rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.logo .heart {
  font-size: 0.6em;
  margin-left: 4px;
}

.navlinks {
  display: flex;
  gap: 18px;
  font-size: 0.72rem;
}

.navlinks a {
  text-decoration: none;
  padding: 4px 0;
  white-space: nowrap;
}

.navlinks a[aria-current] {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

@media (max-width: 420px) {
  .navlinks a:first-child {
    display: none;
  }
  .navlinks {
    gap: 14px;
  }
}

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  padding: 28px 20px 8px;
}

.avatar-wrap {
  position: relative;
  width: 124px;
  margin: 0 auto 14px;
}

.avatar {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #f3c9cc, #f7dccb);
  color: #fff;
  font-family: var(--serif);
  font-size: 48px;
  border: 5px solid var(--bg);
  box-shadow: 0 0 0 1.5px #e8c3c6;
}

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

.heart-float {
  position: absolute;
  top: 10px;
  right: -34px;
  font-size: 26px;
  transform: rotate(12deg);
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 6vw, 2.4rem);
  letter-spacing: -0.01em;
}

.roles {
  margin: 8px auto 0;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #4d4243;
}

.tagline {
  max-width: 360px;
  margin: 16px auto 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #4d4243;
}

/* ---------- Store cards ---------- */

.stores-section {
  max-width: 640px;
  margin: 0 auto;
  padding: 10px 16px 8px;
}

.stores-section h2 {
  position: relative;
  width: fit-content;
  margin: 8px auto 18px;
  font-size: 2.1rem;
  transform: rotate(-3deg);
}

.stores-section h2 .heart {
  font-size: 0.5em;
}

.swoosh {
  position: absolute;
  left: 18%;
  bottom: -8px;
  width: 64%;
  height: 12px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-linecap: round;
}

.stores {
  display: grid;
  gap: 14px;
}

.store-card {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 6px 18px -12px rgba(150, 80, 90, 0.35);
  transition: transform 0.15s ease;
}

.store-card:nth-child(even) {
  background: var(--soft-2);
}

.store-card:active {
  transform: scale(0.98);
}

.store-card[aria-pressed='true'] {
  border-color: var(--accent);
}

.wordmark {
  flex: none;
  width: 108px;
  padding-right: 14px;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  text-align: center;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1;
}

.wm-logo img {
  display: block;
  width: 100%;
  height: 34px;
  object-fit: contain;
}

.wm-nykaa {
  font-weight: 700;
  font-style: italic;
  color: #fc2779;
}

.wm-ajio {
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #2c4152;
}

.wm-meesho {
  font-weight: 700;
  color: #9f2089;
}

.wm-other {
  font-family: var(--serif);
  font-weight: 400;
}

.store-text {
  flex: 1;
  min-width: 0;
}

.store-text strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.25;
}

.store-text small {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  color: var(--muted);
}

.arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.05rem;
}

/* ---------- Search + chips ---------- */

.shop {
  scroll-margin-top: 0;
}

.controls {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 16px 16px 10px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.search svg {
  width: 17px;
  height: 17px;
  fill: var(--muted);
  flex: none;
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 12px 0;
  font: inherit;
  font-size: 16px; /* prevents iOS zoom on focus */
  color: var(--ink);
}

.chips {
  display: flex;
  gap: 8px;
  max-width: 640px;
  margin: 10px auto 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: none;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 0.78rem;
  white-space: nowrap;
}

.chip[aria-pressed='true'] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ---------- Product grid ---------- */

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6px 14px 24px;
}

.banner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  max-width: 640px;
  margin: 4px auto 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--soft);
  font-family: var(--serif);
}

.banner a {
  color: var(--accent);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
}

.banner button {
  margin-left: auto;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.8rem;
  text-decoration: underline;
}

.count {
  margin: 4px 4px 12px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 720px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (min-width: 1000px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  scroll-margin-top: 130px;
  box-shadow: 0 8px 20px -16px rgba(150, 80, 90, 0.4);
}

.card-img {
  display: block;
  aspect-ratio: 4 / 5;
  background: var(--soft-2);
  text-decoration: none;
}

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

.placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--accent);
  background: linear-gradient(160deg, hsl(var(--hue) 55% 93%), hsl(calc(var(--hue) + 30) 60% 88%));
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 12px 12px 14px;
}

.meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.code {
  color: var(--accent);
}

.card h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.buy {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
}

.buy span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}

.buy:active {
  transform: scale(0.98);
}

.more {
  border: 0;
  background: none;
  padding: 0;
  color: var(--muted);
  font-size: 0.7rem;
  text-decoration: underline;
}

.empty {
  text-align: center;
  font-family: var(--serif);
  color: var(--muted);
  padding: 40px 16px;
}

/* ---------- Follow + footer ---------- */

.follow {
  position: relative;
  text-align: center;
  padding: 12px 20px 4px;
  scroll-margin-top: 20px;
}

.follow .script {
  margin: 0 0 10px;
  font-size: 1.9rem;
  transform: rotate(-3deg);
}

.follow .heart {
  font-size: 0.5em;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
}

.socials svg {
  width: 17px;
  height: 17px;
  fill: #fff;
}

footer {
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 20px 48px;
  text-align: center;
  color: var(--muted);
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto 14px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.divider .heart {
  font-size: 12px;
}

.motto {
  margin: 0 0 16px;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.motto span {
  margin: 0 6px;
}

.disclosure,
.fine {
  font-size: 0.72rem;
  line-height: 1.5;
}

.fine {
  opacity: 0.8;
}

.doodle {
  position: absolute;
  left: max(12px, calc(50% - 250px));
  top: 30px;
  width: 54px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-linecap: round;
  pointer-events: none;
  opacity: 0.8;
}

.brush {
  position: absolute;
  right: -60px;
  bottom: -40px;
  width: 260px;
  height: 180px;
  background: radial-gradient(ellipse at 70% 70%, rgba(240, 190, 195, 0.55), transparent 65%);
  transform: rotate(-18deg);
  pointer-events: none;
  z-index: -1;
}
