/* 版型布局 */
#page {
  width: 70%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 100px;
  position: relative;
}
#single_product_content {
  width: 100%;
  padding-bottom: 100px !important;
}
section.woocommerce-tabs {
  width: 100%;
  padding-top: 50px;
  margin-left: auto;
  margin-right: auto;
}
section.related {
  width: 100%;
  display: block;
  padding-top: 80px;
  margin-left: auto;
  margin-right: auto;
}
ul#product {
  width: 85%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/* 訊息 */
.woocommerce-message {
  margin-top: 200px;
  text-align: center;
}
.woocommerce-message > a {
  display: none;
}

/* 商品主圖 */
/*****特價標籤****/
.onsale {
  display: block;
  width: 60px !important;
  height: 60px !important;
  padding-top: 15px !important;
  border-radius: 50% !important;
  background-color: goldenrod !important;
  color: white;
  text-align: center;
  position: absolute;
  z-index: 97;
}
#product_img {
  width: 50%;
}
.images {
  width: 100%;
}
.woocommerce-product-gallery__wrapper {
  width: 100%;
}
.woocommerce-product-gallery__image {
  width: 100%;
}
.wp-post-image {
  display: block;
  width: 100% !important;
  margin-left: auto;
  margin-right: auto;
}

/* 商品購買資訊 */
#product_info {
  width: 40%;
  margin-left: 5%;
  padding-left: 5%;
  padding-top: 30px;
  /* box-shadow: 1px 1px 3px gray; */
}
.summary {
  width: 100%;
  padding-left: 10%;
  margin-left: auto;
  margin-right: auto;
}
/*****品名****/
.summary .product_title {
  font-size: 28px;
  padding-top: 5px;
  padding-bottom: 10px;
}
del {
  display: none;
}
/* ***價格 ****/
.price {
  font-size: 25px;
  padding-top: 10px;
  padding-bottom: 10px;
}
/* **規格*** */
.variations_ul {
  display: flex;
  justify-content: space-between;
}

/* -------------------------- */
/* ***轉換select option為div */
div.custom_option {
  display: none;
  border: 2px solid #ccc;
  margin-right: 5px;
  padding: 2px 5px;
  cursor: pointer;
}

/* show only divs with class "is-visible" */
div.custom_option.is-visible {
  display: inline-block;
}

/* adds the style to the selected div */
div.custom_option.on {
  background-color: #777;
  color: white;
}
/* -------------------------- */

/*****簡述****/
.woocommerce-product-details__short-description {
  padding-top: 50px;
  padding-bottom: 50px;
}
/* 數量欄位 */
.st_quantity_div {
  display: flex;
  justify-content: space-between;
}
.st_quantity_div .qty {
  display: block;
  width: 120px !important;
}
.variations > div > ul {
  display: flex !important;
  padding-top: 10px;
  padding-bottom: 5px;
}
.variations > div > ul > li > select {
  display: block;
  padding-top: 5px;
  padding-bottom: 5px;
  position: static !important;
  font-size: 16px;
  width: 100%;
}
.posted_in > a {
  display: inline;
}

/* 加入購物車按鈕 */
.single_product_btn {
  display: flex;
  width: 100%;
  padding-top: 20px;
}
.single_add_to_cart_button {
  display: block;
  width: 200px !important;
  height: 50px !important;
  background-color: rgba(0, 0, 0, 0) !important;
  border: 1px solid rgb(95, 8, 8) !important;
  border-radius: 5px;
  color: rgb(95, 8, 8) !important;
  text-align: center;
  padding-top: 5px;
  padding-bottom: 5px;
  margin-top: 0px !important;
  border: 0px;
  margin-left: 0px;
  margin-top: 30px;
}
/* 直接購買按鈕 */
.summary .st_drc_buy_btn {
  display: block;
  width: 200px !important;
  height: 50px !important;
  border: 1px solid goldenrod;
  border-radius: 5px;
  color: goldenrod !important;
  background-color: rgba(0, 0, 0, 0) !important;
  text-align: center;
  padding-top: 5px;
  padding-bottom: 5px;
  margin-top: 0px !important;
  margin-left: 5px;
}
.sku_wrapper {
  display: block;
  padding-top: 10px;
}
.posted_in {
  display: block;
  padding-top: 10px;
}
.posted_in > a {
  text-decoration: none;
  color: black;
}

/* 商品描述 */
.tabs {
  display: none;
}
.woocommerce-Tabs-panel h2 {
  margin-top: 100px;
}
.woocommerce-Tabs-panel p {
  padding-top: 50px;
}

/* 推薦商品 */

