@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-1Thin.woff2') format('woff2');
    font-weight: 100;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-2ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-3Light.woff2') format('woff2');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-4Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-5Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-6SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-7Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-8ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-9Black.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
}

@font-face {
    font-family: 'SBAggroB';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2108@1.1/SBAggroL.woff') format('woff');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'GangwonEduPower';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2201-2@1.0/GangwonEduPowerExtraBoldA.woff') format('woff');
    font-weight: 400;
    font-display: swap;
}

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

html {
    height: 100%;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

/* 헤더 */
.header {
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.header.hidden {
    transform: translateY(-100%);
}

.header-container {
    max-width: 1500px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    font-weight: 600;
    font-size: 22px;
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.logo-text {
    transition: all 0.3s ease;
    display: inline-block;
    height: 15px;
    width: auto;
}

.logo.scrolled .logo-text {
    opacity: 0;
    transform: translateY(-20px);
}

.logo-new-text {
    font-family: 'Paperozi', sans-serif !important;
    font-weight: 700;
    font-size: 24px;
    position: absolute;
    top: -2px;
    left: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.logo.scrolled .logo-new-text {
    opacity: 1;
    transform: translateY(0);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
    width: 300px;
}

.search-input {
    width: 100%;
    padding: 8px 16px 8px 40px;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    font-size: 14px;
    background: #f8f9fa;
}

.search-input:focus {
    outline: none;
    border-color: #007bff;
    background: #ffffff;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 16px;
}

.header-icons {
    display: flex;
    gap: 16px;
    align-items: center;
}

.header-icon {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #ffffff;
    transition: color 0.3s ease;
}

.header.scrolled .header-icon {
    color: #6c757d;
}

.header-icon:hover {
    color: #007bff;
}

/* 사용자 메뉴 */
.user-menu {
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    min-width: 280px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    margin-top: 8px;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-info {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.user-details {
    flex: 1;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.user-email {
    font-size: 12px;
    color: #6c757d;
}

.user-menu-items {
    padding: 8px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.menu-item:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.menu-divider {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 8px 0;
}

.logout-btn {
    color: #dc3545;
}

.logout-btn:hover {
    background-color: #fff5f5;
    color: #dc3545;
}

/* 아이콘 호버 효과 */
.header-icon:hover svg {
    color: #007bff;
}


/* 히어로 배너 */
.hero-banner {
    background-color: #2d3748;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="%234a5568" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 175px 0 25px 0;
    position: relative;
}

.hero-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 400px;
    background: rgba(0, 0, 0, 0.6);
    pointer-events: none;
    z-index: 1;
}

.hero-container {
    max-width: 1500px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.hero-text {
    color: #ffffff;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Paperozi', sans-serif !important;
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #ffffff;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 20px;
    color: #e2e8f0;
    font-weight: 500;
}

/* 네비게이션 탭 */
.nav-tabs {
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 60px;
    z-index: 999;
    transition: all 0.3s ease;
}

.nav-tabs.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.nav-tabs-container {
    max-width: 1500px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 20px;
}

.nav-tab {
    padding: 12px 18px;
    color: #6b7280;
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    letter-spacing: -1px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-tab:hover {
    color: #1a1a1a;
}
.nav-tab.active {
    color: #1a1a1a;
    font-weight: 600;
    border-bottom-color: #1a1a1a;
}

.nav-tab-new {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #f76b19;
    border-radius: 50%;
    position: absolute;
    top: 13px;
    right: 7px;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.nav-tab {
    position: relative;
}

.nav-tab.active .nav-tab-new {
    opacity: 1 !important;
}

.nav-tab:not(.active) .nav-tab-new {
    opacity: 0.5 !important;
}

.nav-tab:not(.active) .nav-tab-new:hover {
    opacity: 0.6 !important;
}

.nav-tab.active .nav-tab-new:hover {
    opacity: 0.9 !important;
}

/* 플래시 메시지 */
.flash-message {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    min-width: 300px;
    max-width: 600px;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
    animation: slideDown 0.3s ease;
}

.flash-message.hiding {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.flash-content {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.flash-message svg {
    flex-shrink: 0;
}

.flash-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.flash-success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}




.cash-receipt-card-desc {
    margin: -8px 0 16px 0;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.cash-receipt-btn {
    width: 100%;
    border: none;
    border-radius: 8px;
    background: #0078FF;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cash-receipt-btn:hover {
    background: #0066dd;
}

.cash-receipt-btn:disabled {
    background: #e5e5e5;
    color: #999;
    cursor: not-allowed;
}

.cash-receipt-btn--popbill-popup {
    margin-top: 15px;
}

.cash-receipt-status-summary {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    background: #f8f9fa;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.cash-receipt-status-summary strong {
    display: block;
    color: #1a1a1a;
    font-size: 14px;
    margin-bottom: 4px;
}

.cash-receipt-status-memo {
    margin-top: 8px;
    color: #333;
    font-size: 13px;
}

.cash-receipt-status-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 14px;
}

.cash-receipt-status-tag.pending {
    background: rgba(0, 120, 255, 0.12);
    color: #0078FF;
}

.cash-receipt-status-tag.processing {
    background: rgba(251, 146, 60, 0.12);
    color: #ea580c;
}

.cash-receipt-status-tag.completed {
    background: rgba(16, 185, 129, 0.12);
    color: #0f766e;
}

.cash-receipt-status-tag.rejected {
    background: rgba(248, 113, 113, 0.12);
    color: #dc2626;
}

.cash-receipt-note {
    margin-top: 12px;
    font-size: 12px;
    color: #888;
    line-height: 1.5;
}

.popup-body {
    background: #f6f7fb;
}

.popup-body .header,
.popup-body .nav-tabs,
.popup-body .footer,
.popup-body .hero-banner,
.popup-body .footer-seller {
    display: none;
}

.popup-body .main-content {
    max-width: 460px;
    width: 100%;
    margin: 24px auto;
    padding: 0 12px 0 16px;
    border-radius: 0;
    background: transparent;
}

.cash-receipt-wrapper {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    padding: 24px;
}

.cash-receipt-wrapper h2 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 10px 0;
}

.cash-receipt-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 18px 0;
}

.cash-receipt-desc strong {
    color: #1a1a1a;
    font-weight: 600;
}

.cash-receipt-order-summary {
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    background: #f8f9fa;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.cash-receipt-order-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #475569;
    padding: 6px 0;
}

.cash-receipt-order-row .label {
    font-weight: 600;
    color: #1e293b;
}

.cash-receipt-order-row .value {
    font-weight: 500;
}

.cash-receipt-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cash-receipt-field {
    display: flex;
    flex-direction: column;
}

.cash-receipt-label {
    font-weight: 600;
    font-size: 13px;
    color: #1f2937;
    margin-bottom: 6px;
}

.cash-receipt-input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    background: #ffffff;
    color: #1f2937;
}

.cash-receipt-input:focus {
    border-color: #0078FF;
    outline: none;
}

.cash-receipt-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cash-receipt-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    background: #fff;
}

.cash-receipt-radio input {
    margin: 0;
    accent-color: #0078ff;
}

.cash-receipt-radio.active {
    border-color: #0078FF;
    color: #0078FF;
    background: rgba(0, 120, 255, 0.06);
}

.cash-receipt-hint {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
    line-height: 1.4;
}

.cash-receipt-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.cash-receipt-submit {
    flex: 1;
    background: #0078FF;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cash-receipt-submit:hover {
    background: #005fcc;
}

.cash-receipt-close {
    flex: 1;
    background: #f3f4f6;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-weight: 600;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cash-receipt-close:hover {
    background: #e5e7eb;
}

.cash-receipt-alert {
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.cash-receipt-alert.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.cash-receipt-alert.success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}

.cash-receipt-existing {
    margin-top: 16px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    padding: 14px;
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
}

.cash-receipt-existing strong {
    display: block;
    margin-bottom: 6px;
    color: #1e293b;
}
/* 메인 컨텐츠 */
.main-content {
    max-width: 1500px;
    width: 100%;
    margin: 0 auto;
    margin-bottom: 50px;
    padding: 40px 20px;
    border-radius: 24px 24px 0 0;
}

/* 홈 배너 */
.home-banner {
    border-radius: 8px;
    padding: 0;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 80px;
    min-height: 80px;
    max-height: 80px;
    position: relative;
    overflow: hidden;
}

/* 홈 페이지에서만 margin-bottom 적용 */
.banners-wrapper > .home-banner,
.banners-wrapper > .home-banner-link {
    margin-bottom: 40px;
}

.banners-wrapper > .home-banner:last-child,
.banners-wrapper > .home-banner-link:last-child {
    margin-bottom: 0;
}

.home-banner-link {
    display: block;
}

.home-banner-link .home-banner {
    cursor: pointer;
}

.home-banner-content {
    width: 100%;
    height: 100%;
    position: relative;
    padding: 0 16px;
    box-sizing: border-box;
}

.home-banner-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: absolute;
    left: 50%;
    z-index: 2;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: none;
    white-space: nowrap;
}

.home-banner-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
}

/* 인라인 스타일로 설정된 글씨 크기가 있을 경우 CSS 변수로 저장 */
.home-banner-title[style*="font-size"] {
    /* CSS 변수가 이미 인라인 스타일에 설정되어 있음 */
}

.home-banner-subtitle {
    font-size: 16px;
    font-weight: 400;
    margin: 0;
    line-height: 1.5;
    white-space: nowrap;
}

/* 인라인 스타일로 설정된 글씨 크기가 있을 경우 CSS 변수로 저장 */
.home-banner-subtitle[style*="font-size"] {
    /* CSS 변수가 이미 인라인 스타일에 설정되어 있음 */
}

.home-banner-image {
    width: 200px;
    height: 80px;
    max-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
}

.home-banner-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .home-banner {
        padding: 0;
    }
    
    .banners-wrapper > .home-banner,
    .banners-wrapper > .home-banner-link {
        margin-bottom: 32px;
    }
    
    .banners-wrapper > .home-banner:last-child,
    .banners-wrapper > .home-banner-link:last-child {
        margin-bottom: 0;
    }
    
    .home-banner-content {
        /* 미디어 쿼리에서는 중앙 정렬 유지 */
    }
    
    /* 모바일에서는 글씨 크기를 약 83%로 축소 (20/24 = 0.833, 14/16 = 0.875) */
    .home-banner-title {
        font-size: calc(var(--title-font-size, 24px) * 0.833) !important;
    }
    
    .home-banner-subtitle {
        font-size: calc(var(--subtitle-font-size, 16px) * 0.875) !important;
    }
    
    .home-banner-image {
        width: 200px;
        height: 80px;
        max-height: 80px;
    }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.3px;
}

.see-more {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.see-more:hover {
    color: #007bff;
}

/* 상품 그리드 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

/* 상품 없을 때 메시지 */
.no-products-message {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: #6b7280;
}

.no-products-message svg {
    margin-bottom: 24px;
    opacity: 0.5;
}

.no-products-message h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.no-products-message p {
    font-size: 14px;
    color: #6b7280;
}

/* 상품 카드 */
.product-card {
    border: none;
    overflow: hidden;
    transition: background-color 0.2s ease;
    position: relative;
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #F5F5F5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: #e0e0e0;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.3px;
}

.product-badge.popular {
    background: #007bff;
}

.product-badge.limited {
    background: #6c757d;
}

.product-badge.combo {
    background: #ff6b35;
}

.product-tag {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.1px;
    margin-right: 8px;
    vertical-align: middle;
    line-height: 1.4;
}

.product-tag-popular {
    background: #FF6B7A;
}

.product-tag-limited {
    background: #FF8C5A;
}

.product-tag-new {
    background: #4ECB71;
}

.product-tag-sale {
    background: #0078FF;
}

.product-tag-recommended {
    background: #A78BFA;
}

.product-tag-best {
    background: #FFB84D;
}

.sold-out-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    border-radius: 8px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sold-out-overlay.closed {
}

.product-content {
    padding: 10px 0 0 0;
    margin-bottom: 42px;
}

.product-title {
    font-size: 16px;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 2px;
    line-height: 1.5;
    letter-spacing: -0.2px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.product-title .product-tag {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    margin-right: 0;
}

.product-title-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    min-width: 0;
    font-weight: 500;
}

.product-description {
    font-size: 14px;
    color: #909090;
    margin-bottom: 6px;
    letter-spacing: -0.2px;
    font-weight: 400;
}

.product-price-old {
    font-size: 14px;
    font-weight: bold;
    color: #bbbbbb;
    text-decoration: line-through;
}

.product-price-percent {
    font-size: 18px;
    font-weight: bold;
    color: #ff5c35;
    margin-right: 4px;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.purchase-limits {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.purchase-limit {
    font-size: 11px;
    color: #666;
    background: #f5f5f5;
    border: none;
    border-radius: 4px;
    padding: 3px 8px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    transition: background-color 0.15s ease;
}

.period-badge {
    margin-top: 6px;
    font-size: 11px;
    color: #0078FF;
    background: rgba(0, 120, 255, 0.08);
    border: 1px solid rgba(0, 120, 255, 0.2);
    border-radius: 12px;
    padding: 2px 8px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    display: inline-block;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.stars {
    color: #ffc107;
}

.rating-count {
    color: #6c757d;
}

.product-heart {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    color: #9ca3af;
    font-size: 16px;
    transition: color 0.2s ease, background-color 0.2s ease;
    z-index: 2;
}

.product-heart:hover {
    color: #007bff;
}

.sold-out-text {
    text-align: center;
    padding: 10px;
    color: #7c828d;
    font-size: 12px;
    font-weight: 600;
    background: #f6f8fa;
    border-top: none;
    border-radius: 8px;
    margin-bottom: 40px;
}

.sold-out-text.closed {
}


/* 구매 플로우 페이지 스타일 - 2컬럼 레이아웃 */
.buyflow-container {
    max-width: 1500px;
    margin: 0 auto;
}

.buyflow-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.buyflow-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.3px;
}

.buyflow-back-link {
    color: #0078FF;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.buyflow-back-link:hover {
    color: #0056b3;
}

.buyflow-main-form {
    width: 100%;
}

.buyflow-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    min-width: 0;
    align-items: start;
}

/* 왼쪽 컬럼 스타일 */
.buyflow-left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    overflow: hidden;
}

.buyflow-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 24px;
    min-width: 0;
    overflow: hidden;
}

.buyflow-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.buyflow-form-row {
    margin-bottom: 16px;
}

.buyflow-form-row:last-child {
    margin-bottom: 0;
}

.buyflow-form-group {
    width: 100%;
}

.buyflow-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}

.buyflow-required {
    color: #ff5c35;
    font-weight: 600;
}

.buyflow-optional {
    font-weight: 400;
    color: #888;
    font-size: 12px;
}

/* 현금영수증(팝빌) — 결제창형 라벨 좌측 / 필드 우측 */
.popbill-pay-rows {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.popbill-pay-row {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    column-gap: 16px;
    align-items: start;
    padding: 8px 0;
    font-size: 14px;
}

.popbill-pay-row:first-child .popbill-pay-label {
    padding-top: 3px;
}

.popbill-pay-label {
    color: #333;
    font-weight: 500;
    padding-top: 10px;
    line-height: 1.4;
}

.popbill-pay-radios {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    align-items: center;
}

.popbill-pay-radio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    cursor: pointer;
    color: #333;
    font-size: 14px;
}

.popbill-pay-radio input[type="radio"] {
    margin: 0;
    accent-color: #0078ff;
}

.popbill-pay-field {
    width: 100%;
    min-width: 0;
}

.popbill-pay-input {
    width: 100%;
    box-sizing: border-box;
}

.popbill-pay-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #888;
    line-height: 1.35;
}

.buyflow-cash-receipt-card .buyflow-input--compact {
    padding: 10px 12px;
    font-size: 14px;
}

@media (max-width: 520px) {
    .popbill-pay-row {
        grid-template-columns: 1fr;
    }

    .popbill-pay-label {
        padding-top: 0;
        margin-bottom: 2px;
    }

    .popbill-pay-row:first-child .popbill-pay-label {
        padding-top: 0;
    }
}

.buyflow-display-value {
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
}

.buyflow-input,
.buyflow-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.buyflow-input:focus,
.buyflow-textarea:focus {
    outline: none;
    border-color: #0078FF;
}

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

.buyflow-help {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.buyflow-payment-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.buyflow-payment-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.buyflow-payment-option:hover {
    border-color: #0078FF;
    background-color: #f8f9fa;
}

.buyflow-payment-option input[type="radio"] {
    margin: 4px 0 0 0;
}

.buyflow-payment-option input[type="radio"]:checked + .buyflow-payment-text {
    color: #0078FF;
}

.buyflow-payment-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.buyflow-payment-text strong {
    font-size: 14px;
    font-weight: 600;
}

.buyflow-payment-text small {
    font-size: 12px;
    color: #666;
}

.buyflow-agreements {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.buyflow-agreement {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

.buyflow-agreement input[type="checkbox"] {
    margin: 2px 0 0 0;
}

.buyflow-agreement-text {
    flex: 1;
    font-size: 13px;
    color: #333;
}

.buyflow-agreement-view {
    background: none;
    border: 1px solid #0078FF;
    color: #0078FF;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.buyflow-agreement-view:hover {
    background: #0078FF;
    color: #fff;
}

/* 오른쪽 컬럼 스타일 */
.buyflow-right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 130px;
    align-self: flex-start;
}

.buyflow-order-summary {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 24px;
}

.buyflow-product-item {
    display: flex;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.buyflow-product-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.buyflow-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.buyflow-image-placeholder {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 11px;
    border-radius: 6px;
}

.buyflow-product-details {
    flex: 1;
}

.buyflow-product-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.buyflow-product-name .product-tag {
    margin-right: 0;
}

.buyflow-product-subtitle {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.buyflow-product-quantity {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.buyflow-product-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.buyflow-order-summary .buyflow-product-price {
    align-items: flex-end;
    text-align: right;
    flex-shrink: 0;
}

.buyflow-price-original {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

.buyflow-price-discount {
    font-size: 13px;
    color: #ff5c35;
    font-weight: 600;
}

.buyflow-price-final {
    font-size: 16px;
    font-weight: 700;
    color: #0078FF;
}

.buyflow-price-summary {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
}

.buyflow-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}

.buyflow-price-total {
    border-top: 1px solid #e5e5e5;
    margin-top: 8px;
    padding-top: 16px;
    font-size: 16px;
    font-weight: 600;
}

.buyflow-total-price {
    font-size: 18px;
    font-weight: 700;
    color: #0078FF;
}

.buyflow-order-btn {
    width: 100%;
    margin-top: 16px;
    padding: 16px;
    background: #0078FF;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.buyflow-order-btn:hover {
    background: #0056b3;
}

.buyflow-order-btn:disabled {
    background: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
}

.buyflow-error-message {
    margin-top: 8px;
    font-size: 13px;
    color: #dc2626;
    text-align: center;
    min-height: 18px;
}

.buyflow-error-message:empty {
    display: none;
}

.buyflow-error-message span {
    line-height: 1.5;
}

/* 약관 모달 스타일 */
.buyflow-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.buyflow-modal {
    background: white;
    border-radius: 12px;
    max-width: 450px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.buyflow-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.buyflow-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.buyflow-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.buyflow-modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.buyflow-modal-content {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.buyflow-modal-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}

.buyflow-modal-ok {
    background: #0078FF;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.buyflow-modal-ok:hover {
    background: #0066dd;
}

.buyflow-terms-content {
    line-height: 1.6;
    color: #374151;
}

.buyflow-terms-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 24px 0 12px 0;
}

.buyflow-terms-content h4:first-child {
    margin-top: 16px;
}

.buyflow-terms-content p {
    margin: 8px 0;
    font-size: 14px;
}

.buyflow-terms-content p:empty {
    height: 1em;
    margin: 8px 0;
}

.buyflow-terms-content strong {
    font-weight: 600;
    color: #111827;
}

.buyflow-terms-content ul,
.buyflow-terms-content ol {
    margin: 8px 0;
    padding-left: 24px;
    font-size: 14px;
}

.buyflow-terms-content li {
    margin: 4px 0;
}

.buyflow-terms-content ul ul,
.buyflow-terms-content ol ol,
.buyflow-terms-content ul ol,
.buyflow-terms-content ol ul {
    margin: 4px 0;
    padding-left: 20px;
}

.buyflow-highlight {
    color: #0078FF !important;
    font-weight: 500 !important;
}

/* 태블릿/작은 데스크톱 반응형 */
@media (max-width: 1200px) {
    .buyflow-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .buyflow-right-column {
        position: static;
        order: 1;
    }
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .buyflow-card {
        padding: 20px;
    }
    
    .buyflow-modal {
        margin: 16px;
        max-height: calc(100vh - 32px);
    }
    
    .buyflow-modal-header {
        padding: 20px 20px 12px;
    }
    
    .buyflow-modal-content {
        padding: 0 20px;
    }
    
    .buyflow-modal-footer {
        padding: 12px 20px 20px;
    }
    
    .buyflow-terms-content h4 {
        margin: 20px 0 8px 0;
    }
}

/* 보상 선택 섹션 스타일 */
.reward-section-points {
    margin-bottom: 20px;
    padding: 18px;
    background: #f5f5f5;
    border-radius: 6px;
}

.reward-section-points-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 8px;
}

.reward-section-points-label {
    font-size: 16px;
    color: #666;
    font-weight: 600;
}

.reward-section-points-value {
    font-size: 18px;
    font-weight: 800;
    color: #0078FF;
}

.reward-section-points-desc {
    margin: 0;
    font-size: 14px;
    color: #999;
    line-height: 1.5;
    text-align: justify;
}

.buyflow-order-cash-expiry {
    margin-top: 16px;
    margin-bottom: 4px;
    padding: 12px 14px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.buyflow-order-cash-expiry-title {
    margin: 0 0 6px 0;
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    letter-spacing: -0.02em;
}

.buyflow-order-cash-expiry-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
    color: #6b7280;
    white-space: pre-wrap;
    word-break: break-word;
}

#rewardsContainer {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
}

.reward-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    background: white;
    transition: all 0.2s;
    display: flex;
    gap: 15px;
    align-items: center;
    min-width: 0;
    overflow: hidden;
}

.reward-item.selected {
    border-color: #0078FF;
}

.reward-item-content {
    flex: 1;
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 0;
    overflow: hidden;
}

.reward-item-content > div:last-child {
    min-width: 0;
}

.reward-item-image {
    flex-shrink: 0;
    height: 50px;
    display: flex;
    align-items: center;
    position: relative;
}

.reward-item-image-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
}

.reward-item-image-wrapper img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    transition: filter 0.2s;
}

.reward-item-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    border-radius: 6px;
    transition: background 0.2s;
    pointer-events: none;
    z-index: 1;
}

.reward-item-image-wrapper:hover .reward-item-image-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.reward-item-image-wrapper:hover img {
    filter: brightness(0.7);
}

.reward-item-image img,
.reward-item-image-placeholder {
    width: 50px;
    height: 50px;
}

.reward-item-info-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 2;
    color: white;
    pointer-events: none;
}

