.ff-wrapper {
  padding-bottom: 52px;
}
.ff-column,
.ff-page {
  min-width: 0;
}
.ff-page {
  color: #25282b;
  font-size: 15px;
  line-height: 1.45;
  --ff-accent: #129bd7;
  --ff-muted: #7e878c;
  --ff-line: #e7ebed;
}
.ff-page [hidden] {
  display: none !important;
}
.ff-page button,
.ff-page input,
.ff-page select {
  font: inherit;
}
.ff-page a {
  color: inherit;
  text-decoration: none;
}
.ff-page button {
  cursor: pointer;
}
.ff-page :is(button, a, input, select):focus-visible {
  outline: 2px solid var(--ff-accent);
  outline-offset: 3px;
}
.ff-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ff-muted);
  font-size: 13px;
  margin-bottom: 20px;
}
.ff-breadcrumb a:hover {
  color: var(--ff-accent);
}
.ff-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 26px;
}
.ff-page .ff-heading h1 {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin: 0 0 9px;
  font-weight: 750;
  color: #25282b;
}
.ff-heading p {
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  color: var(--ff-muted);
  max-width: 540px;
}
.ff-page .ff-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--ff-line);
  border-radius: 10px;
  color: #41494e;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}
.ff-page .ff-button:hover {
  border-color: #93cde7;
  color: #078ac5;
  background: #f8fcfe;
}
.ff-browse {
  flex-shrink: 0;
}
.ff-tabs {
  display: flex;
  gap: 25px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 0;
  margin-bottom: 24px;
}
.ff-tabs::-webkit-scrollbar,
.ff-filters::-webkit-scrollbar {
  display: none;
}
.ff-page .ff-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  position: relative;
  flex-shrink: 0;
  padding: 0 0 15px;
  color: var(--ff-muted);
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
}
.ff-tab[aria-current='page'] {
  color: #202629;
}
.ff-tab[aria-current='page']:after {
  position: absolute;
  content: '';
  height: 2px;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ff-accent);
}
.ff-tab span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border: 1px solid var(--ff-line);
  border-radius: 13px;
  color: #707b82;
  font-size: 12px;
  font-weight: 500;
}
.ff-tab[aria-current='page'] span {
  background: #edf8fe;
  border-color: #d6eef9;
  color: #068dc7;
}
.ff-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 19px;
}
.ff-search {
  display: flex;
  align-items: center;
  flex: 1 1 240px;
  max-width: 330px;
  min-width: 0;
  height: 44px;
  border: 1px solid var(--ff-line);
  border-radius: 10px;
  background: white;
}
.ff-search:focus-within {
  border-color: var(--ff-accent);
}
.ff-page .ff-search input {
  width: 100%;
  min-width: 0;
  padding: 10px 0 10px 13px;
  border: 0;
  background: none;
  outline: none;
  border-radius: 10px;
  font-size: 15px;
  color: #25282b;
}
.ff-search input::placeholder {
  color: #929ba0;
}
.ff-search button {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 0;
  background: none;
  color: #737f86;
  font-size: 21px;
  border-radius: 9px;
}
.ff-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  min-width: 0;
}
.ff-count {
  font-size: 13px;
  white-space: nowrap;
  color: var(--ff-muted);
}
.ff-count b {
  font-weight: 500;
}
.ff-page .ff-toolbar select {
  max-width: 205px;
  min-width: 0;
  height: 44px;
  padding: 0 29px 0 12px;
  border: 1px solid var(--ff-line);
  border-radius: 10px;
  background-color: white;
  color: #465158;
  font-size: 14px;
}
.ff-view-switch {
  display: flex;
  gap: 2px;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--ff-line);
  border-radius: 10px;
  flex-shrink: 0;
  height: 44px;
}
.ff-view-switch button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: white;
  color: #839098;
  font-size: 20px;
}
.ff-view-switch button[aria-pressed='true'] {
  background: #edf8fe;
  color: #129bd7;
}
.ff-filters {
  display: flex;
  gap: 8px;
  overflow: auto;
  scrollbar-width: none;
  margin-bottom: 24px;
  padding-bottom: 2px;
}
.ff-page .ff-filters a {
  flex-shrink: 0;
  white-space: nowrap;
  border: 1px solid var(--ff-line);
  border-radius: 22px;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 550;
  color: #6c7880;
}
.ff-page .ff-filters a[aria-current] {
  color: #098ec8;
  border-color: #a2d8ee;
  background: #f0faff;
}
.ff-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 27px 17px;
}
.ff-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.ff-photo {
  width: 100%;
  aspect-ratio: 1.12;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #f6f7f7;
  border-radius: 12px;
}
.ff-photo > a {
  width: 100%;
  height: 100%;
  display: block;
}
.ff-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.ff-page .ff-save {
  position: absolute;
  right: 9px;
  top: 9px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #e8edef;
  border-radius: 50%;
  background: white;
  color: #82919a;
  font-size: 21px;
  box-shadow: 0 1px 6px #20263012;
}
.ff-save[aria-pressed='true'] {
  color: #139bd7;
}
.ff-save:hover {
  background: #edf8fe;
}
.ff-save[aria-busy='true'] {
  cursor: wait;
}
.ff-inactive {
  position: absolute;
  bottom: 7px;
  left: 7px;
  right: 7px;
  padding: 5px 8px;
  background: #ffffffed;
  border-radius: 6px;
  font-size: 12px;
  color: #5f6b72;
}
.ff-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 11px 1px 0;
}
.ff-page .ff-card h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 650;
  overflow-wrap: anywhere;
  color: #24282b;
  margin: 0 0 5px;
}
.ff-card h3 a:hover {
  color: #119bd4;
}
.ff-price {
  font-size: 20px;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.3px;
  overflow-wrap: anywhere;
  color: #191e22;
}
.ff-price .card-item-price-now {
  font: inherit;
  color: inherit;
  padding: 0;
  background: none !important;
  box-shadow: none !important;
}
.ff-price .card-item-price-old {
  display: inline-block;
  font-size: 13px;
  font-weight: 400;
  color: #8c9499;
  text-decoration: line-through;
  margin-left: 5px;
}
.ff-price .card-item-price-measure-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}
.ff-meta {
  padding-top: 11px;
  margin-top: auto;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ff-muted);
}
.ff-meta > div,
.ff-page .ff-seller {
  display: flex;
  align-items: center;
  gap: 5px;
}
.ff-meta i {
  flex-shrink: 0;
}
.ff-page .ff-seller {
  margin-top: 5px;
  color: #68767e;
  min-width: 0;
}
.ff-seller span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ff-viewed-date {
  margin: 6px 0 0;
  font-size: 12px;
  color: #919aa0;
}
.ff-page[data-view='list'] .ff-cards {
  grid-template-columns: 1fr;
  gap: 0;
}
.ff-page[data-view='list'] .ff-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--ff-line);
}
.ff-page[data-view='list'] .ff-photo {
  height: 138px;
  aspect-ratio: auto;
}
.ff-page[data-view='list'] .ff-card-body {
  padding: 3px 0;
}
.ff-page[data-view='list'] .ff-card h3 {
  font-size: 17px;
}
.ff-page[data-view='list'] .ff-meta {
  padding-top: 10px;
}
.ff-panel-lead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 23px;
}
.ff-page .ff-panel-lead h2 {
  font-size: 22px;
  margin: 0 0 6px;
  line-height: 1.25;
  letter-spacing: -0.4px;
  color: #25282b;
}
.ff-panel-lead p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ff-muted);
  margin: 0;
}
.ff-panel-lead > .ff-button {
  flex-shrink: 0;
}
.ff-searches {
  display: grid;
  gap: 12px;
}
.ff-search-item {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--ff-line);
  border-radius: 12px;
  padding: 18px;
}
.ff-search-symbol {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: 1px solid var(--ff-line);
  border-radius: 10px;
  color: #81929c;
  font-size: 21px;
}
.ff-search-copy {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.ff-search-copy strong {
  font-size: 15px;
  font-weight: 650;
  display: block;
}
.ff-search-copy span {
  font-size: 13px;
  display: block;
  margin-top: 5px;
  color: var(--ff-muted);
}
.ff-page .ff-open-search {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #129bd7;
  font-weight: 600;
  font-size: 14px;
}
.ff-page .ff-remove {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: white;
  color: #8d9aa3;
  font-size: 21px;
}
.ff-page .ff-remove:hover {
  color: #139bd7;
  background: #eff9fe;
}
.ff-remove:disabled {
  opacity: 0.45;
  cursor: wait;
}
.ff-shops {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.ff-shop-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 34px;
  align-items: start;
  gap: 13px;
  padding: 18px;
  border: 1px solid var(--ff-line);
  border-radius: 13px;
}
.ff-shop-logo {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--ff-line);
  background: #f6fafc;
  font-size: 22px;
  font-weight: 700;
}
.ff-shop-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ff-shop-copy {
  min-width: 0;
}
.ff-page .ff-shop-copy h3 {
  font-size: 17px;
  line-height: 1.35;
  margin: 1px 0 6px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.ff-shop-copy p {
  font-size: 13px;
  color: var(--ff-muted);
  margin: 0 0 12px;
}
.ff-page .ff-shop-open {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #129bd7;
}
.ff-shop-open:hover {
  text-decoration: underline;
}
.ff-empty {
  border: 1px dashed #dbe4e9;
  border-radius: 14px;
  padding: 54px 20px;
  text-align: center;
  margin-top: 15px;
}
.ff-empty > i {
  font-size: 34px;
  color: #a2b7c2;
  display: block;
  margin-bottom: 13px;
}
.ff-page .ff-empty h2 {
  font-size: 22px;
  color: #303a40;
  margin: 0 0 9px;
}
.ff-empty p {
  font-size: 15px;
  color: var(--ff-muted);
  margin: 0 auto 21px;
  max-width: 450px;
  line-height: 1.5;
}
.ff-empty .ff-button {
  color: #129bd7;
}
.ff-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 30px;
  color: var(--ff-muted);
  font-size: 14px;
}
.ff-snackbar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  max-width: calc(100vw - 24px);
  padding: 13px 17px;
  background: #28333a;
  color: white;
  box-shadow: 0 8px 32px #23313930;
  border-radius: 11px;
  font-size: 14px;
  z-index: 10000;
}
.ff-snackbar button {
  flex-shrink: 0;
  background: none;
  border: 0;
  color: #87dafb;
  font-weight: 650;
  text-decoration: underline;
  padding: 4px;
}
.ff-toast-note {
  font-size: 13px;
}
@media (max-width: 1199px) {
  .ff-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ff-toolbar-right {
    flex: 1;
    justify-content: space-between;
  }
  .ff-search {
    max-width: none;
  }
  .ff-heading {
    flex-wrap: wrap;
  }
  .ff-tabs {
    gap: 19px;
  }
  .ff-shops {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767px) {
  .ff-wrapper {
    padding-top: 18px !important;
    padding-bottom: 100px;
  }
  .ff-sidebar {
    display: none;
  }
  .ff-wrapper > .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .ff-column {
    width: 100%;
  }
  .ff-page .ff-heading h1 {
    font-size: 29px;
    letter-spacing: -0.6px;
  }
  .ff-breadcrumb {
    font-size: 13px;
    gap: 6px;
    margin-bottom: 18px;
  }
  .ff-heading {
    gap: 15px;
    margin-bottom: 24px;
  }
  .ff-heading p {
    font-size: 15px;
    line-height: 1.5;
  }
  .ff-page .ff-browse {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 14px;
  }
  .ff-tabs {
    gap: 22px;
    margin-bottom: 22px;
  }
  .ff-page .ff-tab {
    font-size: 15px;
    padding-bottom: 14px;
  }
  .ff-tab span {
    font-size: 12px;
    min-width: 23px;
    height: 23px;
  }
  .ff-search {
    flex-basis: 100%;
    height: 46px;
  }
  .ff-page .ff-search input {
    font-size: 16px;
  }
  .ff-search button {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }
  .ff-toolbar-right {
    width: 100%;
    gap: 8px;
    flex-wrap: wrap;
  }
  .ff-count {
    width: 100%;
    font-size: 13px;
  }
  .ff-page .ff-toolbar select {
    flex: 1;
    max-width: none;
    height: 44px;
    font-size: 15px;
  }
  .ff-filters {
    margin-bottom: 21px;
  }
  .ff-page .ff-filters a {
    font-size: 14px;
    padding: 8px 13px;
  }
  .ff-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 12px;
  }
  .ff-photo {
    aspect-ratio: 1.05;
    border-radius: 11px;
  }
  .ff-page .ff-save {
    right: 7px;
    top: 7px;
    width: 34px;
    height: 34px;
    font-size: 20px;
  }
  .ff-page .ff-card h3 {
    font-size: 16px;
    line-height: 1.35;
    font-weight: 600;
  }
  .ff-price {
    font-size: 20px;
  }
  .ff-meta {
    font-size: 13px;
    line-height: 1.45;
  }
  .ff-card-body {
    padding-top: 10px;
  }
  .ff-meta {
    padding-top: 9px;
  }
  .ff-viewed-date {
    font-size: 12px;
  }
  .ff-page[data-view='list'] .ff-card {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 13px;
    padding: 14px 0;
  }
  .ff-page[data-view='list'] .ff-photo {
    height: 112px;
  }
  .ff-page[data-view='list'] .ff-card h3 {
    font-size: 16px;
  }
  .ff-page[data-view='list'] .ff-card-body {
    padding: 0;
  }
  .ff-page[data-view='list'] .ff-price {
    font-size: 19px;
  }
  .ff-panel-lead {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;
  }
  .ff-page .ff-panel-lead h2 {
    font-size: 21px;
  }
  .ff-panel-lead p {
    font-size: 14px;
  }
  .ff-panel-lead > .ff-button {
    font-size: 14px;
  }
  .ff-search-item {
    padding: 14px 11px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .ff-search-symbol {
    width: 34px;
    height: 34px;
    font-size: 19px;
  }
  .ff-search-copy strong {
    font-size: 15px;
  }
  .ff-search-copy span {
    font-size: 13px;
  }
  .ff-open-search {
    order: 5;
    margin-left: 44px;
  }
  .ff-shops {
    grid-template-columns: 1fr;
  }
  .ff-shop-card {
    grid-template-columns: 48px minmax(0, 1fr) 30px;
    padding: 15px 12px;
    gap: 10px;
  }
  .ff-shop-logo {
    width: 48px;
    height: 48px;
  }
  .ff-page .ff-shop-copy h3 {
    font-size: 17px;
  }
  .ff-page .ff-shop-open {
    font-size: 14px;
  }
  .ff-page .ff-remove {
    width: 30px;
    height: 34px;
  }
  .ff-empty {
    padding: 37px 18px;
  }
  .ff-page .ff-empty h2 {
    font-size: 21px;
  }
  .ff-empty p {
    font-size: 15px;
  }
  .ff-snackbar {
    bottom: calc(86px + env(safe-area-inset-bottom, 0px));
    font-size: 14px;
    gap: 13px;
    padding: 12px 14px;
  }
}
.ff-browse-short {
  display: none;
}
.ff-history-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.ff-shop-rating i {
  color: #efb744;
}
.ff-shop-rating strong {
  color: #353e43;
}
.ff-confirm {
  width: 440px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 26px;
  border: 1px solid #e3e9ed;
  border-radius: 16px;
  background: #fff;
  color: #25323a;
  box-shadow: 0 20px 80px #152e4930;
}
.ff-confirm::backdrop {
  background: #18293880;
  backdrop-filter: blur(3px);
}
.ff-page .ff-confirm h2 {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 14px;
}
.ff-confirm p {
  font-size: 15px;
  line-height: 1.5;
  color: #78848c;
  margin: 0 0 24px;
}
.ff-confirm > div {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.ff-page .ff-confirm-primary {
  color: #fff;
  background: #129bd7;
  border-color: #129bd7;
}
.ff-page .ff-confirm-primary:hover {
  color: #fff;
  background: #078dc8;
}
@media (max-width: 767px) {
  .ff-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 12px;
  }
  .ff-heading > div:not(.fc-tools) {
    display: contents;
  }
  .ff-page .ff-heading h1 {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
  }
  .ff-heading p {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .ff-page .ff-browse {
    grid-column: 2;
    grid-row: 1;
    padding: 9px 10px;
  }
  .ff-browse-label {
    display: none;
  }
  .ff-browse-short {
    display: inline;
  }
  .ff-count {
    display: none;
  }
  .ff-history-actions {
    gap: 8px;
    flex-wrap: wrap;
  }
  .ff-page[data-tab='viewed'] .ff-panel-lead {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .ff-page[data-tab='viewed'] .ff-panel-lead > div:first-child {
    display: none;
  }
  .ff-page[data-tab='viewed'] .ff-history-actions {
    width: 100%;
    justify-content: space-between;
  }
}
@media (max-width: 359px) {
  .ff-page .ff-heading h1 {
    font-size: 27px;
  }
  .ff-page .ff-browse {
    font-size: 13px;
    gap: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ff-page * {
    scroll-behavior: auto;
  }
}

/* The heading controls remain one compact group at every breakpoint. */
.ff-page .ff-heading {
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
  margin-bottom: 20px;
}
.ff-page .ff-heading h1 {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}
.ff-page .ff-heading .fc-tools {
  display: flex;
  flex: none;
  grid-column: 2;
  grid-row: 1;
  gap: 4px;
}
.ff-page .fc-tools .fc-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  flex: none;
}
.ff-active-filters {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--za-muted);
}
.ff-active-filters span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.ff-active-filters a {
  color: var(--za-action);
  flex: none;
}
.ff-page[data-view='list'] .ff-card {
  display: block;
  padding: 0;
  border: 0;
}
.ff-page .ff-card > .zm-home-listing {
  width: 100%;
  height: 100%;
  min-width: 0;
}
.ff-page .ff-card-actions {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--za-muted);
}
.ff-page .ff-card-actions:hover {
  background: var(--za-pale);
  color: var(--za-action);
}
