/* =========================
   0) Design tokens — Daylight Theme
========================= */
:root {
  --primary-color: #B8902C;
  --primary-dark: #8C6A1A;
  --primary-deep: #1A1208;
  --primary-gradient: linear-gradient(135deg, #C9A96E 0%, #B8902C 100%);
  --secondary-gradient: linear-gradient(135deg, #F5EDD8 0%, #E8D4A0 100%);
  --tertiary-gradient: linear-gradient(135deg, #FAFAF8 0%, #C9A96E 100%);
  --bg-gray: #FAFAF8;
  --bg-cream: #F5F0E8;
  --text-primary: #1A1612;
  --text-secondary: #3A3028;
  --accent-gold: #C9A96E;
  --accent-gold-bright: #B8902C;
  --footer-bg: #1A1208;
  --footer-border: #2A1E0A;
  --border-radius: 12px;
  --box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --box-shadow-hover: 0 20px 40px rgba(184, 144, 44, 0.18);
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}



/* 상단 띠배너 링크 스타일 초기화 */
.notice-banner a {
  color: inherit; /* 기존 띠배너의 글자색을 그대로 유지 */
  text-decoration: none; /* 밑줄 제거 */
}
.notice-banner a:hover {
  text-decoration: none; /* 마우스를 올려도 밑줄이 생기지 않도록 설정 */
}


/* =========================
   1) Reset / Base
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7;
  color: var(--text-primary);
  font-weight: 400;
  font-size: 16px;
  font-feature-settings: 'liga', 'calt';
}

h1,
h2,
.section-title,
.product-name,
.product-price {
  font-family: 'Noto Serif KR', serif;
  font-weight: 500;
  letter-spacing: -0.015em;
}

/* =========================
   2) Notice banner
========================= */
.notice-banner {
  background: linear-gradient(135deg, #2D6A4F 0%, #1B3A2A 100%);
  color: #F5F1EC;
  text-align: center;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(27, 58, 42, 0.4);
  position: relative;
  overflow: hidden;
}

.notice-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: slide 3s infinite;
}

@keyframes slide {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

.notice-banner span {
  position: relative;
  z-index: 1;
}

/* =========================
   3) Header / Nav
========================= */
header {
  background: #FFFFFF;
  border-bottom: 1px solid rgba(184, 144, 44, 0.15);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  width: 100%;
  margin: 0;
}

.nav-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 0px solid rgba(184, 144, 44, 0.10);
  background: #FFFFFF;
  max-width: 1600px;
  margin: 0 auto;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.6rem;
  font-weight: bold;
  color: #1A1612;
  cursor: pointer;
  flex-shrink: 0;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.logo img {
  height: 36px;
  width: auto;
}

.nav-tabs {
  display: flex;
  list-style: none;
  gap: 5rem;
  flex: 1;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.nav-tabs li {
  flex: none !important;
  max-width: none !important;
  display: flex;
  justify-content: center;
}

.nav-tabs a {
  display: block;
  text-decoration: none;
  color: #3A3028;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  padding: 0.75rem 1.25rem;
  position: relative;
  font-size: 1.2rem;
  text-align: center;
  background: transparent;
  border-radius: 8px;
  width: auto;
  white-space: nowrap;
}

.nav-tabs a:hover {
  color: var(--accent-gold);
  background: rgba(184, 144, 44, 0.07);
}

.nav-tabs a.active {
  color: var(--accent-gold);
  background: transparent;
  font-weight: 900;
  position: relative;
}

.nav-tabs a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--accent-gold);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.user-name {
  font-weight: 600;
  color: var(--primary-color);
}

/* Sub nav */
.nav-main {
  width: 100%;
  margin: 0;
  padding: 1.5rem 2rem;
  display: none !important;
  position: relative;
  background: var(--bg-cream);
  border-bottom: 1px solid rgba(45, 106, 79, 0.15);
  z-index: 99;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(27, 58, 42, 0.10);
  transition: var(--transition);
}

.nav-main.show {
  display: block !important;
}

.nav-main._shop-active.show,
.nav-main._auction-active.show,
.nav-main._rta-active.show,
.nav-main._auction_offline-active.show,
.nav-main._buy-active.show,
.nav-main._grading-active.show,
.nav-main._customer-active.show {
  display: block !important;
}

/* ── 섹션별 서브메뉴 개성 색상 (Daylight) ── */

/* 쇼핑몰 — 웜 앰버 크림 (따뜻한 황금빛) */
.nav-main.show._shop-active {
  background: linear-gradient(135deg, #FFFBF0 0%, #F8EDD0 100%);
  border-top: 2px solid rgba(201, 169, 110, 0.25);
  box-shadow: 0 6px 24px rgba(184, 144, 44, 0.10), inset 0 1px 0 #fff;
  position: relative;
  overflow: hidden;
}

.nav-main.show._shop-active::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(201, 169, 110, 0.08) 50%, transparent 70%);
  animation: shimmer 5s infinite;
}

/* 경매 — 세이지 그린 (권위·전통) */
.nav-main.show._auction-active {
  background: linear-gradient(135deg, #F0F8F3 0%, #D8EDE3 100%);
  border-top: 2px solid rgba(45, 106, 79, 0.18);
  box-shadow: 0 6px 24px rgba(45, 106, 79, 0.08), inset 0 1px 0 #fff;
  position: relative;
  overflow: hidden;
}

.nav-main.show._auction-active::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(45, 106, 79, 0.06) 50%, transparent 70%);
  animation: shimmer 5s infinite;
}

/* 매입 — 소프트 틸 (신뢰·안정) */
.nav-main.show._buy-active {
  background: linear-gradient(135deg, #EFF8FB 0%, #D0E8F2 100%);
  border-top: 2px solid rgba(13, 100, 140, 0.15);
  box-shadow: 0 6px 24px rgba(13, 100, 140, 0.08), inset 0 1px 0 #fff;
  position: relative;
  overflow: hidden;
}

.nav-main.show._buy-active::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(13, 100, 140, 0.06) 50%, transparent 70%);
  animation: shimmer 5s infinite;
}

/* 실시간경매 — 로얄 레드 크림 (긴박·프리미엄) */
.nav-main.show._rta-active {
  background: linear-gradient(135deg, #FFF5F5 0%, #FFE8E8 100%);
  border-top: 2px solid rgba(239, 68, 68, 0.18);
  box-shadow: 0 6px 24px rgba(239, 68, 68, 0.08), inset 0 1px 0 #fff;
  position: relative;
  overflow: hidden;
}

.nav-main.show._rta-active::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(239, 68, 68, 0.06) 50%, transparent 70%);
  animation: shimmer 5s infinite;
}

