:root {
  --blue: #3182f6;
  --blue-dark: #1b64da;
  --blue-soft: #eaf3ff;
  --grey-900: #191f28;
  --grey-800: #333d4b;
  --grey-700: #4e5968;
  --grey-600: #6b7684;
  --grey-500: #8b95a1;
  --grey-400: #b0b8c1;
  --grey-300: #d1d6db;
  --grey-200: #e5e8eb;
  --grey-100: #f2f4f6;
  --grey-50: #f7f8fa;
  --white: #fff;
  --green: #20c272;
  --orange: #ff8a3d;
  --red: #f04452;
  --yellow: #ffca28;
  --page-max: 760px;
  color: var(--grey-900);
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  background: #eef1f4;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.seo-fallback {
  width: min(100% - 40px, var(--page-max));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.seo-fallback nav,
.seo-fallback ul {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.seo-fallback a {
  color: var(--grey-900);
}

.seo-fallback nav > a,
.seo-fallback li > a {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--grey-100);
  border-radius: 16px;
  text-decoration: none;
}

.seo-fallback span,
.seo-fallback p,
.seo-fallback dd {
  color: var(--grey-600);
  line-height: 1.65;
}

.seo-fallback img {
  width: min(100%, 520px);
  max-height: 420px;
  border-radius: 24px;
  object-fit: cover;
}

button,
input {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(49, 130, 246, 0.28);
  outline-offset: 2px;
}

.app-shell {
  position: relative;
  width: 100%;
  max-width: var(--page-max);
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
  overflow: hidden;
  background: var(--white);
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  background: transparent;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.7px;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  background: var(--blue);
  color: white;
  font-size: 17px;
  box-shadow: 0 5px 12px rgba(49, 130, 246, 0.24);
}

.top-actions {
  display: flex;
  gap: 6px;
}

.icon-button {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: transparent;
  color: var(--grey-800);
  transition: background 0.16s ease, transform 0.16s ease;
}

.icon-button:hover {
  background: var(--grey-100);
}

.icon-button:active,
.soft-button:active,
.primary-button:active,
.category-card:active,
.variety-card:active {
  transform: scale(0.97);
}

.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.page {
  animation: fade-in 0.25s ease;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

.hero {
  padding: 34px 24px 30px;
}

.eyebrow {
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 5px var(--blue-soft);
}

.hero h1,
.category-hero h1,
.search-heading h1 {
  margin: 0;
  padding-bottom: 3px;
  font-size: clamp(30px, 8.5vw, 44px);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -1.7px;
}

.hero h1 strong {
  color: var(--blue);
  font-weight: 900;
}

.hero-copy {
  margin: 15px 0 0;
  color: var(--grey-600);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.25px;
}

.search-trigger {
  display: flex;
  width: 100%;
  height: 58px;
  align-items: center;
  margin-top: 27px;
  padding: 0 18px;
  border-radius: 18px;
  background: var(--grey-100);
  color: var(--grey-500);
  text-align: left;
  transition: background 0.16s ease;
}

.search-trigger:hover {
  background: var(--grey-200);
}

.search-trigger .icon {
  width: 22px;
  margin-right: 10px;
}

.search-trigger span {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
}

.search-shortcut {
  display: none;
  padding: 4px 8px;
  border: 1px solid var(--grey-300);
  border-radius: 7px;
  background: white;
  color: var(--grey-500);
  font-size: 11px;
}

.section {
  padding: 36px 20px 10px;
}

.section.soft {
  padding-top: 40px;
  padding-bottom: 40px;
  background: var(--grey-50);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  margin: 0;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.8px;
}

.section-description {
  margin: 6px 0 0;
  color: var(--grey-600);
  font-size: 14px;
  line-height: 1.55;
}

.text-button {
  padding: 7px 3px;
  background: transparent;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

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

.category-card {
  position: relative;
  min-height: 175px;
  padding: 18px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--card-bg);
  text-align: left;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  color: inherit;
  text-decoration: none;
}

.category-card:hover {
  box-shadow: 0 12px 30px rgba(25, 31, 40, 0.08);
  transform: translateY(-2px);
}

.category-card.wide {
  grid-column: 1 / -1;
  min-height: 142px;
}

.category-meta {
  position: relative;
  z-index: 2;
}

.category-count {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--grey-700);
  font-size: 11px;
  font-weight: 700;
}

.category-name {
  display: block;
  margin-top: 10px;
  color: var(--grey-900);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.7px;
}

.category-groups {
  display: block;
  max-width: 128px;
  margin-top: 5px;
  color: var(--grey-600);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.fruit-visual {
  position: absolute;
  z-index: 1;
  right: -9px;
  bottom: -12px;
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
  font-size: 66px;
  filter: drop-shadow(0 12px 12px rgba(25, 31, 40, 0.12));
  transform: rotate(-7deg);
}

.fruit-visual > img,
.category-hero-emoji > img,
.season-photo > img,
.guide-icon > img,
.fruit-avatar > img,
.search-result-emoji > img,
.sheet-fruit > img,
.comparison-photo > img {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-fallback {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--grey-50), var(--grey-100));
}

.wide .fruit-visual {
  right: 12px;
  bottom: -20px;
  width: 128px;
  height: 128px;
  font-size: 78px;
}

/* Home taxonomy: roomy Toss-style rows that never overlap text and photography. */
.category-section {
  padding-top: 24px;
}

.category-section .section-head {
  margin-bottom: 16px;
}

.category-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.category-card,
.category-card.wide {
  display: grid;
  min-height: 104px;
  grid-template-columns: 68px minmax(0, 1fr) 22px;
  gap: 15px;
  align-items: center;
  padding: 16px;
  overflow: visible;
  border: 1px solid var(--grey-100);
  border-radius: 22px;
  background: var(--white);
  box-shadow: none;
  text-align: left;
  transition: transform 0.16s ease, background 0.16s ease;
}

.category-card:hover {
  background: var(--grey-50);
  box-shadow: none;
  transform: none;
}

.category-card .chevron {
  width: 20px;
  color: var(--grey-400);
}

.category-meta {
  position: static;
  min-width: 0;
}

.category-titleline {
  display: flex;
  gap: 8px;
  align-items: center;
}

.category-count {
  height: 24px;
  flex: 0 0 auto;
  padding: 0 8px;
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.category-name {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.5px;
}

.category-groups {
  width: 100%;
  max-width: none;
  margin-top: 6px;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-card .fruit-visual,
.category-card.wide .fruit-visual {
  position: relative;
  inset: auto;
  width: 68px;
  height: 68px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--card-bg);
  font-size: 36px;
  filter: none;
  transform: none;
}

.season-card {
  position: relative;
  padding: 24px 22px 22px;
  overflow: hidden;
  border-radius: 26px;
  background: #edf6ff;
}

.season-card::after {
  position: absolute;
  top: -50px;
  right: -42px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
  content: "";
}

.season-label {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.season-title {
  position: relative;
  z-index: 1;
  margin: 7px 0 5px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.8px;
}

.season-copy {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--grey-600);
  font-size: 14px;
}

.season-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 22px;
  overflow: visible;
}

.season-list::-webkit-scrollbar,
.chip-row::-webkit-scrollbar,
.horizontal-list::-webkit-scrollbar {
  display: none;
}

.season-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 11px;
  border-radius: 17px;
  background: white;
  color: inherit;
  text-decoration: none;
}

