:root{
    font-size: 18px;
    font-family: 'Saira', 'Noto Sans TC' !important;
}
html, body {
    min-height: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: 'Saira', 'Noto Sans TC'  !important;
}

p{
    margin: unset;
}

.container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}
.glove-customizer {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.glove-customizer-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.step-0-container,
.step-1-container,
.step-2-container,
.step-3-container,
.step-4-container,
.step-5-container,
.step-6-container,
.step-7-container,
.step-8-container,
.step-9-container,
.step-10-container,
.step-11-container
{
    width: 100%;
    height: 100%;
}

.progress-bar-section{
    background-color: #ffffff;
}

.progress-bar {
    position: relative;
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    
}
.progress-bar-item-container {
    height: 50px;
    position: relative;
    top:-10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    
}
.progress-bar-item-container p {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5em;
    letter-spacing: 0.05em;
    text-align: center;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    margin: unset;

}
.progress-bar-item-container.active{
    cursor: pointer;
}

.progress-bar-item {
    width: 21px; /* 每個進度條項目的寬度 */
    height: 21px;
    text-align: center;
    background-color: #d9d9d9;
    transition: background-color 0.3s;
    border-radius: 5px 0 5px 0; /* 只有左上和右下有5px圓角 */
    font-size: 14px;
    font-weight: 700;
    line-height: normal;
    color: var(--color-secondary);
}
.progress-bar-item.active {
    background-color: #F3AD29; /* 當前進度的顏色 */
    color: var(--color-primary); /* 當前進度的文字顏色 */
    border-radius: 5px 0 5px 0; /* 只有左上和右下有5px圓角 */
}

.simple-progress-bar {
    width: 100%;
    background-color: var(--color-tertiary);
    height: 5px;
    border-radius: 1px;
}

.simple-progress {
    height: 5px;
    background-color: var(--color-highlight);
    border-radius: 5px;
    transition: width 0.3s ease;
}

.top-section {
    background-color: var(--color-secondary);
    width: 100%;
    height: auto; /* 自適應高度 */
    padding: 20px; /* 增加內邊距 */
    color: #FFFFFF;
}

.step-0-container .top-section {
    background: url('../image/background-1.png') ;
    background-size: cover;
    width: 100%;
    padding: 20px; /* 增加內邊距 */
    color: #FFFFFF;
}

.step-0-container .top-section h3{
margin-top: 1rem;
margin-bottom: 1rem;
}

.step-0-container .top-section p{
    margin-top: 1rem;
    margin-bottom: 1rem;
    }
    


.step-1-container .top-section,
.step-2-container .top-section,
.step-3-container .top-section,
.step-4-container .top-section,
.step-5-container .top-section,
.step-6-container .top-section {
    display: flex;
    justify-content: space-between;
    background: url('../image/background-1.png') ;
    background-size: cover;
    width: 100%;
    height: 15vh;
    padding: 20px; /* 增加內邊距 */
    color: #FFFFFF;
    align-items: center;
}
.step-0-container .top-section,
.step-0-container .middle-section,
.step-1-container .top-section,
.step-1-container .middle-section,
.step-2-container .top-section,
.step-2-container .middle-section,
.step-3-container .top-section,
.step-3-container .middle-section,
.step-4-container .top-section,
.step-4-container .middle-section,
.step-5-container .top-section,
.step-5-container .middle-section,
.step-6-container .top-section,
.step-6-container .middle-section
{
    padding-left: 10%;
    padding-right: 10%;
}

.price-count{
    padding-left: 5%;
    padding-right: 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Saira';
}

.top-section .price{
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-align: right;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
}

.middle-section {
    position: relative;
    top: -2rem;
}


.step-0-container .middle-section {
    top: 0;
}

.step-0-container .middle-section img {
    width: 50%;
    margin: auto;
}

.middle-section button{
    background-color: unset;
    border-width: 2px;
    border-color: var(--color-primary);
    color:  var(--color-primary);
    font-size: 18px;
    font-weight: 700;
    line-height: 25.2px;
    letter-spacing: 0.08em;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
}

.middle-section button:hover,
.step-5-container .middle-section button.back:hover{
    border-color: var(--color-primary);
    color:  var(--color-primary);
    background-color: unset ;
}

.step-0-container .middle-section button:hover,
.step-5-container .middle-section button:hover{
    border-color: var(--color-primary);
    color:  #ffffff;
    background-color: var(--color-primary) ;
}

.guide-container {
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    text-align: center;
}

.step-0-container .guide-container {
    padding: 0 10%;
    color: #3A3535;
}

.guide-container btn{
    background-color: #3A3535;
    color: #ffffff;
}

.guide-container .back{
    border: unset;
    padding: unset;
    display: flex;
    align-items: center;
    justify-content: start;
    width: 10%;
    gap: 10px;
}

.guide-btn{
    width: 10% !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
    border-radius: 10px !important;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;

}

.quantity-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0% 5%;
    height: 30px;
    font-weight: 600;
}

