/* font */
@font-face {
  font-family: "NanumSquareNeo";
  src: url("font/NanumSquareNeoOTF-Lt.otf");
  font-weight: 100;
}

@font-face {
  font-family: "NanumSquareNeo";
  src: url("font/NanumSquareNeoOTF-Rg.otf");
  font-weight: 300;
}

@font-face {
  font-family: "NanumSquareNeo";
  src: url("font/NanumSquareNeoOTF-Md.otf");
  font-weight: 400;
}

@font-face {
  font-family: "NanumSquareNeo";
  src: url("font/NanumSquareNeoOTF-SemiBold.otf");
  font-weight: 500;
}

@font-face {
  font-family: "NanumSquareNeo";
  src: url("font/NanumSquareNeoOTF-Bold.otf");
  font-weight: 700;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'NanumSquareNeo', 'sans-serif';
  color: #1d1d1f;
  background-color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

/* App Banner */
.app-banner {
  background-color: #1d1d1f;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid #ebebec;
}

.app-banner-content {
  text-align: center;
}

.app-banner-text {
  color: white;
  font-size: 15px;
}

.app-banner-text strong {
  font-weight: 500;
}

.close-button-s {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  padding: 0;
}

/* Header */
.header {
  background-color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 80px 0px; 
  min-height: 89px;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: transform 0.3s ease-in-out;
}

/* Header Actions */
.header-actions {
  display: flex;
  position: absolute;
  top: 30px;
  right: 80px;
  align-items: center;
  margin-left: auto;
  gap: 24px;
}

.search-container {
  display: grid;
  grid-template-columns: 0 24px;
  align-items: center;
  width: 24px;
  height: 40px;
  background-color: transparent;
  padding: 0;
  overflow: hidden;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease, padding 0.3s ease;
  border-radius: 4px;
}

.search-container.active {
  width: 140px;
  background-color: #f5f5f5;
  padding: 0 12px;
  grid-template-columns: 1fr 24px;
}

@media (min-width: 1536px) {
  .search-container.active {
    width: 280px;
  }
}

.search-input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  height: 100%;
  font-size: 14px;
  color: #1d1d1f;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.search-container.active .search-input {
  opacity: 1;
}

.search-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  background: none;
  border: none;
}

.header.hide {
  transform: translateY(-100%);
}

.logo-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
}

.logo {
  width: 150px;
  margin-right: auto;
}

.icon-button {
  width: 24px;
  height: 24px;
  padding: 0;
}

.cart {
  position: relative;
}

.cart-count {
  position: absolute;
  top: 0;
  left: 9px;
  font-size: 12px;
  font-weight: 600;
  color: #1d1d1f;
}

/* GNB depth3 디자인 */
/* GNB 영역 */
.nav {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  margin-top: -47px;
  padding-right: 100px;
}

.nav .depth1 {
  display: flex;
  align-items: center;
}

.nav .depth1-title {
  display: block;
  padding: 0 10px;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  font-size: 15px;
  color: #3c3c43;
  transition: color 0.3s;
}
.nav .depth1-title:hover {
  color: #1d1d1f;
}

.nav .depth1-title.event {
display: block;
padding: 5px 12px;
text-decoration: none;
font-weight: 600;
white-space: nowrap;
font-size: 15px;
color: #3c3c43;
border-radius: 25px;
}

.nav .depth1-title.event:hover {
background-color: #f5f5f5;
}

.nav .nav-divider {
  position: relative;
}

.nav .depth1-item:nth-child(5)>a:after {
  position: absolute;
  content: "";
  right: 0px;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
  width: 0.7px;
  height: 14px;
  background-color: #d8d8d9;
}

/* GNB ul,li 불렛 제거 */
.nav ul,
.nav li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  text-decoration: none;
}

/* 메가 메뉴 컨테이너 */
.nav .mega {
  display: none;
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  width: 100vw;
  height: 400px;
  background: #fff;
  z-index: 1000;
}

.nav .depth1-item {
  height: 89px;
  display: flex;
  align-items: center;
  padding-bottom: 20px;
  margin-bottom: -20px;
}

.nav .depth1-item>a {
  position: relative;
}

.nav .depth1-item:hover .mega {
  display: flex;
  justify-content: center;
}

.nav .inner {
  display: flex;
  width: min(100%, 80%);
  margin: 0 auto;
  min-height: 350px;
  position: relative;
}

