/* 스토어 (G001, look G004: planning/store/design_preview/). Loaded after site.css on /store/ pages only; the colours are site.css
   tokens, no web fonts, no images, and the corner radii (8-12px, pills) follow the approved preview rather than the 0-4px of the rest
   of the site. Nothing here is fixed or sticky: Coupang's operating policy bans floating banners (the preview's bottom buy bar is
   dropped), and the build fails when this file has such a rule. The one script (store.js, main page only) filters the cards.
   docs/store.md §4-§7. */

.st-page { max-width: 1080px; margin: 0 auto; }

/* ① the disclosure: the first block of <main>, larger than the body text and on a highlighter-pale ground */
.st-disclosure { margin: 0 auto 14px; max-width: 1080px; }
.st-disclosure p { margin: 0; font-size: 1em; font-weight: 400; line-height: 1.6; color: var(--navy); }   /* G007: a slim line (no box), body size, the accent colour */
.st-disclosure-foot { margin: 8px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); }   /* the same sentence again, small and grey, next to ③ */

/* ③ and the closing notes */
.st-notseller { margin: 16px 0 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.7; }

/* sections */
.st-sec { margin-top: 40px; }
.st-h2 { margin: 0 0 16px; font-size: 22px; font-weight: 800; color: var(--navy-deep); }
.st-h2--plain { margin: 0; font-size: 20px; }
.st-h3 { margin: 0 0 6px; font-size: 15px; font-weight: 800; }
.st-lead { font-size: 18px; font-weight: 700; color: var(--navy-deep); margin: 0 0 10px; }

/* pills */
.st-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.st-pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
           border: 1px solid var(--line-2); color: var(--ink-2); background: var(--bg); }
.st-pill--grade { background: var(--navy-pale); color: var(--navy); border-color: var(--navy-pale); font-weight: 700; }
.st-pill--pick { background: var(--navy-deep); color: var(--ink-inv); border-color: var(--navy-deep); font-weight: 700; }

/* ---------------------------------------------------------------- main page */
.st-hero { background: var(--navy-deep); color: var(--ink-inv); border-radius: 12px; padding: 40px 36px 36px; }
.st-hero__kicker { font-size: 14px; font-weight: 700; color: var(--hl); }
.st-hero h1 { margin: 6px 0 0; font-size: 34px; line-height: 1.3; font-weight: 800; color: var(--ink-inv); }
.st-hero p { margin: 10px 0 0; max-width: 620px; font-size: 17px; line-height: 1.7; color: var(--ink-inv-2); }

/* 상황별 추천 cards */
.st-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.st-card { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.st-card__title { margin: 0 0 6px; font-size: 16px; font-weight: 800; color: var(--navy-deep); }
.st-card__list { list-style: none; margin: 0; padding: 0; }
.st-card__list a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-height: 44px; padding: 8px 0; border-top: 1px solid var(--line);
                   color: var(--ink); font-weight: 700; }
.st-card__list li:first-child a { border-top: 0; }
.st-card__list small { font-size: 12.5px; color: var(--muted); font-weight: 400; }

/* 상황별 추천 toggle cards (G010; script only: this section and the panel are hidden without it, every series shows in the one grid) */
.st-sit { display: none; }
.js .st-sit { display: block; }
.st-sits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.st-sitcard { width: 100%; min-height: 84px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 14px 16px; border-radius: 12px;
              border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); text-align: left; font-family: inherit; cursor: pointer; }
.st-sitcard:hover { border-color: var(--navy); }
.st-sitcard__kicker { font-size: 13px; font-weight: 700; color: var(--navy); }
.st-sitcard__title { font-size: 17px; font-weight: 800; line-height: 1.35; }
.st-sitcard[aria-pressed="true"] { background: var(--navy-deep); border-color: var(--navy-deep); color: var(--ink-inv); }
.st-sitcard[aria-pressed="true"] .st-sitcard__kicker { color: var(--hl); }

/* filter chips + list */
.st-body { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.st-filter { display: none; flex: 1 1 200px; max-width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.st-filter__group + .st-filter__group { margin-top: 16px; }
.st-filter__label { font-size: 14px; font-weight: 800; color: var(--navy-deep); }
.st-filter__chips { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.st-fchip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
            border: 1.5px solid var(--line-2); background: var(--bg); color: var(--ink-2); font-family: inherit; cursor: pointer; }
.st-fchip:hover { text-decoration: none; background: var(--bg-2); color: var(--ink-2); }
.st-fchip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--ink-inv); }
.js .st-filter { display: block; }
.st-list { flex: 999 1 560px; min-width: 0; }
.st-pitem[hidden] { display: none; }
.st-list .st-pgrid { margin-top: 14px; }
.st-list__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.st-count { font-size: 14px; color: var(--ink-2); }
.st-empty { margin-top: 14px; padding: 28px; background: var(--bg); border: 1px dashed var(--line-2); border-radius: 12px; text-align: center; color: var(--ink-2); }

