/* version: 2.0 */

/* ----------Page Home --------------- */

/* 基础样式重置 */
html {
  margin: 0px;
}

* {
  margin: 0px;
}

.nav * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: SuisseIntl, sans-serif;
  width: inherit;
  top: 0;
  margin-top: 0;
  padding-top: 0;
  transform: none;
  list-style: none;
  color: #000;
  text-decoration: none;


}

.nav body {
  background-color: #f9f9f9;
  line-height: 1.6;

}

.home-container {
  width: 100%;
  /* 移除固定高度，让内容自然撑开 */
  scroll-snap-type: y proximity;
  /* 改为“接近时吸附”，更柔和 */
  overflow-y: auto;
  /* 用auto替代scroll，无滚动时隐藏滚动条 */

  height: calc(100vh - 142px);

}



.home-section {
  /* 保留吸附对齐，但不强制 */
  height: calc(100vh - 142px);
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  /* 内容垂直居中（可选） */
  justify-content: center;
  scroll-snap-stop: normal;
  /* 不强制必须停在当前页 */


  justify-content: center;
  align-items: center;
  scroll-snap-stop: normal;
  position: relative;
  color: #fff;
}

.herobanner {
  width: 100%;
  height: calc(100vh - 142px);
  overflow: hidden;
  position: relative;
}

.herobanner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 可选：在视频上加半透明遮罩层 */
.herobanner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

/* ========== Collection Section ========== */
.home-section .collection {

  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;

  /* margin: 40px auto; */
  /* background: rgba(255, 255, 255, 0.05); */
  /* border-radius: 20px; */
  /* padding: 40px; */
  /* backdrop-filter: blur(6px); */
  /* transition: transform 0.4s ease, box-shadow 0.4s ease; */
}

.home-section .collection:hover {
  transform: scale(1.02);
  transition: 0.5s ease-out;
}

.collection {
  position: relative;
}

/* 图片与文字 */
.collection img {
  width: 100%;
  height: 100%;
  object-fit: cover;

}

.collection-name {
  font-size: 2rem;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 1px;
  color: white;
  position: absolute;
  /* 绝对定位，相对于 .collection */
  bottom: 20px;
  left: 15px;
  /* 增加文字区域的内边距，提升可读性 */


}

/* 针对不同背景的文字可见性优化 */
.home-section[style*="#f8b400"] .collection-name {
  color: #222;
}

.home-section[style*="#00bcd4"] .collection-name {
  color: #fff;
}

/* ========== 响应式调整 ========== */
@media (max-width: 900px) {
  .home-section .collection {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .collection img {
    aspect-ratio: 16 / 9;
  }

  .collection-name {
    font-size: 1.5rem;
  }
}



/* navigation menu */

.nav {
  display: flex;
  flex-direction: column;
  height: min-content;
  padding: 20px 0px 4px 0px;
  border-bottom: #eeeeee 1px solid;
  position: relative;
  width: 100%;
  position: relative;
  /* 固定在顶部 */
  top: 0;
  left: 0;
  z-index: 100;
  /* 最高层级，覆盖所有内容 */
  background: white;
}

.nav-header {
  display: flex;
  justify-content: space-between;
  width: 95%;
  margin: auto;

}

.currency {
  flex: 1;
  text-align: center;

}

.logo {
  text-align: center;
  flex: 3;
  height: 30px;
}

.logo>img {
  width: auto;
  height: 30px;
  justify-content: center;
}

.logo>svg {
  width: auto;
  height: 100%;
  max-width: 500px;
  /* 限制最大宽度 */
}

.info {
  display: flex;
  justify-content: flex-end;
  flex: 1;
  height: 30px;


}

.info>div {
  display: inline-flex;
  flex-direction: row;
  flex-basis: content;
  align-items: center;
  justify-content: flex-end;


}

.info>div>svg {
  height: 100%;
  margin: 3px 5px;
}

.nav-menu {
  width: 80%;
  height: 55px;
  margin: auto;
}

.main-menu {
  display: flex;
  justify-content: space-around;
  width: 100%;
  margin: 25px 5px 5px 5px;

}

.main-menu>li {
  list-style-type: none;
  text-align: center;
}

.main-menu>li:hover {
  font-weight: 500;
  color: #494949;
  border-bottom: 1px solid black;
}

.mega-menu {
  position: absolute;
  width: 60%;
  top: 109px;
  height: 100vh;
  transition: opacity 0.3s ease;
  pointer-events: none;
  /* 避免干扰 hover */
  visibility: hidden;
  opacity: 0;
  /* transform: translateY(10px); */
  left: 0%;
  /* transform: translateX(-50%); */
  background: #ffffff;
  z-index: 1000;
  /* 新增：设置一个足够高的层级，高于轮播图 */
  /* 移除固定高度，让内容决定高度 */
  /* 最大高度不超过屏幕 */
  overflow-y: auto;
  /* 菜单过长时内部滚动 */

}

.mega-menu li {
  list-style: none;
  text-indent: 4em;
  line-height: 2em;

}

.menu-col {
  margin: 10px 5px 10px 5px;
}

.menu-col-subtitle {
  font-size: 1em;
  font-weight: 600;
}

.mega-menu-sec {
  display: flex;
  flex-direction: column;
  margin: 20px 10px;
  width: 73%;
}

.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 100;
  /* 允许鼠标交互 */
}


