/* 쇼핑몰 전용 스타일시트 */
/* Pretendard 폰트 스택 (CDN 없이 시스템 폰트 우선) */
:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --red: #EF4444;
  --navy: #1E293B;
  --text: #0F172A;
  --text-secondary: #64748B;
  --border: #E2E8F0;
  --bg: #F8FAFC;
  --white: #FFFFFF;
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.1);
  --radius: 8px;
  --radius-lg: 12px;
}

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
button { cursor: pointer; font-family: var(--font); }

/* ── 공통 컨테이너 ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ── 상단 바 ── */
.top-bar {
  background: var(--navy);
  color: #94A3B8;
  font-size: 12px;
  padding: 6px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar a { color: #94A3B8; }
.top-bar a:hover { color: #fff; }

/* ── 헤더 ── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
  letter-spacing: -0.5px;
  text-decoration: none;
}
.logo span { color: var(--navy); }
.logo-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

/* 검색 바 */
.search-bar {
  flex: 1;
  display: flex;
  border: 2px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  transition: border-color .2s;
}
.search-bar:focus-within { border-color: var(--primary); }
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 8px 16px;
  font-size: 14px;
  font-family: var(--font);
  background: transparent;
}
.search-bar button {
  background: var(--primary);
  border: none;
  color: #fff;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s;
}
.search-bar button:hover { background: var(--primary-dark); }

/* 헤더 우측 버튼 그룹 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cart-btn {
  position: relative;
  background: none;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 14px;
  font-size: 20px;
  color: var(--text);
  transition: border-color .2s;
}
.cart-btn:hover { border-color: var(--primary); color: var(--primary); }
.cart-badge {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}
.cart-badge.hidden { display: none; }

.btn-login {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s;
}
.btn-login:hover { background: var(--primary-dark); }
.btn-signup {
  background: none;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: var(--radius);
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 600;
  transition: all .2s;
}
.btn-signup:hover { background: var(--primary); color: #fff; }

/* 로그인 시 사용자 드롭다운 */
.user-menu { position: relative; }
.user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: border-color .2s;
}
.user-btn:hover { border-color: var(--primary); }
.user-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 160px;
  z-index: 200;
  overflow: hidden;
}
/* 버튼과 드롭다운 사이 6px 틈을 투명하게 메워 hover가 끊기지 않도록 함 */
.user-menu::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 6px;
}
.user-menu:hover .user-dropdown { display: block; }
.user-dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text);
  transition: background .15s;
}
.user-dropdown a:hover { background: var(--bg); color: var(--primary); }
.user-dropdown .divider { height: 1px; background: var(--border); }

/* ── 내비게이션 ── */
.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.nav-inner a {
  display: block;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  transition: all .2s;
}
.nav-inner a:hover,
.nav-inner a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ── 배너 슬라이더 ── */
/* 배너 외부 섹션 */
.banner-section {
  background: #fff;
  padding: 16px 0;
}

.banner-slider {
  position: relative;
  overflow: hidden;
  height: 240px;
  border-radius: 16px;
}
.banner-slides { display: flex; height: 100%; transition: transform .5s ease; }
.banner-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.banner-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.banner-placeholder {
  width: 100%;
  height: 240px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--navy) 0%, #2563EB 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  gap: 12px;
}
.banner-placeholder h2 { font-size: 32px; font-weight: 800; }
.banner-placeholder p { font-size: 16px; opacity: .8; }

.banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.8);
  border: none;
  color: #333;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, box-shadow .2s;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  cursor: pointer;
}
.banner-nav:hover { background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.banner-prev { left: 12px; }
.banner-next { right: 12px; }

.banner-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  align-items: center;
}
.banner-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none;
  transition: width .3s, background .3s, border-radius .3s;
  cursor: pointer;
}
.banner-dot.active {
  width: 20px;
  border-radius: 4px;
  background: #fff;
}

