/* =========================================================
   꼬마옷장 (Little Closet) - Design System & Stylesheet
   ========================================================= */

:root {
  --primary: #FF7E67;
  --primary-hover: #F2674E;
  --primary-light: #FFF1EE;
  --primary-border: #FFD8D0;
  
  --secondary: #6B7280;
  --secondary-bg: #F3F4F6;
  
  --accent: #FFB86C;
  --accent-light: #FFF8EE;
  
  --admin-color: #5B45FF;
  --admin-light: #EEECFF;
  
  --success: #10B981;
  --success-light: #EBFDF5;
  --danger: #EF4444;
  
  --bg-main: #FBF9F5;
  --surface: #FFFFFF;
  --surface-alt: #F7F5F0;
  
  --text-main: #2D3142;
  --text-muted: #7E869B;
  --text-light: #9EA8BA;
  
  --border-light: #EBE5DC;
  --border-focus: #FF7E67;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 6px rgba(45, 49, 66, 0.04);
  --shadow-md: 0 8px 20px rgba(45, 49, 66, 0.08);
  --shadow-lg: 0 16px 36px rgba(45, 49, 66, 0.12);
  --shadow-modal: 0 24px 60px rgba(45, 49, 66, 0.2);
  
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: 'Outfit', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ================== 버튼 공통 ================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-family: inherit;
  outline: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background-color: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(255, 126, 103, 0.32);
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 6px 16px rgba(255, 126, 103, 0.42);
}

.btn-outline {
  background-color: #FFFFFF;
  border-color: var(--border-light);
  color: var(--text-main);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--primary-light);
}

.btn-secondary {
  background-color: var(--secondary-bg);
  color: var(--text-main);
}
.btn-secondary:hover {
  background-color: #E5E7EB;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover {
  color: var(--text-main);
  background: rgba(0,0,0,0.04);
}

.btn-admin {
  background: var(--admin-light);
  color: var(--admin-color);
  border: 1px solid #D5CEFF;
}
.btn-admin:hover {
  background: var(--admin-color);
  color: #FFFFFF;
}

