/**
 * UI Components Stylesheet
 * 헤더, 푸터, 로딩 스피너, 에러 메시지, 토스트 등 공통 UI 컴포넌트 스타일
 */

/* ================================
   Header / Nav  — BetheGoods 스타일
   ================================ */

/* body에 헤더 높이만큼 여백 추가 (fixed 헤더 대응) */
body {
  padding-top: 70px;
}

/* 메인 페이지는 전체 화면 슬라이더라서 padding 불필요 */
body.main-page {
  padding-top: 0;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: background 0.5s ease-in-out,
              backdrop-filter 0.5s ease-in-out,
              border-bottom-color 0.5s ease-in-out,
              box-shadow 0.5s ease-in-out,
              opacity 0.5s ease-in-out;
  opacity: 1;
}

/* 메인 페이지 전용: 투명 헤더 */
.nav.hero-transparent {
  background: rgba(255, 255, 255, 0) !important;
  backdrop-filter: blur(0px) !important;
  -webkit-backdrop-filter: blur(0px) !important;
  border-bottom-color: rgba(0, 0, 0, 0) !important;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0) !important;
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 50px 12px 0px;
}

.brand {
  display: flex;
  align-items: center;
  opacity: 0;
  animation: fadeIn 0.6s ease-out 0.2s forwards;
}

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

.brand .logo {
  display: block;
  width: 50px;
  height: auto;
}

.menu {
  display: flex;
  gap: 34px;
  margin-left: 20px;
  flex: 1;
  align-items: center;
  opacity: 0;
  animation: fadeIn 0.6s ease-out 0.4s forwards;
}

.menu>a,
.menu>.dropdown {
  position: relative;
  text-decoration: none;
  color: #000000;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .9;
  padding: 18px 0;
}

.menu>a:hover,
.menu>.dropdown:hover {
  opacity: 1;
}

/* 모든 메뉴에 호버 시 밑줄 적용 */
.menu>a::after,
.menu>.dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  margin: 0 auto;
  width: 0;
  height: 2px;
  background: #111;
  transition: width 0.3s ease;
  opacity: 1;
}

.menu>a:hover::after,
.menu>.dropdown:hover::after {
  width: 38px;
}

/* 활성 상태 */
.menu>a.active::after {
  width: 38px;
}

/* 현재 페이지 표시 - 검정색 밑줄 사용 */
.menu>a.current-page {
  color: #000 !important;
  opacity: 1 !important;
}

.menu>a.current-page::after {
  width: 38px !important;
  background: #000 !important;
  transition: width 0.3s ease !important;
  opacity: 1 !important;
  transform: scaleX(1) !important;
}

/* 드롭다운 내부 링크(스토어) 현재 페이지 표시 지원 */
.menu>.dropdown>a {
  position: relative;
}

.menu>.dropdown>a.current-page {
  color: #000 !important;
  opacity: 1 !important;
}

.menu>.dropdown>a.current-page::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  margin: 0 auto;
  width: 38px !important;
  height: 2px;
  background: #000 !important;
  opacity: 1 !important;
  transform: scaleX(1) !important;
  transition: width 0.3s ease !important;
}

/* 서브 메뉴 (Guide, Portfolio, About us) 호버 밑줄 효과 */
.menu-sub a {
  position: relative;
  text-decoration: none;
  color: #000000;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .9;
  padding: 18px 0;
  transition: opacity 0.3s ease;
}

.menu-sub a:hover {
  opacity: 1;
}

.menu-sub a::after {
  content: "" !important;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  margin: 0 auto;
  width: 0;
  height: 2px;
  background: #111;
  transition: width 0.3s ease;
  opacity: 1;
}

.menu-sub a:hover::after {
  width: 38px !important;
}

/* 서브 메뉴 현재 페이지 표시 */
.menu-sub a.current-page {
  color: #000 !important;
  opacity: 1 !important;
}

