﻿/* ============================================================================
 * 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: 1440px;
}

* { 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: 9500; }
.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; border-bottom: 1px solid var(--wds-line-alt); scrollbar-width: none; -ms-overflow-style: none; }
.ee-ls-tabs::-webkit-scrollbar { width: 0; height: 0; display: none; }
.ee-ls-tab { flex: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: transparent; padding: 12px 0 8px; cursor: pointer; font-family: var(--font-core); font-size: 16px; font-weight: 500; color: var(--wds-text-alt); }
.ee-ls-tab.is-on { font-weight: 700; color: var(--wds-text); border-bottom-color: 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: 16px; 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: 16px; 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-hover : 썸네일에 마우스를 올리면 «추가이미지 1번» 으로 바뀐다 (메인과 같은 동작).
   실제 이미지는 «첫 hover» 때 JS가 붙인다 — 안 볼 수도 있는 원본을 미리 받지 않는다.
   위치·크기는 바로 위 .ee-ls-th img 규칙을 그대로 쓴다. 2026-08-24 정희찬(PRO4) */
.ee-ls-hov { opacity: 0; pointer-events: none; transition: opacity .45s cubic-bezier(.16, 1, .3, 1); }
@media (hover: hover) and (pointer: fine) {
  .ee-ls-card:hover .ee-ls-hov[data-ready="1"] { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .ee-ls-hov { transition: none; } }
.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: 9500; }
.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; }
/* 2026-08-23 : 「지금 인기 있는 상품」은 항상 8개다. 이 그리드가 .shop-grid 를 같이 달고 있어
   본문 리스트의 인라인 gridCss(관리자 열수 = 최대 7열)를 그대로 물려받는 바람에 8개가
   6열+2 처럼 끝줄이 이 빠져 보였다. 8 로 나누어떨어지는 4열/2열로 «따로» 고정한다.
   인라인 <style> 이 문서 뒤쪽에 오므로 우선순위를 이기려면 선택자를 한 단계 더 좁혀야 한다
   (.ee .shop-grid = 0,2,0 → .ee .shop-grid.ee-ls-pop-grid = 0,3,0). */
.ee .shop-grid.ee-ls-pop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 768px) { .ee .shop-grid.ee-ls-pop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.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: 16px; }
  .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; }
}

/* ══════════════════════════════════════════════════════════════════════════
   2026-08-23 정희찬(PRO4) : 모바일 탑바가 화면 제목을 갖게 되면서(shop-list.asp)
   본문 맨 위의 «같은 제목»(.ee-ls-mt)이 두 번 겹쳐 보였다 — 모바일에서만 감춘다.
   .ee-ls-mt 는 원래 모바일에서만 그려지는 요소라 PC 에는 영향이 없다.
   되돌리기 : 이 블록만 지운다.
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .ee-ls-mt { display: none; }
}

/* 2026-08-23 정희찬(PRO4) : 무한 스크롤 감지블록 + 로딩 스피너.
   빈 블록이지만 «높이가 있어야» 화면에 들어오는 것을 감지할 수 있다.
   되돌리기 : 이 블록만 지운다(페이저 CSS .ee-ls-pg 는 남겨 뒀다). */
.ee-ls-inf { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 24px 0 8px; }
.ee-ls-inf-sp {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--wds-line-alt); border-top-color: var(--wds-text-alt);
  animation: ee-ls-spin 0.8s linear infinite;
}
@keyframes ee-ls-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ee-ls-inf-sp { animation-duration: 2.4s; } }

/* 찜 하트 — 브랜드 상세 카드(.br-gc-wish)와 «수치를 그대로» 맞춘다.
   우8 / 상8 · 34 원형 · rgba(255,255,255,.86) · 아이콘 18 · 켜지면 destructive.
   두 화면에서 같은 부품이 다르게 보이면 안 된다. 2026-08-24 황수빈 */
.ee-ls-wish {
  position: absolute; right: 8px; top: 8px; z-index: 2;
  width: 34px; height: 34px; border-radius: 1000px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 1px 3px rgba(23, 23, 25, 0.14);
  display: grid; place-items: center; cursor: pointer;
  color: var(--wds-text-alt);
  transition: background .18s ease, color .18s ease, transform .18s cubic-bezier(.16, 1, .3, 1);
}
.ee-ls-wish:hover { background: #fff; transform: scale(1.06); }
.ee-ls-wish:active { transform: scale(0.94); }
.ee-ls-wish:focus-visible { outline: 2px solid var(--wds-text); outline-offset: 2px; }
.ee-ls-wish.is-on { color: var(--wds-destructive); }
.ee-ls-wish.is-busy { cursor: default; opacity: 0.6; }
@media (prefers-reduced-motion: reduce) { .ee-ls-wish { transition: none; } }
@media (max-width: 768px) { .ee-ls-wish { right: 6px; top: 6px; width: 30px; height: 30px; } }
