/* 스토어 (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; }
/* U234: the store's own colours; no grey text lighter than #6B7684 */
.st-page, .st-hub, .st-disclosure, .breadcrumb { --muted: #6B7684; --store: #7A5C00; --store-pale: #FFF8C2; }

/* ① 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(--store-pale); color: var(--store); border-color: var(--store-pale); font-weight: 700; }     /* U234: only the first pill is in the store's colour */

/* ---------------------------------------------------------------- main page */
/* U234: the field hubs' head band in the store's colour (planning/design/store_v1/Main), the group tabs on its lower edge */
.st-hub { --bd: var(--line); }
.st-head { background: var(--store-pale); border-bottom: 1px solid #F1E39B; }
.st-hub .st-head .ds-in { padding-bottom: 0; }
.st-lab { background: var(--store); }
.st-head .ds-lead { max-width: 720px; padding-bottom: 20px; }
.st-gtabs { display: none; gap: 6px; overflow-x: auto; margin-top: -4px; }
.js .st-gtabs { display: flex; }
.st-gtab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; min-height: 48px; padding: 0 18px; border: 0; border-radius: 12px 12px 0 0; background: transparent; font-family: inherit;
           font-size: 15.5px; font-weight: 800; color: #5C4600; white-space: nowrap; cursor: pointer; }
.st-gtab small { font-size: 13px; font-weight: 700; color: var(--store); }
.st-gtab:hover { background: rgba(255, 255, 255, 0.55); }
.st-gtab[aria-selected="true"] { background: var(--bg); color: var(--navy-deep); }
.st-gtab[aria-selected="true"] small { color: var(--muted); }
.st-gtab:focus-visible { outline: 2px solid var(--navy); outline-offset: -3px; }
.st-hub .st-hubmain { max-width: 1120px; padding-top: 16px; padding-bottom: 56px; }     /* the head band's column, so their left edges line up */

/* 상황별 추천 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(--store-pale); border-color: var(--store); color: var(--ink); }
.st-sitcard[aria-pressed="true"] .st-sitcard__kicker { color: var(--store); }

/* U234: the filter rows (학년, 종류) above the list; the chosen chip in the store's colour. A row that does not fit scrolls sideways inside itself */
.st-filter { display: none; flex-direction: column; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.js .st-filter { display: flex; }
.js .st-filter[hidden], .st-sit[hidden] { display: none !important; }
.st-frow { display: flex; align-items: center; gap: 12px; min-width: 0; }
.st-frow__label { flex: 0 0 34px; font-size: 13px; font-weight: 800; color: var(--muted); }
.st-frow__chips { flex: 1 1 auto; min-width: 0; display: flex; gap: 6px; overflow-x: auto; padding: 3px 2px; scrollbar-width: thin; }
.st-fchip { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 48px; 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; white-space: nowrap; cursor: pointer; }
.st-fchip:hover { text-decoration: none; background: var(--bg-2); color: var(--ink-2); }
.st-fchip[aria-pressed="true"] { background: var(--store-pale, #FFF8C2); border-color: var(--store, #7A5C00); color: var(--store, #7A5C00); }
.st-fchip:focus-visible { outline: 2px solid var(--navy); outline-offset: -3px; }
.st-list { margin-top: 18px; 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; }
/* U234: the bottom line: what was compared (or how many shops) on the left, the price on the right */
.st-pcard__foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line); }
.st-pcard__price { margin-left: auto; font-size: 15px; font-weight: 800; color: var(--navy-deep); }
.st-pcard__shops { font-size: 12.5px; line-height: 1.5; color: var(--muted); }

/* 이렇게 골랐습니다 */
.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(--store); }
.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(--bg);
          border: 1px solid var(--line-2); color: var(--ink); font-size: 16px; font-weight: 800; }     /* U234: outline; the one filled navy button is 「쿠팡에서 보기」 */
.st-cta:hover { border-color: var(--navy); color: var(--ink); 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-sell .st-buy:not([data-main]):not(.is-off) { background: var(--bg); color: var(--navy-deep); }     /* U234: one filled button on a page; the other rows are outlined */
.st-sell .st-buy:not([data-main]):not(.is-off):hover { background: var(--tint); }
.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__foot { margin-top: 0; padding-top: 0; border-top: 0; justify-content: flex-start; }
  .st-pgrid--others .st-pcard__price { margin-left: 0; }
  .st-pgrid--others .st-pcard__body { padding: 10px 12px; gap: 2px; justify-content: center; }
}
/* 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-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%; }
}
/* U214: the plain block between the last card list and the store slot: a thin divider and air (the slot is a grey box; it must not read as one more product) */
.st-adbreak { margin: 0; padding: 24px 0 8px; }
.st-adrule { border: 0; border-top: 1px solid #E5E8EB; margin: 0; }
/* U234: a study item that is not a book (kind or group `goods`; none yet): 「이런 학생에게」 and the table of checked specs */
.st-forwho { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: var(--store-pale); }
.st-forwho__title { font-size: 13px; font-weight: 800; color: var(--store); }
.st-forwho p { margin: 4px 0 0; font-size: 15px; line-height: 1.65; }
.st-specs { margin-top: 18px; }
.st-specs__title { margin: 0 0 4px; font-size: 16px; font-weight: 800; color: var(--navy-deep); }
.st-specs dl { margin: 0; }
.st-specs__row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.st-specs__row dt { font-weight: 700; color: var(--ink-2); }
.st-specs__row dd { margin: 0; overflow-wrap: anywhere; }
.st-specs__row small { display: block; font-size: 12.5px; color: var(--muted); }
.st-specs__none { color: var(--muted); }
.st-specs__note { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
