/**
 * WWIZSELLER Storefront — basic frame skin
 *
 * 무채색 흑백 · 각진 모서리 · 넉넉한 여백 · 가변 컨테이너.
 * 값은 tokens.css(Tier 2 semantic)만 소비한다 → 다크 토큰을 켜면 그대로 반전된다.
 *
 * [구성]
 *   1. 프레임 변수 · 리셋 · 기본
 *   2. 공용 부품   .btn .field .input .select .textarea .checkbox .radio .alert
 *                  .chip .badge .price .empty-state .page-head .visually-hidden
 *   3. 레이아웃   .mublo-container .mublo-content(--wide/--narrow/--flush) .mublo-layout
 *   4. 헤더 · GNB · 모바일 패널
 *   5. 푸터
 *   6. 플러그인 공용(SNS 로그인) · 하위 호환(테마 스위치)
 *
 * 중단점: 768(태블릿) · 1024(데스크톱) · 1440(넓은 화면). 리터럴 px 를 쓴다.
 */

/* ========================================
   1. 프레임 변수 · 리셋 · 기본
   ======================================== */
/* 직각 원칙 — 프론트는 모서리를 두지 않는다. 반경 토큰을 모두 0 으로 덮고,
   관리자와 같이 쓰는 공용 부품(모달·알림·회원 메뉴·커스텀 필드)도 여기서 덮는다.
   원으로 남기는 것은 회전 스피너와 라디오 표시뿐이다. */
:root {
    --radius: 0;
    --radius-control: 0;
    --radius-card: 0;
    --radius-pill: 0;
    --radius-xs: 0;
    --radius-sm: 0;
    --radius-md: 0;
    --radius-lg: 0;
    --radius-xl: 0;
    --radius-2xl: 0;
    --radius-3xl: 0;
    --radius-4xl: 0;
    --radius-full: 0;
}
html body :is(
    .customModal-content, .customModal-header .closex, .customModal-btn, .customModal-input,
    .mublo-toast, .mublo-alert, .mublo-alert__btn,
    .mublo-mam__button, .mublo-mam__list, .mublo-mam__item,
    .form-control, .form-select, .btn, .badge, .card, .dropdown-menu, .alert, .nav-pills .nav-link
) {
    border-radius: 0;
}

:root {
    color-scheme: light;

    /* 레거시 이름 → semantic (패키지·플러그인 CSS 호환) */
    --color-primary:       var(--primary);
    --color-primary-hover: var(--primary);
    --color-secondary:     var(--secondary-foreground);
    --color-text:          var(--foreground);
    --color-text-muted:    var(--muted-foreground);
    --color-bg:            var(--background);
    --color-bg-secondary:  var(--muted);
    --color-border:        var(--border);

    /* 헤더 전체 높이(윗줄 + GNB) — 상세 하단 바·앵커 오프셋 계산용 */
    --header-height: calc(var(--header-top-height) + var(--gnb-height));
    --sidebar-left-width: 240px;
    --sidebar-right-width: 300px;

    /* 본문 상하 여백 — 일반 페이지(.mublo-content) 위아래 숨 */
    --content-gutter-y: clamp(24px, 1.5vw + 16px, 48px);
    --content-gutter-bottom: clamp(56px, 3vw + 40px, 112px);
    /* 하위 호환: 일부 스킨이 좌우 거터로 참조 */
    --content-gutter-x: var(--gutter);

    /* 공용 페이지네이션(views/Components/pagination.php) — 각진 칸, 현재 쪽 검정 */
    --pagination-item-size: 36px;
    --pagination-gap: 4px;
    --pagination-font-size: var(--text-caption);
    --pagination-border-radius: 0;
    --pagination-color: var(--muted-foreground);
    --pagination-hover-bg: var(--muted);
    --pagination-hover-color: var(--foreground);
    --pagination-active-bg: var(--primary);
    --pagination-active-color: var(--primary-foreground);
    --pagination-disabled-color: var(--border);
}

.dark,
[data-theme="dark"] {
    color-scheme: dark;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--gnb-height) + 16px);
}

body {
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: var(--text-body-lh);
    letter-spacing: var(--tracking-body);
    color: var(--foreground);
    background-color: var(--background);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: var(--tracking-heading);
    line-height: 1.3;
}

input, textarea, select, button, optgroup {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    color: inherit;
}

button { cursor: pointer; }

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

img, svg, video {
    max-width: 100%;
    height: auto;
}

ul[role="list"], ol[role="list"] { list-style: none; }

:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

::selection {
    background: var(--foreground);
    color: var(--background);
}

/* 스크린리더 전용 (visually hidden) */
.visually-hidden,
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================================================
   2. 공용 부품 (프레임 스킨 소유 디자인 프리미티브)

   [어휘]
     버튼  : .btn + .btn--primary/secondary/outline/ghost/danger/link + .btn--sm/lg/xl/block
     폼    : .field(.field__label/__help/__error) · .input · .select · .textarea
             .checkbox · .radio · .input-group
     알림  : .alert + .alert--success/danger/warning/info
     몰    : .chip · .badge(--sale/--new/--soldout/--outline) · .price · .empty-state · .page-head
   ======================================================================== */