/* 2Depth: 왼쪽 회색 사이드바 */
.nav .depth2 {
  width: 240px;
  flex-shrink: 0;
}

.nav .depth2-item {
  position: static;
  /* 3Depth가 .inner 기준으로 위치하게 함 */
}

.nav .depth2-item>a {
  display: flex;
  justify-content: space-between;
  padding: 15px 20px;
  font-size: 14px;
  color: #333;
}

/* 2Depth 항목에 마우스를 올렸을 때 */
.nav .depth2-item:hover {
  background-color: #f2f2f2;
}

.nav .depth2-item:hover>a {
  font-weight: bold;
}

/* 화살표 아이콘 생성 (>) */
.nav .depth2-item>a::after {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 1px solid #ccc;
  border-right: 1px solid #ccc;
  transform: rotate(45deg);
  margin-top: 4px;
}

/* 3Depth: 오른쪽 메뉴 영역 */
.nav .depth3 {
  display: none;
  /* 평소엔 숨김 */
  position: absolute;
  line-height: 2;
  top: -17px;
  left: 240px;
  width: calc(100% - 240px);
  height: 100%;
  padding: 25px 40px;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 15px 50px;
}

.depth2-item.active .depth3,
.depth2-item:hover .depth3 {
  display: flex;
}

.nav .depth2:hover .depth2-item.active .depth3 {
  display: none;
}

.nav .depth2-item:hover .depth3 {
  display: flex !important;
}

.nav .depth3-item a {
  font-size: 14px;
  color: #666;
}

.nav .depth3-item a:hover {
  color: #000;
  text-decoration: underline;
}

/* section */
.section {
  margin-bottom: 60px;
}

.section.collections {
  margin-top: 100px;
}

/* Main */
.main {
  padding-top: 0;
}

/* Swiper */
.section.swiper-container {
  width: 100%;
  overflow: hidden;
  position: absolute;
}

.swiper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.swiper.swiper1 {
  width: 100%;
  height: 500px;
  overflow: visible;
}

.swiper-slide {
  width: 1000px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f1f1f1;
  font-size: 24px;
  font-weight: bold;
  position: relative;
}

.slide-content {
  position: absolute;
  top: 65%;
  left: 100px;
  transform: translateY(-50%);
  color: #fff;
  z-index: 10;
}

.slide-content .title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 15px;
}

.slide-content .desc {
  font-size: 16px;
  margin-bottom: 25px;
  opacity: 0.9;
}

.slide-content .btn-link {
  display: inline-block;
  padding: 10px 25px;
  background: #fff;
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: none;
  display: block;
}

.swiper-navigation-icon {
  color: rgba(64, 64, 64, 0.095);
  font-size: 1px;
}

.swiper-pagination-bullet swiper-pagination-bullet-active {
  color: #1d1d1f;
}

.swiper-pagination-fraction {
  left: 50% !important;
  bottom: 30px !important;
  transform: translateX(-50%) !important;
  width: auto !important;
  min-width: 90px;
  padding: 8px 20px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 25px;
  font-size: 13px;
  font-weight: 500;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.divider {
  color: #fff;
}

/* 현재 번호 강조 */
.swiper-pagination-current {
  color: #fff;
}

.swiper-pagination-total {
  font-weight: bold;
  color: #fff;
}

/* Categories */
.categories {
  max-width: 1450px;
  margin: auto;
  position: relative;
  padding: 0px 40px 80px;
}

/* 개별 아이템 스타일 */
.category-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  gap: 12px;
  background-color: #fff;
  padding: 0 12px;
}

/* Swiper 컨테이너의 높이를 제한 */
.category-swiper {
  padding: 10px 0;
  height: auto !important;
}

.category-link .background {
  width: 90px;
  height: 90px;
  background-color: #f5f5f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.category-link:hover .background {
  background-color: #eeeeee;
}

.category-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.category-link span {
  font-size: 13px;
  color: #333;
  font-weight: 500;
  white-space: nowrap;
}

.swiper-button-next,
.swiper-button-prev {
  color: #1d1d1f;
  transform: scale(0.7);
}

/* swiper 화살표 커스텀 */
.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px !important;
  color: #999;
}

/* New Products Section */
.new-products {
  padding: 0 80px;
}

