:root {
  --nj-ink: #1a1a1a;
  --nj-muted: #6b6b6b;
  --nj-line: #ebebeb;
  --nj-soft: #f6f6f6;
  --nj-paper: #ffffff;
  --nj-leaf: #2f7a3e;
  --nj-leaf-deep: #1f5a2c;
  --nj-accent: #e4572e;
  --nj-sans: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --nj-max: 1280px;
  --nj-radius: 16px;
  --nj-radius-sm: 10px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--nj-ink);
  font-family: var(--nj-sans);
  background: var(--nj-paper);
  line-height: 1.55;
  min-height: 100vh;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--nj-leaf);
}

.nj-wrap {
  width: min(100% - 2rem, var(--nj-max));
  margin-inline: auto;
}

/* Header — mall style */
.nj-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid var(--nj-line);
}

.nj-header__top {
  background: var(--nj-leaf);
  color: #fff;
  font-size: 0.82rem;
}

.nj-header__top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
}

.nj-header__top p {
  margin: 0;
  opacity: 0.95;
}

.nj-header__top a {
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.nj-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem 0;
}

.nj-brand {
  font-weight: 800;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  letter-spacing: -0.03em;
  color: var(--nj-ink);
  white-space: nowrap;
}

.nj-brand span {
  color: var(--nj-leaf);
}

.nj-header__nav {
  margin-left: auto;
}

.nj-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.2rem 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nj-nav a {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--nj-ink);
}

.nj-nav a:hover,
.nj-nav .current-menu-item > a {
  color: var(--nj-accent);
}

/* Main visual — solid green + organic crop */
.nj-visual {
  background: var(--nj-leaf);
  overflow: hidden;
}

.nj-visual__inner {
  position: relative;
  max-width: var(--nj-max);
  margin: 0 auto;
  height: clamp(380px, 48vw, 620px);
}

.nj-visual__photo-wrap {
  position: absolute;
  top: 0;
  right: -4%;
  width: min(78%, 980px);
  height: 100%;
  z-index: 1;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 980 620' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' d='M152 118c38-62 118-108 214-114 78-4 148 18 212 58 42 26 78 48 128 54 46 6 88-8 118 28 34 40 28 102 8 152-16 40-18 78 4 116 24 42 18 96-18 132-40 40-102 54-156 72-62 20-128 42-196 36-78-8-148-40-198-94-46-50-78-118-72-188 4-48 18-78 42-118 16-26 28-38 46-52 12-10 28-18 44-22z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 980 620' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' d='M152 118c38-62 118-108 214-114 78-4 148 18 212 58 42 26 78 48 128 54 46 6 88-8 118 28 34 40 28 102 8 152-16 40-18 78 4 116 24 42 18 96-18 132-40 40-102 54-156 72-62 20-128 42-196 36-78-8-148-40-198-94-46-50-78-118-72-188 4-48 18-78 42-118 16-26 28-38 46-52 12-10 28-18 44-22z'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.nj-visual__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  display: block;
  transform: scale(1.14);
  animation: nj-visual-zoom 1.25s ease both;
}

.nj-visual__spiral {
  position: absolute;
  top: 20%;
  left: 42%;
  width: clamp(80px, 10vw, 120px);
  height: auto;
  z-index: 4;
  pointer-events: none;
}

.nj-visual__spiral-path {
  stroke: #e8f5a0;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: var(--nj-spiral-length, 450);
  stroke-dashoffset: var(--nj-spiral-length, 450);
}