/* ---------- Button ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0 1.25rem;
    font-size: var(--text-body-sm);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    border: 1px solid transparent;
    border-radius: 0;
    background: transparent;
    color: var(--foreground);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s, opacity 0.15s;
}
.btn:disabled,
.btn.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.btn--primary {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--primary-foreground);
}
.btn--primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }

.btn--secondary {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--secondary-foreground);
}
.btn--secondary:hover {
    background: color-mix(in srgb, var(--secondary) 88%, var(--foreground));
}

.btn--outline {
    background: var(--background);
    border-color: var(--input);
    color: var(--foreground);
}
.btn--outline:hover { border-color: var(--foreground); }

.btn--ghost:hover { background: var(--muted); }

.btn--danger {
    background: var(--destructive);
    border-color: var(--destructive);
    color: var(--destructive-foreground);
}
.btn--danger:hover { opacity: 0.88; }

.btn--link {
    min-height: auto;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
}

.btn--sm { min-height: 34px; padding: 0 0.875rem; font-size: var(--text-caption); }
.btn--lg { min-height: 52px; padding: 0 1.75rem; font-size: var(--text-body); }
.btn--xl { min-height: 60px; padding: 0 2rem; font-size: var(--text-body-lg); font-weight: 700; }
.btn--block { display: flex; width: 100%; }
.btn--icon { padding: 0; width: 44px; }

/* ---------- Form ---------- */
.field { margin-bottom: 1.25rem; }
.field__label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: var(--text-body-sm);
    font-weight: 600;
    color: var(--foreground);
}
.field__help {
    margin-top: 0.375rem;
    font-size: var(--text-caption);
    color: var(--muted-foreground);
}
.field__error {
    margin-top: 0.375rem;
    font-size: var(--text-caption);
    color: var(--destructive);
}

.input,
.select,
.textarea {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 0.625rem 0.875rem;
    font-size: var(--text-body-sm);
    line-height: 1.4;
    color: var(--foreground);
    background: var(--card);
    border: 1px solid var(--input);
    border-radius: 0;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder,
.textarea::placeholder { color: var(--subtle-foreground); }

.input:hover,
.select:hover,
.textarea:hover { border-color: color-mix(in srgb, var(--input) 50%, var(--foreground)); }

.input:focus,
.select:focus,
.textarea:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: inset 0 0 0 1px var(--ring);
}
.input:disabled,
.select:disabled,
.textarea:disabled {
    background: var(--muted);
    color: var(--muted-foreground);
    cursor: not-allowed;
}
.input[readonly] { background: var(--surface); }

.textarea { min-height: 120px; resize: vertical; }

.select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    background-size: 1rem;
}

.checkbox,
.radio {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--text-body-sm);
    color: var(--foreground);
    cursor: pointer;
}
.checkbox input,
.radio input {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: var(--foreground);
    cursor: pointer;
}

.input-group { display: flex; align-items: stretch; }
.input-group > .input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.input-group > .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    margin-left: -1px;
}

/* ---------- Alert ---------- */
.alert {
    padding: 0.875rem 1rem;
    border: 1px solid transparent;
    border-radius: 0;
    font-size: var(--text-body-sm);
}
.alert--success {
    background: var(--success-subtle);
    color: var(--success-subtle-foreground);
    border-color: var(--success-subtle-border);
}
.alert--danger {
    background: var(--danger-subtle);
    color: var(--danger-subtle-foreground);
    border-color: var(--danger-subtle-border);
}
.alert--warning {
    background: var(--warning-subtle);
    color: var(--warning-subtle-foreground);
    border-color: var(--warning-subtle-border);
}
.alert--info {
    background: var(--surface);
    color: var(--foreground);
    border-color: var(--border);
}

/* ---------- Chip (필터·탭·태그) ---------- */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    min-height: 36px;
    padding: 0 1rem;
    border: 1px solid var(--border);
    border-radius: 0;
    background: var(--background);
    color: var(--foreground);
    font-size: var(--text-caption);
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
}
.chip:hover { border-color: var(--foreground); }
.chip.is-active,
.chip[aria-pressed="true"],
.chip[aria-selected="true"] {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--primary-foreground);
    font-weight: 600;
}
.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.chip-group--scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--gutter);
}
.chip-group--scroll::-webkit-scrollbar { display: none; }
.chip-group--scroll > .chip { scroll-snap-align: start; }

/* ---------- Badge ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 0.4375rem;
    border-radius: 0;
    background: var(--badge);
    color: var(--badge-foreground);
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
}
.badge--sale { background: var(--sale); color: var(--sale-foreground); }
.badge--new { background: var(--background); color: var(--foreground); box-shadow: inset 0 0 0 1px var(--foreground); }
.badge--soldout { background: var(--soldout); color: var(--background); }
.badge--outline { background: transparent; color: var(--muted-foreground); box-shadow: inset 0 0 0 1px var(--border); }
.badge--muted { background: var(--muted); color: var(--muted-foreground); }

/* ---------- Price ---------- */
.price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 0.375rem;
    row-gap: 0;
    font-variant-numeric: tabular-nums;
}
.price__rate {
    color: var(--sale);
    font-weight: 800;
}
.price__current {
    color: var(--price);
    font-weight: 700;
}
.price__unit { font-weight: 500; margin-left: 1px; }
.price__origin {
    color: var(--subtle-foreground);
    font-size: 0.86em;
    text-decoration: line-through;
}

/* ---------- Empty state ---------- */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: clamp(56px, 6vw, 96px) 1rem;
    text-align: center;
    color: var(--muted-foreground);
    font-size: var(--text-body-sm);
}
.empty-state__icon {
    font-size: 2.25rem;
    line-height: 1;
    color: var(--subtle-foreground);
}
.empty-state__title {
    color: var(--foreground);
    font-size: var(--text-body-lg);
    font-weight: 700;
}
.empty-state .btn { margin-top: 0.5rem; }

/* ---------- Page head (일반 페이지 제목줄) ---------- */
.page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    margin-bottom: clamp(20px, 1.5vw + 12px, 36px);
}
.page-head__title {
    font-size: var(--text-heading-1);
    font-weight: 800;
    letter-spacing: var(--tracking-heading);
    line-height: 1.25;
}
.page-head__desc {
    width: 100%;
    margin-top: 0.25rem;
    color: var(--muted-foreground);
    font-size: var(--text-body-sm);
}

/* 구역 제목 (페이지 안의 소제목) */
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.875rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-strong);
    font-size: var(--text-heading-3);
    font-weight: 700;
}