.season-photo {
  position: relative;
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  margin: 0 0 9px;
  overflow: hidden;
  place-items: center;
  border-radius: 13px;
  background: var(--grey-100);
  font-size: 24px;
}

.season-item strong,
.season-item small {
  display: block;
}

.season-item strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.season-item small {
  margin-top: 2px;
  color: var(--grey-500);
  font-size: 10px;
}

.guide-list {
  display: grid;
  gap: 11px;
}

.guide-row {
  display: flex;
  align-items: center;
  padding: 17px 18px;
  border-radius: 20px;
  background: white;
  box-shadow: 0 2px 11px rgba(25, 31, 40, 0.035);
  color: inherit;
  text-decoration: none;
}

.guide-icon {
  position: relative;
  display: grid;
  flex: 0 0 43px;
  width: 43px;
  height: 43px;
  margin-right: 13px;
  place-items: center;
  border-radius: 15px;
  background: var(--guide-bg);
  font-size: 21px;
  overflow: hidden;
}

.guide-row strong,
.guide-row span {
  display: block;
}

.guide-row strong {
  font-size: 15px;
  font-weight: 800;
}

.guide-row span {
  margin-top: 3px;
  color: var(--grey-500);
  font-size: 12px;
}

.guide-row .chevron {
  width: 20px;
  margin-left: auto;
  color: var(--grey-400);
}