/* ── 특징 아이콘 섹션 ── */
.features-section {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: #EFF6FF;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.feature-item h4 { font-size: 14px; font-weight: 700; color: var(--text); }
.feature-item p { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

/* ── 섹션 공통 ── */
.section { padding: 28px 0; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}
.section-title span { color: var(--primary); }
.section-more {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}
.section-more:hover { color: var(--primary); }

/* ── 카테고리 그리드 ── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.category-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 12px;
  text-align: center;
  transition: all .2s;
  cursor: pointer;
}
.category-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(37,99,235,.15);
  transform: translateY(-2px);
}
.category-icon {
  width: 48px; height: 48px;
  margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.category-icon svg { width: 36px; height: 36px; fill: var(--primary); }
.category-name { font-size: 13px; font-weight: 600; color: var(--text); }

/* ── 상품 카드 ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .2s;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.product-img-wrap {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg);
  overflow: hidden;
}
.product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 12px;
}
.product-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  color: var(--primary);
  font-size: 40px;
  font-weight: 800;
}
.product-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}
.product-badge.new { background: #10B981; }
.product-badge.type {
  top: auto; bottom: 8px; left: 8px;
  background: rgba(37,99,235,.85);
}

.product-info { padding: 12px; }
.product-brand {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.brand-logo-sm {
  width: 16px; height: 16px;
  object-fit: contain;
  border-radius: 3px;
}
.product-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.price-discount { font-size: 14px; font-weight: 800; color: var(--red); }
.price-sell { font-size: 16px; font-weight: 800; color: var(--text); }
.price-original {
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: line-through;
}
.product-min-buy {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
}
.btn-buy {
  width: 100%;
  margin-top: 10px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: background .2s;
}
.btn-buy:hover { background: var(--primary-dark); }

/* ── 상품 목록 페이지 레이아웃 ── */
.products-layout {
  display: flex;
  gap: 24px;
  padding: 32px 0;
}
.products-sidebar {
  width: 220px;
  flex-shrink: 0;
}
.products-main { flex: 1; min-width: 0; }

.sidebar-section { margin-bottom: 28px; }
.sidebar-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.sidebar-list { list-style: none; }
.sidebar-list li a {
  display: block;
  padding: 6px 8px;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-secondary);
  transition: all .15s;
}
.sidebar-list li a:hover,
.sidebar-list li a.active {
  background: #EFF6FF;
  color: var(--primary);
  font-weight: 600;
}

.brand-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.brand-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-secondary);
  background: #fff;
  transition: all .15s;
}
.brand-chip:hover,
.brand-chip.active {
  border-color: var(--primary);
  color: var(--primary);
  background: #EFF6FF;
}
.brand-chip img {
  width: 18px; height: 18px;
  object-fit: contain;
  border-radius: 3px;
}

/* 상품 목록 헤더 (검색 + 정렬) */
.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}
.products-count {
  font-size: 14px;
  color: var(--text-secondary);
}
.products-count strong { color: var(--text); }
.sort-select {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 12px;
  font-size: 13px;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  outline: none;
  cursor: pointer;
}

/* ── 페이지네이션 ── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 32px;
}
.page-btn {
  min-width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-secondary);
  background: #fff;
  transition: all .15s;
  padding: 0 8px;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 700;
}
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── 상품 상세 페이지 ── */
.product-detail-layout {
  display: flex;
  gap: 52px;
  padding: 40px 0;
}