/* ---------- 사무형 부품 (계정·게시판·주문 화면 공용) ----------
   선은 가로줄만 쓴다. 표와 폼표는 윗선 2px 검정으로 시작하고, 칸 구분은 1px 회색.
   면(배경색)은 라벨 칸·머리 칸에만 아주 옅게 쓴다. */

/* 구역 머리: 제목 + 오른쪽 보조(건수·전체보기) */
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.875rem;
}
.section-head__title {
    font-size: var(--text-heading-3);
    font-weight: 700;
    letter-spacing: var(--tracking-heading);
}
.section-head__meta {
    font-size: var(--text-caption);
    color: var(--muted-foreground);
}
.section-head__more {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: var(--text-caption);
    color: var(--muted-foreground);
}
.section-head__more::after {
    content: '';
    width: 6px;
    height: 6px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-left: 2px;
}
.section-head__more:hover { color: var(--foreground); }
.section:not(:first-child),
.section-gap { margin-top: clamp(40px, 3vw, 56px); }
.page-head + .section { margin-top: 0; }

/* 목록 위 한 줄: 총 건수 + 정렬·필터 */
.list-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 0.75rem;
    font-size: var(--text-caption);
    color: var(--muted-foreground);
}
.list-bar strong { color: var(--foreground); font-weight: 700; }

/* 표 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 2px solid var(--foreground);
    font-size: var(--text-body-sm);
}
.data-table th,
.data-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}
.data-table thead th {
    background: var(--surface);
    font-size: var(--text-caption);
    font-weight: 600;
    color: var(--muted-foreground);
    white-space: nowrap;
}
.data-table .is-center { text-align: center; }
.data-table .is-right { text-align: right; }
.data-table .is-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table .is-muted { color: var(--muted-foreground); }
.data-table .is-nowrap { white-space: nowrap; }
.data-table .is-shrink { width: 1%; white-space: nowrap; }
.data-table a:hover { text-decoration: underline; text-underline-offset: 3px; }
.data-table__empty td {
    padding: 64px 12px;
    text-align: center;
    color: var(--muted-foreground);
}
/* 모바일: 행을 블록으로 쌓는다(td[data-label] 이 라벨이 된다) */
@media (max-width: 767px) {
    .data-table--stack thead { display: none; }
    .data-table--stack,
    .data-table--stack tbody,
    .data-table--stack tr,
    .data-table--stack td { display: block; width: 100%; }
    .data-table--stack tr { padding: 14px 0; border-bottom: 1px solid var(--border); }
    .data-table--stack td { padding: 3px 0; border: 0; text-align: left; }
    .data-table--stack td[data-label]::before {
        content: attr(data-label);
        display: inline-block;
        min-width: 72px;
        margin-right: 8px;
        color: var(--muted-foreground);
        font-size: var(--text-caption);
    }
    .data-table--stack .is-num,
    .data-table--stack .is-center,
    .data-table--stack .is-right { text-align: left; }
    .data-table--stack .data-table__empty td { padding: 48px 0; text-align: center; }
}

/* 폼표: 라벨 칸 + 입력 칸 */
.form-table {
    border-top: 2px solid var(--foreground);
}
.form-table__row {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    border-bottom: 1px solid var(--border);
}
.form-table__label {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: var(--surface);
    font-size: var(--text-body-sm);
    font-weight: 600;
}
.form-table__label.is-top { align-items: flex-start; padding-top: 24px; }
.form-table__req { color: var(--sale); margin-left: 3px; }
.form-table__field {
    min-width: 0;
    padding: 12px 16px;
    font-size: var(--text-body-sm);
}
.form-table__field > .input,
.form-table__field > .select { max-width: 420px; }
.form-table__field .input-group { max-width: 520px; }
.form-table__field .field__help { margin-top: 6px; }
.form-table__text { padding: 2px 0; }
@media (max-width: 767px) {
    .form-table__row { grid-template-columns: 1fr; }
    .form-table__label { padding: 14px 0 0; background: none; }
    .form-table__label.is-top { padding-top: 14px; }
    .form-table__field { padding: 8px 0 14px; }
    .form-table__field > .input,
    .form-table__field > .select,
    .form-table__field .input-group { max-width: none; }
}

/* 아래 버튼 줄 */
.form-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}
.form-actions > .btn { min-width: 160px; min-height: 52px; }
.form-actions--end { justify-content: flex-end; }
.form-actions--end > .btn { min-width: 0; min-height: 44px; }
@media (max-width: 767px) {
    .form-actions > .btn { flex: 1; min-width: 0; }
}

/* 요약 막대: 숫자를 세로선으로만 나눈다 */
.stat-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    border-top: 2px solid var(--foreground);
    border-bottom: 1px solid var(--border);
}
.stat-bar__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 20px;
    color: var(--foreground);
}
.stat-bar__item + .stat-bar__item { border-left: 1px solid var(--border); }
.stat-bar__label { font-size: var(--text-caption); color: var(--muted-foreground); }
.stat-bar__value {
    font-size: 1.5rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}
.stat-bar__value small { margin-left: 2px; font-size: var(--text-body-sm); font-weight: 500; }
a.stat-bar__item:hover .stat-bar__value { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 767px) {
    .stat-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-bar__item { padding: 16px 14px; }
    .stat-bar__item + .stat-bar__item { border-left: 0; }
    .stat-bar__item:nth-child(even) { border-left: 1px solid var(--border); }
    .stat-bar__item:nth-child(n+3) { border-top: 1px solid var(--border); }
    .stat-bar__value { font-size: 1.25rem; }
}

/* 안내 상자: 옅은 면 + 글자 */
.note-box {
    padding: 16px 20px;
    background: var(--surface);
    font-size: var(--text-caption);
    line-height: 1.7;
    color: var(--muted-foreground);
}
.note-box ul { margin: 0; padding-left: 1em; list-style: disc; }
.note-box strong { color: var(--foreground); }

/* 상태 글자(배지 대신 쓰는 사무형 표기) */
.status-text { font-weight: 600; white-space: nowrap; }
.status-text--done { color: var(--muted-foreground); }
.status-text--alert { color: var(--sale); }