.step-5-container .card-banner img{
    height: 100%;
}

.step-5-container .quantity-container{
    flex-direction: column;
    align-items:normal;
    height: 125px;
    justify-content: end;
    margin-bottom: 6%;
    gap: 10px;
}

.step-5-container .quantity-container div{
  height: 50%;
}

.step-6-container .quantity-container{
    flex-direction: column;
    align-items:normal;
    justify-content: end;
}

.quantity-container p{
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5em;
    letter-spacing: 0.05em;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
}

.bottom-section {
    margin-top: 60px;
    padding: 0 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0px;
}

.section-title {
    font-size: 36px;
    font-weight: bold;
    color: #FFFFFF;
}

.see-more {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #FFFFFF !important;
    font-size: 16px;
    transition: all 0.3s ease;
}

.see-more .arrow {
    margin-left: 8px;
    font-size: 20px;
}

.see-more:hover {
    color: #666;
    transform: translateX(5px);
}

.step-0-container .bottom-section{
    padding: 1% 10%;
    /* background-color: #464040; */
    /* border-radius: 30px 0 30px 0; */

}.step-1-container .bottom-section{
    padding: 5% 10%;
    margin-top: 0%;
   

}
.step-2-container .bottom-section h1{
    text-align: left;
}

.card-container {
    display: flex;
    justify-content: space-between; /* 等寬間距 */
    margin-top: 20px; /* 上方間距 */
    gap: 20px;
}

.step-1-container .card-container h3{
    margin-bottom: 4%;
}

.card-banner{
    display: flex;
    justify-content: center;
}


.step-2-container .card-banner{ 
    margin: 0;
    padding: 15px;
    gap: 15px;
    height: 200px;
}

.step-1-container .card-banner img{
    max-width: 120px;
    padding-top: 10px;
}

.step-3-container .card-banner img{ 
   height: 20vh;
}

.step-6-container .card-banner {
    position: relative;
    background-color: #D9D9D9;
    border-radius: 18px 0 0px 0;
    display: flex;
    justify-content: center;
    align-items: stretch; /* 讓圖片上下貼齊 */
    height: 200px; /* 建議給定固定高度，依需求可調整 */
    overflow: hidden; /* 圓角蓋住圖片 */
}

.step-6-container .card-banner img{ 
    object-fit: cover;
    height: 100%;
    width: 100%;
    display: block;
    margin: 0 auto;
    border-radius: 0; /* 讓圖片本身無圓角，由父層控制 */
}

.step-5-container .card-banner {
    padding: 5%;
    position: relative;
    height: 200px;
} 


.step-6-container .card-banner {
    position: relative;
    background-color: #D9D9D9;
    border-radius: 18px 0 0px 0;
    display: flex;
    justify-content: center; /* 水平置中 */
    align-items: flex-end; /* 垂直置底 */
    height: 100%; /* 確保容器有高度 */
} 

.no-need img{
    height: 50%;
    margin: auto;
}

.step-2-container .card-container {
   gap: 20px;
}

.step-2-container .card-container img{
    height: 100%;
 }

.step-4-container .card-container,
.step-6-container .card-container{
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 每行顯示五個卡片 */
    gap: 21px 20px;
    width: 100%; /* 使容器寬度佔滿 */
}

.step-5-container .card-container{
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 每行顯示三個卡片 */
    gap: 30px 20px;
    width: 100%; /* 使容器寬度佔滿 */
}

