:root {
  --bg: #ffffff;
  --bg-soft: #f7fafc;
  --bg-tint: #eef4f8;
  --fg: #061b31;
  --fg-soft: #14344d;
  --muted: #64748d;
  --border: #d9e4ef;
  --border-strong: #b7c9d8;
  --primary: #2f7d3c;
  --primary-hover: #246b32;
  --on-primary: #ffffff;
  --citrus-soft: #fff7e7;
  --citrus: #ffb84d;
  --rose-soft: #ffeef2;
  --rose: #d84f6a;
  --success-bg: #edf8ef;
  --success: #17692d;
  --navy-panel: #1c3158;
  --field: #f4f8fb;
  --ring-soft: #cdd9e5;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-18: 72px;
  --space-20: 80px;
  --space-24: 96px;
  --space-28: 112px;
  --radius-1: 4px;
  --radius-2: 8px;
  --shadow-sm: 0 12px 28px rgba(50, 50, 93, 0.12), 0 6px 18px rgba(6, 27, 49, 0.06);
  --shadow-md: 0 24px 60px rgba(50, 50, 93, 0.16), 0 12px 32px rgba(6, 27, 49, 0.08);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "SF Pro Display", "SF Pro Text", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-shell {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-8);
  padding: 0 max(24px, calc((100vw - 1200px) / 2));
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.header-actions,
.hero-actions,
.modal-buy-row,
.drawer-header,
.summary-row,
.summary-total,
.set-panel,
.trust-strip,
.product-meta,
.card-actions,
.qty-control {
  display: flex;
  align-items: center;
}

.brand {
  gap: var(--space-2);
  color: var(--fg);
  font-size: 20px;
  font-weight: 700;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-1);
  background:
    radial-gradient(circle at 68% 30%, var(--citrus) 0 18%, transparent 19%),
    linear-gradient(135deg, var(--primary), var(--success));
  box-shadow: 0 8px 18px rgba(47, 125, 60, 0.22);
}

.nav-links {
  justify-content: center;
  gap: var(--space-8);
  color: var(--fg-soft);
  font-size: 15px;
  font-weight: 500;
}

.nav-links a {
  padding: var(--space-2) 0;
}

.nav-links a:hover {
  color: var(--primary);
}

.header-actions {
  gap: var(--space-2);
  justify-content: flex-end;
}

.icon-button {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: var(--fg);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-1);
  transition: background 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease);
}

.icon-button:hover {
  background: var(--bg-soft);
  border-color: var(--border);
}

.icon-button:active,
.button:active {
  transform: translateY(1px);
}

.icon-button svg,
.trust-strip svg,
.search-field svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-button {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0 var(--space-1);
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 12px;
  font-weight: 700;
  border: 2px solid var(--bg);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: var(--space-16);
  min-height: calc(100vh - 72px);
  padding: var(--space-20) 0 var(--space-16);
}

.hero-copy {
  max-width: 560px;
}

.eyebrow {
  margin: 0 0 var(--space-4);
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: var(--space-6);
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -1px;
}

h2 {
  margin-bottom: var(--space-4);
  font-size: clamp(30px, 4vw, 34px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.3px;
}

h3 {
  margin-bottom: var(--space-2);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.18;
}

.hero-text,
.split-copy p,
.story-copy p,
.subscribe-section p,
.product-modal p {
  color: var(--muted);
  font-size: 18px;
  font-weight: 300;
}

.hero-actions {
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-8) 0 var(--space-12);
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-1);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  transition: background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease), box-shadow 180ms var(--ease), transform 180ms var(--ease);
}

.button.primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 10px 22px rgba(47, 125, 60, 0.22);
}

.button.primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 12px 28px rgba(47, 125, 60, 0.28);
}

.button.secondary {
  background: var(--bg);
  color: var(--fg);
  border-color: var(--border-strong);
}

.button.secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.button.full {
  width: 100%;
}

.button:disabled,
.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.button:focus-visible,
.icon-button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid var(--ring-soft);
  outline-offset: 2px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin: 0;
}

.hero-stats div {
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-2);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}

.hero-stats dt {
  color: var(--fg);
  font-size: 20px;
  font-weight: 700;
}

.hero-stats dd {
  margin: var(--space-1) 0 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  border-radius: var(--radius-2);
  background: var(--bg-tint);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 520px;
}

.fresh-card {
  position: absolute;
  right: var(--space-6);
  bottom: var(--space-6);
  width: min(260px, calc(100% - 48px));
  padding: var(--space-5);
  border: 1px solid rgba(217, 228, 239, 0.88);
  border-radius: var(--radius-2);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.fresh-card span,
.fresh-card small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.fresh-card strong {
  display: block;
  margin: var(--space-1) 0;
  color: var(--fg);
  font-size: 20px;
  font-weight: 500;
}

.trust-strip {
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-6) 0 var(--space-16);
}