/* 오프라인경매 — 어텀 브라운 (전통·안정) */
.nav-main.show._auction_offline-active {
  background: linear-gradient(135deg, #F9F1E8 0%, #EFE0D0 100%);
  border-top: 2px solid rgba(139, 94, 60, 0.18);
  box-shadow: 0 6px 24px rgba(139, 94, 60, 0.08), inset 0 1px 0 #fff;
  position: relative;
  overflow: hidden;
}

.nav-main.show._auction_offline-active::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(139, 94, 60, 0.06) 50%, transparent 70%);
  animation: shimmer 5s infinite;
}

/* 감정 — 소프트 라벤더 (프리미엄·권위) */
.nav-main.show._grading-active {
  background: linear-gradient(135deg, #F8F0FC 0%, #ECDDF5 100%);
  border-top: 2px solid rgba(130, 80, 160, 0.15);
  box-shadow: 0 6px 24px rgba(130, 80, 160, 0.08), inset 0 1px 0 #fff;
  position: relative;
  overflow: hidden;
}

.nav-main.show._grading-active::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(130, 80, 160, 0.06) 50%, transparent 70%);
  animation: shimmer 5s infinite;
}

/* 고객센터 — 슬레이트 블루 크림 (차분·안내) */
.nav-main.show._customer-active {
  background: linear-gradient(135deg, #F0F4FB 0%, #D8E5F5 100%);
  border-top: 2px solid rgba(46, 80, 140, 0.14);
  box-shadow: 0 6px 24px rgba(46, 80, 140, 0.07), inset 0 1px 0 #fff;
  position: relative;
  overflow: hidden;
}

.nav-main.show._customer-active::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(46, 80, 140, 0.05) 50%, transparent 70%);
  animation: shimmer 5s infinite;
}

@keyframes shimmer {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.nav-main.show {
  padding: 20px 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-main.show .sub-menu {
  position: relative;
  z-index: 1;
}

.nav-main.show .sub-menu a {
  color: #3A3028;
  font-weight: 500;
  padding: 10px 10px;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 옥션일정, 쇼핑분류 등 핵심 메뉴 강조 */
#subMenu>li:first-child>a {
  color: var(--accent-gold);
  font-weight: 700;
  background: rgba(201, 169, 110, 0.1);
  border: 1px solid rgba(201, 169, 110, 0.2);
}

.nav-main.show .sub-menu a:hover {
  color: var(--accent-gold);
  background-color: rgba(184, 144, 44, 0.10);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}



.nav-left {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

.sub-menu {
  display: flex;
  gap: 0.5rem;
  list-style: none;
}

.sub-menu a {
  text-decoration: none;
  color: #3A3028;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: color 0.3s;
}

.sub-menu a:hover {
  color: var(--accent-gold);
}

.sub-menu a.active {
  background: var(--accent-gold);
  color: #FFFFFF;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 4px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.icon-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  background: rgba(184, 144, 44, 0.08);
  color: var(--accent-gold);
  transform: scale(1.1);
}

.auth-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 0.5rem;
  border-left: 1px solid rgba(184, 144, 44, 0.15);
  border-right: 1px solid rgba(184, 144, 44, 0.15);
}

.auth-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid rgba(184, 144, 44, 0.3);
  background: #fff;
  color: var(--text-secondary);
  white-space: nowrap;
}

.auth-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(184, 144, 44, 0.05);
  transform: translateY(-1px);
}

.signup-btn, .mypage-btn {
  background: var(--accent-gold);
  color: #fff;
  border-color: var(--accent-gold);
}

.signup-btn:hover, .mypage-btn:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  box-shadow: 0 4px 12px rgba(184, 144, 44, 0.25);
}

.user-name {
  font-weight: 700;
  margin-right: 2px;
}

.mypage-btn .user-name {
  color: #ffffff;
}

.cart-wrapper {
  position: relative;
  cursor: pointer;
}

.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #EF4444;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
  border: 2px solid #fff;
}

/* =========================
   4) Hero / Slider
========================= */
.hero {
  position: relative;
  padding: 0;
  background: var(--bg-gray);
  overflow: hidden;
}

.slides {
  display: flex;
  transition: transform 0.5s;
  width: 100%;
  margin: 0 auto;
}

.slide {
  min-width: 100%;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
  padding: 0;
  position: relative;
  background: var(--bg-cream);
}

.slide-image {
  width: 20%;
  max-width: 20%;
  height: 500px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  margin-bottom: 0;
  padding: 60px 0 60px 8%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-content {
  position: relative;
  width: 80%;
  top: auto;
  left: auto;
  transform: none;
  color: var(--text-primary);
  z-index: 10;
  text-shadow: none;
  padding: 60px 20px 60px 0;
  padding-right: max(550px, calc((100vw - 1600px) / 2 + 550px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.slide h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-deep);
  line-height: 1.3;
}

.slide p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--primary-color);
  color: #F5F1EC;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  box-shadow: 0 4px 15px rgba(45, 106, 79, 0.30);
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 106, 79, 0.45);
  background: #1B3A2A;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(245, 241, 236, 0.92);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.slider-arrow:hover {
  background: var(--primary-color);
  color: #F5F1EC;
}

