/* =========================================================
   VitalPay - 기존 main/terms/lang/footer.html 디자인을 하나로 모은 스타일
   ========================================================= */

:root {
    --color-text: #1f2937;
    --color-text-muted: #6b7280;
    --color-text-soft: #4b5563;
    --color-border: #e5e7eb;
    --color-bg-soft: #f8f9fa;
    --color-primary: #374151;
    --color-primary-dark: #1f2937;
    --color-danger: #dc2626;
    --color-footer-bg: #2c3e50;
    --gradient-soft: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    --gradient-primary: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    --gradient-primary-hover: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    --radius-lg: 20px;
    --radius-md: 12px;
    --shadow-card: 0 4px 25px rgba(0, 0, 0, 0.08);
    --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.15);
}

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

html[lang="ko"] body { font-family: 'Pretendard Variable', Pretendard, sans-serif; }
html[lang="ja"] body { font-family: 'Noto Sans JP', sans-serif; }
html[lang="zh-CN"] body { font-family: 'Noto Sans SC', sans-serif; }
html[lang="th"] body { font-family: 'Noto Sans Thai', sans-serif; }

body {
    margin: 0;
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--color-text);
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    /* 이메일 주소처럼 긴 단어가 화면 밖으로 넘치지 않게 */
    overflow-wrap: break-word;
}