/* 이미지 영역 - 그림자 추가, 패딩 제거 */
.product-detail-img {
  width: 440px;
  flex-shrink: 0;
}
.product-detail-img img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: none;
  padding: 0;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.06);
  display: block;
}
.product-detail-img-placeholder {
  width: 100%; aspect-ratio: 1;
  border-radius: var(--radius-lg);
  border: none;
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  display: flex; align-items: center; justify-content: center;
  font-size: 72px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

/* 정보 영역 */
.product-detail-info { flex: 1; min-width: 0; }
.detail-brand {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 8px;
}
.detail-brand img {
  width: 24px; height: 24px;
  object-fit: contain;
  border-radius: 4px;
}
.detail-brand span {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.detail-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 20px;
  text-align: right;
}

/* 가격 박스 - 가로 정렬 개선 */
.detail-price-box {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.detail-discount {
  font-size: 22px;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}
.detail-sell-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.detail-original-price {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: line-through;
  margin-top: 0;
}

/* 정보 테이블 - stripe 방식, 구분선 없음 */
.detail-info-table {
  width: 100%;
  margin-bottom: 24px;
  border-collapse: separate;
  border-spacing: 0;
}
.detail-info-table tr { border-bottom: none; }
.detail-info-table tr:nth-child(odd) td,
.detail-info-table tr:nth-child(odd) th {
  background: var(--bg);
}
.detail-info-table tr:nth-child(even) td,
.detail-info-table tr:nth-child(even) th {
  background: #fff;
}
.detail-info-table th {
  width: 110px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-align: right;
  border-radius: 6px 0 0 6px;
  white-space: nowrap;
}
.detail-info-table td {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text);
  border-radius: 0 6px 6px 0;
  text-align: right;
}

/* 수량 컨트롤 - 44px 크기 */
.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  width: fit-content;
  margin-bottom: 16px;
  margin-left: auto;
}
.qty-btn {
  width: 44px; height: 44px;
  background: var(--bg);
  border: none;
  font-size: 20px;
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s;
  user-select: none;
}
.qty-btn:hover { background: #E5E7EB; }
.qty-input {
  width: 64px; height: 44px;
  border: none;
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font);
  outline: none;
  background: #fff;
}

/* 총 상품금액 */
.detail-total-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #EFF6FF;
  border: 1.5px solid #BFDBFE;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}
.detail-total-price #total-price-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}

/* 구매 버튼 - 높이 52px */
.detail-actions {
  display: flex;
  gap: 10px;
}
.btn-add-cart {
  flex: 1;
  height: 52px;
  padding: 0 14px;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  background: #fff;
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: background .2s, transform .1s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-add-cart:hover { background: #EFF6FF; transform: translateY(-1px); }
.btn-add-cart:active { transform: translateY(0); }
.btn-buy-now {
  flex: 1;
  height: 52px;
  padding: 0 14px;
  border: none;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: background .2s, transform .1s;
}
.btn-buy-now:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-buy-now:active { transform: translateY(0); }

/* 탭 섹션 - sticky 처리, 라인 3px */
.detail-tab-section { margin-top: 40px; }
.detail-tabs {
  display: flex;
  border-bottom: 3px solid var(--border);
  margin-bottom: 24px;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
}
.detail-tab {
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  border: none;
  background: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  cursor: pointer;
  transition: all .2s;
  font-family: var(--font);
}
.detail-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.detail-tab:hover:not(.active) { color: var(--text); }
.detail-tab-content { display: none; }
.detail-tab-content.active { display: block; }
.use-msg-box {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--text);
  white-space: pre-wrap;
}

/* 상품 상세 반응형 */
@media (max-width: 768px) {
  .product-detail-layout {
    flex-direction: column;
    gap: 24px;
    padding: 20px 0;
  }
  .product-detail-img { width: 100%; }
  .detail-price-box {
    flex-direction: row;
    align-items: baseline;
  }
  .detail-sell-price { font-size: 26px; }
  .detail-discount { font-size: 18px; }
  .detail-tabs { top: 0; }
}

/* ── 장바구니 페이지 ── */
.cart-layout {
  display: flex;
  gap: 24px;
  padding: 32px 0;
  align-items: flex-start;
}
.cart-main { flex: 1; }
.cart-sidebar {
  width: 300px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
}

.cart-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-secondary);
}
.cart-empty-icon { font-size: 64px; margin-bottom: 16px; }
.cart-empty h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.cart-empty p { font-size: 14px; }