.trust-strip div {
  min-width: 0;
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: var(--space-3);
  align-items: center;
}

.trust-strip svg {
  grid-row: span 2;
  width: 36px;
  height: 36px;
  padding: var(--space-2);
  color: var(--primary);
  background: var(--success-bg);
  border-radius: var(--radius-1);
}

.trust-strip span {
  color: var(--fg);
  font-weight: 700;
}

.trust-strip small {
  color: var(--muted);
}

.products-section,
.sets-section,
.story-section,
.subscribe-section {
  padding: var(--space-20) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 340px);
  gap: var(--space-8);
  align-items: end;
  margin-bottom: var(--space-8);
}

.section-heading h2 {
  max-width: 680px;
}

.search-field {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-1);
  background: var(--field);
  color: var(--muted);
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--fg);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-2);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), border-color 180ms var(--ease);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.product-image-button {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--bg-tint);
}

.product-image-button img {
  width: 100%;
  height: 100%;
  transition: transform 220ms var(--ease), filter 220ms var(--ease);
}

.product-card:hover .product-image-button img {
  transform: scale(1.04);
  filter: saturate(1.04);
}

.badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-1);
  background: var(--success-bg);
  color: var(--success);
  font-size: 12px;
  font-weight: 700;
}

.product-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-4);
}

.product-content h3 {
  margin-bottom: var(--space-1);
}

.product-content p {
  margin-bottom: var(--space-4);
  color: var(--muted);
  font-size: 14px;
}

.product-meta {
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: auto;
}

.price {
  color: var(--fg);
  font-size: 18px;
  font-weight: 800;
}

.card-actions {
  gap: var(--space-2);
}

.small-link {
  border: 0;
  padding: var(--space-2);
  background: transparent;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}

.small-link:hover {
  color: var(--primary-hover);
}

.empty-results {
  padding: var(--space-8);
  border: 1px solid var(--border);
  border-radius: var(--radius-2);
  color: var(--muted);
  background: var(--bg-soft);
}

.sets-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: var(--space-10);
  align-items: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.set-panel {
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-2);
  background: linear-gradient(135deg, var(--citrus-soft), var(--rose-soft));
  box-shadow: var(--shadow-sm);
}

.set-panel span {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--muted);
  font-size: 14px;
}

.set-panel strong {
  display: block;
  color: var(--fg);
  font-size: 20px;
  font-weight: 500;
}

.story-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1fr);
  gap: var(--space-12);
  align-items: center;
}

.story-media {
  border-radius: var(--radius-2);
  overflow: hidden;
  background: var(--bg-tint);
  box-shadow: var(--shadow-md);
}

.story-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
}

.story-list {
  display: grid;
  gap: var(--space-3);
  padding: 0;
  margin: var(--space-6) 0 0;
  list-style: none;
}

.story-list li {
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-1);
  background: var(--bg-soft);
  color: var(--fg-soft);
}

.subscribe-section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-8);
  align-items: center;
  margin-bottom: var(--space-20);
  padding: var(--space-10);
  border: 1px solid var(--border);
  border-radius: var(--radius-2);
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 184, 77, 0.26), transparent 24%),
    var(--bg-soft);
  box-shadow: var(--shadow-sm);
}

.cart-drawer,
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms var(--ease);
}

.cart-drawer {
  background: rgba(6, 27, 49, 0.18);
}

.cart-drawer.is-open,
.modal-backdrop.is-open {
  pointer-events: auto;
  opacity: 1;
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--bg);
  box-shadow: var(--shadow-md);
  transform: translateX(100%);
  transition: transform 220ms var(--ease);
}

.cart-drawer.is-open .drawer-panel {
  transform: translateX(0);
}

.drawer-header {
  justify-content: space-between;
  padding: var(--space-6);
  border-bottom: 1px solid var(--border);
}

.drawer-header h2 {
  margin: 0;
  font-size: 24px;
}

.cart-body {
  overflow: auto;
  padding: var(--space-4) var(--space-6);
}

.empty-cart {
  display: grid;
  place-items: center;
  min-height: 280px;
  text-align: center;
  color: var(--muted);
}

.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
}

.cart-item img {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-1);
  background: var(--bg-tint);
}

.cart-item h3 {
  margin: 0 0 var(--space-1);
  font-size: 15px;
}

.cart-item p {
  margin: 0 0 var(--space-3);
  color: var(--muted);
  font-size: 13px;
}

.qty-control {
  gap: var(--space-2);
}

.qty-control button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-1);
  background: var(--bg);
  color: var(--fg);
}

.remove-button {
  align-self: start;
  color: var(--rose);
}

.drawer-panel .remove-button svg {
  width: 18px;
  height: 18px;
}