.slider-arrow.prev {
  left: 20px;
}

.slider-arrow.next {
  right: 20px;
}

.slider-nav {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(245, 241, 236, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background: var(--accent-gold);
  width: 30px;
  border-radius: 6px;
}

.slider-dot:hover {
  background: rgba(212, 184, 150, 0.7);
}

/* =========================
   5) Responsive
========================= */
@media (max-width: 768px) {
  .notice-banner {
    height: 50px;
    font-size: 0.85rem;
  }

  .nav-top-bar {
    padding: 1rem;
  }

  .nav-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-wrap: nowrap;
  }

  .nav-tabs::-webkit-scrollbar {
    display: none;
  }

  .nav-tabs li {
    flex: none;
    flex-shrink: 0;
    max-width: none;
  }

  .nav-tabs a {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .header-actions {
    display: none;
  }

  .nav-main {
    padding: 1rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  .logo img {
    height: 28px;
  }

  .nav-left {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 1rem;
    margin: 0;
    max-width: none;
  }

  .nav-left::-webkit-scrollbar {
    display: none;
  }

  .sub-menu {
    flex-wrap: nowrap;
    gap: 2rem;
  }

  .sub-menu li {
    flex-shrink: 0;
  }

  .slide-image {
    height: 300px;
    width: 100%;
    max-width: 100%;
  }

  .hero {
    padding: 0;
  }

  .slide {
    padding: 0;
    flex-direction: column;
  }

  .slide-content {
    width: 100%;
    padding: 40px 20px;
    text-align: center;
    align-items: center;
  }

  .slide h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }

  .slide p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
}

/* =========================
   5) Product detail page
========================= */
.detail-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.detail-image {
  width: 100%;
  height: 500px;
  background: #f5f5f5;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.detail-image-inner {
  position: relative;
  width: 90%;
  height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.detail-info h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.detail-price {
  font-size: 2rem;
  color: var(--primary-color);
  font-weight: bold;
  margin-bottom: 2rem;
  font-family: 'Noto Serif KR', serif;
}

.detail-desc {
  color: #666;
  line-height: 1.8;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

.option-group {
  margin-bottom: 1.5rem;
}

.option-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.option-select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.quantity-control {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.qty-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
  border-radius: 5px;
  transition: var(--transition);
}

.qty-btn:hover {
  background: #f5f5f5;
}

.qty-input {
  width: 60px;
  text-align: center;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.detail-actions {
  display: flex;
  gap: 1rem;
}

.detail-btn {
  flex: 1;
  padding: 1rem;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-cart {
  background: white;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-cart:hover {
  background: var(--primary-color);
  color: white;
}

.btn-buy {
  background: var(--primary-color);
  color: #F5F1EC;
}

.btn-buy:hover {
  background: var(--primary-dark);
}

.tab-buttons {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
  border-top: 2px solid #eee;
  padding-top: 2rem;
}

.tab-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.5rem 0;
  color: #999;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.tab-content {
  display: none;
  line-height: 1.8;
}

.tab-content.active {
  display: block;
}

#infoTab {
  text-align: center;
  line-height: 1.8;
}

#infoTab img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto 2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}

#infoTab .tab-content-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#infoTab p {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 1.5rem;
}

/* =========================
   6) Auth forms
========================= */
.form-container {
  max-width: 500px;
  margin: 4rem auto;
  padding: 3rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.form-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
  font-family: 'Noto Serif KR', serif;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12);
}

.form-button {
  width: 100%;
  padding: 1rem;
  background: var(--primary-color);
  color: #F5F1EC;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.form-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.form-footer {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--text-secondary);
}

.form-footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.form-footer a:hover {
  text-decoration: underline;
}

.error-message {
  color: #ef4444;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.success-message {
  color: #10b981;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* =========================
   7) Footer
========================= */
footer {
  background: var(--footer-bg);
  color: #F5F1EC;
  padding: 3rem 2rem 1rem;
  border-top: 3px solid var(--primary-color);
}

.footer__wrap {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
}

.notice_area h1 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.notice_area h1 span {
  font-size: 1.1rem;
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 500;
  letter-spacing: 0;
}

.notice_area h1 img {
  height: 36px;
  width: auto;
}

.notice_area__list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--footer-border);
}

.notice_area__list--item a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.notice_area__list--item a:hover {
  color: #fff;
}

.notice_area__list--item a.footHr {
  font-weight: 600;
}

.notice_area p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.8;
  color: #9ca3af;
}

.notice_area p span {
  display: inline-block;
  margin-right: 1.5rem;
}

.notice_area p strong {
  color: #d1d5db;
  margin-right: 0.5rem;
}

.notice_area--txt_wrap {
  padding: 1rem;
  background: rgba(55, 65, 81, 0.5);
  border-radius: 5px;
  margin: 1.5rem 0;
}

.notice_area--txt_wrap span {
  display: block;
  font-size: 0.85rem;
  line-height: 1.6;
}

.notice_area--copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--footer-border);
  color: #6b7280;
  font-size: 0.85rem;
  margin-top: 2rem;
}

.cell_area {
  background: var(--footer-border);
  padding: 2rem;
  border-radius: 8px;
  min-width: 280px;
}

