/* 스토어 per-shop price table (G017; G049: facts only, nothing is compared; design A: planning/store/design_preview/price_compare/). Loaded after
   store.css, only while site.store_price_compare is on. Nothing here is fixed or sticky (Coupang's operating policy; the build fails on such a
   rule), no layer covers content, and the table is plain markup: without the script every item's box and table show in order and the item
   buttons stay hidden (CSS keys on the `js` class). docs/store.md §11d. */

/* top: cover | title block | price box */
.st-top--pc { display: grid; grid-template-columns: 300px minmax(0, 1fr) 340px; gap: 36px; align-items: start; }
.st-top--pc .st-coverbox, .st-top--pc .st-top__panel { flex: none; width: 100%; max-width: 300px; }
.st-top--pc .st-top__info { min-width: 0; }

.st-itempick { display: none; margin-top: 14px; flex-direction: column; gap: 6px; }
.js .st-itempick { display: flex; }
.st-itempick__label { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.st-itempick__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.st-itempick .st-fchip { min-height: 44px; padding: 0 18px; font-size: 14.5px; }     /* U234: the item choice is a row of chips in the store's colour */

.st-pcmeta { margin: 14px 0 0; display: grid; grid-template-columns: 90px minmax(0, 1fr); row-gap: 8px; font-size: 15px; }
.st-pcmeta dt { color: var(--ink-2); }
.st-pcmeta .st-pcmeta__item { grid-column: 1 / -1; font-weight: 700; color: var(--ink); }
.st-pcmeta dd { margin: 0; }
.st-pcmeta[hidden], .st-pcbox__item[hidden], .st-pctable[hidden] { display: none; }
.st-pcmeta__src { color: var(--muted); font-size: 13px; }

.st-pcbox { border: 2px solid var(--navy-deep); border-radius: 16px; padding: 22px; background: var(--bg); }
.st-pcbox__item + .st-pcbox__item { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.st-pcbox__item { display: flex; flex-direction: column; gap: 10px; }
.st-pcbox__label { font-size: 14px; font-weight: 700; color: var(--navy); }
.st-pcbox__big { font-size: 36px; line-height: 1.1; font-weight: 800; letter-spacing: -1px; color: var(--navy-deep); }
.st-pcbox__line { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.st-pcbox__go { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 52px; border-radius: 10px; background: var(--navy-deep);
                color: var(--ink-inv); font-size: 16px; font-weight: 800; text-align: center; }
.st-pcbox__go:hover { background: var(--navy); color: var(--ink-inv); text-decoration: none; }
.st-pcbox__more { display: flex; align-items: center; justify-content: center; min-height: 44px; color: var(--ink-2); font-size: 13.5px; text-decoration: underline; text-align: center; }
.st-pcbox__more:hover { color: var(--ink); }

/* the table */
.st-pchead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.st-pctable { margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.st-pctable__item { margin: 0; padding: 12px 18px 0; }
.st-pcasof { margin: 0; padding: 12px 18px; font-size: 14px; color: var(--ink-2); }
.st-phead, .st-prow { display: grid; grid-template-columns: minmax(130px, 1.3fr) repeat(3, minmax(0, 1fr)) minmax(150px, 1.3fr); align-items: center; }
.st-phead { background: var(--bg-2); font-size: 14px; font-weight: 700; color: var(--ink-2); }
.st-phead span { padding: 12px; text-align: right; }
.st-phead span:first-child { padding-left: 18px; text-align: left; }
.st-prows { list-style: none; margin: 0; padding: 0; }
.st-prow { border-top: 1px solid var(--line); background: var(--bg); }
.st-pctable > .st-phead + .st-prows .st-prow:first-child { border-top: 1px solid var(--line); }
.st-prow__shop { padding: 16px 12px 16px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 17px; }
.st-prow__note { display: block; font-size: 12.5px; color: var(--ink-2); }
.st-prow__cell { padding: 16px 12px; text-align: right; font-size: 16px; }
.st-prow__check { grid-column: 2 / 5; padding: 16px 12px; text-align: right; color: var(--ink-2); font-size: 15px; }
.st-prow__go { padding: 10px 18px 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.st-prow__go a { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; border-radius: 8px; font-size: 15px; font-weight: 700;
                 border: 1px solid var(--navy-deep); color: var(--navy-deep); background: var(--bg); text-align: center; }
.st-prow__go a:hover { background: var(--tint); text-decoration: none; }
.st-prow__go .st-sell__note { text-align: center; }

.st-pcnotes { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }

/* tablet and phone: the box moves under the title block; table rows become cards (the shop, its three facts under it, then 쿠팡's full-width button) */
@media (max-width: 1000px) {
  .st-top--pc { grid-template-columns: 240px minmax(0, 1fr); gap: 24px; }
  .st-pcbox { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .st-top--pc { grid-template-columns: minmax(0, 1fr); }
  .st-top--pc .st-coverbox, .st-top--pc .st-top__panel { max-width: 240px; }
  .st-pcbox__big { font-size: 32px; }
  .st-phead { display: none; }
  .st-prow { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; padding: 14px 16px; row-gap: 8px; column-gap: 8px; }
  .st-prow__shop { grid-column: 1 / -1; grid-row: 1; padding: 0; font-size: 17px; }
  .st-prow__cell { grid-row: 2; padding: 0; text-align: left; font-size: 14.5px; }
  .st-prow__cell::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
  .st-prow__check { grid-column: 1 / -1; grid-row: 2; padding: 0; text-align: left; }
  .st-prow__go { grid-column: 1 / -1; grid-row: 3; padding: 0; }
  .st-prow__go a { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .st-pcbox__go, .st-prow__go a { transition: none; } }
/* G023: the phone's section tab row scrolls sideways; room after the last tab so it does not look cut off at the edge */
.st-tabs { padding-right: 16px; }
