/* CarrotEZ - 세련된 쇼핑몰 스타일 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #FF6B35;
    --primary-dark: #E55A2B;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --text-muted: #999;
    --bg-primary: #fff;
    --bg-secondary: #f8f8f8;
    --border: #eee;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --radius: 8px;
    --header-h: 52px;
    --nav-h: 56px;
}

html {
    font-size: 14px;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.5;
    padding-bottom: var(--nav-h);
    -webkit-font-smoothing: antialiased;
    max-width: 480px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* 헤더 */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    height: var(--header-h);
    padding: 0 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.search-box {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 0 12px;
    max-width: 400px;
}

.search-box input {
    flex: 1;
    border: none;
    background: none;
    padding: 8px 0;
    font-size: 13px;
    outline: none;
}

.search-box button {
    color: var(--text-muted);
    padding: 4px;
}

.header-icons {
    display: flex;
    gap: 8px;
}

/* 모바일에서 헤더 아이콘 숨김 (하단 네비와 중복 방지) */
@media (max-width: 767px) {
    .header-icons {
        display: none;
    }
}

.icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--text-primary);
}

.icon-btn .badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* 이미지 배너 슬라이더 */
.banner-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 2.5 / 1;
    max-height: 300px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.banner-slider .banner-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease-out;
}

.banner-slider .banner-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
}

.banner-slider .banner-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.banner-slider .banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    padding: 0;
}

.banner-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* 배너 없을 때 플레이스홀더 */
.banner-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFF5F0 0%, #FFE8DE 100%);
    color: var(--text-secondary);
    font-size: 14px;
}

