/* =========================================================
✅ [GLOBAL RESET / 기본설정]
========================================================= */
body {
  margin: 0;
  font-family: 'Noto Sans KR', sans-serif;
  color: #333;
  background-color: #fff;
}

/* =========================================================
🔺 [TOP BAR - 로그인, 회원가입 등 상단 메뉴]
========================================================= */
#top_bar {
  background: #fafafa;
  border-bottom: 1px solid #eaeaea;
  font-size: 13px;
  color: #444;
  padding: 8px 0;
}

#top_bar .top_menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

#top_bar a {
  color: #444;
  text-decoration: none;
  margin-right: 15px;
  transition: color 0.2s ease;
}

#top_bar a:last-child {
  margin-right: 0;
}

#top_bar a:hover {
  color: #d62828;
  font-weight: 500;
}

/* =========================================================
🖥️ [PC HEADER]
========================================================= */
.pc-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.pc-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
  position: relative;
}

/* 로고 */
.pc-logo a {
  font-size: 24px;
  font-weight: 800;
  color: #d62828;
  text-decoration: none;
  letter-spacing: -0.5px;
}

/* =========================================================
📁 [PC NAVIGATION - 1depth]
========================================================= */
/* 네비게이션 중앙 정렬용 */
.pc-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.pc-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 28px;
}

.pc-menu-item {
  position: relative;
}

.pc-nav a {
  color: #333;
  font-size: 15px;
  text-decoration: none;
  font-weight: 500;
  padding: 10px 5px;
  display: inline-block;
  transition: color 0.2s ease;
}

.pc-nav a:hover {
  color: #d62828;
}

/* =========================================================
📂 [PC SUBMENU - 2depth]
========================================================= */
.pc-submenu {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  padding: 8px 0;
  min-width: 160px;
  z-index: 9999;
}

.pc-submenu li {
  list-style: none;
}

.pc-submenu a {
  display: block;
  padding: 9px 14px;
  color: #444;
  font-size: 14px;
  white-space: nowrap;
}

.pc-submenu a:hover {
  background: #f8f8f8;
  color: #d62828;
}

/* hover 시만 표시 */
.pc-menu-item:hover > .pc-submenu {
  display: block !important;
}

/* =========================================================
🛒 [SHOP MENU - 찜, 장바구니, 최근본]
========================================================= */
/* shop-menu는 오른쪽 고정 */
.shop-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.shop-menu a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #444;
  font-weight: 600;
  font-size: 15px;
  padding: 4px 6px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.shop-menu a:hover {
  background: #f3f3f8;
  color: #6c5ce7;
}

/* 숫자 뱃지 */
.shop-menu .badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #ff3b63;
  color: #fff;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 4px;
  line-height: 1;
  min-width: 15px;
  text-align: center;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.15);
}

/* =========================================================
📱 [MOBILE APP BAR]
========================================================= */
.mobile-appbar {
  display: none;
  background: #d62828;
  color: #fff;
  padding: 12px 18px;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 999;
}

.mobile-appbar .logo {
  font-weight: 700;
  font-size: 20px;
}

.icon-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

/* =========================================================
📱 [MOBILE FULL MENU - Layer Menu]
========================================================= */
.mobile-layer-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 9999;
  overflow-y: auto;
  padding: 80px 20px 40px;
}

.mobile-layer-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-layer-menu a {
  display: block;
  padding: 12px 0;
  color: #222;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
  transition: 0.2s;
}

.mobile-layer-menu a:hover {
  color: #d62828;
}

/* 2depth 메뉴 */
.menu-depth2 {
  padding-left: 16px;
  border-left: 2px solid #f2f2f2;
}
/* ========================
🔍 TOP SEARCH (기본형 + 살짝 포인트)
======================== */
.top-search {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 18px;
  padding: 3px 10px;
  width: 180px;
  height: 28px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  transition: all 0.25s ease;
}

.top-search:hover {
  border-color: #d62828;  /* 🔸포인트 컬러 */
  box-shadow: 0 0 4px rgba(214,40,40,0.15); /* 🔸살짝 붉은빛 그림자 */
}

.top-search input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  font-size: 13px;
  color: #333;
  padding: 2px 4px;
}

.top-search input::placeholder {
  color: #aaa;
  font-size: 12.5px;
}

.top-search button {
  border: none;
  background: none;
  cursor: pointer;
  color: #d62828;  /* 🔸포인트 아이콘 */
  font-size: 14px;
  padding: 2px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.top-search button:hover {
  transform: scale(1.15); /* 🔸아이콘 살짝 커짐 효과 */
  color: #c21818;
}

/* =========================================================
📱 [MOBILE ACTIVE 상태]
========================================================= */
.mobile-layer-menu.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
💡 [RESPONSIVE BREAKPOINTS]
========================================================= */
@media (max-width: 1024px) {
  .pc-only { display: none; }
  .mobile-appbar { display: flex; }
}

@media (min-width: 1025px) {
  .mobile-appbar,
  .mobile-layer-menu {
    display: none !important;
  }
}
