/* ============================================================
   THEME B — 화이트 + 딥네이비 미니멀 (프리미엄)
   [data-theme="b"] 스코프에서만 적용. A(기본)는 영향 없음.
   PC / 모바일 공통 (반응형은 기존 mobile-responsive.css 위에 얹힘).
   구매자 전체 화면: seller_public / cart / buyer_profile / login
   ============================================================ */

[data-theme="b"] {
    /* ── 컬러 토큰 재정의 (대부분 컴포넌트가 이 변수를 사용) ── */
    --ig-primary: #1b2a4a;          /* deep navy */
    --ig-primary-hover: #2c3e63;
    --ig-dark: #18202e;
    --ig-gray: #7a8190;
    --ig-light-gray: #e6e8ec;       /* hairline border */
    --ig-bg-gray: #ffffff;
    --ig-white: #ffffff;
    --ig-danger: #c0392b;
    --ig-success: #1f7a4d;

    /* 라운드: 미니멀하게 살짝 줄임 */
    --ig-radius-sm: 2px;
    --ig-radius-md: 6px;
    --ig-radius-lg: 8px;

    /* 그림자: 네이비 톤의 아주 옅은 그림자 */
    --ig-shadow-sm: 0 1px 2px rgba(27, 42, 74, 0.05);
    --ig-shadow-md: 0 4px 14px rgba(27, 42, 74, 0.07);
    --ig-shadow-lg: 0 10px 30px rgba(27, 42, 74, 0.10);

    background: #ffffff;
    color: #18202e;
    letter-spacing: -0.01em;
}

/* 페이지 전체 배경 흰색 통일 */
[data-theme="b"],
[data-theme="b"] .ig-main,
[data-theme="b"] .cart-page-shell,
[data-theme="b"] .ig-container {
    background: #ffffff;
}

/* ── 상단 네비게이션 ── */
[data-theme="b"] .ig-nav {
    background: #ffffff;
    border-bottom: 1px solid #ececef;
    box-shadow: none;
}
[data-theme="b"] .ig-nav-logo,
[data-theme="b"] .ig-nav-logo * {
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #1b2a4a;
}

/* ── 프로필 헤더 ── */
[data-theme="b"] .ig-profile-avatar {
    border: 2px solid #e6e8ec;
    box-shadow: var(--ig-shadow-md);
}
/* 라이브 ON 일 때만 강조 링 (기존 그라데이션 대신 네이비 링) */
[data-theme="b"] .ig-profile-avatar.is-live {
    background: #1b2a4a;
    border-color: #1b2a4a;
}
[data-theme="b"] .ig-profile-name,
[data-theme="b"] #profileOwnerName {
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #18202e;
}
[data-theme="b"] .ig-profile-description {
    color: #7a8190;
}