/* 검색 입력창 섹션 */
.search-input-section {
    background: var(--bg-primary);
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.search-form-large {
    display: flex;
    gap: 8px;
    max-width: 600px;
    margin: 0 auto;
}

.search-form-large input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.search-form-large input:focus {
    border-color: var(--primary);
}

.search-submit-btn {
    padding: 12px 16px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-submit-btn:hover {
    background: var(--primary-dark);
}

/* 검색 결과 헤더 */
.search-header {
    background: var(--bg-primary);
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.search-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.search-title strong {
    color: var(--primary);
}

.search-count {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 13px;
    margin-left: 4px;
}

.empty-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* 최근 검색어 섹션 */
.recent-search-section {
    background: var(--bg-primary);
    padding: 20px 16px;
    border-bottom: 1px solid var(--border);
}

.recent-search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.recent-search-header h2 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.clear-all-btn {
    background: none;
    border: none;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
}

.clear-all-btn:hover {
    color: var(--primary);
}

.recent-search-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.search-chip:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.search-chip:hover .chip-delete {
    color: rgba(255,255,255,0.8);
}

.chip-delete {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(0,0,0,0.1);
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1;
}

.chip-delete:hover {
    background: rgba(0,0,0,0.2);
}

.no-recent-search {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    padding: 20px 0;
}

/* 카테고리 네비게이션 */
.category-nav {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: var(--header-h);
    z-index: 50;
    display: flex;
    align-items: center;
    padding: 10px 16px;
    gap: 12px;
}

.category-scroll {
    flex: 1;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

/* MD 추천 섹션 */
.md-pick-section {
    background: var(--bg-primary);
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.md-pick-section .section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.md-pick-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}

.md-pick-scroll::-webkit-scrollbar {
    display: none;
}

.md-pick-card {
    flex: 0 0 130px;
    min-width: 130px;
    background: #FFFBF5;
    border: 1px solid #FFE8D4;
}

.md-pick-card:hover {
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15);
}

.md-pick-empty {
    text-align: center;
    padding: 24px 16px;
    color: var(--text-secondary);
    font-size: 13px;
}

.md-pick-empty p {
    margin: 0;
}

/* 일반 상품 섹션 */
.general-section {
    background: var(--bg-primary);
    padding: 13px 13px 3px;
}

.general-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 9px;
}

.general-section .section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.sort-select {
    flex-shrink: 0;
    padding: 6px 10px;
    font-size: 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
}

.cat-btn {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border-radius: 16px;
    white-space: nowrap;
    transition: all 0.2s;
}

.cat-btn:hover {
    color: var(--primary);
}

.cat-btn.active {
    background: var(--primary);
    color: #fff;
}

/* 메인 컨텐츠 */
.main-content {
    padding: 12px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 상품 그리드 - 모든 화면에서 3개 고정 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px;
}

/* 상품 카드 */
.product-card {
    background: var(--bg-primary);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-thumb {
    position: relative;
    padding-top: 100%;
    background: var(--bg-secondary);
}

.product-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sold-out-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.md-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 3px;
}

.product-info {
    padding: 10px;
}

.product-name {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.4;
    height: 34px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.product-category {
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-muted);
}

/* 옵션 칩 스크롤 영역 */
.option-chips {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 6px 0 2px;
    margin: 0 -2px;
}

.option-chips::-webkit-scrollbar {
    display: none;
}

.option-chip {
    flex-shrink: 0;
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.2;
}

.option-chip.in-stock {
    background: #EBF5FF;
    border: 1px solid #3B82F6;
    color: #3B82F6;
}

.option-chip.sold-out {
    background: #f5f5f5;
    color: var(--text-muted);
    border: 1px solid #e5e5e5;
}

.option-chip .qty {
    font-weight: 600;
    margin-left: 2px;
}

/* 로딩 */
.loading {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.spinner {
    width: 28px;
    height: 28px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 빈 상태 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 13px;
}

/* 하단 네비게이션 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: var(--nav-h);
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    display: flex;
    z-index: 100;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--text-muted);
    font-size: 10px;
    transition: color 0.2s;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item svg {
    width: 20px;
    height: 20px;
}

/* 모바일에서 헤더 검색 숨김 */
@media (max-width: 540px) {
    .search-box {
        display: none;
    }
}

/* 사업자 정보 푸터 */
.site-footer {
    background: #f5f5f5;
    padding: 24px 16px;
    margin-bottom: var(--nav-h);
    border-top: 1px solid var(--border);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.site-footer .company-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.site-footer .footer-info {
    margin-bottom: 12px;
}

.site-footer .footer-info p {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.6;
}

.site-footer .footer-links {
    margin-bottom: 12px;
}

.site-footer .footer-links a {
    font-size: 11px;
    color: var(--text-secondary);
}

.site-footer .footer-links .divider {
    margin: 0 8px;
    color: var(--text-muted);
    font-size: 10px;
}

.site-footer .copyright {
    font-size: 10px;
    color: var(--text-muted);
}

@media (min-width: 768px) {
    .site-footer {
        margin-bottom: 0;
    }
}

/* ================================
   상품 상세 페이지 스타일
   ================================ */

/* 브레드크럼 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-primary);
    overflow-x: auto;
    white-space: nowrap;
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb .separator {
    color: var(--text-muted);
}

.breadcrumb .current {
    color: var(--text-primary);
}

/* 상품 갤러리 */
.product-gallery {
    position: relative;
    background: var(--bg-primary);
}

.gallery-slider {
    overflow: hidden;
    background: #f5f5f5;
}

.slides-wrapper {
    display: flex;
    transition: transform 0.3s ease;
}

.slides-wrapper .slide {
    flex: 0 0 100%;
}

.slides-wrapper .slide img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8px 16px;
    background: var(--bg-primary);
}

.gallery-dots {
    display: flex;
    gap: 6px;
}

.gallery-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: background 0.2s;
}

.gallery-dots .dot.active {
    background: var(--primary);
}

.share-btn {
    position: absolute;
    right: 12px;
    bottom: 44px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

/* 상품 상세 정보 (상세 페이지 전용) */
.product-detail-page .product-info {
    padding: 16px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
}

.product-detail-page .product-name {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 6px;
    height: auto;
    -webkit-line-clamp: unset;
}

.product-detail-page .product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    margin-top: 0;
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.meta-row {
    display: flex;
    font-size: 12px;
}

.meta-row .label {
    width: 60px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.meta-row .value {
    color: var(--text-secondary);
}

/* 옵션/수량 선택 */
.product-options {
    padding: 16px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-row,
.quantity-row {
    display: flex;
    align-items: center;
}

.option-row label,
.quantity-row label {
    width: 70px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    flex-shrink: 0;
}

.option-select {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    background: var(--bg-primary);
    color: var(--text-primary);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}

.option-select:focus {
    outline: none;
    border-color: var(--primary);
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.qty-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    transition: background 0.2s;
}

.qty-btn:disabled {
    color: var(--text-muted);
    background: var(--bg-secondary);
    cursor: not-allowed;
}

.qty-btn:not(:disabled):hover {
    background: var(--border);
}

#qtyInput {
    width: 50px;
    text-align: center;
    border: none;
    font-size: 14px;
    font-weight: 500;
    background: var(--bg-primary);
}

/* 상품 설명 */
.product-description {
    padding: 16px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
}

.product-description p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    white-space: pre-line;
}

/* 상세 이미지 */
.product-detail-images {
    background: var(--bg-primary);
}

.product-detail-images img {
    width: 100%;
    display: block;
}

/* 아코디언 */
.accordion {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
}

.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-primary);
}

.accordion-header .accordion-icon {
    transition: transform 0.2s;
}

.accordion-header.open .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.open {
    max-height: 2000px;
}

/* 상품 문의 */
.inquiry-btn {
    width: calc(100% - 32px);
    margin: 0 16px 12px;
    padding: 10px;
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
    background: var(--bg-primary);
    transition: background 0.2s;
}

.inquiry-btn:hover {
    background: rgba(255, 107, 53, 0.05);
}

.inquiry-notice {
    margin: 0 16px 16px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    list-style: none;
}

.inquiry-notice li {
    font-size: 11px;
    color: var(--text-muted);
    padding-left: 10px;
    position: relative;
    line-height: 1.6;
}

.inquiry-notice li::before {
    content: "·";
    position: absolute;
    left: 0;
}

.inquiry-list {
    padding: 0 16px 16px;
}

.empty-inquiry {
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: var(--text-muted);
}

/* 문의 목록 아이템 */
.inquiry-item {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.inquiry-item:hover {
    background: var(--bg-secondary);
}

.inquiry-item-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.inquiry-status {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.inquiry-status.waiting {
    background: #fef3cd;
    color: #856404;
}

.inquiry-status.answered {
    background: #d4edda;
    color: #155724;
}

.inquiry-secret {
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 4px;
    background: #f8f9fa;
    color: var(--text-muted);
}

.inquiry-item-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inquiry-item-meta {
    display: flex;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
}

.inquiry-more {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    padding: 8px 0;
}

/* 문의 모달 */
.inquiry-modal {
    max-width: 500px;
}

.inquiry-modal .form-group {
    margin-bottom: 14px;
}

.inquiry-modal .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.inquiry-modal .form-group input[type="text"],
.inquiry-modal .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    box-sizing: border-box;
}

.inquiry-modal .form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.inquiry-modal .checkbox-group {
    margin-bottom: 0;
}

.inquiry-modal .checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}

.inquiry-modal .checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.inquiry-modal .btn-cancel {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.inquiry-modal .btn-submit {
    background: var(--primary);
    color: white;
}

/* 문의 상세 모달 */
.inquiry-detail-modal {
    max-width: 500px;
}

.inquiry-detail {
    padding: 0;
}

.inquiry-detail-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.inquiry-detail-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.inquiry-detail-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.inquiry-detail-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
}

.inquiry-answer {
    margin-top: 16px;
    padding: 12px;
    background: #fff8f3;
    border: 1px solid #ffe0cc;
    border-radius: var(--radius);
}

.inquiry-answer-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.answer-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--primary);
    color: white;
}