/* footer section */

.footsec {
  height: 47vh;
  background: #000;
  color: white;
  /* margin-top: 100px; */
}

.footerRowContainer {
  display: flex;
  flex-direction: column;

}

.footerColContainer {
  display: flex;
  flex-direction: row;
  width: 70%;
  margin: 60px auto;
  column-gap: 10em;
}



.footerMenu>ul>li {
  list-style: none;
}

.footerMenu>ul>li>a {
  text-decoration: none;
  text-transform: uppercase;
  color: white;
  font-size: small;

}

.footMenu-subtitle {
  font-size: medium;
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.pagefooter {
  margin: 10px 0px 0px 5px;
}


/* ----------Page New Arrival --------------- */
.product-container * {
  margin: 0;
  font-family: SuisseIntl, sans-serif;

  letter-spacing: .01em;
  letter-spacing: .03em;

}


.breadcrumbs {
  text-transform: uppercase;
  font-family: SuisseIntl, sans-serif;
  font-size: .813rem;
  letter-spacing: .03em;
  margin: 20px 20px;


}

.product-container {
  margin-bottom: 100px;
}

.product-container a {
  color: inherit;
  text-decoration: inherit;
}

.pagetitle {
  text-align: center;
  grid-column-start: 5;
  grid-column: span 4 / span 4;
  font-weight: 600;
  line-height: 140%;
  text-transform: uppercase;
  padding-bottom: 1.25rem;
  margin: 0;
}

/* filter section */

/* --- Sidebar Styles --- */
.filterSidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  height: 100vh;
  background: #fff;
  box-shadow: 3px 0 10px rgba(0, 0, 0, 0.15);
  transform: translateX(-100%);
  transition: transform .3s ease;
  z-index: 9999;
  overflow-y: auto;
  padding: 20px;
}

.open {
  transform: translateX(0);
}

.filterOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 9998;
}

.show {
  opacity: 1;
  pointer-events: auto;
}


.filter-section {
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
}

.filter-section h4 {
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: 600;
}


.apply-filter-btn {
  width: 100%;
  background: #000;
  color: #fff;
  padding: 12px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
}









/* filter section */


.filterRow {
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
  font-size: 0.8rem;
  align-items: center;
  margin: 20px 20px;

}

/* 悬停状态：微亮背景+轻微上浮 */
.filterbtn:hover {
  /* background-color: #333; */
  transform: translateY(-2px);
  /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
  cursor: pointer;
  transition: all 0.3s ease;

}

/* 点击状态：下沉效果 */
.filterbtn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* 禁用状态 */
.filterbtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* === 网格布局 === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  row-gap: 2rem;
  margin: 0 auto;
  box-sizing: border-box;
}

.product-item {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
}

/* === 图片轮播容器 === */
.product-img-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  overflow: hidden;
  background-color: #f9f9f9;
}

/* === 滑动轨道 === */
.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
}

/* === 滑动轨道 === */
.slider-track>a {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}



/* === 每张图片 === */
.slider-img {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === 左右切换按钮 === */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.4rem 0.6rem;
  border-radius: 50%;
  transition: background 0.3s;
  z-index: 2;
}

.prev-btn {
  left: 0.5rem;
}

.next-btn {
  right: 0.5rem;
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* === 收藏按钮 === */
.wishlist-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #333;
  cursor: pointer;
  font-size: 1.2rem;
  opacity: 0.7;
  transition: opacity 0.3s;
  z-index: 3;
}

.product-item:hover .wishlist-btn {
  opacity: 1;
}

/* === 名称与价格 === */
.item-info {
  margin-top: 0.75rem;
  margin-left: 0.75rem;
}

.product-name,
.product-price {
  font-size: .8125rem;
  font-family: SuisseIntl, sans-serif;
  color: #080808;
  margin: 0;
}

