/*首頁樣式*/

/*============ carousel =============*/
.carousel-control-prev-icon {
  background-image: url(../images/arrow_left.png);
}

.carousel-control-next-icon {
  background-image: url(../images/arrow_right.png);
}

.carousel-control-next-icon,
.carousel-control-prev-icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-size: 100% 100%;
}

.carousel-control-next,
.carousel-control-prev {
  width: 5%;
  /*  margin-top: 3.5%;*/
}

/*
.owl-theme .owl-nav {
  position: absolute;
  right: 0;
  top: -80px;
  font-size: 38px;
   padding: 0 3px; 
  color: #a0a0a0;
}
*/

/*===== top banner自訂 =====*/
.carousel-inner .carousel-item {
  height: 490px;
  width: 100%;
}

.carousel-inner .carousel-item .img-box {
  display: block;
  width: 100%;
  height: 100%;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
}

/*================================
banner行動版
=================================*/
@media (max-width: 991px) {
  .carousel-inner .carousel-item {
    height: 370px;
  }
}

@media (max-width: 767px) {
  .carousel-inner .carousel-item {
    /*        height: 180px;*/
    height: 45vw;
  }
  .carousel-indicators {
    bottom: 5px;
  }
}

/*============ 內容 =============*/
.owl-theme .owl-nav [class*="owl-"]:hover {
  background: transparent;
  color: #d6d6d6;
}

/*title*/
.brand-title {
  font-size: 32px;
  font-weight: bold;
  letter-spacing: 0.1rem;
  color: var(--HY_gray);
  margin: 4vh auto;
  text-align: center;
  letter-spacing: 0.7rem;
}

.brand-title:after {
  content: "Brand";
  display: block;
  color: #e6b3a9;
  font-size: 1rem;
  font-weight: normal;
  letter-spacing: 0.5rem;
  margin-top: -0.2rem;
}
.project-title {
  font-size: 36px;
  color: #4a4a4a;
  margin: 4vh auto 0;
  text-align: center;
}

.project-title:before,
.project-title:after {
  content: "";
  display: inline-block;
  width: 30px;
  height: 1px;
  margin-right: 3px;
  vertical-align: middle;
  border-bottom: 2px dotted #00a0b6;
  transform: rotate(52deg);
  -webkit-transform: rotate(52deg);
}

.project-title:after {
  transform: rotate(-52deg);
  -webkit-transform: rotate(-52deg);
  margin-right: 0;
  margin-left: 3px;
}

.project-title-s {
  display: block;
  margin: 0 auto 1.5%;
  text-align: center;
  font-size: 1.1em;
}

/*=== 品牌專區 ===*/
.brand_zone {
  display: flex;
  flex-direction: column;
  text-align: center;
  background: #fff;
  margin: 3vh auto 6vh;
  border-radius: 0.5rem;
  letter-spacing: 0.06rem;
  overflow: hidden;
  /*	box-shadow: 0 2px 10px rgba(215, 123, 123, 0.5);*/
}

.brand_text {
  border: 1px solid #e8e8e8;
  border-radius: 0 0 0.5rem 0.5rem;
  border-top: 0;
  padding: 1.5vh 1vh;
}

.brand_zone h4 {
  color: var(--HY_C1);
}

.brand_zone P {
  font-size: 16px;
  margin-bottom: 0.6vh;
}

.brand_zone p:before {
  content: "";
  display: block;
  border-top: 1px solid var(--HY_C6);
  width: 28px;
  margin: 0.8vh auto;
}

/*=== 品牌行動 ===*/
@media (max-width: 992px) {
  .brand-title {
    font-size: 26px;
  }
}

@media (max-width: 768px) {
  .brand-title {
    margin: 3vh auto 1vh;
  }
  .brand_text {
    padding: 0.9vh 1vh;
  }
}