.btn-success {
  background-color: var(--success);
  color: #FFFFFF;
}
.btn-success:hover {
  background-color: #059669;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

.btn-back {
  background-color: #FFFFFF;
  border: 1px solid var(--border-light);
  padding: 8px 16px;
  font-size: 14px;
  color: var(--text-main);
  border-radius: var(--radius-full);
}
.btn-back:hover {
  background-color: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

/* ================== 헤더 ================== */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.logo-icon {
  font-size: 32px;
  background: var(--primary-light);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.logo-texts {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.logo-subtitle {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--primary);
  text-transform: uppercase;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-guest, .nav-member, .nav-admin {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-greeting {
  font-size: 14px;
  color: var(--text-muted);
}
.user-greeting strong {
  color: var(--text-main);
  font-weight: 700;
}

.cart-btn {
  position: relative;
}

.cart-badge {
  background: var(--primary);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  margin-left: 4px;
}

/* ================== 히어로 배너 ================== */
.hero-banner {
  background: linear-gradient(135deg, #FFF6F2 0%, #FFFDF9 50%, #F5F7FF 100%);
  border-bottom: 1px solid var(--border-light);
  padding: 48px 0;
  text-align: center;
}

.hero-content {
  max-width: 720px;
}

.hero-tag {
  display: inline-block;
  background: rgba(255, 126, 103, 0.12);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.hero-title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.hero-title .highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-muted);
}

/* ================== 메인 컨텐츠 영역 ================== */
.main-content {
  flex: 1;
  padding: 40px 24px 60px;
}

.section-header {
  margin-bottom: 28px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

/* ================== 브랜드 그리드 (Slide 3) ================== */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.brand-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.brand-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.brand-img-wrap {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  overflow: hidden;
  border: 3px solid #FFFFFF;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.brand-card:hover .brand-img-wrap {
  transform: scale(1.05);
}

.brand-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.brand-desc-sm {
  font-size: 13px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.brand-item-count {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* ================== 상품 목록 그리드 (Slide 4, 9) ================== */
.product-view-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.current-brand-info {
  margin-top: 4px;
}

.brand-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
}

.login-prompt-bar {
  background: #FFF8E7;
  border: 1px solid #FFE4A0;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  color: #7A5B04;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-thumb-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--surface-alt);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.product-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-thumb-wrap img {
  transform: scale(1.06);
}

.product-info-wrap {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
  cursor: pointer;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-title:hover {
  color: var(--primary);
}

.product-bottom-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
}

.product-price {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
}
.product-price span {
  font-size: 13px;
  font-weight: normal;
  color: var(--text-muted);
}

/* 슬라이드 9: 로그인 시 나타나는 담기 버튼 */
.btn-add-cart {
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-add-cart:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}

/* ================== 모달 공통 레이아웃 ================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30, 34, 45, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal-backdrop.open {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-dialog {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-modal);
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.modal-sm {
  max-width: 400px;
}

.modal-lg {
  max-width: 820px;
}

.modal-postcode {
  max-width: 560px;
}

.modal-cart-drawer {
  max-width: 540px;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 26px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.modal-close-btn:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* ================== 폼 스타일 ================== */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-group label .required {
  color: var(--primary);
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-main);
  background: #FFFFFF;
  transition: var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(255, 126, 103, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.input-with-btn {
  display: flex;
  gap: 8px;
}

.text-center {
  text-align: center;
}

.login-hint-box {
  background: var(--surface-alt);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}
.login-hint-box code {
  color: var(--primary);
  font-weight: 700;
}

/* ================== 상품 상세 모달 레이아웃 (Slide 5) ================== */
/* ================== 상품 상세 모달 창 스플릿 뷰 (좌측 대형 사진 스크롤 + 우측 고정 담기창) ================== */
.modal-detail-window {
  max-width: 1040px;
  width: 95vw;
  height: 86vh;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 0;
}

.modal-detail-window .modal-header {
  padding: 16px 24px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-brand-badge {
  background: var(--surface-alt);
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.product-detail-split-layout {
  display: flex;
  flex: 1;
  height: calc(86vh - 65px);
  overflow: hidden;
}

/* 좌측: 창 사이즈 맞춤 대형 사진 세로 스크롤 영역 */
.detail-photos-scroll-col {
  flex: 1.25;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 28px;
  background: #fbf9f6;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scroll-behavior: smooth;
}

.detail-photos-scroll-col::-webkit-scrollbar {
  width: 8px;
}
.detail-photos-scroll-col::-webkit-scrollbar-track {
  background: #f1ede8;
}
.detail-photos-scroll-col::-webkit-scrollbar-thumb {
  background: #d8cec5;
  border-radius: 4px;
}
.detail-photos-scroll-col::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.detail-scroll-photo-card {
  width: 100%;
  min-height: 420px;
  max-height: 600px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 16px;
}

.detail-scroll-photo-card img {
  max-width: 100%;
  max-height: 560px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.photo-index-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(30, 34, 45, 0.65);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
  z-index: 2;
}

/* 우측: 사진을 스크롤해도 절대 움직이지 않는 고정 담기 사이드바 */
.detail-sidebar-col {
  flex: 0.95;
  width: 420px;
  height: 100%;
  overflow-y: auto;
  background: #FFFFFF;
  border-left: 1px solid var(--border-light);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.02);
}

.sidebar-top-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin: 0;
}

.detail-price-box {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-main);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
  margin: 0;
}

.detail-price-box .currency {
  font-size: 16px;
  font-weight: normal;
  color: var(--text-muted);
  margin-left: 2px;
}

.detail-option-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.option-label .selected-val {
  color: var(--primary);
  font-weight: 600;
  font-size: 12px;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-main);
  background: #FFFFFF;
  cursor: pointer;
  transition: var(--transition);
}
.chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.chip.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(255, 126, 103, 0.25);
}

/* 수량 조절 컨트롤 */
.detail-qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  width: fit-content;
  overflow: hidden;
  background: #FFFFFF;
}

.qty-btn {
  width: 38px;
  height: 38px;
  background: var(--surface-alt);
  border: none;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-main);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.qty-num-input {
  width: 50px;
  height: 38px;
  border: none;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  outline: none;
  background: #FFFFFF;
}

/* 총 금액 바 */
.detail-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--surface-alt);
  border-radius: var(--radius-md);
}

.total-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.total-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

/* 상품 설명 카드 */
.detail-desc-card {
  background: #fdfaf7;
  border: 1px solid #f2e9e1;
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.desc-card-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}
.desc-card-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* 하단 담기 버튼 푸터 */
.sidebar-action-footer {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.delivery-notice-text {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}

@media (max-width: 860px) {
  .product-detail-split-layout {
    flex-direction: column;
    height: auto;
    max-height: 80vh;
    overflow-y: auto;
  }
  .detail-sidebar-col {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--border-light);
    box-shadow: none;
  }
}

/* ================== 장바구니 담기 팝업 (Slide 10) ================== */
.cart-target-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface-alt);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.cart-target-thumb {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.cart-target-item h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.cart-target-price {
  font-size: 13px;
  color: var(--primary);
  font-weight: 700;
}

.qty-control {
  display: flex;
  align-items: center;
  max-width: 140px;
  gap: 6px;
}

.btn-qty {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  border-radius: var(--radius-sm);
  font-size: 18px;
  cursor: pointer;
}
.btn-qty:hover {
  background: var(--surface-alt);
}

/* ================== 장바구니 드로어 ================== */
.cart-drawer-body {
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.cart-item-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.cart-item-details {
  flex: 1;
}

.cart-item-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
}

.cart-item-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
}
.cart-item-remove:hover {
  color: var(--danger);
}

.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-light);
  background: var(--surface-alt);
}

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 15px;
}