/* 한국어는 "온라 / 인"처럼 단어 중간에서 줄이 바뀌지 않게 (일본어·중국어는 띄어쓰기가 없어 적용하지 않음) */
html[lang="ko"] body {
    word-break: keep-all;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container--narrow {
    max-width: 900px;
}

/* ---------- 버튼 ---------- */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button--primary {
    background: var(--gradient-primary);
    color: #fff;
}

.button--primary:hover {
    background: var(--gradient-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(31, 41, 55, 0.3);
}

.button--large {
    padding: 16px 32px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

.button--block {
    display: flex;
    width: 100%;
}

/* ---------- 헤더 (기존 header.html 값) ---------- */
.flag {
    width: 18px;
    height: 18px;
}

/* 아이콘 크기는 icon() 의 width/height 속성으로 정한다 */
.flag,
.icon {
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.site-header__inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.3s ease;
}

.site-logo:hover {
    color: #4b5563;
    transform: translateY(-1px);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 10px 18px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    /* 기존 테마 기본값에 맞춰 버튼 높이를 38px로 */
    line-height: 1.2;
    border-radius: 8px;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.nav-item:hover,
.nav-item:focus-within {
    color: var(--color-primary);
    background: #f9fafb;
    border-color: var(--color-border);
    transform: translateY(-1px);
}

.nav-item__icon {
    display: inline-flex;
    margin-right: 8px;
}

.lang-menu {
    cursor: pointer;
    user-select: none;
}

.lang-menu__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 300px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
}

/* 마우스를 올리거나 키보드로 들어오면 펼친다 (원본은 마우스 오버만) */
.lang-menu:hover .lang-menu__dropdown,
.lang-menu:focus-within .lang-menu__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* 드롭다운까지 마우스를 옮기는 동안 틈에서 닫히지 않게 */
.lang-menu__dropdown::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 10px;
}

.lang-menu__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 13px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.lang-item:hover {
    background: #f3f4f6;
    color: var(--color-primary);
    transform: translateX(2px);
}

.lang-item.is-current {
    background: var(--color-primary);
    color: #fff;
}

/* 기존 사이트는 테마의 버튼 스타일 때문에 언어 이름이 대문자로 보였다 */
.lang-item__name,
.lang-page__name {
    flex: 1;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.lang-item__code {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
}

.lang-item.is-current .lang-item__code {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.site-header__toggle {
    display: none;
    background: none;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 8px;
}

.site-header__toggle:hover {
    background: #f9fafb;
    color: var(--color-primary);
}

.mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 20px;
    background: #fff;
    border-top: 1px solid var(--color-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.mobile-nav__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
}

.mobile-nav__langs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.lang-item--mobile {
    padding: 12px 16px;
    gap: 12px;
    background: #f9fafb;
    border: 1px solid var(--color-border);
}

.lang-item--mobile.is-current {
    border-color: var(--color-primary);
}

/* 아주 좁은 화면에서는 도시/주·도 칸도 한 줄씩 */
@media (max-width: 480px) {
    .form-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* 모바일에서 메뉴를 연 채 화면을 넓혀도 PC 헤더와 겹치지 않게 */
@media (min-width: 769px) {
    .mobile-nav {
        display: none;
    }
}

/* ---------- 메인 떠 있는 결제 버튼 (기존 main.html) ---------- */
.floating-purchase {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 50px;
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(55, 65, 81, 0.3);
    transition: all 0.3s ease;
}

.floating-purchase:hover {
    background: var(--gradient-primary-hover);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 35px rgba(31, 41, 55, 0.4);
    color: #fff;
}

/* ---------- 메인 히어로 ---------- */
.hero {
    background: var(--gradient-soft);
    padding: 80px 0;
    text-align: center;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0 0 24px;
}

.hero__subtitle {
    font-size: 1.3rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- 상품 목록 ---------- */
.products {
    padding: 100px 0;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.01em;
    margin: 0 0 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    text-align: center;
    margin: 0 0 60px;
}

.products__empty {
    text-align: center;
    color: var(--color-text-muted);
}

.products__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.product-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
}

.product-card__image {
    display: block;
    height: 220px;
    background: var(--gradient-soft);
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card__body {
    padding: 30px 25px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 12px;
}

.product-card__summary {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin: 0 0 20px;
    flex: 1;
}

.product-card__price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 24px;
}

/* 엔화 가격 뒤 "/ 590 USD". 실제 결제 금액이라 잘 보이되, 카드 한 줄에 들어가도록 조금 작게 */
.price-charge {
    display: inline-block;
    font-size: 0.7em;
    font-weight: 700;
    white-space: nowrap;
}

/* ---------- 상품 상세 ---------- */
.product-detail {
    padding: 40px 0 100px;
}

.product-detail__back {
    display: inline-block;
    margin-bottom: 24px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
}

.product-detail__back:hover {
    color: var(--color-text);
}

/* PC: 왼쪽 이미지+설명 / 오른쪽 결제 카드. 모바일은 이미지 → 결제 → 설명 순서 (아래 반응형 참고) */
.product-detail__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
        "media side"
        "desc  side";
    grid-template-rows: auto 1fr;
    column-gap: 48px;
    align-items: start;
}

.product-detail__media {
    grid-area: media;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--gradient-soft);
    aspect-ratio: 4 / 3;
}

.product-detail__side {
    grid-area: side;
    min-width: 0;
}

.product-detail__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail__title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 0 0 12px;
}

.product-detail__price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 16px;
}

/* 일본 카드 해외 수수료 안내 등 가격 바로 아래 붙는 안내문 (관리자 상품 > 가격 안내문) */
.product-detail__price-note {
    margin: -6px 0 20px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: var(--gradient-soft);
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}

.product-detail__summary {
    color: var(--color-text-muted);
    margin: 0 0 28px;
}

.product-detail__description {
    grid-area: desc;
    min-width: 0;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

/* ---------- 결제 정보 카드 ---------- */
.checkout-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 28px;
}

.checkout-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 20px;
}

.form-section {
    border: 0;
    margin: 0 0 24px;
    padding: 0;
    min-width: 0;
}

.form-section__title {
    display: block;
    width: 100%;
    padding: 0 0 10px;
    margin: 0 0 16px;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text);
}

/* 도시 + 주·도처럼 짧은 칸 두 개를 한 줄에 */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
}

.form-field {
    margin-bottom: 16px;
    min-width: 0;
}

.form-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 6px;
    color: var(--color-text);
}

.form-optional {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--color-text-muted);
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 1px 6px;
}

.form-field input,
.form-field select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    color: var(--color-text);
    /* 16px 미만이면 iOS가 입력할 때 화면을 확대한다 */
    font: inherit;
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field select {
    appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    text-overflow: ellipsis;
}

.form-field input::placeholder {
    color: #9ca3af;
}

.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(55, 65, 81, 0.12);
}

.has-error input,
.has-error select {
    border-color: var(--color-danger);
    background-color: #fffafa;
}

