/* =========================================================
   CL LIGHT — 테마 커스텀 스타일 (default.css 뒤에 로드됨)
   구조: 0.RESET  1.NAV  2.HERO/SLIDER  3.ICON GROUP & LANG  4.FOOTER  5.BACK TO TOP  6.RESPONSIVE
   ========================================================= */

/* ---------- 0. RESET ---------- */
:root {
  --bg: #ffffff;
  --ink: #161513;
  --muted: #78746b;
  --accent: #bb9857;
  --accent-bright: #d9bc7c;
  --line: #e9e6de;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

html {
  scroll-behavior: smooth;
  /* body에 걸면 overflow-y도 자동으로 auto가 되면서 body가 별도 스크롤 컨테이너가 되어
     그 안의 position:sticky 요소들이 실제 화면 스크롤을 기준으로 계산되지 않아 안 먹는다
     (People 페이지 CEO 고정에서 실제로 이 문제가 발생함) — 그래서 html에 건다 */
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Pretendard', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.serif {
  font-family: 'Pretendard', -apple-system, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 모든 페이지가 자체 타이틀/히어로를 커스텀으로 그리므로 그누보드 기본 제목(h2)은 전역적으로 숨김.
   (숨기지 않으면 커스텀 히어로 위쪽에 이 제목이 먼저 그려져 히어로가 아래로 밀리고,
   상단 네비가 "히어로 위에 얹힌 흰 글자" 모드로 이 흰 여백 위에 겹쳐서 사실상 안 보이게 됨) */
#container_title {
  display: none;
}

/* 페이지별 수정 버튼은 숨기고 관리자 작업은 푸터의 ADMIN 링크로 통일 */
.ctt_admin {
  display: none;
}

/* ---------- 1. NAV ---------- */
#mainNav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 5vw;
  transition: all .4s var(--ease);
}

#mainNav.on-light {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 18px 5vw;
}

#mainNav .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

#mainNav .logo .mark {
  width: 120px;
  height: auto;
  flex: none;
}

#mainNav .logo .mark--dark {
  display: block;
  filter: brightness(0) invert(1);
}

#mainNav .logo .mark--light {
  display: none;
}

#mainNav.on-light .logo .mark--dark {
  display: none;
}

#mainNav.on-light .logo .mark--light {
  display: block;
}

#mainNav .navlinks {
  display: flex;
  gap: 42px;
  height: 100%;
}

#mainNav .nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

#mainNav .nav-item>a {
  font-size: 14.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  opacity: .92;
  position: relative;
  padding: 24px 10px;
  margin: -24px -10px;
  cursor: pointer;
  transition: color .45s var(--ease), letter-spacing .45s var(--ease), opacity .45s var(--ease);
}

#mainNav.on-light .nav-item>a {
  color: var(--ink);
}

#mainNav .nav-item:hover>a {
  letter-spacing: .16em;
  opacity: 1;
  color: var(--accent);
}

#mainNav.on-light .nav-item:hover>a {
  color: var(--accent);
}

#mainNav .nav-item>a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 19px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent);
  transition: width .5s var(--ease);
  transform: translateX(-50%);
}

#mainNav .nav-item:hover>a::after {
  width: calc(100% - 4px);
}

#mainNav .nav-item.has-sub .submenu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 260px;
  max-width: 320px;
  background: #fdfcfa;
  border-top: 2px solid var(--accent);
  box-shadow: 0 40px 70px -24px rgba(20, 18, 14, .32), 0 12px 26px rgba(20, 18, 14, .09);
  padding: 22px 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  z-index: 10;
}

#mainNav .nav-item.has-sub:hover .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

#mainNav .submenu a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 12px 32px 12px 36px;
  margin: 0;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
  color: #5a5546;
  white-space: normal;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .45s var(--ease), transform .45s var(--ease), color .3s var(--ease), padding-left .3s var(--ease);
}

#mainNav .nav-item.has-sub:hover .submenu a {
  opacity: 1;
  transform: translateY(0);
}

#mainNav .nav-item.has-sub:hover .submenu a:nth-child(1) {
  transition-delay: .06s;
}

#mainNav .nav-item.has-sub:hover .submenu a:nth-child(2) {
  transition-delay: .10s;
}