.photo-credit-note {
  padding: 22px 24px 30px;
  background: var(--grey-50);
  color: var(--grey-500);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.photo-credit-note a {
  color: var(--grey-600);
  font-weight: 700;
}

.category-hero {
  padding: 25px 20px 30px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  color: var(--grey-500);
  font-size: 13px;
  font-weight: 600;
}

.breadcrumb button,
.breadcrumb a {
  padding: 4px 0;
  background: transparent;
  color: var(--grey-500);
}

.breadcrumb span {
  padding: 0 6px;
}

.category-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-hero-emoji {
  position: relative;
  display: grid;
  flex: 0 0 82px;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 28px;
  background: var(--category-bg);
  font-size: 49px;
  overflow: hidden;
  transform: rotate(4deg);
}

.category-hero p {
  max-width: 480px;
  margin: 15px 0 0;
  color: var(--grey-600);
  font-size: 15px;
  line-height: 1.65;
}

.chip-sticky {
  position: sticky;
  z-index: 15;
  top: 63px;
  padding: 12px 0 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
}

.chip-row {
  display: flex;
  gap: 8px;
  padding: 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.chip {
  flex: 0 0 auto;
  height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  background: var(--grey-100);
  color: var(--grey-700);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.chip.selected {
  background: var(--grey-900);
  color: white;
}

.season-chip {
  background: #fff4e8;
  color: #d86c00;
}

.season-chip.selected {
  background: var(--orange);
  color: white;
}

.chip:active {
  transform: scale(0.96);
}

.result-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 12px;
}

.taste-filters {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 6px 20px 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.taste-filters::-webkit-scrollbar {
  display: none;
}

.filter-label {
  flex: 0 0 auto;
  margin-right: 2px;
  color: var(--grey-500);
  font-size: 12px;
  font-weight: 700;
}

.taste-filter,
.filter-reset {
  flex: 0 0 auto;
  height: 36px;
  padding: 0 13px;
  border-radius: 12px;
  background: var(--grey-100);
  color: var(--grey-700);
  font-size: 12px;
  font-weight: 700;
}

.taste-filter.active {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.filter-reset {
  padding-right: 4px;
  padding-left: 4px;
  background: transparent;
  color: var(--grey-500);
}

.result-summary strong {
  font-size: 17px;
  font-weight: 800;
}

.result-summary span {
  color: var(--grey-500);
  font-size: 13px;
}

.variety-list {
  display: grid;
  gap: 0;
  padding: 0 20px 36px;
}

.variety-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--grey-100);
  border-radius: 0;
  background: white;
  text-align: left;
  box-shadow: none;
  transition: background 0.16s ease, transform 0.16s ease;
}

.variety-card:hover {
  background: var(--grey-50);
  box-shadow: none;
}

.variety-main {
  display: grid;
  min-width: 0;
  grid-template-columns: 84px minmax(0, 1fr) 22px;
  gap: 15px;
  align-items: center;
  padding: 17px 0;
  background: transparent;
  text-align: left;
  color: inherit;
  text-decoration: none;
}

.fruit-avatar {
  position: relative;
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border-radius: 24px;
  background: var(--avatar-bg);
  overflow: hidden;
}

.variety-copy {
  display: block;
  min-width: 0;
}

.row-chevron {
  display: grid;
  place-items: center;
  color: var(--grey-400);
}

.row-chevron .icon {
  width: 18px;
}

.variety-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.variety-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.45px;
}

.type-badge {
  display: inline-flex;
  height: 22px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-color);
  font-size: 10px;
  font-weight: 800;
}