.cell_area--tit {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.cell_area--cell {
  font-size: 2rem;
  font-weight: bold;
  color: var(--accent-gold);
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.cell_area--cell i {
  font-style: normal;
  color: #9ca3af;
}

.cell_area p {
  font-size: 0.9rem;
  color: #d1d5db;
  margin-bottom: 0.5rem;
}

.cell_area p span {
  display: block;
  margin: 0.3rem 0;
}

.cell_area p strong {
  color: #fff;
  margin-right: 0.5rem;
}

.cell_area--escrow {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #4b5563;
}

.cell_area--escrow img {
  text-align: center;
  height: 80px;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.cell_area--escrow img:hover {
  opacity: 1;
}

.cell_area.mobile {
  display: none;
}

.cell_area.pc {
  display: block;
}

/* =========================
   8) Responsive (기존)
========================= */
@media (max-width: 768px) {
  .notice-banner {
    height: 50px;
    font-size: 0.85rem;
  }

  .nav-top-bar {
    grid-template-columns: auto 1fr;
    padding: 1rem;
  }

  .nav-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-wrap: nowrap;
    width: 100%;
  }

  .nav-tabs::-webkit-scrollbar {
    display: none;
  }

  .nav-tabs li {
    flex: none;
    flex-shrink: 0;
    max-width: none;
  }

  .nav-tabs a {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .header-actions {
    display: none;
  }

  .nav-main {
    padding: 1rem;
  }

  .logo {
    font-size: 1.2rem;
    margin-right: 1rem;
  }

  .logo img {
    height: 28px;
  }

  .nav-left {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 1rem;
    margin: 0;
    max-width: none;
  }

  .nav-left::-webkit-scrollbar {
    display: none;
  }

  .sub-menu {
    flex-wrap: nowrap;
    gap: 2rem;
  }

  .sub-menu li {
    flex-shrink: 0;
  }

  .slide-image {
    height: 250px;
  }

  .slide h2 {
    font-size: 1.5rem;
  }

  .slide p {
    font-size: 1rem;
  }

  .detail-content {
    grid-template-columns: 1fr;
  }

  .footer__wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .notice_area__list {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .notice_area p span {
    display: block;
    margin: 0.5rem 0;
  }

  .cell_area.mobile {
    display: block;
    margin: 2rem 0;
  }

  .cell_area.pc {
    display: none;
  }

  .form-container {
    padding: 2rem 1.5rem;
  }

  /* (주의) 아래 product-grid는 Products 블록에서 다시 덮어씌워집니다 */
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }
}

/* =========================================================
   9) Products (최종 우선 적용: "두 번째 CSS" 버전)
   - 같은 선택자면 아래 규칙이 승리(소스 순서). 
========================================================= */
.products {
  max-width: 1600px;
  margin: 0 auto;
  padding: 40px 20px;
}

.breadcrumb {
  font-size: 14px;
  color: #666;
  margin-bottom: 30px;
}

.breadcrumb a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #0066cc;
}

.products-inner {
  width: 100%;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 30px;
  letter-spacing: -0.5px;
}

.filter-section {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #666;
  font-size: 15px;
  font-weight: 500;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: #333;
  color: #333;
}

.filter-btn.active {
  background: var(--primary-color);
  color: #F5F1EC;
  border-color: var(--primary-color);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
  margin-bottom: 50px;
}

.product-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto;
}

.product-image-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-name {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-desc {
  font-size: 14px;
  color: #999;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.product-price {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}

.add-to-cart {
  padding: 8px 20px;
  background: var(--primary-color);
  color: #F5F1EC;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add-to-cart:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.total-count {
  text-align: center;
  padding: 20px 0;
  font-size: 16px;
  color: #666;
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
  }

  .section-title {
    font-size: 24px;
  }

  .product-name {
    font-size: 14px;
  }

  .product-desc {
    font-size: 12px;
  }

  .product-price {
    font-size: 16px;
  }
}

.products {
  padding-top: 40px;
}

.breadcrumb {
  margin-bottom: 30px;
}

.products-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
}

.filter-section {
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-btn {
  padding: 10px 20px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  border-radius: 5px;
  font-size: 14px;
  transition: all 0.3s;
}

.filter-btn:hover {
  background: #f5f5f5;
}

.filter-btn.active {
  background: var(--primary-color);
  color: #F5F1EC;
  border-color: var(--primary-color);
}

.subcategory-section {
  margin-bottom: 20px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 5px;
  border: 1px solid #eee;
}

.subcategory-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #666;
}

.subcategory-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.subcategory-btn {
  padding: 8px 16px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  border-radius: 4px;
  font-size: 13px;
  transition: all 0.3s;
}

.subcategory-btn:hover {
  background: #f0f0f0;
}

.subcategory-btn.active {
  background: var(--primary-color);
  color: #F5F1EC;
  border-color: var(--primary-color);
}

.view-all-categories {
  padding: 10px 20px;
  border: 1px solid var(--primary-color);
  background: #fff;
  color: var(--primary-color);
  cursor: pointer;
  border-radius: 5px;
  font-size: 14px;
  transition: all 0.3s;
  margin-left: auto;
}

.view-all-categories:hover {
  background: var(--primary-color);
  color: #F5F1EC;
}

.total-count {
  margin-bottom: 25px;
  color: #666;
  font-size: 14px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.product-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
}

.product-card:hover {
  border-color: #ccc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f5f5f5;
  overflow: hidden;
}

.product-image-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-info {
  padding: 15px;
}

.product-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-desc {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-price {
  font-size: 16px;
  font-weight: 700;
  color: #333;
}

.add-to-cart {
  padding: 8px 16px;
  background: var(--primary-color);
  color: #F5F1EC;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.3s;
}

.add-to-cart:hover {
  background: var(--primary-dark);
}

.load-more-container {
  text-align: center;
  margin: 30px 0 50px;
}

.load-more-products-btn {
  padding: 12px 40px;
  background: var(--primary-color);
  color: #F5F1EC;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.3s;
}

.load-more-products-btn:hover:not(:disabled) {
  background: var(--primary-dark);
}

.load-more-products-btn:disabled {
  background: #b09090;
  cursor: not-allowed;
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* 모달 스타일 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
  display: block;
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 0;
  border: 1px solid #888;
  width: 90%;
  max-width: 900px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

#categoryModal .modal-content {
  max-width: 1200px;
  max-height: 90vh;
}

.modal-header {
  padding: 20px 25px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-color);
  font-family: 'Noto Serif KR', serif;
}

.close {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.close:hover,
.close:focus {
  color: #000;
}

.modal-body {
  padding: 25px;
  overflow-y: auto;
  flex: 1;
}

.category-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.category-table thead {
  background: #f8f9fa;
  position: sticky;
  top: 0;
  z-index: 10;
}

.category-table th {
  padding: 12px 15px;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #dee2e6;
}

.category-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
}

.category-table tbody tr:hover {
  background: #f8f9fa;
}

.category-table td {
  padding: 12px 15px;
}

.category-table td a {
  color: #1A3A25;
  text-decoration: none;
  display: block;
  transition: color 0.2s;
}

.category-table td a:hover {
  color: var(--primary-color);
}

.category-level-0 {
  font-weight: 600;
}

.category-level-1 {
  padding-left: 30px;
}

.category-level-2 {
  padding-left: 60px;
  color: #666;
}

.category-level-3 {
  padding-left: 90px;
  color: #888;
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
}

.badge-primary {
  background: rgba(45, 106, 79, 0.10);
  color: var(--primary-color);
}

.badge-secondary {
  background: rgba(212, 184, 150, 0.20);
  color: #4A6A32;
}

.badge-tertiary {
  background: rgba(27, 58, 42, 0.10);
  color: var(--primary-dark);
}

.modal-footer {
  padding: 15px 25px;
  border-top: 1px solid #e0e0e0;
  text-align: center;
}

.load-more-btn {
  padding: 12px 30px;
  background: var(--primary-color);
  color: #F5F1EC;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.3s;
}

.load-more-btn:hover {
  background: var(--primary-dark);
}

.load-more-btn:disabled {
  background: #b09090;
  cursor: not-allowed;
}

.showing-count {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }

  .filter-section {
    justify-content: flex-start;
  }

  .view-all-categories {
    margin-left: 0;
    width: 100%;
  }

  .modal-content {
    width: 95%;
    margin: 10px auto;
  }

  .category-table {
    font-size: 13px;
  }

  .category-table th,
  .category-table td {
    padding: 10px 12px;
  }
}