.card {
    flex: 1; /* 等寬 */
    padding: 15px 15px 9px 15px;
    background-color: white;
    border-radius: 18px 0 18px 0; /* 只有左上和右下有5px圓角 */
    text-align: left;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    transition: background-color 0.5s ease;

}


.step-1-container .card:hover,
.step-2-container .card:hover,
.step-3-container .card:hover,
.step-4-container .card:hover,
.card.no-need:hover,
.step-6-container .card:hover{
    background-color: #F3AD29;
    transition: background-color 0.5s ease;
    cursor: pointer;
}

.step-0-container .card {
    margin: 0 opx; /* 左右間距 */
    
}

.step-1-container .card{
   background-image: url('../image/bg-dot.png');
   background-size: 100% 30%;
   background-position: 0% 0%;
   background-repeat: no-repeat;
    
}

.step-2-container .card{
    gap: 5px;
    
}

.step-5-container .card {
    width: 100%; /* 確保卡片寬度佔滿格子 */
    box-sizing: border-box; /* 包含內邊距和邊框在內的總寬度 */
    margin: 0 0; /* 水平居中 */
    padding: 0px;
}

.step-7-container .card {
    width: 100%; /* 確保卡片寬度佔滿格子 */
    box-sizing: border-box; /* 包含內邊距和邊框在內的總寬度 */
    padding: 0px;
}

.step-10-container .card {
    background-color: unset;
    border-bottom: 1px dashed #B2B2B2;
    border-radius: unset;
}

.card-title{
    margin: 5% 0px;
    padding: 0% 5%;
    height: 150px;
}

.step-0-container .card-title{
    margin: 5% 0px;
    padding: 0% 0%;
    max-height: 80px;
}

.step-2-container .card-title{
    margin: 2% 0px;
    height: 70px;
}


.step-3-container .card-title{
    height: 80px;
}

.step-4-container .card-title{
    height: 150px;
}

.step-5-container .card-title{
    margin: 2% 1%;
    height: 30px;
}

.step-6-container .card-title{
    margin: 2% 1%;
}

.step-0-container .card-title h2,
.step-3-container .card-title h2,
.step-4-container .card-title h2,
.step-5-container .card-title h2,
.step-6-container .card-title h2{
    margin: 1% 0px;
}

.card-title p{
    font-size: 16px;
    text-wrap: nowrap;
}


.step-4-container .card-title p{
    font-size: 14px;
    text-wrap: wrap;
}


.step-2-container .card-title h3{
    margin: 1% 0px;

}

/* 放大圖示 */

.floating-button {
    position: absolute;
    top: -10px; /* 距離圖片頂部的距離 */
    right: -20px; /* 距離圖片右側的距離 */
    color: #fff; /* 按鈕文字顏色 */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 10; /* 確保按鈕在圖片上方 */
}

.glove-details-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
    position: relative;
    
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.popup-header h2 {
    margin: 0;
    color: #333;
}

.specs-data{
    text-align: left;
}

.specs-rating{
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 1px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid #eee;
}

.specs-table td {
    padding: 12px 8px;
}

.specs-table td:first-child {
    width: 30%;
    font-weight: bold;
}

.remarks {
    color: #666;
    font-size: 0.9em;
}

.hr-line{
    width: 100%; 
    border: 1px solid #D9D9D9;
}

.step-2-container .hr-line{
    margin-top: 0px;
    margin-bottom: 0px;
}

.step-0-container .card button{
    border-radius: 10px 0 10px 0; /* 只有左上和右下有5px圓角 */
}

.step-1-container .card button,
.step-2-container .card button,
.step-3-container .card button,
.step-4-container .card button,
.step-6-container .card button{
    border: 0px;
}

.step-2-container .card {
    margin: 0;
    padding: 5px;
}

.step-4-container .card {
    position: relative;
}

.step-6-container .card {
   padding: 0px;
}