/* ---------- 계정 화면 레이아웃: 글자 메뉴 + 본문 ---------- */
.account-layout {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: clamp(40px, 4vw, 80px);
    align-items: start;
}
.account-nav { min-width: 0; }
.account-nav__title {
    padding-bottom: 18px;
    font-size: var(--text-heading-1);
    font-weight: 800;
    letter-spacing: var(--tracking-heading);
}
.account-nav__user {
    padding: 16px 0;
    border-top: 2px solid var(--foreground);
    border-bottom: 1px solid var(--border);
    font-size: var(--text-body-sm);
}
.account-nav__user strong { display: block; font-size: var(--text-body); }
.account-nav__user span { color: var(--muted-foreground); font-size: var(--text-caption); }
.account-nav__group { padding: 20px 0 4px; }
.account-nav__group + .account-nav__group { border-top: 1px solid var(--border); }
.account-nav__group-title {
    margin-bottom: 8px;
    font-size: var(--text-body-sm);
    font-weight: 700;
}
.account-nav__link {
    display: block;
    padding: 6px 0;
    font-size: var(--text-body-sm);
    color: var(--muted-foreground);
}
.account-nav__link:hover { color: var(--foreground); }
.account-nav__link.is-active { color: var(--foreground); font-weight: 700; text-decoration: underline; text-decoration-color: var(--primary); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.account-nav__foot {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.account-nav__foot a { font-size: var(--text-caption); color: var(--subtle-foreground); }
.account-nav__foot a:hover { color: var(--foreground); }
.account-body { min-width: 0; }
.account-body > .page-head {
    padding-bottom: 18px;
    margin-bottom: 32px;
    border-bottom: 0;
}
@media (max-width: 1023px) {
    .account-layout { grid-template-columns: 1fr; gap: 24px; }
    .account-nav__title,
    .account-nav__user,
    .account-nav__group-title,
    .account-nav__foot { display: none; }
    .account-nav__groups {
        display: flex;
        gap: 20px;
        margin: 0 calc(-1 * var(--gutter));
        padding: 0 var(--gutter);
        overflow-x: auto;
        scrollbar-width: none;
        border-bottom: 1px solid var(--border);
    }
    .account-nav__groups::-webkit-scrollbar { display: none; }
    .account-nav__group,
    .account-nav__group + .account-nav__group { display: contents; border: 0; padding: 0; }
    .account-nav__link {
        flex: 0 0 auto;
        padding: 14px 0 12px;
        white-space: nowrap;
        border-bottom: 2px solid transparent;
    }
    .account-nav__link.is-active { text-decoration: none; border-bottom-color: var(--primary); }
    .account-body > .page-head { margin-bottom: 24px; }
}

/* ========================================
   3. 레이아웃 — 가변 컨테이너
   폭 = min(100% - 2×여백, 상한). 상한은 --container-max(도메인 설정 가능).
   ======================================== */
.mublo-container {
    width: min(100% - 2 * var(--gutter), var(--container-max));
    margin-inline: auto;
}

.mublo-content {
    width: min(100% - 2 * var(--gutter), var(--content-max-width));
    margin-inline: auto;
    padding-top: var(--content-gutter-y);
    padding-bottom: var(--content-gutter-bottom);
}

/* 입력·읽기 화면용 좁은 폭 (스킨이 클래스로 선택) */
.mublo-content--narrow { --content-max-width: var(--container-narrow); }

/* 와이드(메인·풀블리드): 프레임은 폭을 포기하고, 안쪽 contained 블록이 가변 컨테이너를 맡는다 */
.mublo-content--wide {
    width: 100%;
    max-width: none;
    padding: 0;
}
.mublo-content--wide .block-container:not(.block-container--wide) {
    width: min(100% - 2 * var(--gutter), var(--container-max));
    max-width: none;
    margin-inline: auto;
}
.mublo-content--flush { padding: 0; }
.mublo-content--flush-y { padding-block: 0; }
.mublo-content--flush-x { width: 100%; }

.mublo-main {
    flex: 1;
    position: relative;
    /* 푸터(z-index:1)보다 위 — 본문 안 fixed 요소(상세 하단 구매 바 등)가 푸터에 가리지 않게 */
    z-index: 2;
}

.mublo-layout {
    display: flex;
    gap: clamp(24px, 2vw, 48px);
}
.mublo-layout__content {
    flex: 1;
    min-width: 0;
}
.mublo-layout__sidebar--left {
    width: var(--sidebar-left-width);
    flex-shrink: 0;
}
.mublo-layout__sidebar--right {
    width: var(--sidebar-right-width);
    flex-shrink: 0;
}

/* ========================================
   4. 헤더
   윗줄(로고·검색·아이콘) + GNB 줄. 헤더 전체가 sticky 이고 top 이
   윗줄 높이만큼 음수라서, 스크롤하면 GNB 줄만 상단에 남는다.
   ======================================== */
.mublo-header {
    position: sticky;
    top: calc(-1 * var(--header-top-height));
    z-index: 1000;
    background: var(--background);
    border-bottom: 1px solid var(--border);
}
/* GNB 가 없으면(메뉴 미배치) 윗줄이 붙어 있어야 한다 */
.mublo-header:not(:has(.mublo-header__nav)) { top: 0; }

.mublo-header__top { height: var(--header-top-height); }

.mublo-header__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(16px, 2vw, 40px);
    height: 100%;
}

/* 로고 */
.mublo-header__logo { min-width: 0; }
.mublo-header__logo .logo-link {
    display: flex;
    align-items: center;
    min-height: 40px;
    font-size: 1.875rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    white-space: nowrap;
}
.mublo-header__logo .logo-text--main {
    overflow: hidden;
    text-overflow: ellipsis;
}
.mublo-header__logo .logo-img {
    display: block;
    max-height: 34px;
    max-width: 200px;
    width: auto;
}
.mublo-header__logo .logo-pc { display: block; }
.mublo-header__logo .logo-mobile { display: none; }

/* 검색 (데스크톱 윗줄 가운데) */
.mublo-header__search {
    justify-self: center;
    width: min(100%, 460px);
}
.header-search-form {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 0.375rem 0 1.25rem;
    border: 1px solid transparent;
    border-radius: 0;
    background: var(--muted);
    transition: border-color 0.15s, background-color 0.15s;
}
.header-search-form:focus-within {
    background: var(--background);
    border-color: var(--ring);
}
.header-search-input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    font-size: var(--text-body-sm);
    outline: none;
    color: var(--foreground);
}
.header-search-input::placeholder { color: var(--subtle-foreground); }
.header-search-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.header-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--foreground);
}

