@charset "UTF-8";
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #fff;
}

.header-activity {
  width: 100%;
  height: 40px;
  background-color: #212121;
  color: #ffffff;
  font-size: 14px;
  text-align: center;
  align-content: center;
}

.header-title {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
}

.car-btn {
  width: 44px;
  height: 44px;
  border: unset;
  padding: unset;
  background: #ffffff;
}

.input-search {
  width: 155px;
  flex-wrap: initial;
}

.search {
  border: unset;
  padding: unset;
  border-bottom: 1px solid #dddddd;
  border-radius: unset;
}

.search:focus {
  font-size: 14px;
  border-bottom: 1px solid #dddddd;
  box-shadow: none;
  border-radius: unset;
  outline: unset;
}

.search::-moz-placeholder {
  font-size: 12px;
}

.search::placeholder {
  font-size: 12px;
}

.search-input {
  padding: 0px 16px 9px 16px;
  box-shadow: 0px 4px 4px 0px rgba(255, 255, 255, 0.25);
}

.search-input img {
  width: 44px;
  height: 44px;
}

.search-border {
  border-bottom: 1px solid #dddddd;
}

@media (max-width: 1439px) {
  .header-title {
    padding: 20px;
  }
}
@media (max-width: 767px) {
  .search:focus {
    font-size: 14px;
    border-bottom: 1px solid #dddddd;
    box-shadow: none;
    border-radius: unset;
    outline: unset;
  }
  .search::-moz-placeholder {
    font-size: 12px;
    color: #666;
  }
  .search::placeholder {
    font-size: 12px;
    color: #666;
  }
}
/* 讓左右兩側正常對齊 */
.header-title-item,
.header-title-user {
  flex: 1;
}

.header-title-menu img,
.header-title-user img {
  height: 44px;
  width: 44px;
}

/* 中間 logo 固定置中，不受左右影響 */
.header-title-name {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.header-title-name img {
  height: 30px;
  width: 144px;
}

.header-menu,
.header-title-menu {
  display: none;
}

.header-menu img {
  height: 44px;
  width: 44px;
}

.header-title-item {
  gap: 40px;
  position: relative;
}

.man-wrapper:hover .menu,
.woman-wrapper:hover .menu,
.club-wrapper:hover .menu,
.story-wrapper:hover .menu,
.product-guide-wrapper:hover .menu {
  justify-content: space-between;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  display: flex;
}

.menu {
  font-size: 12px;
  position: absolute;
  background: #ffffff;
  top: 226%;
  left: -50px;
  width: 100vw;
  z-index: 100;
  opacity: 0;
  transform: translateY(-12px);
  transition: all 0.3s ease;
  border-top: 1px solid #dddddd;
  display: none;
}

.man-item,
.woman-item,
.clube-item,
.story-item,
.product-item {
  font-size: 14px;
}
.man-item:hover,
.woman-item:hover,
.clube-item:hover,
.story-item:hover,
.product-item:hover {
  font-weight: 700;
}

.menu-list {
  align-items: start;
  padding-left: 40px;
}

.all-products div,
.ride div,
.run div,
.all-round div,
.supply-area div {
  color: #666;
}

.all-products .all-products-title,
.ride .ride-title,
.run .run-title,
.all-round .all-round-title,
.supply-area .supply-area-title {
  color: #212121;
}

.all-products-title,
.ride-title,
.run-title,
.all-round-title,
.supply-area-title {
  font-size: 14px;
  font-weight: 700;
}

.all-products > div:hover:not(.all-products-title),
.ride > div:hover:not(.ride-title),
.run > div:hover:not(.run-title),
.all-round > div:hover:not(.all-round-title),
.supply-area > div:hover:not(.supply-area-title) {
  color: #333333;
}

.all-products,
.ride,
.run,
.all-round,
.supply-area {
  display: flex;
  width: 180px;
  gap: 16px;
  flex-direction: column;
}

.menu-md {
  flex-direction: column;
  width: 100vw;
  font-size: 14px;
  display: none;
}

.menu-md-type {
  padding: 0 24px;
  border-bottom: 1px solid #ddd;
  width: 100vw;
  cursor: pointer;
}

.menu-md-type img {
  width: 44px;
  height: 44px;
  transition: opacity 0.3s ease;
}

.menu-img,
.menu-icon {
  transition: opacity 0.5s ease;
}

.menu-md-item {
  padding: 0 24px;
  width: 100vw;
  border-bottom: 1px solid #ddd;
  font-weight: 700;
  flex-direction: column;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease;
  display: flex;
  pointer-events: none;
}

.menu-md-item.show {
  opacity: 1;
  max-height: 1000px; /* 根據內容高度調整最大值 */
  pointer-events: auto;
}

.menu-md-item img {
  width: 44px;
  height: 44px;
  font-size: 14px;
}

.menu-md-sub {
  flex-direction: column;
  gap: 12px;
  font-size: 12px;
  font-weight: 400;
  align-items: start;
  width: 100vw;
  padding: 0 24px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease;
  display: flex; /* 保持 flex，不用 display: none */
  pointer-events: none;
  cursor: pointer;
}

.menu-md-sub.show {
  opacity: 1;
  max-height: 300px; /* 可依實際需要調整最大高度 */
  pointer-events: auto;
  padding-bottom: 12px;
}

.menu-md-sub-item {
  color: #666666;
}

.menu-md-sub-item:hover {
  color: #333333;
}

.menu-md-item-header {
  width: 100vw;
  padding: 0 24px;
  cursor: pointer;
}

.toggle-submenu {
  transition: opacity 0.3s ease;
}

.search-img,
.input-search,
.search-img-sm,
.search-input {
  transition: opacity 0.15s ease;
}

.menu-member-center,
.menu-login-register {
  padding: 12px 24px;
  text-decoration: none;
}

@media (max-width: 1439px) {
  .header-title-item {
    display: none;
  }
  .header-menu {
    display: block;
  }
  .header-title {
    padding: 20px 24px;
  }
  .menu-md {
    display: none;
    margin-top: 124px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    pointer-events: none;
  }
  .menu-md.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    display: flex;
  }
  .menu-md-img {
    margin: 40px 0;
    width: 100%;
  }
  .menu-md-img img {
    width: 100%;
  }
}
@media (max-width: 767px) {
  .header-title-item,
  .header-title-user {
    flex: none;
  }
  .header-menu,
  .header-title-user {
    display: none;
  }
  .header-title-menu {
    display: flex;
  }
  .header-title,
  .header-title-name {
    position: unset;
  }
  .header-title-name {
    transform: unset;
  }
  .header-title-name img {
    height: 18px;
    width: 88px;
  }
  .header-title {
    padding: 20px 16px;
  }
  .menu-md {
    margin-top: 124px;
    /* padding: 20px; */
  }
}
.shop-cart {
  padding: 40px 20px;
  width: 480px !important;
}