/* series cards (no cover image: a title block stands in) */
.st-pgrid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.st-pitem { display: flex; }
.st-pcard { display: flex; flex-direction: column; width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
            color: inherit; text-decoration: none; }
.st-pcard:hover { border-color: var(--navy); text-decoration: none; color: inherit; }
.st-pcard__panel { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 140px; padding: 16px; text-align: center;
                   background: var(--tint); border-bottom: 1px solid var(--line); }
.st-pcard__ppub { font-size: 13px; font-weight: 700; color: var(--navy); }
.st-pcard__ptitle { font-size: 18px; line-height: 1.35; font-weight: 800; color: var(--navy-deep); overflow-wrap: anywhere; }
.st-pcard__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 16px; flex-grow: 1; }
.st-pcard__title { font-size: 16px; font-weight: 800; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
.st-pcard__pub { font-size: 13px; color: var(--ink-2); }
.st-pcard__summary { font-size: 14px; color: var(--ink); flex-grow: 1; }
.st-pcard__price { margin-top: 4px; font-size: 15px; font-weight: 800; color: var(--navy-deep); }
.st-pcard__shops { font-size: 12px; color: var(--ink-2); }

/* 이렇게 골랐습니다 */
.st-chosen { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.st-chosen .st-h2 { margin: 0; font-size: 18px; }
.st-chosen__cols { margin-top: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; font-size: 14px; color: var(--ink); }
.st-chosen__cols b { color: var(--navy); }

/* ---------------------------------------------------------------- product page */
/* 쿠팡's product image as the cover (G007), hotlinked: the preview's 3:4 tile, the square image centred and never cropped */
.st-cover { display: block; aspect-ratio: 3 / 4; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.st-cover img { display: block; width: 100%; height: 100%; object-fit: contain; }
.st-cover--card { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.st-coverbox { flex: 0 1 320px; max-width: 100%; display: flex; flex-direction: column; gap: 8px; }
.st-coverbox__cap { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.st-thumbs { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.st-thumb { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 64px; min-height: 44px; padding: 0; border: 0; background: none; font-family: inherit; cursor: pointer; }
.st-cover--thumb { width: 64px; border-radius: 8px; border-width: 2px; }
.st-thumb[aria-pressed="true"] .st-cover--thumb { border-color: var(--navy); }
.st-thumb__label { font-size: 11.5px; line-height: 1.3; color: var(--ink-2); text-align: center; overflow-wrap: anywhere; }
.st-thumb[aria-pressed="true"] .st-thumb__label { color: var(--navy); font-weight: 700; }
.st-cover--row { flex: 0 0 56px; width: 56px; border-radius: 8px; }
.st-top { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 36px; align-items: flex-start; }
.st-top__panel { flex: 1 1 320px; max-width: 420px; aspect-ratio: 3 / 4; display: flex; flex-direction: column; align-items: center; justify-content: center;
                 gap: 10px; padding: 24px; text-align: center; background: var(--tint); border: 1px solid var(--line); border-radius: 12px; }
.st-top__ppub { font-size: 15px; font-weight: 700; color: var(--navy); }
.st-top__ptitle { font-size: 28px; line-height: 1.35; font-weight: 800; color: var(--navy-deep); overflow-wrap: anywhere; }
.st-top__info { flex: 999 1 460px; min-width: 0; }
.st-top__h1 { margin: 10px 0 0; font-size: 30px; line-height: 1.3; font-weight: 800; letter-spacing: -0.6px; color: var(--navy-deep); }
.st-top__meta { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.st-pricebox { margin-top: 18px; padding: 16px 18px; border-radius: 12px; background: var(--bg-2); }
.st-pricebox__label { font-size: 13px; color: var(--ink-2); }
.st-pricebox__big { font-size: 28px; font-weight: 800; color: var(--navy-deep); }
.st-pricebox__note { font-size: 13px; color: var(--ink-2); }
.st-cta { margin-top: 14px; display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 10px; background: var(--navy-deep);
          color: var(--ink-inv); font-size: 16px; font-weight: 800; }
.st-cta:hover { background: var(--navy); color: var(--ink-inv); text-decoration: none; }
.st-fits { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.st-fits__title { font-size: 15px; font-weight: 800; color: var(--navy-deep); }
.st-fits p { margin: 6px 0 0; font-size: 15px; }

/* section tabs: plain anchors, not sticky */
.st-tabs { margin-top: 36px; display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.st-tabs a { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 44px; padding: 0 16px; font-size: 15px; font-weight: 700; color: var(--ink-2);
             border-bottom: 2px solid transparent; margin-bottom: -1px; }
.st-tabs a:hover { color: var(--navy); border-bottom-color: var(--navy); text-decoration: none; }

/* 추천 이유 */
.st-basis { margin: 12px 0 0; font-size: 13.5px; color: var(--muted); }
.st-two { margin-top: 16px; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.st-good, .st-weak { padding: 14px 16px; border-radius: 10px; font-size: 14px; }
.st-good { background: var(--tint); }
.st-good .st-h3 { color: var(--navy); }
.st-weak { background: var(--bg-2); }
.st-weak .st-h3 { color: var(--ink-2); }
.st-list2 { margin: 0; padding-left: 18px; }
.st-list2 li { margin: 4px 0; }

/* 함께 풀 무료 자료: cards in a 3-column grid */
.st-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.st-links a { display: flex; flex-direction: column; gap: 2px; min-height: 44px; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px;
              color: var(--ink); background: var(--bg); }
.st-links a:hover { border-color: var(--navy); text-decoration: none; color: var(--ink); }
.st-links__kind { font-size: 12px; font-weight: 700; color: var(--navy); }
.st-links__title { font-size: 15px; font-weight: 700; }

/* 판매처 */
.st-sell__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.st-sell__headnote { font-size: 13px; color: var(--ink-2); }
.st-sells { list-style: none; margin: 12px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.st-sell { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 14px 16px; }
.st-sell + .st-sell { border-top: 1px solid var(--line); }
.st-sell__info { flex: 1 1 200px; min-width: 0; }
.st-sell__label { font-size: 16px; color: var(--ink); }
.st-sell__edition { font-size: 13.5px; color: var(--muted); }
.st-sell__isbn { margin-top: 2px; font-size: 12px; color: var(--muted); }
.st-sell__price { flex: 1 1 170px; font-size: 14.5px; color: var(--navy-deep); font-weight: 700; }
.st-sell__buy { flex: 0 1 230px; display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.st-sell__note { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.st-buy { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 10px; font-size: 15.5px; font-weight: 800;
          background: var(--navy-deep); color: var(--ink-inv); border: 1px solid var(--navy-deep); }
.st-buy:hover { background: var(--navy); color: var(--ink-inv); text-decoration: none; }
.st-buy.is-off { background: var(--bg); color: var(--muted); border-color: var(--line-3); cursor: default; }

/* FAQ */
.st-faq { display: flex; flex-direction: column; gap: 8px; }
.st-faq__item { border: 1px solid var(--line); border-radius: 10px; }
.st-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 16px; cursor: pointer;
                        font-size: 15px; font-weight: 700; color: var(--ink); list-style: none; }
.st-faq__item summary::-webkit-details-marker { display: none; }
.st-faq__item summary::after { content: "+"; font-size: 20px; color: var(--ink-2); }
.st-faq__item[open] summary::after { content: "\2212"; }
.st-faq__item div { padding: 0 16px 14px; font-size: 14px; color: var(--ink-2); }

/* 「같은 종류의 다른 책」 on a phone (G009): compact rows (a 72 x 96 cover, title, publisher, 정가) instead of full cards; the same markup as the cards */
@media (max-width: 600px) {
  .st-pgrid--others { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .st-pgrid--others .st-pcard { flex-direction: row; align-items: stretch; min-height: 96px; }
  .st-pgrid--others .st-cover { flex: 0 0 72px; width: 72px; align-self: flex-start; }
  .st-pgrid--others .st-cover--card { border-bottom: 0; border-right: 1px solid var(--line); }
  .st-pgrid--others .st-pcard__panel { flex: 0 0 72px; min-height: 96px; padding: 6px; border-bottom: 0; border-right: 1px solid var(--line); }
  .st-pgrid--others .st-pcard__ptitle { font-size: 12px; }
  .st-pgrid--others .st-pcard__ppub { font-size: 10.5px; }
  .st-pgrid--others .st-pills, .st-pgrid--others .st-pcard__summary, .st-pgrid--others .st-pcard__shops { display: none; }
  .st-pgrid--others .st-pcard__body { padding: 10px 12px; gap: 2px; justify-content: center; }
  .st-pgrid--others .st-pcard__price { margin-top: 2px; }
}
/* the list on a phone (G010): two situation cards per row; the grid is 2 columns, or 1 when a card would be narrower than 160 px (the preview's mobile) */
@media (max-width: 600px) {
  .st-sits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .st-sitcard { padding: 12px 12px; min-height: 76px; }
  .st-sitcard__title { font-size: 15px; }
  .st-list .st-pgrid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .st-sell .st-cover--row { flex-basis: 48px; width: 48px; }
}
@media (max-width: 860px) {
  .st-pgrid, .st-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-chosen__cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .st-pgrid, .st-links, .st-two { grid-template-columns: minmax(0, 1fr); }
  .st-hero { padding: 28px 20px 24px; }
  .st-hero h1 { font-size: 28px; }
  .st-top { gap: 20px; }
  .st-top__panel { aspect-ratio: auto; min-height: 150px; max-width: none; flex-basis: 100%; }
  .st-coverbox { flex-basis: 100%; }
  .st-top__ptitle { font-size: 22px; }
  .st-top__h1 { font-size: 26px; }
  .st-buy { width: 100%; }
  .st-sell__buy { flex-basis: 100%; }
  .st-filter { flex-basis: 100%; }
}
