:root {
  --fp-ink: #0e1116;
  --fp-text: #3d444e;
  --fp-muted: #5b6370;
  --fp-line: #e4e7eb;
  --fp-line-strong: #d5d9de;
  --fp-soft: #f4f5f7;
  --fp-image: #f0f2f4;
  --fp-hero: #f2f0eb;
  --fp-brand: #f77f00;
  --fp-brand-hover: #e57500;
  --fp-brand-text: #b35c00;
  --fp-brand-soft: #fff1e0;
  --fp-green: #15803d;
  --fp-green-hover: #126c34;
  --fp-green-soft: #e7f5ec;
  --fp-sale: #c81e1e;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: var(--fp-ink);
  font-family: Onest, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

a {
  color: var(--fp-ink);
}

button {
  color: inherit;
  font: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--fp-brand);
  outline-offset: 2px;
}

.fp-page {
  max-width: 520px;
  min-height: calc(100vh - 65px);
  margin: 0 auto;
  padding-bottom: calc(116px + env(safe-area-inset-bottom));
}

.fp-top {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--fp-line);
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.fp-top-in {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 520px;
  min-height: 64px;
  margin: 0 auto;
  padding: 10px 16px;
}

.fp-top h1 {
  flex: 1;
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.fp-top h1 small {
  margin-left: 4px;
  color: var(--fp-muted);
  font-size: 14px;
  font-weight: 500;
}

.fp-icon-btn {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--fp-line);
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
}

.fp-icon-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fp-guest-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 16px 0;
  padding: 12px 12px 12px 14px;
  border: 1px solid var(--fp-line);
  border-radius: 16px;
  font-size: 14px;
}

.fp-guest-note > svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--fp-brand-text);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fp-guest-note span {
  flex: 1;
}

.fp-guest-note a {
  display: flex;
  flex: none;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--fp-ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.fp-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 14px 16px 4px;
  scrollbar-width: none;
}

.fp-tabs::-webkit-scrollbar {
  display: none;
}

.fp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--fp-line);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.fp-chip span {
  font-size: 12px;
  opacity: 0.7;
}

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

.fp-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 16px 0;
}

.fp-card {
  padding: 8px 8px 10px;
  border: 1px solid var(--fp-line);
  border-radius: 18px;
  background: #fff;
}

.fp-listing {
  position: relative;
  display: flex;
  gap: 12px;
}

.fp-thumb {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 108px;
  height: 92px;
  overflow: hidden;
  border-radius: 13px;
  background: var(--fp-image);
}

.fp-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 6px;
  object-fit: contain;
}

.fp-discount {
  position: absolute;
  bottom: 6px;
  left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--fp-sale);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.fp-listing-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 2px 30px 2px 0;
}

.fp-title {
  overflow: hidden;
  color: var(--fp-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-subtitle {
  overflow: hidden;
  color: var(--fp-muted);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  flex-wrap: wrap;
}

.fp-price b {
  font-size: 17px;
  font-weight: 700;
}

.fp-price b.is-sale {
  color: var(--fp-sale);
}

.fp-price s {
  color: var(--fp-muted);
  font-size: 12px;
}

.fp-price-drop {
  align-self: flex-start;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--fp-green-soft);
  color: var(--fp-green);
  font-size: 11.5px;
  font-weight: 600;
}

.fp-location {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  color: var(--fp-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-location svg {
  flex: none;
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fp-favorite {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.fp-favorite svg {
  width: 20px;
  height: 20px;
  fill: var(--fp-brand);
  stroke: var(--fp-brand);
  stroke-width: 2;
  stroke-linejoin: round;
}

.fp-favorite:disabled {
  opacity: 0.55;
  cursor: wait;
}

.fp-actions {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 10px;
}

.fp-chat,
.fp-call {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.fp-chat {
  min-height: 40px;
  border-radius: 999px;
  background: var(--fp-green);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  gap: 6px;
}

.fp-chat:hover {
  background: var(--fp-green-hover);
}

.fp-call {
  width: 40px;
  height: 40px;
  border: 1px solid var(--fp-line-strong);
  border-radius: 50%;
  color: var(--fp-ink);
}

.fp-chat svg,
.fp-call svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fp-empty {
  padding: 48px 24px 24px;
  text-align: center;
}

.fp-empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--fp-brand-soft);
}

.fp-empty-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--fp-brand-text);
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.fp-empty > b {
  display: block;
  font-size: 18px;
  font-weight: 600;
}

.fp-empty > p {
  margin: 4px 0 18px;
  color: var(--fp-muted);
}

.fp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.fp-btn-brand {
  background: var(--fp-brand);
  color: var(--fp-ink);
}

.fp-btn-brand:hover {
  background: var(--fp-brand-hover);
}

.fp-btn-line {
  border: 1px solid var(--fp-line-strong);
  background: #fff;
  color: var(--fp-ink);
}

.fp-saved {
  padding: 30px 16px 0;
}

.fp-saved h2 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.fp-saved-sub {
  margin: 0 0 12px;
  color: var(--fp-muted);
  font-size: 14px;
}

.fp-saved-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 14px;
  border: 1px solid var(--fp-line);
  border-radius: 16px;
}

.fp-saved-empty > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.fp-saved-empty b,
.fp-saved-empty small {
  display: block;
}

.fp-saved-empty b {
  font-size: 14px;
  font-weight: 600;
}

.fp-saved-empty small {
  color: var(--fp-muted);
  font-size: 12px;
}

.fp-saved-empty > a {
  flex: none;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--fp-ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.fp-saved-icon,
.fp-login-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
}

.fp-saved-icon {
  flex: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--fp-line-strong);
}

.fp-saved-icon svg,
.fp-login-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--fp-brand-text);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fp-login-box {
  padding: 22px 18px;
  border-radius: 22px;
  background: var(--fp-hero);
  text-align: center;
}