.season-badge {
  display: inline-flex;
  height: 22px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #fff1e2;
  color: #e16b00;
  font-size: 10px;
  font-weight: 900;
}

.variety-description {
  display: -webkit-box;
  margin: 7px 0 7px;
  overflow: hidden;
  color: var(--grey-600);
  font-size: 13px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.mini-tag {
  color: var(--grey-500);
  font-size: 10px;
  font-weight: 600;
}

.mini-tag + .mini-tag::before {
  margin-right: 5px;
  color: var(--grey-300);
  content: "·";
}

.save-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: transparent;
  color: var(--grey-400);
}

.save-button.saved {
  color: var(--red);
}

.save-button .icon {
  width: 22px;
  fill: transparent;
}

.save-button.saved .icon {
  fill: currentColor;
}

.compare-toggle {
  grid-column: 2 / 4;
  display: flex;
  align-items: center;
  width: fit-content;
  margin-top: 13px;
  padding: 0;
  background: transparent;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.check-box {
  display: grid;
  width: 19px;
  height: 19px;
  margin-right: 7px;
  place-items: center;
  border: 1.5px solid var(--grey-300);
  border-radius: 6px;
  background: white;
  color: white;
}

.compare-toggle.active .check-box {
  border-color: var(--blue);
  background: var(--blue);
}

.check-box .icon {
  width: 13px;
  stroke-width: 2.5;
}

.compare-bar {
  position: fixed;
  z-index: 40;
  right: 14px;
  bottom: calc(84px + env(safe-area-inset-bottom));
  left: 14px;
  display: flex;
  max-width: 704px;
  align-items: center;
  margin: auto;
  padding: 13px 13px 13px 17px;
  border-radius: 21px;
  background: var(--grey-900);
  color: white;
  box-shadow: 0 15px 38px rgba(25, 31, 40, 0.27);
  animation: bar-up 0.24s ease;
}

@keyframes bar-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

.compare-bar-copy {
  min-width: 0;
  flex: 1;
}

.compare-bar-copy strong,
.compare-bar-copy span {
  display: block;
}

.compare-bar-copy strong {
  font-size: 14px;
  font-weight: 800;
}

.compare-bar-copy span {
  margin-top: 2px;
  overflow: hidden;
  color: var(--grey-400);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compare-bar button {
  height: 43px;
  padding: 0 16px;
  border-radius: 14px;
  background: var(--blue);
  color: white;
  font-size: 13px;
  font-weight: 800;
}

.compare-bar button:disabled {
  background: var(--grey-700);
  color: var(--grey-400);
  cursor: default;
}

.bottom-nav {
  position: fixed;
  z-index: 30;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  max-width: var(--page-max);
  height: calc(72px + env(safe-area-inset-bottom));
  grid-template-columns: repeat(3, 1fr);
  margin: auto;
  padding: 7px 26px env(safe-area-inset-bottom);
  border-top: 1px solid rgba(229, 232, 235, 0.8);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
}

.nav-button {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--grey-400);
  font-size: 10px;
  font-weight: 700;
}

.nav-button.active {
  color: var(--grey-900);
}

.nav-button .icon {
  width: 23px;
  height: 23px;
}

.search-page {
  min-height: calc(100vh - 64px);
  padding: 12px 20px 60px;
}

.search-bar {
  display: flex;
  height: 56px;
  align-items: center;
  border-radius: 18px;
  background: var(--grey-100);
}

.search-bar .icon {
  flex: 0 0 auto;
  width: 22px;
  margin-left: 17px;
  color: var(--grey-500);
}

.search-bar input {
  min-width: 0;
  height: 100%;
  flex: 1;
  padding: 0 9px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
}

.search-bar input::placeholder {
  color: var(--grey-500);
  font-weight: 500;
}

.search-bar input::-webkit-search-cancel-button {
  display: none;
  appearance: none;
}

.clear-button {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-right: 5px;
  background: transparent;
  color: var(--grey-400);
}

.clear-button .icon {
  width: 18px;
  margin: 0;
  fill: currentColor;
  stroke: white;
}

.search-heading {
  padding: 35px 3px 18px;
}

.search-heading h1 {
  font-size: 27px;
}

.search-heading p {
  margin: 9px 0 0;
  color: var(--grey-500);
  font-size: 14px;
}

.popular-searches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.popular-button {
  height: 39px;
  padding: 0 14px;
  border-radius: 13px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 700;
}

.search-results {
  margin-top: 27px;
}

.search-result {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 24px;
  align-items: center;
  width: 100%;
  padding: 14px 2px;
  border-bottom: 1px solid var(--grey-100);
  background: transparent;
  text-align: left;
  color: inherit;
  text-decoration: none;
}

.search-result-emoji {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 15px;
  background: var(--grey-50);
  font-size: 26px;
  overflow: hidden;
}

.search-result strong,
.search-result span {
  display: block;
}

.search-result strong {
  font-size: 15px;
  font-weight: 800;
}

.search-result span {
  margin-top: 3px;
  color: var(--grey-500);
  font-size: 11px;
}

.search-result .icon {
  width: 18px;
  color: var(--grey-400);
}

.empty-state {
  padding: 70px 20px;
  color: var(--grey-500);
  text-align: center;
}

.empty-state strong {
  display: block;
  color: var(--grey-700);
  font-size: 16px;
}

.empty-state p {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.55;
}

.load-more-button {
  display: block;
  width: calc(100% - 40px);
  margin: 18px auto 32px;
  padding: 15px;
  border: 1px solid var(--grey-200);
  border-radius: 16px;
  background: white;
  color: var(--grey-700);
  font-weight: 800;
}

.load-more-button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.loading-page {
  display: grid;
  min-height: 60vh;
  place-content: center;
  justify-items: center;
  gap: 14px;
  color: var(--grey-600);
}

.loading-mark {
  display: grid;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: var(--blue);
  color: white;
  font-size: 22px;
  font-weight: 900;
  place-items: center;
}

.loading-bar {
  width: 140px;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--grey-200);
}