.reward-item-image-wrapper:hover .reward-item-info-btn {
    opacity: 1;
    pointer-events: auto;
}

.reward-item-info-btn:hover {
    opacity: 0.8;
}

.reward-item-info-btn svg {
    width: 20px;
    height: 20px;
}

.reward-item-image-placeholder {
    width: 50px;
    height: 50px;
    background: #f3f4f6;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 10px;
}

.reward-item-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    min-width: 0;
    height: 50px;
    overflow: hidden;
}

.reward-item-name {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reward-item-subtitle {
    font-size: 12px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.reward-item-points {
    font-size: 15px;
    color: #0078FF;
    font-weight: 700;
    flex-shrink: 0;
    align-self: center;
}

.reward-quantity {
    flex-shrink: 0;
}

.reward-quantity-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reward-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.reward-btn:hover {
    border-color: #0078FF;
    color: #0078FF;
}

.reward-count-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0;
    width: 60px;
    justify-content: center;
    flex-shrink: 0;
}

.reward-count {
    font-weight: 600;
    text-align: center;
    font-size: 15px;
    color: #333;
    line-height: 1;
    margin-right: 4px;
}

.reward-count span {
    line-height: 1;
}

.reward-max-count {
    font-size: 13px;
    color: #999;
    font-weight: 400;
    margin-left: 0;
    line-height: 1;
}

.reward-item-limit {
    flex-shrink: 0;
    align-self: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: 11px;
}

.reward-limit-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    background: #f3f4f6;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.2;
}

