
#topNavMenu {
  width: 100%;
  background: #fff;
  border-top: 1px solid #eee;
  border-bottom: 2px solid #C9A96E;   /* #222 → 골드 */
  margin-top: 6px;
  padding: 12px 0;                    /* 버튼 위아래 여백 */
}
#topNavMenu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;                           /* 버튼 사이 간격 */
}
#topNavMenu ul li a {
  display: block;
  padding: 18px 28px;                 /* 10px 14px → 버튼 크게 */
  font-size: 28px !important;         /* 39spx(오타라 무시됐음) → 28px */
  font-family: 'NanumBarunGothic','나눔바른고딕',sans-serif;
  color: #000;                        /* #333 → 검정 */
  background: #fff;
  border: 2px solid #C9A96E;          /* 기본 골드 테두리 (굵게) */
  text-decoration: none;
  white-space: nowrap;
  font-weight: 700;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
#topNavMenu ul li a:hover {
  color: #C9A96E;                     /* 흰색 → 골드 */
  font-weight: 700;
  background: #000;
  border-color: #C9A96E;
}
#topNavMenu ul li.active a {
  color: #C9A96E;                     /* 현재 카테고리 - 검정배경+골드글씨 */
  font-weight: 700;
  background: #000;
  border: 2px solid #C9A96E;
}


#myCategory { font-family: 'Apple SD Gothic Neo','Malgun Gothic','맑은 고딕',sans-serif; font-size: 12px; width: 170px; }
#myCategory .cat-section { margin-bottom: 0; }
#myCategory .cat-header {
  display: block;
  background: #333;
  color: #fff;
  text-align: center;
  padding: 7px 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-bottom: 1px solid #444;
}

/* BAG */
#myCategory .cat-section:nth-child(1) .cat-header { background: #C9A96E; }
/* WALLET */
#myCategory .cat-section:nth-child(2) .cat-header { background: #b8945a; }
/* WATCH */
#myCategory .cat-section:nth-child(3) .cat-header { background: #a87e46; }
/* BELT */
#myCategory .cat-section:nth-child(4) .cat-header { background: #956a34; }
/* SHOES */
#myCategory .cat-section:nth-child(5) .cat-header { background: #825724; }
/* JEWELRY */
#myCategory .cat-section:nth-child(6) .cat-header { background: #6e4518; }
/* SUNGLASSES */
#myCategory .cat-section:nth-child(7) .cat-header { background: #59340e; }
/* SWIMWEAR */
#myCategory .cat-section:nth-child(8) .cat-header { background: #422406; }

/* 호버 */
#myCategory .cat-section:nth-child(1) .cat-header:hover { background: #b8985e; }
#myCategory .cat-section:nth-child(2) .cat-header:hover { background: #a8844a; }
#myCategory .cat-section:nth-child(3) .cat-header:hover { background: #986e36; }
#myCategory .cat-section:nth-child(4) .cat-header:hover { background: #855a24; }
#myCategory .cat-section:nth-child(5) .cat-header:hover { background: #724714; }
#myCategory .cat-section:nth-child(6) .cat-header:hover { background: #5e360a; }
#myCategory .cat-section:nth-child(7) .cat-header:hover { background: #492604; }
#myCategory .cat-section:nth-child(8) .cat-header:hover { background: #321802; }
    
#myCategory .cat-header:hover { background: #111; }
#myCategory .cat-header .cat-header-sub {
  font-size: 15px;
  font-weight: 400;
  color: #fff;
  margin-left: 4px;
}
#myCategory .cat-list { list-style: none; margin: 0; padding: 0; border-left: 2px solid #bbb; border-right: 2px solid #bbb; }
#myCategory .cat-list li { border-bottom: 2px solid #ccc; display: flex; align-items: center; }
#myCategory .cat-list li a {
  display: flex;
  align-items: center;
  padding: 4px 8px;
  color: #333;
  text-decoration: none;
  flex: 1;
  min-height: 35px;
}
/* 카테고리 이미지 */
#myCategory .cat-list li a img {
  width: 150px;
  height: 35px;
  object-fit: contain;
  vertical-align: middle;
}
#myCategory .cat-list li a:hover { background: #f5f5f5; }
#myCategory .cat-list li .cat-kr { display: none; }
#myCategory .cat-section-gap { height: 6px; background: #f0f0f0; border: 2px solid #bbb; border-top: none; margin-bottom: 8px; }


