/* ============================================================
   전체 셀러 보기 (/seller.php) — .v2sl- 스코프
   · SHOP/브랜드 허브와 같은 톤(화이트 카드 + 웜그레이 라인).
   · 카드 수: 모바일 2열(≤380px 1열) / 태블릿 3열 / PC 4열 / 광폭 5열.
   · 이미지 비율 1:1 고정 + 이름 2줄 clamp → 카드 높이 흔들림 방지.
   ============================================================ */
.v2sl {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px 44px;
    box-sizing: border-box;
}
.v2sl * { box-sizing: border-box; }

.v2sl-sr {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- 헤더 ---- */
.v2sl-head { padding: 22px 0 6px; }
.v2sl-head h1 {
    margin: 0 0 7px;
    font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: #1c1813;
}
.v2sl-head p {
    margin: 0 0 4px;
    font-size: 13.5px; line-height: 1.6; color: #6b655c;
}
.v2sl-note { font-size: 12.5px !important; color: #8a8378 !important; word-break: keep-all; }
.v2sl-note strong { color: #1c1813; font-weight: 700; white-space: nowrap; }

/* ---- 검색 ---- */
.v2sl-search {
    display: flex; align-items: center; gap: 8px;
    margin: 14px 0 10px;
}
.v2sl-search-field { flex: 1 1 auto; min-width: 0; }
.v2sl-search input {
    width: 100%; height: 44px; padding: 0 14px;
    border: 1px solid #e2ddd5; border-radius: 10px;
    font-size: 14px; color: #1c1813; background: #fff;
    -webkit-appearance: none; appearance: none;
}
.v2sl-search input:focus { outline: 2px solid #1c1813; outline-offset: 1px; border-color: #1c1813; }
.v2sl-search button {
    flex: none; height: 44px; padding: 0 18px;
    border: 1px solid #1c1813; border-radius: 10px;
    background: #1c1813; color: #fff; font-size: 14px; font-weight: 700; cursor: pointer;
}
.v2sl-reset {
    flex: none; display: inline-flex; align-items: center; height: 44px; padding: 0 12px;
    font-size: 13px; font-weight: 600; color: #6b655c; text-decoration: none;
}
.v2sl-reset:hover { color: #1c1813; text-decoration: underline; }

/* ---- 필터 칩 ---- */
.v2sl-filter {
    display: flex; flex-wrap: wrap; gap: 7px;
    margin: 0 0 8px;
}
.v2sl-chip {
    display: inline-flex; align-items: center; gap: 5px;
    /* 38px → 44px : 터치 영역 최소 기준(WCAG 2.5.8 / 사이트 --g-tap 44px) */
    min-height: 44px; padding: 0 13px;
    border: 1px solid #e2ddd5; border-radius: 999px;
    background: #fff; color: #3a352d;
    font-size: 13px; font-weight: 600; line-height: 1; text-decoration: none;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.v2sl-chip small { font-size: 11px; font-weight: 700; color: #9a927f; }
.v2sl-chip:hover { border-color: #1c1813; color: #1c1813; }
.v2sl-chip.on { border-color: #1c1813; background: #1c1813; color: #fff; }
.v2sl-chip.on small { color: rgba(255,255,255,.72); }
.v2sl-filter-brand { margin-bottom: 10px; }

.v2sl-count { margin: 6px 0 12px; font-size: 13px; color: #6b655c; }
.v2sl-count strong { color: #1c1813; font-weight: 800; }

/* ---- 카드 그리드 ---- */
.v2sl-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0; padding: 0; list-style: none;
}
.v2sl-card {
    position: relative;
    display: flex; flex-direction: column;
    padding: 10px;
    border: 1px solid #e8e3db; border-radius: 14px; background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,.035);
    transition: box-shadow .16s ease, border-color .16s ease, transform .16s ease;
}
.v2sl-card:hover { border-color: rgba(0,0,0,.18); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.07); }
.v2sl-card:focus-within { border-color: #1c1813; box-shadow: 0 8px 20px rgba(0,0,0,.07); }

.v2sl-thumb {
    position: relative; width: 100%; aspect-ratio: 1 / 1;
    overflow: hidden; border-radius: 10px; background: #f4f2ee;
}
.v2sl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v2sl-noimg {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; font-weight: 800; color: #b9b1a2;
    background: linear-gradient(180deg,#f7f5f1 0%,#efece5 100%);
}

.v2sl-body { flex: 1 1 auto; padding: 10px 2px 8px; min-width: 0; }
.v2sl-name { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.v2sl-name a {
    color: #1c1813; text-decoration: none;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; word-break: break-word;
}
.v2sl-name a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.v2sl-name a:focus-visible { outline: 2px solid #1c1813; outline-offset: 2px; }
.v2sl-en {
    margin: 3px 0 0; font-size: 11.5px; font-weight: 600; color: #9a927f;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.v2sl-desc {
    margin: 5px 0 0; font-size: 12px; line-height: 1.5; color: #6b655c;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.v2sl-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.v2sl-tag {
    display: inline-block; padding: 3px 8px;
    border-radius: 999px; background: #f4f2ee; color: #6b655c;
    font-size: 10.5px; font-weight: 700; line-height: 1.4;
}
.v2sl-tag-cate { background: #efeae0; color: #6b5c3c; }
.v2sl-tag-more { background: transparent; color: #9a927f; }

.v2sl-btn {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: center; gap: 5px;
    /* 40px → 44px : 터치 영역 최소 기준 */
    min-height: 44px; margin-top: auto;
    border: 1px solid #1c1813; border-radius: 10px;
    background: #1c1813; color: #fff;
    font-size: 12.5px; font-weight: 700; text-decoration: none;
    transition: background-color .16s ease;
}
.v2sl-btn:hover { background: #35302a; }
/* 앨범 URL 미입력 셀러 — 링크가 아니라 상태 표시다(막다른 링크 방지) */
.v2sl-btn--off { background: #f2efe9; color: #8a8378; border-color: #e2ddd5; cursor: default; }
.v2sl-btn--off:hover { background: #f2efe9; }
.v2sl-btn:focus-visible { outline: 2px solid #1c1813; outline-offset: 2px; }

/* ---- 빈 결과 / 안내 ---- */
.v2sl-empty {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 46px 18px; border: 1px solid #e8e3db; border-radius: 14px; background: #fff;
    text-align: center;
}
.v2sl-empty strong { font-size: 14px; color: #1c1813; }
.v2sl-empty span { font-size: 12.5px; color: #8a8378; }
.v2sl-empty a { margin-top: 6px; font-size: 13px; font-weight: 700; color: #1c1813; }

.v2sl-guide { margin-top: 26px; padding: 18px 16px; border: 1px solid #e8e3db; border-radius: 14px; background: #fdfcfa; }
.v2sl-guide h2 { margin: 0 0 8px; font-size: 15px; font-weight: 800; color: #1c1813; }
.v2sl-guide p { margin: 0; font-size: 13px; line-height: 1.7; color: #6b655c; word-break: keep-all; }
.v2sl-guide a { color: #1c1813; font-weight: 700; }
.v2sl-guide-links { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px !important; }
.v2sl-guide-links a { font-size: 13px; text-decoration: none; }
.v2sl-guide-links a:hover { text-decoration: underline; }

/* ---- 반응형 ---- */
@media (max-width: 380px) {
    .v2sl-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 768px) {
    .v2sl { padding: 0 24px 48px; }
    .v2sl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
    .v2sl-head h1 { font-size: 26px; }
    .v2sl-name { font-size: 15px; }
}
@media (min-width: 1024px) {
    .v2sl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
    .v2sl-card { padding: 12px; }
}
@media (min-width: 1440px) {
    .v2sl-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    .v2sl-card, .v2sl-btn, .v2sl-chip { transition: none; }
    .v2sl-card:hover { transform: none; }
}