.new-products h3 {
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 32px;
}

.filter-tabs {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
  overflow-x: auto;
}

.tab {
  font-size: 14.9px;
  color: #9d9da0;
  white-space: nowrap;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s;
}

.tab.active {
  color: #1d1d1f;
  font-weight: 500;
}

.tab:hover {
  color: #1d1d1f;
}

.product-grid.tab-content {
  display: none;
}

.product-grid.tab-content.active {
  display: flex;
}

.tab.active {
  color: #7f0019;
  font-weight: bold;
  border-bottom: 2px solid #7f0019;
  padding-bottom: 5px;
}

.container {
  overflow: hidden;
}

.product-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  white-space: nowrap;
  cursor: grab;
  user-select: none;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.product-grid::-webkit-scrollbar {
  display: none;
}

  /* 클릭 중일 때 꽉 쥔 손바닥 모양 */
.product-grid:active {
  cursor: grabbing;
}
  /* 이미지가 드래그되는 것 방지 */
.article img {
  pointer-events: none;
}

.article {
  flex: 0 0 280px;
  max-width: 280px;
  scroll-snap-align: start;
}

.article .background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article .badge {
  position: absolute;
  top: 280px;
  left: 0;
  background-color: #e1e8f1;
  border: 1px solid #e1e8f1;
  padding: 4px 12px;
  font-size: 11.4px;
  color: #1d1d1f;
}

.article .container {
  padding: 12px 0;
  font-size: 13px;
  color: #1d1d1f;
}

.article .price {
  font-size: 12.3px;
  font-weight: 600;
  color: #1d1d1f;
  margin: 8px 0;
}

.article .rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11.7px;
}

.article .rating img {
  width: 16px;
  height: 16px;
}

.article .rating span:first-of-type {
  color: #9d9da0;
}

.article .rating span:last-of-type {
  color: #9d9da0;
}

.container h4 {
  font-size: 14px;
  font-weight: 500;
}

.container.price {
  font-weight: 600;
}

/* Collections1 */
.collection-container {
  display: flex;
  width: 100%;
  height: auto;
  position: relative;
}

.collection-container.reverse {
  flex-direction: row-reverse;
}

/* [왼쪽] 스크롤 박스 */
.articles-background {
  flex: 1;
  height: auto;
  overflow-y: visible;
  padding: 50px 24px;
  background: #f2f1ed;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.articles-background::-webkit-scrollbar {
  display: none;
}

/* [오른쪽] 고정 박스 */
.sticky-container {
  flex: 1;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow: hidden;
}

/* Collections 이미지 및 텍스트 스타일 */
.sticky-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  width: 100%;
}