.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
}
.cart-item-check { flex-shrink: 0; }
.cart-item-img {
  width: 80px; height: 80px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  object-fit: contain;
  padding: 4px;
  background: var(--bg);
  flex-shrink: 0;
}
.cart-item-img-placeholder {
  width: 80px; height: 80px;
  border-radius: var(--radius);
  background: #EFF6FF;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.cart-item-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
}
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.cart-qty-btn {
  width: 28px; height: 28px;
  background: var(--bg);
  border: none;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.cart-qty-btn:hover { background: var(--border); }
.cart-qty-val {
  width: 40px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 4px 0;
}
.cart-remove {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  padding: 4px;
  transition: color .15s;
}
.cart-remove:hover { color: var(--red); }

.order-summary {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.order-summary h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
}
.summary-row.total {
  border-top: 2px solid var(--border);
  margin-top: 8px;
  padding-top: 12px;
  font-weight: 800;
  font-size: 16px;
}
.summary-total-price { color: var(--primary); font-size: 20px; }
.btn-order {
  width: 100%;
  margin-top: 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  transition: background .2s;
}
.btn-order:hover { background: var(--primary-dark); }

/* ── 인증 페이지 (로그인/회원가입) ── */
.auth-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}
.auth-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-md);
}
.auth-logo {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}
.auth-subtitle {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  outline: none;
  transition: border-color .2s;
}
.form-input:focus { border-color: var(--primary); }
.btn-submit {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 12px;
  font-size: 15px;
  font-weight: 700;
  margin-top: 8px;
  transition: background .2s;
}
.btn-submit:hover { background: var(--primary-dark); }
.auth-links {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-secondary);
}
.auth-links a { color: var(--primary); font-weight: 600; }
.error-msg {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: var(--red);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}

/* ── 마이페이지 ── */
.mypage-layout {
  display: flex;
  gap: 24px;
  padding: 32px 0;
  align-items: flex-start;
}
.mypage-sidebar {
  width: 240px;
  flex-shrink: 0;
}
.mypage-main { flex: 1; }

.user-profile-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  margin-bottom: 16px;
}
.profile-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.profile-name { font-size: 16px; font-weight: 800; }
.profile-company { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

.mypage-nav {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.mypage-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  transition: all .15s;
}
.mypage-nav a:last-child { border-bottom: none; }
.mypage-nav a:hover,
.mypage-nav a.active { background: #EFF6FF; color: var(--primary); font-weight: 600; }
.mypage-nav a.logout { color: var(--red); }
.mypage-nav a.logout:hover { background: #FEF2F2; }

.info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.info-card-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.info-row {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.info-row:last-child { border-bottom: none; }
.info-label {
  width: 120px;
  font-weight: 600;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.info-value { color: var(--text); }

/* ── 주문/발송 내역 테이블 ── */
.page-title-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.page-title { font-size: 22px; font-weight: 800; }

.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filter-bar label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}
.filter-input {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 12px;
  font-size: 13px;
  font-family: var(--font);
  outline: none;
}
.filter-input:focus { border-color: var(--primary); }
.btn-filter {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  transition: background .2s;
}
.btn-filter:hover { background: var(--primary-dark); }

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.data-table th {
  background: var(--bg);
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #FAFBFF; }

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}
.status-N { background: #FEF3C7; color: #92400E; }
.status-F { background: #D1FAE5; color: #065F46; }
.status-C { background: #FEE2E2; color: #991B1B; }
.status-R { background: #E0E7FF; color: #3730A3; }

.btn-detail {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all .15s;
}
.btn-detail:hover { border-color: var(--primary); color: var(--primary); }

.empty-table {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}
.empty-table-icon { font-size: 48px; margin-bottom: 12px; }

/* ── 고객센터 / FAQ ── */
.faq-section { padding: 32px 0; }
.faq-group-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin: 24px 0 12px;
  padding: 8px 16px;
  background: #EFF6FF;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 8px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: background .15s;
}
.faq-question:hover { background: var(--bg); }
.faq-question .q-mark { color: var(--primary); margin-right: 8px; font-weight: 800; }
.faq-toggle { font-size: 18px; color: var(--text-secondary); transition: transform .2s; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 14px 16px;
  background: var(--bg);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
  border-top: 1px solid var(--border);
}
.faq-item.open .faq-answer { display: block; }

.contact-info-box {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 40px;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
}
.contact-item { text-align: center; }
.contact-icon { font-size: 32px; margin-bottom: 8px; }
.contact-label { font-size: 12px; color: #94A3B8; margin-bottom: 4px; }
.contact-value { font-size: 20px; font-weight: 800; }

/* ── 공지사항 ── */
.notice-list { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.notice-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.notice-item:last-child { border-bottom: none; }
.notice-item:hover { background: var(--bg); }
.notice-item a { flex: 1; font-size: 14px; color: var(--text); font-weight: 500; }
.notice-item a:hover { color: var(--primary); }
.notice-date { font-size: 12px; color: var(--text-secondary); }

.notice-detail-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.notice-detail-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}
.notice-detail-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.notice-detail-body {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text);
  white-space: pre-wrap;
}

/* ── 이벤트 카드 ── */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 32px 0;
}
.event-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .2s;
}
.event-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.event-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg);
}
.event-card-img img { width: 100%; height: 100%; object-fit: cover; }
.event-card-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
}
.event-card-body { padding: 16px; }
.event-card-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.event-card-dates { font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; }
.event-status-on {
  display: inline-block;
  background: #D1FAE5; color: #065F46;
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 12px;
}
.event-status-off {
  display: inline-block;
  background: #F1F5F9; color: #64748B;
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 12px;
}
.event-detail-img { text-align: center; padding: 32px 0; }
.event-detail-img img { max-width: 100%; border-radius: var(--radius-lg); }

/* ── 주문 상세 ── */
.order-detail-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}
.order-detail-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.order-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.order-info-item label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}
.order-info-item span { font-size: 14px; color: var(--text); font-weight: 600; }

