.ks-shop{--ink:#f2eee8;--dim:#b5afa7;--line:#39342f;--panel:#1b1a19;--accent:#6b69dd;--accent-line:#6b69dd;--accent-bg:#24233b;--glow:rgba(107,105,221,.32);box-sizing:border-box;width:100%;min-width:0;padding:0 15px 30px;color:var(--ink);font-family:inherit}
.ks-shop *, .ks-shop *::before,.ks-shop *::after{box-sizing:border-box}
.ks-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding:2px 0 20px;border-bottom:1px solid var(--line);margin-bottom:20px}
.ks-shop h1,.ks-shop h2,.ks-shop p,.ks-shop ol,.ks-shop ul{margin:0}
.ks-shop h1{font-family:inherit;font-size:clamp(29px,3.1vw,46px);line-height:1.12;font-weight:800;letter-spacing:-.04em;color:var(--ink);margin:8px 0 0}
.ks-kicker,.ks-edition,.ks-card-meta{font-size:10px;font-weight:700;line-height:1.4;letter-spacing:.11em;text-transform:uppercase}
.ks-kicker{color:var(--accent);display:flex;align-items:center;gap:9px}
.ks-kicker i{height:1px;width:24px;background:var(--accent-line)}.ks-edition{color:var(--dim);letter-spacing:.16em}.ks-edition b{color:var(--accent)}
.ks-layout{display:grid;grid-template-columns:minmax(165px,.8fr) minmax(0,4fr);gap:16px;align-items:start}.ks-side{display:grid;gap:12px;min-width:0}
.ks-box{background:#171716;border:1px solid var(--line);border-radius:8px;padding:15px 12px}.ks-box h2,.ks-box summary,.ks-info h2{font-size:16px;line-height:1.3;font-weight:700;color:var(--ink)}
.ks-box h2,.ks-box summary{padding:0 4px 10px}.ks-box ul{padding:0;list-style:none}.ks-box li a{display:block;color:#d1cbc3;border-radius:4px;padding:9px 10px;font-size:13px}.ks-box li.active a{color:#d5d4fc;background:var(--accent-bg);box-shadow:inset 2px 0 var(--accent-line)}
.ks-guide summary{font-size:14px;cursor:pointer;padding-bottom:0}.ks-guide ol{padding:12px 0 0 21px}.ks-guide li,.ks-guide p{color:var(--dim);font-size:12px;line-height:1.52}.ks-guide li+li{margin-top:7px}.ks-guide li::marker{color:var(--accent)}.ks-guide p{border-top:1px solid var(--line);margin-top:10px;padding:10px 2px 0}.ks-guide code,.ks-guide kbd{font-size:11px;color:var(--accent);background:#171722;padding:1px 3px;overflow-wrap:anywhere}
.ks-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;align-items:stretch}
.ks-card,.ks-detail{background:var(--panel);border:1px solid var(--line);border-radius:7px;overflow:hidden}.ks-card{min-width:0;display:flex;flex-direction:column}
.ks-cover,.ks-figure{display:block;position:relative;background:#261e18;overflow:hidden}.ks-cover img,.ks-figure img{display:block;width:100%;height:auto;aspect-ratio:40/53;object-fit:cover}
.ks-price{position:absolute;right:7px;top:7px;background:#1f7442;color:white;border:1px solid #41845a;border-radius:4px;padding:4px 6px;font-weight:750;font-size:13px;line-height:1.2;white-space:nowrap}.ks-price small{font-size:10px;color:#e5f7e8}
.ks-card-body{padding:9px;display:flex;flex-direction:column;flex:1}.ks-card-meta{color:#c6bbb0;justify-content:space-between;display:flex;flex-wrap:wrap;gap:2px 6px;font-size:9px;letter-spacing:.045em}.ks-card-meta span:last-child{color:var(--accent)}
.ks-card h2{font-size:17px;font-weight:700;line-height:1.22;letter-spacing:-.02em;margin:4px 0 10px;overflow-wrap:anywhere}.ks-card h2 a{color:var(--ink)}.ks-actions{margin-top:auto;display:grid;grid-template-columns:.95fr 1.05fr;gap:5px}
.ks-shop .ks-buy,.ks-shop .ks-more{display:inline-flex;justify-content:center;align-items:center;text-align:center;min-height:34px;padding:6px 2px;border:0;border-radius:4px;font-size:12px;font-weight:700;line-height:1.15;color:#fff;text-decoration:none}.ks-shop .ks-buy{background:#b92e37}.ks-shop .ks-buy:hover{background:#d03a43}.ks-shop .ks-more{background:#373432}.ks-shop .ks-more:hover{background:#4d4844}
.ks-shop .ks-buy:disabled,.ks-shop .ks-buy[aria-disabled=true]{background:#34322f;color:#c1bcb6;pointer-events:none}.ks-shop :focus-visible{outline:2px solid var(--accent-line);outline-offset:-2px}.ks-empty{grid-column:1/-1;padding:28px;border:1px dashed var(--line);border-radius:7px}
.ks-back{display:inline-block;padding:8px 0;margin-bottom:8px;color:var(--accent)}.ks-detail{display:grid;grid-template-columns:minmax(225px,34%) minmax(0,1fr);max-width:960px;margin:auto}.ks-figure{align-self:start}.ks-info{padding:clamp(18px,3vw,40px);min-width:0}.ks-detail-price{font-size:29px;font-weight:800;line-height:1.2;margin:18px 0 3px}.ks-detail-price small{font-size:14px;color:var(--dim)}.ks-inventory{color:var(--dim)}.ks-info .ks-buy{margin:14px 0 20px;min-height:42px;padding:8px 30px}.ks-info h2{padding-top:16px;border-top:1px solid var(--line);margin-bottom:8px}.ks-info .with_code{overflow-wrap:anywhere;line-height:1.55;color:#ddd6cf}.ks-info .with_code a{color:var(--accent)}.ks-info .with_code img{max-width:100%;height:auto}#ks-description,#ks-buy{scroll-margin-top:90px}
@media(max-width:1199px){.ks-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:991px){.ks-layout{display:flex;flex-direction:column}.ks-side,.ks-grid{width:100%}.ks-side{display:flex;align-items:flex-start}.ks-side .ks-box{flex:1}.ks-box ul{display:flex;gap:4px;flex-wrap:wrap}.ks-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.ks-guide{min-width:0}.ks-side:has(.ks-guide){display:block}.ks-side .ks-guide{display:block;margin-top:8px}.ks-guide:not([open]){padding:10px 12px}.ks-guide[open] ol{display:flex;gap:26px}.ks-guide[open] li{flex:1;margin-top:0}}
@media(max-width:620px){.ks-shop{padding:0 10px 22px}.ks-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.ks-heading{margin-bottom:12px;padding-bottom:12px}.ks-edition{display:none}.ks-box{padding:10px}.ks-box h2{font-size:14px;padding-bottom:4px}.ks-box li a{padding:7px;font-size:12px}.ks-detail{display:flex;flex-direction:column}.ks-figure{width:100%;background:#171615}.ks-figure img{width:auto;max-width:100%;height:min(57vh,410px);margin:auto}.ks-card-body{padding:7px}.ks-card h2{font-size:16px}.ks-price{right:5px;top:5px}.ks-shop .ks-buy,.ks-shop .ks-more{font-size:11px;min-height:38px}.ks-guide[open] ol{display:block}.ks-guide[open] li+li{margin-top:5px}.ks-card-meta{font-size:8px}}
@media(max-width:350px){.ks-grid{gap:6px}.ks-card-body{padding:5px}.ks-actions{gap:3px}.ks-shop .ks-more,.ks-shop .ks-buy{font-size:10px}}

.ks-box li a small{display:inline-block;margin-left:5px;color:var(--accent);font-weight:700}.ks-card button:not(:disabled){cursor:pointer}
/* The theme positions its footer mascot outside the last column on small laptops. */
@media(min-width:992px) and (max-width:1199px){.footer #cote{right:0;left:auto;max-width:100%}.footer #cote img{max-width:100%;height:auto}}

#buy_modal .ks-check-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}

.ks-box li a,
.ks-back,
.ks-card {
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.ks-box li a:focus-visible,
.ks-back:focus-visible {
  color: #e2e1ff;
  background: var(--accent-bg);
}

.ks-card:focus-within {
  border-color: var(--accent-line);
  box-shadow: 0 0 14px var(--glow);
}

@media (hover: hover) and (pointer: fine) {
  .ks-box li a:hover,
  .ks-back:hover {
    color: #e2e1ff;
    background: var(--accent-bg);
    box-shadow: inset 2px 0 var(--accent-line), 0 0 12px var(--glow);
  }

  .ks-card:hover {
    border-color: var(--accent-line);
    box-shadow: 0 0 14px var(--glow);
  }

  .ks-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 18px var(--glow);
    opacity: 0;
    transition: opacity .18s ease;
  }

  .ks-card:hover .ks-cover::after { opacity: 1; }
  .ks-card h2 a:hover { color: var(--accent); }
}

@media (prefers-reduced-motion: reduce) {
  .ks-box li a, .ks-back, .ks-card, .ks-cover::after { transition: none; }
}
