    :root {
      --bg: #f4f6f8;
      --card-bg: #ffffff;
      --card-bg-alt: #fafafa;
      --text: #1a1a1a;
      --text-muted: #666;
      --text-faint: #999;
      --border: #eee;
      --border-strong: #ccc;
      --tag-bg: #eef2f7;
      --tag-fg: #4a5568;
      --merchant-bg: #fef3c7;
      --merchant-fg: #92400e;
      --source-bg: #dbeafe;
      --source-fg: #1e40af;
      --input-bg: #ffffff;
      --shadow-sm: 0 2px 6px rgba(0,0,0,0.08);
      --shadow-md: 0 8px 20px rgba(0,0,0,0.12);
      --skeleton: linear-gradient(90deg, #ececec 0%, #f5f5f5 50%, #ececec 100%);
    }
    [data-theme="dark"] {
      --bg: #14171c;
      --card-bg: #1e232b;
      --card-bg-alt: #242a33;
      --text: #e8eaed;
      --text-muted: #a0a6b0;
      --text-faint: #6c727c;
      --border: #2a313b;
      --border-strong: #3a424d;
      --tag-bg: #2a313b;
      --tag-fg: #c0c6d0;
      --merchant-bg: #3d2e0f;
      --merchant-fg: #f4c574;
      --source-bg: #1e2d4a;
      --source-fg: #8ab4ff;
      --input-bg: #1e232b;
      --shadow-sm: 0 2px 6px rgba(0,0,0,0.4);
      --shadow-md: 0 8px 20px rgba(0,0,0,0.5);
      --skeleton: linear-gradient(90deg, #1e232b 0%, #2a313b 50%, #1e232b 100%);
    }
    * { box-sizing: border-box; }
    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      margin: 0; background: var(--bg); color: var(--text);
      transition: background 0.2s, color 0.2s;
    }
    header {
      background: linear-gradient(135deg, #ff6a00, #ee0979);
      color: white; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    header h1 { margin: 0; font-size: 28px; }
    header p { margin: 4px 0 0 0; opacity: 0.9; font-size: 14px; }

    .controls {
      max-width: 1200px; margin: 20px auto; padding: 0 20px;
      display: flex; gap: 10px; flex-wrap: wrap;
    }
    input, select, button {
      padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: 6px;
      font-size: 14px; background: var(--input-bg); color: var(--text);
    }
    input[type="search"] { flex: 1; min-width: 200px; }
    button {
      background: #ff6a00; color: white; border: none; cursor: pointer;
      font-weight: 600;
    }
    button:hover { background: #e55e00; }
    .stats {
      max-width: 1200px; margin: 0 auto; padding: 0 20px;
      color: var(--text-muted); font-size: 13px;
    }

    .deals {
      max-width: 1200px; margin: 20px auto; padding: 0 20px;
      display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
      gap: 18px;
    }

    /* ===== CARD ===== */
    .deal {
      position: relative;
      background: var(--card-bg); border-radius: 12px; overflow: hidden;
      box-shadow: var(--shadow-sm);
      display: flex; flex-direction: column;
      transition: transform 0.15s, box-shadow 0.15s;
    }
    .deal { cursor: pointer; }
    .deal:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.18); border-color: var(--accent); }

    .deal-image {
      width: 100%; aspect-ratio: 16 / 10;
      object-fit: contain;
      background: var(--card-bg-alt);
      border-bottom: 1px solid var(--border);
      display: block;
    }
    .deal-image-placeholder {
      width: 100%; aspect-ratio: 16 / 10;
      background: var(--card-bg-alt);
      display: flex; align-items: center; justify-content: center;
      color: var(--text-faint); font-size: 40px;
      border-bottom: 1px solid #eee;
    }

    /* Temperature badge — floats top-right of image */
    .temp-badge {
      position: absolute; top: 10px; right: 10px;
      padding: 5px 10px; border-radius: 20px;
      font-size: 12px; font-weight: 700;
      color: white;
      box-shadow: 0 2px 6px rgba(0,0,0,0.2);
      backdrop-filter: blur(4px);
    }
    .temp-hot { background: linear-gradient(135deg, #ff3d00, #d50000); }
    .temp-warm { background: linear-gradient(135deg, #ff9100, #ff6d00); }
    .temp-cool { background: rgba(100,100,100,0.85); }

    .deal-body {
      padding: 14px 16px 16px;
      display: flex; flex-direction: column; flex: 1;
    }
    .deal h3 {
      margin: 0 0 10px 0; font-size: 14px; line-height: 1.4;
      color: var(--text);
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      min-height: 39px;
    }

    .price-row {
      display: flex; align-items: baseline; gap: 8px;
      margin: 4px 0 10px 0; flex-wrap: wrap;
    }
    .price {
      font-size: 24px; font-weight: 800; color: #ee0979;
      line-height: 1;
    }
    .price.free { color: #1a7a3e; }
    .original {
      font-size: 13px; color: var(--text-faint); text-decoration: line-through;
    }
    .discount {
      padding: 3px 9px; border-radius: 12px;
      font-size: 11px; font-weight: 700; color: white;
      letter-spacing: 0.3px;
    }
    .discount-huge { background: linear-gradient(135deg, #1a7a3e, #2e9c5a); }
    .discount-good { background: linear-gradient(135deg, #ff6a00, #ee0979); }
    .discount-modest { background: #888; }

    .tags-row {
      display: flex; flex-wrap: wrap; gap: 6px;
      margin: 6px 0 10px 0;
    }
    .tag {
      display: inline-block;
      padding: 3px 9px; border-radius: 10px;
      font-size: 11px;
      background: var(--tag-bg); color: var(--tag-fg);
    }
    .tag-merchant { background: var(--merchant-bg); color: var(--merchant-fg); }
    .tag-source { background: var(--source-bg); color: var(--source-fg); }

    .fresh-badge {
      display: inline-block; padding: 3px 9px; border-radius: 10px;
      font-size: 11px; font-weight: 600;
    }
    .fresh-new { background: #d4f4dd; color: #1a7a3e; }
    .fresh-mid { background: #fff3cd; color: #856404; }
    .fresh-old { background: #f8d7da; color: #842029; }

    .deal-cta {
      margin-top: auto;
      display: block; text-align: center;
      padding: 10px; border-radius: 8px;
      background: linear-gradient(135deg, #ff6a00, #ee0979);
      color: white !important; text-decoration: none !important;
      font-weight: 700; font-size: 13px;
      transition: opacity 0.15s;
    }
    .deal-cta:hover { opacity: 0.9; }

    .empty, .loading { text-align: center; padding: 40px; color: var(--text-muted); }

    /* ===== A4: SKELETON LOADER ===== */
    .skeleton-grid {
      display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
      gap: 18px;
    }
    .skeleton-card {
      background: var(--card-bg); border-radius: 12px; overflow: hidden;
      box-shadow: var(--shadow-sm);
    }
    .skeleton-img {
      width: 100%; aspect-ratio: 16 / 10;
      background: var(--skeleton);
      background-size: 200% 100%;
      animation: shimmer 1.4s infinite;
    }
    .skeleton-body { padding: 14px 16px 16px; }
    .skeleton-line {
      height: 12px; border-radius: 4px; margin-bottom: 10px;
      background: var(--skeleton);
      background-size: 200% 100%;
      animation: shimmer 1.4s infinite;
    }
    .skeleton-line.short { width: 60%; }
    .skeleton-line.price { height: 24px; width: 40%; margin-top: 8px; }
    @keyframes shimmer {
      0% { background-position: 200% 0; }
      100% { background-position: -200% 0; }
    }

    /* ===== A6: DARK MODE TOGGLE ===== */
    .theme-toggle {
      position: absolute; top: 20px; right: 20px;
      background: rgba(255,255,255,0.2); color: white;
      border: 1px solid rgba(255,255,255,0.3);
      width: 40px; height: 40px; border-radius: 50%;
      cursor: pointer; font-size: 20px; padding: 0;
      display: flex; align-items: center; justify-content: center;
      transition: background 0.2s;
    }
    .theme-toggle:hover { background: rgba(255,255,255,0.35); }

    /* ===== A5: MOBILE RESPONSIVE ===== */
    @media (max-width: 700px) {
      header { padding: 16px; padding-right: 70px; }
      header h1 { font-size: 22px; }
      header p { font-size: 12px; }
      .controls {
        padding: 0 12px; gap: 8px;
        position: sticky; top: 0; z-index: 10;
        background: var(--bg);
        padding-top: 12px; padding-bottom: 12px;
        border-bottom: 1px solid var(--border);
      }
      .controls select, .controls input { font-size: 13px; padding: 8px 10px; flex: 1 1 45%; min-width: 0; }
      .controls button { flex: 1 1 100%; padding: 12px; }
      .deals {
        padding: 0 12px; gap: 12px;
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
      }
      .deal h3 { font-size: 13px; min-height: 36px; }
      .price { font-size: 20px; }
      .deal-cta { padding: 12px; font-size: 14px; }
      .theme-toggle { top: 14px; right: 14px; width: 36px; height: 36px; font-size: 16px; }
    }
    @media (min-width: 700px) and (max-width: 1000px) {
      .deals { grid-template-columns: repeat(3, 1fr); }
    }

    /* Footer */
    .site-footer {
      margin: 48px auto 24px;
      max-width: 1200px;
      padding: 16px 20px;
      border-top: 1px solid var(--border, rgba(128,128,128,0.2));
      color: var(--text-muted, #8a8a8a);
      font-size: 13px;
      text-align: center;
      line-height: 1.7;
    }
    .site-footer strong { color: var(--text, inherit); }
    .site-footer a { color: var(--accent); text-decoration: none; }
    .site-footer a:hover { text-decoration: underline; }
    .footer-line-2 { font-size: 12px; opacity: 0.85; }
    .footer-sep { opacity: 0.4; margin: 0 6px; }

header { position: relative; }
.load-more-wrap { max-width: 1200px; margin: 20px auto; padding: 0 20px; text-align: center; }
.load-more-button { display: none; padding: 12px 28px; font-size: 15px; }
.load-more-button.is-visible { display: inline-block; }
