/*
 * jj_shop_lat / style.css
 * SHOP 상품용 정적 그리드 카드 스타일
 * ★ 모든 색상은 data-attribute와 CSS 변수를 통해 JSON에서 전달받음 ★
 */

/* ── 카드 링크 리셋 ── */
.jj-shop-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    transition: transform .3s ease, box-shadow .3s ease;
}

.jj-shop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* ── 썸네일 래퍼 ── */
.jj-shop-card .jj-shop-card-thumb {
    position: relative;
    overflow: hidden;
    background: #1a1a1a;
    width: 100%;
    flex-shrink: 0;
}

.jj-shop-card .jj-shop-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.jj-shop-card:hover .jj-shop-card-thumb img {
    transform: scale(1.05);
}

.jj-shop-card .jj-shop-card-thumb i {
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* ── 배지 (★ 색상은 data-attribute에서 CSS 변수로 전달됨) ── */
.jj-shop-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    z-index: 2;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    white-space: nowrap;
    max-width: calc(100% - 16px);
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── 카드 하단 ── */
.jj-shop-card .jj-shop-card-foot {
    padding: 12px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 50px;
}

.jj-shop-card .jj-shop-card-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    text-align: center;
}

/* ── 빈 상태 ── */
.jj-shop-empty {
    padding: 40px 20px;
    text-align: center;
    font-size: 14px;
    border: 1px dashed;
    border-radius: 12px;
}

/* ── 탭 패널 내 여백 ── */
.fv-proc-panel .jj-shop-grid-wrap {
    padding: 8px 0;
}

/* ── 모바일 ── */
@media (max-width: 640px) {
    .jj-shop-card .jj-shop-card-foot {
        padding: 10px 12px;
        min-height: 44px;
    }
    .jj-shop-card .jj-shop-card-title {
        font-size: 12px;
    }
    .jj-shop-badge {
        top: 6px;
        left: 6px;
        font-size: 9px;
        padding: 2px 8px;
    }
    .jj-shop-card .jj-shop-card-thumb i {
        font-size: 28px;
    }
}