.products {
  padding-top: 40px;
}

.breadcrumb {
  margin-bottom: 30px;
  font-size: 14px;
  color: #666;
}

.breadcrumb a {
  color: #333;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.products-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #333;
}

.filter-section {
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-btn {
  padding: 10px 20px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  border-radius: 5px;
  font-size: 14px;
  transition: all 0.3s;
}

.filter-btn:hover {
  background: #f5f5f5;
}

.filter-btn.active {
  background: var(--primary-color);
  color: #F5F1EC;
  border-color: var(--primary-color);
}

.view-all-categories {
  padding: 10px 20px;
  border: 1px solid var(--primary-color);
  background: #fff;
  color: var(--primary-color);
  cursor: pointer;
  border-radius: 5px;
  font-size: 14px;
  transition: all 0.3s;
  margin-left: auto;
}

.view-all-categories:hover {
  background: var(--primary-color);
  color: #F5F1EC;
}

.total-count {
  margin-bottom: 25px;
  color: #666;
  font-size: 14px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
  min-height: 200px;
}

.product-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
}

.product-card:hover {
  border-color: #ccc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f5f5f5;
  overflow: hidden;
}

.product-image-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-info {
  padding: 15px;
}

.product-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-desc {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-price {
  font-size: 16px;
  font-weight: 700;
  color: #333;
}

.add-to-cart {
  padding: 8px 16px;
  background: var(--primary-color);
  color: #F5F1EC;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.3s;
}

.add-to-cart:hover {
  background: var(--primary-dark);
}

.load-more-container {
  text-align: center;
  margin: 30px 0 50px;
}

.load-more-products-btn {
  padding: 12px 40px;
  background: var(--primary-color);
  color: #F5F1EC;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.3s;
}

.load-more-products-btn:hover:not(:disabled) {
  background: var(--primary-dark);
}

.load-more-products-btn:disabled {
  background: #b09090;
  cursor: not-allowed;
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.empty-message {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 20px;
  color: #999;
  font-size: 15px;
}

/* 모달 스타일 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal.show {
  display: block;
}

.modal-content {
  background-color: #fefefe;
  margin: 3% auto;
  padding: 0;
  border: 1px solid #888;
  width: 90%;
  max-width: 700px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  animation: slideDown 0.3s;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  padding: 20px 25px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fa;
  border-radius: 10px 10px 0 0;
}

.modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-color);
  font-family: 'Noto Serif KR', serif;
}

.close {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s;
}

.close:hover,
.close:focus {
  color: #000;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.category-tree-container {
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  padding: 15px;
  background: #fff;
}

.modal-footer {
  padding: 15px 25px;
  border-top: 1px solid #e0e0e0;
  text-align: center;
  background: #f8f9fa;
  border-radius: 0 0 10px 10px;
}

.modal-footer .info-text {
  font-size: 13px;
  color: #666;
}

/* jsTree 커스텀 스타일 */
#categoryTree .jstree-anchor {
  padding: 5px 8px;
  font-size: 14px;
  line-height: 1.6;
}

#categoryTree .jstree-anchor:hover {
  background: #f0f0f0;
  text-decoration: none;
}

#categoryTree .jstree-clicked {
  background: rgba(45, 106, 79, 0.12) !important;
  color: var(--primary-color) !important;
}

#categoryTree .jstree-icon {
  color: var(--primary-dark);
}

#categoryTree .jstree-open>.jstree-icon {
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }

  .filter-section {
    justify-content: flex-start;
  }

  .view-all-categories {
    margin-left: 0;
    width: 100%;
  }

  .modal-content {
    width: 95%;
    margin: 5% auto;
    max-height: 90vh;
  }

  .section-title {
    font-size: 24px;
  }
}




/* 메인 컨테이너 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* 브레드크럼 */
.breadcrumb {
  margin-bottom: 20px;
  padding: 10px 0;
  color: #666;
  font-size: 14px;
}