.total-amount {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.cart-action-buttons {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 10px;
}

/* ================== 다음 우편번호 레이어 ================== */
.postcode-layer-body {
  width: 100%;
  height: 440px;
}

/* ================== 관리자 모드 뷰 (Slide 11, 12, 2) ================== */
.admin-dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border-light);
}

.admin-tab {
  background: none;
  border: none;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}

.admin-tab.active {
  color: var(--admin-color);
  border-bottom-color: var(--admin-color);
}

.admin-tab-content {
  display: none;
}
.admin-tab-content.active {
  display: block;
}

.admin-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

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

.card-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* 테이블 스타일 */
.table-responsive {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  background: var(--surface-alt);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-main);
  vertical-align: middle;
}

.data-table tr:hover td {
  background-color: #FAF9F6;
}

/* 상품 업로드 드롭존 (Slide 2) */
.upload-box-area {
  margin-top: 16px;
}

.folder-guide-box {
  background: #FFF9F2;
  border: 1px solid #FFE2C6;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
}

.guide-title {
  font-size: 15px;
  color: #C05621;
  margin-bottom: 6px;
}

.guide-desc {
  font-size: 13px;
  color: #7B341E;
  margin-bottom: 10px;
}

.folder-tree-example {
  background: #FFFFFF;
  border: 1px solid #FED7AA;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: monospace, monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #2D3748;
}

.upload-control-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.5fr;
  gap: 16px;
  margin-bottom: 20px;
}

.upload-dropzone {
  border: 2px dashed #C9D2E0;
  border-radius: var(--radius-lg);
  padding: 44px 24px;
  text-align: center;
  background: var(--surface-alt);
  cursor: pointer;
  transition: var(--transition);
}

.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.dropzone-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.upload-dropzone h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.upload-dropzone p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.upload-btn-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.upload-preview-list {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.detected-brand-banner {
  background: linear-gradient(135deg, #FFF1EE 0%, #FFF8EE 100%);
  border: 1px solid #FFD4C8;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detected-brand-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.detected-brand-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.product-preview-groups {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.product-group-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #FFFFFF;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.product-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.product-group-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.product-group-badge {
  font-size: 12px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.product-group-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.group-thumb-item {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

.upload-progress-container {
  background: #FFF9F5;
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
  animation: fadeIn 0.2s ease;
}

.progress-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
}

.progress-track {
  width: 100%;
  height: 12px;
  background: #EBE5DC;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, #10B981 100%);
  border-radius: var(--radius-full);
  transition: width 0.2s ease;
}

.preview-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ================== 토스트 알림 ================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #2D3142;
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.3s ease;
}

.toast.success {
  background: #059669;
}

.toast.error {
  background: #DC2626;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ================== 푸터 ================== */
.site-footer {
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  padding: 32px 0;
  margin-top: auto;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-size: 15px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ================== 반응형 미디어 쿼리 ================== */
@media (max-width: 992px) {
  .brand-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .upload-control-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .header-inner {
    height: 64px;
  }
  .logo-title {
    font-size: 18px;
  }
  .hero-title {
    font-size: 24px;
  }
  .brand-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-content {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ================== 관리자 삭제 버튼 & 테이블 사진 스타일 ================== */
.table-thumb-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: #fbf9f6;
  border: 1px solid var(--border-light);
  display: block;
}

.btn-delete-sm {
  background: #fff5f5;
  color: #e53935;
  border: 1px solid #ffcdd2;
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-delete-sm:hover {
  background: #e53935;
  color: #ffffff;
  border-color: #e53935;
  transform: translateY(-1px);
}