/* 브랜드 줄이 아래로 메뉴를 펼칠 수 있게 */
#myCategory .cat-list li { flex-wrap: wrap; }

/* 남성/여성 메뉴 (평소엔 숨김) */
#myCategory .gender-menu {
  display: none;
  width: 100%;
  background: #faf7f2;
  border-top: 1px dashed #ddd;
}
#myCategory li.is-open .gender-menu { display: flex; }
#myCategory li.is-open > a { background: #f5f5f5; }

/* 남성/여성 버튼 모양 */
#myCategory .cat-list li .gender-menu a {
  flex: 1;
  justify-content: center;
  min-height: 30px;
  padding: 6px 0;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  background: #b8945a;
}
#myCategory .cat-list li .gender-menu a + a { border-left: 1px solid #fff; }
#myCategory .cat-list li .gender-menu a:hover { background: #a8844a; color: #fff; }


#quick { display: none !important; }

#mySideRight {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: row;
  align-items: stretch;
  z-index: 9999;
  font-family: 'Apple SD Gothic Neo','Malgun Gothic','맑은 고딕',sans-serif;
  transition: right 0.3s ease;
}
/* ★수정: 닫으면 메뉴판 내용만 숨기고 ☰ 버튼은 오른쪽 끝에 남김 */
#mySideRight.sr-closed #sideContent { display: none; }
#mySideRight.sr-closed #sideToggleBtn { border-right: 2px solid #ddd; }

#sideToggleBtn {
  width: 72px;
  min-height: 88px;
  background: #fff;
  border: 2px solid #ddd;
  border-right: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  cursor: pointer;
  color: #444;
  flex-shrink: 0;
  align-self: center;
  transition: background 0.15s;
}
#sideToggleBtn:hover { background: #111; color: #fff; }

#sideContent {
  width: 420px;
  background: #fff;
  border: 2px solid #ddd;
  border-right: none;
  overflow-y: auto;
  max-height: 90vh;
}

/* ===== 카카오톡 상담 영역 높이 절반으로 줄이기 시작 ===== */
#sideContent .sr-kakao {
  display: block;
  background: #FAE100;
  text-align: center;
  padding: 14px 20px 12px;   /* ★수정: 32px/28px → 14px/12px */
  color: #3a1d1d;
  font-weight: 700;
  font-size: 22px;           /* ★수정: 26px → 22px */
  line-height: 1.4;          /* ★수정: 1.7 → 1.4 */
  text-decoration: none;
  border-bottom: 2px solid #e8cc00;
}
#sideContent .sr-kakao:hover { background: #f5d800; }
#sideContent .sr-kakao .kakao-talk-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #3a1d1d;
  color: #FAE100;
  border-radius: 50%;
  width: 44px;               /* ★수정: 76px → 44px */
  height: 44px;              /* ★수정: 76px → 44px */
  font-size: 24px;           /* ★수정: 40px → 24px */
  margin-bottom: 4px;        /* ★수정: 12px → 4px */
}
/* ===== 카카오톡 상담 영역 높이 절반으로 줄이기 끝 ===== */

#sideContent .sr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 2px solid #ddd;
  list-style: none;
  margin: 0;
  padding: 0;
}
#sideContent .sr-grid a {
  display: block;
  text-align: center;
  padding: 20px 8px;
  font-size: 24px;
  color: #444;
  text-decoration: none;
  border-right: 2px solid #ddd;
  border-bottom: 2px solid #ddd;
  border-top: none;
  border-left: none;
  background: #fff;
  margin: 0;
}
#sideContent .sr-grid a:nth-child(even) { border-right: none; }
#sideContent .sr-grid a:nth-last-child(1) { border-bottom: none; }
#sideContent .sr-grid a:nth-last-child(2) { border-bottom: none; }
#sideContent .sr-grid a:hover { background: #111; color: #fff; font-weight: 700; }

