/* ============================================
   style.css - 쇼핑몰 메인 스타일
   ============================================ */

/* === CSS 변수 === */
:root {
  --primary: #e63946;
  --primary-dark: #c1121f;
  --primary-light: #fce4e4;
  --secondary: #1d3557;
  --accent: #f4a261;
  --text-dark: #1a1a2e;
  --text-gray: #666;
  --text-light: #999;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border: #e0e0e0;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
  --radius: 8px;
  --radius-sm: 4px;
  --font: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
}

/* === 기본 리셋 === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--text-dark); background: var(--bg-light); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }
input, select, textarea, button { font-family: var(--font); }

/* === 공통 레이아웃 === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 16px; }

/* === 알림 메시지 === */
.global-alert {
  position: fixed; top: 80px; right: 24px; z-index: 9999;
  padding: 14px 20px; border-radius: var(--radius);
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-hover); min-width: 280px; max-width: 420px;
  animation: slideInRight 0.3s ease;
}
.global-alert button {
  background: none; border: none; cursor: pointer; font-size: 16px; opacity: 0.7; margin-left: auto;
}
.alert-success { background: #d4edda; color: #155724; border-left: 4px solid #28a745; }
.alert-error   { background: #f8d7da; color: #721c24; border-left: 4px solid #dc3545; }
.alert-info    { background: #d1ecf1; color: #0c5460; border-left: 4px solid #17a2b8; }
.alert-warning { background: #fff3cd; color: #856404; border-left: 4px solid #ffc107; }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* === 헤더 === */
.site-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky; top: 0; z-index: 1000;
}
.header-top {
  background: var(--secondary);
  color: #fff;
  padding: 6px 0;
  font-size: 12px;
}
.header-top .container {
  display: flex; justify-content: space-between; align-items: center;
}
.header-top-right { display: flex; gap: 16px; align-items: center; }
.header-top a { color: rgba(255,255,255,0.85); font-size: 12px; }
.header-top a:hover { color: #fff; }
.header-main {
  padding: 14px 0;
}
.header-main .container {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.logo {
  font-size: 28px; font-weight: 900; color: var(--primary);
  letter-spacing: -1px; text-decoration: none;
  display: flex; align-items: center; gap: 6px;
}
.logo span { color: var(--secondary); }
.header-search {
  flex: 1; max-width: 480px;
  display: flex; border: 2px solid var(--primary); border-radius: 24px; overflow: hidden;
}
.header-search input {
  flex: 1; padding: 10px 18px; border: none; outline: none; font-size: 14px;
}
.header-search button {
  background: var(--primary); color: #fff; border: none;
  padding: 10px 20px; cursor: pointer; font-size: 16px;
}
.header-search button:hover { background: var(--primary-dark); }
.header-actions { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.header-actions .btn { padding: 8px 16px; font-size: 13px; border-radius: 20px; }
.btn-cart {
  position: relative;
  background: var(--secondary); color: #fff;
  padding: 8px 16px; border-radius: 20px; border: none;
  cursor: pointer; font-size: 13px; display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none;
}
.btn-cart:hover { background: #0f2440; }
.cart-count {
  background: var(--primary); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 50%; width: 18px; height: 18px; display: inline-flex;
  align-items: center; justify-content: center; position: absolute; top: -4px; right: -4px;
}

/* === 카테고리 네비 === */
.category-nav {
  background: #fff; border-top: 1px solid var(--border); border-bottom: 3px solid var(--primary);
}
.category-nav .container {
  display: flex; overflow-x: auto; gap: 0; scrollbar-width: none;
}
.category-nav::-webkit-scrollbar { display: none; }
.category-nav a {
  padding: 12px 20px; font-size: 14px; font-weight: 500; white-space: nowrap;
  display: block; transition: all 0.2s; color: var(--text-dark);
  border-bottom: 3px solid transparent; margin-bottom: -3px;
}
.category-nav a:hover, .category-nav a.active {
  color: var(--primary); border-bottom-color: var(--primary); background: var(--primary-light);
}

/* === 버튼 공통 === */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--radius); border: none;
  font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s;
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: #0f2440; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-gray { background: #eee; color: #555; }
.btn-gray:hover { background: #ddd; }
.btn-danger { background: #dc3545; color: #fff; }
.btn-danger:hover { background: #c82333; }
.btn-success { background: #28a745; color: #fff; }
.btn-success:hover { background: #218838; }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* === 배너 슬라이더 === */
.hero-banner {
  background: linear-gradient(135deg, var(--secondary) 0%, #2d6a9f 100%);
  color: #fff; padding: 60px 0; margin-bottom: 32px; position: relative; overflow: hidden;
}
.hero-banner::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 500px; height: 500px; background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge { background: var(--primary); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; display: inline-block; margin-bottom: 12px; }
.hero-title { font-size: 42px; font-weight: 900; margin-bottom: 16px; line-height: 1.2; }
.hero-sub { font-size: 18px; opacity: 0.9; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* === 섹션 헤더 === */
.section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px; padding-bottom: 12px; border-bottom: 2px solid var(--primary);
}
.section-title { font-size: 22px; font-weight: 800; color: var(--text-dark); }
.section-title span { color: var(--primary); }
.section-more { color: var(--text-gray); font-size: 13px; display: flex; align-items: center; gap: 4px; }
.section-more:hover { color: var(--primary); }

/* === 상품 그리드 === */
.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px; margin-bottom: 40px;
}
@media (max-width: 1100px) { .products-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 880px)  { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .products-grid { grid-template-columns: repeat(2, 1fr); } }

/* === 상품 카드 === */
.product-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: all 0.3s; cursor: pointer;
  border: 1px solid var(--border); position: relative;
}
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.product-card-img {
  position: relative; padding-top: 100%; overflow: hidden; background: #f8f8f8;
}
.product-card-img img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s;
}
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-badge {
  position: absolute; top: 8px; left: 8px; z-index: 1;
  padding: 3px 8px; border-radius: var(--radius-sm); font-size: 11px; font-weight: 700;
}
.badge-sale { background: var(--primary); color: #fff; }
.badge-new  { background: #28a745; color: #fff; }
.badge-best { background: #f39c12; color: #fff; }
.product-card-info { padding: 12px; }
.product-card-code { font-size: 11px; color: var(--text-light); margin-bottom: 4px; }
.product-card-name {
  font-size: 13px; color: var(--text-dark); margin-bottom: 8px;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.4; min-height: 36px;
}
.product-card-price { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.price-sale { font-size: 16px; font-weight: 800; color: var(--primary); }
.price-original { font-size: 12px; color: var(--text-light); text-decoration: line-through; }
.price-discount { font-size: 12px; color: var(--accent); font-weight: 700; }
.product-card-actions {
  padding: 8px 12px 12px; display: flex; gap: 6px;
}
.product-card-actions .btn { flex: 1; justify-content: center; font-size: 12px; padding: 7px 8px; }

/* === 상품 상세 페이지 === */
.product-detail { padding: 32px 0; }
.product-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px;
}
@media (max-width: 768px) { .product-detail-grid { grid-template-columns: 1fr; } }
.product-image-main {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  aspect-ratio: 1; background: #f8f8f8;
}
.product-image-main img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.product-info .product-code { color: var(--text-light); font-size: 13px; margin-bottom: 16px; }
.product-price-box {
  background: var(--bg-light); padding: 20px; border-radius: var(--radius); margin-bottom: 20px;
}
.product-price-box .price-sale { font-size: 32px; }
.product-price-box .price-original { font-size: 16px; }
.quantity-selector { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.quantity-selector label { font-weight: 600; min-width: 50px; }
.qty-control {
  display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.qty-control button {
  background: var(--bg-light); border: none; padding: 8px 14px; cursor: pointer; font-size: 16px;
  transition: background 0.2s;
}
.qty-control button:hover { background: #e0e0e0; }
.qty-control input {
  width: 50px; text-align: center; border: none; border-left: 1px solid var(--border);
  border-right: 1px solid var(--border); padding: 8px; font-size: 15px; outline: none;
}
.product-detail-actions { display: flex; gap: 12px; margin-bottom: 20px; }
.product-detail-actions .btn { flex: 1; justify-content: center; }

/* === 장바구니 === */
.cart-page { padding: 32px 0; }
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.cart-table th {
  background: var(--secondary); color: #fff; padding: 12px 16px;
  font-size: 14px; text-align: center;
}
.cart-table td { padding: 16px; border-bottom: 1px solid var(--border); text-align: center; vertical-align: middle; }
.cart-table tr:hover td { background: #fafafa; }
.cart-item-info { display: flex; align-items: center; gap: 12px; text-align: left; }
.cart-item-img { width: 70px; height: 70px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-summary {
  background: #fff; padding: 24px; border-radius: var(--radius); border: 1px solid var(--border);
  margin-left: auto; max-width: 360px;
}
.cart-summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.cart-summary-row.total { font-size: 18px; font-weight: 800; color: var(--primary); border-top: 2px solid var(--primary); padding-top: 16px; margin-top: 8px; }

/* === 주문/결제 === */
.order-page { padding: 32px 0; }
.order-section {
  background: #fff; border-radius: var(--radius); padding: 24px; margin-bottom: 24px;
  border: 1px solid var(--border);
}
.order-section h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text-dark); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; outline: none; transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-required { color: var(--primary); }

/* === 로그인/회원가입 === */
.auth-page {
  min-height: calc(100vh - 200px); display: flex; align-items: center;
  justify-content: center; padding: 40px 16px;
}
.auth-box {
  background: #fff; border-radius: var(--radius); padding: 40px;
  box-shadow: var(--shadow-hover); width: 100%; max-width: 440px;
}
.auth-box h2 { text-align: center; margin-bottom: 8px; font-size: 26px; }
.auth-box .auth-sub { text-align: center; color: var(--text-gray); font-size: 14px; margin-bottom: 28px; }
.auth-box .form-group input { padding: 12px 16px; font-size: 15px; }
.auth-link { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-gray); }
.auth-link a { color: var(--primary); font-weight: 600; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { color: var(--text-light); font-size: 13px; }

/* === 배지 === */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.badge-success  { background: #d4edda; color: #155724; }
.badge-warning  { background: #fff3cd; color: #856404; }
.badge-danger   { background: #f8d7da; color: #721c24; }
.badge-primary  { background: #cce5ff; color: #004085; }
.badge-info     { background: #d1ecf1; color: #0c5460; }
.badge-secondary{ background: #e2e3e5; color: #383d41; }

/* === 테이블 (어드민) === */
.data-table {
  width: 100%; border-collapse: collapse; background: #fff;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.data-table th {
  background: var(--secondary); color: #fff; padding: 12px 16px;
  font-size: 13px; text-align: left; white-space: nowrap;
}
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 13px; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #f8f9fa; }
.data-table .text-center { text-align: center; }
.data-table .text-right { text-align: right; }

/* === 어드민 레이아웃 === */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px; background: var(--secondary); color: #fff;
  padding: 0; flex-shrink: 0; position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
}
.admin-sidebar-header {
  padding: 20px; background: rgba(0,0,0,0.2);
  font-size: 18px; font-weight: 800; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-sidebar-header span { color: var(--primary); }
.admin-nav { padding: 12px 0; }
.admin-nav-item {
  padding: 12px 20px; cursor: pointer; display: flex; align-items: center; gap: 10px;
  font-size: 14px; transition: all 0.2s; color: rgba(255,255,255,0.8);
  border-left: 3px solid transparent;
}
.admin-nav-item:hover { background: rgba(255,255,255,0.1); color: #fff; }
.admin-nav-item.active { background: rgba(255,255,255,0.15); color: #fff; border-left-color: var(--primary); font-weight: 600; }
.admin-nav-item .icon { font-size: 18px; width: 24px; text-align: center; }
.admin-nav-divider { height: 1px; background: rgba(255,255,255,0.1); margin: 8px 0; }
.admin-nav-label { padding: 8px 20px; font-size: 11px; text-transform: uppercase; color: rgba(255,255,255,0.4); font-weight: 600; }
.admin-content { flex: 1; padding: 24px; background: var(--bg-light); overflow-x: hidden; }
.admin-page-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px;
}
.admin-page-header h2 { font-size: 24px; font-weight: 800; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
@media (max-width: 900px) { .admin-stats { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  background: #fff; border-radius: var(--radius); padding: 20px; border: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px;
}
.stat-icon { font-size: 32px; }
.stat-info .stat-value { font-size: 28px; font-weight: 800; color: var(--text-dark); }
.stat-info .stat-label { font-size: 13px; color: var(--text-gray); }

/* === 모달 === */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 2000; display: flex;
  align-items: center; justify-content: center; padding: 16px;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  background: #fff; border-radius: var(--radius); width: 100%; max-width: 600px;
  max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-header {
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  position: sticky; top: 0; background: #fff; z-index: 1;
}
.modal-header h3 { font-size: 18px; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-gray); }
.modal-close:hover { color: var(--text-dark); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; }

/* === 검색 필터 === */
.search-bar {
  display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; align-items: center;
  background: #fff; padding: 16px; border-radius: var(--radius); border: 1px solid var(--border);
}
.search-bar input, .search-bar select {
  padding: 9px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; outline: none;
}
.search-bar input:focus, .search-bar select:focus { border-color: var(--primary); }
.search-bar input { flex: 1; min-width: 180px; }

/* === 페이지네이션 === */
.pagination {
  display: flex; gap: 4px; justify-content: center; margin-top: 24px; flex-wrap: wrap;
}
.pagination button {
  padding: 8px 14px; border: 1px solid var(--border); background: #fff;
  border-radius: var(--radius-sm); cursor: pointer; font-size: 14px; transition: all 0.2s;
}
.pagination button:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.pagination button.active { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 700; }

/* === 빈 상태 === */
.empty-state {
  text-align: center; padding: 60px 20px; color: var(--text-gray);
}
.empty-state .empty-icon { font-size: 60px; margin-bottom: 16px; opacity: 0.5; }
.empty-state p { font-size: 16px; margin-bottom: 20px; }

/* === 카테고리 배너 === */
.category-banner {
  background: linear-gradient(90deg, #f8f9fa 0%, #e8ecf0 100%);
  padding: 24px 0; margin-bottom: 24px; border-radius: var(--radius);
}
.category-list {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}
.category-chip {
  padding: 8px 20px; background: #fff; border: 1px solid var(--border);
  border-radius: 24px; font-size: 14px; cursor: pointer; transition: all 0.2s;
}
.category-chip:hover, .category-chip.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

/* === 상품 수량 배지 === */
.stock-badge { font-size: 12px; color: var(--text-gray); }
.stock-low { color: #dc3545; font-weight: 600; }

/* === 푸터 === */
.site-footer {
  background: var(--secondary); color: rgba(255,255,255,0.8);
  padding: 40px 0 20px; margin-top: 60px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .logo { color: #fff; font-size: 24px; margin-bottom: 12px; display: block; }
.footer-brand p { font-size: 13px; line-height: 1.8; opacity: 0.7; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; opacity: 0.7; transition: opacity 0.2s; }
.footer-col ul li a:hover { opacity: 1; color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; opacity: 0.6; flex-wrap: wrap; gap: 8px;
}

/* === 로딩 스피너 === */
.loading-spinner {
  display: flex; justify-content: center; align-items: center; padding: 40px;
}
.spinner {
  width: 40px; height: 40px; border: 4px solid var(--border);
  border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === 반응형 === */
@media (max-width: 768px) {
  .header-search { max-width: 100%; order: 3; flex-basis: 100%; }
  .hero-title { font-size: 28px; }
  .admin-sidebar { width: 200px; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .product-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: static; }
  .admin-nav { display: flex; flex-wrap: wrap; padding: 8px; }
  .admin-nav-item { padding: 8px 12px; }
  .admin-nav-divider, .admin-nav-label { display: none; }
}

/* === 엑셀 업로드 === */
.upload-zone {
  border: 2px dashed var(--primary); border-radius: var(--radius);
  padding: 40px; text-align: center; cursor: pointer; transition: all 0.2s;
  background: var(--primary-light);
}
.upload-zone:hover { background: #fbd5d5; }
.upload-zone .upload-icon { font-size: 48px; margin-bottom: 12px; }
.upload-zone p { font-size: 15px; color: var(--text-gray); }
.upload-zone strong { color: var(--primary); }

/* === 탭 === */
.tab-nav { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 24px; gap: 0; }
.tab-btn {
  padding: 12px 24px; background: none; border: none; font-size: 14px; font-weight: 500;
  cursor: pointer; color: var(--text-gray); border-bottom: 3px solid transparent;
  margin-bottom: -2px; transition: all 0.2s;
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 700; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* === 마이페이지 === */
.mypage-grid { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 32px 0; }
@media (max-width: 768px) { .mypage-grid { grid-template-columns: 1fr; } }
.mypage-sidebar { background: #fff; border-radius: var(--radius); padding: 20px; border: 1px solid var(--border); height: fit-content; }
.mypage-sidebar .user-avatar { font-size: 48px; text-align: center; margin-bottom: 12px; }
.mypage-sidebar .user-name { text-align: center; font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.mypage-sidebar .user-id { text-align: center; font-size: 13px; color: var(--text-gray); margin-bottom: 16px; }
.mypage-nav { border-top: 1px solid var(--border); padding-top: 16px; }
.mypage-nav a { display: flex; align-items: center; gap: 8px; padding: 10px 0; font-size: 14px; color: var(--text-dark); border-bottom: 1px solid var(--border); }
.mypage-nav a:hover { color: var(--primary); }
.mypage-nav a.active { color: var(--primary); font-weight: 600; }
.mypage-content { }

/* === 기타 유틸리티 === */
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-primary { color: var(--primary); }
.text-gray    { color: var(--text-gray); }
.text-muted   { color: var(--text-light); }
.font-bold    { font-weight: 700; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.gap-8  { gap: 8px; }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-100 { width: 100%; }