@media (max-width: 576px) {
  .brand-title {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .brand_zone {
    margin: 2vh auto 3vh;
  }
  .brand-title:after {
    font-size: 0.7rem;
    margin-top: -0.1rem;
  }
  .brand_zone h4 {
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.03rem;
  }
  .brand_zone P {
    font-size: 11px;
    margin-bottom: 0.3vh;
  }
}

/*================================
首頁下方產品分類選單
=================================*/

/*選擇商品(PC)*/
.select-pd {
  position: relative;
  width: 100%;
  display: inline-flex;
  font-size: 16px;
  letter-spacing: 0.05rem;
  border-bottom: 1px solid var(--HY_C6);
  margin-bottom: 2vh;
}

.select-link {
  position: relative;
  padding-right: 0.6rem;
  padding-left: 0.6rem;
  font-weight: normal;
  display: block;
  padding-bottom: 25px;
  color: #9a9a9a;
  transition: color 0.4s;
}

.select-link:after {
  position: absolute;
  left: 0;
  bottom: -2px;
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  background: var(--HY_C1);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.select-link:hover,
.select-link.active {
  color: var(--HY_C1);
}

.select-link.active:after {
  transform: scaleX(1);
}

/*選擇商品(手機)*/
.mobile-select select {
  padding: 10px 20px 10px 10px;
  width: 70%;
  height: 100%;
  background-color: #fff;
  border: solid 1px var(--HY_C4);
  color: #9a9a9a;
  margin-bottom: 10px;
}

/*商品排序*/
.sort_order {
  position: absolute;
  right: 0;
  top: -10px;
}

.order-item {
  display: inline-flex;
  padding: 0px 15px;
  font-size: 12px;
  text-align: center;
}

.order-item a {
  color: #9a9a9a;
}

.order-item:after {
  content: "";
  transform: translate(15px, 8px);
  width: 1px;
  height: 35px;
  background-color: #d3d3d3;
}

.order-item:last-child:after {
  display: none;
}

.order-item a:hover,
.order-item a.active {
  color: var(--HY_C1);
}

.order-item i {
  display: block;
  width: 30px;
  height: 30px;
  background-size: contain;  
  transition: 300ms;
}
.order-item i.popular {
  background: url(../images/popular.png) center no-repeat;
  background-size: contain;
  }
.order-item i.new {
  background: url(../images/new.png) center no-repeat;
  background-size: contain;
}

.order-item i.price {
  background: url(../images/price.png) center no-repeat;
  background-size: contain;
}

.order-item a:hover i,
.order-item a.active i {
  background: url(../images/popular_b.png) center no-repeat;
  background-size: contain;
}

.order-item a:hover i.new,
.order-item a.active i.new {
  background: url(../images/new_b.png) center no-repeat;
  background-size: contain;
}

.order-item a:hover i.price,
.order-item a.active i.price {
  background: url(../images/price_b.png) center no-repeat;
  background-size: contain;
}

/*商品分類頁籤*/
.nav-pills.nav-idx .nav-link.active,
.nav-pills .show > .nav-link {
  color: #fff;
  background-color: var(--HY_C1);
}

.nav-pills.nav-idx .nav-link {
  border-radius: 30px;
  margin: 5px 5px;
  letter-spacing: 0.1rem;
  background: #fff;
  color: var(--HY_C1);
}

/*===== 產品塞選行動 =======*/
@media (max-width: 992px) {
  .select-pd {
    display: none;
  }
}

@media (max-width: 768px) {
  .order-item {
    padding: 0px 10px;
    font-size: 11px;
  }
  .order-item i {
    width: 25px;
    height: 25px;
  }
  .order-item:after {
    transform: translate(10px, 8px);
  }
  .sort_order {
    top: 0;
  }
}

@media (max-width: 480px) {
  .nav-pills.nav-idx .nav-link {
    padding: 0.3rem 0.8rem;
    letter-spacing: 0.05rem;
  }
  .mobile-select select {
    padding: 5px 20px 5px 10px;
    width: 65%;
  }
  .order-item {
    padding: 0px 5px;
  }
  .order-item i {
    width: 20px;
    height: 20px;
  }
  .order-item:after {
    transform: translate(7px, 3px);
    height: 15px;
  }
}

.sale-zone {
  margin-top: 13vh;
}

.sale-img {
  margin: 0 auto 3vh;
  text-align: center;
}

.sale-img img {
  width: 100%;
  max-width: 500px;
}

.sale-zone .clock {
  text-align: center;
  margin-bottom: 5vh;
}

@media (max-width: 480px) {
  .sale-img {
    margin: 8vh auto 1vh;
  }
}

/*=== news ===*/
.news-frame {
  display: flex;
}

.news-card {
  font-size: 14px;
  border: none;
  border-radius: 0.3rem;
  box-shadow: 0px 10px 14px 2px rgba(192, 187, 187, 0.5);
  margin: 6% 0 10%;
  height: 380px;
  overflow: hidden;
}

.news-card:hover {
  color: #4a4a4a;
}

.news-card .card-body {
  padding: 0.75rem 1rem 1rem;
}

.item-title {
  font-size: 18px;
  text-align: center;
  padding: 0 4% 0;
  margin: 5% 0 0;
}

.item-title:after {
  content: "";
  display: block;
  width: 105%;
  border-bottom: 1px dashed #e0cad0;
  margin-left: -2.5%;
  padding-top: 3.5%;
}

.card-body del {
  margin-left: 0.5em;
}

.sale-text {
  font-size: 22px;
  text-align: center;
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.card-price {
  font-family: "Lusitana", serif;
  font-weight: bold;
  font-size: 50px;
  color: #e54875;
}

.litte-text {
  color: #888;
}

.astar-red {
  color: #e54875;
}

.owl-theme .owl-nav [class*="owl-"]:hover {
  background: transparent;
  color: #d6d6d6;
}

/*=== 推薦排行 ===*/
.ranking-frame {
  margin: 7vh auto;
}

.ranking-card {
  position: relative;
  display: -webkit-flex;
  display: -moz-flex;
  display: -o-flex;
  display: flex;
  flex-direction: column;
  background: #d8cab9;
  padding: 12% 7% 10%;
  margin-top: 2.5vh;
  border-radius: 0.3rem;
  box-shadow: 0px 10px 14px 2px rgba(192, 187, 187, 0.5);
}

.ranking-card:before {
  position: absolute;
  left: 0;
  top: 0;
  border: 11px solid #fff;
  content: "";
  opacity: 0.5;
  border-radius: 0.3rem;
  width: 100%;
  height: 100%;
  -webkit-transform: scale(0);
  -ms-transform: scale(0);
  transform: scale(0);
  -webkit-transition: 350ms;
  -o-transition: 350ms;
  transition: 350ms;
}

.ranking-card:hover:before {
  -webkit-transform: scale(1);
  -ms-transform: scale(1);
  transform: scale(1);
}

.ranking-title {
  font-size: 20px;
  font-weight: bold;
  color: #80766a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-top: 5%;
}

.ranking-package {
  color: #ae906a;
  font-size: 1em;
  font-weight: bold;
  margin-left: 0.2rem;
}

.ranking-number {
  display: -webkit-flex;
  display: -moz-flex;
  display: -o-flex;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: absolute;
  top: -6%;
  right: -5%;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  font-size: 18px;
  text-align: center;
  color: #fff;
  background: #9e7452;
}

/*================================
行動
=================================*/
@media (max-width: 992px) {
  .project-title {
    font-size: 30px;
    /*	margin: 2% auto 0;*/
  }
  .item-title,
  .ranking-title {
    font-size: 16px;
  }
  .ranking-number {
    top: -7%;
    right: -5%;
    width: 65px;
    height: 65px;
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .news-card {
    font-size: 13px;
    height: 340px;
  }
  .card-price {
    font-size: 42px;
  }
  .sale-text {
    font-size: 16px;
  }
  .ranking-number {
    top: -7%;
    right: -5%;
    width: 56px;
    height: 56px;
    font-size: 12px;
  }
}

@media (max-width: 576px) {
  .project-title {
    font-size: 24px;
    margin: 3vh auto 0;
  }
  .news-card {
    font-size: 12px;
    height: 280px;
    box-shadow: 0px 5px 8px 2px rgba(192, 187, 187, 0.5);
  }
  .news-card .card-body {
    padding: 0.75rem 0.5rem 0.75rem;
  }
  .card-price {
    font-size: 32px;
  }
  .ranking-card {
    padding: 12% 7% 10%;
    margin-top: 5vh;
    margin-left: -5px;
    margin-right: -5px;
    box-shadow: 0px 5px 8px 2px rgba(192, 187, 187, 0.5);
  }
  .ranking-card:before {
    border: 6px solid #fff;
  }
  .item-title,
  .ranking-title {
    font-size: 14px;
  }
  .ranking-number {
    top: -5vh;
    right: 50%;
    width: 55px;
    height: 55px;
    margin-right: -28px;
  }
}

@media (max-width: 375px) {
  .ranking-card {
    margin-top: 8vh;
  }
  .ranking-number {
    top: -7.5vh;
  }
}