/* 오른쪽 아이콘 묶음 */
.mublo-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
}
.mublo-header__utility {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}
.mublo-header__utility-item--text a {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 0.5rem;
    font-size: var(--text-caption);
    font-weight: 500;
    color: var(--muted-foreground);
    white-space: nowrap;
}
.mublo-header__utility-item--text a:hover { color: var(--foreground); }

.mublo-header__icon-btn,
.mublo-header__notifications {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 0;
    color: var(--foreground);
}
.mublo-header__icon-btn .icon,
.mublo-header__notifications .icon {
    font-size: 1.3rem;    /* .icon = 1.25em → 26px — 로고 글자(30px) 대문자 높이와 맞춘다 */
    line-height: 1;
    stroke-width: 1.6;
}
.mublo-header__icon-btn:hover,
.mublo-header__notifications:hover { background: none; color: var(--muted-foreground); }
.mublo-header__icon-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}
.mublo-header__search-link { display: none; }

.mublo-header__notification-badge {
    position: absolute;
    top: 4px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--background);
    border-radius: 0;
    background: var(--primary);
    color: var(--primary-foreground);
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1;
}

/* 모바일 메뉴 토글 (데스크톱 숨김) */
.mublo-header__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-left: -10px;
    padding: 0 10px;
    border: 0;
    background: none;
}
.mublo-header__toggle .line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--foreground);
}
.mublo-header__toggle .line:nth-child(2) { width: 16px; }

/* ---------- GNB ---------- */
.mublo-header__nav {
    height: var(--gnb-height);
}
.mublo-header__nav .nav-wrapper { height: 100%; }
.mublo-header__nav .mublo-container { height: 100%; }

.mublo-menu__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mublo-header__nav .mublo-menu__list--depth-1 {
    display: flex;
    align-items: stretch;
    gap: clamp(20px, 2.2vw, 40px);
    height: 100%;
}
.mublo-menu__link {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--foreground);
    text-decoration: none;
    white-space: nowrap;
}
.mublo-menu__link--nolink { cursor: default; }

.mublo-menu__item--depth-1 { position: relative; display: flex; }
.mublo-header__nav .mublo-menu__link--depth-1 {
    height: 100%;
    font-size: var(--text-body);
    font-weight: 700;
    letter-spacing: -0.02em;
    box-shadow: inset 0 0 0 0 var(--foreground);
    transition: box-shadow 0.15s ease;
}
.mublo-header__nav .mublo-menu__item--depth-1:hover > .mublo-menu__link--depth-1,
.mublo-header__nav .mublo-menu__item--active > .mublo-menu__link--depth-1,
.mublo-header__nav .mublo-menu__item--ancestor > .mublo-menu__link--depth-1 {
    box-shadow: inset 0 -2px 0 0 var(--foreground);
}

/* 드롭다운 (depth 2·3) */
.mublo-menu__list--depth-2 {
    display: none;
    position: absolute;
    top: 100%;
    left: -1rem;
    min-width: 200px;
    padding: 0.5rem;
    background: var(--popover);
    border: 1px solid var(--border);
    border-radius: 0;
    box-shadow: 0 12px 32px -12px rgb(0 0 0 / 0.18);
    z-index: 110;
}
.mublo-menu__item--depth-1:hover > .mublo-menu__list--depth-2,
.mublo-menu__item--depth-1:focus-within > .mublo-menu__list--depth-2 { display: block; }

.mublo-menu__item--depth-2 { position: relative; }
.mublo-menu__link--depth-2,
.mublo-menu__link--depth-3 {
    justify-content: space-between;
    padding: 0.5625rem 0.75rem;
    font-size: var(--text-body-sm);
    border-radius: 0;
}
.mublo-menu__link--depth-2:hover,
.mublo-menu__link--depth-3:hover,
.mublo-menu__item--active > .mublo-menu__link--depth-2,
.mublo-menu__item--active > .mublo-menu__link--depth-3 {
    background: var(--muted);
}
.mublo-menu__item--active > .mublo-menu__link--depth-2,
.mublo-menu__item--active > .mublo-menu__link--depth-3 { font-weight: 600; }

.mublo-menu__item--has-children > .mublo-menu__link--depth-2::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 1.5px solid var(--muted-foreground);
    border-bottom: 1.5px solid var(--muted-foreground);
    transform: rotate(-45deg);
    flex-shrink: 0;
    margin-left: 0.75rem;
}
.mublo-menu__list--depth-3 {
    display: none;
    position: absolute;
    top: -0.5rem;
    left: calc(100% + 0.5rem);
    min-width: 180px;
    padding: 0.5rem;
    background: var(--popover);
    border: 1px solid var(--border);
    border-radius: 0;
    box-shadow: 0 12px 32px -12px rgb(0 0 0 / 0.18);
    z-index: 120;
}
.mublo-menu__item--depth-2:hover > .mublo-menu__list--depth-3,
.mublo-menu__item--depth-2:focus-within > .mublo-menu__list--depth-3 { display: block; }