.reward-limit-badge.limit-reached {
    background: #fee2e2;
    color: #dc2626;
}

@media (max-width: 1024px) {
    #rewardsContainer {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .reward-item {
        flex-wrap: wrap;
        align-items: center;
    }
    
    .reward-item-content {
        flex: 1;
        min-width: 0;
        align-items: center;
    }
    
    .reward-item-points {
        flex-shrink: 0;
        align-self: center;
    }
    
    .reward-item-limit {
        width: 100%;
        order: 2;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .reward-limit-badge {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .reward-quantity {
        width: 100% !important;
        padding-top: 12px;
        border-top: 1px solid #f0f0f0;
        order: 3;
    }
    
    .reward-quantity-controls {
        justify-content: center;
    }
}

/* 주문 상세 페이지 스타일 - orderinfo- prefix */
.orderinfo-container {
    max-width: 1500px;
    margin: 0 auto;
}

.orderinfo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.orderinfo-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.orderinfo-back-link {
    color: #0078FF;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.orderinfo-back-link:hover {
    color: #0056b3;
}

.orderinfo-status-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.orderinfo-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.orderinfo-status {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.orderinfo-status-pending {
    background: #fff3cd;
    color: #856404;
}

.orderinfo-status-expired {
    background: #f8d7da;
    color: #721c24;
}

.orderinfo-status-paid {
    background: #d1ecf1;
    color: #0c5460;
}

.orderinfo-status-completed {
    background: #d4edda;
    color: #155724;
}

.orderinfo-status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.orderinfo-status-failed {
    background: #f8d7da;
    color: #721c24;
}

.orderinfo-order-id {
    font-size: 14px;
    color: #666;
}

.orderinfo-countdown-section {
    text-align: center;
    padding: 20px;
    background: #fff5f5;
    border: 2px solid #fecaca;
    border-radius: 12px;
}

.orderinfo-countdown-title {
    font-size: 16px;
    font-weight: 600;
    color: #dc2626;
    margin-bottom: 12px;
}

.orderinfo-countdown-timer {
    font-size: 36px;
    font-weight: 700;
    color: #dc2626;
    font-family: monospace;
    margin-bottom: 8px;
}

.orderinfo-countdown-warning {
    font-size: 14px;
    color: #dc2626;
}

/* 입금자명 툴팁이 buyflow-left-column overflow:hidden 에 잘리지 않도록 (주문 상세에서만 클래스 부여) */
.buyflow-layout--depositor-tooltip,
.buyflow-layout--depositor-tooltip .buyflow-left-column {
    overflow: visible;
}

/* 입금자명·실명 불일치 — 값 앞 경고 아이콘 + 호버 툴팁 */
.orderinfo-info-value--depositor-warn {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 100%;
    cursor: pointer;
}

.orderinfo-depositor-warn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    cursor: inherit;
    color: #dc2626;
    line-height: 0;
    vertical-align: middle;
}

.orderinfo-depositor-warn:focus {
    outline: 2px solid #0078ff;
    outline-offset: 2px;
    border-radius: 4px;
}

.orderinfo-depositor-warn:focus:not(:focus-visible) {
    outline: none;
}

.orderinfo-depositor-warn__icon {
    display: block;
}

.orderinfo-depositor-warn__tip {
    position: absolute;
    left: 0;
    top: calc(100% + 10px);
    transform: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: min(340px, calc(100vw - 40px));
    max-width: min(400px, calc(100vw - 40px));
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.65;
    color: #444;
    text-align: left;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow:
        0 4px 18px rgba(15, 23, 42, 0.08),
        0 1px 4px rgba(15, 23, 42, 0.04);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 200;
    transition:
        opacity 0.15s ease,
        visibility 0.15s ease;
}

.orderinfo-depositor-warn__tip-line {
    display: block;
    margin: 0;
}

.orderinfo-depositor-warn__tip-line--lead {
    font-weight: 800;
    font-size: 14px;
    color: #dc2626;
}

.orderinfo-depositor-warn__tip-line--note {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
}

.orderinfo-depositor-warn__tip strong {
    font-weight: 600;
    color: #1a1a1a;
}

.orderinfo-info-value--depositor-warn:hover .orderinfo-depositor-warn__tip,
.orderinfo-info-value--depositor-warn:focus-within .orderinfo-depositor-warn__tip {
    opacity: 1;
    visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
    .orderinfo-depositor-warn__tip {
        transition: none;
    }
}

.orderinfo-content-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.orderinfo-payment-guide {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 24px;
}

.orderinfo-guide-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 20px 0;
}

