/* elaiban-web/pages/my-favorites.html · 由 scripts/split_page_assets.py 从页面内联样式抽取，勿在页面内重写 */

/* ---------- 内联块 1 ---------- */
      /* ── Shell Layout ── */
      .app-shell {
        display: flex;
        flex-direction: column;
        height: 100vh;
        height: 100dvh;
        background: var(--background);
        color: var(--foreground);
        font-family: var(--font-sans);
        overflow: hidden;
      }

      /* ── Top Safe Area ── */
      .app-shell__status-bar {
        flex-shrink: 0;
        height: 0;
        padding-top: env(safe-area-inset-top, 0px);
      }

      /* ── Main Scroll Area ── */
      .main-scroll {
        flex: 1 1 0%;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
      }

      
    

/* ---------- 内联块 2 ---------- */
      /* ── Favorites Page Styles ── */
      .favorites-page {
        max-width: 430px;
        margin: 0 auto;
        padding: 0 16px 20px 16px;
      }

      /* ── Top Bar ── */

      /* ── Category Tabs ── */
      .category-tabs {
        display: flex;
        gap: 8px;
        padding: 4px 0 16px 0;
        overflow-x: auto;
      }

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

      .category-tabs {
        -ms-overflow-style: none;
        scrollbar-width: none;
      }

      .category-tab {
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        padding: 9px 18px;
        border-radius:8px;
        border: 1px solid var(--border);
        background: var(--card);
        color: var(--muted-foreground);
        font-size: 0.85rem;
        font-weight: 500;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: all 140ms cubic-bezier(.2, .8, .2, 1);
      }

      .category-tab:active {
        opacity: 0.8;
      }

      .category-tab--active {
        background: var(--primary);
        color: var(--primary-foreground);
        border-color: var(--primary);
      }

      /* ── Favorites List ── */
      .favorites-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
      }

      /* ── Favorite Card ── */
      .fav-card {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 16px;
        background: var(--card);
        border: 1px solid var(--border);
        border-radius:8px;
        -webkit-tap-highlight-color: transparent;
        transition: border-color 140ms;
      }

      .fav-card:active {
        border-color: var(--primary);
      }

      .fav-card__heart {
        position: absolute;
        top: 14px;
        right: 14px;
      }

      .fav-card {
        position: relative;
      }

      .fav-card__content {
        flex: 1;
        min-width: 0;
        padding-right: 28px;
      }

      .fav-card__title {
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--foreground);
        line-height: 1.45;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }

      .fav-card__price {
        margin-top: 8px;
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--primary);
        line-height: 1.2;
      }

      .fav-card__price-unit {
        font-size: 0.8rem;
        font-weight: 500;
      }

      .fav-card__badges {
        display: flex;
        gap: 6px;
        margin-top: 10px;
        flex-wrap: wrap;
      }

      .fav-card__badge {
        display: inline-flex;
        align-items: center;
        padding: 3px 10px;
        border-radius:8px;
        font-size: 0.75rem;
        font-weight: 500;
        background: var(--muted);
        color: var(--muted-foreground);
      }

      .fav-card__meta {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 8px;
        font-size: 0.8rem;
        color: var(--muted-foreground);
      }

      .fav-card__meta span + span::before {
        content: "";
        display: inline-block;
        width: 3px;
        height: 3px;
        border-radius:8px;
        background: var(--muted-foreground);
        margin-right: 8px;
      }

      .fav-card__unfav {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        align-self: flex-start;
        padding: 6px 14px;
        border-radius:8px;
        border: 1px solid var(--border);
        background: transparent;
        color: var(--primary);
        font-size: 0.8rem;
        font-weight: 500;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: all 140ms;
      }

      .fav-card__unfav:active {
        background: var(--muted);
      }

    