/* ── 팝업 오버레이 ── */
.popup-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.popup-overlay.hidden { display: none; }
.popup-box {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 420px;
  width: calc(100% - 32px);
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.popup-img-link { display: block; }
.popup-img-link img { width: 100%; display: block; }
.popup-footer {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  background: #f8f8f8;
  border-top: 1px solid var(--border);
}
.popup-btn-today {
  background: none;
  border: none;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
}
.popup-btn-today:hover { color: var(--text); }
.popup-btn-close {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}

/* ── 푸터 ── */
.site-footer {
  background: var(--navy);
  color: #94A3B8;
  padding: 48px 0 24px;
  margin-top: 48px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 32px;
}
.footer-inner > div:last-child {
  margin-left: auto;
  text-align: right;
}
.footer-logo {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}
.footer-desc { font-size: 13px; line-height: 1.8; }
.footer-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #CBD5E1;
  margin-bottom: 12px;
}
.footer-contact-number {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.footer-contact-hours { font-size: 12px; margin-bottom: 8px; }
.footer-contact-email { font-size: 13px; color: #CBD5E1; }
.footer-divider { border-color: #334155; margin: 0 0 20px; }
.footer-bottom {
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-company-info { line-height: 1.8; }

/* ── 디자인 개선 오버라이드 ── */

/* CSS 변수 업데이트 */
:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #EFF6FF;
  --red: #EF4444;
  --navy: #0F172A;
  --navy-mid: #1E293B;
  --text: #0F172A;
  --text-secondary: #64748B;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --bg: #F8FAFC;
  --white: #FFFFFF;
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* 헤더 개선 */
.site-header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 2px 8px rgba(0,0,0,.04);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

/* 검색바 개선 */
.search-bar {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.search-bar button {
  border-radius: 0 10px 10px 0;
  font-weight: 700;
  letter-spacing: -0.3px;
}

/* 네비게이션 개선 */
.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.nav-inner a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 16px 18px;
  position: relative;
  border-bottom: 3px solid transparent;
  transition: color .2s;
  letter-spacing: -0.2px;
}
.nav-inner a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 18px;
  right: 18px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
  transform: scaleX(0);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.nav-inner a:hover { color: var(--primary); }
.nav-inner a:hover::after { transform: scaleX(1); }
.nav-inner a.active { color: var(--primary); border-bottom-color: var(--primary); }
.nav-inner a.active::after { transform: scaleX(1); }

/* 네비 드롭다운 */
.nav-item-wrap {
  position: relative;
  display: inline-flex;
  align-items: stretch;
}
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 160px;
  background: #fff;
  border: 1px solid #F3F4F6;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.10), 0 8px 10px -6px rgba(0,0,0,.10);
  padding: 6px 0;
  z-index: 100;
}
.nav-item-wrap:hover .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  border-bottom: none;
  letter-spacing: 0;
  transition: color .15s, background .15s;
}
.nav-dropdown a::after { display: none; }
.nav-dropdown a:hover {
  color: var(--primary);
  background: #EFF6FF;
}

/* 상품 카드 개선 */
.product-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .2s cubic-bezier(.4,0,.2,1), box-shadow .2s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #60A5FA);
  opacity: 0;
  transition: opacity .2s;
  z-index: 1;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-card:hover::before { opacity: 1; }
.product-img-placeholder {
  background: linear-gradient(145deg, #EFF6FF 0%, #DBEAFE 50%, #BFDBFE 100%);
  color: var(--primary);
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -2px;
}
.product-info {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}
.price-discount { font-size: 13px; }
.price-sell { font-size: 17px; font-weight: 900; letter-spacing: -0.5px; }
.btn-buy {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.2px;
  transition: opacity .2s, transform .15s;
  margin-top: auto;
  align-self: flex-end;
  width: auto;
}
.btn-buy:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  opacity: 0.9;
  transform: translateY(-1px);
}

/* 배너 플레이스홀더 개선 */
.banner-placeholder {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 45%, #2563EB 100%);
  position: relative;
  overflow: hidden;
}
.banner-placeholder::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(96,165,250,.08);
  top: -200px; right: -100px;
}
.banner-placeholder::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(37,99,235,.15);
  bottom: -100px; left: 5%;
}
.banner-placeholder h2 {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}
.banner-placeholder p {
  font-size: 16px;
  opacity: 0.75;
  letter-spacing: -0.3px;
  position: relative;
  z-index: 1;
}