.waterfall-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 每列4欄 */
    gap: 20px; /* 卡片間距 */
    margin-top: 20px; /* 上方間距 */
    background-color: gray;
    border-radius: 8px;
    width: 100%;
}
.waterfall-card {
    padding: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.waterfall-card img {
    width: 100%; /* 圖片自適應寬度 */
    border-radius: 8px;
}

.guide-table{
    width: 100%;    
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px; /* 上方間距 */
    font-size: 14px;
    border: 1px solid var(--color-secondary)!important;
}

table a{
   color: var(--color-primary);
}

table th{
    border: 1px solid var(--color-secondary)!important;
 }

table a img{
    margin: 1% 2%;
 }

table .level{
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5em;
    letter-spacing: 0.08em;
    text-align: center;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    

}

.line-dash{
    border-left-style: dashed !important;
}

/* 作品欣賞 */
table .glove-example{
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 6px;
    line-height: 1.9;
}

th, td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
    background-color: #FFFFFF !important;
    border-style: none !important;
    border-bottom-style: solid !important;
    
}
th {
    background-color: #F0EDE1 !important;
    font-size: 18px;
    font-weight: 500;
    line-height: 19.8px;
    letter-spacing: 0.05em;
    text-align: center;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    

}
.blade-selector,
.block-selector {
    margin: 20px 0;
}
.blade-keys,
.block-keys {
    display: flex;
    justify-content: space-between; /* 確保按鈕之間有間距 */
    width: 100%; /* 確保容器佔滿全寬 */
    border-radius: 5px !important;
    background-color: rgba(220,212,196, 0.5);
    
}
.blade-button {
    padding: 10px 15px;
    color: white;
    border: none;
    border-radius: 0px !important;
    cursor: pointer;
    flex: 1; /* 讓每個按鈕等寬 */
}

.blade-button:hover,
.blade-button.active{
    background-color: var(--color-primary) !important;
    color: white !important;
    border-radius: 10px !important;
}

.floating-button {
    position: absolute;
    top: 5px; /* 距離圖片頂部的距離 */
    right: 0px; /* 距離圖片右側的距離 */
    color: #fff; /* 按鈕文字顏色 */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 10; /* 確保按鈕在圖片上方 */
}

.select-button {
    display: flex;
    justify-content: space-between;
    margin-bottom: 9px;
    font-size: 18px;
    align-items: center;
}

.step-5-container .select-button button,
.step-6-container .select-button button{
    padding: 0px;
}

.menu-container {
    flex: 40%;
    background-color: #F5F4F0;
    color: var(--color-primary);
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: start;
    border-right: 1px solid #eee;
}

.step-10-container .customizer-layout .menu-container{
    flex: 20%;
    padding: 0 20px;
}

.menu-container .menu-item-container {
    height: 100%;
    width: 100%;
    border-bottom: 1px solid #EAE7DF;
}

