/* 쇼핑, 새 디자인 (Controls/V2/V2Shop, 쪽 81). 2026년 10월.
   목록은 예전 ShopList 그대로 (Shop.css) 이고, 여기서 그 조각들을 새 모습으로 바꾸고
   오른쪽 칸과 아래 띠를 그린다. 머리의 틀은 게시판 것 (V2Board.css .v2-bh) 이다. */

.v2-shop { font-family: var(--v2-font); color: var(--v2-text); }
.v2-shop a { text-decoration: none; }
.v2-shop-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; margin-top: 24px; }
.v2-shop-main, .v2-shop-side { min-width: 0; }
.v2-shop-side { display: flex; flex-direction: column; gap: 18px; }

/* ---------- ShopList 의 조각들 ---------- */
.v2-shop .shop-wrap { padding: 0 !important; }
.v2-shop .shop-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px !important; }
.v2-shop .shop-head h1 { display: flex; align-items: baseline; gap: 8px; margin: 0; padding-left: 12px; border-left: 4px solid var(--v2-primary);
    font-family: var(--v2-font); font-size: 20px; font-weight: 900; color: var(--v2-navy); }
.v2-shop .shop-head .shop-count { margin: 0; font-size: 13px; color: var(--v2-muted); }
.v2-shop .shop-head .shop-head-links { position: static; display: flex; gap: 8px; }
.v2-shop .shop-head .shop-cart-link { margin: 0; padding: 8px 16px; border: 1px solid var(--v2-line); border-radius: 20px; background: #fff; font-size: 13.5px; font-weight: 700; color: #4b5162; }
.v2-shop .shop-head .shop-cart-link:hover { border-color: var(--v2-primary); background: var(--v2-primary-soft); color: var(--v2-primary); }

.v2-shop .shop-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 20px; padding: 0 0 16px; border-bottom: 1px solid var(--v2-line); overflow: visible; }
.v2-shop .shop-toolbar .shop-cats, .v2-shop .shop-toolbar .shop-sort { float: none; display: flex; flex-wrap: wrap; gap: 6px; }
.v2-shop .shop-toolbar .shop-cats a { margin: 0; padding: 8px 18px; border: 1px solid var(--v2-line); border-radius: 20px; background: #fff; font-size: 14px; font-weight: 700; color: #4b5162; }
.v2-shop .shop-toolbar .shop-cats a:hover { border-color: #cdbff6; background: var(--v2-primary-soft); color: var(--v2-primary); }
.v2-shop .shop-toolbar .shop-cats a.is-on { border-color: var(--v2-primary); background: var(--v2-primary); color: #fff; }
.v2-shop .shop-toolbar .shop-sort a { margin: 0; padding: 4px 8px; border-radius: 8px; background: none; font-size: 13px; color: var(--v2-muted); }
.v2-shop .shop-toolbar .shop-sort a:hover { color: var(--v2-primary); background: none; }
.v2-shop .shop-toolbar .shop-sort a.is-on { background: none; color: var(--v2-navy); font-weight: 700; }

.v2-shop .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 18px; }
.v2-shop .shop-card a { display: flex; flex-direction: column; height: 100%; padding: 12px; border: 1px solid var(--v2-line); border-radius: 16px; background: #fff;
    transition: border-color .15s, box-shadow .15s, transform .15s; }
.v2-shop .shop-card a:hover { border-color: #cdbff6; box-shadow: 0 10px 24px rgba(107, 63, 224, .10); transform: translateY(-2px); }
.v2-shop .shop-card .shop-thumb { border: 0; border-radius: 12px; background: var(--v2-bg); }
.v2-shop .shop-card a:hover .shop-thumb { border: 0; box-shadow: none; }
.v2-shop .shop-card .shop-name { margin: 12px 2px 4px; font-size: 15px; font-weight: 700; color: var(--v2-text); }
.v2-shop .shop-card a:hover .shop-name { text-decoration: none; color: var(--v2-primary); }
.v2-shop .shop-card .shop-desc { margin: 0 2px 8px; font-size: 12.5px; color: var(--v2-muted); }
.v2-shop .shop-card .shop-price { margin: auto 2px 0; font-size: 19px; font-weight: 900; color: var(--v2-pink); }
.v2-shop .shop-was { font-size: 13px; color: #a3a9b8; }
.v2-shop .shop-card .shop-soldout { background: rgba(255, 255, 255, .78); color: #dc2626; }
.v2-shop .shop-empty { padding: 48px 0; border: 1px dashed var(--v2-line); border-radius: 16px; background: #fff; }

/* ---------- 아래 띠: 판매자 모집 ---------- */
.v2-sh-band { position: relative; display: flex; align-items: center; gap: 18px; margin-top: 32px; padding: 22px 26px; border-radius: 16px; overflow: hidden;
    background: linear-gradient(110deg, #f4efff 0%, #fbf3fa 55%, #e9f1ff 100%); border: 1px solid #e6dcfb; }
.v2-sh-band-icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 16px;
    background: linear-gradient(135deg, #7c4dff, #5b3ad6); color: #fff; box-shadow: 0 8px 18px rgba(107, 63, 224, .25); }
.v2-sh-band-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.v2-sh-band-text b { font-size: 18px; font-weight: 900; color: var(--v2-navy); }
.v2-sh-band-text span { font-size: 13.5px; color: #4b5162; }
.v2-shop a.v2-sh-band-go { flex: 0 0 auto; padding: 12px 22px; border-radius: 12px; background: var(--v2-primary); color: #fff; font-size: 14px; font-weight: 700; }
.v2-shop a.v2-sh-band-go:hover { background: #5a30c8; }

/* ---------- 오른쪽: 판매자 신청하기 ---------- */
.v2-sh-seller { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: center; padding: 22px; border-radius: 16px; overflow: hidden; color: #fff;
    background: linear-gradient(135deg, #7c4dff 0%, #5b3ad6 100%); }
.v2-sh-seller::after { content: ''; position: absolute; right: -24px; bottom: -24px; width: 110px; height: 110px; border-radius: 22px; transform: rotate(-12deg); background: rgba(255, 255, 255, .12); }
.v2-sh-seller-icon { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 15px; background: rgba(255, 255, 255, .18); }
.v2-sh-seller > div { display: flex; flex-direction: column; gap: 4px; }
.v2-sh-seller b { font-size: 18px; font-weight: 900; }
.v2-sh-seller > div span { font-size: 13px; line-height: 1.55; color: rgba(255, 255, 255, .92); }
.v2-sh-mail { position: relative; z-index: 1; grid-column: 1 / -1; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .16); font-size: 13px; user-select: all; }
.v2-sh-mail b { font-size: 14px; }
.v2-shop a.v2-sh-seller-go { position: relative; z-index: 1; grid-column: 1 / -1; justify-self: stretch; text-align: center; padding: 11px 18px; border-radius: 22px; background: #fff; color: var(--v2-primary); font-size: 14px; font-weight: 700; }
.v2-shop a.v2-sh-seller-go:hover { background: var(--v2-primary-soft); }

/* ---------- 오른쪽: 주문/배송 안내, 쇼핑 가이드 ---------- */
.v2-sh-box { padding: 18px 18px 16px; border: 1px solid var(--v2-line); border-radius: 16px; background: #fff; }
.v2-sh-box h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-family: var(--v2-font); font-size: 17px; font-weight: 900; color: var(--v2-navy); }
.v2-sh-h-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; background: var(--v2-primary-soft); color: var(--v2-primary); }
.v2-sh-steps { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.v2-sh-steps li { display: flex; gap: 12px; margin: 0; }
.v2-sh-step-icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #f3f0fd; color: var(--v2-primary); }
.v2-sh-steps b { display: block; font-size: 14px; color: var(--v2-text); }
.v2-sh-steps li > div > span { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.55; color: var(--v2-muted); }
.v2-sh-steps a, .v2-sh-guide a { color: var(--v2-primary); font-weight: 700; }
.v2-shop a.v2-sh-help { display: block; padding: 11px 16px; border-radius: 12px; background: var(--v2-primary); color: #fff; text-align: center; font-size: 14px; font-weight: 700; }
.v2-shop a.v2-sh-help:hover { background: #5a30c8; }
.v2-sh-guide details { border-bottom: 1px solid var(--v2-line); }
.v2-sh-guide details:last-child { border-bottom: 0; }
.v2-sh-guide summary { display: flex; align-items: center; gap: 10px; padding: 11px 2px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 700; color: var(--v2-text); }
.v2-sh-guide summary::-webkit-details-marker { display: none; }
.v2-sh-guide summary::before { content: '\203A'; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 6px;
    background: var(--v2-primary-soft); color: var(--v2-primary); font-size: 16px; line-height: 1; transition: transform .15s; }
.v2-sh-guide details[open] summary::before { transform: rotate(90deg); }
.v2-sh-guide summary:hover { color: var(--v2-primary); }
.v2-sh-guide p { margin: 0 0 10px 30px; font-size: 13px; line-height: 1.65; color: #4b5162; }

@media (max-width: 1100px) {
    .v2-shop-cols { grid-template-columns: minmax(0, 1fr); }
    .v2-shop-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .v2-shop .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
    .v2-shop-side { grid-template-columns: minmax(0, 1fr); }
    .v2-sh-band { flex-direction: column; align-items: flex-start; }
}
