/* 사이트 공통 스타일. Bootstrap 5.3.9 위에 필요한 것만 덧붙인다. */

:root {
    --site-max-width: 1200px;
}

body {
    font-family: "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Segoe UI", sans-serif;
    word-break: keep-all;
}

.site-header .nav-link {
    font-weight: 600;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* 에디터로 쓴 본문: 작성 화면과 같은 모양으로 보이게 */
.content-body img {
    max-width: 100%;
    height: auto;
}

.content-body table {
    max-width: 100%;
    border-collapse: collapse;
}

.content-body iframe {
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
}

/* 게시글 본문(에디터 HTML): 이미지·표·영상이 화면 밖으로 넘치지 않게 */
.board-content { overflow-wrap: anywhere; line-height: 1.75; }
.board-content img { max-width: 100%; height: auto; }
.board-content table { max-width: 100%; border-collapse: collapse; }
.board-content td, .board-content th { border: 1px solid var(--bs-border-color); padding: .35rem .5rem; }
.board-content iframe { max-width: 100%; aspect-ratio: 16 / 9; height: auto; }
.board-list a { word-break: break-all; }
.table-warning-subtle > td { background-color: var(--bs-warning-bg-subtle); }

/* 메인 큰 배너 */
.main-visual-img { max-height: 560px; object-fit: cover; }

/* 메인 팝업: PC는 관리자가 정한 위치·크기, 모바일은 가운데 */
.site-popup { position: fixed; z-index: 1080; left: var(--popup-x); top: var(--popup-y); width: var(--popup-w); max-width: calc(100vw - 2rem); }
.site-popup-body { max-height: var(--popup-h); overflow: auto; }
.site-popup-body img { display: block; width: 100%; height: auto; }
@media (max-width: 767.98px) {
    .site-popup { left: 1rem; right: 1rem; top: 4rem; width: auto; }
    .site-popup-body { max-height: 70vh; }
}

/* 상품 카드 */
.product-card:hover { box-shadow: var(--bs-box-shadow-sm); }