@media (max-width: 767px) {
  .shop-cart {
    padding: 40px 20px;
    width: 310px;
  }
}
.offcanvas {
  height: 100vh;
}

.offcanvas-header {
  padding: unset;
  height: 80px;
  border-bottom: 1px solid #dddddd;
}

.offcanvas-header,
.offcanvas-footer {
  background-color: #fff;
  z-index: 1;
}

.shop-cart-title {
  font-size: 14px;
}

.shop-cart-img {
  height: 104px;
  flex: 0 0 96px;
  background: #dddddd;
}

.shop-cart-content,
.shop-cart-price {
  flex-direction: column;
  height: 104px;
  width: 79px;
  flex: 1;
  align-items: start;
}

.shop-cart-price {
  align-items: end;
}

.shop-cart-discount {
  flex-direction: column;
  font-size: 14px;
  font-weight: 700;
}

.shop-cart-content-title,
.shop-cart-origin-price {
  font-size: 14px;
  font-weight: 700;
}

.shop-cart-content-size {
  font-size: 12px;
  font-weight: 400;
}

.shop-cart-content-count {
  font-size: 14px;
  font-weight: 400;
  gap: 12px;
  border: 1px solid #dddddd;
}

.shop-cart-content-count img {
  width: 24px;
  height: 24px;
  background: #ffffff;
}

.shop-cart-body .shop-cart-item:last-child {
  border-bottom: unset;
}

.shop-cart-body::-webkit-scrollbar {
  display: none; /* 隱藏滾動條 */
}

.shop-cart-item {
  gap: 8px;
  align-items: stretch;
  padding: 24px 0;
  border-bottom: 1px solid #ddd;
}

.shop-cart-price-remove {
  font-size: 12px;
}

.total-price {
  padding: 20px 0;
  font-size: 16px;
  font-weight: 700;
}

.total-price-title,
.total-price-value {
  flex-direction: column;
  height: 72px;
}

.total-price-value span:first-child {
  align-self: flex-end;
}

.checkout {
  padding: 10px;
  width: 100%;
  height: 56px;
  background: #212121;
  border-radius: 6px;
  color: #ffffff;
  font-size: 14px;
  margin-bottom: 24px;
}

.view-cart {
  border: 1px solid #212121;
  font-size: 14px;
  width: 100%;
  height: 56px;
  padding: 10px;
  background: #ffffff;
  color: #212121;
  border-radius: 6px;
}

.shop-cart-empty {
  text-align: center;
  margin-top: 48px;
  font-size: 14px;
  font-family: "Roboto";
}

.continue-shop {
  padding: 10px;
  width: 142px;
  height: 56px;
  background: #212121;
  border-radius: 6px;
  color: #ffffff;
  font-size: 14px;
  margin-top: 24px;
  align-self: center;
}

.start-100 {
  left: 68% !important;
}

.top-0 {
  top: 14px !important;
}

.shop-count {
  color: #fff;
  width: 1px;
  height: 1px;
  border-radius: 6px;
  top: -8.5px;
  left: -5.5px;
  position: relative;
  font-size: 10px;
  text-align: center;
}

.shop-count-md {
  color: #fff;
  width: 1px;
  height: 1px;
  border-radius: 6px;
  top: -8.5px;
  left: -5.5px;
  position: relative;
  font-size: 10px;
  text-align: center;
}

.modal-backdrop {
  z-index: 1040 !important;
}