.preview-container {
    background-image: url('../image/waterprint.png');
    background-size: 85%;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.preview-controls {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.prev-view,
.next-view{
    background-color: #FFFFFF !important;
}

.content-container{
    flex: 87%;
    height: 90vh;
    overflow: auto;
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.step-10-container .content-container{
    width: 80%;
    padding: 0 20px;
}

.category-menu, .subcategory-menu, .option-menu {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.category-menu {
    width: 100%; /* 调整第一层菜单的宽度 */
    flex: 40%;
    max-height: 90vh;
    overflow-y: auto;
}

.subcategory-menu{
    flex: 60%;
}

.subcategory-menu,
.embroidery-menu {
    flex:60%;
    max-height: 90vh;
    width: 100%; /* 调整第二层菜单的宽度 */
    background: #EFEDE6;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.subcategory-menu::-webkit-scrollbar,
.embroidery-menu::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 5px;
    height: 97px;
}

.subcategory-menu::-webkit-scrollbar-thumb,
.embroidery-menu::-webkit-scrollbar-thumb {
    width: 5px;
    background-color: #E0DDD1;
    border-radius: 20px;
    height: 97px;
}

.canvas-wrapper {
    position: relative;
    width: 600px;
    height: 600px;
}

#gloveCanvas {
    border: 1px solid #eee;
    
}

.view-indicator {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #f5f5f5;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.prev-view, .next-view {
    background: none;
    border: none;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.prev-view img, .next-view img {
    width: 24px;
    height: 24px;
    display: block;
    margin: 0 auto;
}

.canvas-container {
    margin: 0 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
}

.view-indicator {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

#gloveCanvas {
    display: block;
}
    
.menu-wrapper {
    display: flex;
    justify-content: space-between;
    width: 100%;
    flex-grow: 1;
}
.option-menu {
    display: flex;
    justify-content: space-between;
    width: 100%; /* 选项菜单占满整个宽度 */
    padding: 2% 6% 2% 6%;
    margin-top: 10px; /* 与上方菜单保持一定距离 */
    flex-wrap: wrap;
}

.subcategory-button-text{
    display: inline-block;
    vertical-align: middle; /* 垂直置中對齊 */
}

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


.subcategory-item{
    font-weight: 500;
    font-size: 14px;
    vertical-align: middle;
}

.subcategory-item label{
    font-size: 14px;
}

.subcategory-radio {
    width: 18px;
    height: 18px;
    vertical-align: middle; /* 垂直置中對齊 */
    margin: 0; /* 移除預設 margin */
}


.subcategory-button-viewer{
    width: 36px;
    height: 36px;
    border-top-left-radius: 9px;
    border-bottom-right-radius: 9px;
    border-width: 2px;
    background: #FFFFFF;
    border: 2px solid #D9D9D9;
    text-align: center;
}

.subcategory-button-viewer div{
    color: #D9D9D9;
}

.option-menu-color-input{
    padding-left: 5%;
    padding-bottom: 5%;
}

.option-menu-applyall{
    display: flex;
    justify-content: space-between;
    flex-grow: 1;
}

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

.category-button, .subcategory-button, .option-button {
    width: 100%;
    text-align: left;
    padding: 10px;
    background: none;
    cursor: pointer;
    align-items: center;
}

.category-button:hover, .subcategory-button:hover, .option-button:hover {
    background-color: #f0f0f0;
}

.category-button.active,
.subcategory-button.active,
.option-button.active {
    background: #EFEDE6;
    position: relative;
}

.category-button.active:not(.exclude)::after,
.subcategory-button.active::after,
.option-button.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: #D2C6B1;
    border-radius: 0 0 2px 2px;
    pointer-events: none;
}

.category-button-viewer{
    width: 36px;
    height: 36px;
    border-top-left-radius: 9px;
    border-bottom-right-radius: 9px;
    border-width: 2px;
    background: #FFFFFF;
    border: 2px solid #D9D9D9;
    text-align: center;
}

.category-button-viewer div{
    color: #D9D9D9;
}

.option-color-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
}

.embroidery-options{
    padding: 2% 6% 2% 6%;
}
.option-color-menu .option-button,
.embroidery-options .option-button {
    flex: 0 0 calc(33% - 10px); /* 每行4個，減去間距 */
    max-width: calc(33% - 10px);
    padding: 1%;
}

.embroidery-options .option-group{
    margin-top: 5%;
    flex: 1;
    input{
        width: 100%;
        margin-bottom: 5%;
    }
    .option-label{
        padding: 0;
        margin-bottom: 2%;
    }
    .font-select-display, .color-input{
        padding: 2% !important;
        font-size: 14px !important;
        margin-bottom: 5%;
        color: #3A3535 !important;
        border: 1px solid #ccc; 
        cursor: pointer; 
        background: #fff; 
        display: flex; 
        align-items: center; 
        justify-content: space-between;
        height: 42px;
    }
    .color-input::placeholder {
        color: #3A3535;
    }
    textarea{
        background-color: #FFFFFF;
    }
}


.option-menu-title{
    font-size: 14px;
    font-weight: 600;
    display: flex;
    justify-content: start;
    width: 100%;
}
.option-button-color {
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-top-left-radius: 9px;
    border-bottom-right-radius: 9px;
    margin: auto;
}

.option-button-color-id{
    padding-top: 12px;
    font-weight: 600;
    font-size: 12px;
    text-align: center;
    vertical-align: middle;
    color: #959595;

}

.option-button-color-name{
    text-wrap: nowrap;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 5%;
    text-align: center;
    vertical-align: middle;
    color: #3A3535;
    font-family: Noto Sans TC;
}



.option-button:hover {
    background-color: #f0f0f0;
}

.option-button:hover {
    box-shadow: 0 0 0 2px #F3AD29;
    border-top-left-radius: 9px;
    border-bottom-right-radius: 9px;
    background: unset;
    border-bottom: unset;
}

.option-button.active {
    /* outline: 3px solid #F3AD29; */
    /* outline-offset: -3px; */
    box-shadow: 0 0 0 2px #F3AD29;
    border-top-left-radius: 9px;
    border-bottom-right-radius: 9px;
    background: unset;
    border-bottom: unset;
}

.option-button.active:after {
    background: unset;
    border-bottom: unset;
}

.color-input{
    border: 2px solid #D9D9D9 !important;
    padding: 2% !important;
}

/* 切換器 */

.switch-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 12px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #D9D9D9;
    transition: .4s;
    border-radius: 15px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    bottom: -3px;
    background-color: white;
    transition: .4s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border: solid 2px #B2B2B2;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(120%);
}

.slider.round {
    border-radius: 15px;
}

.slider.round:before {
    border-radius: 50%;
}

/* 細節 */
.customizer-layout {
    display: flex;
}

.step-7-container .customizer-layout,
.step-8-container .customizer-layout,
.step-9-container .customizer-layout{
    height: 100%;
}

.menu-item {
    align-items: center;
    height: 100%;
    display: flex;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-primary);
}