.answer-date {
    font-size: 11px;
    color: var(--text-muted);
}

.inquiry-answer-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 배송/교환/반품 안내 */
.info-section {
    padding: 0 16px 16px;
}

.info-section h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.info-table {
    width: 100%;
    font-size: 12px;
    border-collapse: collapse;
}

.info-table th {
    width: 80px;
    padding: 6px 0;
    text-align: left;
    font-weight: 400;
    color: var(--text-muted);
    vertical-align: top;
}

.info-table td {
    padding: 6px 0;
    color: var(--text-secondary);
}

.info-table .sub-text {
    font-size: 11px;
    color: var(--text-muted);
}

.info-note {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
}

.restriction-list {
    list-style: none;
    font-size: 12px;
    color: var(--text-secondary);
}

.restriction-list li {
    padding: 4px 0 4px 14px;
    position: relative;
}

.restriction-list li::before {
    content: "·";
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

.contact-info {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 하단 여백 */
.bottom-spacer {
    height: 80px;
}

/* 하단 고정 버튼 */
.product-actions {
    position: fixed;
    bottom: var(--nav-h);
    left: 0;
    right: 0;
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    z-index: 90;
}

.action-btn {
    flex: 1;
    padding: 14px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.2s;
}

.cart-action {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.buy-action {
    background: var(--primary);
    color: #fff;
}

.action-btn:active {
    opacity: 0.8;
}

/* PC에서 하단 버튼 위치 조정 */
@media (min-width: 768px) {
    .product-actions {
        bottom: 0;
        max-width: 600px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .bottom-spacer {
        height: 70px;
    }
}

/* 토스트 메시지 */
#toast-container {
    position: fixed;
    bottom: calc(var(--nav-h) + 70px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast-message {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 13px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.toast-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* 인증 페이지 (로그인/회원가입) */
.auth-container {
    min-height: calc(100vh - var(--header-h) - var(--nav-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: var(--bg-secondary);
}

.auth-box {
    width: 100%;
    max-width: 400px;
    background: var(--bg-primary);
    border-radius: var(--radius);
    padding: 32px 24px;
    box-shadow: var(--shadow);
}

.auth-title {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 28px;
    color: var(--text-primary);
}

.auth-form .form-group {
    margin-bottom: 16px;
}

.auth-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.auth-form label .required {
    color: var(--primary);
}

.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input[type="email"],
.auth-form input[type="tel"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-error {
    background: #FEF2F2;
    border: 1px solid #FEE2E2;
    color: #DC2626;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 16px;
}

.form-divider {
    height: 1px;
    background: var(--border);
    margin: 20px 0;
}

.checkbox-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.sub-check {
    padding-left: 8px;
}

.sub-check .checkbox-label span {
    font-size: 13px;
    color: var(--text-secondary);
}

.view-link {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: underline;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-full {
    width: 100%;
    margin-top: 8px;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.auth-links a {
    color: var(--primary);
}

.auth-links .divider {
    margin: 0 8px;
    color: var(--border);
}

.register-box {
    max-width: 420px;
}

/* 장바구니 페이지 */
.cart-container {
    min-height: calc(100vh - var(--header-h) - var(--nav-h));
    background: var(--bg-secondary);
    padding-bottom: 80px;
}

.cart-login-required {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 40px 20px;
}

.cart-login-required .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.cart-login-required p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.cart-login-required .btn-primary {
    padding: 12px 32px;
}

.cart-header {
    background: var(--bg-primary);
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.cart-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cart-select-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
}

.cart-list {
    background: var(--bg-primary);
}

.cart-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.cart-item.invalid {
    opacity: 0.6;
}

.cart-item-checkbox {
    padding-top: 2px;
}

.cart-item-check {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.invalid-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 4px;
    cursor: pointer;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-option {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.cart-item-price {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.cart-item-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    font-size: 16px;
    cursor: pointer;
    color: var(--text-secondary);
}

.qty-btn:disabled {
    color: var(--border);
    cursor: not-allowed;
}

.qty-value {
    width: 32px;
    text-align: center;
    font-size: 13px;
}

.cart-item-delete {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    text-align: center;
}

.cart-empty .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.cart-empty p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.cart-summary {
    background: var(--bg-primary);
    margin-top: 8px;
    padding: 20px 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.summary-row.total {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.cart-actions {
    position: fixed;
    bottom: var(--nav-h);
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    z-index: 90;
}

.cart-actions .btn-primary {
    margin-top: 0;
}

/* ========================================
   주문서 (Checkout) 스타일
======================================== */
.checkout-container {
    padding: 0 0 120px;
}

.checkout-title {
    background: var(--bg-primary);
    padding: 20px 16px;
    font-size: 18px;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
}

.checkout-section {
    background: var(--bg-primary);
    margin-top: 8px;
    padding: 20px 16px;
}

.checkout-section .section-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

/* 주문 상품 */
.supplier-group {
    margin-bottom: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.supplier-group:last-child {
    margin-bottom: 0;
}

.supplier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-secondary);
    font-size: 13px;
}

.supplier-name {
    font-weight: 600;
    color: var(--text-primary);
}

.shipping-fee {
    color: var(--text-secondary);
}

.supplier-items {
    padding: 12px 16px;
}

.order-item {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.order-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.order-item .item-image {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--bg-secondary);
}

.order-item .item-info {
    flex: 1;
    min-width: 0;
}

.order-item .item-name {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.order-item .item-option {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.order-item .item-price-qty {
    font-size: 12px;
    color: var(--text-secondary);
}

.order-item .item-subtotal {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 4px;
}

/* 배송지 폼 */
.address-form .form-group {
    margin-bottom: 16px;
}

.address-form .form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.address-form .form-label .required {
    color: var(--primary);
}

.address-form .form-input,
.address-form .form-select {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-primary);
    transition: border-color 0.2s;
}

.address-form .form-input:focus,
.address-form .form-select:focus {
    outline: none;
    border-color: var(--primary);
}

.address-form .form-input[readonly] {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.address-form .form-input + .form-input {
    margin-top: 8px;
}

.address-input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.address-input-group .postcode {
    flex: 1;
}

.address-input-group .btn-secondary {
    white-space: nowrap;
    padding: 0 16px;
}

.saved-addresses {
    margin-bottom: 16px;
}

.saved-addresses .form-select {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

/* 결제 수단 */
.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.payment-option {
    flex: 1;
    min-width: calc(50% - 4px);
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-option input {
    display: none;
}

.payment-option.selected {
    border-color: var(--primary);
    background: rgba(255, 107, 53, 0.05);
}

.payment-option .option-label {
    font-size: 14px;
    font-weight: 500;
}

/* 결제 정보 요약 */
.payment-summary {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 16px;
}

.payment-summary .summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.payment-summary .summary-row.total {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.payment-summary .shipping-detail {
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-muted);
    gap: 8px;
}

/* 주문 동의 */
.order-agreement {
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
}

.order-agreement .checkbox-label span {
    font-size: 14px;
}

/* 하단 고정 버튼 */
.checkout-actions {
    position: fixed;
    bottom: var(--nav-h);
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    z-index: 90;
}

.checkout-actions .btn-primary {
    margin-top: 0;
    font-size: 16px;
    padding: 16px;
}

.checkout-actions .btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.checkout-notice {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin-top: 8px;
}

/* 토스 결제위젯 영역 */
#payment-method {
    min-height: 200px;
    border-radius: 8px;
    overflow: hidden;
}

#agreement {
    margin-top: 0;
}

/* 에러 메시지 */
.checkout-error {
    padding: 40px 16px;
    text-align: center;
}

.checkout-error p {
    color: var(--primary);
    font-size: 15px;
}

/* ========================================
   주문 완료 (Order Complete) 스타일
======================================== */
.order-complete-container {
    padding: 0 0 40px;
}

.complete-header {
    background: var(--bg-primary);
    padding: 40px 16px;
    text-align: center;
    border-bottom: 8px solid var(--bg-secondary);
}

.complete-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
}

.complete-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.complete-message {
    font-size: 14px;
    color: var(--text-secondary);
}

.order-info-section,
.order-items-section,
.shipping-info-section,
.payment-summary-section {
    background: var(--bg-primary);
    margin-top: 8px;
    padding: 20px 16px;
}

.order-info-section .section-title,
.order-items-section .section-title,
.shipping-info-section .section-title,
.payment-summary-section .section-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.order-info-box {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 16px;
}

.order-info-box .info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.order-info-box .info-row:last-child {
    margin-bottom: 0;
}

.order-info-box .info-label {
    color: var(--text-secondary);
}

.order-info-box .info-value {
    font-weight: 500;
}

.order-info-box .order-code {
    font-family: monospace;
    color: var(--primary);
}

.order-info-box .status-paid {
    color: #2ecc71;
}

.order-info-box .status-pending {
    color: var(--primary);
}

.order-info-box .status-cancelled,
.order-info-box .status-expired {
    color: #999;
}

.order-info-box .status-shipped {
    color: #1976d2;
}

.order-info-box .status-return-processing {
    color: #c62828;
}

.order-info-box .status-return-completed {
    color: #b71c1c;
}

.order-info-box .status-return-rejected {
    color: #ad1457;
}

.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shipping-info-box {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 16px;
}

.shipping-info-box .recipient-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.shipping-info-box .recipient-phone {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.shipping-info-box .recipient-address {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.shipping-info-box .shipping-message {
    font-size: 13px;
    color: var(--text-muted);
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.payment-summary-box {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 16px;
}

.payment-summary-box .summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.payment-summary-box .summary-row.total {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.complete-actions {
    display: flex;
    gap: 12px;
    padding: 20px 16px;
    background: var(--bg-primary);
    margin-top: 8px;
}

.complete-actions a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 16px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
}

.complete-actions .btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.complete-actions .btn-primary {
    background: var(--primary);
    color: white;
}

.order-not-found {
    padding: 60px 16px;
    text-align: center;
}

.order-not-found .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.order-not-found h1 {
    font-size: 18px;
    margin-bottom: 8px;
}

.order-not-found p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ========================================
   마이페이지 (Mypage) 스타일
======================================== */
.mypage-container {
    padding: 0 0 40px;
}

.member-info-section {
    background: var(--primary);
    color: white;
    padding: 24px 16px;
}

.member-greeting {
    font-size: 18px;
    margin-bottom: 4px;
}

.member-greeting .member-name {
    font-weight: 700;
}

.member-id {
    font-size: 13px;
    opacity: 0.8;
}

/* 빠른 메뉴 */
.quick-menu {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 20px 16px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
}

.quick-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
}

.quick-menu-item .quick-icon {
    font-size: 24px;
}

.quick-menu-item .quick-label {
    font-size: 13px;
    font-weight: 500;
}

/* 탭 메뉴 */
.mypage-tabs {
    display: flex;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: var(--header-h);
    z-index: 80;
}

.mypage-tabs .tab-btn {
    flex: 1;
    padding: 14px 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.mypage-tabs .tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.mypage-tab-content {
    padding: 16px;
}

/* 주문 목록 */
.order-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-card {
    background: var(--bg-primary);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.order-card .order-header {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-secondary);
    font-size: 12px;
    color: var(--text-secondary);
}

.order-card .order-code {
    font-family: monospace;
}

.order-card .order-body {
    display: flex;
    gap: 12px;
    padding: 16px;
    cursor: pointer;
}

.order-card .order-image {
    width: 64px;
    height: 64px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--bg-secondary);
}

.order-card .order-info {
    flex: 1;
    min-width: 0;
}

.order-card .order-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.order-card .order-price {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.order-card .order-status {
    display: inline-block;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--bg-secondary);
}

.order-card .order-status.status-paid {
    background: #e8f5e9;
    color: #2e7d32;
}

.order-card .order-status.status-pending {
    background: #fff3e0;
    color: #e65100;
}

.order-card .order-status.status-cancelled,
.order-card .order-status.status-expired {
    background: #fafafa;
    color: #999;
}

/* 반품/배송 상태 */
.order-card .order-status.status-shipped {
    background: #e3f2fd;
    color: #1565c0;
}

.order-card .order-status.status-return-processing {
    background: #ffebee;
    color: #c62828;
}

.order-card .order-status.status-return-completed {
    background: #ffcdd2;
    color: #b71c1c;
}

.order-card .order-status.status-return-rejected {
    background: #fce4ec;
    color: #ad1457;
}

.order-card .order-status-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.order-card .tracking-info {
    font-size: 12px;
    color: var(--text-secondary);
}

.order-card .order-actions {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    text-align: right;
}

.order-empty {
    padding: 40px 16px;
    text-align: center;
}

.order-empty .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.order-empty p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.load-more {
    padding: 16px;
    text-align: center;
}

/* 배송지 관리 */
.address-header {
    margin-bottom: 16px;
    text-align: right;
}

.address-header .btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.address-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.address-card {
    background: var(--bg-primary);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

.address-card.is-default {
    border: 1px solid var(--primary);
}

.address-card .address-header {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.address-card .address-alias {
    font-size: 14px;
    font-weight: 600;
}

.address-card .default-badge {
    font-size: 11px;
    padding: 2px 6px;
    background: var(--primary);
    color: white;
    border-radius: 4px;
}

.address-card .address-body {
    margin-bottom: 12px;
}

.address-card .recipient-name {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
}

.address-card .recipient-phone {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.address-card .recipient-address {
    font-size: 14px;
    line-height: 1.4;
}

.address-card .address-actions {
    display: flex;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.address-empty {
    padding: 40px 16px;
    text-align: center;
}

.address-empty .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

/* 프로필 폼 */
.profile-form {
    background: var(--bg-primary);
    border-radius: var(--radius);
    padding: 20px 16px;
}

.profile-form .form-group {
    margin-bottom: 16px;
}

.profile-form .form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.profile-form .form-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-primary);
}

.profile-form .form-input:disabled {
    background: var(--bg-secondary);
    color: var(--text-muted);
}

/* 휴대폰 인증 (프로필) */
.profile-form .input-with-btn {
    display: flex;
    gap: 8px;
}

.profile-form .input-with-btn input {
    flex: 1;
}

.profile-form .btn-inline {
    flex-shrink: 0;
    padding: 12px 16px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.profile-form .btn-inline:hover {
    background: #e8e8e8;
}

.profile-form .btn-inline:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.profile-form .btn-primary-inline {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.profile-form .btn-primary-inline:hover {
    background: #e55a2b;
}

.profile-form .input-status {
    font-size: 12px;
    margin-top: 6px;
    min-height: 18px;
}

.profile-form .input-status.success {
    color: #16A34A;
}

.profile-form .input-status.error {
    color: #DC2626;
}

.profile-form .otp-box {
    margin-top: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
}

.profile-form .otp-timer {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
    text-align: center;
}

.profile-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* 모달 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    background: var(--bg-primary);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 700;
}

.modal-close {
    font-size: 20px;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
}

.modal-body {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
}

.modal-body .form-group {
    margin-bottom: 16px;
}

.modal-body .form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.modal-body .form-label .required {
    color: var(--primary);
}

.modal-body .form-input,
.modal-body .form-select {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.modal-body .form-input + .form-input {
    margin-top: 8px;
}

.modal-body .address-input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.modal-body .postcode {
    flex: 1;
}

.modal-footer {
    display: flex;
    gap: 8px;
    padding: 16px;
    border-top: 1px solid var(--border);
}

.modal-footer button {
    flex: 1;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius);
}

.modal-footer .btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.modal-footer .btn-primary {
    background: var(--primary);
    color: white;
}

/* 텍스트 버튼 */
.btn-text {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    padding: 4px 0;
}

.btn-text.text-danger {
    color: #e74c3c;
}
