
/* 공통 초기화 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "pretendard", sans-serif;
  color: #232323;
  background-color: #fff;
  line-height: 1.6;
  height: 100%;
}


.main-nav{
    max-width: 1660px;
    margin: 0 auto;
    width: 100%;
}

/* 언어 선택 바 */
.logo{
    width: 440px;
    align-items: center;
    display: flex;
    cursor: pointer;
}
.logo img{
    width: 100%;
}
.language-bar {
  padding: 0.5rem 0rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1660px;
  margin: 0 auto;           
  width: 100%;      
}

.language-bar ul {
  display: inline-flex;
  gap: 1rem;
  list-style: none;
}

.language-bar a {
  text-decoration: none;
  color: #232323;
  font-size: 16px;
  font-weight: 400;
}
.language-bar li a {
  display: inline-flex;
  align-items: center;   /* 세로 가운데 정렬 */
  gap: 6px;              /* 아이콘과 텍스트 간격 */
  text-decoration: none;
  color: #000;
}

.language-bar li a img {
  height: 28px;          /* 적절한 크기 조정 */
  display: block;        /* 여백 제거 */
}

.hamburger {
  width: 36px;
  height: 28px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #333;
  transition: all 0.3s ease;
  margin-bottom: 6px;
}

/* 헤더 */
.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #363636;
  padding: 4px 0;
}

.main-header .logo img {
  height: 40px;
}

.main-nav ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  gap: 0.2rem;
}

.main-nav ul li.nav_padding{
 padding: 0 16px;
}


.main-nav li, .main-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
}

.main-nav a:hover{
  color: #FF3A47;
}

.main-nav a img{
    width: 100%;
}

.mobile-nav{
    display: none;
}
.mobile-lang-menu{
    display: none;
}

/* 푸터 */
.main-footer {
  background: #333;
  color: #ccc;
  padding: 3rem 0;
}

.footer-inner {
  max-width: 1660px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-self: start;
  gap: 3em;
}
.footer-logo{
  cursor: pointer;
}
.footer-logo img {
  height: 40px;
  margin-bottom: 1rem;
}

.footer-info p,
.footer-info a {
  font-size: 14px;
  margin-bottom: 0.7rem;
  color: #fff;
  line-height: 1.5;
}

.footer-info p:nth-child(3){
    color: #a2a2a2;
    display: inline-block;
    padding-right: 12px;
}

.footer-info p:nth-child(4){
    font-weight: 500;
    display: inline-block;
}

/*사이드 광고 영역*/
.side-brand-links {
  position: absolute;
  top: 156px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 999;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}
.side-links-left {
  position: absolute;
  top: 454px;
  left: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 999;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}
.side-links-right {
  position: absolute;
  top: 454px;
  right: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 999;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}
.side-links-sleft {
  position: absolute;
  top: 220px;
  left: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 999;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}
.side-links-sright {
  position: absolute;
  top: 220px;
  right: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 999;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}
.list-top{
  top: 804px;
}

.brand-item {
  display: flex;
  align-items: end;
  border-radius: 12px;
  width: 200px;
  height: 124px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  padding-bottom: 12px;
  font-weight: 600;
}
.brand-item span{
  width: 100%;
  text-align: center;
  font-size: 20px;
}
  /* 모바일 사이드 광고 영역*/
    .mobile-ad-wrapper {
    display: none;
    background-color: #f9f9f9;
    padding: 1rem;
    }

    .ad-toggle-button {
    width: 100%;
    padding: 1rem;
    font-size: 16px;
    background-color: #333;
    color: #fff;
    border: none;
    cursor: pointer;
    margin-bottom: 1rem;
    border-radius: 8px;
    }

    .mobile-ad-slides {
    display: none;
    flex-direction: row;
    gap: 1rem;
    }

    .mobile-ad-slides .brand-item {
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    }

    /* 메인 페이지에서만 스크롤 전엔 숨기고, 지나면 보이게 */
    .side-brand-links.hidden-on-main {
      opacity: 0;
      pointer-events: none;
    }



    /* 공통 페이지 표시*/

    .page-location2 {
      max-width: 1400px;
      font-size: 16px;
      color: #666;
      padding-top: 60px;
      display: flex;
      align-items: center;
      gap: 6px;
      width: 100%;
      text-align: left;
      margin: 0 auto;
    }

    .page-location2 span {
      color: #ccc;
    }



