﻿/* ============================================================================
 * endedit 상품목록/검색 — 탈React 정적 프로토타입 CSS
 * tokens.css(order 프로토타입에서 재사용, 값 동일) + list.css(원본 그대로, 값 변경 없음)
 * + shop-grid 기본 선언(원본은 global.css가 담당 — 이 프로토타입 범위 밖이라 최소치만 추가)
 * + 프로토타입 전용 헤더/푸터 placeholder.
 * ========================================================================= */

/* ── tokens.css ── */
:root {
  --wds-primary: #ff5c28;
  --wds-primary-strong: #f04d1a;
  --wds-primary-heavy: #d63f10;
  --wds-primary-tint: #fff4f0;

  --wds-text: rgb(23, 23, 23);
  --wds-text-neutral: rgba(46, 47, 51, 0.88);
  --wds-text-alt: rgba(55, 56, 60, 0.61);
  --wds-text-assistive: rgba(55, 56, 60, 0.28);
  --wds-inactive: rgba(55, 56, 60, 0.61);

  --wds-fill: rgba(112, 115, 124, 0.05);
  --wds-fill-strong: rgba(112, 115, 124, 0.16);
  --wds-line: rgba(112, 115, 124, 0.16);
  --wds-line-alt: rgba(112, 115, 124, 0.08);
  --wds-line-neutral: rgba(112, 115, 124, 0.16);

  --wds-surface: #fff;
  --wds-surface-alt: rgb(247, 247, 248);
  --wds-surface-inverse: rgb(23, 23, 25);

  --wds-cautionary: rgb(255, 146, 0);
  --wds-destructive: rgb(255, 66, 66);

  --wds-elev-inset-line: inset 0 0 0 1px rgba(112, 115, 124, 0.08);
  --wds-elev-popover: 0 0 60px rgba(23, 23, 23, 0.1);

  --wds-ease: cubic-bezier(0.16, 1, 0.3, 1);

  --font-core: 'Pretendard JP', 'Pretendard Variable', Pretendard, -apple-system,
    BlinkMacSystemFont, system-ui, 'Malgun Gothic', sans-serif;

  --layout-header-max: 1440px;
  --layout-body-max: 1200px;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--wds-surface); font-family: var(--font-core); color: var(--wds-text); }
button { font-family: var(--font-core); cursor: pointer; }
a { color: inherit; }

/* ── shop-grid 기본(원본은 global.css 담당 — 열수/gap은 list.css·인라인<style>이 덮는다) ── */
.sh-wrap { max-width: var(--layout-body-max); margin: 0 auto; padding: 0 20px; }
.shop-grid { display: grid; }
.sh-pad-list { padding-top: 20px; padding-bottom: 60px; }
@media (max-width: 768px) { .sh-wrap { padding: 0 16px; } }

/* ── 프로토타입 전용 헤더/푸터 placeholder(공용 셸은 별도 작업 — order·auth·cart·board·brands와 동일) ── */
.co-proto-hdr { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--wds-line); font-family: var(--font-core); }
.co-proto-hdr .logo { font-weight: 800; letter-spacing: -0.02em; }
.co-proto-hdr .note { font-size: 12px; color: var(--wds-text-alt); }
.co-proto-ftr { padding: 24px 20px; text-align: center; font-size: 12px; color: var(--wds-text-alt); border-top: 1px solid var(--wds-line); }

/* ── list.css (원본 그대로, 값 변경 없음) ── */
.ee-ls-sf { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 6px 0 14px; border-radius: 1000px; background: var(--wds-surface); box-sizing: border-box; box-shadow: inset 0 0 0 1px var(--wds-line); }
.ee-ls-sf.is-focus { box-shadow: inset 0 0 0 1px var(--wds-text); }
.ee-ls-sf-ico { flex: none; color: var(--wds-text-neutral); display: grid; }
.ee-ls-sf-in { flex: 1; min-width: 0; width: 100%; height: 100%; border: 0; outline: none; background: transparent; font-family: var(--font-core); font-size: 16px; letter-spacing: 0.0096em; color: var(--wds-text); }
.ee-ls-sf-x { flex: none; width: 32px; height: 32px; padding: 0; border-radius: 1000px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--wds-text-assistive); }
.ee-ls-sf-w { padding-top: 12px; }