/* .menu-item:hover {
    background-color: #f9f9f9;
} */

.dot-mark {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    margin-right: 8px;
}

.dot-mark.active {
    background-color: #4AA55C;
}


.detail-content {
    padding: 20px;
}

.detail-title {
    font-size: 24px;
    margin-bottom: 16px;
}

.detail-description {
    color: #666;
    margin-bottom: 24px;
}

.options-container {
    margin-bottom: 30px;
}

.radio-group {
    display: flex;
   justify-content: space-around;
    gap: 12px;
    width: 100%;
}

.radio-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
}

.radio-label:hover {
    background-color: #f5f5f5;
}


.step-10-container .radio-label{
    background-color: #FFFFFF;
    flex: 1; /* 新增此行，讓每個 radio-label 平均分配寬度 */
    font-size: 16px;
    font-weight: 500;
    color: var(--color-primary);
    border-radius: 10px 0 10px 0; /* 只有左上和右下有5px圓角 */
    padding: 13px;
}

/* 新增選取狀態的樣式 */
.step-10-container .radio-label input[type="radio"]:checked + span,
.step-10-container .radio-label input[type="radio"]:checked {
    background-color: #3A3535;
    color: #FFFFFF;
    accent-color: #C2B8A6;
}

.step-10-container .radio-label:has(input[type="radio"]:checked) {
    background-color: #3A3535;
    color: #FFFFFF;
    accent-color: #C2B8A6;
}

.blanket-options {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.blanket-section {
    border: 1px solid #eee;
    padding: 16px;
    border-radius: 8px;
}

.section-group {
    margin-bottom: 16px;
}

.section-group h4 {
    margin-bottom: 12px;
    color: #333;
}

.option-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 12px;
    margin-bottom: 8px;
 
}

.option-item {
    display: flex;
    justify-content: space-around;
    flex-grow: 1;
    gap: 12px;
}

.option-row label:first-child {
    min-width: 60px;
}

.remarks-container {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
}

.remarks-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.remarks-input {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    background-color: #DBD6CB;
}

.remarks-input:focus {
    outline: none;
    border-color: #4CAF50;
}

.char-counter {
    text-align: right;
    font-size: 0.9em;
    color: #666;
    background-color: #C2B8A6;
}

.level-select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 120px;
}

.level-select:focus {
    outline: none;
    border-color: #4CAF50;
}

