:root{
    --ink:#14132A;
    --ink-soft:#232145;
    --text:#1B1926;
    --paper:#EEEDE7;
    --paper-raised:#F8F7F2;
    --red:#D9432B;
    --red-deep:#A6331F;
    --gold:#E8B23D;
    --jade:#2F6E5B;
    --line: rgba(20,19,32,0.12);
    --line-light: rgba(255,255,255,0.14);
    --shadow: 0 20px 40px -20px rgba(20,19,32,0.35);
    --radius: 4px;
  }

  *{box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  body{
    margin:0;
    font-family:'Zen Kaku Gothic New', sans-serif;
    color:var(--text);
    background:var(--paper);
    line-height:1.5;
    -webkit-font-smoothing:antialiased;
  }
  h1,h2,h3,.display{
    font-family:'Shippori Mincho', serif;
    font-weight:600;
    margin:0;
    letter-spacing:0.01em;
  }
  a{color:inherit;}
  img,svg{display:block;max-width:100%;}
  button{font-family:inherit;}
  :focus-visible{outline:3px solid var(--gold); outline-offset:2px;}

  @media (prefers-reduced-motion: reduce){
    *{animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important;}
  }

  .wrap{max-width:1180px; margin:0 auto; padding:0 28px;}

  /* ---------- NAV ---------- */
  header.site-nav{
    position:sticky; top:0; z-index:60;
    background:transparent;
    transition:background 0.25s ease, box-shadow 0.25s ease;
  }
  header.site-nav.scrolled{
    background:var(--ink);
    box-shadow:0 2px 24px rgba(0,0,0,0.25);
  }
  .nav-inner{
    display:flex; align-items:center; justify-content:space-between;
    padding:18px 0;
  }
  .brand{
    display:flex; align-items:center; gap:10px;
    text-decoration:none; color:var(--paper-raised);
  }
  .brand-mark{
    width:38px; height:38px; border-radius:50%;
    background:var(--red);
    display:flex; align-items:center; justify-content:center;
    font-family:'Shippori Mincho', serif; font-size:20px; color:var(--paper-raised);
    flex-shrink:0; object-fit:cover;
  }
  .brand-name{
    font-family:'Shippori Mincho', serif; font-size:20px; font-weight:600;
    letter-spacing:0.01em; white-space:nowrap;
  }
  .brand-name span{color:var(--gold);}

  nav.primary-links{
    display:flex; gap:32px; list-style:none; margin:0; padding:0;
  }
  nav.primary-links a{
    text-decoration:none; color:var(--paper-raised); font-size:15px; font-weight:500;
    padding:6px 2px; border-bottom:2px solid transparent;
    transition:border-color 0.2s ease;
  }
  nav.primary-links a:hover{border-color:var(--gold);}

  .nav-actions{display:flex; align-items:center; gap:14px;}
  .icon-btn{
    background:transparent; border:1px solid var(--line-light);
    color:var(--paper-raised); width:40px; height:40px; border-radius:50%;
    display:flex; align-items:center; justify-content:center; cursor:pointer;
    position:relative; transition:background 0.2s ease;
  }
  .icon-btn:hover{background:rgba(255,255,255,0.08);}
  .cart-count{
    position:absolute; top:-6px; right:-6px;
    background:#C93A23; color:#fff; font-size:11px; font-weight:700;
    border-radius:50%; width:19px; height:19px; display:flex; align-items:center; justify-content:center;
  }
  .menu-toggle{display:none;}

  /* ---------- HERO ---------- */
  .hero{
    position:relative;
    background:var(--ink); color:var(--paper-raised);
    padding:64px 0 88px;
    overflow:hidden;
  }
  /* Parallax background: a separate absolutely-positioned layer, oversized
     (inset -80px) so the scroll-driven translate never reveals a hard edge.
     A fixed dark scrim sits on top of it (not translated) so hero text stays
     legible regardless of scroll position — only the art itself drifts. */
  .hero-bg-parallax{
    position:absolute; inset:-80px 0; z-index:0;
    background-image:url('images/hero-bg.webp');
    background-size:cover; background-position:center 55%;
    will-change:transform;
  }
  .hero-scrim{
    position:absolute; inset:0; z-index:1;
    background:linear-gradient(180deg, rgba(20,19,32,0.38) 0%, rgba(20,19,32,0.72) 55%, rgba(20,19,32,0.92) 100%);
  }
  .hero-inner{
    position:relative; z-index:2;
    display:flex; flex-direction:column; gap:44px;
  }
  .eyebrow-kanji{
    font-family:'Shippori Mincho', serif; font-size:15px; color:var(--gold);
    display:flex; align-items:center; gap:10px; margin-bottom:18px;
    /* Fixed height: the kanji font loads after the page, and a line mixing
       two fonts can grow taller, which pushed the text below down. */
    height:1.5em;
  }
  .eyebrow-kanji::before{
    content:""; width:28px; height:1px; background:var(--gold);
  }
  .hero h1{
    font-size:clamp(38px, 5vw, 60px); line-height:1.08; color:#fff;
    max-width:11.5ch;
  }
  .hero p.lede{
    margin-top:22px; font-size:17px; line-height:1.7; color:rgba(248,247,242,0.82);
    max-width:46ch;
  }
  .hero-tagline{
    margin-top:14px; font-family:'Shippori Mincho', serif; font-weight:600;
    font-size:20px; color:var(--gold); letter-spacing:0.01em;
  }
  .hero-ctas{display:flex; gap:16px; margin-top:34px; flex-wrap:wrap;}
  .btn{
    display:inline-flex; align-items:center; gap:8px;
    padding:14px 26px; border-radius:2px; font-size:15px; font-weight:700;
    text-decoration:none; cursor:pointer; border:1px solid transparent;
    transition:transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  }
  .btn:active{transform:translateY(1px);}
  .btn-primary{background:var(--red); color:#fff;}
  .btn-primary:hover{background:var(--red-deep);}
  .btn-ghost{background:transparent; color:#fff; border-color:var(--line-light);}
  .btn-ghost:hover{border-color:var(--gold); color:var(--gold);}
  .btn-dark{background:var(--ink); color:#fff;}
  .btn-dark:hover{background:var(--ink-soft);}
  .btn-block{width:100%; justify-content:center;}
  .btn[disabled]{opacity:0.5; cursor:not-allowed;}

  /* Hero showcase: full-sized versions of the actual booster box product
     tiles, not a separate decorative illustration — deliberately reuses the
     .product-art theme classes and kanji/code styling from the shop grid
     below, so this always looks like "the same 4 sets, just bigger" rather
     than a disconnected banner graphic. Rendered by JS from the live
     PRODUCTS data (see renderHeroShowcase) — see the comment above the
     PRODUCTS array for how to change which sets appear here. */
  .hero-showcase{display:grid; grid-template-columns:repeat(4, 1fr); gap:18px;}
  .hero-showcase-item{
    position:relative; height:300px; border-radius:8px; overflow:hidden;
    text-decoration:none; display:block;
    box-shadow:0 24px 50px -18px rgba(0,0,0,0.6);
    border:1px solid rgba(255,255,255,0.18);
    opacity:0; transform:translateY(18px);
    animation:heroItemRise 0.6s cubic-bezier(.2,.8,.2,1) forwards;
    transition:transform 0.2s ease;
  }
  .hero-showcase-item:hover{transform:translateY(-4px);}
  .hero-showcase-item:nth-child(1){animation-delay:0.05s;}
  .hero-showcase-item:nth-child(2){animation-delay:0.15s;}
  .hero-showcase-item:nth-child(3){animation-delay:0.25s;}
  .hero-showcase-item:nth-child(4){animation-delay:0.35s;}
  .hero-photo-framed{
    position:absolute; inset:42px 16px 38px 16px;
    width:calc(100% - 32px); height:calc(100% - 80px);
    object-fit:contain; border-radius:6px;
    filter:drop-shadow(0 10px 18px rgba(0,0,0,0.45));
  }
  .hero-showcase-item.product-art{height:300px;} /* wins over .product-art's 190px regardless of source order, via specificity */
  .hero-showcase-caption{
    position:absolute; bottom:0; left:0; right:0; padding:8px 16px 10px;
    font-size:11.5px; font-weight:700; color:rgba(255,255,255,0.9);
    background:linear-gradient(to top, rgba(0,0,0,0.55), transparent);
  }
  @keyframes heroItemRise{
    to{opacity:1; transform:translateY(0);}
  }
  @keyframes sheen{
    0%{background-position:200% 0%;}
    100%{background-position:-40% 0%;}
  }

  /* ---------- TRUST BAR ---------- */
  .trust-bar{
    background:var(--paper-raised); border-bottom:1px solid var(--line);
    padding:22px 0;
  }
  .trust-inner{
    display:flex; justify-content:space-between; flex-wrap:wrap; gap:18px;
  }
  .trust-item{display:flex; align-items:center; gap:10px; font-size:14px; font-weight:700;}
  .trust-item .dot{width:7px; height:7px; border-radius:50%; background:var(--jade); flex-shrink:0;}

  /* ---------- SECTIONS ---------- */
  section{padding:84px 0;}
  .section-head{
    display:flex; justify-content:space-between; align-items:flex-end; gap:24px;
    margin-bottom:44px; flex-wrap:wrap;
  }
  .section-head h2{font-size:clamp(28px,3.4vw,38px);}
  .section-head p{margin:10px 0 0; max-width:46ch; color:#4A4763; font-size:15px;}
  .link-more{
    font-weight:700; font-size:14px; text-decoration:none; color:var(--red-deep);
    border-bottom:2px solid var(--red-deep); padding-bottom:2px; white-space:nowrap;
  }

  /* product grid */
  .product-grid{
    display:grid; grid-template-columns:repeat(3,1fr); gap:28px;
  }
  .product-card{
    background:var(--paper-raised); border:1px solid var(--line); border-radius:var(--radius);
    overflow:hidden; display:flex; flex-direction:column;
  }
  .product-art{
    position:relative; height:190px; overflow:hidden;
  }
  .product-art::before{
    content:""; position:absolute; inset:0;
    background:linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.28) 45%, transparent 60%);
    background-size:220% 220%;
    animation:sheen 4.5s ease-in-out infinite;
    pointer-events:none;
  }
  .product-art.art-mega-dream{
    background:
      radial-gradient(circle at 30% 20%, rgba(232,178,61,0.55), transparent 55%),
      radial-gradient(circle at 75% 70%, rgba(232,105,155,0.55), transparent 55%),
      conic-gradient(from 210deg at 50% 45%, #2F6E5B, #14132A 35%, #8C2F55 65%, #14132A 100%);
  }
  .product-art.art-151{
    background:
      radial-gradient(circle at 20% 25%, rgba(217,67,43,0.14) 0 6px, transparent 7px) 0 0/46px 46px,
      radial-gradient(circle at 60% 60%, rgba(232,178,61,0.16) 0 5px, transparent 6px) 0 0/38px 38px,
      linear-gradient(160deg,#F8F7F2,#EFE9DC);
  }
  .product-art.art-151 .kanji, .product-art.art-151 .code{ color:rgba(20,19,32,0.7); }
  .product-art.art-terastal{
    background:
      repeating-linear-gradient(45deg, rgba(47,110,91,0.18) 0 2px, transparent 2px 34px),
      repeating-linear-gradient(-45deg, rgba(110,94,199,0.18) 0 2px, transparent 2px 34px),
      linear-gradient(160deg,#F1F0EC,#E3E1D8);
  }
  .product-art.art-terastal .kanji, .product-art.art-terastal .code{ color:rgba(20,19,32,0.7); }
  .product-art.art-shiny-treasure{
    background:
      repeating-conic-gradient(from 0deg at 50% 50%, rgba(232,178,61,0.16) 0deg 3deg, transparent 3deg 18deg),
      radial-gradient(circle at 50% 45%, rgba(217,67,43,0.45), transparent 60%),
      linear-gradient(160deg,#1B1926,#0D1420);
  }
  .product-art.art-premium-trainer{
    background:
      radial-gradient(circle at 25% 30%, rgba(255,214,140,0.55), transparent 55%),
      radial-gradient(circle at 78% 65%, rgba(122,42,42,0.5), transparent 55%),
      linear-gradient(160deg,#C9962E,#5B2A2A);
  }
  .product-art.art-pc-fukuoka{
    background:
      radial-gradient(circle at 70% 20%, rgba(232,178,61,0.5), transparent 55%),
      linear-gradient(160deg,#E8B23D,#A6331F);
  }
  .product-art.art-pc-hiroshima{
    background:
      radial-gradient(circle at 30% 25%, rgba(232,178,61,0.35), transparent 50%),
      linear-gradient(160deg,#2F6E5B,#173B30);
  }
  .product-art.art-pc-tohoku{
    background:
      radial-gradient(circle at 25% 20%, rgba(255,255,255,0.4), transparent 50%),
      linear-gradient(160deg,#3E6FA6,#14243F);
  }
  /* Generic themes for products added via the admin panel — the classes
     above were each hand-picked to complement a specific product's real
     colours, which isn't practical to do per-product from an admin form.
     Pick whichever of these three reads best against a given photo when
     adding a product; there's no "correct" one tied to any particular set. */
  .product-art.art-new-1{
    background:
      radial-gradient(circle at 25% 25%, rgba(217,67,43,0.4), transparent 55%),
      radial-gradient(circle at 75% 70%, rgba(47,110,91,0.4), transparent 55%),
      linear-gradient(160deg,#2A2850,#14132A);
  }
  .product-art.art-new-2{
    background:
      radial-gradient(circle at 30% 70%, rgba(232,178,61,0.4), transparent 55%),
      radial-gradient(circle at 75% 25%, rgba(140,47,85,0.4), transparent 55%),
      linear-gradient(160deg,#1B1926,#3A1F30);
  }
  .product-art.art-new-3{
    background:
      radial-gradient(circle at 25% 30%, rgba(110,94,199,0.45), transparent 55%),
      radial-gradient(circle at 75% 70%, rgba(62,111,166,0.45), transparent 55%),
      linear-gradient(160deg,#14243F,#0D1420);
  }
  .product-photo-framed{
    position:absolute; inset:34px 16px 30px 16px;
    width:calc(100% - 32px); height:calc(100% - 64px);
    object-fit:contain; border-radius:8px;
    filter:drop-shadow(0 8px 14px rgba(0,0,0,0.35));
  }
  .product-art .kanji{
    position:absolute; top:14px; right:16px; font-family:'Shippori Mincho', serif;
    font-size:26px; color:rgba(255,255,255,0.85); z-index:1;
  }
  .product-art .code{
    position:absolute; bottom:12px; left:16px; font-size:11px; font-weight:700;
    letter-spacing:0.08em; color:rgba(255,255,255,0.8); z-index:1;
  }
  .badge{
    position:absolute; top:12px; left:12px; background:var(--gold); color:var(--ink);
    font-size:11px; font-weight:800; padding:4px 9px; border-radius:2px;
  }
  .badge-sold-out{background:rgba(20,19,32,0.75); color:#fff;}
  .sold-out-card{opacity:0.7;}
  .sold-out-photo{filter:grayscale(0.6);}
  .product-body{padding:20px 20px 22px; display:flex; flex-direction:column; gap:10px; flex:1;}
  .product-body h3{font-size:18px; line-height:1.3;}
  .product-meta{font-size:13px; color:#5B5876;}
  .product-foot{
    margin-top:auto; display:flex; align-items:center; justify-content:space-between; padding-top:6px;
  }
  .price{font-weight:800; font-size:19px;}
  .price .was{
    font-size:13px; font-weight:500; color:#8b889f; text-decoration:line-through; margin-left:6px;
  }
  .stock-tag{font-size:12px; font-weight:700;}
  .stock-tag.in{color:var(--jade);}
  .stock-tag.low{color:var(--red-deep);}
  .add-btn{
    background:var(--ink); color:#fff; border:none; padding:10px 16px; font-size:14px;
    font-weight:700; border-radius:2px; cursor:pointer; transition:background 0.2s ease;
  }
  .add-btn:hover{background:#C93A23;}
  .add-btn.added{background:var(--jade);}
  .add-btn[disabled]{background:#cfccdb; color:#6b6884; cursor:not-allowed;}
  .add-btn[disabled]:hover{background:#cfccdb;}

  /* categories */
  .cat-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:20px;}
  .cat-card{
    background:var(--ink); color:#fff; padding:26px 22px; border-radius:var(--radius);
    text-decoration:none; position:relative; min-height:132px;
    display:flex; flex-direction:column; justify-content:space-between;
    transition:transform 0.2s ease;
  }
  .cat-card:hover{transform:translateY(-3px);}
  .cat-card .kanji-bg{
    position:absolute; right:12px; bottom:0; font-family:'Shippori Mincho', serif;
    font-size:64px; color:rgba(255,255,255,0.08); line-height:1;
  }
  .cat-card h3{font-size:17px; font-weight:600; font-family:'Shippori Mincho', serif;}
  .cat-card span{font-size:13px; color:rgba(255,255,255,0.65);}

  /* how we source */
  .source-section{background:var(--ink); color:#fff;}
  .steps{display:grid; grid-template-columns:repeat(3,1fr); gap:36px; margin-top:44px;}
  .step{border-top:2px solid var(--gold); padding-top:18px;}
  .step .num{font-family:'Shippori Mincho', serif; font-size:15px; color:var(--gold); margin-bottom:12px; display:block;}
  .step h3{font-size:19px; margin-bottom:10px; color:#fff;}
  .step p{margin:0; font-size:14.5px; color:rgba(255,255,255,0.72); line-height:1.65;}

  /* values / trust section */
  .values-grid{display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:28px; margin-top:44px;}
  .value-card{
    background:var(--paper-raised); border:1px solid var(--line); border-radius:var(--radius);
    padding:26px 24px; border-top:3px solid var(--jade);
  }
  .value-card h3{font-size:18px; margin-bottom:10px;}
  .value-card p{margin:0; font-size:14.5px; color:#4A4763; line-height:1.65;}

  /* newsletter */
  .newsletter{
    background:var(--red); color:#fff; border-radius:6px; padding:48px;
    display:grid; grid-template-columns:1.2fr 1fr; gap:32px; align-items:center;
  }
  .newsletter h2{color:#fff; font-size:28px;}
  .newsletter p{margin:10px 0 0; color:rgba(255,255,255,0.85); font-size:14.5px; max-width:42ch;}
  .nl-form{display:flex; flex-wrap:wrap; gap:10px; position:relative;}
  .nl-form input{min-width:0;}
  .sr-only{position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;}
  .nl-form input{
    flex:1; padding:13px 14px; border:none; border-radius:2px; font-size:14px; font-family:inherit;
  }
  .nl-form input:focus-visible{outline:3px solid var(--ink);}
  .nl-note{font-size:12.5px; margin-top:10px; color:rgba(255,255,255,0.7);}

  /* footer */
  footer{background:var(--ink); color:rgba(255,255,255,0.75); padding:60px 0 30px; font-size:14px;}
  .footer-grid{display:grid; grid-template-columns:1.4fr repeat(3,1fr); gap:32px; padding-bottom:40px; border-bottom:1px solid var(--line-light);}
  .footer-grid h4{color:#fff; font-size:14px; margin-bottom:16px; font-weight:700;}
  .footer-grid ul{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px;}
  .footer-grid a{text-decoration:none; color:inherit;}
  .footer-grid a:hover{color:var(--gold);}
  .footer-brand p{margin:14px 0 0; max-width:32ch; color:rgba(255,255,255,0.6); font-size:13.5px;}
  .footer-bottom{
    padding-top:22px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
    font-size:12.5px; color:rgba(255,255,255,0.5);
  }

  /* ---------- CART DRAWER ---------- */
  .overlay{
    position:fixed; inset:0; background:rgba(20,19,32,0.5); z-index:90;
    opacity:0; pointer-events:none; transition:opacity 0.25s ease;
  }
  .overlay.open{opacity:1; pointer-events:auto;}
  .drawer{
    position:fixed; top:0; right:0; height:100%; width:min(420px, 100%);
    background:var(--paper-raised); z-index:100; box-shadow:-10px 0 40px rgba(0,0,0,0.25);
    transform:translateX(100%); transition:transform 0.3s cubic-bezier(.2,.8,.2,1);
    display:flex; flex-direction:column;
  }
  .drawer.open{transform:translateX(0);}
  .drawer-head{
    padding:22px 24px; display:flex; justify-content:space-between; align-items:center;
    border-bottom:1px solid var(--line);
  }
  .drawer-head h2{font-size:20px;}
  .drawer-close{background:none; border:none; font-size:22px; cursor:pointer; color:var(--text); line-height:1;}
  .drawer-body{flex:1; overflow-y:auto; padding:20px 24px;}
  .cart-item{display:flex; gap:14px; padding:16px 0; border-bottom:1px solid var(--line);}
  .cart-item .swatch{width:56px; height:72px; border-radius:4px; flex-shrink:0;}
  .cart-item-info{flex:1; display:flex; flex-direction:column; gap:6px;}
  .cart-item-info .name{font-weight:700; font-size:14.5px;}
  .cart-item-info .unit{font-size:12.5px; color:#6b6884;}
  .qty-row{display:flex; align-items:center; gap:10px; margin-top:2px;}
  .qty-btn{
    width:26px; height:26px; border-radius:50%; border:1px solid var(--line); background:#fff;
    cursor:pointer; font-size:15px; line-height:1; display:flex; align-items:center; justify-content:center;
  }
  .remove-link{background:none; border:none; color:var(--red-deep); font-size:12.5px; font-weight:700; cursor:pointer; padding:0; margin-left:auto;}
  .empty-cart{text-align:center; padding:60px 10px; color:#6b6884;}
  .drawer-foot{padding:20px 24px 26px; border-top:1px solid var(--line);}
  .subtotal-row{display:flex; justify-content:space-between; font-size:15px; margin-bottom:14px;}
  .subtotal-row strong{font-size:18px;}

  /* ---------- CHECKOUT MODAL ---------- */
  .modal{
    position:fixed; inset:0; z-index:110; display:flex; align-items:center; justify-content:center;
    padding:24px; opacity:0; pointer-events:none; transition:opacity 0.2s ease;
  }
  .modal.open{opacity:1; pointer-events:auto;}
  .modal-panel{
    background:#fff; max-width:520px; width:100%; max-height:88vh; overflow-y:auto;
    border-radius:6px; padding:32px; position:relative;
  }
  .modal-close{position:absolute; top:18px; right:18px; background:none; border:none; font-size:22px; cursor:pointer;}
  .modal-panel h2{font-size:24px; margin-bottom:6px;}
  .modal-sub{font-size:13.5px; color:#6b6884; margin-bottom:24px;}
  .field-row{display:grid; grid-template-columns:1fr 1fr; gap:12px;}
  .field{margin-bottom:14px;}
  .field label{display:block; font-size:13px; font-weight:700; margin-bottom:6px;}
  .field input, .field select{
    width:100%; padding:11px 12px; border:1px solid #cfccdb; border-radius:4px; font-size:14px; font-family:inherit; background:#fff;
  }
  .field input:focus-visible, .field select:focus-visible{outline:3px solid var(--gold);}
  .field.error input, .field.error select{border-color:var(--red-deep);}
  .error-msg{color:var(--red-deep); font-size:12px; margin-top:5px; display:none;}
  .field.error .error-msg{display:block;}
  .field-hint{font-size:12px; color:#6b6884; margin-top:5px;}
  .shipping-options{display:flex; flex-direction:column; gap:8px; margin-bottom:14px;}
  .shipping-option{
    display:flex; align-items:flex-start; gap:10px; border:1px solid #cfccdb; border-radius:4px;
    padding:11px 12px; cursor:pointer; font-size:13.5px;
  }
  .shipping-option:has(input:checked){border-color:var(--ink); background:var(--paper);}
  .shipping-option input{margin-top:3px; flex-shrink:0;}
  .shipping-option .so-body{flex:1;}
  .shipping-option .so-name{font-weight:700;}
  .shipping-option .so-eta{color:#6b6884; font-size:12.5px;}
  .shipping-option .so-price{font-weight:700; white-space:nowrap;}
  .order-summary{border-top:1px solid var(--line); padding-top:14px; margin-top:4px; font-size:14px;}
  .order-summary .row{display:flex; justify-content:space-between; margin-bottom:6px;}
  .order-summary .row.total{font-weight:800; font-size:17px; margin-top:8px; padding-top:8px; border-top:1px solid var(--line);}
  .security-note{
    background:var(--paper); border-left:3px solid var(--jade); padding:12px 14px; font-size:12.5px;
    color:#4A4763; border-radius:2px; margin:18px 0 4px; line-height:1.6;
  }
  .confirmation{text-align:center; padding:20px 0;}
  .confirmation .mark{
    width:56px; height:56px; border-radius:50%; background:var(--jade); color:#fff;
    display:flex; align-items:center; justify-content:center; font-size:26px; margin:0 auto 18px;
  }
  .shipping-table{width:100%; border-collapse:collapse; font-size:13.5px; margin:14px 0 22px;}
  .shipping-table caption{text-align:left; font-weight:700; margin-bottom:8px; font-size:14.5px;}
  .shipping-table th{text-align:left; font-size:11px; text-transform:uppercase; letter-spacing:0.04em; color:#6b6884; padding:7px 10px; border-bottom:1px solid var(--line);}
  .shipping-table td{padding:8px 10px; border-bottom:1px solid var(--line);}
  .weight-examples{display:flex; flex-wrap:wrap; gap:10px; margin:14px 0 26px;}
  .weight-chip{background:var(--paper); border-radius:4px; padding:8px 12px; font-size:12.5px;}
  .weight-chip strong{display:block; font-size:13.5px;}

  .setguide-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:20px; margin-bottom:32px;}
  .setguide-card{background:var(--paper-raised); border:1px solid var(--line); border-radius:6px; padding:22px; display:flex; flex-direction:column; gap:10px;}
  .setguide-card .sg-head{display:flex; justify-content:space-between; align-items:baseline; gap:10px;}
  .setguide-card h3{font-size:18px;}
  .setguide-card .sg-code{font-size:11.5px; color:#6b6884; font-weight:700; white-space:nowrap;}
  .setguide-card .sg-spec{font-size:12.5px; color:#4A4763;}
  .setguide-card .sg-fit{display:inline-block; background:var(--jade); color:#fff; font-size:11px; font-weight:800; padding:3px 9px; border-radius:2px; width:fit-content;}
  .chase-tags{display:flex; flex-wrap:wrap; gap:6px; margin-top:2px;}
  .chase-tag{background:var(--paper); border:1px solid var(--line); border-radius:20px; padding:4px 11px; font-size:11.5px; font-weight:600;}
  .setguide-card .sg-link{margin-top:auto; font-size:13px; font-weight:700; color:var(--red-deep); text-decoration:none; border-bottom:2px solid var(--red-deep); width:fit-content; padding-bottom:1px;}

  .glossary-row{display:flex; flex-wrap:wrap; gap:10px; margin:14px 0 30px;}
  /* Market snapshot: reference-only figures sourced from a third party
     (Pokémon Wizard), never presented as our own valuation or advice.
     See the comment above the market-disclaimer block below for the full
     sourcing/accuracy caveat. */
  .sg-market{
    display:flex; flex-wrap:wrap; gap:14px; padding:10px 12px; margin:2px 0;
    background:var(--paper); border-radius:4px; font-size:12.5px;
  }
  .sg-market strong{display:block; font-size:14px;}
  .sg-market small{display:block; color:#8b889f; font-size:10.5px; text-transform:uppercase; letter-spacing:0.03em;}
  .sg-market .trend-up{color:var(--jade);}
  .sg-market .trend-down{color:var(--red-deep);}
  /* Small market graph: a compact bar showing trend MAGNITUDE, not a
     fabricated price-history line — we only have one snapshot figure per
     set (see the market-disclaimer text), so drawing a multi-point history
     chart would mean inventing data points that don't exist. This instead
     visually encodes the one real number we do have (the trend %) on a log
     scale, since trends here range from ~3% to over 1000% — a linear bar
     would make everything either invisible or maxed out. */
  .trend-bar{height:4px; background:var(--line); border-radius:2px; margin-top:4px; overflow:hidden;}
  .trend-bar-fill{height:100%; border-radius:2px;}
  .trend-bar-fill.up{background:var(--jade);}
  .trend-bar-fill.down{background:var(--red-deep);}
  .sg-market-note{font-size:12px; color:#8b889f; padding:10px 12px; font-style:italic;}
  .market-disclaimer{
    background:var(--paper); border:1px solid var(--line); border-radius:4px;
    padding:16px 18px; margin:0 0 32px; font-size:13px; color:#4A4763; line-height:1.6;
  }
  .market-disclaimer strong{color:var(--text);}
  .glossary-chip{background:var(--paper); border-radius:4px; padding:8px 12px; font-size:12px;}
  .glossary-chip strong{color:var(--ink); margin-right:5px;}

  .archive-intro{font-size:13.5px; color:#4A4763; margin:0 0 18px; max-width:70ch;}
  .cadence-chart{margin:0 0 30px;}
  .cadence-chart .bars{display:flex; align-items:flex-end; gap:14px; height:140px; padding:0 4px;}
  .cadence-chart .bar-col{flex:1; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; height:100%;}
  .cadence-chart .bar{width:100%; max-width:46px; background:var(--red); border-radius:3px 3px 0 0; position:relative;}
  .cadence-chart .bar-count{font-size:11.5px; font-weight:800; margin-bottom:4px;}
  .cadence-chart .bar-year{font-size:11.5px; color:#6b6884; margin-top:8px; font-weight:700;}
  .cadence-caption{font-size:12px; color:#6b6884; margin-top:10px;}

  .archive-year{border:1px solid var(--line); border-radius:6px; margin-bottom:10px; overflow:hidden;}
  .archive-year-toggle{
    width:100%; text-align:left; background:var(--paper-raised); border:none; cursor:pointer;
    padding:14px 18px; display:flex; justify-content:space-between; align-items:center; font-family:inherit;
  }
  .archive-year-toggle h4{font-family:'Shippori Mincho', serif; font-size:17px; margin:0;}
  .archive-year-toggle .count{font-size:12.5px; color:#6b6884; font-weight:700;}
  .archive-year-toggle .chev{transition:transform 0.2s ease; font-size:13px;}
  .archive-year.open .chev{transform:rotate(180deg);}
  .archive-year-body{display:none; padding:4px 18px 16px;}
  .archive-year.open .archive-year-body{display:block;}
  .archive-set-row{
    display:flex; justify-content:space-between; align-items:baseline; gap:14px;
    padding:11px 0; border-bottom:1px solid var(--line); font-size:13.5px;
    width:100%; background:none; border-left:none; border-right:none; border-top:none;
    font-family:inherit; text-align:left; cursor:default;
  }
  button.archive-set-row{cursor:pointer;}
  .archive-set:last-child .archive-set-row{border-bottom:none;}
  .archive-set.open .archive-set-row{border-bottom-color:transparent;}
  .archive-set-name{font-weight:700;}
  .archive-set-name .code{font-weight:500; color:#6b6884; font-size:12px; margin-left:6px;}
  .archive-set-meta{color:#6b6884; font-size:12.5px; text-align:right; white-space:nowrap;}
  .archive-featured{background:var(--jade); color:#fff; font-size:10.5px; font-weight:800; padding:2px 7px; border-radius:20px; margin-left:8px; white-space:nowrap;}
  .archive-set-chev{display:inline-block; transition:transform 0.2s ease; margin-left:4px;}
  .archive-set.open .archive-set-chev{transform:rotate(180deg);}
  .archive-set-detail{display:none; padding:0 0 14px; border-bottom:1px solid var(--line);}
  .archive-set.open .archive-set-detail{display:block;}
  .archive-set:last-child .archive-set-detail{border-bottom:none;}

  /* ---------------- ADMIN ----------------
     Placed in-flow at the very bottom of the footer, beneath the Privacy
     policy link — like the corner-button version before it, this placement
     is purely cosmetic to keep the link unobtrusive for ordinary visitors,
     it is NOT a security boundary. Actual security comes entirely from the
     backend verifying the password hash and gating every /api/admin/*
     route behind a real session check server-side. */
  .footer-admin-row{ text-align:center; margin-top:22px; }
  .admin-corner{
    font-size:11px; color:rgba(255,255,255,0.28); background:none; border:none;
    cursor:pointer; padding:4px 6px; font-family:inherit;
  }
  .admin-corner:hover{color:rgba(255,255,255,0.65);}
  .admin-modal-panel{max-width:880px;}
  .admin-dashboard h3{font-size:16px; margin:22px 0 12px;}
  .admin-dashboard h3:first-child{margin-top:0;}
  .admin-table{width:100%; border-collapse:collapse; font-size:13.5px;}
  .admin-table th{text-align:left; font-size:11px; text-transform:uppercase; letter-spacing:0.04em; color:#8b889f; padding:6px 8px; border-bottom:1px solid var(--line);}
  .admin-table td{padding:8px; border-bottom:1px solid var(--line); vertical-align:middle;}
  .admin-table input[type="number"]{width:80px; padding:6px 8px; border:1px solid #cfccdb; border-radius:4px; font-size:13px;}
  .admin-table select{padding:6px 8px; border:1px solid #cfccdb; border-radius:4px; font-size:13px;}
  .admin-save-btn{
    background:var(--ink); color:#fff; border:none; padding:6px 12px; border-radius:2px;
    font-size:12.5px; font-weight:700; cursor:pointer;
  }
  .admin-save-btn:hover{background:#C93A23;}
  .admin-status-msg{font-size:12.5px; margin-top:4px; min-height:16px;}

  /* Order fulfillment cards: designed to answer three questions at a glance
     — who ordered what, where does it go, and which shipping level did they
     pay for. A dense table couldn't show all of that without horizontal
     scrolling, so each order gets its own scannable block instead. */
  .order-filter-row{display:flex; align-items:center; gap:10px; margin-bottom:14px; flex-wrap:wrap;}
  .order-filter-row select{padding:7px 10px; border:1px solid #cfccdb; border-radius:4px; font-size:13px; font-family:inherit;}
  .order-filter-row .order-count{font-size:12.5px; color:#6b6884;}
  .order-card{
    border:1px solid var(--line); border-left:4px solid #cfccdb; border-radius:4px;
    padding:14px 16px; margin-bottom:12px; background:var(--paper-raised);
  }
  .order-card.status-paid{border-left-color:var(--jade);}
  .order-card.status-paid_stock_issue{border-left-color:var(--red-deep); background:#FBEFEE;}
  .order-card.status-shipped, .order-card.status-cancelled,
  .order-card.status-failed_no_stock, .order-card.status-failed_payment_init{opacity:0.6;}
  .order-card-head{display:flex; justify-content:space-between; align-items:flex-start; gap:12px; margin-bottom:10px; flex-wrap:wrap;}
  .order-card-head .order-number{font-family:'Shippori Mincho', serif; font-size:17px; font-weight:600;}
  .order-card-head .order-date{font-size:12px; color:#6b6884; margin-top:2px;}
  .order-card-body{display:grid; grid-template-columns:1.1fr 1fr; gap:16px;}
  .order-card-section h4{font-size:11px; text-transform:uppercase; letter-spacing:0.05em; color:#8b889f; margin:0 0 6px;}
  .order-card-section p{margin:0; font-size:13.5px; line-height:1.6;}
  .order-ship-method{display:inline-block; background:var(--paper); padding:3px 9px; border-radius:20px; font-size:12px; font-weight:700; margin-top:6px;}
  .order-items-list{margin:0; padding:0; list-style:none; font-size:13.5px;}
  .order-items-list li{padding:3px 0;}
  .order-items-list .qty{font-weight:700; color:var(--red-deep); margin-right:6px;}
  .order-card-foot{display:flex; justify-content:space-between; align-items:center; margin-top:12px; padding-top:10px; border-top:1px solid var(--line);}
  .order-total{font-weight:800; font-size:15px;}
  .copy-address-btn{
    background:none; border:1px solid #cfccdb; color:var(--text); padding:5px 10px; border-radius:4px;
    font-size:11.5px; font-weight:700; cursor:pointer;
  }
  .copy-address-btn:hover{border-color:var(--ink);}

  /* ---------- RESPONSIVE ---------- */
  @media (max-width:920px){
    .hero-showcase-item{height:260px;}
    .product-grid{grid-template-columns:repeat(2,1fr);}
    .cat-grid{grid-template-columns:repeat(2,1fr);}
    .steps{grid-template-columns:1fr; gap:24px;}
    .values-grid{grid-template-columns:1fr; gap:20px;}
    .footer-grid{grid-template-columns:1fr 1fr;}
    .newsletter{grid-template-columns:1fr;}
  }
  @media (max-width:680px){
    nav.primary-links{
      position:fixed; top:74px; left:0; right:0; background:var(--ink); flex-direction:column;
      padding:20px 28px; gap:6px; transform:translateY(-130%); transition:transform 0.25s ease; z-index:55;
    }
    nav.primary-links.open{transform:translateY(0);}
    nav.primary-links a{padding:12px 0; border-bottom:1px solid var(--line-light); width:100%;}
    .menu-toggle{
      display:flex; background:none; border:1px solid var(--line-light); color:#fff; width:40px; height:40px;
      border-radius:50%; align-items:center; justify-content:center; cursor:pointer; font-size:18px;
    }
    .product-grid{grid-template-columns:1fr;}
    .cat-grid{grid-template-columns:1fr;}
    .hero-showcase{grid-template-columns:repeat(2,1fr);}
    .hero-showcase-item{height:220px;}
    .field-row{grid-template-columns:1fr;}
    .order-card-body{grid-template-columns:1fr;}
    .setguide-grid{grid-template-columns:1fr;}
    .trust-inner{flex-direction:column;}
    .footer-grid{grid-template-columns:1fr;}
    .brand-name{font-size:15px;}

    /* On mobile the header row has to fit the logo, brand name, and every
       icon button (Instagram, TikTok, dark mode, menu, cart) side by side
       with no wrapping — five 40px icon buttons plus their gaps is more
       width than a phone screen has next to the brand name, so without
       this they overlapped/meshed into the "TATAKAICARDS" text (only
       visible on an actual phone; a desktop resize doesn't reproduce it
       because that's exactly the width these two icons matter at).
       Instagram and TikTok are already reachable from the dropdown menu's
       own mobile-social-row below, so hiding the header's copies here
       just removes the redundant, overflowing pair rather than losing
       the links. */
    .social-icon-btn{display:none;}
    .mobile-social-row{display:flex; gap:14px; margin-top:16px;}

    /* Archive rows: desktop puts the set name and its date/card-count on
       one line via flex space-between, with white-space:nowrap on the
       meta side so it never wraps mid-phrase. On a narrow phone screen
       that combination has nowhere to go — a longer set name plus a
       nowrap meta string (and the nowrap "In our shop" badge on top of
       that) simply run out of room and overflow sideways. Stacking them
       instead — name on its own line, meta below it — removes the
       horizontal squeeze entirely rather than trying to shrink text to
       fit. */
    .archive-set-row{ flex-direction:column; align-items:flex-start; gap:3px; }
    .archive-set-name{ width:100%; }
    .archive-set-meta{ width:100%; text-align:left; white-space:normal; }
    .archive-year-toggle{ padding:14px; }
    .archive-year-toggle .count{ white-space:normal; text-align:right; max-width:120px; }
  }
