/* 상점 화면. 기준: Olive Young Global 실측(2026-11-02)
   본문 16px #131518, 보조 #50585f/#757d86/#99a1a8, 콘텐츠 폭 1200, 상품 카드 5열 220px·정사각 이미지(모서리 없음),
   브랜드 14/700, 상품명 14/400 두 줄, 정가 13 취소선, 판매가 16/700, 상세 브랜드 24/700·상품명 18/400·가격 24/700 */
body:not(.console) {
  --ink: #131518; --text: #131518; --sub: #50585f; --weak: #757d86; --faint: #99a1a8;
  --line: #e5e8eb; --line-soft: #eef0f2; --line-strong: #cfd3d7; --bg: #f5f6f7; --subtle: #f5f6f7;
  --r: 4px; --r-sm: 4px; --r-lg: 6px;
  background: #fff; color: var(--ink); font-size: 16px; min-height: 100vh; display: flex; flex-direction: column;
}
#view { flex: 1 0 auto; padding-bottom: 80px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
body:not(.console) .btn { border-radius: 4px; font-size: 15px; }
body:not(.console) .btn.dark { background: var(--ink); border-color: var(--ink); }
body:not(.console) .btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
body:not(.console) .btn.primary:hover, body:not(.console) .btn.dark:hover { background: #2b2e33; }
body:not(.console) .btn.out { background: #fff; border: 1px solid var(--ink); color: var(--ink); }
body:not(.console) .btn.out:hover { background: #f5f6f7; }
body:not(.console) .btn.lg { height: 52px; border-radius: 4px; font-size: 16px; }
body:not(.console) input[type=text], body:not(.console) input[type=email], body:not(.console) input[type=password], body:not(.console) input[type=tel],
body:not(.console) input[type=number], body:not(.console) input[type=search], body:not(.console) select, body:not(.console) textarea { border-radius: 4px; border-color: #cfd3d7; height: 44px; }
body:not(.console) textarea { height: auto; }
body:not(.console) .field > label { font-size: 14px; font-weight: 600; color: var(--ink); }

/* 머리 */
.promo { background: #131518; color: #fff; font-size: 13px; font-weight: 600; text-align: center; padding: 10px 16px; }
.promo a { text-decoration: underline; text-underline-offset: 3px; }
.top { position: sticky; top: 0; z-index: 20; background: #fff; }
.top-in { height: 84px; display: flex; align-items: center; gap: 40px; }
.top-logo .logo { font-size: 24px; letter-spacing: -.04em; }
.top-logo .logo svg { width: 32px; height: 32px; }
.top-search { position: relative; flex: 0 1 420px; }
.top-search input { height: 40px; border: 1px solid #cfd3d7; border-radius: 2px; padding: 0 44px 0 14px; font-size: 14px; background: #fff; }
.top-search input:focus { border-color: var(--ink); box-shadow: none; }
.top-search button { position: absolute; right: 4px; top: 4px; width: 32px; height: 32px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.top-tools { margin-left: auto; display: flex; gap: 8px; }
.tool { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; color: var(--ink); }
.tool .dot-badge { top: 0; right: -2px; background: var(--brand); }
.gnb { display: flex; justify-content: space-between; align-items: center; height: 48px; }
.gnb nav { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; }
.gnb nav::-webkit-scrollbar { display: none; }
.gnb a { font-size: 16px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.gnb a:hover, .gnb a.on { color: var(--brand-ink); }
.gnb-r a { font-weight: 600; }
.util { background: #f5f6f7; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.util-in { height: 40px; display: flex; align-items: center; gap: 28px; font-size: 13px; color: var(--sub); }
.util-in span { display: inline-flex; align-items: center; gap: 6px; }

/* 첫 화면 */
.hero { position: relative; display: flex; align-items: center; margin-top: 24px; height: 400px; overflow: hidden; background: #eeebe7; color: var(--ink); }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-in { position: relative; padding: 0 56px; max-width: 560px; }
.hero-date { font-size: 14px; font-weight: 700; }
.hero h1 { font-size: 36px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; margin-top: 10px; }
.hero p { font-size: 16px; margin: 10px 0 0; color: var(--sub); }
.sec { margin-top: 64px; }
.sec-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.sec-head h2 { font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.sec-head a { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; color: var(--sub); }
.sec-head a:hover { color: var(--ink); }
.page-title { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin: 40px 0 20px; }
.cats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 24px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.cats::-webkit-scrollbar { display: none; }
.cats button { height: 36px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 18px; background: #fff; font-size: 14px; font-weight: 600; color: var(--sub); cursor: pointer; white-space: nowrap; }
.cats button.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* 상품 카드 */
.grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px 24px; }
.card { display: flex; flex-direction: column; color: inherit; min-width: 0; }
.card-img { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--subtle); margin-bottom: 12px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .card-name { text-decoration: underline; }
.card-rank { position: absolute; left: 0; top: 0; min-width: 26px; height: 26px; padding: 0 6px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; display: grid; place-items: center; }
.card-tag { position: absolute; left: 0; top: 0; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 0 6px; line-height: 22px; }
.card-brand { font-size: 14px; font-weight: 700; line-height: 20px; }
.card-name { font-size: 14px; line-height: 20px; color: var(--ink); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-list { font-size: 13px; line-height: 18px; color: var(--faint); text-decoration: line-through; margin-top: 8px; }
.price { display: flex; align-items: baseline; gap: 6px; line-height: 22px; }
.card-name + .price { margin-top: 8px; }
.price b { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.price .off { font-size: 16px; font-weight: 700; color: var(--brand); }

/* 순위 */
.board { list-style: none; margin: 0; padding: 0; }
.board li a { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.board .rk { width: 22px; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.board li:nth-child(-n+3) .rk { color: var(--brand); }
.board .av { width: 40px; height: 40px; border-radius: 999px; background: #f0f1f3; color: var(--ink); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.board .nm { flex: 1; min-width: 0; }
.board .nm b { display: block; font-size: 15px; font-weight: 700; }
.board .nm span { font-size: 13px; color: var(--weak); }
.board .sc { font-size: 14px; color: var(--sub); font-variant-numeric: tabular-nums; }
.rank-grid .board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; border-top: 2px solid var(--ink); }
.rank-grid .board li { border-bottom: 1px solid var(--line); }
.board li a:hover .nm b { text-decoration: underline; }

/* 브랜드 */
.brands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.brand-tile { border: 1px solid var(--line); padding: 28px 24px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; min-height: 180px; color: inherit; }
.brand-tile:hover { border-color: var(--ink); }
.brand-tile b { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.brand-tile p { margin: 0; color: var(--sub); font-size: 14px; }
.brand-st { margin-top: auto; padding-top: 14px; font-size: 13px; font-weight: 700; color: var(--weak); }
a.brand-tile:hover .brand-st { color: var(--ink); }

/* 상품 상세 */
.crumb { display: flex; align-items: center; gap: 6px; height: 52px; font-size: 14px; color: var(--weak); border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.crumb a:hover { color: var(--ink); }
.pd { display: grid; grid-template-columns: minmax(0, 588px) minmax(0, 1fr); gap: 72px; align-items: start; }
.pd-img { position: sticky; top: 196px; aspect-ratio: 1; background: var(--subtle); overflow: hidden; }
.pd-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-info { display: flex; flex-direction: column; }
.pd-camp { align-self: flex-start; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 0 6px; line-height: 22px; margin-bottom: 10px; }
.pd-brand { display: inline-flex; align-items: center; gap: 2px; align-self: flex-start; font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.pd-info h1 { font-size: 18px; line-height: 26px; font-weight: 400; margin-top: 10px; letter-spacing: 0; }
.pd-summary { margin: 6px 0 0; font-size: 14px; color: var(--weak); }
.pd-price { margin: 24px 0 0; display: flex; flex-direction: column; gap: 2px; }
.pd-price div { display: flex; gap: 8px; align-items: baseline; font-size: 18px; }
.pd-price .off { color: var(--brand); font-weight: 700; }
.pd-price .strike { color: var(--faint); }
.pd-price b { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.with-seller { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--sub); align-self: flex-start; margin-top: 16px; }
.with-seller .avatar { width: 22px; height: 22px; font-size: 10px; background: var(--brand); }
.facts { display: grid; grid-template-columns: 120px 1fr; gap: 10px 12px; margin: 24px 0 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; }
.facts dt { color: var(--weak); }
.facts dd { margin: 0; }
.buy { display: flex; gap: 8px; align-items: center; margin-top: 16px; }
.buy .btn { flex: 1; }
.buy-total { margin-left: auto; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); height: 40px; flex: none; }
.qty button { width: 40px; height: 100%; border: 0; background: none; font-size: 18px; cursor: pointer; color: var(--ink); }
.qty span { min-width: 40px; height: 100%; display: grid; place-items: center; border-left: 1px solid var(--line-strong); border-right: 1px solid var(--line-strong); font-size: 14px; font-variant-numeric: tabular-nums; }
.qty.sm { height: 32px; }
.qty.sm button { width: 32px; font-size: 16px; }
.qty.sm span { min-width: 32px; }
.acc { margin-top: 32px; border-top: 2px solid var(--ink); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 18px 0; font-size: 16px; font-weight: 700; display: flex; justify-content: space-between; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-weight: 400; font-size: 20px; line-height: 1; color: var(--sub); }
.acc details[open] summary::after { content: "−"; }
.acc details > div { padding: 0 0 20px; font-size: 14px; line-height: 1.7; color: var(--sub); white-space: pre-line; }
.buybar { display: none; }

/* 장바구니·주문 */
.two { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.lines { border-top: 2px solid var(--ink); }
.line { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line img, .line .ph { width: 96px; height: 96px; object-fit: cover; flex: none; }
.line-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.line-info b { font-weight: 400; font-size: 14px; }
.line-info .card-brand { font-size: 14px; }
.line-info .price { margin-top: 6px; }
.line-info .strike { font-size: 13px; }
.line-end { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.summary { position: sticky; top: 196px; border: 1px solid var(--line-strong); padding: 24px; }
.summary h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.sum-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 15px; font-variant-numeric: tabular-nums; }
.sum-row > span:first-child { color: var(--sub); }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 16px; font-size: 18px; font-weight: 700; }
.sum-row.total > span:first-child { color: var(--ink); }
.sum-row .save { color: var(--brand); font-weight: 700; }
.free-bar { font-size: 13px; color: var(--sub); margin: 12px 0 18px; }
.free-bar i { display: block; height: 4px; background: var(--line); margin-top: 8px; overflow: hidden; }
.free-bar i span { display: block; height: 100%; background: var(--ink); }
.box { border: 1px solid var(--line-strong); padding: 24px; margin-bottom: 16px; }
.box h3 { font-size: 18px; font-weight: 700; margin-bottom: 18px; }
.pay-opts { display: grid; gap: 8px; }
.pay-opt { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line-strong); padding: 14px 16px; cursor: pointer; font-weight: 600; font-size: 15px; }
.pay-opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.mini-lines { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.mini-line { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.mini-line img, .mini-line .ph { width: 48px; height: 48px; object-fit: cover; flex: none; }
.mini-line div { flex: 1; min-width: 0; }
.done { max-width: 640px; margin: 0 auto; padding: 48px 0 0; }
.done-head { text-align: center; margin-bottom: 32px; }
.done-head .ok { width: 52px; height: 52px; border-radius: 999px; background: var(--ink); color: #fff; display: grid; place-items: center; margin: 0 auto 16px; }
.done-head h1 { font-size: 26px; font-weight: 700; }
.done-head p { color: var(--sub); margin: 8px 0 0; font-size: 15px; }
.track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.track li { border-top: 3px solid var(--line); padding-top: 8px; font-size: 14px; color: var(--faint); font-weight: 600; }
.track li.on { border-color: var(--ink); color: var(--ink); }
.paybox { text-align: center; }
.paybox .test { display: inline-block; font-size: 12px; font-weight: 700; color: var(--warn); background: var(--warn-bg); padding: 2px 8px; margin-bottom: 12px; }

/* 셀러 */
.seller-head { display: flex; gap: 20px; align-items: center; padding: 40px 0 0; flex-wrap: wrap; }
.seller-head .big-av { width: 88px; height: 88px; border-radius: 999px; background: #f0f1f3; color: var(--ink); font-size: 32px; font-weight: 800; display: grid; place-items: center; flex: none; }
.seller-head h1 { font-size: 28px; font-weight: 700; }
.seller-head p { margin: 4px 0 0; color: var(--sub); font-size: 15px; }
.rank-pill { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 14px; color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }

/* 신청 */
.apply { max-width: 560px; margin: 0 auto; padding: 48px 0 0; }
.apply h1 { font-size: 28px; font-weight: 700; }
.apply .lead { color: var(--sub); font-size: 15px; margin: 8px 0 28px; }

/* 바닥 */
.foot { flex: none; border-top: 1px solid var(--line); padding: 20px 0 calc(20px + var(--safe-b)); background: #fff; }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; font-size: 13px; color: var(--weak); }
.foot nav { display: flex; gap: 4px 20px; flex-wrap: wrap; }
.foot a { color: var(--sub); }
.foot a:hover { color: var(--ink); }

/* 국가 선택 */
.mkt-list { display: grid; gap: 8px; }
.mkt-list button { display: flex; justify-content: space-between; align-items: center; height: 52px; padding: 0 16px; border: 1px solid var(--line-strong); background: #fff; cursor: pointer; font-weight: 600; font-size: 15px; }
.mkt-list button.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.mkt-list span { color: var(--sub); font-weight: 500; }
body:not(.console) .modal { border-radius: 6px; }

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pd { gap: 40px; }
}
@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .two { grid-template-columns: 1fr; }
  .summary { position: static; }
  .rank-grid .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  body:not(.console) { font-size: 15px; }
  .wrap { padding: 0 16px; }
  .top { border-bottom: 1px solid var(--line); }
  .top-in { height: auto; flex-wrap: wrap; gap: 0; padding-top: 10px; padding-bottom: 10px; }
  .top-logo .logo { font-size: 20px; }
  .top-logo .logo svg { width: 28px; height: 28px; }
  .top-tools { gap: 0; }
  .top-search { order: 3; flex: 1 0 100%; margin-top: 8px; }
  .gnb { height: 44px; }
  .gnb nav { gap: 20px; }
  .gnb a { font-size: 15px; }
  .gnb .gnb-r, .util { display: none; }
  .hero { height: 320px; margin: 0 -16px; align-items: flex-end; }
  .hero img { object-position: 70% center; }
  .hero-in { padding: 20px; width: 100%; max-width: none; background: linear-gradient(rgba(238, 235, 231, 0), rgba(238, 235, 231, .96) 28%); }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 14px; }
  .sec { margin-top: 44px; }
  .sec-head h2 { font-size: 20px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .rank-grid .board { grid-template-columns: 1fr; }
  .brands { grid-template-columns: 1fr; gap: 12px; }
  .brand-tile { min-height: 0; padding: 20px; }
  .crumb { height: 44px; margin-bottom: 0; border: 0; }
  .pd { grid-template-columns: 1fr; gap: 20px; }
  .pd-img { position: static; margin: 0 -16px; }
  .pd-brand { font-size: 20px; }
  .pd-price b { font-size: 24px; }
  .buy.desk { display: none; }
  .buybar { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px calc(10px + var(--safe-b)); }
  .buybar .btn { flex: 1; height: 50px; }
  body.has-buybar .foot { padding-bottom: calc(86px + var(--safe-b)); }
  .page-title { font-size: 24px; margin: 24px 0 16px; }
  .line img, .line .ph { width: 76px; height: 76px; }
  .box, .summary { padding: 18px; }
  .seller-head { padding-top: 24px; gap: 16px; }
  .seller-head .big-av { width: 64px; height: 64px; font-size: 24px; }
  .seller-head h1 { font-size: 22px; }
  .foot-in { flex-direction: column; align-items: flex-start; }
  .track { grid-template-columns: repeat(2, 1fr); }
  .apply { padding-top: 28px; }
}
