/* 全局設置 
-------------------------------------------------- */

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    margin: 0;
    font-family: "Noto Sans TC", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    background-color: #ffffff;
}

/* 基本分隔線設定 */
.separator {
    border-top: 1px solid #7b7b7b; /* 黑色分隔線，1px 寬度 */
    width: 71%; /* 調整線長度，使用百分比或像素 */
    max-width: 1180px; /* 最大寬度 */
    margin: 30px auto; /* 與其他元素間距增大，中間對齊 */
}

html {
    scroll-behavior: smooth;
}
/* 滑動至頂部按鈕 
----------------------- */
.slider {
    position: fixed; /* 固定位置 */
    bottom: 40px; /* 距離底部 40px */
    right: 27px; /* 距離右邊 27px */
    width: 50px;
    height: 50px;
    background: none;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* 保證在最上層 */
}

.top {
    width: 42px;
    height: 42px;
    color: rgb(172, 186, 198);
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.top:hover {
    font-size: 60px;
    bottom: 35px; 
    right: 22px;
    width: 70px;
    height: 70px;
    transition: 0.3s;
    color: #333333;
}

/* 上方欄位 (工具欄) 
-------------------------------------------------- */
.navbar-expand-lg {
    background-color: #cec0b4;
    height: auto;
    padding: 0;
    border: 0;
    margin: 0;
}

.navOneRow {
    width: 100%;
    height: 100%;
    margin: 0;
}

.navLogo {
    display: inline-block;
    position: relative;
    cursor: default;
    width: 100%;
}

.navLogo img {
    width: 105px;
    height: auto; /* 自動計算高度，保持圖片比例 */
    display: block; /* 設定為區塊元素 */
    margin-left: 200px; /* 將左側邊距自動設置為最大化，使圖像水平向右對齊 */
}

.searchBarCol {
    width: auto;
    display: flex;
    align-items: flex-end;
    padding-bottom: 20px;
}

.searchBar {
    background-color: #ffffff;
}

.searchBar::placeholder { /* 更改搜尋本字的顏色 */
    color: #8b7e71;
    font-weight: bold;
}

.searchBar.focused {
    background-color: #ffffff; /* 修改為您想要的背景顏色 */
    color: #8b7e71; /* 修改為您想要的文字顏色 */
    font-weight: bold;
}

.BuyCart_and_Account {
    display: flex;
    align-items: flex-end;
    padding-bottom: 20px;
}

/* 工具列第二欄下拉式選單*/
  
.navCol-2  {
    list-style: none;
    margin: 0px;
    border: 0px;
    background-color: #f7f7f7;
    width: 100%;
    margin-left: 0px;
    
  }
  
  
  .dropdown-menu{
    background: none;
    /*border: 1px solid #7b6b5e; /* 添加邊框 */
    border: 0px;
  }
  
  .nav-link:hover{
    background-color: #ece3d5;
  }
  
  
  .dropdown-item{
    background-color: #eacfa8;
    padding: 5px;
    color:#3f3f3f;
    text-align:justify;
    font-weight: bold;
    border: 1px solid #000; /* 添加邊框 */
    
  }
  .dropdown-item:hover{
    background-color: #fef6ea;
    color: #3f3f3f;
  }

/* 產品頁面 
------------------------------ */

/* 商品內容之大容器 */
.desc-page { 
    
    margin-left: 30px;
    margin-right: 30px;
    /*background-color: aqua;*/

}

/* 網頁當前路徑顯示 */
.product-path {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    color: #ac9e91;
    font-size: 20px;
    margin-left: 90px;
    margin-right: 90px;
    /*background-color: blueviolet;*/
}

/* 商品基本內容顯示容器(標題、圖片、價格、計數器、購買按鈕) */
.display {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 80px;
    /*background-color: brown;*/
    margin-bottom: 20px;
    margin-left: 90px;
    margin-right: 90px;
}

/* 商品圖片*/
.cont-img {
    width: 30%;
    min-width: auto;
    padding: 30px;
    height: auto;
    border: 1px solid #cce7d0;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.1), 0 4px;
    transition: 0.2s ease;
    }

.cont-img img {
    width: 100%;
    border-radius: 5px;
}

/*商品之標題、價格、計數器、購買按鈕顯示容器*/
.cont {
    flex: 1;
    padding: 0;
    border: none;
    margin-left: 140px;
    max-width: 320px;
    
}

/* 商品標題 */
.cont-name {
    text-align: start;
    padding: 0 8px;
    
}

.cont-name h5 {
    color: #533008;
    font-size: 24px;
    margin-top: 0;
}

.cont-name h6 {
    color: red;
    font-size: 24px;
    margin-top: 40px;
}

.cont-name p {
    color: red;
    margin-top: 20px;
    text-align: right;
    font-size: 15px;
}

/* 商品數量增減按鈕 */
.quantityButton {
    display: flex;
    width: 100%;
    font-weight: 700;
    justify-content: center;
    align-items: center;
    border: 1px solid #868686;
    border-radius: 10px;
    margin-bottom: 10px;

}

.quantityButton input {
    font-size: 16px;
    background: none;
    border: none;
    color: #0e0c0c;
    height: 35px;
    text-align: center;
    padding: 2px 0;
}



.quantityButton [type="button"] {
    width: 30px;
}

/*商品購買按鈕容器*/
.addToCart {
    display: flex;
    justify-content: space-between; /* 確保按鈕之間有間距 */
    align-items: center; /* 垂直置中按鈕 */
    padding: 10px;
}

.addToCart button {
    padding: 10px 20px; /* 增加按鈕的點擊區域 */
    width: 140px;
    border: 3px; /* 移除預設按鈕邊框 */
    background-color: #EEE4DA; /* 設定按鈕背景顏色 */
    color: #533008; /* 設定按鈕文字顏色 */
    cursor: pointer;
}

.addToCart button:hover {
    
    background-color: #d6c6b7; /* 設定按鈕背景顏色 */
    color: #533008; /* 設定按鈕文字顏色 */
}

/* 商品介紹 
-------------------------- */
.introduction {
    margin: 28px 140px 15px 160px;
    padding: 25px;
}

.introduction h4 {
    color: #462804;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
}

.introduction ul {
    list-style-type: disc;
    padding-left: 20px;
}

.introduction li {
    margin-left: 30px;
    color: #462804;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.introduction p {
    margin-left: -10px;
    margin-top: -10px;
    border-radius: 5px;
    background-color: #ededed;
    color: #462804;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
    padding: 35px;
}

.notice {
    display: flex;
    align-items: center; /* 垂直置中 */
    margin-left: 35px;
}

.notice iconify-icon {
    font-size: 24px; /* 調整圖標大小 */
    margin: 0 5px; /* 可選：增加圖標周圍的間距 */
}

.notice h5 {
    color: #462804;
    font-size: 25px;
}

.introduction h6 {
    color: #462804;
    margin-left: 105px;
    margin-bottom: 5px;
}

/* 評論區 
------------------- */
.comment {
    display: flex;
    flex-wrap: wrap;
    /*margin: 50px 210px 25px 250px;*/
    width: 100%;
    padding: 5px;
    overflow: hidden;
    /*background-color: blueviolet;*/
    justify-content: center; /* 使其內容物置中顯示 */ 
}

.comment-box {
    margin-top: 40px;
}

.comment h5 {
    background-color: #EEE4DA;
    padding: 10px;
    text-align: center;
    color: #462804;
    font-weight: bold;
    margin-bottom: 20px;
}

.comment-box {
    position: relative;
    background-color: #f1f1f042;
    width: 100%;
    border: solid 1px #7564547e;
}

/*左方顯示評論區域*/

.leftside {
    margin-right: 55px;
    width: 320px;
    padding: 5px;
}

form label {
    color: #7c6a54cd;
}

form p {
    margin-top: 15px;
    margin-bottom: 0;
    color: #7c6a54cd;
}



/* 左方評論區，名字部分 */
/*專門設立一個class的原因在於不使購物車相同的text輸入框，會有一樣的樣式*/
/*form input[type="text"] 為了不要和登入頁面的text屬性重疊到，而將其刪除。*/
form input[type=""],
form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #7c6a54cd; /* 調整邊框顏色 */
    border-radius: 5px;
    font-size: 16px;
    color: #533008; /* 調整文字顏色 */
    background-color: #f9f9f9; /* 調整背景顏色 */
    box-sizing: border-box;
    margin-bottom: 0;
}