/* ---------- 모바일 패널 (Offcanvas) ---------- */
.mublo-panel { display: contents; }
.mublo-panel__dialog {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: min(86vw, 380px);
    height: 100%;
    background: var(--background);
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}
.mublo-panel.is-open .mublo-panel__dialog { transform: translateX(0); }
.mublo-panel__backdrop {
    position: fixed;
    inset: 0;
    background: var(--scrim);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s;
}
.mublo-panel.is-open .mublo-panel__backdrop { opacity: 1; visibility: visible; }

.mublo-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    flex-shrink: 0;
    padding: 0 1.25rem;
    border-bottom: 1px solid var(--border);
}
.mublo-panel__title {
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.mublo-panel__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: -10px;
    border: 0;
    background: none;
    font-size: 1.25rem;
    color: var(--foreground);
}
.mublo-panel__body { padding: 1.25rem; }

.mublo-panel__search { margin-bottom: 1rem; }
.panel-search-form {
    display: flex;
    align-items: center;
    height: 46px;
    padding: 0 0.375rem 0 1rem;
    border-radius: 0;
    background: var(--muted);
}
.panel-search-input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    font-size: var(--text-body-sm);
    outline: none;
}
.panel-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: var(--foreground);
}

.mublo-panel__nav { margin-bottom: 1.25rem; }
.mublo-panel__nav .mublo-menu__list--depth-1 {
    display: flex;
    flex-direction: column;
}
.mublo-panel__nav .mublo-menu__item--depth-1 {
    position: relative;
    display: block;
    border-bottom: 1px solid var(--border-subtle);
}
/* 아코디언: 펼침 버튼이 붙은(front.js) 묶음만 접는다 — 스크립트가 없으면 전부 펼친 채로 남는다 */
.mublo-panel__nav .mublo-menu__item--depth-1:has(> .mublo-panel__expand):not(.is-expanded) > .mublo-menu__list--depth-2 { display: none; }
.mublo-panel__expand {
    position: absolute;
    top: 6px;
    right: -10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    background: none;
    color: var(--muted-foreground);
}
.mublo-panel__expand::before {
    content: '';
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}
.mublo-menu__item--depth-1.is-expanded > .mublo-panel__expand::before { transform: rotate(225deg); margin-top: 4px; }
.mublo-panel__nav .mublo-menu__item--has-children > .mublo-menu__link--depth-1 { padding-right: 44px; }
.mublo-panel__nav .mublo-menu__link {
    white-space: normal;
    overflow-wrap: anywhere;
}
.mublo-panel__nav .mublo-menu__link--depth-1 {
    justify-content: space-between;
    padding: 0.9375rem 0;
    font-size: var(--text-body-lg);
    font-weight: 700;
}
.mublo-panel__nav .mublo-menu__item--active > .mublo-menu__link--depth-1 { text-decoration: underline; text-underline-offset: 4px; }
.mublo-panel__nav .mublo-menu__list--depth-2,
.mublo-panel__nav .mublo-menu__list--depth-3 {
    position: static;
    display: block;
    min-width: 0;
    padding: 0 0 0.75rem 0;
    border: 0;
    box-shadow: none;
    background: none;
}
.mublo-panel__nav .mublo-menu__list--depth-3 { padding: 0 0 0.25rem 0.75rem; }
.mublo-panel__nav .mublo-menu__link--depth-2,
.mublo-panel__nav .mublo-menu__link--depth-3 {
    padding: 0.4375rem 0;
    color: var(--muted-foreground);
    font-size: var(--text-body-sm);
}
.mublo-panel__nav .mublo-menu__link--depth-2:hover,
.mublo-panel__nav .mublo-menu__link--depth-3:hover { background: none; color: var(--foreground); }
.mublo-panel__nav .mublo-menu__item--has-children > .mublo-menu__link--depth-2::after { display: none; }

.mublo-panel__utility {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}
.mublo-panel__utility-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0 0.875rem;
    border: 1px solid var(--border);
    border-radius: 0;
    font-size: var(--text-body-sm);
    font-weight: 500;
}
.mublo-panel__utility-link:hover { border-color: var(--foreground); }
.mublo-panel__utility-link .icon { font-size: 1.0625rem; }

/* ========================================
   5. 푸터
   ======================================== */
.mublo-footer {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding: clamp(40px, 3vw + 24px, 72px) 0 clamp(48px, 3vw + 32px, 80px);
    background: var(--surface);
    border-top: 1px solid var(--border);
    color: var(--muted-foreground);
    font-size: var(--text-caption);
}
.mublo-footer .mublo-container {
    display: grid;
    gap: clamp(24px, 2vw, 36px);
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding-bottom: clamp(20px, 1.5vw, 28px);
    border-bottom: 1px solid var(--border);
}
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 24px;
}
.footer-nav a {
    font-size: var(--text-caption);
    font-weight: 500;
    color: var(--foreground);
    white-space: nowrap;
}
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* 개인정보처리방침은 굵게 (전자상거래 표시 관행) */
.footer-nav a[href*="privacy"] { font-weight: 800; }

.footer-sns {
    display: flex;
    align-items: center;
    gap: 4px;
}
.footer-sns-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 0;
    color: var(--muted-foreground);
}
.footer-sns-btn svg { width: 18px; height: 18px; }
.footer-sns-btn:hover { color: var(--foreground); background: var(--muted); }

.footer-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px clamp(32px, 4vw, 96px);
    align-items: start;
}
.footer-company { min-width: 0; }
.footer-brand-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;   /* 소셜 아이콘은 로고 바로 오른쪽 */
    gap: 20px;
    margin-bottom: 14px;
}
.footer-logo img { display: block; max-height: 26px; max-width: 160px; }
.footer-logo-text {
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--foreground);
}