.loading-bar::after {
  display: block;
  width: 45%;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  content: "";
  animation: loading-slide 0.9s ease-in-out infinite alternate;
}

@keyframes loading-slide {
  to { transform: translateX(122%); }
}

.saved-page {
  padding: 26px 20px 60px;
}

.saved-page h1 {
  margin: 8px 0 4px;
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -1px;
}

.saved-page > p {
  margin: 0 0 28px;
  color: var(--grey-500);
  font-size: 14px;
}

.saved-page .variety-list {
  padding: 0;
}

.back-button {
  margin-left: -10px;
}

.sheet-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: 40px;
  background: rgba(25, 31, 40, 0.45);
  animation: backdrop-in 0.2s ease;
}

@keyframes backdrop-in {
  from { opacity: 0; }
}

.sheet {
  width: 100%;
  max-width: var(--page-max);
  max-height: 90vh;
  padding: 10px 20px calc(28px + env(safe-area-inset-bottom));
  overflow-y: auto;
  border-radius: 28px 28px 0 0;
  background: white;
  animation: sheet-up 0.26s cubic-bezier(0.33, 1, 0.68, 1);
}

@keyframes sheet-up {
  from { transform: translateY(100%); }
}

.sheet-handle {
  width: 40px;
  height: 4px;
  margin: 0 auto 19px;
  border-radius: 999px;
  background: var(--grey-300);
}

.sheet-head {
  display: flex;
  align-items: center;
}

