/*************************/
/***** 商品列表 Start *****/
/*************************/

/* Product 左邊選單 */

.side-menu {
  position: relative;
}

.side-menu aside {
  position: sticky;
  top: 80px;
}

.side-menu aside h2 {
  font-size: 22px;
}

.side-menu aside h2:after {
  content: '';
  display: block;
  width: 30px;
  background: #333;
  height: 3px;
  border-radius: 3px;
  margin: 5px 0;
}

.side-menu aside ul {
  padding-left: 0;
  list-style: none;
  margin-top: 20px;
}

.side-menu aside ul li {
  margin: 10px 0;
  font-size: 18px;
}

.side-menu aside ul li a {
  color: #333;
  text-decoration: none;
  display: block;
}

.side-menu aside ul li a:hover,
.side-menu aside ul li a.active {
  color: #7aa4cf;
}

/* Search Form Start*/

#search-form {
  margin-bottom: 15px;
  text-align: right;
}

#keyword {
  width: 300px;
  height: 36px;
  border: 1px #ddd solid;
  display: inline-block;
  background: #f7f7f7;
  padding: 0 10px;
  margin: 0 3px;
  font-size: 14px;
}

#search-btn {
  width: 60px;
  height: 36px;
  border: 1px #ddd solid;
  display: inline-block;
  background: #f7f7f7;
  padding: 0 10px;
  text-align: center;
  font-size: 16px;
  line-height: 34px;
  color: #666;
  margin: 0 3px;
}

#sort {
  width: 170px;
  height: 36px;
  border: 1px #ddd solid;
  display: inline-block;
  background: #f7f7f7;
  padding: 0 30px 0 10px;
  text-align: center;
  font-size: 14px;
  color: #666;
}

#paginate_qty {
  width: 170px;
  height: 36px;
  border: 1px #ddd solid;
  display: inline-block;
  background: #f7f7f7;
  padding: 0 30px 0 10px;
  font-size: 14px;
  text-align: center;
  color: #666;
}

.custom-select {
  position: relative;
  width: auto;
  display: inline-block;
  margin: 0 3px;
}

.custom-select select {
  width: 100%;
  padding-right: 30px;
  /* 為箭頭留出空間 */
  appearance: none;
  /* 隱藏原生箭頭 */
  -webkit-appearance: none;
  -moz-appearance: none;
}

.custom-select:after {
  content: '';
  position: absolute;
  right: 10px;
  /* 控制箭頭位置 */
  top: 50%;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid black;
  /* 調整這裡以改變箭頭顏色 */
  transform: translateY(-50%);
  pointer-events: none;
  /* 確保點擊事件可以穿透到 <select> 元素 */
}

@media screen and (max-width: 992px) {

  #keyword {
    width: 100%;
    margin: 0 0 10px 0;
   
  }

  #search-btn {
    width: 100%;
    margin: 0 0 10px 0;
  }

  #sort {
    width: 100%;
  }

  #paginate_qty {
    width: 100%;
  }

  .custom-select {
    width: 100%;
    margin: 0 0 10px 0;
  }
}


/* Product list */

.product-list {
  margin: 10px 0 30px 0;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

.product-list a {
  text-decoration: none;
}

.product-img:hover {
  opacity: .8;
}

.product-list-name {
  display: inline-block;
  width: 100%;
  padding: 0 15px;
  text-overflow: ellipsis;
  color: #333;
  font-size: 18px;
  line-height: 30px;
  letter-spacing: 0.05em;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  margin-top: 10px;
}

.product-list-price {
  display: inline-block;
  padding: 0 15px;
  font-size: 1em;
  color: #888;
  margin-bottom: 15px;
}

.product-list-special-offer {
  display: inline-block;
  padding: 0 0 0 15px;
  text-decoration: line-through;
  color: #888;
  margin-bottom: 15px;
}

.tool {
  display: flex;
  justify-content: space-between;
}

.tool>a {
  width: 50%;
  border-radius: 0;
  font-size: 14px;
  color: #f9f9f9;
}

@media screen and (max-width: 992px) {

  .product-list-name {
    font-size: 14px;
    line-height: 24px;
    height: 48px;
    margin-bottom: 10px;
    padding: 0 8px;
  }

  .product-list-price {
    display: block;
    width: 100%;
    padding-bottom: 10px;
    font-size: 12px;
    padding: 0 5px 0 5px ;
    text-align: right;
  }


  .product-list-special-offer {
    display: block;
    width: 100%;
    margin-bottom: 5px;
    font-size: 12px;
    padding: 0 0 0 5px;

  }
}
/*--------------------------------------------------------------
# Portfolio Details
--------------------------------------------------------------*/

.portfolio-details {
  padding-top: 20px;
}

.portfolio-details .portfolio-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 20px;
}