/* 카테고리 카드 개선 */
.category-card {
  border-radius: var(--radius-lg);
  padding: 24px 12px;
  transition: all .2s cubic-bezier(.4,0,.2,1);
  border: 1.5px solid var(--border-light);
}
.category-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(37,99,235,.12);
  transform: translateY(-3px);
}
.category-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  margin-bottom: 10px;
}
.category-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

/* 피쳐 섹션 개선 */
.features-section {
  background: linear-gradient(180deg, var(--white) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border-light);
}
.feature-item {
  padding: 20px;
  border-right: 1px solid var(--border-light);
}
.feature-item:last-child { border-right: none; }
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  box-shadow: 0 2px 8px rgba(37,99,235,.12);
  font-size: 24px;
}
.feature-item h4 { font-size: 14px; font-weight: 800; letter-spacing: -0.3px; }
.feature-item p { font-size: 12px; color: var(--text-secondary); }

/* 섹션 타이틀 개선 */
.section-title {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.8px;
}
.section-title span {
  background: linear-gradient(135deg, var(--primary), #3B82F6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 버튼 전반 개선 */
.btn-submit {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.3px;
  padding: 13px;
  transition: opacity .2s, transform .15s;
}
.btn-submit:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-order {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 10px;
  font-weight: 800;
  padding: 15px;
  transition: opacity .2s, transform .15s;
}
.btn-order:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-add-cart {
  border-radius: 10px;
  font-weight: 800;
  padding: 15px;
  border-width: 2px;
}
.btn-buy-now {
  border-radius: 10px;
  font-weight: 800;
  padding: 15px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

/* 장바구니/주문 개선 */
.order-summary {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}
.cart-item {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: box-shadow .15s;
}
.cart-item:hover { box-shadow: var(--shadow-sm); }

/* 푸터 개선 */
.site-footer {
  background: linear-gradient(180deg, #0F172A 0%, #020617 100%);
}
.footer-logo {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -1px;
}

/* 페이지 타이틀 바 개선 */
.page-title {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.8px;
}

/* 상품 상세 개선 */
.detail-name {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.8px;
}
.detail-discount {
  font-size: 30px;
  font-weight: 900;
}
.detail-sell-price {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -1.5px;
}
.detail-price-box {
  background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
  border: 1px solid var(--border-light);
}

/* 인증 페이지 개선 */
.auth-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  padding: 48px 40px;
}
.auth-logo {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--primary), #1D4ED8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.form-input {
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  border: 1.5px solid var(--border);
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

/* 애니메이션 */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.product-card {
  animation: fadeInUp .4s ease both;
}
.product-grid .product-card:nth-child(1) { animation-delay: .05s; }
.product-grid .product-card:nth-child(2) { animation-delay: .1s; }
.product-grid .product-card:nth-child(3) { animation-delay: .15s; }
.product-grid .product-card:nth-child(4) { animation-delay: .2s; }
.product-grid .product-card:nth-child(5) { animation-delay: .25s; }
.product-grid .product-card:nth-child(6) { animation-delay: .3s; }
.product-grid .product-card:nth-child(7) { animation-delay: .35s; }
.product-grid .product-card:nth-child(8) { animation-delay: .4s; }

/* ── 반응형 ── */
@media (max-width: 1024px) {
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .events-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail-layout { flex-direction: column; }
  .product-detail-img { width: 100%; }
}

@media (max-width: 768px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .products-layout { flex-direction: column; }
  .products-sidebar { width: 100%; }
  .cart-layout { flex-direction: column; }
  .cart-sidebar { width: 100%; position: static; }
  .mypage-layout { flex-direction: column; }
  .mypage-sidebar { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .top-bar .container { flex-direction: column; gap: 2px; }
  .banner-slider { height: 180px; }
  .order-info-grid { grid-template-columns: 1fr; }
}

/* ── 약관동의 페이지 ── */
.terms-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 16px;
  background: var(--bg);
}
.terms-container {
  width: 100%;
  max-width: 600px;
}
.terms-header { margin-bottom: 28px; }
.terms-title { font-size: 24px; font-weight: 900; letter-spacing: -0.8px; color: var(--text); margin-bottom: 6px; }
.terms-subtitle { font-size: 14px; color: var(--text-secondary); }

.terms-all-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 12px;
}
.terms-all-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 10px;
}
.terms-all-text { font-size: 15px; font-weight: 800; color: var(--text); }
.terms-all-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.7; }