.input-group {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.input-field {
    margin-bottom: 10px;
}

.input-label {
    width: 100%;
    gap: 10px;
}

.size-input {
    width: 100%;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.unit {
    color: #666;
}

.finger-input-container{
    flex: 0.8;
    display: flex;
    gap: 10px;
    flex-direction: column;
    justify-content: space-between;
}
.finger-size-container{
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.category-tip{
    position: absolute;
    top: 0;
    background-color: #FFFFFF;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    line-height: Body Medium/Line Height;
    letter-spacing: 5%;
    width: 100%;
    padding: 0.5rem;
    z-index: 1;
}

.step-8-container .category-tip {
    text-align: left;
}


.embroidery-tabs{
    display: flex;
    justify-content: center;
    margin: 5% 0 0% 0;
    height: 42px;
    gap: 8%;
}

.embroidery-tabs .tab-button{
    width: 30%;
    padding:2%;
    border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background-color: #E0DDD1;
    border: 0;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 5%;
    text-align: center;
    color: #3A3535;
}

.tab-button.active{
    background-color: #3A3535;
    color: #FFFFFF;
    z-index: 1;
}

.left-tab-button{
    position: relative;
    left: 5%;
}

.right-tab-button{
    position: relative;
    right: 5%;
}

.font-selection{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.font-option{
    text-align: center;
    border-top-left-radius: 9px;
    border-bottom-right-radius: 9px;
    background-color: #E0DDD1;
}

.embroidery-file-wrapper{
    width: 100%;
}

.embroidery-file{
    width: 100%;
}

/* 刺繡上傳 */
.option-label,
.no-embroidery-message{
    padding-left: 5%;
    font-weight: 500;
    font-size: 14px;
    color: #3A3535;
}

.embroidery-preview{
    padding-left: 5%;
    font-weight: 500;
    font-size: 14px;
    color: #3A3535;
}

.upload-container {
    width: 100%;
    padding: 10px;
}

.upload-area {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    border: 2px dashed #A0A0A0;
    border-radius: 10px 0 10px 0;
    background-color: #E0DDD1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #F3AD29;
    background-color: #FAFAFA;
}

.upload-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.upload-image{
    width:90%;
    height:90%;
    object-fit:cover;
    border-radius:8px;z-index:2;
}
.upload-icon{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 50%;
}

.upload-icon img{
    font-size: 24px;
    width: 36px;
    color: #666;
}

.upload-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
}

.upload-limit,
.upload-size {
    font-size: 14px;
    color: #666;
}

.option-description label{
    padding-left: 5%;
    font-size: 10px;
    color: #3A3535;
}

#export-button{
    background-color: #565151;
    border-top-left-radius: 9px;
    border-bottom-right-radius: 9px;
    height: 42px;
}

#next-step-button{
    border-top-left-radius: 9px;
    border-bottom-right-radius: 9px;
    height: 42px;
}

#next-step-button:focus{
    background-color: #DADADA !important;
}

.reset-container {
    position: absolute;
    bottom: 5%;
    right: 5%;
}

.reset-button {
    background-color: #ffffff;
    border: 1px solid #959595;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    color: #333333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-button:hover {
    background-color: #f5f5f5;
    border-color: #666666;
}


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


.custom-input-card {
    padding: 24px;
    text-align: center;
    margin: 20px auto;
    max-width: 400px;
}

.input-group {
    display: flex;
    gap: 12px;
    margin: 16px 0;
    justify-content: center;
}

.blade-input {
    padding: 8px 16px;
    border: 1px solid #DDD;
    border-radius: 4px;
    font-size: 16px;
    width: 200px;
}

.submit-btn {
    background: #F3AD29 !important; 
    color: white;
    border: none;
    border-radius: 10px !important;
    padding: 8px 24px;
    cursor: pointer;
    font-weight: bold;
}


.step-5-container .radio-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.step-5-container .custom-radio {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
}

.step-5-container input[type="radio"] {
    opacity: 0;
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
}

.step-5-container input[type="radio"]:checked + .custom-radio {
    border-color: #F3AD29;
}

.step-5-container input[type="radio"]:checked + .custom-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background-color: #F3AD29;
    border-radius: 50%;
}

.no-need button{
    border: 0px;
}

/* Step-9 專用樣式 */
.step-9-container .category-button-viewer,
.step-9-container .subcategory-button-viewer {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #999;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.step-9-container .subcategory-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    margin-bottom: 4px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f5f5f5;
}

.step-9-container .subcategory-button:hover {
    background: #e8e8e8;
}


/* Step-9 簡化樣式 */
.step-9-container .upload-area {
    position: relative;
    display: block;
    width: 100%;
    height: 200px;
    border: 2px dashed #A0A0A0;
    border-radius: 10px 0 10px 0;
    background-color: #E0DDD1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-9-container .upload-area:hover {
    border-color: #F3AD29;
    background-color: #FAFAFA;
}

.step-9-container .upload-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px 0 8px 0;
    text-align: center;
}