.sheet-fruit {
  position: relative;
  display: grid;
  width: 88px;
  height: 88px;
  margin-right: 14px;
  place-items: center;
  border-radius: 26px;
  background: var(--avatar-bg);
  font-size: 44px;
  overflow: hidden;
}

.sheet-save {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  place-items: center;
  border-radius: 14px;
  background: var(--grey-50);
  color: var(--grey-400);
}

.sheet-save.saved {
  color: var(--red);
}

.sheet-save .icon {
  width: 22px;
}

.sheet-save.saved .icon {
  fill: currentColor;
}

.sheet-head small {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.sheet-head h2 {
  margin: 3px 0 0;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.8px;
}

.sheet-description {
  margin: 20px 0 16px;
  color: var(--grey-700);
  font-size: 15px;
  line-height: 1.65;
}

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

.detail-meta > span {
  display: block;
  padding: 16px;
  border-radius: 18px;
  background: var(--grey-50);
}

.detail-meta small,
.detail-meta strong {
  display: block;
}

.detail-meta small {
  color: var(--grey-500);
  font-size: 11px;
  font-weight: 600;
}

.detail-meta strong {
  margin-top: 5px;
  font-size: 14px;
  font-weight: 800;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.stat-card {
  padding: 17px;
  border-radius: 19px;
  background: var(--grey-50);
}

.stat-card span,
.stat-card strong {
  display: block;
}

.stat-card span {
  color: var(--grey-500);
  font-size: 11px;
}

.stat-card strong {
  margin-top: 5px;
  font-size: 15px;
  font-weight: 800;
}

.sheet-tip {
  display: flex;
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: #fff8e5;
  color: #7a5b00;
  font-size: 13px;
  line-height: 1.55;
}

.sheet-tip b {
  flex: 0 0 auto;
  margin-right: 8px;
}

.commerce-section {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--grey-100);
}

.commerce-heading {
  display: flex;
  align-items: center;
  margin-bottom: 17px;
}

.coupang-mark {
  display: grid;
  width: 42px;
  height: 42px;
  margin-right: 11px;
  place-items: center;
  border-radius: 14px;
  background: #e7332b;
  color: white;
  font-size: 20px;
  font-weight: 900;
}

.commerce-heading small,
.commerce-heading h3 {
  display: block;
}

.commerce-heading small {
  color: #e7332b;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.commerce-heading h3 {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.coupang-product-list {
  display: grid;
  gap: 14px;
}

.coupang-product {
  display: block;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--grey-100);
  border-radius: 24px;
  background: var(--white);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.coupang-product:hover {
  border-color: #d8dde5;
  box-shadow: 0 18px 42px rgba(25, 31, 40, 0.1);
  transform: translateY(-2px);
}

.product-image {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  place-items: center;
  background: #f8f9fb;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.24s ease;
}

.coupang-product:hover .product-image img {
  transform: scale(1.025);
}

.product-image-empty {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--grey-100);
}

.product-info {
  display: block;
  min-width: 0;
  padding: 16px 18px 18px;
}

.product-info strong,
.product-info b,
.product-info small {
  display: block;
}