@media (max-width: 1660px) {
    .logo{
        width: 340px;
    }
    .main-header {display: none;
    }
    .hamburger {display: block;
    }
    .language-bar {padding: 1rem 1rem;
        position: fixed;
        top: 0;
        z-index: 99;
        background-color: #fff;
    }
    .language-bar ul {
        display: none;
    }
    .main-footer {
    padding: 3rem 1rem;
    }
    .footer-inner{
        display: block;;
    }
    header{
        height: 100%;
    }

    /* 모바일 메뉴 */
    .mobile-header{
        display: none;
        position: fixed;
        top: 80px;
        left: 0px;
        background-color: rgba(1, 1, 1, 0.4);
        z-index: 100;
        width: 100%;
        height: 100%;
    }
    .mobile-nav{
        display:flex;
        padding: 1rem 2rem;
         background-color: rgb(255, 255, 255);
        
    }
    .mobile-nav a{
        text-decoration: none;
        color: #232323;  
    }
    .mobile-nav ul {
        list-style: none;
        border-right: solid 1px #ccc;
        width: 33%;
    }
    .mobile-nav ul:last-child{
        border-right: none;
    }
    .mobile-nav ul li{
        text-decoration: none;
        padding: 8px 0;
        text-align: center;    
    }

    .mobile-lang-menu {
        display: block;
        margin-top: auto;
        padding: 1rem;
        text-align: center;
        background-color: #f9f9f9;
        border-top: 1px solid #ddd;
    }

    .mobile-lang-menu ul {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-lang-menu li a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 16px;
        color: #333;
        text-decoration: none;
    }

    .mobile-lang-menu li a img {
        height: 20px;
        display: block;
    }

    /* 사이드 광고 영역*/
    .mobile-ad-wrapper {
    display: block;
    }

    .side-brand-links{
        display: none;
    }
            
}

@media (max-width: 1000px) {
    .mobile-ad-slides {
    flex-direction: column;
    }
}

@media (max-width: 1660px) {
    .side-links-right{
		display: none;
	}
	.side-links-left{
		display: none;
	}
    .side-links-sright{
		display: none;
	}
	.side-links-sleft{
		display: none;
	}
}
/* =============== 12월 2일 전역 검색창 추가 =============== */

.language-bar {

  display: flex;

  align-items: center;

  gap: 20px;

}



/* 로고는 그대로 */

.language-bar .logo img {

  display: block;

}



/* 검색 영역 */

.global-search {

  flex: 1;                /* 가운데 넓게 */

  max-width: 520px;

}



.global-search form {

  display: flex;

  align-items: center;

}



.global-search-input {

  flex: 1;

  height: 40px;

  padding: 0 12px;

  border: 1px solid #dcdcdc;

  border-right: none;

  font-size: 16px;

}



.global-search-btn {

  width: 80px;

  height: 40px;

  border: none;

  background: #e60012;

  color: #fff;

  font-size: 16px;

  cursor: pointer;

}



/* 언어 메뉴는 오른쪽 정렬 */

.language-bar > ul {

  display: flex;

  align-items: center;

  gap: 12px;

}



/* ======= 모바일 대응 ======= */

@media (max-width: 1660px) {

  .language-bar {

    padding: 8px 12px;

    gap: 10px;

  }



  .language-bar > ul {

    display: none;

  }



  .global-search-input {

    height: 34px;

    font-size: 15px;

  }



  .global-search-btn {

    height: 34px;

    width: 60px;

    font-size: 15px;

  }



  .hamburger {

    margin-left: 4px;

  }

}
@media (max-width: 700px) {



  .search-page {

    padding: 124px 12px 40px !important;

  }



  .language-bar {

    display: flex;

    flex-wrap: wrap;

    /* 줄바꿈 가능 */

  }



  .language-bar .logo {

    order: 1;

  }



  .hamburger {

    order: 2;

    margin-left: auto;

  }



  /* 2줄째: 검색창 전체 폭 */

  .global-search {

    order: 3;

    flex: 0 0 100%;

    /* 한 줄 전체 차지 */

    max-width: none;

    margin-top: 6px;

  }



  .global-search form {

    width: 100%;

  }




}
@media (max-width: 420px) {

    .logo {

        width: 240px;

    }

}