.footer-info {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 0;
    max-width: 901px;
    line-height: 1.85;
    color: var(--muted-foreground);
    /* 구분선은 항목 앞에 둔다. 줄이 바뀌면 줄 맨 앞에 오는 구분선을 잘라 낸다
       (왼쪽으로 구분선 폭 21px 만큼 당기고 그 폭을 clip). */
    margin-left: -21px;
    clip-path: inset(0 0 0 21px);
}
.footer-info span {
    white-space: nowrap;
}
.footer-info span::before {
    content: '';
    display: inline-block;
    width: 1px;
    height: 10px;
    margin: 0 10px;
    background: var(--border);
    vertical-align: -1px;
}
.footer-info em {
    font-style: normal;
    color: var(--subtle-foreground);
    margin-right: 4px;
}
.footer-info a:hover { color: var(--foreground); }

.footer-copy {
    margin-top: 14px;
    font-size: var(--text-micro);
    color: var(--subtle-foreground);
}

.footer-support {
    min-width: 220px;
    text-align: left;
}
.footer-cs-label {
    margin-bottom: 6px;
    font-size: var(--text-caption);
    font-weight: 700;
    color: var(--foreground);
}
.footer-cs-tel {
    display: block;
    font-size: 1.625rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--foreground);
    font-variant-numeric: tabular-nums;
}
.footer-cs-time {
    margin-top: 8px;
    font-size: var(--text-caption);
    line-height: 1.7;
    color: var(--muted-foreground);
}
.footer-cs-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}
.footer-cs-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 16px;
    border: 1px solid var(--border-strong);
    background: var(--background);
    font-size: var(--text-caption);
    font-weight: 600;
    color: var(--foreground);
}
.footer-cs-link:hover { border-color: var(--foreground); }
.footer-ict-mark { margin-top: 12px; }

/* ========================================
   반응형 — 프레임
   ======================================== */
@media (max-width: 1023.98px) {
    .mublo-header__inner {
        grid-template-columns: 1fr auto 1fr;
        gap: 8px;
    }
    .mublo-header__toggle { display: flex; }
    .mublo-header__logo { justify-self: center; }
    .mublo-header__logo .logo-link { font-size: 1.5rem; }
    .mublo-header__logo .logo-img { max-height: 28px; max-width: 150px; }
    .mublo-header__logo .logo-pc { display: none; }
    .mublo-header__logo .logo-mobile { display: block; }
    .mublo-header__search { display: none; }
    .mublo-header__search-link { display: inline-flex; }
    .mublo-header__utility-item--text { display: none; }
    .mublo-header__icon-btn,
    .mublo-header__notifications { width: 36px; height: 40px; }
    .mublo-header__icon-btn .icon,
    .mublo-header__notifications .icon { font-size: 1.1875rem; stroke-width: 1.8; }
    /* 좁은 헤더는 장바구니만 — 검색·계정·로그아웃은 전체 메뉴 패널에 있다 */
    .mublo-header__utility-item:not(.mublo-header__utility-item--cart),
    .mublo-header__actions .mublo-header__search-link { display: none; }
    .mublo-header__utility { gap: 0; }

    /* GNB 1단 = 가로 스크롤 탭 (하위는 패널에서) */
    .mublo-header__nav .mublo-container { width: 100%; }
    .mublo-header__nav .nav-wrapper {
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .mublo-header__nav .nav-wrapper::-webkit-scrollbar { display: none; }
    .mublo-header__nav .mublo-menu__list--depth-1 {
        gap: 22px;
        padding-inline: var(--gutter);
        width: max-content;
    }
    .mublo-header__nav .mublo-menu__link--depth-1 { font-size: var(--text-body-sm); }
    .mublo-header__nav .mublo-menu__list--depth-2 { display: none !important; }

    .mublo-layout { flex-direction: column; }
    .mublo-layout__sidebar--left,
    .mublo-layout__sidebar--right { width: 100%; }
    .mublo-layout__sidebar--mobile-hidden { display: none; }
}

@media (max-width: 767.98px) {
    .footer-body { grid-template-columns: 1fr; }
    .footer-info { display: grid; gap: 0; }
    .footer-info span { white-space: normal; }
    .footer-info { margin-left: 0; clip-path: none; }
    .footer-info span::before { display: none; }
    .footer-support {
        padding-top: 20px;
        border-top: 1px solid var(--border);
    }
}

/* ========================================
   메인 콘텐츠 프리미티브 — 시작 킷 HTML 블록이 쓰는 클래스
   운영자가 HTML 블록에서 문구만 바꿔도 모양이 유지되도록 스킨이 소유한다.
   ======================================== */
.hero-slide {
    --hero-bg: var(--color-neutral-900);
    --hero-fg: var(--color-white);
    --hero-muted: rgb(255 255 255 / 0.72);
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(400px, 34vw + 120px, 640px);
    padding-block: clamp(48px, 4vw, 88px);
    overflow: hidden;
    background: var(--hero-bg);
    color: var(--hero-fg);
}
.hero-slide::before {
    /* 큰 장식 원 — 사진이 없어도 면이 비어 보이지 않게 */
    content: '';
    position: absolute;
    right: -8vw;
    top: 50%;
    width: clamp(320px, 46vw, 820px);
    aspect-ratio: 1 / 1;
    border-radius: 0;
    transform: translateY(-50%);
    background: radial-gradient(circle at 35% 35%, rgb(255 255 255 / 0.14), rgb(255 255 255 / 0) 62%);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12);
    pointer-events: none;
}
.hero-slide--warm {
    --hero-bg: oklch(0.93 0.025 75);
    --hero-fg: var(--color-neutral-950);
    --hero-muted: rgb(0 0 0 / 0.62);
}
.hero-slide--warm::before {
    background: radial-gradient(circle at 35% 35%, rgb(255 255 255 / 0.7), rgb(255 255 255 / 0) 62%);
    box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.08);
}
.hero-slide--light {
    --hero-bg: var(--color-neutral-100);
    --hero-fg: var(--color-neutral-950);
    --hero-muted: rgb(0 0 0 / 0.6);
}
.hero-slide--light::before {
    background: radial-gradient(circle at 35% 35%, rgb(255 255 255 / 0.9), rgb(255 255 255 / 0) 62%);
    box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.07);
}
/* 사진 히어로: <div class="hero-slide hero-slide--image" style="--hero-image:url(...)"> */
.hero-slide--image {
    --hero-fg: var(--color-white);
    --hero-muted: rgb(255 255 255 / 0.82);
    background: var(--image-overlay), var(--hero-image, none) center / cover no-repeat, var(--color-neutral-800);
}
.hero-slide--image::before { display: none; }