#mainNav .nav-item.has-sub:hover .submenu a:nth-child(3) {
  transition-delay: .14s;
}

#mainNav .nav-item.has-sub:hover .submenu a:nth-child(4) {
  transition-delay: .18s;
}

#mainNav .nav-item.has-sub:hover .submenu a:nth-child(5) {
  transition-delay: .22s;
}

#mainNav .nav-item.has-sub:hover .submenu a:nth-child(6) {
  transition-delay: .26s;
}

#mainNav .submenu a::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  width: 1px;
  height: 0;
  background: var(--accent);
  transform: translateY(-50%);
  transition: height .35s var(--ease);
}

#mainNav .submenu a:hover {
  color: var(--accent);
  padding-left: 42px;
  background: transparent;
}

#mainNav .submenu a:hover::before {
  height: 15px;
}

#mainNav .submenu a::after {
  display: none;
}

/* ---------- 2. HERO / SLIDER (index 전용) ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  background: #0a0908;
}

.hero .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity 1.6s var(--ease);
}

.hero .slide .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: kenburns 9s ease-in-out infinite alternate;
}

.hero .slide::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10, 9, 7, .3) 0%, rgba(10, 9, 7, .1) 40%, rgba(10, 9, 7, .64) 100%);
}

.hero .slide.active {
  opacity: 1;
  z-index: 1;
}

@keyframes kenburns {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.12);
  }
}

.hero .slide-copy {
  position: absolute;
  left: 5vw;
  bottom: 14vh;
  z-index: 2;
  max-width: 560px;
  color: #fff;
}

.hero h1.headline {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.hero h1.headline .line {
  display: block;
  overflow: hidden;
}

.hero h1.headline .line span {
  display: block;
  transform: translateY(115%);
  transition: transform .85s var(--ease);
}

.hero .slide.play h1.headline .line:nth-child(1) span {
  transition-delay: .1s;
  transform: translateY(0);
}

.hero .slide.play h1.headline .line:nth-child(2) span {
  transition-delay: .25s;
  transform: translateY(0);
}

.hero .slide-copy p {
  font-size: 14.5px;
  color: rgba(255, 255, 255, .82);
  font-weight: 300;
  line-height: 1.7;
  max-width: 420px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.hero .slide.play .slide-copy p {
  opacity: 1;
  transform: translateY(0);
  transition-delay: .45s;
}

.hero .slide-copy .cta {
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .5);
  padding-bottom: 6px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.hero .slide.play .slide-copy .cta {
  opacity: 1;
  transform: translateY(0);
  transition-delay: .6s;
}

.hero .slide-copy .cta:hover {
  border-color: var(--accent-bright);
  color: var(--accent-bright);
}

.hero .dots {
  position: absolute;
  bottom: 38px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 2px;
}

.hero .dots button {
  width: 26px;
  height: 26px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero .dots button::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  transition: all .35s var(--ease);
}

.hero .dots button.active::after {
  background: var(--accent-bright);
  width: 22px;
  border-radius: 4px;
}

.hero .arrow {
  position: absolute;
  top: 50%;
  right: 5vw;
  transform: translateY(-50%);
  z-index: 3;
  width: 64px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, .45);
  transition: color .3s var(--ease);
}

.hero .arrow svg {
  width: 32px;
  height: 54px;
}

.hero .arrow:hover {
  color: #fff;
}

.hero .scrollcue {
  position: absolute;
  left: 5vw;
  bottom: 38px;
  z-index: 3;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .8;
}

.hero .scrollcue .chev {
  animation: bob 1.8s ease-in-out infinite;
}

@keyframes bob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(5px);
  }
}

/* ---------- 3. ICON GROUP & LANGUAGE MENU ---------- */
#mainNav .icon-group {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

#mainNav .icon-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background-color .35s var(--ease), color .25s var(--ease);
  background: transparent;
}


#mainNav .icon-btn svg {
  width: 23px;
  height: 23px;
}

#mainNav.on-light .icon-btn {
  color: var(--ink);
}

#mainNav .icon-btn:hover {
  background: rgba(255, 255, 255, .12);
}

#mainNav.on-light .icon-btn:hover {
  background: rgba(20, 18, 14, .055);
}