.cart-footer {
  padding: var(--space-6);
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.summary-row,
.summary-total {
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.summary-row {
  color: var(--muted);
  font-size: 14px;
}

.summary-total {
  padding-top: var(--space-4);
  margin-top: var(--space-3);
  border-top: 1px solid var(--border);
  color: var(--fg);
  font-size: 20px;
}

.summary-total strong {
  color: var(--primary);
}

.modal-backdrop {
  display: grid;
  place-items: center;
  padding: var(--space-6);
  background: rgba(6, 27, 49, 0.38);
}

.product-modal,
.checkout-modal {
  position: relative;
  width: min(960px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  border-radius: var(--radius-2);
  background: var(--bg);
  box-shadow: var(--shadow-md);
  transform: translateY(16px) scale(0.98);
  transition: transform 220ms var(--ease);
}

.modal-backdrop.is-open .product-modal,
.modal-backdrop.is-open .checkout-modal {
  transform: translateY(0) scale(1);
}

.product-modal {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1fr);
}

.modal-image-wrap {
  min-height: 520px;
  background: var(--bg-tint);
}

.modal-image-wrap img {
  width: 100%;
  height: 100%;
  min-height: 520px;
}

.modal-content {
  padding: var(--space-10);
}

.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 1;
  background: rgba(255, 255, 255, 0.88);
  border-color: var(--border);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin: var(--space-8) 0;
}

.detail-grid div {
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-1);
  background: var(--bg-soft);
}

.detail-grid dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.detail-grid dd {
  margin: var(--space-1) 0 0;
  color: var(--fg);
  font-weight: 700;
}

.modal-buy-row {
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.modal-buy-row strong {
  font-size: 24px;
}

.checkout-modal {
  width: min(560px, 100%);
  padding: var(--space-10);
}

.checkout-form {
  display: grid;
  gap: var(--space-4);
}

.checkout-form label {
  display: grid;
  gap: var(--space-2);
  color: var(--fg-soft);
  font-size: 14px;
  font-weight: 700;
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-1);
  background: var(--field);
  color: var(--fg);
  resize: vertical;
}

.checkout-summary {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-1);
  background: var(--bg-soft);
  color: var(--fg-soft);
}

.checkout-summary div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
}

.order-success {
  text-align: center;
}

.success-icon {
  display: inline-grid;
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-4);
  border-radius: 50%;
  background:
    linear-gradient(135deg, var(--primary), var(--success)),
    var(--success-bg);
  box-shadow: 0 12px 28px rgba(47, 125, 60, 0.22);
}

.order-success p {
  color: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: var(--space-6);
  z-index: 160;
  min-width: min(360px, calc(100% - 32px));
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-2);
  background: var(--navy-panel);
  color: var(--on-primary);
  text-align: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-links {
    display: none;
  }

  .header-actions {
    justify-content: end;
  }

  .hero,
  .sets-section,
  .story-section,
  .subscribe-section {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: var(--space-10);
    min-height: 0;
    padding-top: var(--space-14);
  }

  .hero-visual,
  .hero-visual img {
    min-height: 420px;
  }

  .section-heading,
  .product-modal {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modal-image-wrap,
  .modal-image-wrap img {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .section-shell {
    width: min(100% - 32px, 1200px);
  }

  .site-header {
    height: 64px;
    padding: 0 var(--space-4);
  }

  .brand {
    font-size: 18px;
  }

  h1 {
    font-size: 40px;
    line-height: 1.08;
    letter-spacing: -0.4px;
  }

  .hero {
    padding: var(--space-12) 0;
  }

  .hero-stats,
  .product-grid,
  .trust-strip,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    align-items: stretch;
    padding-bottom: var(--space-10);
  }

  .hero-visual,
  .hero-visual img {
    min-height: 340px;
  }

  .fresh-card {
    right: var(--space-4);
    bottom: var(--space-4);
  }

  .products-section,
  .sets-section,
  .story-section,
  .subscribe-section {
    padding: var(--space-12) 0;
  }

  .set-panel,
  .modal-buy-row,
  .subscribe-section {
    align-items: stretch;
    flex-direction: column;
  }

  .subscribe-section {
    padding: var(--space-6);
  }

  .cart-item {
    grid-template-columns: 64px 1fr auto;
  }

  .cart-item img {
    width: 64px;
    height: 64px;
  }

  .modal-backdrop {
    padding: var(--space-4);
  }

  .modal-content,
  .checkout-modal {
    padding: var(--space-6);
  }

  .modal-image-wrap,
  .modal-image-wrap img {
    min-height: 280px;
  }
}

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

  .product-card:hover,
  .product-card:hover .product-image-button img,
  .icon-button:active,
  .button:active {
    transform: none;
  }
}
