/* =========================================================
✅ [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;
  }
  
}
/* =========================
   ✅ 모바일 전용 표시/숨김
========================= */
.mobile-only { display:none; }
@media (max-width: 1024px){
  .mobile-only { display:block; }
  #top_bar { display:none !important; } /* 모바일은 상단 탑바 숨김(깔끔) */
}

/* 바디 스크롤 잠금 */
.no-scroll { overflow:hidden; }

/* =========================
   ✅ 모바일 상단바
========================= */
.mobile-appbar{
  position: sticky;
  top: 0;
  z-index: 9999;
  height: 52px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 0 12px;
  background:#d62828;
  color:#fff;
}

.mobile-appbar .icon-btn{
  width: 40px;
  height: 40px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:0;
  background:transparent;
  color:#fff;
  font-size:20px;
}

.m-logo{
  color:#fff;
  text-decoration:none;
  font-weight:800;
  font-size:18px;
  letter-spacing:-0.5px;
}

.m-actions{
  display:flex;
  align-items:center;
  gap: 8px;
}

.m-icon{
  position:relative;
  width: 38px;
  height: 38px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  text-decoration:none;
  border-radius:10px;
}

.m-icon:active{ background: rgba(255,255,255,.12); }

/* badge 재사용 */
.m-icon .badge{
  position:absolute;
  top: 2px;
  right: 2px;
  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;
}

/* =========================
   ✅ 딤 + 드로어
========================= */
.m-dim{
  display:none;
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.45);
  z-index: 9998;
}
.m-dim.show{ display:block; }

.mobile-drawer{
  position:fixed;
  top:0;
  left:0;
  width: 82vw;
  max-width: 340px;
  height:100vh;
  background:#fff;
  z-index: 9999;
  transform: translateX(-105%);
  transition: transform .22s ease;
  box-shadow: 8px 0 24px rgba(0,0,0,.18);
  display:flex;
  flex-direction:column;
}
.mobile-drawer.open{ transform: translateX(0); }

.drawer-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 14px;
  border-bottom: 1px solid #eee;
}
.drawer-close{
  border:0;
  background:transparent;
  font-size:18px;
  cursor:pointer;
}

.drawer-search{
  display:flex;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid #f0f0f0;
}
.drawer-search input{
  flex:1;
  height: 38px;
  border:1px solid #ddd;
  border-radius: 10px;
  padding: 0 10px;
  outline:none;
}
.drawer-search button{
  width: 42px;
  height: 38px;
  border:0;
  border-radius: 10px;
  background:#d62828;
  color:#fff;
}

.drawer-quick{
  display:flex;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f0;
}
.drawer-quick a{
  flex:1;
  text-align:center;
  padding: 9px 0;
  background:#f7f7f7;
  border-radius: 10px;
  text-decoration:none;
  color:#222;
  font-weight:700;
  font-size:13px;
}

.drawer-menu{
  padding: 6px 0;
  overflow:auto;
  flex:1;
}
.drawer-menu ul{ list-style:none; margin:0; padding:0; }
.drawer-menu .d1 > a{
  display:block;
  padding: 12px 14px;
  border-bottom: 1px solid #f3f3f3;
  color:#111;
  text-decoration:none;
  font-weight:800;
}
.drawer-menu .d2 a{
  display:block;
  padding: 10px 14px 10px 26px;
  color:#444;
  text-decoration:none;
  border-bottom: 1px solid #fafafa;
  font-size:14px;
}

.drawer-auth{
  display:flex;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid #eee;
}
.drawer-auth a{
  flex:1;
  text-align:center;
  padding: 10px 0;
  border-radius: 10px;
  text-decoration:none;
  font-weight:800;
  background:#111;
  color:#fff;
}
.drawer-auth a:last-child{
  background:#d62828;
}