/* 헤더 아이콘버튼뿐 아니라 푸터 소셜버튼(.foot-social-btn)에도 같이 쓰므로 #mainNav 한정을 뺌 */
.naver-n {
  font-weight: 700;
  font-size: 19px;
  color: currentColor;
  line-height: 1;
}

#mainNav .cart-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--accent);
  color: #161513;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

#mainNav .lang-menu {
  position: absolute;
  top: 54px;
  right: 0;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(20, 18, 14, .28);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: all .25s var(--ease);
  z-index: 5;
}

#mainNav .lang-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#mainNav .lang-menu button {
  display: block;
  width: 100%;
  padding: 11px 22px;
  text-align: left;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .75);
  border: none;
  background: none;
  cursor: pointer;
  white-space: nowrap;
}

#mainNav .lang-menu button:hover {
  background: rgba(255, 255, 255, .08);
  color: var(--accent-bright);
}

#mainNav .lang-menu button.selected {
  color: var(--accent-bright);
  font-weight: 500;
}

/* ---------- 3-0. 전체메뉴(우측 슬라이드 패널) ---------- */
.cl-menu-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
  /* 전체메뉴 전용 다크 팔레트 — 사이트 기본(아이보리+골드)과 대비되는 프리미엄 톤 */
  --menu-bg: #1e1a16;
  --menu-text: #f5f0e6;
  --menu-text-dim: #a89d89;
  --menu-text-dimmer: #8a8071;
  --menu-line: rgba(245, 240, 230, .12);
  --menu-hover-bg: rgba(217, 188, 124, .16);
}

.cl-menu-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.cl-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 14, 12, .55);
  backdrop-filter: blur(3px);
}

.cl-menu-panel {
  position: relative;
  width: min(420px, 90vw);
  height: 100%;
  background: var(--menu-bg);
  box-shadow: -20px 0 60px rgba(0, 0, 0, .35);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 70px 0 40px;
  transform: translateX(100%);
  transition: transform .45s var(--ease);
}

.cl-menu-modal.open .cl-menu-panel {
  transform: translateX(0);
}

.cl-menu-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: none;
  color: var(--menu-text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}

.cl-menu-close svg {
  width: 18px;
  height: 18px;
}

.cl-menu-close:hover {
  background: rgba(245, 240, 230, .1);
  color: var(--menu-text);
}

.cl-menu-nav {
  padding: 0 32px;
  font-family: 'Pretendard', -apple-system, sans-serif;
}

.cl-menu-group {
  border-bottom: 1px solid var(--menu-line);
}

.cl-menu-group:first-child {
  border-top: 1px solid var(--menu-line);
}

.cl-menu-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 6px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: 'Pretendard', -apple-system, sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--menu-text);
  transition: color .22s var(--ease);
}

.cl-menu-group.open > .cl-menu-toggle,
.cl-menu-toggle:hover {
  color: var(--accent-bright);
}

.cl-menu-chevron {
  width: 16px;
  height: 16px;
  color: var(--menu-text-dim);
  transition: transform .3s var(--ease), color .22s var(--ease);
  flex: none;
}

.cl-menu-group.open > .cl-menu-toggle .cl-menu-chevron,
.cl-menu-toggle:hover .cl-menu-chevron {
  color: var(--accent-bright);
}

.cl-menu-group.open > .cl-menu-toggle .cl-menu-chevron {
  transform: rotate(90deg);
}

.cl-menu-sub {
  overflow: hidden;
  max-height: 0;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transition: max-height .4s var(--ease), padding .4s var(--ease), opacity .22s var(--ease), visibility 0s linear .4s;
}

/* 2차 아코디언이 안에서 얼마나 펼쳐지든 안 잘리도록, 열렸을 때는 넉넉한 상한값만 두고
   실제 높이는 내용에 맞춰 자동으로 줄어듦(= max-height는 상한일 뿐 고정폭이 아님) */