.terms-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
}
.terms-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  transition: background .15s;
}
.terms-item-header:hover { background: var(--bg); }
.terms-check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex: 1;
}
.terms-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}
.terms-badge.required { background: var(--primary); color: #fff; }
.terms-badge.optional { background: #E2E8F0; color: var(--text-secondary); }
.terms-name { font-size: 14px; font-weight: 600; color: var(--text); }
.terms-toggle { font-size: 16px; color: var(--text-secondary); transition: transform .2s; }
.terms-checkbox { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }

.terms-content {
  display: none;
  padding: 16px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.terms-text { font-size: 13px; color: var(--text-secondary); line-height: 1.8; }

.terms-footer { margin-top: 24px; text-align: center; }
.btn-terms-next {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  transition: opacity .2s;
  margin-bottom: 10px;
}
.btn-terms-next:disabled { background: #94A3B8; cursor: not-allowed; }
.btn-terms-next:not(:disabled):hover { opacity: 0.9; }
.terms-required-msg { font-size: 13px; color: var(--text-secondary); }

/* ── 회원가입 폼 (새 디자인) ── */
.register-page {
  background: var(--bg);
  min-height: calc(100vh - 200px);
  padding: 40px 16px;
}
.register-container {
  max-width: 768px;
  margin: 0 auto;
  padding: 0 24px;
}
.register-header { margin-bottom: 32px; }
.register-title { font-size: 24px; font-weight: 900; letter-spacing: -0.8px; color: var(--text); margin-bottom: 6px; }
.register-subtitle { font-size: 14px; color: var(--text-secondary); }

.register-section {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
}
.register-section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.4px;
}

.reg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.reg-grid.full { grid-template-columns: 1fr; }
.reg-field { display: flex; flex-direction: column; gap: 6px; }
.reg-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 2px;
}
.reg-label .req { color: var(--red); }
.reg-input {
  height: 44px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0 14px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  background: #fff;
  width: 100%;
}
.reg-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.08);
}
.reg-input::placeholder { color: #94A3B8; }
.reg-input-group {
  display: flex;
  gap: 8px;
  align-items: center;
}
.reg-input-group .reg-input { flex: 1; }
.btn-reg-action {
  height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  background: #fff;
  white-space: nowrap;
  transition: border-color .2s, color .2s;
}
.btn-reg-action:hover { border-color: var(--primary); color: var(--primary); }

.reg-radio-group {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 10px 0;
}
.reg-radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
}
.reg-radio-label input[type=radio] { accent-color: var(--primary); width: 16px; height: 16px; }