/* .related>h5{
 width: 100px;
 text-align: center;
 font-size: 18px;
 padding-top: 2px;
 padding-bottom: 2px;
 border-top: 1px solid black;
 border-bottom: 1px solid black;
} */
/* .related .products{
 display: flex;
 justify-content: left;
 flex-wrap: wrap;
} */
/* .related .products .product{
 width: 18% !important;
 margin-left: 1%;
 margin-top: 20px !important;
} */
.woocommerce-loop-product__title {
  font-size: 1.5em;
  text-decoration: none;
  color: black;
}
.related .price {
  font-size: 1.2em;
}
/* 加入購物車按鈕 */
.related .add_to_cart_button {
  display: block;
  width: 100%;
  background-color: black;
  color: white;
  text-align: center;
  padding-top: 5px;
  padding-bottom: 5px;
  margin-top: 5px;
  border: 0px;
}
/* 直接購買按鈕 */
.related .st_drc_buy_btn {
  display: block;
  width: 100%;
  background-color: black;
  color: white;
  text-align: center;
  padding-top: 5px;
  padding-bottom: 5px;
  margin-top: 5px;
}

/*--------組合商品顯示-------*/
/* 縮圖 */
.product-thumbnails {
  display: flex;
  padding-top: 10px;
  justify-content: left;
}
.product-thumbnails > div {
  width: 30%;
  margin-left: 3%;
}
.product-thumbnails > div img {
  width: 100% !important;
}
/* 數量表格 */
.woocommerce-grouped-product-list {
  padding-top: 20px;
  padding-bottom: 20px;
}
.woocommerce-grouped-product-list-item__quantity {
  width: 20%;
  padding-top: 5px;
  padding-bottom: 5px;
}
.quantity input {
  width: 80%;
}
/*--------多規格商品顯示-------*/
/* 規格表格 */
.variations {
  padding-top: 10px;
  padding-bottom: 10px;
}
.variations > tbody > tr > th {
  margin-top: 10px;
  padding-top: 10px;
  padding-bottom: 5px;
}
.variations > tbody > tr > td {
  margin-top: 10px;
  padding-top: 10px;
  padding-bottom: 5px;
}
.variations .label {
  padding-right: 20px;
}
.reset_variations {
  display: none;
}
.single_variation_wrap {
  padding-top: 20px;
}
.variations .quantity {
  width: 100px !important;
}
.variations .quantity input {
  width: 100%;
}

/* -----------桌機css-------------css */
@media screen and (max-width: 1024px) {
}

/* -----------平版css-------------css */
@media screen and (max-width: 960px) {
  #page {
    width: 90%;
  }
  .related {
    width: 70%;
    padding-top: 80px;
    margin-left: auto;
    margin-right: auto;
  }
  .related .products {
    display: flex;
    justify-content: left;
    flex-wrap: wrap;
  }
  .related .products .product {
    margin-left: 0px;
  }
  .related .products .product .onsale {
    width: 40px !important;
    height: 40px !important;
    padding-top: 10px !important;
    font-size: 14px;
  }
  .related .woocommerce-loop-product__title {
    font-size: 20px;
    padding-top: 5px;
    padding-bottom: 10px;
  }
  .st_quantity_div {
    margin-left: auto;
    margin-right: auto;
  }
  .single_add_to_cart_button {
    width: 100% !important;
  }
  .cart .st_drc_buy_btn {
    width: 100% !important;
  }
}

/* -----------手機版-------------css */
@media screen and (max-width: 900px) {
  #page {
    width: 90%;
  }
  main {
    padding-top: 50px;
  }
  .summary {
    padding-left: 0px;
  }
  /* 主圖 */
  #product_img {
    width: 100%;
  }
  /* 資訊 */
  #product_info {
    width: 100%;
    margin-left: 0px;
    padding-top: 20px;
  }
  /*****品名****/
  .summary .product_title {
    text-align: center;
  }
  /* 商品描述 */
  .woocommerce-tabs {
    width: 100%;
    padding-top: 50px;
  }
  .woocommerce-Tabs-panel h2 {
    margin-left: auto;
    margin-right: auto;
  }
  /* 推薦商品 */
  .related.products {
    width: 100%;
    padding-top: 80px;
  }
  .related > h5 {
    margin-left: auto;
    margin-right: auto;
  }
  .related.products {
    justify-content: space-around;
  }
  .related.products .product {
    width: 48%;
    margin-bottom: 30px;
    margin-left: 0%;
    position: relative;
    box-shadow: 1px 1px 3px rgb(167, 167, 167);
    padding: 5px 5px 5px 5px;
  }
}