.cl-menu-group.open > .cl-menu-sub {
  max-height: 1400px;
  padding: 8px 0 20px;
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

/* 2차(All/Indoor/Outdoor 등): 하위분류가 있든(cl-menu-toggle2) 없든(cl-menu-l1-link)
   같은 줄높이·글자크기·색으로 통일. 열림/호버 시 패널 끝까지 번지는 배경바로 강조 */
.cl-menu-l1-link,
.cl-menu-toggle2 {
  /* width:100%을 쓰면 margin:0 -32px로 넓힌 만큼 폭이 못 따라가서(퍼센트는 부모 컨텐츠폭 기준)
     오른쪽이 64px 짧아짐 — width는 auto로 두고 margin 음수값만으로 끝까지 번지게 함 */
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 -32px;
  padding: 13px 20px 13px 40px;
  border: none;
  border-left: 3px solid transparent;
  background: none;
  cursor: pointer;
  font-family: 'Pretendard', -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--menu-text-dim);
  text-decoration: none;
  text-align: left;
  transition: background-color .22s var(--ease), color .22s var(--ease), border-left-color .22s var(--ease);
}

.cl-menu-toggle2 {
  width: calc(100% + 64px);
}

.cl-menu-l1-link:hover,
.cl-menu-toggle2:hover,
.cl-menu-l1.open > .cl-menu-toggle2 {
  background: var(--menu-hover-bg);
  border-left-color: var(--accent-bright);
  color: var(--menu-text);
}

.cl-menu-toggle2 .cl-menu-chevron {
  width: 13px;
  height: 13px;
}

.cl-menu-l1.open > .cl-menu-toggle2 .cl-menu-chevron,
.cl-menu-toggle2:hover .cl-menu-chevron {
  color: var(--accent-bright);
  transform: rotate(90deg);
}

.cl-menu-l2 {
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s var(--ease);
  padding-left: 16px;
}

/* 3차(Semi-recessed 등 최하단): 배경 없이 텍스트 상태만으로 선택 표시 —
   평소엔 흐릿하게, 호버 시 볼드 + 밝은 색으로만 반응 */
.cl-menu-l2 a {
  display: flex;
  align-items: center;
  padding: 10px 6px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--menu-text-dimmer);
  text-decoration: none;
  transition: color .2s var(--ease), font-weight .2s var(--ease);
}

.cl-menu-l2 a:hover {
  color: var(--menu-text);
  font-weight: 700;
}

.cl-menu-flat {
  display: flex;
  align-items: center;
  padding: 22px 6px;
  border-bottom: 1px solid var(--menu-line);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--menu-text);
  text-decoration: none;
  font-family: 'Pretendard', -apple-system, sans-serif;
  transition: color .22s var(--ease);
}

.cl-menu-flat:hover {
  color: var(--accent-bright);
}

@media (max-width:480px) {
  .cl-menu-panel {
    padding-top: 60px;
  }

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

  .cl-menu-l1-link,
  .cl-menu-toggle2 {
    margin-inline: -20px;
    padding-left: 28px;
  }

  .cl-menu-toggle2 {
    width: calc(100% + 40px);
  }

  .cl-menu-flat {
    padding: 18px 20px;
  }
}

/* ---------- 3-1. 헤더 통합검색 모달 ---------- */
.cl-search-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}

.cl-search-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.cl-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 14, 12, .55);
  backdrop-filter: blur(3px);
}

/* 패널(흰 박스)과 닫기버튼(박스 바깥, 어두운 백드롭 위)을 한 폭으로 같이 묶는 래퍼 */
.cl-search-shell {
  position: relative;
  width: min(920px, 94vw);
  margin-top: min(9vh, 90px);
}

.cl-search-panel {
  position: relative;
  width: 100%;
  height: fit-content;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  overflow: hidden;
  transform: translateY(-16px);
  transition: transform .35s var(--ease);
}

.cl-search-modal.open .cl-search-panel {
  transform: translateY(0);
}

/* 닫기버튼: 입력창 안이 아니라 패널 바깥(어두운 백드롭 위)에 떠 있게 — 더 크고 굵게 */
.cl-search-close {
  position: absolute;
  top: -54px;
  right: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}

.cl-search-close svg {
  width: 20px;
  height: 20px;
}

.cl-search-close:hover {
  background: rgba(255, 255, 255, .24);
  transform: rotate(90deg);
}

.cl-search-form {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 22px 22px 28px;
  border-bottom: 1px solid var(--line);
}