.ee-ls-chip { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 14px; border-radius: 1000px; border: 0; cursor: pointer; font-family: var(--font-core); font-size: 14px; font-weight: 600; letter-spacing: 0.0194em; background: var(--wds-fill); color: var(--wds-text-neutral); }
.ee-ls-chip.is-on { background: var(--wds-text); color: #fff; }

.ee-ls-qd { position: relative; }
.ee-ls-qd-b { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 1000px; border: 0; cursor: pointer; font-family: var(--font-core); font-size: 15px; font-weight: 500; background: var(--wds-surface); box-shadow: inset 0 0 0 1px var(--wds-line); color: var(--wds-text-neutral); }
.ee-ls-qd-b.is-on { font-weight: 700; background: var(--wds-text); box-shadow: none; color: #fff; }
.ee-ls-qd-pop { position: absolute; top: 46px; left: 0; min-width: 340px; z-index: 6; background: var(--wds-surface); border-radius: 12px; box-shadow: var(--wds-elev-popover); padding: 16px; display: flex; flex-wrap: wrap; gap: 8px; }

.ee-ls-grab-w { padding: 10px 0 2px; display: grid; place-items: center; }
.ee-ls-grab { width: 40px; height: 4px; border-radius: 1000px; background: var(--wds-fill-strong); }

.ee-ls-sheet { position: fixed; inset: 0; z-index: 60; }
.ee-ls-sheet-dim { position: absolute; inset: 0; background: rgba(23, 23, 25, 0.52); }
.ee-ls-sheet-box { position: absolute; left: 0; right: 0; bottom: 0; max-height: 82vh; background: var(--wds-surface); border-radius: 20px 20px 0 0; display: flex; flex-direction: column; overflow: hidden; }
.ee-ls-sheet-hd { display: flex; align-items: center; padding: 10px 16px 8px; }
.ee-ls-sheet-t { flex: 1; font-size: 19px; line-height: 28px; font-weight: 700; }
.ee-ls-sheet-x { width: 44px; height: 44px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--wds-text); }
.ee-ls-tabs { display: flex; gap: 18px; padding: 0 16px; overflow-x: auto; white-space: nowrap; box-shadow: inset 0 -1px 0 var(--wds-line-alt); }
.ee-ls-tab { flex: none; border: 0; background: transparent; padding: 12px 0 10px; cursor: pointer; font-family: var(--font-core); font-size: 16px; font-weight: 500; color: var(--wds-text-alt); box-shadow: none; }
.ee-ls-tab.is-on { font-weight: 700; color: var(--wds-text); box-shadow: inset 0 -2px 0 var(--wds-text); }
.ee-ls-tab-n { color: var(--wds-text); }
.ee-ls-sheet-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.ee-ls-sheet-foot { display: flex; gap: 8px; padding: 12px 16px 20px; box-shadow: inset 0 1px 0 var(--wds-line-alt); }
.ee-ls-sheet-reset { flex: 0 0 96px; height: 52px; border-radius: 12px; border: 0; cursor: pointer; background: var(--wds-fill); font-family: var(--font-core); font-size: 17px; font-weight: 600; }
.ee-ls-sheet-ok { flex: 1; height: 52px; border-radius: 12px; border: 0; cursor: pointer; background: var(--wds-text); color: #fff; font-family: var(--font-core); font-size: 17px; font-weight: 600; }

.ee-ls-th { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 2px; overflow: hidden; background: var(--wds-fill); box-shadow: var(--wds-elev-inset-line); }
.ee-ls-th.is-rect { aspect-ratio: 100 / 135; }
.ee-ls-th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ee-ls-sold { position: absolute; inset: 0; background: rgba(23, 23, 25, 0.52); display: grid; place-items: center; pointer-events: none; }
.ee-ls-sold-t { color: #fff; font-size: 15px; font-weight: 700; letter-spacing: 0.0194em; }

.ee-ls-pr { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.ee-ls-pr-off { font-size: 17px; font-weight: 700; color: var(--wds-primary); }
.ee-ls-pr-v { font-size: 18px; font-weight: 700; letter-spacing: 0.0057em; color: var(--wds-text); }
.ee-ls-pr-l { font-size: 14px; color: var(--wds-text-assistive); text-decoration: line-through; }

.ee-ls-hd { display: flex; align-items: baseline; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--wds-text); }
.ee-ls-h1 { margin: 0; font-size: 28px; line-height: 38px; letter-spacing: -0.0236em; font-weight: 800; }
.ee-ls-cnt { font-size: 15px; color: var(--wds-text-alt); }

.ee-ls-hits { display: flex; gap: 6px; padding-top: 16px; overflow-x: auto; }
.ee-ls-hit { flex: none; height: 38px; padding: 0 14px; border-radius: 1000px; border: 0; cursor: pointer; font-family: var(--font-core); font-size: 15px; font-weight: 600; letter-spacing: 0.0145em; background: var(--wds-fill); color: var(--wds-text-neutral); white-space: nowrap; }
.ee-ls-hit.is-on { background: var(--wds-text); color: #fff; }
.ee-ls-hit-n { color: var(--wds-text-alt); }
.ee-ls-hit.is-on .ee-ls-hit-n { color: rgba(255, 255, 255, 0.7); }

.ee-ls-thd { display: flex; align-items: center; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--wds-text); }
.ee-ls-cat { position: relative; }
.ee-ls-cat-b { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; padding: 0; cursor: pointer; font-family: var(--font-core); font-size: 28px; line-height: 38px; letter-spacing: -0.0236em; font-weight: 800; color: var(--wds-text); }
.ee-ls-cat-chev { display: grid; }
.ee-ls-cat-pop { position: absolute; top: 50px; left: 0; min-width: 220px; z-index: 8; background: var(--wds-surface); border-radius: 12px; box-shadow: var(--wds-elev-popover); padding: 8px; }
.ee-ls-cat-i { display: block; width: 100%; text-align: left; min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; font-family: var(--font-core); font-size: 16px; font-weight: 500; color: var(--wds-text-neutral); }
.ee-ls-cat-i.is-accent { color: var(--wds-destructive); }
.ee-ls-cat-i.is-on { font-weight: 700; color: var(--wds-primary); }
.ee-ls-cat-hr { display: block; height: 1px; background: var(--wds-line-alt); margin: 6px 12px; }

.ee-ls-mt { font-size: 22px; line-height: 30px; letter-spacing: -0.0236em; font-weight: 800; padding: 10px 0 8px; color: var(--wds-text); }
.ee-ls-subs { display: flex; gap: 18px; overflow-x: auto; white-space: nowrap; box-shadow: inset 0 -1px 0 var(--wds-line-alt); }
.ee-ls-sub { flex: none; border: 0; background: transparent; padding: 6px 0 10px; cursor: pointer; font-family: var(--font-core); font-size: 16px; letter-spacing: 0.0096em; font-weight: 500; color: var(--wds-text-alt); box-shadow: none; }
.ee-ls-sub.is-on { font-weight: 700; color: var(--wds-text); box-shadow: inset 0 -2px 0 var(--wds-text); }

.ee-ls-fr { position: relative; display: flex; align-items: center; gap: 8px; padding: 20px 0 0; flex-wrap: wrap; }
.ee-ls-reset { width: 38px; height: 38px; border-radius: 1000px; border: 0; background: var(--wds-surface); box-shadow: inset 0 0 0 1px var(--wds-line); display: grid; place-items: center; cursor: pointer; color: var(--wds-text-neutral); }
.ee-ls-fbtn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 1000px; border: 0; cursor: pointer; font-family: var(--font-core); font-size: 15px; font-weight: 500; background: var(--wds-surface); box-shadow: inset 0 0 0 1px var(--wds-line); color: var(--wds-text-neutral); }
.ee-ls-fbtn.is-on { font-weight: 700; background: var(--wds-text); box-shadow: none; color: #fff; }

.ee-ls-sr { display: flex; align-items: center; padding: 18px 0 10px; }
.ee-ls-total { font-size: 14px; letter-spacing: 0.0194em; color: var(--wds-text-alt); }
.ee-ls-sort-w { margin-left: auto; position: relative; }
.ee-ls-sort-b { display: inline-flex; align-items: center; gap: 2px; height: 32px; padding: 0; border: 0; background: transparent; cursor: pointer; font-family: var(--font-core); font-size: 14px; letter-spacing: 0.0194em; color: var(--wds-text-neutral); }
.ee-ls-sort-pop { position: absolute; right: 0; top: 36px; min-width: 168px; z-index: 40; background: var(--wds-surface); border-radius: 12px; box-shadow: var(--wds-elev-popover); padding: 6px; }
.ee-ls-sort-i { display: flex; align-items: center; gap: 8px; width: 100%; height: 40px; padding: 0 12px; border-radius: 8px; border: 0; background: transparent; cursor: pointer; font-family: var(--font-core); font-size: 15px; text-align: left; color: var(--wds-text-neutral); font-weight: 500; }
.ee-ls-sort-i.is-on { background: var(--wds-fill); font-weight: 700; }
.ee-ls-sort-i-l { flex: 1; }

.ee-ls-ss { position: fixed; inset: 0; z-index: 60; }
.ee-ls-ss-dim { position: absolute; inset: 0; background: rgba(23, 23, 25, 0.52); }
.ee-ls-ss-box { position: absolute; left: 0; right: 0; bottom: 0; background: var(--wds-surface); border-radius: 20px 20px 0 0; overflow: hidden; }
.ee-ls-ss-t { padding: 12px 20px 6px; font-size: 18px; line-height: 26px; font-weight: 700; color: var(--wds-text); }
.ee-ls-ss-list { padding: 0 8px 20px; }
.ee-ls-ss-i { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 52px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; font-family: var(--font-core); font-size: 17px; text-align: left; color: var(--wds-text-neutral); font-weight: 500; }
.ee-ls-ss-i.is-on { font-weight: 700; }

.ee-ls-grid { display: grid; gap: 36px 24px; padding: 8px 0 36px; opacity: 1; transition: opacity 0.15s; }
.ee-ls-grid.is-busy { opacity: 0.5; }
.ee-ls-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.ee-ls-meta { display: flex; flex-direction: column; gap: 6px; }
.ee-ls-brand { font-size: 14px; letter-spacing: 0.0194em; font-weight: 700; color: var(--wds-text); }
.ee-ls-name { font-size: 16px; line-height: 24px; color: var(--wds-text-neutral); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.ee-ls-none { padding: 60px 0 80px; text-align: center; font-size: 15px; color: var(--wds-text-alt); }
.ee-ls-nores { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 72px 0 48px; text-align: center; }
.ee-ls-nores-ico { color: var(--wds-text-assistive); display: grid; }
.ee-ls-nores-t { font-size: 22px; line-height: 30px; letter-spacing: -0.012em; font-weight: 700; }
.ee-ls-nores-d { font-size: 15px; line-height: 24px; letter-spacing: 0.0145em; color: var(--wds-text-alt); }
.ee-ls-pop-w { padding-top: 16px; }
.ee-ls-pop-t { font-size: 19px; line-height: 28px; letter-spacing: -0.002em; font-weight: 700; margin-bottom: 12px; }
.ee-ls-pop-grid { display: grid; gap: 36px 24px; }
.ee-ls-pop-name { font-size: 16px; line-height: 20px; color: var(--wds-text-neutral); }

.ee-ls-more-w { display: flex; justify-content: center; padding-top: 16px; padding-bottom: 8px; }
.ee-ls-more { height: 48px; padding: 0 24px; border-radius: 4px; border: 0; cursor: pointer; background: var(--wds-fill); font-family: var(--font-core); font-size: 16px; font-weight: 700; color: var(--wds-text-neutral); }
.ee-ls-pg { display: flex; justify-content: center; align-items: center; gap: 4px; padding-bottom: 8px; }
.ee-ls-pg-a { width: 40px; height: 40px; border-radius: 50px; border: 0; background: transparent; cursor: pointer; color: var(--wds-text-alt); display: grid; place-items: center; }
.ee-ls-pg-n { width: 40px; height: 40px; border-radius: 50px; border: 0; cursor: pointer; font-family: var(--font-core); font-size: 16px; font-weight: 500; background: transparent; color: var(--wds-text-neutral); }
.ee-ls-pg-n.is-on { font-weight: 700; background: var(--wds-text); color: #fff; }

@media (max-width: 768px) {
  .ee-ls-hd { padding-top: 20px; }
  .ee-ls-h1 { font-size: 22px; line-height: 30px; }
  .ee-ls-name { font-size: 14px; line-height: 20px; }
  .ee-ls-pop-name { font-size: 14px; }
  .ee-ls-pr-off { font-size: 15px; }
  .ee-ls-pr-v { font-size: 16px; }
  .ee-ls-nores { padding: 48px 0 32px; }
  .ee-ls-nores-t { font-size: 18px; line-height: 26px; }
  .ee-ls-pop-w { padding-top: 8px; }
  .ee-ls-pop-t { font-size: 17px; }
  .ee-ls-more-w { padding-top: 8px; }
  .ee-ls-hits button.ee-ls-hit { font-size: 15px; }
  .ee-ls-subs button.ee-ls-sub { font-size: 16px; }
  .ee-ls-fr button.ee-ls-fbtn { font-size: 15px; }
  .ee-ls-tabs button.ee-ls-tab { font-size: 16px; }
  .ee-ls-sheet-foot button.ee-ls-sheet-reset,
  .ee-ls-sheet-foot button.ee-ls-sheet-ok { font-size: 17px; }
  .ee-ls-ss-list button.ee-ls-ss-i { font-size: 17px; }
  .ee-ls-more-w button.ee-ls-more { font-size: 16px; }
  .ee-ls-pg button.ee-ls-pg-n { font-size: 16px; }
  .ee-ls-sheet-body button.ee-ls-chip,
  .ee-ls-qd-pop button.ee-ls-chip { font-size: 14px; }
}