.hero-slide__inner {
    position: relative;
    width: min(100% - 2 * var(--gutter), var(--container-max));
    margin-inline: auto;
}
.hero-slide__eyebrow {
    margin-bottom: 16px;
    font-size: var(--text-micro);
    font-weight: 700;
    letter-spacing: 0.24em;
    color: var(--hero-muted);
}
.hero-slide__title {
    max-width: 14em;
    font-size: var(--text-display);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.035em;
}
.hero-slide__desc {
    max-width: 32em;
    margin-top: 16px;
    font-size: var(--text-body);
    color: var(--hero-muted);
}
.hero-slide__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: clamp(24px, 2vw, 36px);
    padding-bottom: 4px;
    border-bottom: 1.5px solid currentColor;
    font-size: var(--text-body-sm);
    font-weight: 700;
    color: var(--hero-fg);
}
.hero-slide__cta::after {
    content: '';
    width: 7px;
    height: 7px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
}
.hero-slide__cta:hover { opacity: 0.75; }

/* 히어로 슬라이드 조작부 (front.js 가 붙인다) */
.hero-controls {
    position: absolute;
    z-index: 2;
    right: max(var(--gutter), calc((100% - var(--container-max)) / 2));
    bottom: clamp(48px, 4vw, 88px);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 0;
    background: rgb(0 0 0 / 0.36);
    color: #fff;
    backdrop-filter: blur(8px);
    font-size: var(--text-micro);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.hero-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
}
.hero-controls button:hover { background: rgb(255 255 255 / 0.16); }
.hero-controls__count { min-width: 36px; text-align: center; }
.block-html__content:has(.hero-slide) .mublo-item-layout { position: relative; }
.block-html__content:has(.hero-slide) .block-html__slides { list-style: none; }

@media (max-width: 767.98px) {
    .hero-slide { min-height: 440px; align-items: flex-end; padding-bottom: 72px; }
    .hero-slide::before { right: -30vw; top: 32%; width: 90vw; }
    .hero-controls { right: var(--gutter); bottom: 24px; }
}

/* ========================================
   6. 플러그인 공용 · 하위 호환
   ======================================== */
.page-index__empty,
.page-view__empty {
    padding: 4rem 0;
    text-align: center;
    color: var(--muted-foreground);
}
.block-section { padding: 0; }

/* 쇼핑 단계 표시 (장바구니 → 주문서 → 주문완료) */
.shop-steps {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    font-size: var(--text-caption);
    color: var(--subtle-foreground);
}
.shop-steps li { display: inline-flex; align-items: center; gap: 10px; }
.shop-steps li + li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
}
.shop-steps li[aria-current="step"] { color: var(--primary-text); font-weight: 800; }

/* 하위 호환 유틸(옛 부트스트랩 이름) — 프론트 뷰 몇 곳과 스크립트가 아직 쓴다 */
.form-control {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 0.625rem 0.875rem;
    font-size: var(--text-body-sm);
    color: var(--foreground);
    background: var(--card);
    border: 1px solid var(--input);
    border-radius: 0;
}
.form-control:focus { outline: none; border-color: var(--ring); box-shadow: inset 0 0 0 1px var(--ring); }
.text-danger { color: var(--destructive) !important; }
.text-muted { color: var(--muted-foreground) !important; }
.text-center { text-align: center !important; }
.text-start { text-align: left !important; }
.text-end { text-align: right !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.small, small { font-size: var(--text-caption); }

/* SNS 로그인 버튼 (SnsLogin 플러그인) — 브랜드 지정색 */
.sns-login-section { margin-top: 24px; }
.sns-login-divider {
    position: relative;
    margin: 20px 0;
    text-align: center;
    color: var(--muted-foreground);
    font-size: var(--text-caption);
}
.sns-login-divider::before, .sns-login-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 32px);
    height: 1px;
    background: var(--border);
}
.sns-login-divider::before { left: 0; }
.sns-login-divider::after  { right: 0; }
.sns-login-buttons { display: flex; flex-direction: column; gap: 8px; }
.btn-sns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 0;
    font-size: var(--text-body-sm);
    font-weight: 600;
    cursor: pointer;
}
.btn-sns:hover { opacity: 0.88; }
.btn-sns--naver  { background: #03c75a; color: #fff; border-color: #03c75a; }
.btn-sns--kakao  { background: #fee500; color: #191919; border-color: #fee500; }
.btn-sns--google { background: #fff; color: #3c4043; border-color: #dadce0; }

/* 테마 스위치 — basic 프레임은 쓰지 않는다. 운영자 HTML 템플릿의 {{theme_switch}} 슬롯 호환만 남긴다. */
.mublo-theme-switch,
.mublo-theme-toggle {
    display: inline-flex;
    gap: 2px;
    padding: 2px;
    border: 1px solid var(--border);
    border-radius: 0;
}
.mublo-theme-switch__btn,
.mublo-theme-toggle__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--muted-foreground);
}
.mublo-theme-switch__btn.is-active,
.mublo-theme-toggle__btn.is-active { background: var(--muted); color: var(--foreground); }
.mublo-theme-switch__btn svg,
.mublo-theme-toggle__btn svg { width: 50%; height: 50%; }
.mublo-theme-switch__btn.is-hidden,
.mublo-theme-toggle__btn.is-hidden { display: none; }
a.footer-cs-label { display: inline-block; color: var(--foreground); } a.footer-cs-label:hover { text-decoration: underline; text-underline-offset: 3px; }
