@font-face {
  font-family: "Pretendard";
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/npm/pretendard/dist/web/variable/woff2/PretendardVariable.woff2") format("woff2-variations");
}

:root {
  --bg: #f5f5f3;
  --surface: #ffffff;
  --surface-soft: #f7f8f9;
  --text: #20252b;
  --muted: #6d747d;
  --line: #e2e6e9;
  --primary: #75972e;
  --primary-dark: #536f1e;
  --primary-soft: #edf5dd;
  --carrot: #f27922;
  --carrot-dark: #d85f0f;
  --blue-soft: #eaf2f8;
  --shadow: 0 18px 50px rgba(24, 31, 38, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  color-scheme: light;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  word-break: keep-all;
  overflow-x: hidden;
}

button,
input {
  appearance: none;
  -webkit-appearance: none;
}

button {
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.page-shell {
  width: min(100%, 760px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 18px 48px;
}

.hero {
  padding: 68px 4px 38px;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero h1 {
  max-width: 620px;
  margin: 14px 0 0 -2px;
  font-size: 38px;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero h1 strong {
  font-weight: 900;
}

.hero-copy {
  max-width: 570px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.intro-message {
  display: grid;
  gap: 8px;
  margin: 24px 4px 40px;
  padding: 0;
}

.intro-message strong {
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0;
}

.intro-mobile-line::before {
  content: " ";
}

.intro-message p {
  display: grid;
  gap: 0;
  margin: 0;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.46;
  letter-spacing: 0;
}

.intro-line {
  display: block;
  max-width: 100%;
  white-space: nowrap;
}

.filter-panel {
  display: grid;
  gap: 10px;
}

.filter-section {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(226, 230, 233, 0.94);
  border-radius: 14px;
  background: rgba(247, 248, 249, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.filter-section:first-child {
  background: #f8fbf2;
}

.filter-section-info {
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.filter-section-info .filter-helper {
  grid-column: 1 / -1;
}

.filter-section-storage {
  align-items: start;
}

.filter-helper {
  margin: 0 0 2px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
}

.results-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  padding: 0 4px;
}

.filter-group {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.fee-group {
  grid-template-columns: auto minmax(0, 1fr) max-content;
}

.filter-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
}

.filter-label::before {
  content: "";
  width: 3px;
  height: 13px;
  border-radius: 999px;
  background: var(--primary);
  opacity: 0.8;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.filter-button {
  min-width: 56px;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.filter-button:hover {
  border-color: #b8c99a;
}

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

.filter-button.is-selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.fee-input-wrap {
  min-width: 0;
  width: min(100%, 156px);
  min-height: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.fee-input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(117, 151, 46, 0.12);
}

.fee-input-wrap input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-align: left;
}

.fee-input-wrap input::placeholder {
  color: #a1a8af;
  font-weight: 400;
}

.fee-save-button {
  min-height: 34px;
  padding: 0 15px;
  border: 1px solid var(--carrot);
  border-radius: 999px;
  background: var(--carrot);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(242, 121, 34, 0.24);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.fee-save-button:hover {
  border-color: var(--carrot-dark);
  background: var(--carrot-dark);
  box-shadow: 0 6px 16px rgba(216, 95, 15, 0.28);
}

.fee-save-button:active,
.fee-save-button.is-pressed {
  box-shadow: 0 2px 7px rgba(216, 95, 15, 0.22);
  transform: translateY(1px);
}

.fee-input-wrap span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.results-section {
  padding-top: 42px;
}

.result-count {
  display: block;
  color: var(--primary-dark);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  text-align: left;
}

.sort-indicator {
  flex: 0 1 auto;
  color: #9aa1a9;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  white-space: normal;
}

.store-list {
  display: grid;
  gap: 22px;
  margin-top: 10px;
}

.store-list.is-updating {
  animation: list-change 280ms ease both;
}

@keyframes list-change {
  from {
    opacity: 0.25;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.store-item {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(24, 31, 38, 0.045);
  overflow: hidden;
}

.store-main {
  display: block;
  padding: 22px 20px 17px;
}

.store-copy {
  min-width: 0;
}

.store-name {
  display: block;
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.price-box {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  text-align: left;
}

.price-parts {
  display: grid;
  gap: 6px;
}

.price-parts div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.price-parts span,
.price-total span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.price-parts strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.price-parts em {
  margin-left: 4px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
}

.price-total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.price-info {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.info-button {
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #c9d0d6;
  border-radius: 999px;
  background: #ffffff;
  color: #7a828b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

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

.info-tooltip {
  position: absolute;
  left: -8px;
  top: calc(100% + 8px);
  z-index: 20;
  width: min(300px, calc(100vw - 56px));
  display: none;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(24, 31, 38, 0.14);
  color: var(--text);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.58;
  letter-spacing: 0;
  word-break: keep-all;
}

.price-info.is-open .info-tooltip {
  display: block;
}

.price-total strong {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.personal-price {
  display: grid;
  gap: 4px;
}

.personal-price-title {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  position: relative;
  max-width: 100%;
}

.personal-price strong {
  display: grid;
  gap: 3px;
  min-width: 0;
  color: var(--carrot);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.personal-price strong span {
  display: block;
  color: inherit;
  font: inherit;
  line-height: inherit;
}

.personal-price span {
  color: #9aa1a9;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
}

.personal-price-title .price-info {
  flex: 0 0 auto;
  margin-bottom: 3px;
}

.personal-price-title .info-tooltip {
  right: 0;
  left: auto;
}

.store-details {
  display: block;
  padding: 0 20px 20px;
  border-top: 1px solid var(--line);
  background: #fbfbfc;
}

.detail-grid {
  display: grid;
  gap: 0;
  padding-top: 8px;
}

.detail-cell {
  min-width: 0;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: baseline;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.detail-cell span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.detail-cell strong,
.detail-cell p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.price-note {
  margin: 14px 0 0;
  color: #52677c;
  font-size: 11px;
  line-height: 1.62;
}

.store-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 16px;
  width: 100%;
}

.map-link {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-radius: 14px;
  background: var(--primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.empty-message {
  margin: 16px 0 0;
  padding: 30px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

.is-hidden {
  display: none !important;
}

.is-modal-open {
  overflow: hidden;
}

.validation-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(32, 37, 43, 0.34);
}

.validation-card {
  width: min(100%, 320px);
  display: grid;
  gap: 14px;
  padding: 22px 20px 18px;
  border: 1px solid #dce6cb;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(24, 31, 38, 0.2);
  text-align: center;
}

.validation-card strong {
  color: var(--primary-dark);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.validation-card p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}

.validation-confirm-button {
  min-height: 42px;
  margin-top: 2px;
  border: 1px solid var(--primary);
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 5px 14px rgba(49, 67, 19, 0.24);
}

.validation-confirm-button:hover {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
}

.page-footer {
  display: grid;
  gap: 22px;
  margin-top: 52px;
  padding: 28px 4px 0;
  border-top: 1px solid var(--line);
}

.page-footer p {
  margin: 0;
  color: #52677c;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.62;
}

.footer-notice {
  display: grid;
  gap: 4px;
}

.footer-meta {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

@media (min-width: 900px) {
  .page-shell {
    width: min(100%, 1120px);
    padding: 0 48px 64px;
  }

  .hero {
    padding: 56px 0 40px;
  }

  .hero h1 {
    max-width: 760px;
    margin-left: -3px;
    font-size: 62px;
    line-height: 1.16;
  }

  .intro-message {
    max-width: 760px;
    margin: 18px 0 52px;
    padding: 0;
  }

  .intro-message strong {
    font-size: 20px;
  }

  .intro-message p {
    font-size: 16px;
  }

  .filter-panel {
    width: min(100%, 1040px);
    margin: 0 auto;
    transform: translateX(-16px);
    display: grid;
    gap: 10px;
  }

  .filter-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 20px;
    padding: 18px 20px;
    border-radius: 18px;
  }

  .filter-section-info {
    display: grid;
    grid-template-columns: max-content max-content;
  }

  .filter-helper {
    flex-basis: 100%;
    margin-bottom: -2px;
    font-size: 13px;
  }

  .filter-section:first-child {
    background: #f8fbf2;
  }

  .filter-group {
    grid-template-columns: auto max-content;
    align-items: center;
    gap: 10px;
  }

  .fee-group {
    grid-template-columns: auto max-content max-content;
  }

  .filter-label {
    justify-self: start;
    padding-left: 0;
    font-size: 13px;
  }

  .filter-options {
    flex-wrap: nowrap;
    gap: 6px;
  }

  .filter-button {
    min-width: 64px;
    min-height: 36px;
    padding: 0 14px;
    font-size: 13px;
  }

  .fee-input-wrap {
    width: 164px;
    min-height: 36px;
    padding: 0 14px;
  }

  .fee-save-button {
    min-height: 36px;
    padding: 0 15px;
    font-size: 13px;
  }

  .fee-input-wrap input {
    font-size: 16px;
  }

  .fee-input-wrap span {
    font-size: 12px;
  }

  .results-section {
    width: min(100%, 1040px);
    margin: 0 auto;
    transform: translateX(-16px);
    padding-top: 52px;
  }

  .results-heading {
    padding: 0 32px;
  }

  .result-count {
    font-size: 20px;
  }

  .store-list {
    gap: 30px;
  }

  .store-item {
    border-radius: 26px;
  }

  .store-main {
    padding: 32px 36px 24px;
  }

  .store-name {
    font-size: 28px;
    line-height: 1.3;
  }

  .price-box {
    margin-top: 26px;
    max-width: 520px;
  }

  .price-parts {
    gap: 8px;
  }

  .price-parts div {
    display: flex;
    align-items: baseline;
    gap: 10px;
  }

  .price-parts span,
  .price-total span {
    font-size: 13px;
  }

  .price-parts strong {
    font-size: 17px;
  }

  .price-parts em {
    font-size: 12px;
  }

  .price-total strong {
    font-size: 26px;
  }

  .personal-price strong {
    font-size: 26px;
  }

  .personal-price span {
    font-size: 12px;
  }

  .store-details {
    padding: 0 36px 32px;
  }

  .detail-grid {
    padding-top: 12px;
  }

  .detail-cell {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 24px;
    padding: 14px 0;
  }

  .detail-cell span {
    font-size: 13px;
  }

  .detail-cell p {
    font-size: 15px;
    line-height: 1.6;
  }

  .price-note {
    font-size: 12px;
  }

  .map-link {
    min-height: 54px;
    padding: 0 22px;
    font-size: 16px;
  }

  .page-footer {
    width: min(100%, 1040px);
    gap: 22px;
    margin: 64px auto 0;
    padding-top: 34px;
    transform: translateX(-16px);
  }

  .page-footer p {
    font-size: 12px;
  }
}

@media (min-width: 1120px) {
  .filter-panel {
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: stretch;
    gap: 10px;
  }

  .filter-section:first-child {
    justify-content: flex-start;
  }

  .filter-section:last-child {
    justify-content: flex-start;
  }

  .filter-section {
    gap: 12px 14px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .filter-group {
    gap: 8px;
  }

  .filter-label {
    font-size: 12px;
  }

  .filter-button {
    min-width: 56px;
    padding: 0 12px;
    font-size: 13px;
  }

  .fee-input-wrap {
    width: 148px;
  }
}

@media (max-width: 560px) {
  .page-shell {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero {
    padding-top: 52px;
  }

  .hero h1 {
    font-size: 38px;
    line-height: 1.24;
  }

  .filter-panel {
    gap: 8px;
  }

  .filter-section {
    padding: 12px;
  }

  .filter-section-info {
    gap: 12px;
  }

  .fee-group {
    grid-template-columns: auto minmax(0, 1fr);
    justify-content: stretch;
    align-items: stretch;
  }

  .fee-input-wrap {
    width: 100%;
  }

  .fee-save-button {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 38px;
  }

  .results-section {
    padding-top: 34px;
  }

  .price-parts,
  .price-box {
    gap: 10px;
  }

  .personal-price {
    gap: 6px;
  }

  .info-tooltip {
    width: min(260px, calc(100vw - 52px));
  }

  .intro-mobile-line {
    display: block;
    margin-top: 4px;
  }

  .intro-mobile-line::before {
    content: "";
  }

  .store-main {
    padding: 20px 18px 16px;
  }

  .store-details {
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (max-width: 380px) {
  .page-shell {
    padding-right: 14px;
    padding-left: 14px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .filter-group {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 8px;
  }

  .fee-group {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .filter-button {
    min-height: 32px;
    padding: 0 8px;
    font-size: 11px;
  }

  .fee-input-wrap {
    width: 100%;
    min-height: 32px;
    padding: 0 9px;
  }

  .fee-save-button {
    min-height: 32px;
    padding: 0 10px;
    font-size: 11px;
  }

  .fee-input-wrap span {
    font-size: 11px;
  }

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

@media (max-width: 340px) {
  .hero h1 {
    font-size: 32px;
  }

  .intro-message p {
    font-size: 13.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