/* 關閉按鈕 */
.step-9-container .close-icon-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    z-index: 10;
    transition: background-color 0.2s ease;
}

.step-9-container .close-icon-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.clear-embroidery-btn {
    margin-top: 10px;
    padding: 8px 16px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.clear-embroidery-btn:hover {
    background: #d32f2f;
}

.selected-finger-tip {
    display: block;
    margin-top: 10px;
    padding: 8px;
    background: #e3f2fd;
    border-radius: 4px;
    color: #1976d2;
}


/* 訂單確認 */

.order-container{
    padding: 3% 5% 3% 5%;
    width: 80%;
}
.order-header h2{
    font-size: 32px;
    font-weight: 600;
}
.order-header-info {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    color: #444;
    font-size: 18px;
    font-weight: 500;
    line-height: 2rem;
}
.order-main-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    
}

.order-detail {
    font-size: 18px;
   
}
.order-detail section {
    margin-bottom: 32px;
    
}
.order-detail  h3 {
    margin: 0px;
    color: #222;
    font-weight: bold;
    line-height: 3rem;
}

.order-detail-header{
    display: flex;
    justify-content: start;
    align-items: center;
    margin-bottom: 16px;
    gap: 10px;
}

.order-detail-header img{
    cursor: pointer;
}
.order-detail-container{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    line-height: 2rem;
}
.color-value,
.emb-value,
.detail-value,
.emb-img-value{
    font-weight: 700;
}


.detail-row{}
.order-summary {
    flex: 1;
    background: #fff;
    padding: 24px 20px;
    box-shadow: 0 2px 8px #0001;
    min-width: 320px;
}
.glove-preview {
    text-align: center;
    margin-bottom: 18px;
}
.summary-info {
    font-size: 16px;
    color: #333;
}
.summary-warning {
    background: #fffbe6;
    color: #b97a00;
    border-radius: 6px;
    padding: 10px 12px;
    margin: 16px 0 18px 0;
    font-size: 14px;
}

.confirm-btn-bg{
    background-color: #FFFFFF;
    position: sticky;
    bottom: -20px;
}

.confirm-btn {
    width: 100%;
    background: #f3ad29;
    color: #fff;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    padding: 12px 0;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
.confirm-btn:hover {
    background: #F3AD29;
}

.summary-info-item{
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-info-item span{
    font-size: 16px;
    color: #333;
}

.summary-info-item input{
    width: 100%;
    flex: 1;
    border: 1px solid #D9D9D9;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 16px;
    color: #333;
    background-color: #fff;
    outline: none;
}


.order-summary-fixed {
    position: fixed !important;
    top: 120px; /* 初始位置距離頂部120px */
    right: 20px;
    max-width: 35%;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 20px 20px 80px 20px; /* 底部預留空間給按鈕 */
    z-index: 1000;
    max-height: calc(100vh - 140px); 
    overflow-y: auto;
    transition: top 0.3s ease-out; /* 平滑過渡 top 位置 */
}

.order-summary-fixed buttun.confirm-btn {
    position: sticky;
    bottom: -20px;
    left: 20px;
    right: 20px;
    width: calc(100% - 40px); /* 扣除左右邊距 */
    margin: 0; /* 移除預設邊距 */
}

/* 當頁面滾動時移動到頂部 */
.order-summary-fixed.scrolled {
    top: 10px; /* 滾動後停在頂部 */
    max-height: calc(100vh - 20px); /* 調整最大高度 */
}

/* 調整主要佈局以避免與固定區塊重疊 */
.order-main-layout {
    margin-right: 360px; /* 給固定區塊留出空間 */
}

/* 響應式設計 */
@media (max-width: 1200px) {
    .order-summary-fixed {
        position: relative !important;
        top: auto;
        right: auto;
        width: 100%;
        max-width: 100%;
        margin-top: 20px;
    }
    
    .order-main-layout {
        margin-right: 0;
    }
}

/* 手機版本 */
@media (max-width: 768px) {
    .order-summary-fixed {
        position: relative !important;
        top: auto;
        right: auto;
        width: 100%;
        padding: 15px;
        margin: 20px 0;
    }
    
    .order-main-layout {
        margin-right: 0;
    }
}