.form-help {
    margin: 6px 0 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.form-help--lead {
    margin: -6px 0 14px;
}

.form-help--center {
    margin-top: 10px;
    text-align: center;
}

.form-error {
    margin: 6px 0 0;
    font-size: 0.85rem;
    color: var(--color-danger);
}

.form-error--block {
    margin: 0 0 16px;
    padding: 12px 14px;
    background: #fef2f2;
    border-radius: 10px;
}

.form-agree {
    margin: 4px 0 20px;
    padding: 14px 16px;
    background: var(--color-bg-soft);
    border-radius: 10px;
}

.form-agree.has-error {
    background: #fef2f2;
}

.form-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.9rem;
    cursor: pointer;
}

.form-check input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--color-primary);
}

.form-check a {
    font-weight: 600;
}

/* ---------- 약관/일반 페이지 ---------- */
.page-hero {
    background: var(--gradient-soft);
    padding: 60px 0 80px;
    text-align: center;
}

.page-hero__title {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
}

.page-hero__subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin: 0;
}

.terms {
    padding-top: 60px;
    padding-bottom: 100px;
}

.tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 50px;
    border-bottom: 2px solid var(--color-border);
}

.tabs__tab {
    padding: 16px 28px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font: inherit;
    font-weight: 600;
    color: var(--color-text-muted);
    cursor: pointer;
}

.tabs__tab:hover {
    color: var(--color-primary);
}

.tabs__tab.is-active {
    color: var(--color-text);
    border-bottom-color: var(--color-primary);
}

.tabs__panel {
    display: none;
}

.tabs__panel.is-active {
    display: block;
}

/* 관리자가 편집하는 HTML 본문 (약관, 상품 설명) */
.rich-text {
    color: var(--color-text-soft);
    line-height: 1.8;
    font-size: 0.95rem;
}

.rich-text h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 50px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-border);
}

.rich-text h2:first-child {
    margin-top: 0;
}

.rich-text h3 {
    font-size: 1.15rem;
    color: var(--color-text);
    margin: 32px 0 12px;
}

.rich-text p {
    margin: 0 0 16px;
}

.rich-text ul {
    margin: 16px 0;
    padding-left: 24px;
}

.rich-text li {
    margin-bottom: 10px;
}

.rich-text strong {
    color: var(--color-text);
}

.rich-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9rem;
}

.rich-text th,
.rich-text td {
    border: 1px solid var(--color-border);
    padding: 14px 16px;
    text-align: left;
}

.rich-text th {
    background: var(--color-bg-soft);
    font-weight: 600;
    color: var(--color-text);
}

.rich-text .info-box {
    background: var(--color-bg-soft);
    border-radius: var(--radius-md);
    padding: 24px;
    margin: 20px 0;
    border-left: 4px solid var(--color-primary);
}

.rich-text .info-box__title {
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
}

.rich-text .highlight-box {
    background: var(--gradient-primary);
    color: #fff;
    border-radius: var(--radius-md);
    padding: 24px;
    margin: 30px 0;
}

.rich-text .highlight-box p,
.rich-text .highlight-box strong {
    color: #fff;
}

.rich-text .highlight-box__title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

/* ---------- 언어 선택 ---------- */
.lang-page {
    /* 헤더(68px) 아래를 채운다 */
    min-height: calc(100vh - 68px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--gradient-soft);
}

.lang-page__box {
    position: relative;
    width: 100%;
    max-width: 600px;
    padding: 60px 40px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    text-align: center;
    overflow: hidden;
}

.lang-page__box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #495057, #6c757d, #adb5bd, #dee2e6);
}

.lang-page__title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 10px;
}

.lang-page__subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin: 0 0 40px;
}

.lang-page__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.lang-page__choice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 15px;
    background: var(--color-bg-soft);
    border: 1px solid #dee2e6;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lang-page__choice:hover {
    background: #fff;
    border-color: #495057;
    color: #495057;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.lang-page__choice.is-selected {
    background: #495057;
    border-color: #495057;
    color: #fff;
}

.lang-page__choice.is-selected .lang-page__code {
    color: #fff;
}

.lang-page__choice .flag {
    width: 24px;
    height: 24px;
}

