:root {
    --color-primary-lightest: #FCFAEE;
    --color-primary-lighter: #F7F4D4;
    --color-primary-light: #EADCA6;
    --color-primary: #DDC66F;
    --color-primary-dark: #DCA628;

    --color-secondary-blue-lightest: #BEC8D0;
    --color-secondary-blue-light: #7D97A1;
    --color-secondary-blue: #5C6B73;
    --color-secondary-blue-dark: #31444E;
    --color-secondary-blue-darker: #242729;
}

*{
    box-sizing: border-box;
}

body {
    margin: 0 ;
    overflow-x: hidden;
    font-family: 'Arial', sans-serif;
}

header {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

header nav {
  width : 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  box-shadow: 0 0px 8px rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
  font-size: 24px;
  background-color: #fff;
}

header nav .Logo {
  margin-left: 250px;
}

header nav .Logo img {
  height: 50px;
}

header nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

header nav ul li {
  margin: 0;
  padding: 0 36px; 
  display: flex;
  align-items: center;
}

header nav ul li a {
  display: block;
  height: 80px;
  line-height: 80px;  /* ✅ 핵심: 글자 한 줄일 때 수직 정렬 */
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

header nav #auth-button {
    border: none;
    color: #DDC66F;
    font-size: 20px;
    cursor: pointer;
}

header nav ul li  {
    padding: 0 36px;
    margin: 0;
    display: flex;
    text-align: center;
    color: #DDC66F;
    font-weight: 700;
    justify-content: center;
    height: 80px;
}

.content {
    max-width: 1420px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 20px;
}

.top{
    margin-top: 96px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.mt {
    font-size: 48px;
}

.content .top form {
    display: inline-flex;
    flex-direction: column;
    vertical-align: bottom;
    position: relative;
}

.content .top form input {
    width: 820px;
    height: 80px;
    border: 3px solid #000;
    border-radius: 70px;
    box-sizing: border-box;
    padding-left: 100px;
    padding-right: 20px;
    font-size: 24px;
}

.content .top form span  {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #000;
}

.bottom {
    width: 100%;
    max-width: 1420px;
    height: 600px;
    border-radius: 24px;
    box-sizing: border-box;
    padding: 0px;
    background-color: gray;
    margin: 0 auto;
    margin-top: 60px;
    overflow: hidden;
}

.swiper {
    width: 100%;
    height: 100%;
    border-radius: 24px;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #444;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}

.swiper-button-next,
.swiper-button-prev {
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-top: -25px;
    z-index: 10;
    transition: 0.2s, color 0.2s;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
    color: #a8a8a8;
    opacity: 0.2;
    transition: opacity 0.2s;
}


.swiper-button-next:hover:after,
.swiper-button-prev:hover:after {
    color: #a8a8a8;
    opacity: 0.6;
}

.swiper-pagination {
    bottom: 20px;
}

.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.7;
    width: 12px;
    height: 12px;
}

.swiper-pagination-bullet-active {
    background: #DDC66F;
    opacity: 1;
}

.recoti {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 120px;
    margin-bottom: 20px;
    align-items: flex-end; /* 전체 컨테이너에서 아래 정렬 */
}

.recoti span {
    font-size: 38px;
    font-weight: 500;
    color: #000;
    align-self: flex-start; /* span은 위쪽에 붙음 */
}

.recoti #tab-menu {
    display: flex; /* inline-flex도 상관없음 */
    list-style-type: none;
    margin: 0;
    padding: 0;
    gap: 12px;
    margin-top: 10px;
}

.recoti #tab-menu li {
    padding-left: 32px;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
}

.recoti #tab-menu .tab.active {
    font-weight: bold;
}

.recoti #tab-menu li:hover {
    color: var(--color-primary-dark);
}

.recoti #tab-menu li.active {
    color: var(--color-primary-dark);
    font-weight: 600;
    border-bottom: 2px solid var(--color-primary-dark);
}


.prolist {
    display: flex;
    max-width: 1420px;
}

.prolist a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 258.5px;
    height: 258.5px;
    background-color: #fff;
    box-sizing: border-box;
    padding: 0;
    border: none;
    border-radius: 8px;
    margin-top: 32px;
    box-shadow: 0 0px 8px rgba(0, 0, 0, 0.12);
}

.prolist a img{
    width: 80%;
    height: 80%;
    object-fit: contain;
    border-radius: 8px;
 
}

/* 새로운 스타일 */
#products-container {
    margin-bottom: 2rem;
}