#sideContent .sr-quick { border-top: 2px solid #ddd; }
#sideContent .sr-quick .q-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 2px solid #ddd;
  margin: 0;
  padding: 0;
}
#sideContent .sr-quick .q-row.full { grid-template-columns: 1fr; }
#sideContent .sr-quick .q-row.full a { border-right: none; }
#sideContent .sr-quick .q-row:last-child { border-bottom: none; }
#sideContent .sr-quick .q-row a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 8px;
  font-size: 22px;
  color: #555;
  text-decoration: none;
  border-right: 2px solid #ddd;
  border-bottom: none;
  border-top: none;
  border-left: none;
  background: #fff;
  gap: 8px;
  margin: 0;
}
#sideContent .sr-quick .q-row a:last-child { border-right: none; }
#sideContent .sr-quick .q-row a:hover { background: #111; color: #fff; }
#sideContent .sr-quick .q-row a .q-icon { font-size: 36px; line-height: 1; }

#sideContent .sr-cs {
  text-align: center;
  padding: 24px 16px 20px;
  border-top: 2px solid #ddd;
  line-height: 1.8;
}
#sideContent .sr-cs .cs-label { font-size: 24px; color: #666; }
#sideContent .sr-cs .cs-tel { font-size: 38px; font-weight: 700; color: #111; }
#sideContent .sr-cs .cs-time { font-size: 22px; color: #999; line-height: 1.8; }

#sideContent .sr-account {
  text-align: center;
  padding: 24px 16px 28px;
  border-top: 2px solid #ddd;
  line-height: 1.8;
}
#sideContent .sr-account .acc-label { font-size: 24px; color: #666; }
#sideContent .sr-account .acc-num { font-size: 32px; font-weight: 700; color: #111; }
#sideContent .sr-account .acc-name { font-size: 22px; color: #999; }