/* ── 카테고리 탭 (언더라인 스타일) ── */
[data-theme="b"] .ig-tabs-scrollable {
    border-top: none;
    border-bottom: 1px solid #edeff3;
    justify-content: center;
    padding: 0 6px;
    background: #ffffff;
}
[data-theme="b"] .ig-tab,
[data-theme="b"] .ig-tabs-scrollable .ig-tab {
    border-radius: 0;
    border: none;
    margin-top: 0;
    background: transparent;
    color: #939aa6;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
    font-size: 13px;
    padding: 15px 15px;
    position: relative;
    transition: color 0.15s ease;
}
[data-theme="b"] .ig-tab i { font-size: 12px; opacity: 0.85; }
[data-theme="b"] .ig-tab.active {
    background: transparent;
    color: #1b2a4a;
    border: none;
    font-weight: 700;
}
[data-theme="b"] .ig-tab.active::after {
    content: '';
    position: absolute;
    left: 15px; right: 15px; bottom: -1px;
    height: 2.5px;
    background: #1b2a4a;
    border-radius: 3px 3px 0 0;
}
[data-theme="b"] .ig-tab:hover:not(.active) { color: #5b6270; }

/* ── 상품 그리드 / 카드 ── */
[data-theme="b"] .ig-product-grid {
    gap: 18px;
}
[data-theme="b"] .ig-product-item {
    background: #ffffff;
    border: 1px solid #ececef;
    border-radius: 6px;
    box-shadow: none;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
[data-theme="b"] .ig-product-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(27, 42, 74, 0.10);
    border-color: #d7dbe2;
}
[data-theme="b"] .ig-product-image {
    background: #f4f5f7;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
[data-theme="b"] .ig-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
[data-theme="b"] .ig-product-item:hover .ig-product-image img {
    transform: scale(1.04);
}
[data-theme="b"] .ig-product-info {
    padding: 13px 14px 16px;
}
[data-theme="b"] .ig-product-title {
    line-height: 1.4;
    margin-bottom: 6px;
}
[data-theme="b"] .ig-product-title {
    font-weight: 500;
    color: #2a3142;
    letter-spacing: -0.01em;
}
[data-theme="b"] .ig-product-price {
    font-weight: 700;
    color: #1b2a4a;
    font-size: 16px;
    letter-spacing: 0;
}

/* ── 버튼 ── */
[data-theme="b"] .ig-btn {
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
[data-theme="b"] .ig-btn:active { transform: translateY(1px); }
[data-theme="b"] .ig-btn-primary {
    background: #1b2a4a;
    border: 1px solid #1b2a4a;
    color: #ffffff;
    box-shadow: none;
}
[data-theme="b"] .ig-btn-primary:hover {
    background: #2c3e63;
    border-color: #2c3e63;
}
/* 카카오 로그인 버튼은 브랜드 색 유지 (가독성) */
[data-theme="b"] .ig-kakao-login-btn {
    border-radius: 6px;
    font-weight: 700;
}

/* ── 입력/폼 ── */
[data-theme="b"] .ig-input,
[data-theme="b"] input[type="text"],
[data-theme="b"] input[type="number"],
[data-theme="b"] input[type="tel"],
[data-theme="b"] input[type="email"],
[data-theme="b"] input[type="url"],
[data-theme="b"] input[type="datetime-local"],
[data-theme="b"] select,
[data-theme="b"] textarea {
    border-radius: 4px;
    border-color: #d9dde4;
}
[data-theme="b"] .ig-input:focus,
[data-theme="b"] input:focus,
[data-theme="b"] select:focus,
[data-theme="b"] textarea:focus {
    border-color: #1b2a4a;
    outline: none;
    box-shadow: 0 0 0 3px rgba(27, 42, 74, 0.10);
}

/* ── 콘텐츠 섹션 / 카드 / 리스트 ── */
[data-theme="b"] .ig-content-section,
[data-theme="b"] .ig-card,
[data-theme="b"] .ig-order-card {
    background: #ffffff;
    border: 1px solid #ececef;
    border-radius: 8px;
    box-shadow: var(--ig-shadow-sm);
}
[data-theme="b"] .ig-content-section-title {
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #18202e;
}
[data-theme="b"] .ig-list-item {
    border-color: #f0f1f4;
}

/* ── 모달 ── */
[data-theme="b"] .ig-modal-content {
    border-radius: 10px;
    box-shadow: 0 24px 60px rgba(27, 42, 74, 0.22);
}
[data-theme="b"] .ig-modal-header,
[data-theme="b"] .ig-modal-footer {
    border-color: #eef0f3;
}
[data-theme="b"] .ig-product-detail-price,
[data-theme="b"] #modalProductPrice,
[data-theme="b"] #modalTotalPrice {
    color: #1b2a4a;
}

/* ── 하단 모바일 네비게이션 (프리미엄) ── */
[data-theme="b"] .ig-bottom-nav {
    height: 62px;
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-top: 1px solid #edeff3;
    box-shadow: 0 -6px 22px rgba(27, 42, 74, 0.07);
}
[data-theme="b"] .ig-bottom-nav-item {
    position: relative;
    color: #9aa1ad !important;
    padding: 7px 0 6px !important;
    transition: color 0.15s ease;
}
[data-theme="b"] .ig-bottom-nav-item i {
    font-size: 19px !important;
    margin-bottom: 4px !important;
    transition: transform 0.15s ease;
}
[data-theme="b"] .ig-bottom-nav-item span {
    font-size: 10.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
}
[data-theme="b"] .ig-bottom-nav-item.active {
    color: #1b2a4a !important;
}
[data-theme="b"] .ig-bottom-nav-item.active i {
    transform: translateY(-1px);
}
/* active 상단 인디케이터 바 */
[data-theme="b"] .ig-bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: #1b2a4a;
}
[data-theme="b"] .ig-bottom-nav-item:active i {
    transform: scale(0.88);
}

/* ── 장바구니 결제 버튼 ── */
[data-theme="b"] .checkout-btn {
    background: #1b2a4a !important;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: none;
}
[data-theme="b"] .checkout-btn:hover { background: #2c3e63 !important; }
[data-theme="b"] .checkout-btn:disabled { background: #b9bfca !important; }

/* ── 공지 / 강조 영역 ── */
[data-theme="b"] .ig-announcement {
    background: #f7f8fa;
    border: 1px solid #ececef;
    border-radius: 8px;
}
[data-theme="b"] .ig-announcement-title { color: #1b2a4a; }

/* ── 사이트 푸터(공통 site-footer.js) ── */
[data-theme="b"] .lc-site-footer,
[data-theme="b"] footer {
    background: #f7f8fa;
    border-top: 1px solid #ececef;
    color: #6b7280;
}

/* ── 데스크탑 여백 강화 (미니멀 = 넓은 여백) ── */
@media (min-width: 768px) {
    [data-theme="b"] .ig-container { padding-left: 28px; padding-right: 28px; }
    [data-theme="b"] .ig-product-grid { gap: 22px; }
}