.portfolio-details .portfolio-title:after {
  content: '';
  display: block;
  width: 90px;
  height: 3px;
  background: #333;
  margin-top: 10px;
}

.portfolio-details .portfolio-details-carousel .owl-nav,
.portfolio-details .portfolio-details-carousel .owl-dots {
  margin-top: 5px;
  text-align: center;
}

.portfolio-details .portfolio-details-carousel .owl-dot {
  display: inline-block;
  margin: 0 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ddd !important;
}

.portfolio-details .portfolio-details-carousel .owl-dot.active {
  background-color: #3498db !important;
}

.portfolio-details .portfolio-info {
  padding-top: 60px;
}

.portfolio-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 20px;
}

.portfolio-details .portfolio-info ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.portfolio-details .portfolio-info ul li+li {
  margin-top: 10px;
}

.portfolio-details .portfolio-info p {
  font-size: 15px;
  padding: 15px 0 0 0;
}

@media (max-width: 992px) {
  .portfolio-details .portfolio-info {
    padding-top: 20px;
  }
}

/* Product Detail End */

.detail-name {
  font-size: 26px;
  line-height: 40px;
  color: #333;
}

.detail-number {
  display: block;
  font-size: 16px;
  line-height: 18px;
  letter-spacing: 0.05em;
  color: #888;
  margin-bottom: 20px;
}

.detail-price {
  font-size: 24px;
  line-height: 40px;
  letter-spacing: 0.05em;
  color: #9d0000;
}

.detail-price-delete {
  font-size: 20px;
  line-height: 30px;
  letter-spacing: 0.05em;
  color: #777;
  text-decoration: line-through;
}

.size {
  margin-top: 20px;
  display: block;
  width: 100%;
  height: 50px;
  font-size: 20px;
  line-height: 40px;
  letter-spacing: 0.05em;
  color: #3498db;
  border: 1px #3498db solid;
  padding: 5px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 20px;
}

.quantity {
  margin-top: 20px;
  display: block;
  width: 100%;
  height: 50px;
  font-size: 20px;
  line-height: 40px;
  letter-spacing: 0.05em;
  color: #3498db;
  border: 1px #3498db solid;
  padding: 5px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 20px;
}

a.add-card {
  display: block;
  width: 100%;
  height: 50px;
  font-size: 20px;
  line-height: 40px;
  letter-spacing: 0.05em;
  color: #3498db;
  border: 1px #3498db solid;
  padding: 5px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 20px;
}

a.add-card:hover {
  color: #fff;
  background: #3498db;
}

/* Product Detail End */


.swiper-wrapper{
  text-align: center;
}

/* 自定義 Swiper 按鈕的樣式 */
.swiper-button-prev, .swiper-button-next {
  background: rgba(255, 255, 255, 0.7); /* 設置按鈕背景為白色 */
  border-radius: 50%; /* 圓形 */
  width: 40px; /* 設置寬度 */
  height: 40px; /* 設置高度 */
  color: black; /* 設置圖標顏色為黑色 */
  font-size: 10px !important; /* 圖標大小 */
  border:2px #ccc solid;
  box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: all 0.5s;
}

.swiper-button-prev:hover, .swiper-button-next:hover {
  background: rgba(255, 255, 255, 1); /* 設置按鈕背景為白色 */
}


.swiper-button-prev::after, .swiper-button-next::after{
  font-size: 16px;
  font-weight: 900;
  color:#444; /* 圖標顏色 */
}


.swiper-button-prev:hover::after, .swiper-button-next:hover::after{
  color:#000;
}