.hidden {
    display: none;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

footer {
    width: 100%;
    height: 54px;
    background-color: #fff;
    display: flex;  
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #666;
    border-top: 1px solid #E6E6E6;
}

footer .copy {
    margin-left: 200px;
    
}



/* 반응형 스타일 */
@media (max-width: 1460px) {
    .content {
        max-width: 90%;
    }
    
    .top {
        flex-direction: column;
        align-items: center;
    }
    
    .mt {
        margin-bottom: 30px;
        text-align: center;
    }
    
    .content .top form input {
        width: 100%;
        min-width: 300px;
    }
    
    .recoti {
        flex-direction: column;
        align-items: center;
    }
    
    .recoti span {
        margin-bottom: 20px;
    }
    
    .recoti ul {
        margin-top: 10px;
    }
    
    .bottom {
        max-width: 100vw;
        height: 45vw;
        min-height: 220px;
        border-radius: 16px;
        margin-left: 0;
        margin-right: 0;
    }
    .swiper {
        border-radius: 16px;
    }
}

@media (max-width: 768px) {
    header nav .Logo {
        margin-left: 20px;
    }
    
    header nav button {
        margin-right: 20px;
    }
    
    .recoti ul li {
        padding-left: 15px;
        padding-right: 15px;
        font-size: 18px;
    }
    
    .bottom {
        height: 38vw;
        min-height: 120px;
        border-radius: 10px;
        margin-top: 24px;
    }
    .swiper {
        border-radius: 10px;
    }
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #E6E6E6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    margin-top: 10px;
    z-index: 1000;
}

.nav-label {
    position: absolute;
    font-family: 'Pretendard';
    font-size: 24px;
    display: flex;
    align-items: center;
    top: 20px;
}
.nav-label.chatbot {
    left: 940px;
    font-weight: 700;
    color: #DDC66F;
    cursor: pointer;
}
.nav-label:hover {
    color: #EADCA6;
    background-color: rgba(234, 220, 166, 0.1);
}

.nav-label.mypage {
    left: 1055px;
    font-weight: 700;
    color: #DDC66F;
    cursor: pointer;
}

/* === NAVIGATION LAYOUT === */
.nav-inner {
  width: 100%;
  max-width: 1420px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding-left: 0;
  padding-right: 0;
}

.nav-logo {
  flex: 0 0 auto;
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.nav-center {
  flex: 1 1 0%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8rem;
  font-size: 1.25rem;
}

.nav-auth {
  flex: 0 0 auto;
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

@media (min-width: 1920px) {
  .nav-inner {
    max-width: 1420px;
    margin-left: auto;
    margin-right: auto;
  }
  .nav-menu {
    gap: 8rem;
  }
}

@media (max-width: 1420px) {
  .nav-inner {
    max-width: 100vw;
    padding-left: 16px;
    padding-right: 16px;
  }
  .nav-logo {
    justify-content: flex-start;
  }
  .nav-center {
    justify-content: center;
  }
  .nav-auth {
    justify-content: flex-end;
  }
  .nav-menu {
    gap: 6rem;
    font-size: 1.1rem;
  }
}

@media (max-width: 1024px) {
  .nav-inner {
    padding-left: 8px;
    padding-right: 8px;
  }
  .nav-menu {
    gap: 4rem;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .nav-inner {
    padding-left: 4px;
    padding-right: 4px;
  }
  .nav-menu {
    gap: 4rem;
    font-size: 0.95rem;
  }
  .nav-logo img {
    height: 2.2rem;
  }
  .nav-auth a {
    font-size: 1rem;
  }
}

@media (max-width: 767px) {
  .nav-menu a,
  .nav-menu button {
    min-width: 64px;
    max-width: 120px;
    white-space: nowrap;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 4px;
    padding-right: 4px;
  }
  .nav-menu button {
    min-width: 90px;
  }
}

/* Remove old nav spacing rules that conflict */
header nav .Logo,
header nav ul li,
header nav ul {
  margin: 0 !important;
  padding: 0 !important;
}

/* Center the mypageDropdown below the 마이페이지 button */
.nav-menu .dropdown-menu {
  left: 50% !important;
  transform: translateX(-50%);
  min-width: 10rem;
  width: max-content;
}

/* Responsive styles for .top (검색 안내 + 검색폼) */
.top {
  margin-top: 96px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.mt {
  font-size: 48px;
}
.content .top form {
  display: inline-flex;
  flex-direction: column;
  vertical-align: bottom;
  position: relative;
}
.content .top form input {
  width: 820px;
  height: 80px;
  border: 3px solid #000;
  border-radius: 70px;
  box-sizing: border-box;
  padding-left: 100px;
  padding-right: 20px;
  font-size: 24px;
}

@media (max-width: 1024px) {
  .top {
    flex-direction: column;
    align-items: center;
    margin-top: 48px;
  }
  .mt {
    font-size: 32px;
    margin-bottom: 20px;
    text-align: center;
  }
  .content .top form input {
    width: 90vw;
    min-width: 220px;
    max-width: 500px;
    height: 56px;
    font-size: 18px;
    padding-left: 48px;
    padding-right: 12px;
  }
  .content .top form span img {
    width: 24px;
    height: 24px;
  }
}
@media (max-width: 767px) {
  .top {
    margin-top: 24px;
    gap: 8px;
  }
  .mt {
    font-size: 20px;
    margin-bottom: 12px;
    text-align: center;
  }
  .content .top form input {
    width: 90vw;
    min-width: 120px;
    max-width: 320px;
    height: 38px;
    font-size: 14px;
    padding-left: 36px;
    padding-right: 8px;
  }
  .content .top form span img {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 1460px) and (min-width: 1024px) {
  .top {
    flex-direction: column;
    align-items: center;
  }
  .mt {
    text-align: center;
    margin-bottom: 20px;
  }
  .content .top form {
    align-items: center;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .recoti #tab-menu li {
    font-size: 16px;
  }
  footer {
    flex-direction: column;
    height: auto;
    padding: 16px 0;
    font-size: 14px;
    text-align: center;
  }
  footer .mail, footer .copy {
    margin: 0;
    display: block;
    width: 100%;
    padding: 2px 0;
  }
  footer .copy {
    margin-left: 0;
    margin-top: 4px;
  }
}