.description {
  font-size: 1.1rem;
  font-weight: 300;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.title {
  font-size: 3rem;
  font-weight: 700;
  margin: 0;
}

.featured-article {
  background-color: #fff;
  display: flex;
  flex-direction: column;
}

/* Collections 메인 이미지와 텍스트 설명 */
.article-main-image {
  width: 100%;
  height: 500px;
  overflow: hidden;
  background: #ebebec;
}

.article-main-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.article-descriptions {
  padding: 20px;
  height: 100px;
}

.article-descriptions h3 {
  font-size: 20px;
  font-weight: 500;
  color: #1d1d1f;
  margin-bottom: 12px;
  line-height: 32px;
}

.article-descriptions p {
  font-size: 15px;
  font-weight: 400;
  color: #6d6d72;
  line-height: 1.5;
  margin: 0;
  word-break: keep-all;
  /* 두 줄 넘어가면 ... 처리 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Collections 하단 미니 상품 카드 (3열) */
.product-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 24px 20px 32px;
  align-items: start;
}

.product-card,
.product-image {
  width: 100%;
  height: 129px;
  margin-bottom: 12px;
  overflow: hidden;
}

.product-card,
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-card h4 {
  font-size: 12px;
  font-weight: 400;
  color: #1d1d1f;
  line-height: 14px;
  margin-bottom: 8px;
  min-height: 28px;

  /* 두 줄 넘어가면 ... 처리 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .price {
  font-size: 11.4px;
  font-weight: 600;
  color: #1d1d1f;
  line-height: 13px;
}

.product-card .original-price {
  font-size: 10.9px;
  color: #9d9da0;
  text-decoration: line-through;
  margin-bottom: 4px;
  line-height: 12px;
}

.product-card .discount-price {
  gap: 6px;
  align-items: center;
}

.product-card .discount {
  font-size: 11.7px;
  font-weight: 500;
  color: #7f0019;
  line-height: 13px;
}

/* More Link */
.more-link {
  position: block;
  width: calc(200% + 24px);
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid #d8d8d9;
  text-decoration: none;
  color: #3c3c43;
  font-size: 14.9px;
  line-height: 24px;
}

.more-link:hover {
  background-color: #e5e7eb;
}

/* From MUJI Section */
.from-muji {
  padding: 60px 80px;
}

.from-muji h2 {
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 32px;
}

.grid-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.grid-layout .link {
  position: relative;
  aspect-ratio: 328 / 369;
  overflow: hidden;
  cursor: pointer;
}

.grid-layout .link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.from-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  padding: 24px 20px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block !important;
  box-sizing: border-box;
}

.from-info h4 {
  font-size: 16px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 8px;
  line-height: 1.4;
  word-break: keep-all;
}

.from-info .from-dec {
  font-size: 14px;
  color: #6d6d72;
  line-height: 1.5;
  word-break: keep-all;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.grid-layout .link:hover img {
  transform: scale(1.05);
}

.grid-layout .link:hover .from-info {
  transform: translateY(0);
}

/* 미디어쿼리 1024px==================================== */
@media (min-width: 1024px) {
  .grid-layout .link {
    aspect-ratio: 570 / 720;
  }
}

.more-button {
  display: block;
  width: 220px;
  height: 52px;
  margin: 0 auto;
  background-color: white;
  border: 1px solid #d8d8d9;
  font-size: 15px;
  color: #3c3c43;
  cursor: pointer;
  transition: background-color 0.3s;
}

.more-button:hover {
  background-color: #f5f5f5;
}

/* Footer */
/* 푸터 전체 틀 */
.footer {
  border-top: 1px solid #ebebec;
  padding: 0 80px 60px 80px;
}

/* 상단 가로 메뉴 */
.footer-nav {
  display: flex;
  gap: 30px;
  padding: 30px 0;
  border-bottom: 1px solid #ebebec;
}

/* 3칼럼 컨테이너 */
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 60px;
}

.footer-column {
  flex: 1;
}

/* 왼쪽 칼럼 */
.footer-logo {
  display: block;
  width: 140px;
  height: auto;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
  margin-left: 2px;
}

/* 푸터 중앙, 오른쪽 margin-top */
.center,
.right {
  margin-top: 50px;
}

.center p,
.right p {
  font-size: 12px;
  color: #9d9da0;
  line-height: 1.5;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 40px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border: 1px solid #ebebec;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 오른쪽 칼럼 (고객센터 + 글로벌버튼) */
.customer-safepay {
  margin-top: 10px;
}

.auth-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: #828283;
  text-decoration: underline;
}

.global-site-btn {
  margin-top: 20px;
  padding: 10px 20px;
  width: 200px;
  border: 1px solid #ebebec;
  background: #fff;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}

/* Floating Buttons */
.floating-buttons {
  position: fixed;
  bottom: 40px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 50;
}

.floating-button {
  width: 40px;
  height: 40px;
  background-color: white;
  border: 1px solid #f5f5f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1px;
}

.bottom-nav {
  display: none;
}

/* 미디어쿼리 1279px==================================== */
@media (max-width: 1279px) {
  .articles-background {
    grid-template-columns: 1fr;
  }

  .featured-article {
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .featured-article img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .article-main-image img {
    height: 100%;
  }

  .product-cards {
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    gap: 0px;
    padding: 24px 20px 10px;
  }

  .product-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    padding: 0px 0;
    margin-bottom: 0px;
    width: 50%;
    height: auto;
  }

  .product-image,
  .product-image img {
    width: 80px;
    height: 80px;
  }

  .more-link {
    width: 100%;
  }

  /* From MUJI========================================== */
  .grid-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
  }

  .grid-layout .link {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
  }

  .grid-layout .link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
  }

  .grid-layout .link:hover img {
    transform: scale(1.05);
  }
}