.nj-visual.is-ready .nj-visual__spiral-path {
  animation: nj-draw-spiral 1.7s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

@keyframes nj-draw-spiral {
  from {
    stroke-dashoffset: var(--nj-spiral-length, 450);
  }
  to {
    stroke-dashoffset: 0;
  }
}

.nj-visual__text {
  position: absolute;
  top: 0;
  left: clamp(1.25rem, 4vw, 3.25rem);
  z-index: 5;
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  font-size: clamp(2.35rem, 5.4vw, 4rem);
  font-weight: 900;
  line-height: 1.32;
  letter-spacing: -0.04em;
  pointer-events: none;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
}

.nj-visual__text span {
  display: block;
  animation: nj-rise 0.7s ease both;
}

.nj-visual__text span:nth-child(2) {
  animation-delay: 0.12s;
}

.nj-visual__bar {
  background: #111;
  color: #fff;
}

.nj-visual__bar-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem 1.5rem;
  align-items: center;
  padding: 1.15rem 0;
}

.nj-visual__bar strong {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.nj-visual__bar p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

.nj-visual__bar-link {
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  padding-bottom: 2px;
}

.nj-visual__bar-link:hover {
  color: #d8f07a;
  border-bottom-color: #d8f07a;
}

@keyframes nj-visual-zoom {
  from {
    transform: scale(1.24);
    opacity: 0.8;
  }
  to {
    transform: scale(1.14);
    opacity: 1;
  }
}

@media (max-width: 760px) {
  .nj-visual__inner {
    height: auto;
    display: flex;
    flex-direction: column-reverse;
  }

  .nj-visual__photo-wrap {
    position: relative;
    right: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 4;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 480' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' d='M72 70c42-48 118-74 198-72 88 2 168 36 228 96 52 52 86 126 84 202-2 78-42 150-106 198-58 44-136 66-214 62-84-4-164-40-218-106C-10 380-18 292 12 220 38 156 48 104 72 70z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 480' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' d='M72 70c42-48 118-74 198-72 88 2 168 36 228 96 52 52 86 126 84 202-2 78-42 150-106 198-58 44-136 66-214 62-84-4-164-40-218-106C-10 380-18 292 12 220 38 156 48 104 72 70z'/%3E%3C/svg%3E");
  }

  .nj-visual__spiral {
    top: 28%;
    left: 12%;
    width: 22%;
  }

  .nj-visual__text {
    position: relative;
    left: 1.25rem;
    height: auto;
    padding: 1.5rem 1.25rem 0.75rem;
    font-size: clamp(2rem, 9vw, 2.7rem);
    pointer-events: auto;
  }

  .nj-visual__bar-inner {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
}

/* Buttons */
.nj-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nj-btn:hover {
  transform: translateY(-1px);
}

.nj-btn-primary {
  background: var(--nj-leaf);
  color: #fff;
}

.nj-btn-primary:hover {
  background: var(--nj-leaf-deep);
  color: #fff;
}

.nj-btn-naver { background: #03c75a; color: #fff; border-radius: var(--nj-radius-sm); }
.nj-btn-coupang { background: #e4572e; color: #fff; border-radius: var(--nj-radius-sm); }
.nj-btn-kakao { background: #fee500; color: #191600; border-radius: var(--nj-radius-sm); }
.nj-btn-woo { background: var(--nj-leaf); color: #fff; border-radius: var(--nj-radius-sm); }

.nj-shop-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

/* Sections */
.nj-section {
  padding: 3rem 0 3.5rem;
}

.nj-section--muted {
  background: #fafafa;
  border-top: 1px solid var(--nj-line);
}

.nj-section__head {
  margin-bottom: 1.5rem;
  max-width: 40rem;
}

.nj-section__head--row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  max-width: none;
}

.nj-section__head h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  margin: 0 0 0.35rem;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.nj-section__head p {
  margin: 0;
  color: var(--nj-muted);
}

.nj-section__more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--nj-muted);
  white-space: nowrap;
}

.nj-section__more:hover {
  color: var(--nj-leaf);
}

/* Product grid — Dodram-like 4 cols */
.nj-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem 1.25rem;
}

@media (max-width: 1100px) {
  .nj-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .nj-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.35rem 0.85rem;
  }

  .nj-stage__grid {
    grid-template-columns: 1fr;
  }

  .nj-banner--side {
    min-height: auto;
  }

  .nj-header__inner {
    flex-wrap: wrap;
  }

  .nj-header__nav {
    display: none;
  }
}

@media (max-width: 420px) {
  .nj-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Produce cards — landing cards link to Smart Store */
.nj-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: transparent;
  animation: nj-rise 0.65s ease both;
}

.nj-card:nth-child(2) { animation-delay: 0.05s; }
.nj-card:nth-child(3) { animation-delay: 0.1s; }
.nj-card:nth-child(4) { animation-delay: 0.15s; }

.nj-card__link {
  display: flex;
  flex-direction: column;
  color: inherit;
  height: 100%;
}

.nj-card__photo {
  position: relative;
  border-radius: var(--nj-radius);
  overflow: hidden;
  background: var(--nj-soft);
  aspect-ratio: 1 / 1.05;
}

.nj-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.nj-card:hover .nj-card__photo img {
  transform: scale(1.04);
}

.nj-card__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--nj-leaf-deep);
}