/* error page */
.errorpage {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 60%;
  text-align: center;
  row-gap: 20px;
  margin: auto;
  height: 75vh;
}

.ops {
  font-size: 6em;

}

.notf {
  font-size: 2em;
  font-weight: 500;
}


/* 基础按钮重置与默认样式 */
.btn {
  /* 清除默认样式 */
  display: inline-block;
  border: none;
  margin: 0;
  padding: 0.8rem 1.6rem;
  font-family: inherit;
  /* 继承父级字体，保持一致性 */
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border-radius: 4px;
  /* 轻微圆角，增强质感 */
  transition: all 0.3s ease;
  /* 状态变化动画 */
  box-sizing: border-box;
}

/* 文本颜色与背景色（默认主题色，可替换） */
.btn {
  background-color: #000;
  /* 深色背景，适合高端电商 */

}

.btn>a {
  text-decoration: none;
  color: #fff;
  /* 白色文本 */
}


/* 悬停状态：微亮背景+轻微上浮 */
.btn:hover {
  background-color: #333;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 点击状态：下沉效果 */
.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* 禁用状态 */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}


/* --------------product page --------------------*/
.product-page-container * {
  box-sizing: border-box;
}

.product-page-container body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  background: #fff;
  color: #111;
}

.product-page-container {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  margin-top: 30px;
}

/* ---------- GALLERY ---------- */
.product-gallery {
  flex: 0 0 66.666%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* gap: 10px; */
  /* 限制画廊高度（根据需求调整） */
  max-height: 100vh;
  /* 移除最大高度限制 */
  /* 超出高度时显示垂直滚动条 */
  overflow-y: auto;
  /* 隐藏水平滚动条（可选） */
  overflow-x: hidden;
  /* 美化滚动条（可选，适配webkit浏览器） */
  scrollbar-width: thin;
  scrollbar-color: #ccc #f5f5f5;
  /* 增加内边距和边框，增强视觉效果 */
  /* padding: 10px; */
  border: 1px solid #eee;
  border-radius: 8px;
}

.product-gallery img {
  width: 100%;
  height: auto;
  /* border-radius: 10px; */
  object-fit: cover;
}

.product-gallery img:nth-child(3n) {
  grid-column: span 2;
  /* every 3rd image spans full width */
}

/* ---------- PRODUCT INFO ---------- */
.product-info {
  flex: 0 0 31%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: #777;
}

.titleContainer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.title {
  font-size: 1.5rem;
  font-weight: 600;
}

.wishbtn {
  width: 24px;
  height: 24px;
  background: url('https://cdn-icons-png.flaticon.com/512/833/833472.png') center/contain no-repeat;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.wishbtn.active {
  background: url('https://cdn-icons-png.flaticon.com/512/833/833472.png') center/contain no-repeat;
  filter: invert(41%) sepia(99%) saturate(4443%) hue-rotate(340deg);
  opacity: 1;
}

.price {
  font-size: 1.4rem;
  font-weight: bold;
}

.swatch-container {
  margin-top: 1rem;
}

.stylename {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.5rem;
}

.swatch {
  display: flex;
  gap: 8px;
}

.swatch div {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #ccc;
  cursor: pointer;
}

.swatch div.selected {
  outline: 2px solid #000;
}

.size-container {
  margin-top: 1rem;
}

.size-selector {
  display: flex;
  gap: 10px;
  margin-top: 0.5rem;
}

.size-selector span {
  border: 1px solid #ccc;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.size-selector span.active {
  border-color: #111;
  background: #111;
  color: #fff;
}

.sizeguide {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #555;
  text-decoration: underline;
  cursor: pointer;
  width: fit-content;
}

.bagbtn {
  margin-top: 1rem;
  background: #111;
  color: #fff;
  text-transform: uppercase;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.3s;
}

.bagbtn:hover {
  background: #333;
}

/* ---------- MORE INFO ---------- */
.moreinfo {
  width: 100%;
  margin-top: 3rem;
  border-top: 1px solid #eee;
  padding-top: 1rem;
  display: flex;
  justify-content: space-around;
}

.moreinfo div {
  position: relative;
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.2s;
  font-weight: 500;
}

.moreinfo div:hover::after {
  content: '›';
  position: absolute;
  right: -15px;
  top: 0;
  align-self: anchor-center;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .product-page-container {
    flex-direction: column;
  }

  .product-gallery {
    flex: 1 1 100%;
    grid-template-columns: repeat(2, 1fr);
  }

  .product-info {
    flex: 1 1 100%;
  }
}