.breadcrumb a {
  color: #666;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #333;
}

/* 상품 상세 영역 */
.detail_area {
  display: flex;
  gap: 40px;
  margin-bottom: 50px;
}

/* 상품 이미지 영역 */
.photo_area {
  flex: 0 0 450px;
}

.photo_area .big {
  width: 100%;
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
}

.photo_area .big img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
  transition: transform 0.3s;
}

.photo_area .big img:hover {
  transform: scale(1.05);
}

/* 썸네일 이미지 */
.thum {
  margin-top: 10px;
}

.thum ul {
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.thum li {
  flex: 1;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  overflow: hidden;
}

.thum li img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s;
}

.thum li:hover img {
  opacity: 0.7;
}

/* SNS 공유 버튼 */
.sns_btn {
  margin-top: 15px;
  display: flex;
  gap: 10px;
}

.sns_btn img {
  width: 32px;
  height: 32px;
  cursor: pointer;
}

/* 상품 정보 영역 */
.detail {
  flex: 1;
}

.detail dl {
  border-top: 2px solid #333;
  margin: 0;
}

.detail dl dt,
.detail dl dd {
  padding: 12px 15px;
  border-bottom: 1px solid #e0e0e0;
}

.detail dl dt {
  float: left;
  clear: left;
  width: 150px;
  font-weight: 600;
  background: #f9f9f9;
}

.detail dl dd {
  margin-left: 150px;
  background: #fff;
}

.detail .price {
  font-size: 28px;
  font-weight: bold;
  color: #ff6b00;
}

.detail .f_orange {
  color: #ff6b00;
}

.detail .f_bold {
  font-weight: bold;
}

/* 옵션 영역 */
.option_type1 {
  margin: 20px 0;
  border: 1px solid #e0e0e0;
  padding: 20px;
  background: #fafafa;
}

.option_type1 .title {
  font-weight: bold;
  margin-bottom: 15px;
}

.option_type1 table {
  width: 100%;
  border-collapse: collapse;
}

.option_type1 td {
  padding: 10px 5px;
  vertical-align: middle;
}

.option_type1 select,
.option_type1 input[type="text"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* 수량 선택 */
.su {
  display: flex;
  align-items: center;
  gap: 5px;
}

.su input[type="text"] {
  width: 60px;
  text-align: center;
  padding: 5px;
  border: 1px solid #ddd;
}

.num_plus,
.num_minus {
  cursor: pointer;
}

.num_plus img,
.num_minus img {
  width: 24px;
  height: 24px;
}

/* 선택된 옵션 표시 */
.option_type2 {
  margin: 20px 0;
  border: 1px solid #e0e0e0;
}

.option_type2 table {
  width: 100%;
  border-collapse: collapse;
}

.option_type2 td {
  padding: 10px;
  border-bottom: 1px solid #e0e0e0;
}

.option_type2 .ta_r {
  text-align: right;
}

/* 구매 버튼 영역 */
.product_btn {
  margin-top: 30px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product_btn a {
  display: inline-block;
}

.product_btn img {
  height: 50px;
  cursor: pointer;
  transition: opacity 0.3s;
}

.product_btn img:hover {
  opacity: 0.8;
}

.btn_type3 {
  display: block;
  padding: 15px 30px;
  text-align: center;
  background: #999;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
}

/* 탭 영역 */
.tab_info {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 40px 0 0 0;
  border-bottom: 2px solid #333;
}

.tab_info li {
  flex: 1;
  text-align: center;
  cursor: pointer;
}

.tab_info li img {
  display: block;
  width: 100%;
  height: auto;
}

.tab_info li.on {
  border-bottom: 3px solid #ff6b00;
}

/* 상품 정보 테이블 */
.tbl_info {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
  border-top: 2px solid #333;
}

.tbl_info th,
.tbl_info td {
  padding: 12px 15px;
  border-bottom: 1px solid #e0e0e0;
}

.tbl_info th {
  background: #f9f9f9;
  font-weight: 600;
  text-align: left;
  width: 130px;
}

/* 상품 상세 이미지 */
.info_img {
  margin: 30px 0;
  text-align: center;
}

.info_img img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px auto;
  cursor: zoom-in;
}

/* 게시판 테이블 */
.tbl_board {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
  border-top: 2px solid #333;
}

.tbl_board thead th {
  padding: 12px;
  background: #f9f9f9;
  border-bottom: 1px solid #ddd;
  font-weight: 600;
}

.tbl_board tbody td {
  padding: 12px;
  border-bottom: 1px solid #e0e0e0;
  text-align: center;
}

/* 이미지 뷰어 모달 */
#imageViewerModal {
  display: none;
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

#imageViewerModal.active {
  display: flex;
  flex-direction: column;
}

.viewer-toolbar {
  background: rgba(42, 42, 42, 0.9);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.viewer-toolbar h3 {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-right: auto;
}

.viewer-btn {
  background: #4a4a4a;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.3s;
}

.viewer-btn:hover {
  background: #5a5a5a;
}

.viewer-close {
  background: #d32f2f;
  margin-left: 10px;
}

.viewer-close:hover {
  background: #b71c1c;
}

#viewer-zoom-info {
  color: #ccc;
  font-size: 13px;
  min-width: 70px;
  text-align: center;
}

.viewer-container {
  position: relative;
  flex: 1;
  overflow: hidden;
  cursor: grab;
}

.viewer-container.grabbing {
  cursor: grabbing;
}

#viewer-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center center;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* 반응형 */
@media (max-width: 768px) {
  .detail_area {
    flex-direction: column;
  }

  .photo_area {
    flex: 1;
  }

  .detail dl dt {
    width: 100px;
  }

  .detail dl dd {
    margin-left: 100px;
  }
}