.cl-search-input {
  flex: 1;
  min-width: 0;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent;
  font-family: 'Pretendard', -apple-system, sans-serif;
  font-size: 18px;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}

/* 진짜 원인: default.css/default_shop.css의 input[type=text]:focus{border:1px solid #558ab7 !important}
   가 이미 !important라서, 같은 !important끼리는 시(specificity)로 승부가 나는데
   그 규칙(속성+가상클래스+타입 선택자, 0-2-1)이 .cl-search-input:focus(0-2-0)보다 더 셌음 —
   그래서 outline만 안 없어지고 파란/회색 테두리가 계속 남아있었음.
   #searchInput은 id 선택자(1-0-0)라 저 규칙보다 무조건 세서 확실히 이김 */
#searchInput:focus,
#searchInput:focus-visible,
#searchInput:-webkit-autofill {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.cl-search-input::placeholder {
  color: var(--muted);
}

/* 검색(제출) 버튼: 입력창 왼쪽의 장식용 아이콘이 아니라, 실제로 누르면 전체 결과 페이지로 이동하는
   버튼이라 뒤(입력창 오른쪽 끝)로 옮김 */
.cl-search-go {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}

.cl-search-go svg {
  width: 19px;
  height: 19px;
}

.cl-search-go:hover {
  background: #f2f0eb;
  color: var(--accent);
}

.cl-search-results {
  overflow-y: auto;
  padding: 6px 0 20px;
}

.cl-search-hint,
.cl-search-empty {
  padding: 46px 26px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}

.cl-search-group {
  padding: 22px 26px 6px;
}

.cl-search-group + .cl-search-group {
  border-top: 1px solid var(--line);
}

.cl-search-group-label {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 14px;
}

/* 검색결과를 리스트가 아니라 실제 상품/프로젝트 화면과 같은 이미지 갤러리(그리드)로 보여줌 */
.cl-search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 22px 16px;
  padding-bottom: 6px;
}

.cl-search-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
}

.cl-search-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 3px;
  overflow: hidden;
  background: #f1efe9;
}

.cl-search-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease);
}

.cl-search-card:hover .cl-search-card-thumb img {
  transform: scale(1.06);
}

/* 외부링크(다른 사이트) 상품 카드 배지 — 목록 페이지의 .cl-product-ext와 같은 톤 */
.cl-search-card-ext {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
}

.cl-search-card-ext svg {
  width: 13px;
  height: 13px;
}

.cl-search-card-name {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.005em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color .25s var(--ease);
}

.cl-search-card:hover .cl-search-card-name {
  color: var(--accent);
}

@media (max-width:560px) {
  .cl-search-shell {
    width: 94vw;
    margin-top: 6vh;
  }

  .cl-search-close {
    top: -48px;
    width: 38px;
    height: 38px;
  }

  .cl-search-form {
    padding: 20px 16px 16px 20px;
  }

  .cl-search-group {
    padding: 18px 20px 4px;
  }

  .cl-search-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 18px 12px;
  }
}

/* ---------- 4. FOOTER ---------- */
#contact {
  background: #fff;
  padding: 70px 5vw 34px;
}

#contact .foot-grid {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}

#contact .foot-contact {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

#contact .fc-col h4 {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 600;
}

#contact .fc-col p,
#contact .fc-col a {
  display: block;
  font-size: 13.5px;
  color: #4a463c;
  line-height: 2;
}

#contact .fc-col a:hover {
  color: var(--accent);
}

#contact .foot-bottom {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-top: 24px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 12px;
}

#contact .foot-bottom .info {
  font-size: 11.5px;
  color: var(--muted);
}

#contact .foot-auth-group {
  display: flex;
  align-items: center;
  gap: 22px;
}

/* 헤더에 있던 인스타/네이버 아이콘을 여기(푸터 우측 끝)로 옮김 —
   margin-left:auto로 같은 줄(.foot-bottom) 안에서 오른쪽 끝까지 밀어냄 */
.foot-social {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.foot-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: transparent;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}

.foot-social-btn svg {
  width: 18px;
  height: 18px;
}

.foot-social-btn .naver-n {
  font-size: 15px;
}