/* 미디어쿼리 1039px==================================== */
@media (max-width: 1039px) {
  .warp {
    overflow-x: auto;
  }

  .warp::-webkit-scrollbar {
    display: none;
  }

  .header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    height: 95px;
    padding: 0px 10px;
    box-sizing: border-box;
    background-color: #fff;
  }

  /* 첫 번째 줄: 로고(왼쪽)와 아이콘(오른쪽) */
  .logo {
    display: flex;
    align-items: center;
    padding: 0px 10px;
    width: 130px;
    height: 56px;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 0px;
    right: 35px;
  }

  /* 두 번째 줄: nav 메뉴 (한 줄 전체 차지) */
  .warp {
    width: 100%;
    height: 39px;
    display: flex;
    align-items: center;
    background-color: #fff;
  }

  .nav {
    margin-top: -2px;
  }

  .nav .depth1 {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0px;
    width: 100%;
  }

  .nav .depth1-title {
    font-size: 13px;
    padding: 0 13px;
  }

  .nav .depth1-item {
    height: 0px;
  }

  .depth1-item:nth-child(7) {
    order: 1;
  }

  /* From MUJI */
  .depth1-item:nth-child(6) {
    order: 2;
  }

  /* MUJI Support */
  .depth1-item:nth-child(1) {
    order: 4;
  }

  /* BEST */
  .depth1-item:nth-child(2) {
    order: 5;
  }

  /* 의복 */
  .depth1-item:nth-child(3) {
    order: 6;
  }

  /* 생활 */
  .depth1-item:nth-child(4) {
    order: 7;
  }

  /* 식품 */
  .depth1-item:nth-child(5) {
    order: 8;
  }

  /* MUJI GIFT CARD */
  .nav .mega {
    display: none !important;
  }

  /* 장바구니 배지 디테일 */
  .cart-count {
    top: 2px;
    left: 10px;
    font-size: 11px;
  }

  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 48px;
    box-shadow: 1px 2px 30px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 9999;
  }

  .nav-item {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 24px;
    color: #333;
  }

  .nav-item img {
    width: 24px;
    height: 24px;
    align-items: center;
  }

  .nav .depth1-item:nth-child(5)>a:after {
    left: -207px;
  }

  /* 마이페이지 아이콘 숨기기 */
  .header-actions .icon-button[aria-label="마이페이지"] {
    display: none !important;
  }

  /* container 1줄로========================================== */
  .collection-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
  }

  .collection-container.reverse {
    flex-direction: column;
  }

  .articles-background {
    width: 100%;
    flex: none;
    padding: 40px 20px;
  }

  .sticky-container {
    width: 100%;
    flex: none;
    height: 60vh;
    position: relative;
  }
  .floating-buttons {
  bottom: 80px;
  transition: 0.5s;
  }

/* footer========================================== */
.footer {
  padding: 30px 20px 80px;
  text-align: left;
}

/* 최상단 메뉴 가로 나열 */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
  border-bottom: 1px solid #f2f2f2;
  padding-bottom: 15px;
}

.footer-nav a {
  font-size: 11px;
  color: #333;
  font-weight: bold;
}

/* 컬럼 세로 배치 */
.footer-content {
  display: block;
}

/* 로고 및 상단 링크 */
.footer-column.left .logo img {
  width: 90px;
  margin-bottom: 15px;
}

.footer-links {
  margin-bottom: 30px;
}

.footer-links a {
  display: block;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 12px;
}

/* 아코디언 트리거 스타일 (가상 요소 활용) */
.footer-column.center {
  border-top: 1px solid #f2f2f2;
  padding: 15px 0;
  text-align: center;
  cursor: pointer;
}

/* 클릭 전 제목 */
.footer-column.center::before {
  content: "무인양품(주) 사업자정보 ⌵";
  font-size: 12px;
  color: #999;
}

/* 숨길 내용들 (center의 정보 + right 전체) */
.company-info,
.social-links {
  display: none;
  text-align: left;
}

.footer-column.right {
  display: none;
}

/* 클릭 시(active 클래스) 보여주기 */
.footer-column.center.active::before {
  content: "무인양품(주) 사업자정보 ⌃";
}

.footer-column.center.active .company-info,
.footer-column.center.active .social-links,
.footer-column.center.active~.footer-column.right {
  display: block;
}

/* 상세 정보 글씨 스타일 */
.company-info p,
.customer-service p {
  font-size: 11px;
  color: #999;
  line-height: 1.6;
  margin: 3px 0;
}