input[type="submit"] {
    background-color: #EEE4DA; /* 綠色背景 */
    color: #462804; /* 白色文字 */
    padding: 8px 20px; /* 增加內邊距 */
    border: none;
    border-radius: 3px; /* 圓角 */
    cursor: pointer; /* 滑鼠移過時顯示手形圖標 */
    font-size: 16px; /* 增大字體 */
    margin-top: 0;
    width: 100%;
    font-weight: bold;
    margin-bottom: 0;
}

input[type="submit"]:hover {
    background-color: #d6c6b7;
}

/* 星星評分 */
.star {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px; /* 調整星星之間的間距 */
    margin-bottom: 20px;
}

.star-icon {
    color: #C0B6AA;
    cursor: pointer;
    transition: color 0.3s;
}

.star-icon.selected {
    color: gold;
}

/*右方顯示評論區域*/

.rightside {
    width: 700px;
    margin-right: 15px;
    padding: 5px;
    /*background-color: aqua;*/
}

.rightside p {
    color: #462804;
    font-size: 16px;
    margin-left: 65px;
}

.box-top {

    height: auto;
    display: flex;
    flex-wrap: wrap;
    color: #857c73c5;
    font-size: 30px;
    padding: 10px;
    align-items: center;
    background-color: #ffffff;
    
}

.box-top iconify-icon {
    width: 40px;
    font-size: 25px;
    margin-left: 5px;
}

.box-top h6 {
    color: #462804;
    margin-left: 25px;
    width: 60px;
    font-size: 20px;
    margin-top: 4px;
    margin-bottom: 5px;
}

.user-comment{
    margin-left: 13px;
    margin-right: 45px;
}

.starcomment {
    display: flex;
    justify-content: left;
    align-items: center;
    margin-top: -6px;
    margin-left: -5px;
}

.starcomment iconify-icon {
    width: 15px !important; /* 強制設置寬度 */
    height: 15px !important; /* 強制設置高度 */
    margin-right: 2px; /* 調整星星之間的間距 */
}