.reg-select {
  height: 44px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  outline: none;
  cursor: pointer;
}
.reg-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.08); }

.reg-addr-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reg-file-area {
  border: 1.5px dashed var(--border);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-file-upload {
  height: 36px;
  padding: 0 16px;
  border: 1.5px solid var(--primary);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.btn-file-upload:hover { background: var(--primary-light); }
.file-name-display { font-size: 13px; color: var(--text-secondary); }
.reg-file-note { font-size: 12px; color: var(--text-secondary); margin-top: 8px; line-height: 1.6; }

.reg-phone-row { display: flex; gap: 8px; align-items: center; }
.reg-phone-row .reg-select { width: 90px; flex-shrink: 0; }
.reg-phone-row .reg-input { flex: 1; }

.btn-register-submit {
  display: block;
  width: 160px;
  height: 48px;
  margin: 24px 0 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  transition: opacity .2s, transform .15s;
}
.btn-register-submit:hover { opacity: 0.9; transform: translateY(-1px); }

.reg-notice { font-size: 12px; color: var(--text-secondary); margin-top: 8px; line-height: 1.7; }
.reg-notice .red { color: var(--red); }

.reg-login-link {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-secondary);
}
.reg-login-link a { color: var(--primary); font-weight: 700; }

/* 비밀번호 토글 */
.pw-input-wrap { position: relative; }
.pw-input-wrap .reg-input { padding-right: 44px; }
.pw-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
}

@media (max-width: 640px) {
  .reg-grid { grid-template-columns: 1fr; }
  .register-container { padding: 0 4px; }
  .register-section { padding: 20px 16px; }
}

/* ────────────────────────────────────────────
   발송 내역 페이지
──────────────────────────────────────────── */
.send-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.send-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 16px;
}
.send-filter-grid { display: flex; flex-direction: column; gap: 12px; }
.send-filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.send-filter-label {
  width: 80px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.send-filter-input {
  flex: 1;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-primary);
  background: #fff;
  outline: none;
}
.send-filter-input:focus { border-color: var(--primary); }
.send-filter-input[readonly] { background: var(--bg-light); color: var(--text-secondary); }
.send-filter-select {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-primary);
  background: #fff;
  outline: none;
  cursor: pointer;
  appearance: none;
}
.send-filter-select:focus { border-color: var(--primary); }

/* 발송 버튼 (주문목록) */
.btn-send-list {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .2s;
}
.btn-send-list:hover { opacity: 0.85; color: #fff; }

/* 재발송·새로고침 등 보조 버튼 */
.btn-resend {
  height: 34px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn-resend:hover { background: var(--bg-light); border-color: #94A3B8; }

/* 발송 상태 뱃지 */
.send-status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
}
.send-status-1, .send-status-S { background: #DCFCE7; color: #15803D; }
.send-status-0, .send-status-F { background: #FEE2E2; color: #DC2626; }
.send-status-N { background: #F1F5F9; color: #64748B; }
.send-status-E, .send-status-C { background: #FEF3C7; color: #D97706; }

/* 발송 테이블 */
.send-table th, .send-table td { font-size: 13px; }
.table-scroll-wrap { overflow-x: auto; }

/* 상세 보기 버튼 */
.btn-detail-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  color: var(--text-secondary);
  font-size: 16px;
}
.btn-detail-icon:hover { color: var(--primary); }

/* 모달 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.send-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  overflow: hidden;
}
.send-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--border);
}
.send-modal-title { font-size: 16px; font-weight: 700; }
.send-modal-close {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--text-secondary);
  cursor: pointer;
}
.send-modal-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.send-modal-row { display: flex; align-items: center; gap: 12px; }
.send-modal-row label { width: 80px; font-size: 13px; font-weight: 600; color: var(--text-secondary); flex-shrink: 0; }
.send-modal-row .send-filter-input { flex: 1; }
.send-modal-footer {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  justify-content: flex-end;
}

/* 페이지네이션 */
.pagination { display: flex; gap: 4px; align-items: center; }
.page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 13px;
  color: var(--text-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s;
}
.page-btn:hover { background: var(--bg-light); color: var(--text-primary); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 700; }
.page-btn[disabled] { opacity: 0.4; cursor: not-allowed; }