.lang-page__code {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.lang-page__hint {
    margin: 30px 0 0;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ---------- 결제 화면 / 결과 화면 ---------- */
.checkout {
    padding: 48px 0 100px;
}

.checkout__title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
}

.order-summary {
    background: var(--color-bg-soft);
    border-radius: var(--radius-lg);
    padding: 8px 24px;
    margin-bottom: 28px;
}

.order-summary__list {
    margin: 0;
}

.order-summary__list > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
}

.order-summary__list > div:last-child {
    border-bottom: none;
}

.order-summary__list dt {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.order-summary__list dd {
    margin: 0;
    text-align: right;
    font-weight: 500;
    word-break: break-all;
}

.order-summary__total dd {
    font-size: 1.3rem;
    font-weight: 800;
}

.order-summary__mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.85rem;
}

#payment-method,
#agreement {
    margin-bottom: 16px;
}

.result-page {
    padding: 80px 0 100px;
    text-align: center;
}

.result-page .order-summary {
    text-align: left;
    margin: 32px 0;
}

.result-page__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
}

.result-page__icon--success {
    background: #16a34a;
}

.result-page__icon--fail {
    background: #9ca3af;
}

.result-page__title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}

.result-page__message {
    color: var(--color-text-soft);
    margin: 0 auto;
    max-width: 560px;
}

.result-page__message p {
    margin: 0 0 6px;
}

.result-page__detail {
    margin: 24px auto 0;
    max-width: 560px;
    padding: 16px;
    background: var(--color-bg-soft);
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.result-page__note {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.result-page__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

.button--secondary {
    background: #fff;
    color: var(--color-text);
    border: 1px solid #d1d5db;
}

.button--secondary:hover {
    background: var(--color-bg-soft);
}

.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ---------- 오류 ---------- */
.error-page {
    padding: 120px 0;
    text-align: center;
}

.error-page__code {
    font-size: 4rem;
    font-weight: 800;
    color: #d1d5db;
}

.error-page__message {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin: 8px 0 32px;
}

/* ---------- 푸터 ---------- */
.site-footer {
    background: var(--color-footer-bg);
    color: #ecf0f1;
    padding: 40px 20px 20px;
    border-top: 3px solid #3498db;
}

.site-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.site-footer__company {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.site-footer__body {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding-bottom: 25px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__line {
    color: #bdc3c7;
    font-size: 13px;
    line-height: 1.8;
}

.site-footer__line strong {
    color: #ecf0f1;
    font-weight: 600;
    margin-right: 5px;
}

.site-footer__sep {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.2);
}

.site-footer__link {
    display: inline-block;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    color: #ecf0f1;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
}

.site-footer__link:hover {
    background: rgba(255, 255, 255, 0.15);
}

.site-footer__copyright {
    text-align: center;
    color: #7f8c8d;
    font-size: 12px;
}

/* ---------- 반응형 ---------- */
@media (max-width: 768px) {
    .site-header__inner {
        height: 60px;
        padding: 0 16px;
    }

    .site-logo {
        font-size: 22px;
    }

    .site-nav {
        display: none;
    }

    .site-header__toggle {
        display: block;
    }

    .lang-page {
        min-height: calc(100vh - 60px);
    }

    .floating-purchase {
        bottom: 20px;
        right: 20px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .page-hero__title {
        font-size: 2rem;
    }

    .products {
        padding: 60px 0;
    }

    .products__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .product-detail__layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "media"
            "side"
            "desc";
        grid-template-rows: auto;
        row-gap: 24px;
    }

    .product-detail__description {
        margin-top: 16px;
    }

    .checkout-card {
        padding: 22px 18px;
    }

    .product-detail__title {
        font-size: 1.7rem;
    }

    .tabs {
        flex-direction: column;
        gap: 0;
    }

    .tabs__tab {
        text-align: left;
        border-bottom: 1px solid var(--color-border);
        border-left: 3px solid transparent;
        margin-bottom: 0;
    }

    .tabs__tab.is-active {
        border-bottom-color: var(--color-border);
        border-left-color: var(--color-primary);
    }

    .site-footer__body {
        flex-direction: column;
        gap: 20px;
    }

    .lang-page__box {
        padding: 40px 24px;
    }

    .lang-page__grid {
        grid-template-columns: 1fr;
    }
}