.nj-badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 2;
  margin: 0;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  background: #333;
  color: #fff;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.nj-badge--soldout {
  background: rgba(0, 0, 0, 0.72);
}

.nj-card.is-soldout .nj-card__photo img {
  filter: grayscale(0.35);
  opacity: 0.85;
}

.nj-card__info {
  padding: 0.85rem 0.15rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.nj-card__name {
  display: block;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: #000;
}

.nj-card__money {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.nj-card__price {
  font-size: 1.2rem;
  font-weight: 700;
  color: #000;
  letter-spacing: -0.02em;
}

.nj-card__price em {
  font-style: normal;
  font-size: 0.92em;
  font-weight: 600;
  margin-left: 1px;
}

.nj-card__unit {
  font-size: 0.82rem;
  color: #9e9e9e;
}

/* Posts list */
.nj-posts {
  display: grid;
  gap: 0;
}

.nj-post-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.15rem 0;
  border-top: 1px solid var(--nj-line);
}

.nj-post-row:last-child {
  border-bottom: 1px solid var(--nj-line);
}

.nj-post-row h3 {
  font-size: 1.15rem;
  margin: 0 0 0.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nj-post-row h3 a {
  color: inherit;
}

.nj-post-row p {
  margin: 0;
  color: var(--nj-muted);
  font-size: 0.95rem;
}

.nj-post-row time {
  font-size: 0.85rem;
  color: #9e9e9e;
  white-space: nowrap;
}

/* Single / content */
.nj-page-hero {
  padding: 2.5rem 0 1.25rem;
}

.nj-page-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin: 0.5rem 0 0.6rem;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.nj-content {
  max-width: 720px;
}

.nj-content > *:first-child {
  margin-top: 0;
}

.nj-content h2 {
  margin-top: 2rem;
  letter-spacing: -0.02em;
}

.nj-factbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 1.25rem 0 1.75rem;
  padding: 1rem 0;
  border-top: 1px solid var(--nj-line);
  border-bottom: 1px solid var(--nj-line);
  font-size: 0.95rem;
}

.nj-factbar strong {
  color: var(--nj-leaf-deep);
}

.nj-produce-figure {
  margin: 0 0 1.5rem;
  border-radius: var(--nj-radius);
  overflow: hidden;
  background: var(--nj-soft);
}

.nj-produce-figure img,
.nj-produce-hero {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* Footer */
.nj-footer {
  margin-top: 0;
  padding: 2.75rem 0;
  border-top: 1px solid var(--nj-line);
  background: #fafafa;
}

.nj-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem;
  font-size: 0.92rem;
  color: var(--nj-muted);
}

.nj-footer .nj-brand {
  font-size: 1.25rem;
  display: inline-block;
  margin-bottom: 0.4rem;
}

@keyframes nj-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .nj-visual__spiral-path {
    stroke-dashoffset: 0 !important;
  }
}