/* SNS 아이콘 가로 나열 */
.social-links {
  display: flex !important;
  gap: 15px;
  margin: 15px 0;
}

.social-links i {
  font-size: 18px;
  color: #333;
}

/* 글로벌 사이트 버튼 */
.global-site-btn {
  width: 100%;
  border: 1px solid #e0e0e0;
  background: #fff;
  padding: 12px;
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
}

/* ====================================
popup */
.popup-container {
  position: fixed;
  display: flex;
  z-index: 11000;
  top: 10%;
  left: 50%;
  width: 500px;
  height: 200px;
  justify-content: center;
  align-items: center;
  font-family: sans-serif;
}

.popup {
  font-family: "Segoe UI";
  position: relative;
  background: white;
  text-align: left;
  width: 430px;
  height: 270px;
  font-size: 1em;
  transform: translate(-50%, 43%);
  box-shadow: 1px 2px 30px rgba(0, 0, 0, 0.5);
  padding: 2em;
  border-radius: 1em;
}

.top-controls {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  gap: 10px;
  z-index: 20;
}

.status-icon {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 70px;
  background-color: #f5f5f5;
  border-radius: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.status-icon img {
  color: white;
  width: 60px;
}

.popup #btn {
  position: relative;
  background-color: #1d1d1f;
  border-radius: 12px;
  padding: 15px 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f5f5f5;
  font-size: 1em;
  font-weight: 700;
  width: 70%;
  left: 15%;
  transition:
    transform 0.2s,
    background-color 0.2s;
  margin-top: 14px;
  cursor: pointer;
  border: none;
}

.popup h1 {
  font-family: "paperlogy";
  margin-top: 12px;
}

.popup p {
  font-family: "paperlogy";
  margin-top: 12px;
}

.popup #btn:hover {
  background-color: #7f0019;
  transform: translateY(-2px);
}

.dont-show-again {
  font-family: "paperlogy";
  color: #9d9da0;
  margin-top: 18px;
  font-size: 13px;
  cursor: pointer;
}

#todayCheck {
  display: none;
}

#todayCheck+label::before {
  content: "";
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 1px solid #ccc;
  border-radius: 2px;
  margin-right: 8px;
  margin-bottom: 2px;
  vertical-align: middle;
  background-color: #fff;
  transition: all 0.2s;
  cursor: pointer;
}

#todayCheck:checked+label::before {
  content: "V";
  color: #fff;
  background-color: #7f0019;
  border-color: #7f0019;
  font-size: 12px;
  text-align: center;
  line-height: 18px;
}

.dont-show-again:hover label {
  color: #333;
}

/* ====================================
search popup */
.search-popup {
    position: fixed; /* Floating */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centering */
    z-index: 101;
    width: 90%;
    max-width: 800px;
    background-color: rgba(255, 255, 255, 0.86); /* From user classes */
    backdrop-filter: blur(12px); /* From user classes, increased for effect */
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: none; /* Hidden by default */
    border: 1px solid #eee;
}
/* Shown state */
.search-popup.On, .overlay.On {
    display: block;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    display: none;
}

/* Popup Content Layout */
.popup-content {
    padding: 40px;
}

.columns-wrapper {
    display: flex;
    border-bottom: 1px solid #eee;
    padding-bottom: 40px;
    gap: 0;
}

.column {
    flex: 1;
    padding: 0 40px;
}

.left-column {
    border-right: 1px solid #eee;
}

/* Typography matching image */
.column h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #111;
}

.empty-state p {
    color: #999;
    font-size: 16px;
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 30px;
}

.update-info {
    font-size: 12px;
    color: #999;
}

/* Popular List Styling */
.popular-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popular-list li {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #333;
}

.rank {
    width: 25px;
    font-weight: 700;
    color: #7f0019; /* Highlight rank with MUJI Red */
}

.rank:nth-child(n+4) {
    color: #333; /* Only top 3 are highlighted */
}

.text {
    flex: 1;
    font-weight: 500;
}

.trend {
    color: #ccc;
    font-weight: 300;
}

/* Footer Close Button */
.popup-footer {
    padding: 20px 0 0;
    display: flex;
    justify-content: flex-end;
}

.close-button {
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
}

.close-button:hover {
    color: #000;
    text-decoration: underline;
}

/* Hero Section */
.hero-section {
    padding: 100px 20px;
    text-align: center;
}