.buyflow-card.buyflow-card--bank-deposit {
    overflow: visible;
}

.orderinfo-bank-block {
    position: relative;
    margin-bottom: 20px;
}

/* 입금 안내 말풍선 · 좁은 폭 · 가로 중앙 · 위아래 움직임 */
@keyframes orderinfo-tooltip-float {
    0%,
    100% {
        transform: translate(-50%, 0);
    }
    50% {
        transform: translate(-50%, -6px);
    }
}

@keyframes orderinfo-tooltip-float-y {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.orderinfo-account-tooltip {
    z-index: 4;
    padding: 8px 8px 7px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    color: #374151;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 36px;
    box-shadow:
        0 4px 18px rgba(15, 23, 42, 0.08),
        0 1px 4px rgba(15, 23, 42, 0.04);
    pointer-events: none;
    box-sizing: border-box;
    will-change: transform;
}

/* 계좌 행 위 · 좁은 폭 · 가로 중앙 · 계좌 블록에 더 가깝게 */
.orderinfo-bank-account > .orderinfo-account-tooltip--above-row {
    position: absolute;
    left: 50%;
    bottom: calc(100% - 15px);
    width: 250px;
    animation: orderinfo-tooltip-float 2.4s ease-in-out infinite;
}

/* 무통장 단일 설정: 입금 블록 상단 · 좁은 폭 · 가로 중앙 */
.orderinfo-bank-block > .orderinfo-account-tooltip--section {
    position: relative;
    display: block;
    width: fit-content;
    max-width: min(220px, calc(100% - 32px));
    margin: 10px auto 14px;
    animation: orderinfo-tooltip-float-y 2.4s ease-in-out infinite;
}

.orderinfo-account-tooltip__text {
    display: block;
}

.orderinfo-account-tooltip__text strong {
    color: #0078ff;
    font-weight: 700;
}

.orderinfo-account-tooltip__arrow {
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 11px;
    height: 11px;
    margin-left: -5px;
    background: #ffffff;
    border-right: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    transform: rotate(45deg);
    border-radius: 0 0 1px 0;
}

@media (prefers-reduced-motion: reduce) {
    .orderinfo-bank-account > .orderinfo-account-tooltip--above-row {
        animation: none;
        transform: translate(-50%, 0);
    }

    .orderinfo-bank-block > .orderinfo-account-tooltip--section {
        animation: none;
        transform: none;
    }
}

.orderinfo-bank-accounts {
    margin-bottom: 0;
}

.orderinfo-bank-account {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 12px;
}

.orderinfo-bank-account:last-child {
    margin-bottom: 0;
}

.orderinfo-bank-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.orderinfo-bank-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.orderinfo-account-number {
    font-size: 22px;
    font-weight: 600;
    color: #0078FF;
}

.orderinfo-account-holder {
    font-size: 14px;
    color: #666;
}

.orderinfo-copy-btn {
    background: #0078FF;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.orderinfo-copy-btn:hover {
    background: #0056b3;
}

.orderinfo-payment-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #e7f3ff;
    border-radius: 8px;
    margin-bottom: 20px;
}

.orderinfo-amount-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.orderinfo-amount-value {
    font-size: 24px;
    font-weight: 700;
    color: #0078FF;
}

/* 주문 상세: 일반과세 부가세 분해 (짧은 2열) */
.orderinfo-vat-compact {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 12px;
    row-gap: 2px;
    font-size: 12px;
    line-height: 1.35;
    color: #888;
    margin: 0 0 12px 0;
    width: fit-content;
    max-width: 100%;
}

.orderinfo-vat-compact__v {
    font-weight: 600;
    color: #555;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.orderinfo-vat-compact--right {
    margin-left: auto;
    text-align: right;
}

.orderinfo-vat-compact--right .orderinfo-vat-compact__v {
    text-align: right;
}

.orderinfo-payment-notes {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: visible;
}

.orderinfo-note-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
}

.orderinfo-note-icon {
    font-size: 16px;
}

.orderinfo-product-section {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 24px;
}

.orderinfo-details-section {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.orderinfo-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 20px 0;
}

.orderinfo-product-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.orderinfo-product-details {
    flex: 1;
}

.orderinfo-product-name {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.orderinfo-product-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.orderinfo-product-quantity {
    font-size: 14px;
    color: #666;
}

.orderinfo-product-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.orderinfo-price-original {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.orderinfo-price-discount {
    font-size: 14px;
    color: #ff5c35;
    font-weight: 600;
}

.orderinfo-price-final {
    font-size: 20px;
    font-weight: 700;
    color: #0078FF;
}

.orderinfo-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.orderinfo-info-grid3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    overflow: visible;
}

.orderinfo-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: visible;
    min-width: 0;
}

.orderinfo-full-width {
    grid-column: 1 / -1;
}

.orderinfo-info-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.orderinfo-info-value {
    font-size: 16px;
    color: #1a1a1a;
    font-weight: 600;
}

.orderinfo-info-value--break {
    word-break: break-all;
    font-weight: 500;
}