#container{grid-template-columns:170px minmax(0,1fr)}#sidebar summary{display:none}#myCategory{display:block;width:170px;max-width:100%}#myCategory a{border:0}#myCategory .cat-header{border-bottom:1px solid #444}#myCategory .cat-list li a{min-width:0}#myCategory .cat-list li a img{max-width:100%}#topNavMenu ul li a{white-space:normal}#sideToggleBtn{padding:0}#sideContent{max-width:calc(100vw - 76px)}.he-text-menu{margin-top:24px;font:700 20px/1.5 'Malgun Gothic',sans-serif}.he-text-menu a{display:block;padding:10px 5px;overflow-wrap:anywhere}.he-text-menu a:hover{color:#C9A96E}
@media(max-width:1023px){#container{grid-template-columns:minmax(0,1fr)}#sidebar summary{display:block}#myCategory{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}#myCategory .cat-list li a img{width:100%;height:35px}#topNavMenu ul li a{font-size:16px!important;padding:9px 12px}.he-text-menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));font-size:15px}#sideContent .sr-grid a{font-size:16px;padding:12px 5px}#sideContent .sr-quick .q-row a{font-size:16px;padding:12px 5px}#sideContent .sr-kakao{font-size:18px}#sideToggleBtn{width:42px;min-height:52px;font-size:26px}#sideContent{width:320px;max-width:calc(100vw - 44px);max-height:85vh}}
@media(max-width:767px){#myCategory{grid-template-columns:repeat(2,minmax(0,1fr))}#myCategory .cat-header,#myCategory .cat-header .cat-header-sub{font-size:12px}#topNavMenu ul li a{font-size:13px!important;padding:6px 8px}}

/* Mobile category accordion: desktop appearance unchanged. */
#he-top-details > summary{display:none}
#he-top-details:not([open]) > #topNavMenu,
#he-brand-details:not([open]) > #myCategory,
#he-brand-details:not([open]) > .he-text-menu{display:none!important}
@media(max-width:1023px){
#he-top-details > summary,#he-brand-details > summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;list-style:none;padding:13px 16px;font-size:15px;line-height:1.5;min-height:48px;background:#333;color:#fff;border-bottom:1px solid #C9A96E}
#he-top-details > summary::-webkit-details-marker,#he-brand-details > summary::-webkit-details-marker{display:none}
#he-top-details > summary::after,#he-brand-details > summary::after{content:'+';font-size:23px;line-height:1;color:#C9A96E}
#he-top-details[open] > summary::after,#he-brand-details[open] > summary::after{content:'−'}
}

/* v5: mobile left drawer and independent brand groups */
#he-left-toggle,.he-brand-toggle{display:none}
#he-left-drawer:not([open]){display:none}
@media(max-width:1023px){
 #header{position:relative}
 #he-left-toggle{display:block;position:absolute;top:12px;left:12px;z-index:2;width:44px;height:44px;border:1px solid #C9A96E;background:#000;color:#C9A96E;font-size:25px;cursor:pointer}
 .he-text-menu{display:none!important}
 #he-left-drawer{position:fixed;inset:0 auto 0 0;margin:0;border:0;padding:0;width:min(86vw,360px);max-width:100%;height:100%;max-height:100%;background:#fff;color:#111;overflow:auto;overscroll-behavior:contain}
 #he-left-drawer::backdrop{background:rgba(0,0,0,.55)}
 body.he-drawer-open{overflow:hidden}
 .he-drawer-head{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;background:#111;color:#C9A96E;padding:12px 16px;border-bottom:1px solid #C9A96E}
 #he-left-close{background:transparent;border:0;color:#fff;font-size:28px;min-width:44px;min-height:44px;cursor:pointer}
 .he-drawer-body h2{font-size:16px;margin:0;padding:12px 16px;background:#333;color:#fff}
 #he-left-drawer #heDrawerNav{margin:0;padding:0;border:0}
 #he-left-drawer #heDrawerNav ul{display:block}
 #he-left-drawer #heDrawerNav ul li a,.he-community a{display:block;font-size:15px!important;padding:12px 16px;border:0;border-bottom:1px solid #eee;background:#fff;color:#111;white-space:normal;overflow-wrap:anywhere}
 #heDrawerNav summary{display:flex;align-items:center;justify-content:space-between;gap:6px;cursor:pointer;list-style:none;padding:12px 16px;border-bottom:1px solid #eee;font-size:15px}
 #heDrawerNav summary::-webkit-details-marker{display:none}
 #heDrawerNav summary::after{content:'+';color:#8b6733}
 #heDrawerNav details[open]>summary::after{content:'−'}
 #heDrawerNav details>ul{padding-inline-start:12px;border-inline-start:1px solid #e7d5b5;margin-inline-start:12px}
 #heDrawerNav>ul{--drawer-category-bg:#b89559;--drawer-category-text:#161109}
 #heDrawerNav details>ul{--drawer-category-bg:#e5d2aa;--drawer-category-text:#352714}
 #heDrawerNav details details>ul{--drawer-category-bg:#f7f0e1;--drawer-category-text:#42311c}
 #he-left-drawer #heDrawerNav ul li>a,
 #he-left-drawer #heDrawerNav ul li>details>summary{background:var(--drawer-category-bg);color:var(--drawer-category-text)}
 #heDrawerNav summary::after{color:currentColor}
 #myCategory{align-items:start}
 #myCategory .cat-section{position:relative;min-width:0}
 #myCategory .cat-header{padding-right:36px;overflow-wrap:anywhere;min-height:44px;display:flex;align-items:center;justify-content:center;flex-wrap:wrap}
 #myCategory .he-brand-toggle{display:block;position:absolute;top:0;right:0;width:36px;height:44px;border:0;border-left:1px solid rgba(255,255,255,.5);background:transparent;color:#fff;font-size:24px;cursor:pointer}
 #myCategory .cat-section:not(.he-brand-open) .cat-list,#myCategory .cat-section:not(.he-brand-open) .cat-section-gap{display:none}
}

/* v6: keep original button categories above brand groups, duplicate links in drawer */
@media(max-width:1023px){#he-left-drawer #heDrawerNav ul{list-style:none;margin:0;padding:0}#he-left-drawer #heDrawerNav ul li{margin:0;padding:0}#he-top-details{display:block}}

@media (max-width: 767px) {
  #myCategory .cat-section.he-brand-open {
    grid-column: 1 / -1;
  }
  #myCategory .he-brand-open > .cat-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding-top: 4px;
    border: 0;
  }
  #myCategory .he-brand-open > .cat-list > li {
    min-width: 0;
    border: 1px solid #ccc;
    border-radius: 0;
  }
  #myCategory .he-brand-open > .cat-list > li > a {
    padding: 4px;
  }
}