.foot-social-btn:hover {
  background: #f2f0eb;
  color: var(--accent);
}

.foot-auth {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  opacity: .8;
  transition: opacity .3s var(--ease), color .3s var(--ease);
}

.foot-auth svg {
  width: 24px;
  height: 24px;
}

.foot-auth span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.foot-auth:hover {
  opacity: 1;
  color: var(--accent);
}

.foot-admin-home {
  gap: 6px;
}

.foot-admin-home svg {
  width: 18px;
  height: 18px;
}

.foot-admin-home span {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
}

/* ---------- 5. BACK TO TOP ---------- */
.to-top {
  position: fixed;
  /* 푸터 우측 끝(.foot-social, 5vw 인셋)과 세로로 겹치지 않게 더 바깥(우측)으로 밀어냄 */
  right: 24px;
  bottom: 32px;
  z-index: 450;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: #f2f0eb;
  color: #a6a196;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), background .3s var(--ease);
}

.to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.to-top:hover {
  background: #e8e4d9;
  color: #8a8577;
}

.to-top svg {
  width: 16px;
  height: 16px;
}

/* ---------- 6. 쇼핑몰 메인 (분류 타일) ---------- */
#wrapper,
#container {
  background: #fff;
}

#aside {
  display: none;
}

#container .is_index {
  margin-left: 0 !important;
}

/* 그누보드 기본 #container에는 상단 마진(20px, default.css)이 항상 깔려있는데, 우리가 만든
   페이지들은 전부 자기 첫 블록의 padding-top으로 고정헤더 클리어런스를 스스로 계산해서 준다
   (히어로/.cl-plain-title=220px, 목록=자체 padding 등). 그 위에 이 20px이 그대로 더 얹히면
   페이지마다(특히 게시판형 default.css 기반 vs 쇼핑몰형 default_shop.css 기반, 후자는 원래
   이 마진이 없음) 위쪽 여백이 들쑥날쑥해짐 — 자체 상단 클리어런스를 가진 페이지들은 여기서
   공통으로 이 마진을 없애 통일한다.
   (참고: 컨텐츠관리 페이지는 항상 숨겨진 #container_title(h2)가 먼저 오므로 직계자식 결합자
   `>` 로는 안 걸림 — 후손 선택자로 씀) */
#container:has(.cl-sub-hero),
#container:has(.cl-plain-title),
#container:has(.cl-partner-section),
#container:has(.cl-dl-section) {
  margin-top: 0;
}

/* 등록된 배너로 대체되는 서브 히어로 (분류 상세와 동일한 스타일 재사용) */
.cl-sub-hero {
  position: relative;
  height: 38vh;
  min-height: 280px;
  max-height: 440px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cl-sub-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 9, 7, .28) 0%, rgba(10, 9, 7, .12) 45%, rgba(10, 9, 7, .42) 100%);
}

.cl-sub-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 0 5vw;
  font-family: 'Pretendard', -apple-system, sans-serif;
  text-align: center;
}

.cl-sub-title {
  font-size: clamp(28px, 3.6vw, 26px);
  font-weight: 600;
  letter-spacing: .10em;
  margin: 0;
}

/* 내용페이지(About/People) 히어로 전용: 킥커 + 대문자 타이틀 */
.cl-sub-kicker {
  font-size: 13px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent-bright);
  font-weight: 600;
  margin: 0 0 14px;
}

