  :root {
    --bg: #0b0b0e;
    --panel: #16161c;
    --panel-2: #1e1e26;
    --text: #f2f2f2;
    --muted: #b9b9c0;
    --red: #d92323;
    --red-dark: #a81a1a;
    --blue: #4da3ff;
    --line: #2a2a33;
  }
  * { box-sizing: border-box; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
  }
  a { color: var(--blue); }
  header {
    text-align: center;
    padding: 48px 16px 8px;
  }
  header h1 {
    margin: 0;
    font-size: 2.6rem;
    letter-spacing: 0.5px;
    color: var(--red);
  }
  header p.subtitle {
    margin: 8px 0 0;
    font-size: 1.15rem;
    color: var(--muted);
  }
  header p.tagline {
    margin: 6px 0 0;
    font-size: 0.95rem;
    color: var(--muted);
  }
  .cart-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(11, 11, 14, 0.96);
    border-bottom: 1px solid var(--line);
    padding: 10px 16px;
    display: flex;
    justify-content: flex-end;
  }
  .cart-button {
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
  }
  .cart-button:hover { background: var(--red-dark); }
  .cart-button .count {
    background: #fff;
    color: var(--red);
    border-radius: 999px;
    padding: 1px 8px;
    margin-left: 6px;
    font-size: 0.9rem;
  }
  .notice {
    display: none;
    max-width: 960px;
    margin: 20px auto 0;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 1.05rem;
  }
  .notice.show { display: block; }
  .notice.success { background: #12351f; border: 1px solid #2c7a45; }
  .notice.cancelled { background: #2a2a33; border: 1px solid var(--line); }
  main { max-width: 1180px; margin: 0 auto; padding: 24px 16px 48px; }
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
  }
  .card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .card img {
    width: 100%;
    display: block;
    aspect-ratio: 1275 / 956;
    object-fit: cover;
    object-position: top;
    background: #000;
  }
  .card-body { padding: 14px 14px 16px; display: flex; flex-direction: column; flex: 1; }
  .card-body h2 { font-size: 1.02rem; margin: 0 0 4px; }
  .card-body .price { color: var(--blue); font-weight: 700; font-size: 1.1rem; margin: 0 0 12px; }
  .add-button {
    margin-top: auto;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
  }
  .add-button:hover { background: var(--red-dark); }
  .add-button.added { background: var(--blue); }
  footer {
    border-top: 1px solid var(--line);
    padding: 28px 16px 40px;
    text-align: center;
    color: var(--muted);
    font-size: 0.95rem;
  }
  footer p { margin: 6px 0; }
  /* Cart drawer */
  .drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 30;
  }
  .drawer-overlay.open { display: block; }
  .drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 92vw);
    height: 100%;
    background: var(--panel);
    border-left: 1px solid var(--line);
    z-index: 31;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.2s ease;
  }
  .drawer.open { transform: translateX(0); }
  .drawer header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    border-bottom: 1px solid var(--line);
    text-align: left;
  }
  .drawer header h2 { margin: 0; font-size: 1.25rem; }
  .close-button {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.5rem;
    cursor: pointer;
  }
  .drawer-items { flex: 1; overflow-y: auto; padding: 12px 18px; }
  .drawer-empty { color: var(--muted); text-align: center; padding: 32px 0; }
  .line-item {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    align-items: center;
  }
  .line-item img { width: 56px; height: 72px; object-fit: cover; object-position: top; border-radius: 4px; }
  .line-item .info { flex: 1; min-width: 0; }
  .line-item .info .name { font-size: 0.92rem; margin: 0 0 2px; }
  .line-item .info .unit { color: var(--muted); font-size: 0.85rem; margin: 0; }
  .qty { display: flex; align-items: center; gap: 6px; }
  .qty button {
    width: 26px; height: 26px;
    background: var(--panel-2);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
  }
  .line-total { font-weight: 700; white-space: nowrap; }
  .remove-button {
    background: none; border: none; color: var(--red);
    cursor: pointer; font-size: 0.85rem; padding: 0;
  }
  .drawer-footer { border-top: 1px solid var(--line); padding: 16px 18px 20px; }
  .subtotal { display: flex; justify-content: space-between; font-size: 1.1rem; font-weight: 700; margin: 0 0 12px; }
  .checkout-button {
    width: 100%;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
  }
  .checkout-button:hover:not(:disabled) { background: var(--red-dark); }
  .checkout-button:disabled { opacity: 0.55; cursor: default; }
  .drawer-note { color: var(--muted); font-size: 0.85rem; text-align: center; margin: 10px 0 0; }
  .cart-error { color: #ff7a7a; font-size: 0.92rem; margin: 10px 0 0; display: none; }
  .cart-error.show { display: block; }
  /* v2 additions: linked cards + product pages */
  .card-body h2 a { color: inherit; text-decoration: none; }
  .card-body h2 a:hover { color: var(--blue); }
  .card-link { display: block; }
  .site-name { margin: 0; font-size: 2rem; font-weight: 700; letter-spacing: 0.5px; }
  .site-name a { color: var(--red); text-decoration: none; }
  .product-main { max-width: 1020px; }
  .back-link { display: inline-block; margin-bottom: 18px; }
  .product-layout { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: 30px; align-items: start; }
  @media (max-width: 720px) { .product-layout { grid-template-columns: 1fr; } }
  .product-cover { width: 100%; display: block; border-radius: 10px; border: 1px solid var(--line); background: #000; }
  .product-details h1 { margin: 0 0 6px; font-size: 1.7rem; line-height: 1.25; }
  .product-price { color: var(--blue); font-weight: 700; font-size: 1.5rem; margin: 0 0 14px; }
  .product-desc { margin: 0 0 16px; }
  .product-meta { color: var(--muted); margin: 0 0 18px; padding: 0; list-style: none; }
  .product-meta li { margin: 3px 0; }
  .product-meta strong { color: var(--text); }
  .product-details h2 { font-size: 1.15rem; margin: 20px 0 8px; }
  .includes { margin: 0 0 20px; padding-left: 20px; color: var(--muted); }
  .includes li { margin: 4px 0; }
  .buy-button { background: var(--red); color: #fff; border: none; border-radius: 6px; padding: 14px 26px; font-size: 1.05rem; font-weight: 700; cursor: pointer; }
  .buy-button:hover { background: var(--red-dark); }
  .buy-button.added { background: var(--blue); }
  .buy-note { color: var(--muted); font-size: 0.9rem; margin: 10px 0 0; }

  /* v4 additions: guide pages + product-page guide links */
  .guide-main { max-width: 860px; }
  .guide-main h1 { margin: 0 0 10px; font-size: 1.9rem; line-height: 1.25; }
  .guide-main h2 { font-size: 1.3rem; margin: 28px 0 8px; }
  .guide-main p { color: var(--muted); margin: 0 0 14px; }
  .guide-main strong { color: var(--text); }
  .guide-main ul, .guide-main ol { color: var(--muted); margin: 0 0 14px; padding-left: 22px; }
  .guide-main li { margin: 5px 0; }
  .guide-intro { font-size: 1.08rem; }
  .sample-box { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 8px; padding: 16px 18px; margin: 22px 0; }
  .sample-box p { margin: 0; }
  .cta-box { background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: 8px; padding: 20px; margin: 30px 0 6px; }
  .cta-box h2 { margin-top: 0; }
  .cta-price { color: var(--blue); font-weight: 700; font-size: 1.3rem; margin: 0 0 10px; }
  .guide-link { margin: 0 0 16px; }

  /* v7 additions: homepage category + language filter bar */
  .filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px 16px;
    margin: 0 0 22px;
  }
  .filter-group { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
  .filter-bar label { font-weight: 700; font-size: 0.95rem; margin-right: 2px; }
  .filter-bar select {
    background: var(--panel-2);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 9px 10px;
    font-size: 0.95rem;
    cursor: pointer;
    max-width: 100%;
  }
  .filter-bar select:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
  .lang-chip {
    background: var(--panel-2);
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
  }
  .lang-chip:hover { color: var(--text); border-color: var(--blue); }
  .lang-chip.active { background: var(--red); border-color: var(--red); color: #fff; }
  .filter-count { margin: 0 0 0 auto; color: var(--muted); font-size: 0.92rem; }
  .grid-empty { color: var(--muted); font-size: 1.05rem; text-align: center; padding: 36px 0; grid-column: 1 / -1; }
  @media (max-width: 720px) {
    .filter-bar { flex-direction: column; align-items: stretch; }
    .filter-count { margin: 0; }
    .filter-bar select { flex: 1; }
  }
