/* ── Design Tokens ───────────────────────────────────────── */
:root {
  /* Brand */
  --color-primary:       #e74c3c;
  --color-primary-dark:  #c0392b;
  --color-primary-light: #fdecea;
  --color-dark:          #1a1f2e;
  --color-dark-2:        #222222;
  --color-dark-hover:    #2d3447;

  /* Neutral */
  --color-bg:            #f8f8f8;
  --color-bg-admin:      #f0f2f5;
  --color-surface:       #ffffff;
  --color-border:        #e0e0e0;
  --color-border-light:  #f0f0f0;

  /* Text */
  --color-text:          #333333;
  --color-text-secondary:#666666;
  --color-text-muted:    #888888;
  --color-text-disabled: #aaaaaa;

  /* State */
  --color-success:       #28a745;
  --color-success-bg:    #d4edda;
  --color-warning:       #e67e22;
  --color-warning-bg:    #fff3e0;
  --color-info:          #1976d2;
  --color-info-bg:       #e3f2fd;
  --color-danger:        #c0392b;
  --color-danger-bg:     #fdecea;

  /* Type */
  --text-xs:   11px;
  --text-sm:   12px;
  --text-md:   13px;
  --text-base: 14px;
  --text-lg:   16px;
  --text-xl:   18px;
  --text-2xl:  20px;
  --text-3xl:  24px;

  /* Spacing */
  --sp-1:  4px;  --sp-2:  8px;  --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 20px;  --sp-6: 24px;  --sp-8: 32px;

  /* Shape */
  --radius-sm:  3px;
  --radius-md:  6px;
  --radius-lg:  8px;
  --radius-pill: 20px;

  /* Shadow */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 12px rgba(0,0,0,.10);
  --shadow-lg:  0 10px 40px rgba(0,0,0,.18);

  --transition: 0.15s ease;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Noto Sans KR', sans-serif; background: #f0f2f8; color: #1a1f2e; font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ── Layout ──────────────────────────────────────────────── */
.main-wrap { min-height: calc(100vh - 200px); }
.main-content { max-width: 1200px; margin: 0 auto; padding: 30px 20px; }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 200;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.site-logo { font-size: 20px; font-weight: 700; white-space: nowrap; color: #111; flex-shrink: 0; }
.site-logo span { color: #e74c3c; }

.search-form { flex: 1; display: flex; gap: 6px; max-width: 500px; }
.search-input {
  flex: 1; border: 1px solid #ccc; border-radius: 3px;
  padding: 8px 12px; font-size: 14px; outline: none;
}
.search-input:focus { border-color: #333; }
.search-btn {
  background: #222; color: #fff; border: none;
  padding: 8px 18px; border-radius: 3px; font-size: 13px;
}
.search-btn:hover { background: #444; }

.user-menu { display: flex; align-items: center; gap: 12px; font-size: 13px; white-space: nowrap; flex-shrink: 0; }
.user-menu a:hover { color: #e74c3c; }
.member-name { font-weight: 500; color: #e74c3c; }
.btn-text { background: none; border: none; font-size: 13px; padding: 0; color: #333; }
.btn-text:hover { color: #e74c3c; }
.inline-form { display: inline; }

/* ── Category Nav ────────────────────────────────────────── */
.category-nav {
  background: #222;
  position: sticky;
  top: 55px;
  z-index: 190;
}
.gnb-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  overflow-x: auto;
}
.gnb-inner::-webkit-scrollbar { height: 0; }
.gnb-item { position: relative; flex-shrink: 0; }
.gnb-item > a {
  display: block;
  color: #fff;
  padding: 13px 16px;
  font-size: 13px;
  white-space: nowrap;
  transition: background 0.15s;
}
.gnb-item:hover > a, .gnb-item.active > a { background: #e74c3c; }

.has-sub .gnb-sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #ddd;
  min-width: 130px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  z-index: 300;
}
.has-sub:hover .gnb-sub { display: block; }
.gnb-sub a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
}
.gnb-sub a:hover { background: #f5f5f5; color: #e74c3c; }

/* ── Notice Banner ───────────────────────────────────────── */
.notice-banner {
  background: #fff8e1;
  border: 1px solid #ffe082;
  padding: 10px 16px;
  border-radius: 3px;
  font-size: 13px;
  margin-bottom: 24px;
  color: #6d4c41;
}

/* ── Welcome banner ──────────────────────────────────────── */
.welcome-banner {
  background: linear-gradient(90deg, #fff8e1, #ffecb3);
  border: 1px solid #ffd54f;
  padding: 14px 18px; border-radius: 4px; margin-bottom: 14px;
  font-size: 14px; color: #6d4c41; font-weight: 500;
}
.welcome-banner strong { color: #e74c3c; }

/* ── Footer (확장) ────────────────────────────────────────── */
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 30px 20px 20px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 18px; border-bottom: 1px solid #333; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.footer-brand-wrap { color: #fff; }
.footer-brand { font-size: 17px; font-weight: 700; }
.footer-tagline { font-size: 12px; color: #aaa; margin-top: 2px; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: #ccc; font-size: 13px; }
.footer-links a:hover { color: #fff; }
.footer-info { color: #aaa; font-size: 12px; line-height: 1.8; }
.footer-info p { margin-bottom: 4px; }
.footer-info strong { color: #ddd; font-weight: 500; }
.footer-copyright { color: #666; font-size: 11px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #333; }
.site-footer { background: #1a1f2e; color: #aaa; }

/* ── Cart updates ────────────────────────────────────────── */
.cart-total { background: #fff; padding: 16px 20px; border-radius: 4px; margin: 18px 0; border: 1px solid #e0e0e0; }
.cart-total-row { font-size: 16px; padding: 4px 0; }
.cart-total-row.sub { font-size: 13px; color: #666; }
.cart-total-row.sub .hint { font-size: 11px; color: #999; margin-left: 6px; }
.btn-checkout { background: #e74c3c; color: #fff; padding: 12px 28px; border-radius: 4px; font-weight: 700; font-size: 14px; }
.btn-checkout:hover { background: #c0392b; color: #fff; }

/* ── Mypage 확장 ─────────────────────────────────────────── */
.mypage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 26px; }
.mypage-section { margin-top: 26px; }
.grade-badge { background: #fef3c7; color: #92400e; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.mileage-card { background: linear-gradient(135deg, #fff8e1, #fff); }
.mileage-balance { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-bottom: 1px solid #f0e6d2; margin-bottom: 12px; }
.mileage-label { font-size: 13px; color: #888; }
.mileage-amount { font-size: 24px; font-weight: 700; color: #e74c3c; }
.mileage-info { font-size: 12px; color: #666; line-height: 1.9; }
.btn-detail { font-size: 11px; color: #3498db; padding: 4px 10px; border: 1px solid #cde3f8; border-radius: 4px; background: #f0f7fd; }
.btn-detail:hover { background: #d0e9fa; color: #1a73e8; }
.empty-state-mini { padding: 30px; text-align: center; color: #aaa; background: #fafafa; border: 1px dashed #ddd; border-radius: 4px; }

/* Status tags (member-side) */
.status-tag { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; background: #eee; color: #555; }
.status-tag.s-입금전 { background: #fde8e8; color: #c0392b; }
.status-tag.s-배송준비중 { background: #fff3e0; color: #e67e22; }
.status-tag.s-배송중 { background: #e3f2fd; color: #1976d2; }
.status-tag.s-배송완료 { background: #d4edda; color: #28a745; }
.status-tag.s-취소 { background: #eee; color: #999; }

/* ── Checkout page ───────────────────────────────────────── */
.checkout-form { max-width: 800px; margin: 0 auto; }
.checkout-section { background: #fff; padding: 22px 26px; border-radius: 6px; margin-bottom: 14px; border: 1px solid #e8eaed; }
.checkout-section h2 { font-size: 15px; font-weight: 700; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; margin-bottom: 16px; }
.checkout-items-table { width: 100%; font-size: 13px; }
.checkout-items-table th { font-weight: 500; color: #888; padding: 8px 0; text-align: left; font-size: 12px; }
.checkout-items-table td { padding: 8px 0; border-bottom: 1px solid #f5f5f5; }
.checkout-input { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 13px; outline: none; }
.checkout-input:focus { border-color: #1a1f2e; }
.checkbox-row { padding: 8px 0; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.mileage-use-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mileage-input { max-width: 180px; }
.btn-mileage-all { padding: 9px 16px; background: #f5f5f5; border: 1px solid #ddd; border-radius: 4px; font-size: 12px; cursor: pointer; }
.btn-mileage-all:hover { background: #e8e8e8; }
.mileage-locked { font-size: 13px; color: #888; }
.payment-info-box { background: #fafafa; padding: 16px 18px; border-radius: 4px; border: 1px solid #eee; margin-top: 12px; }
.payment-info-box p { font-size: 13px; line-height: 1.7; }
.payment-hint { font-size: 12px; color: #888; margin-top: 8px; }
.pay-method-list { display: flex; flex-direction: column; gap: 6px; }
.pay-method { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #ddd; border-radius: 4px; cursor: pointer; transition: border-color .15s, background .15s; }
.pay-method:hover:not(.disabled) { border-color: #1a1f2e; }
.pay-method.active { border-color: #1a1f2e; background: #fafafa; }
.pay-method.disabled { background: #f7f7f7; cursor: not-allowed; opacity: .85; }
.pay-method input[type=radio] { margin: 0; }
.pay-method .pay-name { flex: 1; font-size: 14px; font-weight: 500; }
.pay-tag { font-size: 11px; padding: 3px 8px; border-radius: 10px; font-weight: 600; }
.pay-tag-on { background: #e8f5e9; color: #2e7d32; }
.pay-tag-off { background: #ffebee; color: #c62828; }
.pay-disabled-notice { background: #fff8e1; border: 1px solid #ffcc80; color: #6d4c41; padding: 12px 14px; border-radius: 4px; font-size: 13px; margin-top: 10px; line-height: 1.6; }
.pay-disabled-notice a { color: #d84315; font-weight: 700; text-decoration: underline; }
.checkout-summary { width: 100%; margin-top: 4px; }
.checkout-summary tr { border-bottom: 1px solid #f5f5f5; }
.checkout-summary th { font-weight: 500; padding: 10px 0; text-align: left; color: #555; font-size: 13px; }
.checkout-summary td { padding: 10px 0; text-align: right; font-size: 13px; }
.checkout-summary .discount-row td { color: #e74c3c; }
.checkout-summary .grand-total-row th, .checkout-summary .grand-total-row td { font-size: 17px; padding: 14px 0; border-bottom: none; border-top: 2px solid #1a1f2e; }
.checkout-summary .grand-total-row strong { color: #e74c3c; }
.checkout-actions { display: flex; gap: 10px; justify-content: space-between; margin-top: 20px; }
.btn-checkout-final { background: #e74c3c; color: #fff; border: none; padding: 14px 38px; border-radius: 4px; font-weight: 700; font-size: 15px; cursor: pointer; flex: 1; max-width: 240px; }
.btn-checkout-final:hover { background: #c0392b; }

/* ── Order complete & member detail ──────────────────────── */
.order-complete-box { max-width: 640px; margin: 0 auto; background: #fff; padding: 36px 32px; border-radius: 8px; border: 1px solid #e0e0e0; }
.order-complete-box h1 { font-size: 22px; text-align: center; margin-bottom: 6px; }
.success-icon { width: 64px; height: 64px; border-radius: 50%; background: #d4edda; color: #28a745; font-size: 36px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-weight: 700; }
.order-no-display { text-align: center; color: #666; font-size: 13px; margin-bottom: 24px; }
.bank-notice { background: #fff8e1; border: 1px solid #ffe082; border-radius: 6px; padding: 22px 26px; margin-bottom: 20px; }
.bank-notice h2 { font-size: 14px; color: #d35400; margin-bottom: 12px; }
.bank-amount { font-size: 24px; font-weight: 700; color: #d35400; margin-bottom: 14px; text-align: center; }
.bank-account { font-size: 14px; line-height: 1.7; padding: 12px 14px; background: #fff; border-radius: 4px; }
.bank-account strong { font-size: 17px; }
.bank-hint { font-size: 12px; color: #6d4c41; margin-top: 10px; line-height: 1.7; }
.order-summary-card { background: #fafafa; padding: 18px 22px; border-radius: 6px; margin-bottom: 14px; }
.order-summary-card h3 { font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.order-summary-card .grand-row th, .order-summary-card .grand-row td { font-size: 16px; padding-top: 10px; border-top: 1px solid #ddd; }
.order-summary-card .grand-row strong { color: #e74c3c; }
.order-receiver { background: #fafafa; padding: 18px 22px; border-radius: 6px; margin-bottom: 14px; }
.order-receiver h3 { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.tag-island { background: #fff3e0; color: #e67e22; padding: 1px 8px; border-radius: 8px; font-size: 11px; margin-left: 6px; }
.memo-display { font-size: 12px; color: #888; margin-top: 6px; }
.complete-actions { display: flex; gap: 10px; justify-content: center; margin-top: 24px; }
.order-detail-wrap { max-width: 800px; margin: 0 auto; }
.order-status-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: #fafafa; border-radius: 4px; margin-bottom: 14px; }
.status-display { display: flex; align-items: center; gap: 12px; }
.order-no-text { font-family: monospace; font-size: 13px; color: #555; }
.order-date { font-size: 12px; color: #888; }
.tracking-banner { background: #e3f2fd; border: 1px solid #bbdefb; padding: 12px 18px; border-radius: 4px; margin-bottom: 14px; font-size: 13px; color: #1565c0; }

/* ── Business info page ──────────────────────────────────── */
.biz-card { background: #fff; padding: 22px 26px; border-radius: 6px; margin-bottom: 14px; border: 1px solid #e0e0e0; }
.biz-card h2 { font-size: 14px; font-weight: 700; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #f0f0f0; }
.biz-table { width: 100%; font-size: 13px; }
.biz-table th { width: 130px; padding: 8px 0; color: #666; font-weight: 500; vertical-align: top; text-align: left; }
.biz-table td { padding: 8px 0; }
.biz-list { padding-left: 22px; font-size: 13px; line-height: 1.9; color: #555; }

/* ── Join bonus banner ───────────────────────────────────── */
.join-bonus-banner { background: linear-gradient(90deg, #fff8e1, #ffecb3); padding: 12px 18px; border-radius: 4px; font-size: 13px; color: #6d4c41; text-align: center; margin-bottom: 18px; }
.join-bonus-banner strong { color: #e74c3c; font-size: 15px; }

/* ── Article (notice/qna detail) ─────────────────────────── */
.article-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 6px; padding: 28px 32px; margin-bottom: 14px; }
.article-head { padding-bottom: 14px; border-bottom: 1px solid #f0f0f0; margin-bottom: 18px; }
.article-title { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.article-meta { font-size: 12px; color: #888; }
.article-body { font-size: 14px; line-height: 1.8; color: #333; min-height: 120px; }
.article-body p { margin-bottom: 12px; }
.article-body strong { color: #111; }
.article-body ol, .article-body ul { margin: 12px 0 12px 22px; }
.answer-card { background: #f0f7fd; border-color: #cde3f8; }
.article-nav { display: flex; gap: 10px; margin-top: 14px; }
.article-nav-item { flex: 1; background: #fafafa; border: 1px solid #eee; padding: 12px 16px; border-radius: 4px; font-size: 12px; color: #555; }
.article-nav-item:hover { background: #f0f0f0; }
.article-nav-item.disabled { color: #ccc; pointer-events: none; }
.notice-link:hover { color: #e74c3c; text-decoration: underline; }

/* ── Q&A specific ────────────────────────────────────────── */
.qna-status { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.qna-status.answered { background: #d4edda; color: #28a745; }
.qna-status.pending  { background: #fff3e0; color: #e67e22; }
.btn-primary-sm { background: #222; color: #fff; padding: 8px 16px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.btn-primary-sm:hover { background: #444; color: #fff; }
.qna-form .form-group { margin-bottom: 16px; }

/* ── Mobile menu button (햄버거) ────────────────────────── */
.mobile-menu-btn { display: none; flex-direction: column; gap: 4px; background: none; border: none; padding: 8px; cursor: pointer; flex-shrink: 0; }
.mobile-menu-btn span { width: 22px; height: 2px; background: #222; transition: transform .2s, opacity .2s; }
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Mobile (포괄 보강) ──────────────────────────────────── */
@media (max-width: 768px) {
  .mypage-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-links { flex-wrap: wrap; gap: 12px; }
  .checkout-actions { flex-direction: column; }
  .btn-checkout-final { max-width: 100%; }
  .article-card { padding: 20px 18px; }
  .article-nav { flex-direction: column; }
  .article-nav-item { font-size: 13px; }
  .header-inner { flex-wrap: wrap; gap: 10px; padding: 10px 16px; }
  .search-form { order: 3; flex-basis: 100%; max-width: 100%; }
  .mobile-menu-btn { display: flex; }

  /* GNB → 슬라이드 다운 / 토글 */
  .category-nav { max-height: 0; overflow: hidden; transition: max-height .25s; }
  .category-nav.open { max-height: 600px; }
  .gnb-inner { flex-direction: column; padding: 8px 0; gap: 0; overflow-x: visible; }
  .gnb-item { width: 100%; }
  .gnb-item > a { padding: 14px 20px; font-size: 14px; border-bottom: 1px solid #333; }
  .gnb-item.has-sub .gnb-sub { position: static; box-shadow: none; padding-left: 30px; background: #1a1a1a; }
}

@media (max-width: 480px) {
  .main-content { padding: 18px 12px; }
  .site-logo { font-size: 17px; }
  .site-logo span { display: none; }
  .user-menu { gap: 8px; font-size: 12px; }
  .article-card { padding: 16px 14px; }
  .article-title { font-size: 16px; }
  .footer-info p { line-height: 1.6; font-size: 11px; }
  .checkout-section { padding: 16px 14px; }
  .order-history-table th, .order-history-table td { padding: 8px 6px; font-size: 11px; }
}

/* ── Notice Popup ────────────────────────────────────────── */
.notice-popup-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.notice-popup {
  background: #fff; border-radius: 8px;
  width: 100%; max-width: 480px;
  max-height: 90vh; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 10px 40px rgba(0,0,0,.3);
  animation: popupIn .2s ease-out;
}
@keyframes popupIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
.notice-popup-header {
  padding: 20px 24px 14px;
  border-bottom: 1px solid #eee;
  background: #fff8f0;
}
.notice-popup-header h2 {
  font-size: 16px; font-weight: 700; color: #d35400;
}
.notice-popup-body {
  padding: 20px 24px; overflow-y: auto;
  font-size: 14px; line-height: 1.7; color: #444;
}
.notice-popup-body p { margin-bottom: 10px; }
.notice-popup-body ol { margin: 12px 0 12px 24px; }
.notice-popup-body ol li { margin-bottom: 6px; }
.notice-popup-body strong { color: #222; }
.notice-popup-cta { margin-top: 18px; text-align: center; }
.btn-popup-primary {
  display: inline-block;
  background: #e74c3c; color: #fff;
  padding: 10px 22px; border-radius: 4px;
  font-size: 13px; font-weight: 600;
}
.btn-popup-primary:hover { background: #c0392b; color: #fff; }
.notice-popup-footer {
  padding: 14px 24px;
  border-top: 1px solid #eee;
  background: #fafafa;
  display: flex; justify-content: space-between; align-items: center;
}
.notice-checkbox {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: #666; cursor: pointer;
}
.btn-popup-close {
  background: #555; color: #fff; border: none;
  padding: 7px 18px; border-radius: 4px;
  font-size: 13px; cursor: pointer;
}
.btn-popup-close:hover { background: #333; }

/* ── Section ─────────────────────────────────────────────── */
/* section-title: product.ejs 관련상품 헤더에서 사용 중 — 유지 */
.section-title { font-size: 18px; font-weight: 700; padding-bottom: 10px; border-bottom: 2px solid #222; }

/* ── Page Header ─────────────────────────────────────────── */
.page-title { font-size: 20px; font-weight: 700; }
.product-count { font-size: 13px; color: #888; }

/* ── Pagination ──────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 4px; margin-top: 30px; }
.page-btn {
  padding: 6px 12px;
  border: 1px solid #ddd;
  color: #333;
  font-size: 13px;
  border-radius: 3px;
  background: #fff;
}
.page-btn:hover { background: #f0f0f0; }
.page-btn.active { background: #222; color: #fff; border-color: #222; }

/* ── Empty State ─────────────────────────────────────────── */
.btn-back {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 24px;
  background: #222;
  color: #fff;
  border-radius: 3px;
  font-size: 13px;
}

/* ── Product Detail ──────────────────────────────────────── */
.breadcrumb { font-size: 12px; color: #888; margin-bottom: 20px; }
.breadcrumb a:hover { color: #e74c3c; }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.product-detail-img img {
  width: 100%;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
}
.thumb-list { display: flex; gap: 8px; margin-top: 10px; }
.thumb-mini {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 1px solid #ddd;
  border-radius: 3px;
  cursor: pointer;
  opacity: 0.7;
}
.thumb-mini.active, .thumb-mini:hover { opacity: 1; border-color: #333; }

.detail-name { font-size: 20px; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.detail-summary { color: #666; font-size: 13px; margin-bottom: 16px; }
.detail-price-wrap { padding: 16px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; margin-bottom: 20px; }
.detail-price { font-size: 24px; font-weight: 700; color: #e74c3c; }
.detail-supply { font-size: 13px; color: #888; margin-left: 8px; }
.detail-price-login a { color: #e74c3c; }
.soldout-notice { background: #f5f5f5; border: 1px solid #ddd; padding: 12px 16px; font-size: 13px; color: #888; border-radius: 3px; margin-bottom: 16px; }

.form-row { margin-bottom: 14px; }
.form-label { display: block; font-size: 12px; color: #666; margin-bottom: 6px; }
.option-select { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 3px; font-size: 14px; background: #fff; }
.qty-wrap { display: flex; align-items: center; gap: 0; }
.btn-cart {
  display: block;
  width: 100%;
  background: #222;
  color: #fff;
  border: none;
  padding: 14px;
  font-size: 15px;
  border-radius: 3px;
  margin-top: 16px;
  text-align: center;
}
.btn-cart:hover { background: #444; }
.btn-login-prompt { background: #888; }

.product-desc-wrap { border-top: 2px solid #222; padding-top: 0; margin-top: 20px; }
.product-desc { max-width: 800px; margin: 0 auto; }
.product-desc img { max-width: 100%; margin: 0 auto; }

/* ── Forms ───────────────────────────────────────────────── */
.form-container { max-width: 420px; margin: 40px auto; background: #fff; padding: 36px; border: 1px solid #e0e0e0; border-radius: 4px; }
.form-title { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.form-subtitle { font-size: 13px; color: #888; margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; margin-bottom: 5px; color: #444; }
.required { color: #e74c3c; }
.form-input { width: 100%; border: 1px solid #ddd; padding: 10px 12px; font-size: 14px; border-radius: 3px; outline: none; }
.form-input:focus { border-color: #333; }
.btn-primary { width: 100%; background: #222; color: #fff; border: none; padding: 13px; font-size: 15px; border-radius: 3px; margin-top: 4px; }
.btn-primary:hover { background: #444; }
.btn-secondary { display: inline-block; padding: 10px 20px; border: 1px solid #ddd; border-radius: 3px; font-size: 13px; background: #fff; color: #333; }
.btn-secondary:hover { background: #f5f5f5; }

.form-links { text-align: center; margin-top: 16px; font-size: 13px; color: #888; }
.form-links a { color: #333; }
.form-links a:hover { color: #e74c3c; }
.divider { margin: 0 8px; }


.info-box {
  margin-top: 20px;
  padding: 12px 14px;
  background: #f0f4ff;
  border: 1px solid #c5d3ff;
  border-radius: 3px;
  font-size: 12px;
  color: #333;
  line-height: 1.8;
}

/* ── Cart ────────────────────────────────────────────────── */
.cart-table { width: 100%; border-collapse: collapse; background: #fff; }
.cart-table th, .cart-table td { padding: 12px 16px; border-bottom: 1px solid #eee; font-size: 13px; }
.cart-table th { background: #f5f5f5; font-weight: 600; text-align: left; }
.cart-product-name:hover { color: #e74c3c; }
.btn-remove { background: #fff; border: 1px solid #ddd; padding: 4px 10px; font-size: 12px; color: #888; border-radius: 2px; }
.btn-remove:hover { background: #fdecea; border-color: #e74c3c; color: #e74c3c; }
.cart-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.order-notice { font-size: 13px; color: #888; }

/* ── Mypage ──────────────────────────────────────────────── */
.mypage-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 4px; padding: 24px; margin-bottom: 20px; }
.mypage-card h2 { font-size: 16px; font-weight: 700; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid #eee; }
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td { padding: 10px 12px; border-bottom: 1px solid #f0f0f0; font-size: 13px; text-align: left; }
.info-table th { width: 100px; color: #666; font-weight: 500; background: #fafafa; }

/* ── Notice ──────────────────────────────────────────────── */
.notice-table { width: 100%; border-collapse: collapse; background: #fff; }
.notice-table th, .notice-table td { padding: 12px 16px; border-bottom: 1px solid #eee; font-size: 13px; }
.notice-table th { background: #f5f5f5; font-weight: 600; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .product-detail { grid-template-columns: 1fr; gap: 24px; }
  .header-inner { flex-wrap: wrap; }
  .search-form { order: 3; width: 100%; max-width: 100%; }
  .site-logo { font-size: 17px; }
}
@media (max-width: 480px) {
  .form-container { margin: 20px 12px; padding: 24px 16px; }
  .main-content { padding: 20px 12px; }
  .user-menu { gap: 8px; font-size: 12px; }
  .user-menu .member-name { display: none; }
}

/* ── 메인 슬라이더 (Hero) ────────────────────────────────── */
.hero-slider { width: 100%; aspect-ratio: 3 / 1; background: #f0f0f0; }
.hero-slider .swiper-slide { display: flex; align-items: center; justify-content: center; }
.hero-slider .swiper-slide img,
.hero-slider .swiper-slide a {
  width: 100%; height: 100%; display: block;
}
.hero-slider .swiper-slide img { object-fit: cover; }
.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
  color: #fff; background: rgba(0,0,0,.35);
  width: 40px; height: 40px; border-radius: 50%;
  --swiper-navigation-size: 18px;
}
.hero-slider .swiper-button-next:hover,
.hero-slider .swiper-button-prev:hover { background: rgba(0,0,0,.6); }
.hero-slider .swiper-pagination-bullet { background: #fff; opacity: .6; }
.hero-slider .swiper-pagination-bullet-active { background: var(--color-primary); opacity: 1; }
@media (max-width: 768px) {
  .hero-slider { aspect-ratio: 16 / 9; }
  .hero-slider .swiper-button-next, .hero-slider .swiper-button-prev { display: none; }
}

/* ── Tracking Link (송장 외부 조회) ──────────────────────── */
.tracking-link {
  color: var(--color-primary); text-decoration: underline;
  text-underline-offset: 2px;
}
.tracking-link:hover { color: var(--color-primary-dark); }

/* ── Order History Table (mypage / admin 공용) ───────────── */
.order-history-table {
  width: 100%; border-collapse: collapse;
}
.order-history-table th {
  background: #fafafa; padding: 10px 12px;
  font-size: 12px; font-weight: 600; color: #666;
  text-align: left; border-bottom: 2px solid var(--color-border);
}
.order-history-table td {
  padding: 12px; border-bottom: 1px solid var(--color-border-light);
  font-size: 13px;
}
.order-history-table tbody tr:hover { background: #fafafa; }
.order-history-table .order-no { font-family: monospace; font-weight: 600; }

/* ── Breadcrumb 새 색상 ──────────────────────────────────── */
.breadcrumb {
  font-size: 12px; color: var(--color-text-muted);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--color-text-secondary); }
.breadcrumb a:hover { color: var(--color-primary); }