.menu-sub a.current-page::after {
  width: 38px !important;
  background: #000 !important;
  transition: width 0.3s ease !important;
  opacity: 1 !important;
  transform: scaleX(1) !important;
}

/* 드롭다운 메뉴 스타일 */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown>a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateY(-10px);
  background: #ffffff;
  min-width: 160px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 0;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  border: 1px solid #e5e7eb;
  margin-top: 0;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-content a {
  display: block;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  transition: background 0.2s ease;
  position: relative;
  border-bottom: 1px solid #f3f4f6;
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background: #000000;
  color: #ffffff;
}

/* 화살표 (호버 시에만 표시) */
.dropdown-content a::after {
  content: "→";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.dropdown-content a:hover::after {
  opacity: 1;
}

/* 드롭다운 화살표 제거 */
.dropdown>a::after {
  display: none;
}

/* 메인 메뉴 우측에 붙는 서브(보조) 메뉴 */
.menu-sub {
  display: flex;
  gap: 34px;
  align-items: center;
  margin-left: 12px;
}

.menu-sub a {
  position: relative;
  text-decoration: none;
  color: #000000;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: none;
  opacity: .95;
  padding: 18px 0;
}

.menu-sub a:hover {
  opacity: 1;
}

.quick-links {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.quick-links a {
  text-decoration: none;
  color: #000000;
  font-size: 14px;
  font-weight: 500;
}

.quick-links .sep {
  width: 1px;
  height: 18px;
  background: rgba(15, 23, 42, .15);
  margin: 0 6px 0 10px;
}

/* ================================
   Modal (Login)
   ================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000
}

.modal-backdrop.show {
  display: flex
}

.modal {
  position: relative;
  width: min(520px, 92vw);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25)
}

.modal .close-btn {
  position: absolute;
  right: 16px;
  top: 14px;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  cursor: pointer
}

.modal .close-btn:before,
.modal .close-btn:after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 13px;
  height: 2px;
  background: #000
}

.modal .close-btn:before {
  transform: rotate(45deg)
}

.modal .close-btn:after {
  transform: rotate(-45deg)
}

.login-wrap {
  padding: 44px 32px 28px
}

.login-title {
  margin: 0 0 28px;
  text-align: center;
  font-weight: 800;
  font-size: 36px;
  letter-spacing: -.02em
}

.login-field {
  width: 100%;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 15px;
  outline: none
}

.login-field::placeholder {
  color: #b6bdc7
}

.find-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  color: #9aa3af;
  font-size: 14px;
  margin: 12px 0 18px
}

.find-row .sep {
  opacity: .7
}

.find-row a {
  color: #000;
  text-decoration: none
}

.login-actions {
  padding: 0 32px 36px
}

.login-btn {
  width: 100%;
  padding: 16px;
  background: #111;
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  font-size: 16px
}

.signup-btn {
  width: 100%;
  padding: 14px;
  margin-top: 12px;
  background: #fff;
  color: #111;
  border: 1px solid #d1d5db;
  border-radius: 2px;
  font-weight: 600;
  cursor: pointer
}

.sns-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  padding: 8px 0 26px
}

.sns {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center
}

.sns.kakao {
  background: transparent
}

.sns.google {
  background: transparent
}

.sns img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: block
}

/* ================================
   Footer
   ================================ */
footer {
  padding: 36px 24px;
  background: var(--footer-bg, #343434);
  color: var(--footer-text, #FFFFFF);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.footer-left {
  max-width: 920px;
}

.footer-logo {
  display: block;
  width: 90px;
  height: auto;
  margin-bottom: 14px;
}

.footer-info {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.8;
  opacity: 0.8;
}

.footer-copy {
  margin: 0;
  font-size: 12px;
  opacity: 0.7;
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-end;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
  font-size: 13px;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.footer-social img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

/* 스크린리더 전용 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ================================
   Loading Spinner
   ================================ */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  min-height: 300px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-top-color: var(--primary, #E6B31E);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-message {
  margin-top: 20px;
  color: var(--muted, #5B5B5B);
  font-size: 14px;
  font-weight: 500;
}

/* ================================
   Error Message
   ================================ */
.error-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  min-height: 300px;
  text-align: center;
}

.error-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.error-text {
  color: var(--ink, #343434);
  font-size: 16px;
  margin-bottom: 24px;
  max-width: 400px;
}

.retry-btn {
  padding: 12px 32px;
  background: var(--primary, #E6B31E);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.retry-btn:hover {
  background: var(--primary-700, #C49A1A);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 179, 30, 0.3);
}

/* ================================
   Empty State
   ================================ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  min-height: 300px;
  text-align: center;
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.6;
}

.empty-text {
  color: var(--muted, #5B5B5B);
  font-size: 16px;
  max-width: 400px;
}

/* ================================
   Toast Notifications
   ================================ */
.toast {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  padding: 16px 24px;
  background: var(--ink, #343434);
  color: white;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  z-index: 10000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 90%;
  text-align: center;
}

.toast.show {
  bottom: 32px;
}

.toast-success {
  background: #10b981;
}

.toast-error {
  background: #ef4444;
}

.toast-info {
  background: var(--ink, #343434);
}

/* ================================
   Confirm Dialog
   ================================ */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.2s ease;
}

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

.confirm-dialog {
  background: white;
  border-radius: 16px;
  padding: 32px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.confirm-message {
  color: var(--ink, #343434);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 24px;
  text-align: center;
}

.confirm-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.confirm-buttons button {
  flex: 1;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-cancel {
  background: #f3f4f6;
  color: var(--ink, #343434);
}

.btn-cancel:hover {
  background: #e5e7eb;
}

.btn-confirm {
  background: var(--primary, #E6B31E);
  color: white;
}

.btn-confirm:hover {
  background: var(--primary-700, #C49A1A);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 179, 30, 0.3);
}

/* ================================
   Product/Artist Cards (공통 스타일)
   ================================ */
.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 10;
}

.badge.new {
  background: #ef4444;
  color: white;
}

.badge.hit {
  background: var(--primary, #E6B31E);
  color: white;
}

/* ================================
   Skeleton Loading (추가 최적화용)
   ================================ */
.skeleton {
  background: linear-gradient(
    90deg,
    #f0f0f0 25%,
    #e0e0e0 50%,
    #f0f0f0 75%
  );
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text {
  height: 16px;
  margin-bottom: 8px;
}

.skeleton-title {
  height: 24px;
  margin-bottom: 12px;
  width: 60%;
}

.skeleton-image {
  width: 100%;
  aspect-ratio: 1;
}

/* ================================
   MOBILE RESPONSIVE CSS
   브레이크포인트:
   - Wide: 1441px+
   - Desktop: 1025px ~ 1440px
   - Laptop: 769px ~ 1024px
   - Tablet: 481px ~ 768px
   - Mobile: ~480px
   ================================ */

/* Laptop (769px ~ 1024px) */
@media (max-width: 1024px) {
  body {
    padding-top: 60px;
  }

  .nav-inner {
    padding: 10px 24px;
    gap: 16px;
  }

  .brand .logo {
    width: 44px;
  }

  .menu {
    gap: 20px;
    margin-left: 12px;
  }

  .menu > a,
  .menu > .dropdown {
    font-size: 12px;
    letter-spacing: 0.08em;
    padding: 16px 0;
  }

  .menu-sub {
    gap: 20px;
    margin-left: 8px;
  }

  .menu-sub a {
    font-size: 12px;
    padding: 16px 0;
  }

  .quick-links {
    gap: 10px;
  }

  .quick-links a {
    font-size: 13px;
  }

  /* Footer */
  footer {
    padding: 32px 20px;
  }

  .footer-inner {
    gap: 20px;
  }

  .footer-logo {
    width: 80px;
  }

  .footer-info {
    font-size: 12px;
  }
}

/* Tablet (481px ~ 768px) */
@media (max-width: 768px) {
  body {
    padding-top: 56px;
  }

  .nav-inner {
    padding: 10px 16px;
    justify-content: space-between;
  }

  .brand .logo {
    width: 40px;
  }

  /* 데스크톱 메뉴 숨기기 */
  .menu {
    display: none !important;
  }

  .menu-sub {
    display: none !important;
  }

  /* 퀵 링크 간소화 */
  .quick-links {
    gap: 8px;
  }

  .quick-links #loginOpen,
  .quick-links #registerLink,
  .quick-links #mypageLink,
  .quick-links #logoutLink,
  .quick-links .sep {
    display: none !important;
  }

  /* Footer 반응형 */
  footer {
    padding: 28px 16px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .footer-left {
    width: 100%;
    max-width: none;
  }

  .footer-logo {
    width: 70px;
    margin-bottom: 12px;
  }

  .footer-info {
    font-size: 12px;
    line-height: 1.7;
  }

  .footer-copy {
    font-size: 11px;
    margin-top: 8px;
  }

  .footer-right {
    width: 100%;
    align-items: flex-start;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .footer-links {
    gap: 16px;
  }

  .footer-links a {
    font-size: 12px;
  }

  .footer-social a {
    width: 32px;
    height: 32px;
  }

  .footer-social img {
    width: 18px;
    height: 18px;
  }

  /* Modal 반응형 */
  .modal {
    width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
  }

  .login-wrap {
    padding: 32px 24px 20px;
  }

  .login-title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .login-field {
    padding: 14px 0;
    font-size: 14px;
  }

  .login-actions {
    padding: 0 24px 28px;
  }

  .login-btn,
  .signup-btn {
    padding: 14px;
    font-size: 15px;
  }

  /* UI Components */
  .loading-spinner,
  .error-message,
  .empty-state {
    min-height: 200px;
    padding: 60px 20px;
  }

  .spinner {
    width: 40px;
    height: 40px;
  }

  .loading-message {
    font-size: 13px;
    margin-top: 16px;
  }

  .error-icon,
  .empty-icon {
    font-size: 40px;
    margin-bottom: 12px;
  }

  .error-text,
  .empty-text {
    font-size: 14px;
  }

  .retry-btn {
    padding: 10px 24px;
    font-size: 13px;
  }

  /* Toast */
  .toast {
    padding: 14px 20px;
    font-size: 13px;
    max-width: 85%;
    left: 50%;
    transform: translateX(-50%);
  }

  .toast.show {
    bottom: 24px;
  }

  /* Confirm Dialog */
  .confirm-dialog {
    padding: 24px;
    max-width: 90%;
  }

  .confirm-message {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .confirm-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .confirm-buttons button {
    width: 100%;
    padding: 14px;
  }

  /* Skeleton */
  .skeleton-title {
    height: 20px;
  }

  .skeleton-text {
    height: 14px;
  }
}

/* Mobile (~480px) */
@media (max-width: 480px) {
  body {
    padding-top: 52px;
  }

  .nav-inner {
    padding: 8px 12px;
  }

  .brand .logo {
    width: 36px;
  }

  /* Footer 모바일 */
  footer {
    padding: 24px 12px;
  }

  .footer-inner {
    gap: 20px;
  }

  .footer-logo {
    width: 60px;
    margin-bottom: 10px;
  }

  .footer-info {
    font-size: 11px;
    line-height: 1.6;
    word-break: keep-all;
  }

  .footer-copy {
    font-size: 10px;
  }

  .footer-links {
    gap: 12px;
    flex-wrap: wrap;
  }

  .footer-links a {
    font-size: 11px;
  }

  .footer-social a {
    width: 30px;
    height: 30px;
  }

  .footer-social img {
    width: 16px;
    height: 16px;
  }

  /* Modal 풀스크린 */
  .modal {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
  }

  .login-wrap {
    padding: 24px 16px 16px;
  }

  .login-title {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .login-field {
    padding: 12px 0;
    font-size: 14px;
  }

  .find-row {
    font-size: 13px;
    gap: 10px;
    margin: 10px 0 14px;
  }

  .login-actions {
    padding: 0 16px 24px;
  }

  .login-btn,
  .signup-btn {
    padding: 12px;
    font-size: 14px;
  }

  .sns-row {
    gap: 16px;
    padding: 6px 0 20px;
  }

  .sns {
    width: 44px;
    height: 44px;
  }

  .sns img {
    width: 44px;
    height: 44px;
  }

  /* UI Components */
  .loading-spinner,
  .error-message,
  .empty-state {
    min-height: 150px;
    padding: 40px 16px;
  }

  .spinner {
    width: 36px;
    height: 36px;
    border-width: 3px;
  }

  .loading-message {
    font-size: 12px;
    margin-top: 12px;
  }

  .error-icon,
  .empty-icon {
    font-size: 32px;
    margin-bottom: 10px;
  }

  .error-text,
  .empty-text {
    font-size: 13px;
  }

  .retry-btn {
    padding: 10px 20px;
    font-size: 12px;
    border-radius: 6px;
  }

  /* Toast */
  .toast {
    padding: 12px 16px;
    font-size: 12px;
    max-width: 90%;
    border-radius: 6px;
  }

  .toast.show {
    bottom: 16px;
  }

  /* Confirm Dialog */
  .confirm-overlay {
    padding: 16px;
  }

  .confirm-dialog {
    padding: 20px;
    border-radius: 12px;
  }

  .confirm-message {
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
  }

  .confirm-buttons {
    gap: 8px;
  }

  .confirm-buttons button {
    padding: 12px;
    font-size: 13px;
    border-radius: 6px;
  }

  /* Card Badge */
  .card-badge {
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    font-size: 10px;
    border-radius: 4px;
  }

  /* Skeleton */
  .skeleton-title {
    height: 18px;
    margin-bottom: 10px;
  }

  .skeleton-text {
    height: 12px;
    margin-bottom: 6px;
  }
}

/* ================================
   MOBILE MENU CSS (햄버거 메뉴 & 슬라이드 메뉴)
   모든 페이지 공통 적용
   ================================ */
/* 햄버거 메뉴 버튼 (기본 숨김) */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #000000;
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* 모바일 메뉴 오버레이 */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* 모바일 메뉴 슬라이드 */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 320px;
  height: 100vh;
  background: var(--bg);
  z-index: 1000;
  transition: right 0.3s ease;
  overflow-y: auto;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
}

.mobile-menu.show {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-menu-close {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 24px;
  color: var(--ink);
}

.mobile-menu-nav {
  padding: 20px 0;
}

.mobile-menu-nav a {
  display: block;
  padding: 16px 24px;
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background 0.2s ease;
}

.mobile-menu-nav a:hover {
  background: rgba(0, 0, 0, 0.03);
}

.mobile-menu-nav .menu-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  margin: 12px 24px;
}

.mobile-menu-nav .sub-title {
  padding: 12px 24px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mobile-menu-auth {
  padding: 20px 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  gap: 12px;
}

.mobile-menu-auth a {
  flex: 1;
  padding: 12px 16px;
  text-align: center;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.mobile-menu-auth .login-btn-mobile {
  background: var(--ink);
  color: white;
}

.mobile-menu-auth .register-btn-mobile {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

/* ================================
   모바일 메뉴 반응형 활성화
   ================================ */
@media (max-width: 768px) {
  /* 햄버거 버튼 표시 */
  .hamburger-btn {
    display: flex;
  }

  .mobile-menu-overlay {
    display: block;
  }

  .quick-links #cartIcon img {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 480px) {
  .hamburger-btn {
    width: 40px;
    height: 40px;
  }

  .hamburger-btn span {
    width: 20px;
  }

  .quick-links #cartIcon img {
    width: 20px;
    height: 20px;
  }

  .mobile-menu {
    width: 100%;
    max-width: none;
  }

  .mobile-menu-nav a {
    padding: 14px 20px;
    font-size: 15px;
  }
}