.cash-receipt-inline-warn {
    margin-top: 12px;
    color: #c2410c;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .orderinfo-status-header,
    .buyflow-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .orderinfo-bank-account {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .orderinfo-payment-amount {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .orderinfo-product-info {
        flex-direction: column;
        gap: 16px;
    }
    
    .orderinfo-product-price {
        align-items: flex-start;
    }
    
    .orderinfo-content-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .orderinfo-info-grid {
        grid-template-columns: 1fr;
    }
    
    .buyflow-product-summary {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .buyflow-price-display {
        justify-content: center;
    }
}

/* 푸터 묶음(상점 정보 + 플랫폼 푸터) — 본문이 짧을 때 하단 고정 */
.layout-footer-group {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

/* 이 상점 판매자 정보 — 낮은 카드, 컴팩트 타이포 */
.footer-seller {
    margin-bottom: 60px;
    padding: 28px;
    border-radius: 10px;
    border: 1px solid #e5e9f1;
    box-sizing: border-box;
}

.footer-seller-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 14px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #eef0f4;
}

.footer-seller-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2d323a;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

.footer-seller-shop-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px 12px;
    max-width: 100%;
}

.footer-seller-shop-name {
    font-size: 15px;
    font-weight: 500;
    color: #6b7280;
    letter-spacing: -0.01em;
    line-height: 1.4;
    word-break: break-word;
    text-align: right;
}

.footer-seller-policy-btn {
    flex-shrink: 0;
    margin: 0;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: #6b7280;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.footer-seller-policy-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #4b5563;
}

.footer-seller-policy-btn:focus-visible {
    outline: 2px solid #9ca3af;
    outline-offset: 1px;
}

.footer-policy-disclaimer {
    background: #f0f9ff;
    border-left: 4px solid #0078ff;
    padding: 12px 14px;
    margin-bottom: 16px;
    border-radius: 6px;
}

.footer-policy-disclaimer p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #1e40af;
}

.footer-policy-modal.buyflow-modal {
    max-width: 680px;
    width: calc(100% - 32px);
}

.footer-policy-modal-content.buyflow-modal-content {
    max-height: min(72vh, 540px);
}

.footer-seller-body {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    gap: 12px 32px;
    align-items: start;
}

.footer-seller-col--note {
    min-width: 0;
}

.footer-seller-note {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: #6b7280;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.footer-seller-col--details {
    min-width: 0;
    text-align: right;
}

.footer-seller-dl {
    margin: 0;
    margin-left: auto;
    width: 100%;
    max-width: 100%;
    font-size: 14px;
    line-height: 1.5;
}

.footer-seller-dl--rows {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.footer-seller-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: baseline;
    gap: 0;
    width: 100%;
    text-align: right;
}

.footer-seller-sep {
    color: #d0d4dc;
    font-size: 13px;
    line-height: 1;
    margin: 0 8px 0 10px;
    font-weight: 400;
    user-select: none;
    flex-shrink: 0;
    align-self: center;
}

.footer-seller-pair {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-end;
    gap: 3px 5px;
    max-width: 100%;
}

.footer-seller-pair--wide {
    flex: 1 1 100%;
    justify-content: flex-end;
    max-width: 100%;
}

.footer-seller-pair--wide dd {
    text-align: right;
}

.footer-seller-dl dt {
    margin: 0;
    font-weight: 500;
    color: #8b929e;
    font-size: 13px;
    white-space: nowrap;
}

.footer-seller-dl dt::after {
    content: ':';
    margin-left: 1px;
    color: #c4c9d2;
}

.footer-seller-dl dd {
    margin: 0;
    color: #3d4451;
    font-size: 14px;
    font-weight: 400;
    word-break: break-word;
    text-align: right;
}

@media (max-width: 900px) {
    .footer-seller-body {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .footer-seller-col--details {
        padding-top: 10px;
        border-top: 1px solid #eef0f4;
    }

    .footer-seller-shop-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .footer-seller-shop-name {
        text-align: left;
        width: auto;
        flex: 1 1 auto;
        min-width: 0;
    }

    .footer-seller-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .footer-seller {
        margin-bottom: 28px;
        padding: 14px 16px 16px;
        border-radius: 9px;
    }

    .footer-seller-header {
        padding-bottom: 8px;
        margin-bottom: 10px;
    }

    .footer-seller-title {
        font-size: 15px;
    }

    .footer-seller-shop-name {
        font-size: 13px;
    }

    .footer-seller-policy-btn {
        font-size: 10px;
        padding: 3px 7px;
    }

    .footer-seller-note {
        font-size: 13px;
        line-height: 1.62;
    }

    .footer-seller-dl {
        font-size: 13px;
    }

    .footer-seller-dl--rows {
        gap: 5px;
    }

    .footer-seller-sep {
        margin: 0 6px 0 7px;
        font-size: 12px;
    }

    .footer-seller-dl dt {
        font-size: 12px;
        white-space: normal;
    }

    .footer-seller-dl dd {
        font-size: 13px;
    }

    .footer-seller-col--details {
        padding-top: 10px;
    }
}

/* 푸터 */
.footer-container {
    max-width: 1500px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px 32px;
}

/* 판매자 카드만 감싸는 영역 — 아래 여백은 카드 margin으로 처리 */
.footer-container--with-seller {
    padding-bottom: 0;
}

/* 판매자 정보 컴팩트 리디자인 */
.footer-seller--compact {
    margin-bottom: 50px;
    padding: 30px;
    border-radius: 12px;
    border-color: #e3e8f0;
    background: #fff;
    box-shadow: none;
}

.footer-seller-header--compact {
    padding-bottom: 15px;
    margin-bottom: 17px;
    border-bottom-color: #e8ecf3;
}

.footer-seller--compact .footer-seller-body {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 1fr);
    gap: 18px 30px;
    align-items: center;
}

.footer-seller--compact .footer-seller-col--note {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-seller--compact .footer-seller-col--details {
    text-align: left;
    display: flex;
    justify-content: flex-end;
}

.footer-seller--compact .footer-seller-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d323a;
}

.footer-seller--compact .footer-seller-shop-name {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
}

.footer-seller-note--lead {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #9aa3b0;
}

.footer-seller-meta {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
}

.footer-seller-col--details .footer-seller-meta {
    margin-left: auto;
    max-width: 620px;
}

.footer-seller-table {
    width: 100%;
    max-width: 620px;
    margin: 0 0 0 auto;
    border-collapse: collapse;
    table-layout: fixed;
    /* border: 1px solid #cfd6e3;
    border-radius: 8px; */
    overflow: hidden;
}

.footer-seller-table th,
.footer-seller-table td {
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.55;
    vertical-align: top;
    border: 1px solid #dfe5ef;
}

.footer-seller-table th {
    width: 130px;
    text-align: left;
    font-weight: 500;
    color: #8b929e;
    background: #fbfcfe;
}

.footer-seller-table td {
    color: #3d4451;
    font-weight: 400;
    word-break: break-word;
}

.footer-seller-table--matrix th,
.footer-seller-table--matrix td {
    text-align: left;
    padding: 10px 10px;
}

.footer-seller-table--matrix th {
    width: 120px;
    background: #f7f9fc;
    color: #6a7385;
    font-weight: 600;
    white-space: nowrap;
    text-align: center;
}

.footer-seller-table--matrix td {
    color: #2f3849;
    font-weight: 500;
}

.footer-seller-cell--biz-reg {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.footer-seller-biz-reg-value {
    min-width: 0;
}

.footer-seller-ftc-check {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 500;
    color: #0078ff;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}

.footer-seller-ftc-check:hover {
    color: #005fcc;
}

.footer-seller-table--matrix tr:last-child th {
    width: 120px;
}

.footer-seller-meta-item {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 6px;
    min-width: 0;
    align-items: baseline;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.footer-seller-meta-item--wide {
    grid-column: 1 / -1;
}

.footer-seller-meta-label {
    font-size: 12px;
    font-weight: 500;
    color: #8b929e;
    white-space: normal;
    flex-shrink: 0;
    line-height: 1.5;
}

.footer-seller-meta-value {
    font-size: 13px;
    color: #3d4451;
    line-height: 1.55;
    font-weight: 400;
    word-break: break-word;
}

.footer-seller-complaint {
}

.footer-seller-complaint-line {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #505867;
}

.footer-seller-complaint-line + .footer-seller-complaint-line {
    margin-top: 4px;
}

@media (max-width: 900px) {
    .footer-seller--compact {
        padding: 16px 16px;
    }

    .footer-seller--compact .footer-seller-body {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .footer-seller--compact .footer-seller-col--details {
        justify-content: flex-start;
        padding-top: 10px;
        border-top: 1px solid #eef0f4;
    }

    .footer-seller-col--details .footer-seller-meta,
    .footer-seller-table,
    .footer-seller-col--details .footer-seller-complaint {
        margin-left: 0;
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .footer-seller--compact {
        margin-bottom: 22px;
        padding: 14px 14px 15px;
        border-radius: 10px;
    }

    .footer-seller--compact .footer-seller-title {
        font-size: 15px;
    }

    .footer-seller--compact .footer-seller-shop-name {
        font-size: 12px;
        padding: 0;
    }

    .footer-seller-meta-item {
        grid-template-columns: 92px minmax(0, 1fr);
        padding: 0;
    }

    .footer-seller-table {
        margin-top: 10px;
    }

    .footer-seller-table th,
    .footer-seller-table td {
        font-size: 12px;
        padding: 8px 9px;
    }

    .footer-seller-table th {
        width: 95px;
        padding-right: 10px;
    }

    .footer-seller-table--matrix th,
    .footer-seller-table--matrix td {
        padding: 8px 7px;
    }

    .footer-seller-note--lead,
    .footer-seller-meta-value,
    .footer-seller-complaint-line {
        font-size: 12px;
    }

    .footer-seller-meta-label {
        font-size: 11px;
    }
}

/* 사이트 공통 푸터: 전체 너비 연한 배경 + 상단 구분 */
.footer {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.footer-platform {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    background: #f7f8fb;
    border-top: 1px solid #e3e6ed;
    border-radius: 0;
}

.footer-platform-inner.footer-container,
.footer-platform .footer-container {
    padding-top: 40px;
    padding-bottom: 35px;
}

/* 플랫폼 푸터: 상호 1줄 + 아래 본문 일괄 */
.footer-platform-unified {
    margin: 0;
    padding: 0;
}

.footer-platform-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px 24px;
    margin: 0 0 15px;
}

.footer-platform-legal-name {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    color: #3a3f4a;
    letter-spacing: -0.015em;
    word-break: keep-all;
}

.footer-platform-nav--head {
    flex-shrink: 0;
}

.footer-platform-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.footer-platform-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px 40px;
    align-items: start;
}

.footer-platform-col {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.footer-platform-col--contact {
    text-align: right;
}

/* 본문 블록만 톤 다운 (상단 상호·링크 행 제외) */
.footer-platform-body .footer-platform-line {
    color: #868d9a;
}

.footer-platform-body .footer-platform-sep {
    color: #dfe3e8;
}

.footer-platform-body .footer-platform-a {
    color: #868d9a;
}

.footer-platform-body .footer-platform-a:hover {
    color: #0078ff;
}

.footer-platform-body .footer-platform-bottom {
    color: #868d9a;
}

.footer-platform-body .footer-platform-disclaimer {
    font-size: 13px;
    line-height: 1.65;
    font-weight: 400;
    color: #787f8c;
}

.footer-platform-body .footer-platform-copy {
    color: #9ca3af;
    opacity: 1;
}

.footer-platform-line {
    margin: 0;
    font-size: 0.83rem;
    line-height: 1.6;
    color: #5c6370;
    font-weight: 400;
    letter-spacing: -0.008em;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.footer-platform-line--note {
    font-size: 14px;
    color: #5c6370;
    line-height: 1.6;
}

.footer-platform-bottom {
    margin: 0;
    padding-top: 17px;
    border-top: 1px solid #d8dee6;
    font-size: 14px;
    line-height: 1.6;
    color: #5c6370;
    font-weight: 500;
    letter-spacing: -0.008em;
    word-break: keep-all;
    overflow-wrap: anywhere;
    overflow: hidden;
}

.footer-platform-line--row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
}

.footer-platform-nav {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin: 0;
}

.footer-platform-a {
    color: #5c6370;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.12s ease;
}

.footer-platform-a:hover {
    color: #0078ff;
}

.footer-platform-a--nav {
    font-size: 14px;
}

.footer-platform-a--privacy {
    font-weight: 500;
}

.footer-platform-sep {
    color: #d1d5db;
    font-size: 14px;
    margin: 0 10px;
    font-weight: 400;
    user-select: none;
}

.footer-platform-copy {
    float: right;
    margin: 0 0 2px 16px;
    font-size: 13px;
    line-height: 1.55;
    color: #5c6370;
    font-weight: 300;
    opacity: 0.72;
    white-space: nowrap;
}

/* 반응형 디자인 */
@media (max-width: 1400px) {
    .header-container,
    .hero-container,
    .main-content {
        padding: 25px 30px 20px;
    }
    
    .footer-container {
        padding: 36px 30px 20px;
    }

    .footer-container--with-seller {
        padding-bottom: 0;
    }

    .footer-platform .footer-container {
        padding-top: 20px;
        padding-bottom: 18px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 0;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 16px;
    }

    .search-box {
        width: 250px;
    }
}

@media (max-width: 1024px) {
    .header-container,
    .hero-container,
    .main-content {
        padding: 25px 30px 20px;
    }
    
    .footer-container {
        padding: 36px 30px 20px;
    }

    .hero-banner {
        padding: 140px 0 25px 0;
    }

    .hero-title {
        font-size: 32px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 16px;
    }

    .search-box {
        width: 200px;
    }

    .footer-container {
        padding: 36px 30px 28px;
    }

    .footer-container--with-seller {
        padding-bottom: 0;
    }

    .footer-platform .footer-container {
        padding-top: 20px;
        padding-bottom: 18px;
    }
}

@media (max-width: 768px) {
    .header-container,
    .hero-container,
    .nav-tabs-container,
    .main-content,
    .footer-container {
        padding: 25px 16px 20px;
    }

    .header-container {
        height: 56px;
    }

    .logo {
        font-size: 20px;
    }

    .logo-new-text {
        font-size: 20px;
    }

    .search-box {
        display: none;
    }

    .hero-banner {
        padding: 120px 0 20px 0;
    }

    .hero-title {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 0;
    }

    .nav-tabs-container {
        overflow-x: auto;
        gap: 12px;
        padding: 0 16px;
        -webkit-overflow-scrolling: touch;
    }

    .nav-tab {
        padding: 10px 14px;
        font-size: 15px;
        white-space: nowrap;
    }

    .main-content {
        padding: 30px 16px;
    }

    .section-title {
        font-size: 20px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 12px;
    }


    .footer-container {
        padding: 32px 20px 24px;
    }

    .footer-container--with-seller {
        padding-bottom: 0;
    }

    .footer-platform .footer-container {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .footer-platform-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 12px;
    }

    .footer-platform-legal-name {
        font-size: 15px;
    }

    .footer-platform-body {
        gap: 10px;
    }

    .footer-platform-cols {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .footer-platform-col--contact {
        text-align: left;
    }

    .footer-platform-line {
        font-size: 13px;
    }

    .footer-platform-line--note {
        font-size: 12px;
    }

    .footer-platform-bottom {
        font-size: 13px;
        padding-top: 10px;
    }

    .footer-platform-body .footer-platform-disclaimer {
        font-size: 11px;
    }

    .footer-platform-a--nav {
        font-size: 13px;
    }

    .footer-platform-sep {
        font-size: 13px;
    }

    .footer-platform-copy {
        font-size: 12px;
        margin-left: 12px;
    }

    .info-item {
        display: block;
        margin-right: 0;
        margin-bottom: 4px;
    }

    .nav-tabs {
        top: 56px;
    }

    .logo-new-text {
        top: 0px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 15px;
    }

    .hero-banner {
        padding: 100px 0 20px 0;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 13px;
    }

    .main-content {
        padding: 24px 12px;
    }

    .section-header {
        margin-bottom: 20px;
        align-items: flex-start;
        gap: 8px;
    }

    .section-title {
        font-size: 18px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 10px;
    }

    .product-content {
        padding-top: 12px;
    }

    .product-title {
        font-size: 13px;
    }

    .product-price {
        font-size: 14px;
    }

    .purchase-limit {
        font-size: 10px;
        padding: 2px 6px;
        border-radius: 4px;
    }

    .footer-container {
        padding: 28px 16px 20px;
    }

    .footer-container--with-seller {
        padding-bottom: 0;
    }

    .footer-platform .footer-container {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .footer-platform-legal-name {
        font-size: 14px;
    }

    .logo-new-text {
        top: 0px;
    }
}

/* 제품 구매 모달 */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.product-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.product-modal-content {
    position: relative;
    background-color: #ffffff;
    border-radius: 12px;
    max-width: 900px;
    width: 90%;
    max-height: 80vh;
    height: auto;
    overflow: hidden;
    z-index: 10001;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.product-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    transition: background-color 0.2s, color 0.2s;
    z-index: 10002;
}

.product-modal-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: #000;
}

.product-modal-body {
    display: flex;
    gap: 0;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.product-modal-left {
    flex: 1;
    background-color: #fafafa;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-modal-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.product-modal-image {
    width: 100%;
}

.product-modal-info {
    padding: 32px;
    flex: 1;
    overflow-y: visible;
    min-height: 0;
}


.modal-divider {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 24px 0;
}

.modal-product-title {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.modal-product-title .product-tag {
    margin-right: 0;
    font-size: 12px;
    padding: 4px 10px;
}

.modal-product-brand {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.modal-product-description {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
    white-space: pre-wrap;
    max-height: 200px;
    overflow-y: auto;
    text-align: justify;
    scrollbar-width: thin;
    scrollbar-color: #d0d0d0 transparent;
}

.modal-product-description::-webkit-scrollbar {
    width: 4px;
}

.modal-product-description::-webkit-scrollbar-track {
    background: transparent;
}

.modal-product-description::-webkit-scrollbar-thumb {
    background-color: #d0d0d0;
    border-radius: 99px;
}

.modal-product-description::-webkit-scrollbar-thumb:hover {
    background-color: #b0b0b0;
}

.modal-product-price-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-period-info {
    margin-top: 16px;
    margin-bottom: 8px;
}

.modal-period-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.modal-period-text {
    font-size: 13px;
    color: #0078FF;
    background: rgba(0, 120, 255, 0.08);
    border: 1px solid rgba(0, 120, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: 500;
    display: inline-block;
}

.modal-purchase-limits {
    margin-top: 16px;
    margin-bottom: 8px;
}

.modal-cash-point-expiry {
    margin-top: 14px;
    padding: 12px 14px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.modal-cash-point-expiry-title {
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 6px;
}

.modal-cash-point-expiry-text {
    font-size: 13px;
    line-height: 1.65;
    color: #6b7280;
    white-space: pre-wrap;
    word-break: break-word;
}

.modal-limits-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.modal-limits-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.modal-limits-list .purchase-limit {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    position: relative;
}

.purchase-limit-tooltip {
    position: fixed;
    padding: 14px 18px;
    background: #333;
    color: #fff;
    font-size: 13px;
    white-space: pre-line;
    min-width: 280px;
    max-width: 500px;
    width: max-content;
    text-align: center;
    line-height: 1.7;
    border-radius: 6px;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    word-break: keep-all;
}

.purchase-limit-tooltip::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
}

.purchase-limit-tooltip.tooltip-above::after {
    top: 100%;
    border-top-color: #333;
}

.purchase-limit-tooltip.tooltip-below::after {
    bottom: 100%;
    border-bottom-color: #333;
}

.modal-limits-list .purchase-limit:hover .purchase-limit-tooltip {
    opacity: 1;
    visibility: visible;
}

.modal-price-old {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
}

.modal-product-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-price-percent {
    font-size: 18px;
    font-weight: 700;
    color: #ff5c35;
}

.modal-price-current {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
}

.product-modal-actions {
    display: flex;
    gap: 12px;
    padding: 16px 24px 24px;
}

.modal-btn-cancel,
.modal-btn-purchase {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.modal-btn-cancel {
    background-color: #f5f5f5;
    color: #666;
}

.modal-btn-cancel:hover {
    background-color: #e5e5e5;
}

.modal-btn-purchase {
    background-color: #0078FF;
    color: #ffffff;
}

.modal-btn-purchase:hover {
    background-color: #005FCC;
}

@media (max-width: 768px) {
    .product-modal-content {
        max-width: 550px;
    }

    .product-modal-body {
        flex-direction: column;
    }

    .product-modal-left {
        background-color: transparent;
        flex: none;
    }

    .modal-product-title {
        font-size: 20px;
    }

    .modal-price-current {
        font-size: 22px;
    }

    .modal-btn-cancel,
    .modal-btn-purchase {
        padding: 12px 20px;
        font-size: 15px;
    }

    .product-modal-info {
        padding: 25px;
        padding-top: 0;
        flex: 1;
        overflow-y: auto;
        min-height: 0;
    }
}


/* 주문 내역 필터 바 */
.order-filter-bar {
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px 16px;
    margin-bottom: 35px;
}

.order-filter-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.order-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-filter-select {
    padding: 10px 14px;
    border: 1px solid #dde3ef;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    color: #1a1a1a;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.order-filter-select:focus {
    outline: none;
    border-color: #0078FF;
}

.order-period-btn {
    padding: 8px 16px;
    border: 1px solid #dde3ef;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: #495168;
    cursor: pointer;
    transition: all 0.2s;
}

.order-period-btn:hover {
    border-color: #0078FF;
    color: #0078FF;
}

.order-period-btn.active {
    border-color: #0078FF;
    background: #0078FF;
    color: #fff;
}

.order-filter-date {
    padding: 10px 12px;
    border: 1px solid #dde3ef;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    color: #1a1a1a;
    cursor: pointer;
}

.order-filter-date:focus {
    outline: none;
    border-color: #0078FF;
}

.order-filter-separator {
    font-size: 14px;
    color: #666;
    padding: 0 4px;
}

.order-filter-submit {
    padding: 8px 24px;
    border: none;
    border-radius: 6px;
    background: #0078FF;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.order-filter-submit:hover {
    background: #005FCC;
}

@media (max-width: 768px) {
    .order-filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .order-filter-group {
        width: 100%;
        justify-content: flex-start;
    }

    .order-filter-select,
    .order-filter-date {
        flex: 1;
    }

    .order-filter-submit {
        width: 100%;
    }
}

/* 주문 내역 빈 상태 */
.order-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.order-empty-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.order-empty-text {
    font-size: 16px;
    color: #6a7286;
    font-weight: 500;
    margin: 0;
}

.order-card-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-card {
    border: 1px solid #dde3ef;
    border-radius: 8px;
    padding: 14px 15px;
    background: #fff;
}

.order-card-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-card-product {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.order-card-thumb {
    width: 60px;
    height: 60px;
    border: 1px solid #d5def0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f6fb;
    overflow: hidden;
    flex-shrink: 0;
}

.order-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.order-card-thumb-placeholder {
    font-size: 11px;
    font-weight: 600;
    color: #9aa0b1;
}

.order-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-card-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-card-date {
    font-size: 13px;
    color: #6d7488;
    white-space: nowrap;
}

.order-card-meta {
    margin-top: 0px;
    font-size: 13px;
    color: #495168;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.order-card-meta strong {
    font-weight: 600;
    color: #3d4047;
    margin-right: 5px;
}

.order-card-meta-value {
    color: #6a7286;
    font-weight: 400;
}

.order-card-status-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.order-card-amount {
    font-size: 17px;
    font-weight: 800;
    color: #0078FF;
}

.order-card-status-group .orderinfo-status {
    font-size: 11px;
    padding: 5px 12px;
}

.order-card-link-area {
    display: block;
    color: inherit;
    text-decoration: none;
}

.order-card-link-area:focus-visible {
    outline: 2px solid #0078FF;
    border-radius: 12px;
    outline-offset: 4px;
}

@media (max-width: 640px) {
    .order-card {
        padding: 12px 14px;
    }

    .order-card-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .order-card-product {
        width: 100%;
    }

    .order-card-thumb {
        width: 56px;
        height: 56px;
    }

    .order-card-title {
        white-space: normal;
    }

    .order-card-status-group {
        width: 100%;
        align-items: flex-start;
    }

    .order-card-amount {
        font-size: 16px;
    }

    .order-card-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0px;
    }

    .order-card-date {
        color: #8b92a6;
    }

    .order-card-meta {
        margin-top: 5px;
    }
}

/* 추천 상품 슬라이드 */
.recommended-products-section {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
    min-width: 0;
}

.recommended-products-section .buyflow-card-title {
    width: 100%;
    margin-bottom: 0;
    padding-bottom: 12px;
}

.recommended-products-section > .recommended-products-header {
    width: 100%;
    box-sizing: border-box;
}

.recommended-products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.recommended-products-slider {
    position: relative;
    overflow: hidden !important;
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
    contain: layout style;
    min-width: 0;
}

.recommended-products-track {
    display: flex;
    gap: 12px;
    transition: transform 0.3s ease;
    will-change: transform;
    width: max-content;
    flex-wrap: nowrap;
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.recommended-product-card {
    flex: 0 0 188px;
    min-width: 188px;
    max-width: 188px;
    width: 188px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    flex-shrink: 0;
}

.recommended-product-card:hover {
    border-color: #0078FF;
}

.recommended-product-image {
    width: 100%;
    height: 140px;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.recommended-product-placeholder {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 600;
}

.recommended-product-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.recommended-product-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recommended-product-subtitle {
    font-size: 12px;
    color: #6b7280;
    margin: 0 0 15px 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recommended-product-price {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.recommended-price-original {
    font-size: 12px;
    color: #9ca3af;
    text-decoration: line-through;
}

.recommended-price-discount {
    font-size: 12px;
    color: #ef4444;
    font-weight: 600;
}

.recommended-price-final {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

.recommended-products-nav {
    position: absolute;
    top: 50%;
    margin-right: 10px;
    margin-left: 10px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.recommended-products-nav:hover {
    background: #0078FF;
    color: #fff;
    border-color: #0078FF;
    box-shadow: 0 4px 12px rgba(0, 120, 255, 0.3);
}

.recommended-products-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.recommended-products-nav-prev {
    left: 0;
}

.recommended-products-nav-next {
    right: 0;
}

.recommended-products-nav[aria-label="이전"],
.recommended-products-nav[aria-label="다음"] {
    line-height: 1;
    padding: 0;
}

@media (max-width: 768px) {
    
    .recommended-product-card {
        flex: 0 0 160px;
        min-width: 160px;
        max-width: 160px;
    }
    
    .recommended-product-image {
        height: 120px;
    }
    
    .recommended-products-nav {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }

    .nav-tab-new {
        width: 5px;
        height: 5px;
        top: 13px;
        right: 4px;
    }
}

/* 환금성 — 보유 재화 카드 */
.shop-cash-strip {
    width: 100%;
    box-sizing: border-box;
    background: #f0f5fb;
    border-bottom: 1px solid #dce8f5;
    padding: 12px 0;
}

.shop-cash-strip--inline {
    background: transparent;
    border-bottom: none;
    padding: 10px 0 30px;
}

.section-header:has(+ .shop-cash-strip--inline) {
    margin-bottom: 14px;
}

.shop-cash-strip__container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ═══════════════════════════════
   보유 재화 위젯 – 블루 그라디언트
   ═══════════════════════════════ */

.shop-cash-widget.order-card {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #EFF6FF 0%, #F5F8FF 100%);
    border: none;
    border-radius: 12px;
    box-shadow: none;
    overflow: visible;
    position: relative;
    min-height: 90px;
    gap: 10px;
}

.shop-cash-widget.order-card::before,
.shop-cash-widget.order-card::after {
    content: none;
}

/* ── 캐릭터 영역 ── */
.shop-cash-widget__figure {
    flex: 0 0 110px;
    position: relative;
    align-self: stretch;
    background: transparent;
    border-right: none;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: visible;
    flex-shrink: 0;
    z-index: 2;
}

.shop-cash-widget__figure::before {
    content: none;
}

.shop-cash-widget__seller-bust {
    position: relative;
    z-index: 2;
    width: 130px;
    height: auto;
    image-rendering: pixelated;
    display: block;
    margin-top: -50px;
    filter: none;
}

/* ── 오른쪽 전체 ── */
.shop-cash-widget__body {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    position: relative;
    z-index: 1;
}

/* ── 잔액 정보 ── */
.shop-cash-widget__stat {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 50px;
    padding: 16px 28px 16px 16px;
    border-right: none;
}

.shop-cash-widget__player-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-right: 50px;
    border-right: 1px solid rgba(0, 120, 255, 0.15);
}

.shop-cash-widget__nickname {
    font-size: 18px;
    font-weight: 700;
    color: #111111;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 5px;
}

.shop-cash-widget__mcname {
    font-size: 16px;
    font-weight: 500;
    color: #555555;
}

.shop-cash-widget__uuid {
    font-size: 12px;
    font-weight: 400;
    color: #999999;
    letter-spacing: 0.02em;
}

.shop-cash-widget__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #333333;
    margin: 0;
    margin-left: 2px;
}

.shop-cash-widget__balance-block {
    display: flex;
    flex-direction: column;
}

.shop-cash-widget__balance-line {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.shop-cash-widget__amount {
    font-size: clamp(26px, 3.2vw, 36px);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    color: #0078FF;
    font-variant-numeric: tabular-nums;
    text-shadow: none;
}

.shop-cash-widget__unit {
    font-size: 16px;
    font-weight: 600;
    color: #0078FF;
}

/* ── 버튼 영역 ── */
.shop-cash-widget__actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 16px 24px 16px 30px;
}

.shop-cash-widget__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 22px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
    border: 1.5px solid transparent;
    transition: background 0.13s, border-color 0.13s, color 0.13s;
    cursor: pointer;
}

.shop-cash-widget__btn--primary {
    background: #0078FF;
    color: #ffffff;
    border-color: #0078FF;
}

.shop-cash-widget__btn--primary:hover {
    background: #0055CC;
    border-color: #0055CC;
    color: #ffffff;
}

.shop-cash-widget__btn--ghost {
    background: transparent;
    color: #0078FF;
    border-color: #0078FF;
}

.shop-cash-widget__btn--ghost:hover {
    background: #EFF6FF;
    border-color: #0055CC;
    color: #0055CC;
}

/* ── 반응형 ── */
@media (max-width: 640px) {
    .shop-cash-widget.order-card {
        min-height: auto;
        justify-content: flex-start;
    }

    .shop-cash-widget__figure {
        flex: 0 0 82px;
    }

    .shop-cash-widget__seller-bust {
        width: 68px;
    }

    .shop-cash-widget__body {
        flex-wrap: wrap;
    }

    .shop-cash-widget__stat {
        padding: 12px 16px 10px 16px;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.18);
        flex: 1 1 100%;
    }

    .shop-cash-widget__actions {
        padding: 10px 16px 12px;
        flex: 1 1 100%;
        gap: 8px;
    }

    .shop-cash-widget__btn {
        flex: 1;
        padding: 7px 10px;
        font-size: 12px;
    }
}

.shop-cash-history-card.buyflow-card {
    padding: 26px 28px 28px;
    border-radius: 12px;
}

.shop-cash-history-card .buyflow-card-title {
    margin-bottom: 8px;
}

.shop-cash-history-card__lead {
    margin: 0 0 20px;
    font-size: 14px;
    color: #6a7286;
    line-height: 1.55;
    max-width: 56em;
}

.shop-cash-history-card .order-empty-state {
    margin-top: 4px;
}

/* 충전·사용 내역 페이지 — 구매(주문) 내역과 동일 buyflow·빈 상태 패턴 */
.buyflow-container > .buyflow-back-link {
    display: inline-block;
    margin-bottom: 8px;
}

.shop-cash-page-lead {
    font-size: 14px;
    color: #6a7286;
    margin: -4px 0 20px;
    line-height: 1.55;
}

.shop-cash-page-empty-note {
    margin: 10px 0 0;
    font-size: 13px;
    color: #9aa0b1;
    font-weight: 400;
    line-height: 1.45;
}

/* ── 환금성 히스토리 아이템 (가로 폭 활용: 금액 | 설명 | 일시·유형) ── */
.cash-history-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cash-history-item {
    display: grid;
    grid-template-columns: minmax(108px, 13%) minmax(0, 1fr) minmax(148px, 24%);
    align-items: stretch;
    gap: 0 28px;
    padding: 20px 24px;
    border: 1px solid #dde3ef;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.cash-history-item__amount {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding-right: 22px;
    border-right: 1px solid #eef2f8;
}

.cash-history-item__badge {
    flex: 0 0 auto;
    min-width: 72px;
    text-align: left;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.5px;
    white-space: nowrap;
    line-height: 1.15;
}

.cash-history-item__unit {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #8b92a6;
    letter-spacing: 0.02em;
}

.cash-history-item__badge--topup {
    color: #0078FF;
}

.cash-history-item__badge--usage {
    color: #d84000;
}

.cash-history-item__main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2px 0;
}

.cash-history-item__desc {
    font-size: 15px;
    font-weight: 600;
    color: #22273a;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.cash-history-item__aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
    text-align: right;
    padding-left: 8px;
}

.cash-history-item__date {
    font-size: 13px;
    color: #6b7289;
    margin-top: 0;
    letter-spacing: 0.01em;
}

.cash-history-item__meta {
    margin-top: 0;
}

.cash-history-item__type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 24px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.cash-history-item__type--topup {
    background: #eef4ff;
    color: #34507a;
    border: 1px solid #d4e2fb;
}

.cash-history-item__type--usage {
    background: #f3f6fb;
    color: #4c5b7d;
    border: 1px solid #e2e8f4;
}

/* 로딩 스켈레톤 */
.cash-history-loading {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cash-history-loading__row {
    height: 88px;
    border-radius: 12px;
    background: linear-gradient(90deg, #f0f2f8 25%, #e4e8f2 50%, #f0f2f8 75%);
    background-size: 200% 100%;
    animation: cash-shimmer 1.3s infinite;
}

@keyframes cash-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 페이지네이션 */
.cash-history-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}

.cash-history-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #dde3ef;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #3d4561;
    cursor: pointer;
}

.cash-history-pagination__btn--active {
    background: #0057d8;
    border-color: #0057d8;
    color: #fff;
}

.cash-history-pagination__btn:disabled {
    opacity: 0.38;
    cursor: default;
}

/* 오류 상태 */
.cash-history-error {
    text-align: center;
    padding: 32px 16px;
    color: #8b92a6;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .cash-history-item {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px 18px;
    }

    .cash-history-item__amount {
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
        border-right: none;
        padding-right: 0;
        padding-bottom: 14px;
        border-bottom: 1px solid #eef2f8;
        text-align: left;
    }

    .cash-history-item__badge {
        text-align: left;
    }

    .cash-history-item__aside {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding-left: 0;
        gap: 12px;
    }

    .cash-history-item__aside .cash-history-item__date {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .shop-cash-history-card__lead {
        margin-bottom: 16px;
        font-size: 13px;
    }

    .cash-history-item {
        padding: 14px 16px;
    }

    .cash-history-item__badge {
        min-width: 0;
        font-size: 16px;
    }

    .cash-history-item__unit {
        font-size: 11px;
    }

    .cash-history-item__desc {
        font-size: 14px;
        -webkit-line-clamp: 4;
        line-clamp: 4;
    }

    .cash-history-item__date {
        font-size: 12px;
    }
}