.cl-sub-title--upper {
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* 배너 히어로가 없을 때 쓰는 기본 타이틀 — 사이트 전체(About/Contact/People/Products/
   Projects/Download)에서 공유하는 단 하나의 타이틀 스타일. 예전엔 페이지마다
   .cl-plain-title(199/85) / .cl-shop-hero(220/40) / .cl-cat-title-plain(220/76, 160/76 등)로
   따로 정의돼있어서 페이지마다 여백이 제각각이었음 — 여기 하나로 통일하고, 각 페이지의
   전용 클래스(.cl-shop-hero, .cl-cat-title-plain 등)는 풀블리드 레이아웃 처리용으로만 남겨둠
   (마크업에 .cl-plain-title 을 같이 붙여서 타이포/여백은 여기서, 레이아웃은 거기서 가져옴) */
.cl-plain-title {
  text-align: center;
  padding: 220px 5vw 40px;
  font-family: 'Pretendard', -apple-system, sans-serif;
}

/* About 히어로 타이틀(.cl-vision-title, "Designing Light. Defining Space.")과 완전히 동일한
   스타일 — 여러 폰트(Josefin Sans/Outfit/Gabarito/Fraunces)를 시도했지만 결국 이게 제일
   좋다고 하셔서 그대로 맞춤. Pretendard, 굵게, 타이트한 자간, 원래 대소문자 그대로(강제 변환 없음) */
.cl-plain-title h1 {
  font-family: 'Pretendard', -apple-system, sans-serif;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-transform: lowercase;
  margin: 0;
  color: var(--ink);
}

/* 첫 글자만 대문자, 나머진 소문자 — DB에 저장된 원래 대소문자와 무관하게 항상 이렇게 나옴 */
.cl-plain-title h1::first-letter {
  text-transform: uppercase;
}

.cl-sub-hero,
.cl-shop-hero,
.cl-shop-section-head,
.cl-shop-tiles {
  position: relative;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
}

.cl-shop-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 40px 5vw 0;
  font-family: 'Pretendard', -apple-system, sans-serif;
}

.cl-shop-section-head h2 {
  font-size: 13px;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.cl-shop-section-head .cl-shop-count {
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
}

.cl-shop-section-head .cl-shop-count b {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}

.cl-shop-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 72px 24px;
  padding: 24px 5vw 110px;
  font-family: 'Pretendard', -apple-system, sans-serif;
}

.cl-shop-tile-img {
  position: relative;
  display: block;
  aspect-ratio: 5/4;
  overflow: hidden;
  border-radius: 2px;
  background: #f4f2ec;
}

.cl-shop-tile-img1,
.cl-shop-tile-img2 {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s var(--ease), opacity .5s var(--ease);
}

.cl-shop-tile-img:hover .cl-shop-tile-img1,
.cl-shop-tile-img:hover .cl-shop-tile-img2 {
  transform: scale(1.1);
}

/* 2번째 이미지(상단내용 에디터에 2장 넣었을 때만 존재)는 1번째 위에 겹쳐뒀다가
   오버 시 페이드인 — 2번째가 없는 분류는 이 요소 자체가 없어서 그냥 대표이미지 그대로 */
.cl-shop-tile-img2 {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.cl-shop-tile-img:hover .cl-shop-tile-img2 {
  opacity: 1;
}

/* 오버 시 이미지 위에 어둡게 깔리는 그라디언트 + 가운데 "+"/타이틀 오버레이 */
.cl-shop-tile-img::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10, 9, 7, 0) 45%, rgba(10, 9, 7, .55) 100%);
  opacity: 0;
  transition: opacity .4s var(--ease);
}

.cl-shop-tile-img:hover::after {
  opacity: 1;
}

.cl-shop-tile-hover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  pointer-events: none;
}

.cl-shop-tile-img:hover .cl-shop-tile-hover {
  opacity: 1;
  transform: translateY(0);
}

.cl-shop-tile-plus {
  font-size: 56px;
  font-weight: 100;
  line-height: 1;
}

.cl-shop-tile-hover-name {
  font-size: 18px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
}

.cl-shop-tile-body {
  padding-top: 18px;
}

.cl-shop-tile-name {
  display: block;
  color: var(--ink);
  font-size: 16.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 800;
  transition: color .3s var(--ease);
}

.cl-shop-tile-name:hover {
  color: var(--accent);
}

.cl-shop-tile-subs {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.cl-shop-tile-subs a {
  font-size: 14.5px;
  letter-spacing: .02em;
  color: var(--muted);
  transition: color .3s var(--ease);
}

.cl-shop-tile-subs a:hover {
  color: var(--accent);
}

/* ---------- 7. RESPONSIVE ---------- */
@media (max-width:940px) {
  #mainNav .navlinks {
    display: none;
  }
}

@media (max-width:900px) {
  .cl-shop-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:700px) {
  .hero .scrollcue {
    display: none;
  }
}

@media (max-width:560px) {
  .cl-shop-tiles {
    grid-template-columns: 1fr;
  }
}