/* 이미지와 동일한 스타일 */
.nav-main .sub-menu a[data-action="open-modal"] {
  color: #F5F1EC !important;
  background: var(--accent-gold);
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(212, 184, 150, 0.4);
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.nav-main .sub-menu a[data-action="open-modal"]:hover {
  background: #B89A72;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(212, 184, 150, 0.5);
}

.nav-main.show .sub-menu a[data-action="open-modal"] {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-main.show .sub-menu a[data-action="open-modal"]:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}


/* =========================
   15) 옥션 일정 달력 모달
========================= */
.auction-schedule-modal {
  max-width: 900px;
}

.calendar-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px;
  background: linear-gradient(135deg, #2D6A4F 0%, #1B3A2A 100%);
  border-radius: 8px;
}

.calendar-controls h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #F5F1EC;
  font-family: 'Noto Serif KR', serif;
}

.calendar-nav-btn {
  padding: 8px 16px;
  background: rgba(245, 241, 236, 0.20);
  color: #F5F1EC;
  border: 1px solid rgba(212, 184, 150, 0.5);
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
}

.calendar-nav-btn:hover {
  background: var(--accent-gold);
  color: #0F1F18;
  transform: translateY(-2px);
}

.auction-calendar {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.calendar-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--primary-color);
  color: #F5F1EC;
}

.calendar-day-name {
  padding: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}

.calendar-day-name:first-child {
  color: #C4DFD4;
}

.calendar-day-name:last-child {
  color: #D4B896;
}

.calendar-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: #e9ecef;
}

.calendar-cell {
  min-height: 100px;
  padding: 8px;
  background: white;
  position: relative;
}

.calendar-cell.empty {
  background: #f8f9fa;
}

.calendar-cell.today {
  background: rgba(45, 106, 79, 0.08);
  border: 2px solid var(--primary-color);
}

.date-number {
  font-size: 14px;
  font-weight: 600;
  color: #0F1F18;
  margin-bottom: 4px;
}

.calendar-cell.today .date-number {
  color: var(--primary-color);
  font-size: 16px;
}

.schedule-item {
  padding: 4px 6px;
  margin: 2px 0;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
  border-left: 3px solid;
}

.schedule-item:hover {
  transform: translateX(2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.schedule-item.auction-live {
  background: rgba(45, 106, 79, 0.12);
  border-color: var(--primary-color);
  color: #2D6A4F;
}

.schedule-item.auction-upcoming {
  background: rgba(212, 184, 150, 0.15);
  border-color: var(--accent-gold);
  color: #4A6A32;
}

.schedule-item.auction-ended {
  background: #f5f5f5;
  border-color: #999;
  color: #666;
}

.schedule-time {
  display: block;
  font-weight: 700;
  margin-bottom: 2px;
}

.schedule-title {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.schedule-legend {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 6px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #666;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.legend-dot.auction-live {
  background: var(--primary-color);
}

.legend-dot.auction-upcoming {
  background: var(--accent-gold);
}

.legend-dot.auction-ended {
  background: #999;
}

/* 반응형 */
@media (max-width: 768px) {
  .calendar-cell {
    min-height: 80px;
    padding: 4px;
  }

  .date-number {
    font-size: 12px;
  }

  .schedule-item {
    font-size: 10px;
    padding: 3px 4px;
  }

  .calendar-nav-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  .calendar-controls h3 {
    font-size: 16px;
  }
}



/* =========================
   16) 검색 모달 (개선 버전)
========================= */
/* =========================
   16) 검색 모달 (오성옥션 스타일)
========================= */
#searchModal {
  position: fixed !important;
  z-index: 10000 !important;
  display: none;
}

#searchModal.show {
  display: block !important;
  animation: fadeIn 0.3s;
}

.search-modal-content {
  width: 100% !important;
  max-width: 850px !important;
  max-height: 90vh;
  overflow-y: auto;
  margin: 2% auto;
  animation: slideDown 0.3s;
  border-radius: var(--border-radius);
}

.search-modal-content .modal-header {
  background: var(--primary-color);
  color: white;
  padding: 20px 25px;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search-modal-content .modal-header h2 {
  color: white;
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.search-modal-content .modal-header .close {
  color: rgba(255, 255, 255, 0.9);
  font-size: 28px;
  transition: all 0.3s;
}

.search-modal-content .modal-header .close:hover {
  color: white;
  transform: rotate(90deg);
}

.search-modal-content .modal-body {
  padding: 25px;
  background: white;
}

.search-section {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.search-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.search-label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-left: 10px;
  border-left: 3px solid var(--primary-color);
}

.search-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: var(--transition);
  font-family: 'Noto Sans KR', sans-serif;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12);
}

.search-input::placeholder {
  color: #999;
}

/* 카테고리 트리 */
.category-tree {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding: 2px;
}

.category-tree::-webkit-scrollbar {
  width: 6px;
}

.category-tree::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 3px;
}

.category-tree::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 3px;
}

.category-item {
  padding: 10px 12px;
  background: var(--bg-gray);
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.category-item:hover {
  background: #f0f0f0;
  border-color: var(--primary-color);
  transform: translateX(2px);
}

.category-item input[type="checkbox"] {
  margin-right: 8px;
  cursor: pointer;
  width: 16px;
  height: 16px;
  accent-color: var(--primary-color);
}

.category-item input[type="checkbox"]:checked+label {
  color: var(--primary-color);
  font-weight: 600;
}

.category-item label {
  cursor: pointer;
  font-size: 13px;
  color: var(--text-primary);
  flex: 1;
  user-select: none;
}

/* 체크박스 그룹 */
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg-gray);
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s;
  cursor: pointer;
}

.checkbox-item:hover {
  background: #f0f0f0;
  border-color: var(--primary-color);
}

.checkbox-item input[type="checkbox"] {
  margin-right: 8px;
  cursor: pointer;
  width: 16px;
  height: 16px;
  accent-color: var(--primary-color);
}

.checkbox-item input[type="checkbox"]:checked+label {
  color: var(--primary-color);
  font-weight: 600;
}

