﻿/* ============================================================================
 * endedit 브랜드관(전체 브랜드·브랜드 상세·관심 브랜드) — 탈React 정적 프로토타입 CSS
 * 원본 파일을 그대로 합친 것 (내용 변경 없음, 순서만 토큰→셸→화면):
 *   src/styles/tokens.css, src/brands/pages.css, src/brands/cards.css,
 *   src/brands/controls.css, src/brands/brands.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-fill-alt: rgba(112, 115, 124, 0.05);
  --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; }
.link-btn { border: 0; background: transparent; padding: 0; cursor: pointer; font-family: var(--font-core); }
.chip-scroll { -ms-overflow-style: none; scrollbar-width: none; }
.chip-scroll::-webkit-scrollbar { display: none; }
a.board-row { text-decoration: none; color: inherit; display: block; }

/* ── pages.css ── */
.br-panel-head { display: flex; align-items: center; gap: 8px; height: 32px; box-sizing: content-box; padding-bottom: 12px; box-shadow: inset 0 -1px 0 var(--wds-text); }
.br-panel-title { flex: 1; margin: 0; font-size: 19px; line-height: 28px; letter-spacing: -0.002em; font-weight: 700; }
.br-panel-count { font-size: 14px; color: var(--wds-text-alt); }
.br-panel-head-mo { display: flex; justify-content: flex-start; align-items: center; padding-bottom: 12px; }
.br-panel-body { padding-top: 20px; }
.br-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 56px 20px; }
.br-empty-ico { color: var(--wds-text-assistive); display: grid; }
.br-empty-t { font-size: 16px; font-weight: 700; letter-spacing: 0.0057em; }
.br-empty-s { font-size: 14px; letter-spacing: 0.0145em; color: var(--wds-text-alt); }
.br-empty-btn { margin-top: 8px; height: 44px; padding: 0 18px; border-radius: 4px; display: inline-flex; align-items: center; font-family: var(--font-core); font-size: 15px; font-weight: 700; background: var(--wds-text); color: #fff; text-decoration: none; }
.br-wish-grid { display: grid; gap: 16px; }
.br-page { max-width: 1440px; margin: 0 auto; width: 100%; box-sizing: border-box; min-height: 640px; padding: 40px 32px 64px; }
.br-title { display: flex; align-items: flex-end; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--wds-text); }
.br-title-h1 { margin: 0; font-size: 30px; line-height: 40px; letter-spacing: -0.0236em; font-weight: 800; }
.br-title-sub { padding-bottom: 4px; font-size: 15px; letter-spacing: 0.0096em; color: var(--wds-text-alt); }
.br-title-mo { height: 20px; line-height: 20px; padding-bottom: 4px; }
.br-title-mo-sub { font-size: 13px; letter-spacing: 0.0145em; color: var(--wds-text-alt); }
.br-toolbar { display: flex; align-items: center; gap: 12px; padding-top: 20px; flex-wrap: wrap; }
.br-search { flex: 0 0 260px; min-width: 0; margin-left: auto; display: flex; align-items: center; gap: 8px; width: 260px; padding: 0 14px; border-radius: 4px; background: var(--wds-surface); box-shadow: inset 0 0 0 1px var(--wds-line); box-sizing: border-box; }
.br-search-ico { flex: none; color: var(--wds-text-alt); display: grid; }
.br-search-input { flex: 1; min-width: 0; width: 0; border: 0; outline: none; background: transparent; font-family: var(--font-core); font-size: 15px; letter-spacing: 0.0096em; color: var(--wds-text); }
.br-search-clear { flex: none; width: 22px; height: 22px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--wds-text-alt); }
.br-grid { display: grid; gap: 20px; padding-top: 24px; }
.br-empty-lg { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 64px 20px; }
@media (max-width: 768px) {
  .br-page { min-height: 520px; padding: 20px 16px 40px; }
  .br-toolbar { gap: 8px; padding-top: 12px; flex-wrap: nowrap; }
  .br-search { flex: 1 1 auto; margin-left: 0; width: auto; }
  .br-grid { gap: 12px; padding-top: 16px; }
  .br-panel-body { padding-top: 16px; }
  .br-empty-btn { height: 40px; }
  .br-wish-grid { gap: 12px; }
}
.br-shell { width: 100%; min-width: 320px; background: var(--wds-surface); font-family: var(--font-core); color: var(--wds-text); display: flex; flex-direction: column; position: relative; }
.br-hdr-hold { height: 132px; }
.br-err { padding: 80px 32px; }
.br-err-p { margin: 0; font-size: 15px; color: var(--wds-destructive); }
.br-nf { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 120px 32px; }
.br-nf-t { font-size: 17px; font-weight: 700; letter-spacing: 0.0057em; }
.br-nf-btn { margin-top: 8px; height: 46px; padding: 0 20px; border-radius: 4px; background: var(--wds-text); color: #fff; display: inline-flex; align-items: center; font-size: 15px; font-weight: 700; text-decoration: none; }
@media (max-width: 768px) { .br-hdr-hold { height: 56px; } .br-err { padding: 48px 16px; } .br-nf { padding: 72px 16px; } }
.br-bd { max-width: 1440px; margin: 0 auto; width: 100%; box-sizing: border-box; min-height: 640px; padding: 32px 32px 64px; }
.br-bd-head { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; padding: 0 0 8px; }
.br-bd-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.br-bd-name { margin: 0; display: block; font-size: 34px; line-height: 44px; letter-spacing: -0.0253em; font-weight: 800; color: var(--wds-text); }
.br-bd-meta { font-size: 14px; letter-spacing: 0.0145em; color: var(--wds-text-alt); }
.br-bd-desc { font-size: 14px; line-height: 20px; letter-spacing: 0.0145em; color: var(--wds-text-neutral); }
.br-bd-follow { flex: none; height: 46px; padding: 0 18px; border-radius: 4px; border: 0; font-family: var(--font-core); font-size: 15px; font-weight: 700; letter-spacing: 0.0096em; background: var(--wds-text); color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.br-bd-follow.is-on { background: var(--wds-fill); color: var(--wds-text-neutral); }
.br-bd-follow.is-busy { cursor: default; opacity: 0.6; }
.br-bd-body { padding-top: 28px; }
.br-bd-tabs { display: flex; align-items: center; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--wds-line-neutral); flex-wrap: wrap; }
.br-bd-chips { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; }
.br-bd-spacer { flex: 1; min-width: 0; }
.br-bd-total { padding-top: 18px; font-size: 13px; letter-spacing: 0.0194em; color: var(--wds-text-alt); }
.br-bd-err { margin: 0; padding: 48px 0; font-size: 15px; color: var(--wds-destructive); }
.br-bd-grid { display: grid; padding: 18px 0 36px; }
.br-bd-sk { display: flex; flex-direction: column; gap: 10px; }
.br-bd-sk-img { width: 100%; aspect-ratio: 3 / 4; border-radius: 2px; background: var(--wds-fill); }
.br-bd-sk-l1, .br-bd-sk-l2, .br-bd-sk-l3 { border-radius: 2px; background: var(--wds-fill); }
.br-bd-sk-l1 { height: 13px; width: 40%; }
.br-bd-sk-l2 { height: 22px; width: 85%; }
.br-bd-sk-l3 { height: 17px; width: 55%; }
.br-pg { display: flex; justify-content: center; align-items: center; gap: 4px; }
.br-pg-arrow { width: 40px; height: 40px; border-radius: 4px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--wds-text-alt); }
.br-pg-arrow[disabled] { cursor: default; opacity: 0.35; }
.br-pg-num { width: 40px; height: 40px; border-radius: 4px; border: 0; font-family: var(--font-core); font-size: 15px; font-weight: 500; background: transparent; color: var(--wds-text-neutral); }
.br-pg-num.is-on { font-weight: 700; background: var(--wds-text); color: #fff; }
@media (max-width: 768px) {
  .br-bd { min-height: 520px; padding: 0 0 40px; }
  .br-bd-head { padding: 20px 16px 4px; }
  .br-bd-name { font-size: 24px; line-height: 32px; }
  .br-bd-follow { height: 40px; }
  .br-bd-head button.br-bd-follow { font-size: 15px; }
  .br-bd-body { padding: 20px 16px 0; }
  .br-bd-tabs { padding-bottom: 12px; }
  .br-bd-total { padding-top: 14px; }
  .br-bd-grid { padding: 12px 0 28px; }
}
.ee-idx { display: flex; flex-direction: column; gap: 6px; padding-top: 18px; }
.ee-idx-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 30px; }
.ee-idx-btn { min-width: 30px; height: 30px; padding: 0 7px; border: 0; border-radius: 1000px; background: transparent; font-family: var(--font-core); font-size: 14px; font-weight: 600; letter-spacing: 0.0145em; color: var(--wds-text-neutral); }
.ee-idx-btn.is-all { padding: 0 12px; }
.ee-idx-btn:hover { background: var(--wds-fill); }
.ee-idx-btn.is-on, .ee-idx-btn.is-on:hover { background: var(--wds-text); color: #fff; }
.ee-idx-btn.is-off, .ee-idx-btn.is-off:hover { color: var(--wds-text-assistive); background: transparent; cursor: default; }
.ee-idx-sep { flex: none; width: 1px; height: 14px; margin: 0 6px; background: var(--wds-line); }
.br-bd-logo { flex: none; align-self: center; width: 168px; height: 84px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--wds-line); border-radius: 4px; background: #fff; overflow: hidden; }
.br-bd-logo-img { max-width: 88%; max-height: 70%; width: auto; height: auto; object-fit: contain; display: block; }
@media (max-width: 768px) {
  .ee-idx { gap: 4px; padding-top: 12px; }
  .ee-idx-row { gap: 2px; min-height: 28px; }
  .ee-idx-btn { min-width: 26px; height: 28px; padding: 0 5px; font-size: 13px; }
  .ee-idx-btn.is-all { padding: 0 10px; }
  .ee-idx-sep { margin: 0 4px; }
  .br-bd-logo { width: 112px; height: 56px; }
}

/* ── cards.css ── */
.br-bc { display: flex; flex-direction: column; min-width: 0; gap: 12px; padding: 18px; border-radius: 4px; background: var(--wds-surface); box-shadow: var(--wds-elev-inset-line); }
.br-bc-link { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; padding: 0; font-family: var(--font-core); text-align: left; text-decoration: none; color: inherit; }
.br-bc-fig { flex: none; position: relative; width: 60px; height: 60px; border-radius: 1000px; overflow: hidden; background: var(--wds-fill); display: block; }
.br-bc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.br-bc-ini { position: absolute; inset: 0; display: grid; place-items: center; font-size: 20px; font-weight: 700; color: var(--wds-text-assistive); }
.br-bc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.br-bc-name { max-width: 100%; font-size: 16px; font-weight: 700; letter-spacing: 0.0057em; color: var(--wds-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-bc-sub { max-width: 100%; font-size: 13px; letter-spacing: 0.0194em; color: var(--wds-text-assistive); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-bc-heart { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 44px; cursor: pointer; }
.br-bc-heart.is-busy { cursor: default; opacity: 0.6; }
.br-bc-heart-ico { display: grid; color: var(--wds-text-alt); }
.br-bc-heart.is-on .br-bc-heart-ico { color: var(--wds-destructive); }
.br-bc-heart-t { font-size: 12px; letter-spacing: 0.0252em; font-weight: 600; color: var(--wds-text-alt); }
@media (max-width: 768px) { .br-bc { padding: 14px; } .br-bc-fig { width: 52px; height: 52px; } .br-bc-ini { font-size: 18px; } .br-bc-name { font-size: 15px; } }
.br-gc { display: flex; flex-direction: column; min-width: 0; gap: 10px; padding: 0; font-family: var(--font-core); text-align: left; text-decoration: none; color: inherit; }
.br-gc-fig { position: relative; width: 100%; aspect-ratio: 3 / 4; border-radius: 2px; overflow: hidden; background: var(--wds-fill); display: block; }
.br-gc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.br-gc-sold { position: absolute; inset: 0; background: rgba(23, 23, 25, 0.52); display: grid; place-items: center; pointer-events: none; }
.br-gc-sold-t { font-size: 14px; font-weight: 700; letter-spacing: 0.0194em; color: #fff; }
.br-gc-wish { position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; border-radius: 1000px; background: rgba(255, 255, 255, 0.86); display: grid; place-items: center; cursor: pointer; color: var(--wds-text-alt); }
.br-gc-wish.is-on { color: var(--wds-destructive); }
.br-gc-wish.is-busy { cursor: default; opacity: 0.6; }
.br-gc-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.br-gc-brand { font-size: 13px; letter-spacing: 0.0252em; font-weight: 700; color: var(--wds-text-alt); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-gc-name { font-size: 15px; line-height: 22px; letter-spacing: 0.0145em; color: var(--wds-text-neutral); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.br-gc-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.br-gc-off { font-size: 16px; font-weight: 700; color: var(--wds-primary); }
.br-gc-won { font-size: 17px; font-weight: 700; letter-spacing: 0.0057em; }
.br-gc-list { font-size: 14px; color: var(--wds-text-assistive); text-decoration: line-through; }
.br-bc-fig.is-logo { width: 112px; height: 56px; border-radius: 4px; background: transparent; }
.br-bc-fig.is-logo .br-bc-img { object-fit: contain; }
.br-bc-en { max-width: 100%; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--wds-text-alt); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 768px) { .br-bc-fig.is-logo { width: 92px; height: 46px; } }

/* ── controls.css ── */
.br-sel { flex: none; min-width: 0; position: relative; }
.br-sel-btn { width: 148px; height: 44px; padding: 0 10px 0 14px; border-radius: 4px; border: 0; background: var(--wds-surface); box-shadow: inset 0 0 0 1px var(--wds-line); box-sizing: border-box; display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-core); font-size: 15px; font-weight: 500; letter-spacing: 0.0096em; color: var(--wds-text); white-space: nowrap; }
.br-sel-btn.is-open { box-shadow: inset 0 0 0 1px var(--wds-text); }
.br-sel-val { flex: 1; min-width: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; }
.br-sel-chev { flex: none; color: var(--wds-text-alt); display: grid; }
.br-sel-pop { position: absolute; right: 0; top: 50px; z-index: 30; min-width: 168px; background: var(--wds-surface); border-radius: 8px; box-shadow: var(--wds-elev-popover); padding: 6px; display: flex; flex-direction: column; }
.br-sel-opt { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 9px 10px; border-radius: 6px; border: 0; background: transparent; font-family: var(--font-core); font-size: 15px; font-weight: 500; color: var(--wds-text-neutral); text-align: left; }
.br-sel-opt.is-on { background: var(--wds-fill); font-weight: 700; }
.br-sel-opt-t { flex: 1; }
.br-chip { flex: none; height: 38px; padding: 0 16px; border-radius: 1000px; border: 0; font-family: var(--font-core); font-size: 14px; font-weight: 600; letter-spacing: 0.0145em; background: var(--wds-fill); color: var(--wds-text-neutral); white-space: nowrap; }
.br-chip.is-on { background: var(--wds-text); color: #fff; }
@media (max-width: 768px) {
  .br-sel { flex: 0 0 var(--br-sel-w, 138px); }
  .br-sel-btn { width: 100%; height: 40px; }
  .br-sel-pop { top: 46px; }
  .br-sel button.br-sel-btn { font-size: 15px; }
  .br-sel-pop button.br-sel-opt { font-size: 15px; }
}

/* ── brands.css ── */
.ee .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .ee .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) { .ee .brand-grid { grid-template-columns: minmax(0, 1fr); } }
.ee .brand-wish-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1280px) { .ee .brand-wish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) { .ee .brand-wish-grid { grid-template-columns: minmax(0, 1fr); } }
.ee .brand-goods-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 36px 24px; }
@media (max-width: 1440px) { .ee .brand-goods-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 20px; } }
@media (max-width: 1280px) { .ee .brand-goods-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; } }
@media (max-width: 1024px) { .ee .brand-goods-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 16px; } }
@media (max-width: 768px) {
  .ee .brand-goods-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ee .brand-goods-grid > .board-row { height: auto !important; min-height: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; }
}
.ee .chip-scroll > .chip-btn { flex: none; }
.ee .brand-card, .ee .brand-card > .board-row { min-width: 0; }
.ee .brand-search { height: 44px; }
.ee .brand-search input:not([type='checkbox']):not([type='radio']) { height: 100% !important; font-size: 15px !important; }
@media (max-width: 768px) { .ee .brand-search { height: 40px; } }
@media (max-width: 768px) {
  .ee .brand-card > .board-row { height: auto !important; min-height: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; }
}

/* ── 프로토타입 전용 헤더/푸터 placeholder (공용 셸은 별도 작업) + 내비 ── */
.br-proto-hdr { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 20px; border-bottom: 1px solid var(--wds-line); font-weight: 800; letter-spacing: -0.01em; }
.br-proto-hdr .note { font-weight: 400; font-size: 12px; color: var(--wds-text-assistive); }
.br-proto-ftr { padding: 24px 20px; text-align: center; font-size: 12px; color: var(--wds-text-assistive); border-top: 1px solid var(--wds-line); }