.product-info strong {
  display: -webkit-box;
  margin-top: 7px;
  overflow: hidden;
  color: var(--grey-800);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-info b {
  margin: 0;
  color: var(--grey-900);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.product-info small {
  margin: 0;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

.product-buy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
}

.product-buy-row > span {
  display: flex;
  align-items: center;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.product-buy-row .icon {
  width: 16px;
  margin-left: 2px;
}

.partners-disclosure {
  margin: 13px 3px 0;
  color: var(--grey-500);
  font-size: 10px;
  line-height: 1.5;
}

.commerce-more {
  display: flex;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  border-radius: 15px;
  background: var(--grey-100);
  color: var(--grey-700);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.commerce-more .icon {
  width: 17px;
  margin-left: 3px;
}

.commerce-empty {
  padding: 20px;
  border-radius: 19px;
  background: var(--grey-50);
}

.commerce-empty strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
}

.commerce-empty p {
  margin: 6px 0 15px;
  color: var(--grey-500);
  font-size: 12px;
  line-height: 1.55;
}

.commerce-empty a {
  display: flex;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--blue);
  color: white;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.commerce-empty a .icon {
  width: 16px;
  margin-left: 4px;
}

.product-skeleton-list {
  display: grid;
  gap: 9px;
}

.product-skeleton {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 12px;
  padding: 11px;
  border-radius: 18px;
  background: var(--grey-50);
}

.product-skeleton > span,
.product-skeleton i {
  display: block;
  border-radius: 11px;
  background: linear-gradient(90deg, var(--grey-100), #fff, var(--grey-100));
  background-size: 200% 100%;
  animation: skeleton-wave 1.3s infinite linear;
}

.product-skeleton > span {
  width: 68px;
  height: 68px;
}

.product-skeleton div {
  padding-top: 8px;
}

.product-skeleton i {
  height: 12px;
  margin-bottom: 10px;
}

.product-skeleton i:last-child {
  width: 45%;
}

@keyframes skeleton-wave {
  to { background-position: -200% 0; }
}

.sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 9px;
  margin-top: 22px;
}

.soft-button,
.primary-button {
  height: 54px;
  border-radius: 17px;
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.15s ease;
}

.soft-button {
  background: var(--grey-100);
  color: var(--grey-700);
}

.primary-button {
  background: var(--blue);
  color: white;
}

.comparison-title {
  margin: 8px 0 20px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.8px;
}

.comparison-grid {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--grey-200);
}

.comparison-row {
  display: grid;
  grid-template-columns: 72px repeat(var(--compare-count), minmax(0, 1fr));
  gap: 1px;
}

.comparison-cell {
  min-width: 0;
  padding: 13px 10px;
  background: white;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  overflow-wrap: anywhere;
}

.comparison-cell.label {
  color: var(--grey-500);
  font-size: 10px;
  font-weight: 700;
  text-align: left;
}

.comparison-cell.head {
  padding-top: 17px;
  padding-bottom: 17px;
  font-weight: 800;
}

.comparison-cell.head span {
  display: block;
  margin-bottom: 4px;
  font-size: 27px;
}

.comparison-photo {
  position: relative;
  display: block;
  width: 46px;
  height: 46px;
  margin: 0 auto 8px !important;
  overflow: hidden;
  border-radius: 15px;
  background: var(--grey-100);
}

.comparison-photo .photo-fallback {
  display: grid;
  margin: 0;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 96px;
  left: 20px;
  max-width: 410px;
  margin: auto;
  padding: 13px 16px;
  border-radius: 14px;
  background: rgba(25, 31, 40, 0.94);
  color: white;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 620px) {
  body {
    background: #eef1f4;
  }

  .app-shell {
    box-shadow: 0 0 45px rgba(25, 31, 40, 0.08);
  }

  .hero {
    padding: 48px 40px 42px;
  }

  .topbar,
  .section,
  .category-hero,
  .result-summary,
  .search-page,
  .saved-page {
    padding-right: 32px;
    padding-left: 32px;
  }

  .chip-row {
    padding-right: 32px;
    padding-left: 32px;
  }

  .taste-filters {
    padding-right: 32px;
    padding-left: 32px;
  }

  .variety-list {
    grid-template-columns: minmax(0, 1fr);
    padding-right: 32px;
    padding-left: 32px;
  }

  .saved-page .variety-list {
    padding: 0;
  }

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

  .category-card.wide {
    grid-column: auto;
    min-height: 104px;
  }

  .wide .fruit-visual {
    inset: auto;
    width: 68px;
    height: 68px;
    font-size: 36px;
  }

  .search-shortcut {
    display: block;
  }
}

@media (max-width: 380px) {
  .variety-main {
    grid-template-columns: 72px minmax(0, 1fr) 18px;
    gap: 11px;
  }

  .fruit-avatar {
    width: 72px;
    height: 72px;
    border-radius: 21px;
  }

  .variety-name {
    font-size: 16px;
  }

  .variety-description {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