.checkbox-item label {
  cursor: pointer;
  font-size: 13px;
  color: var(--text-primary);
  flex: 1;
  user-select: none;
}

/* 가격 범위 */
.price-range {
  display: flex;
  align-items: center;
  gap: 12px;
}

.price-input {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  text-align: right;
  transition: var(--transition);
  font-family: 'Noto Sans KR', sans-serif;
}

.price-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12);
}

.price-input::placeholder {
  text-align: left;
  color: #999;
}

.price-separator {
  color: #666;
  font-weight: 600;
  font-size: 16px;
}

/* 검색 버튼 영역 */
.search-actions {
  display: flex;
  gap: 12px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 2px solid #f0f0f0;
}

.btn-reset,
.btn-search {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Noto Sans KR', sans-serif;
  letter-spacing: -0.3px;
}

.btn-reset {
  background: white;
  color: #666;
  border: 1px solid #ddd;
}

.btn-reset:hover {
  background: #f5f5f5;
  border-color: #999;
}

.btn-search {
  background: var(--primary-color);
  color: #F5F1EC;
  box-shadow: 0 4px 12px rgba(45, 106, 79, 0.30);
}

.btn-search:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(45, 106, 79, 0.40);
}

.btn-search:active {
  transform: translateY(0);
}

/* 애니메이션 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 스크롤바 스타일링 */
.search-modal-content .modal-body::-webkit-scrollbar {
  width: 8px;
}

.search-modal-content .modal-body::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 4px;
}

.search-modal-content .modal-body::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

.search-modal-content .modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* 반응형 */
@media (max-width: 768px) {
  .search-modal-content {
    width: 95%;
    max-width: 95%;
    margin: 10px auto;
    max-height: 95vh;
  }

  .search-modal-content .modal-body {
    padding: 20px 15px;
  }

  .search-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
  }

  .search-label {
    font-size: 14px;
  }

  .category-tree,
  .checkbox-group {
    grid-template-columns: 1fr;
  }

  .price-range {
    flex-direction: column;
    gap: 10px;
  }

  .price-separator {
    transform: rotate(90deg);
  }

  .search-actions {
    flex-direction: column;
    gap: 10px;
  }

  .btn-reset,
  .btn-search {
    width: 100%;
    padding: 12px 18px;
  }
}

/* =========================
   10) Home Page Redesign
========================= */
.hero-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin: 0 auto;
  padding: 0 0px;
}

.hero {
  width: 100%;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  height: 400px;
  position: relative;
  background: #f8f8f8;
  /* Placeholder color */
}

.slides,
.slide {
  height: 100% !important;
}

.slide-image {
  height: 100% !important;
  max-width: none !important;
  margin-bottom: 0 !important;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Backdrop for contain mode */
}

.slide-image img {
  object-fit: contain;
  /* Changed from cover to contain to see full image */
  height: 100%;
  width: 100%;
}

.hero-notice {
  position: absolute;
  top: 40px;
  right: calc((100% - 1600px) / 2 + 40px);
  width: 350px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  z-index: 20;
}

@media (max-width: 1600px) {
  .hero-notice {
    right: 40px;
  }
}

.hero-notice .notice-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-notice .notice-item {
  margin-bottom: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  border-right: none;
  padding: 0 0 10px 0;
}

.hero-notice .notice-item:last-child {
  border-right: none;
}

.hero-notice h3 {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-notice h3 a {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: none;
}

.notice-list {
  list-style: none;
}

.notice-item {
  margin-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 10px;
}

.notice-item:last-child {
  border-bottom: none;
}

.notice-item a {
  text-decoration: none;
  color: var(--text-primary);
  display: block;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notice-item span {
  font-size: 0.8rem;
  color: #999;
  display: block;
  margin-top: 4px;
}

@media (min-width: 1201px) {
  .product-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.products-inner {
  max-width: 1600px !important;
  width: 100% !important;
  margin: 0 auto;
}

.load-more-container {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.load-more-btn {
  padding: 12px 40px;
  background: white;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.load-more-btn:hover {
  background: var(--primary-color);
  color: #F5F1EC;
}

@media (max-width: 1200px) {
  .hero {
    height: 350px;
  }

  .hero-notice .notice-list {
    grid-template-columns: 1fr;
  }

  .hero-notice .notice-item {
    border-right: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 10px 0;
  }
}

@media (max-width: 1200px) {
  .hero-notice {
    position: relative;
    top: 0;
    right: 0;
    width: 100%;
    background: #fff;
    box-shadow: var(--box-shadow);
    margin-top: 20px;
    z-index: 10;
  }

  .hero-notice .notice-list {
    display: block;
  }
}

/* 상품 이미지 정갈하게 - 업데이트된 통합 스타일 (Padding-top 100% 기법 적용) */
.product-card .product-image {
  position: relative !important;
  /* 카드 좌우 폭보다 조금 작게 안쪽으로 들어오도록 설정 */
  width: calc(100% - 20px) !important;
  /* width와 1:1 비율을 갖도록 동일한 calc 적용 */
  padding-top: calc(100% - 20px) !important;
  background: #f4f5f6 !important;
  /* 약한 회색 배경 */
  border-radius: 8px !important;
  overflow: hidden !important;
  /* 좌우 가운데 정렬, 상하 여백 부여 */
  margin: 10px auto !important;
  border: 1px solid #e8e8e8 !important;
  display: block !important;
}

.product-card .product-image-inner {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  /* 내부 이미지와 프레임 사이의 추가 간격 */
  padding: 10px !important;
}

.product-card .product-image-inner img,
.product-card .product-image img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.product-card:hover .product-image-inner img {
  transform: scale(1.1);
}

/* 1번째 서브메뉴(쇼핑분류, 옥션일정 등) 시각적 강조 */
#subMenu>li:nth-child(1)>a {
  color: #e53935 !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 3px rgba(229, 57, 53, 0.2);
}