.fp-login-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
}

.fp-login-icon svg {
  width: 28px;
  height: 28px;
}

.fp-login-box h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.fp-login-box p {
  max-width: 320px;
  margin: 6px auto 16px;
  color: var(--fp-text);
  font-size: 14.5px;
}

.fp-login-box > div:last-child {
  display: grid;
  gap: 8px;
}

.fp-login-box .fp-btn {
  width: 100%;
}

.fp-bottom {
  position: fixed;
  z-index: 50;
  right: 12px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  left: 12px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  max-width: 496px;
  margin: 0 auto;
  padding: 8px;
  border-radius: 24px;
  background: var(--fp-ink);
  box-shadow: 0 10px 30px rgba(14, 17, 22, 0.25);
}

.fp-bottom a {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  min-width: 56px;
  padding: 4px 0;
  border-radius: 14px;
  color: #9aa1ab;
  font-size: 11px;
  font-weight: 600;
  gap: 2px;
  text-decoration: none;
}

.fp-bottom a:hover,
.fp-bottom a[aria-current="page"] {
  color: #fff;
}

.fp-bottom a > svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fp-bottom small {
  font: inherit;
}

.fp-bottom .fp-plus {
  justify-content: center;
  width: 52px;
  height: 52px;
  min-width: 0;
  padding: 0;
  border-radius: 18px;
  background: var(--fp-brand);
}

.fp-bottom .fp-plus:hover {
  background: var(--fp-brand-hover);
}

.fp-bottom .fp-plus svg {
  width: 24px;
  height: 24px;
  stroke: var(--fp-ink);
  stroke-width: 2.8;
}

.fp-bottom-count {
  position: absolute;
  top: 0;
  left: 50%;
  min-width: 16px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--fp-sale);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.fp-toast {
  position: fixed;
  z-index: 60;
  right: 16px;
  bottom: calc(100px + env(safe-area-inset-bottom));
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 488px;
  margin: 0 auto;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--fp-ink);
  box-shadow: 0 10px 30px rgba(14, 17, 22, 0.25);
  color: #fff;
  font-size: 14px;
  gap: 12px;
}

.fp-toast button {
  padding: 6px;
  border: 0;
  background: transparent;
  color: var(--fp-brand);
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 360px) {
  .fp-thumb {
    width: 96px;
    height: 88px;
  }

  .fp-listing {
    gap: 9px;
  }

  .fp-listing-body {
    padding-right: 27px;
  }

  .fp-title {
    font-size: 14px;
  }

  .fp-bottom a {
    min-width: 48px;
    font-size: 10px;
  }

  .fp-bottom .fp-plus {
    width: 48px;
    height: 48px;
  }
}

@media (min-width: 760px) {
  body {
    background: var(--fp-soft);
  }

  .fp-top-in,
  .fp-page {
    max-width: 720px;
  }

  .fp-page {
    min-height: calc(100vh - 65px);
    padding-bottom: 56px;
    background: #fff;
  }

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

  .fp-thumb {
    width: 104px;
  }

  .fp-bottom {
    display: none;
  }

  .fp-toast {
    bottom: 24px;
  }
}

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