/* Hakillo Store + ESA page (kids site). Uses site.css variables. */
nav.courses a.shop { background: #b9e0b0; box-shadow: 0 2px 0 var(--ink); }
nav.courses a.shop:hover { background: #a3d698; }
nav.courses a.shop[aria-current="page"] { background: var(--ink); color: #fff; }
nav.courses a.lrn { background: #e3efff; box-shadow: 0 2px 0 var(--ink); }
nav.courses a.lrn:hover { background: #cfe2ff; }
footer a { color: #ffd166; }
.st { max-width: 1240px; margin: 0 auto; padding: 14px 16px 24px; }
.st h1 { font-size: 1.8rem; margin: 6px 0 4px; }
.st .lead { margin: 0 0 14px; color: var(--soft); max-width: 760px; }
.small2 { font-size: .82rem; color: var(--muted); }

/* layout: filters on the left, results on the right */
.sl { display: grid; grid-template-columns: 250px 1fr; gap: 18px; align-items: start; }
.flt { background: #fff; border: 3px solid var(--ink); border-radius: 16px; padding: 4px 12px 12px; position: sticky; top: 76px;
       max-height: calc(100vh - 90px); overflow: auto; }
.flt summary { font-weight: 900; font-size: 1.05rem; padding: 8px 0; cursor: pointer; list-style: none; }
.flt summary::-webkit-details-marker { display: none; }
.fs { border-top: 2px dashed #e5d6c3; padding: 8px 0 6px; }
.fs h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 4px; color: var(--soft); }
.fs input[type=search] { width: 100%; box-sizing: border-box; font: inherit; padding: 7px 9px; border: 2px solid var(--ink); border-radius: 10px; }
.fb { display: flex; align-items: center; gap: 7px; padding: 3px 0; cursor: pointer; font-size: .93rem; }
.fb input { width: 17px; height: 17px; accent-color: var(--ink); flex: none; }
.fb span { flex: 1; } .fb i { font-style: normal; font-size: .78rem; color: var(--muted); }
.fb.dis { opacity: .45; }
.gg { display: grid; grid-template-columns: 1fr 1fr 1fr; column-gap: 6px; }
.gg .fb i { display: none; }
.fa { display: flex; align-items: center; gap: 12px; padding-top: 8px; }
.fa button, .so button { font: inherit; font-weight: 900; padding: 6px 16px; border: 3px solid var(--ink); border-radius: 12px; background: #ffd166; cursor: pointer; }
.fa a { font-weight: 800; color: var(--soft); }
.js .fa button { display: none; }

.rh { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.rh p { margin: 0; font-size: 1.05rem; }
.so select { font: inherit; padding: 5px 8px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; margin-left: 4px; }
.so label { font-weight: 800; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.pill { font-size: .85rem; font-weight: 800; text-decoration: none; color: var(--ink); background: #fff3bf; border: 2px solid var(--ink); border-radius: 999px; padding: 2px 10px; }
.pill.clr { background: #fff; }

.grid { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.grid.sm { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.pc { background: #fff; border: 3px solid var(--ink); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.pc a { color: var(--ink); text-decoration: none; display: block; }
.pc img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; border-bottom: 3px solid var(--ink); background: #f4ead9; }
.pc .pt { display: block; font-weight: 900; padding: 8px 10px 2px; line-height: 1.25; }
.pc a:hover .pt { text-decoration: underline; }
.chs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px 10px; align-items: flex-start; }
.tg { flex: none; white-space: nowrap; font-size: .72rem; font-weight: 800; line-height: 1.5; border-radius: 999px; padding: 1px 8px; background: var(--grey-bg); }
.tg.t { background: #e3efff; } .tg.fw { background: var(--ok-bg); }
.pp { padding: 2px 10px 10px; margin-top: auto; } .pp b { font-size: 1.1rem; } .pp span { font-size: .85rem; color: var(--muted); }
.none { font-weight: 800; color: var(--soft); padding: 30px 0; }
.pg { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 8px 0 14px; }
.pg a, .pg b { min-width: 34px; text-align: center; padding: 4px 8px; border: 2px solid var(--ink); border-radius: 10px; text-decoration: none; color: var(--ink); background: #fff; font-weight: 800; }
.pg b { background: var(--ink); color: #fff; }
.how { font-size: .85rem; color: var(--soft); background: #fff; border: 2px dashed #d9c6ae; border-radius: 12px; padding: 8px 12px; margin-top: 14px; }

/* product page */
.crumb { font-size: .88rem; margin: 4px 0 10px; } .crumb a { color: var(--soft); font-weight: 800; }
.pd { display: grid; grid-template-columns: minmax(240px, 420px) 1fr; gap: 22px; align-items: start; }
.pi img { width: 100%; height: auto; border: 3px solid var(--ink); border-radius: 16px; display: block; background: #f4ead9; }
.pm h1 { margin-top: 0; } .pm .lt { color: var(--soft); margin: 0 0 6px; }
.pm .chs { padding: 0; margin-bottom: 10px; }
.buy { background: #fff; border: 3px solid var(--ink); border-radius: 16px; padding: 12px 14px; margin: 8px 0 12px; }
.buy .price { font-size: 1.7rem; font-weight: 900; margin: 0 0 6px; }
.buy button { font: inherit; font-weight: 900; font-size: 1.05rem; padding: 9px 22px; border: 3px solid var(--ink); border-radius: 14px; background: #e63946; color: #fff; cursor: pointer; }
.buy button:disabled { background: var(--grey-bg); color: var(--grey); cursor: default; }
.buy .soon { margin: 8px 0 0; font-size: .9rem; color: var(--soft); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; }
.facts dt { font-weight: 800; color: var(--soft); } .facts dd { margin: 0; }
.pdesc { max-width: 860px; } .pdesc h2 { margin: 20px 0 6px; }
.codes code { display: inline-block; font-size: .82rem; background: #fff; border: 1.5px solid #d9c6ae; border-radius: 6px; padding: 0 5px; margin: 2px 2px 2px 0; }

/* ESA page */
.esa { max-width: 960px; }
.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 8px 0 18px; }
.cards3 > div { background: #fff; border: 3px solid var(--ink); border-radius: 16px; padding: 10px 14px; }
.cards3 h2 { font-size: 1.15rem; margin: 2px 0 4px; } .cards3 p { margin: 0; }
.pass { font-size: 1.05rem; background: #fff3bf; border: 3px solid var(--ink); border-radius: 14px; padding: 10px 14px; }
.steps li { margin: 4px 0; } .note { background: #e3efff; border-radius: 12px; padding: 8px 12px; }
table.sq { border-collapse: collapse; width: 100%; background: #fff; margin: 4px 0 10px; }
table.sq th, table.sq td { border: 2px solid #e5d6c3; padding: 5px 8px; text-align: left; vertical-align: top; font-size: .93rem; }
table.sq th { background: var(--tan-bg); }

@media (max-width: 760px) {
  .sl { grid-template-columns: 1fr; }
  .flt { position: static; max-height: none; }
  .flt details:not([open]) .fs, .flt details:not([open]) .fa { display: none; }
  .pd { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .pc .pt { font-size: .92rem; }
  nav.courses a span { display: none; }
}
.hint { font-size: .78rem; color: var(--muted); margin: 4px 0 0; line-height: 1.3; }
/* shop by category (store home) */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 0 0 16px; }
.cats a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 10px 8px;
          background: #fff; border: 3px solid var(--ink); border-radius: 16px; color: var(--ink); text-decoration: none; }
.cats a:hover { background: #fff3bf; }
.cats i { font-style: normal; font-size: 1.6rem; line-height: 1; } .cats b { font-size: .92rem; line-height: 1.2; }
.cats small { color: var(--muted); font-size: .78rem; }
@media (max-width: 980px) { .cats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .cats { gap: 6px; } .cats a { padding: 7px 4px; } .cats b { font-size: .8rem; } }
