* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; color: #111; background: #fff; }
a { text-decoration: none; color: inherit; }

:root {
  --navy: #1a2744;
  --navy-light: #2d3f6b;
  --navy-pale: #e8ecf5;
}

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

.header { background: var(--navy); position: sticky; top: 0; z-index: 100; }
.header-top { display: flex; justify-content: flex-end; gap: 12px; padding: 6px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.header-top a { font-size: 11px; color: rgba(255,255,255,0.6); }
.header-top a:hover { color: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 20px; }
.logo { font-size: 20px; font-weight: 500; color: #fff; letter-spacing: 2px; }
.gnb { display: flex; gap: 24px; }
.gnb a { font-size: 13px; color: rgba(255,255,255,0.85); }
.gnb a:hover { color: #fff; }
.header-actions { display: flex; gap: 16px; align-items: center; }
.header-actions a { font-size: 13px; color: rgba(255,255,255,0.85); }
.header-actions a:hover { color: #fff; }

.category-bar { background: var(--navy-light); padding: 0 20px; display: flex; }
.category-bar a { color: rgba(255,255,255,0.75); font-size: 12px; padding: 10px 16px; display: block; border-bottom: 2px solid transparent; }
.category-bar a:hover { color: #fff; }
.category-bar a.active { color: #fff; border-bottom: 2px solid #fff; }

.main { min-height: calc(100vh - 140px); }

.banner-section { background: var(--navy-pale); }
.banner-placeholder { display: flex; align-items: center; justify-content: space-between; padding: 48px 40px; max-width: 1200px; margin: 0 auto; }
.banner-badge { background: var(--navy); color: #fff; font-size: 10px; padding: 4px 10px; letter-spacing: 1px; display: inline-block; margin-bottom: 12px; }
.banner-placeholder h2 { font-size: 32px; font-weight: 500; color: var(--navy); line-height: 1.3; margin-bottom: 8px; }
.banner-placeholder p { font-size: 13px; color: #666; margin-bottom: 20px; }
.banner-btn { background: var(--navy); color: #fff; font-size: 12px; padding: 10px 24px; border: none; cursor: pointer; letter-spacing: 0.5px; display: inline-block; }
.banner-item img { width: 100%; max-height: 500px; object-fit: cover; display: none; }
.banner-item.active img { display: block; }

.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-title { font-size: 16px; font-weight: 500; color: var(--navy); }
.section-more { font-size: 12px; color: #888; }

.category-section { padding: 24px 0 0; }
.category-list { display: flex; gap: 8px; flex-wrap: wrap; }
.category-item { padding: 7px 18px; border: 1px solid #ddd; font-size: 12px; color: #555; }
.category-item:hover, .category-item.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.category-filter { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0; }
.category-filter a { padding: 7px 18px; border: 1px solid #ddd; font-size: 12px; color: #555; }
.category-filter a:hover, .category-filter a.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.product-section { padding: 24px 0 60px; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card { display: block; cursor: pointer; }
.product-image { aspect-ratio: 3/4; overflow: hidden; background: #f5f5f5; margin-bottom: 10px; position: relative; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.product-card:hover .product-image img { transform: scale(1.05); }
.product-badge { position: absolute; top: 8px; left: 8px; background: var(--navy); color: #fff; font-size: 10px; padding: 3px 7px; letter-spacing: 0.5px; }
.product-badge.sale { background: #e74c3c; }
.product-brand { font-size: 10px; color: #888; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.product-name { font-size: 13px; color: #111; margin-bottom: 6px; line-height: 1.4; }
.product-price { font-size: 14px; font-weight: 500; color: var(--navy); }
.product-price.sale { color: #e74c3c; }
.product-price.original { font-size: 11px; color: #aaa; text-decoration: line-through; font-weight: 400; margin-left: 4px; }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 40px 0; }
.product-detail-image img { width: 100%; }
.product-detail-info h1 { font-size: 22px; font-weight: 500; margin-bottom: 6px; }
.product-detail-info .brand { font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.product-detail-info .price { font-size: 24px; font-weight: 500; color: var(--navy); margin-bottom: 6px; }
.product-detail-info .price.sale { color: #e74c3c; }
.product-detail-info .price.original { font-size: 16px; color: #aaa; text-decoration: line-through; font-weight: 400; }
.divider { border: none; border-top: 1px solid #eee; margin: 20px 0; }
.quantity-box { display: flex; align-items: center; margin: 20px 0; border: 1px solid #ddd; width: fit-content; }
.qty-btn { width: 36px; height: 36px; border: none; background: #fff; cursor: pointer; font-size: 18px; color: #333; }
.qty-btn:hover { background: #f5f5f5; }
.qty-input { width: 50px; text-align: center; border: none; border-left: 1px solid #ddd; border-right: 1px solid #ddd; height: 36px; font-size: 14px; }
.product-description { margin-top: 32px; font-size: 13px; line-height: 1.9; color: #555; }

.btn { display: inline-block; padding: 13px 28px; font-size: 13px; cursor: pointer; border: none; font-weight: 500; letter-spacing: 0.5px; transition: opacity 0.2s; }
.btn:hover { opacity: 0.85; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border: 1px solid var(--navy); }
.btn-danger { background: #e74c3c; color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 12px; }
.btn-block { display: block; width: 100%; text-align: center; }

.input-field { width: 100%; padding: 11px 14px; border: 1px solid #ddd; font-size: 13px; margin-bottom: 12px; outline: none; border-radius: 0; }
.input-field:focus { border-color: var(--navy); }
select.input-field { background: #fff; cursor: pointer; }

.auth-box { max-width: 420px; margin: 60px auto; padding: 48px 40px; border: 1px solid #eee; }
.auth-box h2 { font-size: 22px; font-weight: 500; margin-bottom: 28px; text-align: center; color: var(--navy); letter-spacing: 1px; }
.auth-link { text-align: center; font-size: 12px; margin-top: 16px; color: #888; }
.auth-link a { color: var(--navy); font-weight: 500; }
#msg { font-size: 12px; color: #e74c3c; margin-bottom: 8px; min-height: 18px; }

.cart-list { display: flex; flex-direction: column; gap: 0; margin: 24px 0; border-top: 2px solid var(--navy); }
.cart-item { display: flex; align-items: center; gap: 20px; padding: 20px 0; border-bottom: 1px solid #eee; }
.cart-item img { width: 90px; height: 110px; object-fit: cover; background: #f5f5f5; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.cart-item-option { font-size: 12px; color: #888; margin-bottom: 6px; }
.cart-item-price { font-size: 14px; color: var(--navy); font-weight: 500; }
.cart-total { text-align: right; padding: 24px 0; border-top: 1px solid #eee; }
.cart-total p { font-size: 18px; margin-bottom: 16px; color: var(--navy); font-weight: 500; }

.order-table { width: 100%; border-collapse: collapse; margin: 24px 0; border-top: 2px solid var(--navy); }
.order-table th { padding: 12px; background: #f9f9f9; font-size: 12px; font-weight: 500; color: #555; text-align: left; border-bottom: 1px solid #eee; }
.order-table td { padding: 14px 12px; font-size: 13px; border-bottom: 1px solid #eee; }
.order-info { background: #f9f9f9; padding: 20px; margin: 16px 0; font-size: 13px; line-height: 2.2; }
.order-total { text-align: right; font-size: 18px; padding: 20px 0; color: var(--navy); font-weight: 500; }

.dashboard-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 0 24px; }
.stat-card { background: #fff; border: 1px solid #eee; padding: 24px; text-align: center; border-top: 3px solid var(--navy); }
.stat-card h3 { font-size: 11px; color: #888; margin-bottom: 10px; letter-spacing: 0.5px; text-transform: uppercase; }
.stat-card p { font-size: 28px; font-weight: 500; color: var(--navy); }
.admin-menu { display: flex; gap: 10px; margin: 0 0 24px; }
.admin-form { background: #f9f9f9; padding: 24px; margin: 0 0 24px; border-top: 3px solid var(--navy); }
.admin-form h3 { font-size: 15px; font-weight: 500; margin-bottom: 16px; color: var(--navy); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; border-top: 2px solid var(--navy); }
.admin-table th { padding: 11px 12px; background: #f9f9f9; font-weight: 500; color: #555; text-align: left; border-bottom: 1px solid #eee; font-size: 12px; }
.admin-table td { padding: 12px; border-bottom: 1px solid #eee; }

.error-box { text-align: center; padding: 80px 0; }
.error-box h2 { font-size: 80px; font-weight: 500; color: var(--navy-pale); }
.error-box p { font-size: 16px; color: #888; margin: 16px 0 32px; }
.empty-msg { text-align: center; padding: 60px 0; color: #888; font-size: 15px; }
.empty-msg a { color: var(--navy); font-weight: 500; }

.footer { background: var(--navy); padding: 32px 20px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-logo { color: #fff; font-size: 16px; font-weight: 500; letter-spacing: 2px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: rgba(255,255,255,0.5); font-size: 11px; }
.footer-links a:hover { color: #fff; }
.footer-copy { color: rgba(255,255,255,0.3); font-size: 11px; margin-top: 16px; }

@media (max-width: 768px) {
  .gnb { display: none; }
  .category-bar { overflow-x: auto; white-space: nowrap; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product-detail { grid-template-columns: 1fr; gap: 24px; }
  .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
  .banner-placeholder { flex-direction: column; padding: 32px 20px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* 히어로 배너 */
.hero-section { background: linear-gradient(135deg, #1a2744 0%, #2d3f6b 50%, #1a2744 100%); min-height: 500px; display: flex; align-items: center; position: relative; overflow: hidden; }
.hero-section::before { content: ''; position: absolute; top: -50%; right: -10%; width: 600px; height: 600px; border-radius: 50%; background: rgba(255,255,255,0.03); }
.hero-section::after { content: ''; position: absolute; bottom: -30%; left: 30%; width: 400px; height: 400px; border-radius: 50%; background: rgba(255,255,255,0.02); }
.hero-content { max-width: 1200px; margin: 0 auto; padding: 80px 40px; z-index: 1; position: relative; }
.hero-badge { display: inline-block; background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9); font-size: 11px; padding: 6px 16px; letter-spacing: 2px; margin-bottom: 20px; border: 1px solid rgba(255,255,255,0.2); }
.hero-title { font-size: 72px; font-weight: 500; color: #fff; line-height: 1.1; margin-bottom: 20px; letter-spacing: -2px; }
.hero-sub { font-size: 15px; color: rgba(255,255,255,0.7); line-height: 1.8; margin-bottom: 36px; }
.hero-buttons { display: flex; gap: 12px; }
.btn-white { background: #fff; color: var(--navy); padding: 14px 32px; font-size: 13px; font-weight: 500; letter-spacing: 0.5px; }
.btn-white:hover { background: #f0f0f0; opacity: 1; }
.btn-outline-white { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.5); padding: 14px 32px; font-size: 13px; font-weight: 500; }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); opacity: 1; }

/* 퀵 카테고리 */
.quick-category { padding: 32px 0; border-bottom: 1px solid #eee; }
.quick-category-grid { display: flex; justify-content: center; gap: 48px; }
.quick-cat-item { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; }
.quick-cat-item:hover .quick-cat-icon { transform: translateY(-4px); }
.quick-cat-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--navy-pale); display: flex; align-items: center; justify-content: center; font-size: 28px; transition: transform 0.2s; }
.quick-cat-item span { font-size: 12px; color: #555; font-weight: 500; }

/* 푸터 */
.footer-inner { flex-direction: column; gap: 20px; text-align: center; }
.footer-links { justify-content: center; }

@media (max-width: 768px) {
  .hero-title { font-size: 42px; }
  .hero-content { padding: 60px 20px; }
  .quick-category-grid { gap: 20px; }
  .quick-cat-icon { width: 52px; height: 52px; font-size: 22px; }
}

/* 브레드크럼 */
.breadcrumb { font-size: 12px; color: #888; padding: 16px 0; }
.breadcrumb a { color: #888; }
.breadcrumb a:hover { color: var(--navy); }

/* 가격박스 */
.price-box { display: flex; align-items: center; gap: 10px; margin: 12px 0; }
.discount-rate { background: #e74c3c; color: #fff; font-size: 11px; padding: 3px 8px; font-weight: 500; }

/* 상품 메타 */
.product-meta { margin: 16px 0; }
.meta-row { display: flex; gap: 20px; padding: 8px 0; font-size: 13px; border-bottom: 1px solid #f5f5f5; }
.meta-label { color: #888; min-width: 70px; }
.meta-value { color: #333; }

/* 옵션박스 */
.option-box { margin: 16px 0; }

/* 수량 */
.quantity-box { display: flex; align-items: center; gap: 16px; margin: 16px 0; }
.qty-label { font-size: 13px; color: #888; min-width: 40px; }
.qty-control { display: flex; align-items: center; border: 1px solid #ddd; }

/* 총 금액 */
.total-price-box { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-top: 1px solid #eee; margin-top: 8px; font-size: 14px; }
.total-price { font-size: 22px; font-weight: 500; color: var(--navy); }

/* 액션 버튼 */
.action-buttons { display: flex; gap: 10px; margin: 16px 0; }
.action-buttons .btn { flex: 1; padding: 15px; font-size: 14px; }

/* 썸네일 */
.product-thumbs { display: flex; gap: 8px; margin-top: 12px; }
.thumb { width: 70px; height: 85px; object-fit: cover; cursor: pointer; border: 2px solid transparent; }
.thumb.active { border-color: var(--navy); }

/* 상품 설명 */
.product-description { margin-top: 32px; padding-top: 24px; border-top: 1px solid #eee; }
.product-description h3 { font-size: 14px; font-weight: 500; margin-bottom: 12px; color: var(--navy); }
.product-description p { font-size: 13px; line-height: 1.9; color: #555; }

/* 약관 페이지 */
.terms-content h2 { font-size: 15px; font-weight: 500; color: var(--navy); margin: 28px 0 10px; padding-bottom: 6px; border-bottom: 1px solid #eee; }
.terms-content p { font-size: 13px; line-height: 1.9; color: #555; margin-bottom: 8px; }

/* 상품 목록 상단 여백 */
.product-section { padding-top: 32px; }

/* 인증 페이지 개선 */
.auth-container { min-height: calc(100vh - 200px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: #f9f9f9; }
.auth-box { background: #fff; padding: 48px 40px; width: 100%; max-width: 440px; border: 1px solid #eee; }
.auth-logo { font-size: 22px; font-weight: 500; color: var(--navy); letter-spacing: 3px; text-align: center; margin-bottom: 8px; }
.auth-box h2 { font-size: 16px; font-weight: 400; color: #888; text-align: center; margin-bottom: 28px; }
.input-group { margin-bottom: 16px; }
.input-group label { display: block; font-size: 12px; color: #555; margin-bottom: 6px; font-weight: 500; }
.input-group .input-field { margin-bottom: 0; }
.auth-divider { text-align: center; margin: 20px 0; position: relative; }
.auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: #eee; }
.auth-divider span { background: #fff; padding: 0 12px; font-size: 12px; color: #aaa; position: relative; }
.auth-links { text-align: center; margin-top: 16px; font-size: 13px; color: #888; display: flex; justify-content: center; gap: 8px; }
.auth-links a { color: var(--navy); font-weight: 500; }
.terms-agree { font-size: 12px; color: #555; margin: 16px 0; }
.terms-agree a { color: var(--navy); }
.terms-agree input { margin-right: 6px; }

/* 푸터 개선 */
.footer { background: var(--navy); padding: 48px 0 24px; margin-top: 60px; }
.footer-top-section { display: flex; justify-content: space-between; gap: 40px; margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand { max-width: 280px; }
.footer-logo { font-size: 20px; font-weight: 500; color: #fff; letter-spacing: 3px; margin-bottom: 16px; }
.footer-desc { font-size: 12px; color: rgba(255,255,255,0.5); line-height: 1.8; }
.footer-menus { display: flex; gap: 48px; }
.footer-menu-group { display: flex; flex-direction: column; gap: 10px; }
.footer-menu-group h4 { font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.9); letter-spacing: 1px; margin-bottom: 4px; text-transform: uppercase; }
.footer-menu-group a, .footer-menu-group span { font-size: 12px; color: rgba(255,255,255,0.5); cursor: pointer; transition: color 0.2s; }
.footer-menu-group a:hover, .footer-menu-group span:hover { color: #fff; }
.footer-bottom { text-align: center; }
.footer-bottom p { font-size: 11px; color: rgba(255,255,255,0.3); line-height: 1.8; }

@media (max-width: 768px) {
  .footer-top-section { flex-direction: column; }
  .footer-menus { gap: 24px; }
}

/* 체크아웃 */
.checkout-grid { display: grid; grid-template-columns: 1fr 400px; gap: 24px; }
.checkout-section { background: #fff; border: 1px solid #eee; padding: 24px; margin-bottom: 16px; }
.checkout-section h3 { font-size: 15px; font-weight: 500; color: var(--navy); margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid #eee; }
.checkout-items { display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; }
.checkout-item { display: flex; gap: 12px; align-items: center; }
.checkout-item img { width: 70px; height: 85px; object-fit: cover; background: #f5f5f5; }
.checkout-item-info { flex: 1; }
.checkout-item-name { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.checkout-item-option { font-size: 11px; color: #888; margin-bottom: 4px; }
.checkout-item-price { font-size: 12px; color: #666; }
.checkout-item-total { font-size: 14px; font-weight: 500; color: var(--navy); }
.checkout-summary { border-top: 1px solid #eee; padding-top: 16px; }
.summary-row { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; color: #666; }
.summary-row.total { border-top: 1px solid #eee; margin-top: 8px; padding-top: 12px; font-size: 15px; font-weight: 500; color: var(--navy); }
.total-amount { font-size: 20px; }
.payment-methods { display: flex; gap: 10px; margin-bottom: 16px; }
.payment-method { flex: 1; border: 1px solid #ddd; padding: 12px; text-align: center; cursor: pointer; font-size: 13px; }
.payment-method input { display: none; }
.payment-method.active { border-color: var(--navy); color: var(--navy); font-weight: 500; }
.payment-notice { background: #f9f9f9; padding: 14px; font-size: 12px; color: #888; line-height: 1.6; }

@media (max-width: 768px) {
  .checkout-grid { grid-template-columns: 1fr; }
}

/* 검색 */
.header-search { display: flex; align-items: center; border: 1px solid rgba(255,255,255,0.3); border-radius: 2px; overflow: hidden; }
.header-search-input { background: transparent; border: none; padding: 6px 12px; color: #fff; font-size: 13px; width: 160px; outline: none; }
.header-search-input::placeholder { color: rgba(255,255,255,0.5); }
.header-search-btn { background: transparent; border: none; color: rgba(255,255,255,0.7); padding: 6px 10px; cursor: pointer; }
.header-search-btn:hover { color: #fff; }

.search-bar-wrap { max-width: 600px; margin: 0 auto 32px; }
.search-bar-large { display: flex; border: 2px solid var(--navy); }
.search-input-large { flex: 1; border: none; padding: 14px 20px; font-size: 16px; outline: none; }
.search-btn-large { background: var(--navy); color: #fff; border: none; padding: 14px 24px; font-size: 14px; cursor: pointer; }
.search-result-info { font-size: 14px; color: #555; margin-bottom: 16px; }
.search-keyword { font-weight: 500; color: var(--navy); }
.search-count { font-weight: 500; color: #e74c3c; }

@media (max-width: 768px) {
  .header-search { display: none; }
}

/* 찜 버튼 */
.wish-btn { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,0.9); border: none; width: 32px; height: 32px; border-radius: 50%; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; color: #aaa; }
.wish-btn:hover { background: #fff; color: #e74c3c; }
.wish-btn.wished { color: #e74c3c; }
.product-card-wrap { position: relative; }

/* 리뷰 */
.review-section { padding: 40px 0; border-top: 2px solid var(--navy); margin-top: 40px; }
.review-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.review-header h3 { font-size: 16px; font-weight: 500; color: var(--navy); }
.review-summary { display: flex; align-items: center; gap: 8px; }
.avg-rating { font-size: 28px; font-weight: 500; color: var(--navy); }
.review-count { font-size: 13px; color: #888; }
.stars-display .star { color: #ddd; font-size: 18px; }
.stars-display .star.on { color: #f5a623; }
.review-form { background: #f9f9f9; padding: 20px; margin-bottom: 24px; }
.review-form h4 { font-size: 14px; font-weight: 500; margin-bottom: 12px; color: var(--navy); }
.star-rating { display: flex; gap: 4px; font-size: 28px; cursor: pointer; }
.star-input { color: #ddd; transition: color 0.1s; }
.star-input.on, .star-input.selected { color: #f5a623; }
.review-list { display: flex; flex-direction: column; gap: 0; }
.review-item { padding: 20px 0; border-bottom: 1px solid #eee; }
.review-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.review-user-info { display: flex; align-items: center; gap: 10px; }
.review-stars .star { color: #ddd; font-size: 14px; }
.review-stars .star.on { color: #f5a623; }
.reviewer { font-size: 13px; font-weight: 500; color: #333; }
.review-date { font-size: 12px; color: #aaa; }
.review-content { font-size: 14px; color: #555; line-height: 1.7; }
