/* Copyright (C) 2009 - 2012 Shopiy, Shopiy许可协议 (http://www.shopiy.com/license) */
html,body,body div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,abbr,address,cite,code,del,dfn,em,img,ins,kbd,q,samp,small,strong,sub,sup,var,b,i,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,figure,footer,header,hgroup,menu,nav,section,time,mark,audio,video{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent;}
article,aside,figure,footer,header,hgroup,nav,section{display:block;}
img,object,embed{max-width:100%;}
html{overflow-y:scroll;height:100%;}
hr{display:block;height:1px;border:0;border-top:1px solid #ccc;margin:1em 0;padding:0;}
input,select{vertical-align:middle;}
pre{white-space:pre;white-space:pre-wrap;white-space:pre-line;word-wrap:break-word;}
ul{list-style:none;}
blockquote,q{quotes:none;}
blockquote:before,blockquote:after,q:before,q:after{content:'';content:none;}
a{margin:0;padding:0;font-size:100%;vertical-align:baseline;background:transparent;}
del{text-decoration:line-through;}
abbr[title],dfn[title]{border-bottom:1px dotted #000;cursor:help;}
table{border-collapse:collapse;border-spacing:0;}
th{font-weight:bold;vertical-align:bottom;}
td{font-weight:normal;vertical-align:top;}
select,input,textarea{font:99% sans-serif;}
table{font-size:inherit;font:100%;}
a:hover,a:active{outline:none;}
small{font-size:85%;}
strong,th{font-weight:bold;}
td,td img{vertical-align:top;}
sub,sup{font-size:75%;line-height:0;position:relative;}
sup{top:-0.5em;}
sub{bottom:-0.25em;}
pre,code,kbd,samp{font-family:monospace,sans-serif;}
.clickable,label,input[type=button],input[type=submit],button{cursor:pointer;}
button,input,select,textarea{margin:0;}
button{width:auto;overflow:visible;}
.clearfix:before,.clearfix:after,.wrapper:before,.wrapper:after{content:"\0020";display:block;height:0;overflow:hidden;}
.clearfix:after,.wrapper:after{clear:both;}
.clearfix,.wrapper{zoom:1;}
.clearer{background:none;border:0;clear:both;display:block;float:none;font-size:0;list-style:none;margin:0;padding:0;overflow:hidden;visibility:hidden;width:0;height:0}
body,select,input,textarea{
    color: rgba(0,0,0,0.8);
    font-size: 15px; /* 建議同步將字體從 12px 加大到 15px 或 16px，12px 現在太小了 */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang TC", "Microsoft JhengHei", "Microsoft YaHei", sans-serif;
    line-height: 1.6em;
}
select,input,textarea{color:#000;}
a{color:rgba(0,0,0,0.6);text-decoration:none;}
a:hover{color:rgba(0,0,0,1);}
::-moz-selection{background:#eee;color:#666;text-shadow:none;}
::selection{background:#eee;color:#666;text-shadow:none;}
a:link{-webkit-tap-highlight-color:#fcd700;}
em{font-style:normal;}
ins{background-color:#fcd700;color:#000;text-decoration: none;}
mark{background-color:#fcd700;color:#000;font-style:italic;font-weight:bold;}
textarea, input[type='text'], input[type='password'],input[type='number'], input[type='email'], input[type='url'], input[type='tel'], select{padding:5px 8px;}
input[type='text'], input[type='password'], input[type='number'], input[type='email'], input[type='url'], input[type='tel']{width:16em;border:1px solid #b3b3b3;}
textarea{border:1px solid #b3b3b3;}
input[type='text']:focus, input[type='password']:focus, input[type='number']:focus, input[type='email']:focus, input[type='url']:focus, input[type='tel']:focus, textarea:focus{border-color:#666;}
body{min-height:100%;min-width:980px;background-color:#ffffff;}
.wrapper{width:980px;margin:0px auto;clear:both;}
#main .wrapper{padding-top:10px;background-color:#ffffff;border-radius:0;}
#main .col_main{float:left;width:770px;}
#main .col_sub{float:left;width:210px;}
.error_box,.notice_box,.success_box{clear:both;padding:9px;margin-bottom:10px;border:1px solid #ddd;line-height:1.2em;border-radius:5px;}
.error_box{background:#fbe3e4;color:#8a1f11;border-color:#fbc2c4;}
.notice_box{background:#fff6bf;color:#514721;border-color:#ffd324;}
.success_box{background:#e6efc2;color:#264409;border-color:#c6d880;}
.error_box a{color:#8a1f11;}
.notice_box a{color:#514721;}
.success_box a{color:#264409;}
.center{text-align:center;}
.hidden{display:none;}
input[name=captcha]{text-transform:uppercase;width:4em !important;}
img.captcha{margin-left:5px}
.bright_table{border-top-color:#aacded;border-left-color:#aacded;}
.bright_table th,.bright_table td{border-bottom-color:#aacded;border-right-color:#aacded;}
.bright_table th{background:#deedf9;}
.data_table{width:100%;border-width:0;}
.data_table tr{background-color:#fff;}
.data_table .odd{background-color:#fff}
.data_table .even{background-color:#f8f8f8 !important;}
.data_table td.last,.data_table th.last{border-right-width:0;}
.data_table tr.last th,.data_table tr.last td{border-bottom-width:0;}
.data_table th{padding:8px 10px;color:#444;text-align:left;white-space:nowrap;border-right:1px solid #ddd;border-bottom:1px solid #ddd;}
.data_table th.wrap{white-space:normal;}
.data_table th a,.data_table th a:hover{color:#fff;}
.data_table td{padding:8px 10px;}
.data_table thead th{background-color:#f6f6f6;border-bottom-width:0;border-right-width:0;}
.data_table tbody{border-top:1px solid #eee;border-bottom:1px solid #eee;}
.data_table tbody td{border-bottom-width:0;border-right-width:0;}
.data_table tbody th{background-color:#f6f6f6;border-bottom-width:0;border-right:1px solid #eee;}
.data_table tbody.odd tr{background-color:#f8f7f5 !important;}
.data_table tbody.even tr{background-color:#f6f6f6 !important;}
.data_table tbody.odd tr td,.data_table tbody.even tr td{border-bottom:0;}
.data_table tbody.odd tr.border td,.data_table tbody.even tr.border td{border-bottom:1px solid #d9dde3;}
.data_table tbody td h5.title{margin:0;padding:0;color:#2f2f2f;font-size:1em;}
.data_table tbody td .option-label{font-style:italic;}
.data_table tbody td .option-value{padding-left:10px;}
.data_table tfoot tr{background-color:#fcfcfc !important;}
.data_table tfoot td{border-bottom-width:0;}
.data_table tfoot td.last{border-right-width:0;}
dl.table{padding:5px;line-height:20px;background:#fff;border:1px solid #eee;}
dl.table dt{margin-bottom:-27px;padding-left:10px;line-height:27px;}
dl.table dt.title{margin-bottom:5px;color:#444;background-color:#f6f6f6;border-bottom:1px solid #eee;}
dl.table dd{padding:5px 6px 5px 150px;line-height:19px;background-color:#f8f8f8;}
dl.table dd.even{background-color:transparent;}
ul.text_list li{padding:5px 10px;border-top:1px dashed rgba(0,0,0,0.1);}
ul.text_list li:first-child{border-top-width:0;}
ul.text_list li .type a{display:block;padding-right:5px;}
dl.table dd.head{margin-bottom:5px;border-bottom:1px solid rgba(0,0,0,0.2);}
dl.table dt.group{margin-top:5px;color:#000;}
dl.table dd.group{margin-top:5px;margin-bottom:5px;border-bottom:1px dotted rgba(0,0,0,0.5);}
dl.table dd:after{clear:both;content:'.';display:block;visibility:hidden;height:0}
dl.table dd{display:inline-block}
* html dl.table dd{height:1%}
dl.table dd{display:block}
dl.table.col4 .col{display:inline-block;width:180px;}
dl.text_list{padding:3px;line-height:20px;background:#fff;border:1px solid #e8e8e8;}
dl.text_list dt{margin-bottom:-25px;padding-left:6px;line-height:25px;}
dl.text_list dt.title{margin-bottom:3px;color:#fff;}
dl.text_list dd{padding:3px 6px 3px 114px;line-height:19px;border-top:1px dashed #999;}
dl.text_list dd:after{clear:both;content:'.';display:block;visibility:hidden;height:0}
dl.text_list dd{display:inline-block}
* html dl.table dd{height:1%}
dl.text_list dd{display:block}
dl.text_list dd.first{border-top-width:0;}
dl.text_list em,dl.text_list a{padding:0 3px;}
.price_list{padding:3px;background:#fff;border:1px solid #e8e8e8;}
.price_list dt{float:left;width:100px;padding:6px 9px;line-height:20px;}
.price_list dd{padding:3px 9px 3px 114px;}
.price_list dd .title{padding:3px 5px;font-weight:bold;line-height:20px;border-bottom:2px solid #eaeaea;}
.price_list dd .item{padding:3px 5px;line-height:20px;border-bottom:1px solid #e8e8e8;}
.price_list dd .item:last-child{border-bottom-width:0;}
.price_list dd p .price{float:right;width:200px;}
.form{float:left;padding:.5em 0;position:relative}
.form fieldset{width:auto;margin:0 1em}
.form h4{margin:0 0 .6em;color:#000;font-size:18px;}
.form label,.form .label{float:left;display:block;padding:5px 0;width:100%;}
.form label input,.form label textarea,.form label select,.form .label select{float:left;margin-left:10px;}
.form label .directions{float:left;display:inline-block;width:40em;clear:both;margin-left:10em;padding-left:10px;padding-top:5px;}
.form label .to{float:left;display:block;padding:5px 0 0 10px;}
.form label .status{display:inline-block;width:16px;height:16px;padding-left:5px;vertical-align:middle;}
.form label .valid{background:url('../img/checkmark.png') no-repeat right top;}
.form label .invalid{background:url('../img/cross.png') no-repeat right top;}
.form label b,.form .label b{float:left;width:10em;padding:5px 0 4px;font-weight:normal;display:block;}
.form .label em,.form label em{float:left;margin-left:10px;padding:5px 0;}
.form .required b:before{content:'*';margin-right:3px;color:#f53;font-size:1.5em;line-height:0.5em;font-weight:normal;}
.form .required b .before{margin-right:3px;color:#f53;font-size:1.5em;line-height:0.5em;font-weight:normal;}
.form .required_tip{color:#999;font-size:96%;font-weight:normal;position:absolute;top:.4em;right:2em;left:auto;width:13em;text-align:right}
.form .required_tip b{color:#f53;font-size:140%}
.form label textarea{width:450px}
.form div.submit_wrap{float:left;clear:both;padding:5px 0 5px 10em}
.form input[type=submit], .form div.submit_wrap input[type=button]{margin:0 5px 0 10px}
.form fieldset.checkbox_wrap,.form fieldset.radio_wrap{margin:0;}
.form fieldset.checkbox_wrap fieldset,.form fieldset.radio_wrap fieldset{float:left;width:auto;margin-left:10px}
.form fieldset.checkbox_wrap label,.form fieldset.radio_wrap label{clear:none;float:left;width:auto;border:none;margin:0;padding:4px 0;margin-right:15px}
.form label [type=checkbox], .form label [type=radio]{width:auto;float:none;margin:0;margin-right:3px}
.empty{display:block;padding:50px 0;color:#999;font-size:1.5em;text-align:center;}
a.button, a.button:hover{color:#fff;}
.button, .button:visited, input[type=button], input[type=submit], input[type=reset]{position:relative;display:inline-block;padding:7px 15px 7px 18px;color:#fff;letter-spacing:0.2em;line-height:1em !important;border-radius:5px;cursor:pointer;text-decoration:none;text-shadow:0 1px 1px rgba(0,0,0,0.3);background-color:#333;border:none;border-bottom: 1px solid rgba(0,0,0,0.25);box-shadow:0 1px 3px rgba(0,0,0,0.5);background-image:-webkit-linear-gradient(top, #666, #333);opacity:1;-webkit-transition:opacity 0.5s ease-out;vertical-align:middle;}
.button:hover, input[type=button]:hover, input[type=submit]:hover, input[type=reset]:hover{color:#fff;opacity:0.8;-webkit-transition:opacity 1s ease-out;}
.button:active, input[type=button]:active, input[type=submit]:active, input[type=reset]:active{opacity:0.5;-webkit-transition:opacity 0.1s ease-out;}
a.text_button{color:#666;}
a.text_button:hover{color:#000;}
.text_button, .text_button:visited{color:rgba(0,0,0,0.6);text-shadow:none;background-color:transparent;background-image:none;border:none;box-shadow:none;}
.text_button:hover{color:rgba(0,0,0,1);}
.tool_link{margin-left:10px;font-size:14px;vertical-align:middle;}
a.dim_button, a.dim_button:hover{color:#666;}
.dim_button, .dim_button:visited, input[type=button].dim_button, input[type=submit].dim_button, input[type=reset]{color:#666;background-color:#eee;text-shadow:0 1px 1px rgba(255,255,255,0.8);border-bottom: 1px solid rgba(0,0,0,0.25);box-shadow:0 0 3px rgba(0,0,0,0.3);background-image:-webkit-linear-gradient(top, #fff, #ddd);}
.dim_button:hover, input[type=button].dim_button:hover, input[type=submit].dim_button:hover, input[type=reset]:hover{color:#666;}
.bright_button, .bright_button:visited, input[type=button].bright_button, input[type=submit].bright_button, input[type=reset].bright_button{padding:5px 14px 5px 20px;font-size:1.5em;font-weight:bold;line-height:1.5em !important;}
.bright_button span{display:inline-block;padding:0 5px;background:url('../img/button_icon.png') no-repeat -999em top;}
.bright_button .cart{padding-left:34px;background-position:left 5px;}
.bright_button .todo{padding-left:26px;background-position:left -235px;}
.bright_button .previous{padding-left:32px;background-position:left -274px;}
.bright_button .card{padding-left:32px;background-position:left -74px;}
.bright_button .lock{padding-left:28px;background-position:left -118px;}
.bright_button .next{margin-right:3px;padding-right:29px;background-position:right -314px;}
.bright_button .download{padding-left:27px;background-position:left -355px;}
.bright_button .bullhorn{padding-left:33px;background-position:left -33px;}
.bright_button .eye{padding-left:32px;background-position:left -153px;}
.bright_button .gift{padding-left:28px;background-position:left -198px;}
#loading_box{display:none;position:fixed;right:50%;top:0;z-index:1000;padding:5px 11px 5px 31px;background:#fea url('../img/lb_loading.gif') no-repeat 10px center;color:#400;font-size:12px;border-radius:0 0 4px 4px;opacity:0.8;}
.compare_inner{padding:5px;border:1px solid #ccc;}
.compare_list{padding:5px;}
.compare_list .item{position:relative;padding:5px;line-height:1.2em;border-bottom:1px dotted rgba(0,0,0,0.5);}
.compare_list .item .photo{float:left;margin:0 5px 2px 0;}
.compare_list .item .photo img{height:40px;width:40px;}
.compare_list .item .remove{position:absolute;top:5px;right:10px;visibility:hidden;padding:2px 8px;color:#fff;background:#ff8c22;text-shadow:0 0 0,0 1px 0 #c4620d;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;}
.compare_list .item:hover .remove,.compare_list .hover .remove{visibility:visible;}
.compare_box .actions{padding:5px;text-align:center;}
.tipsy{padding:8px 5px;font-size:12px;position:absolute;z-index:10001;}
.tipsy sup{font-size:14px\9;}
.tipsy-inner{padding:5px 8px;max-width:300px;color:#fff;text-align:center;text-shadow:0 0 0,0 1px 0 #000;white-space:nowrap;background-color:#1a1a1a;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;}
.tipsy-arrow{position:absolute;background:url('../img/tipsy.gif') no-repeat top left;width:9px;height:5px;}
.tipsy-n .tipsy-arrow{top:3px;left:50%;margin-left:-4px;}
.tipsy-nw .tipsy-arrow{top:3px;left:10px;}
.tipsy-ne .tipsy-arrow{top:3px;right:10px;}
.tipsy-s .tipsy-arrow{bottom:3px;left:50%;margin-left:-4px;background-position:bottom left;}
.tipsy-sw .tipsy-arrow{bottom:3px;left:10px;background-position:bottom left;}
.tipsy-se .tipsy-arrow{bottom:3px;right:10px;background-position:bottom left;}
.tipsy-e .tipsy-arrow{top:50%;margin-top:-4px;right:0;width:5px;height:9px;background-position:top right;}
.tipsy-w .tipsy-arrow{top:50%;margin-top:-4px;left:0;width:5px;height:9px;}
#colorbox,#cboxOverlay,#cboxWrapper{position:absolute;top:0;left:0;z-index:9999;overflow:hidden;}
#cboxOverlay{position:fixed;width:100%;height:100%;}
#cboxMiddleLeft,#cboxBottomLeft{clear:left;}
#cboxContent{position:relative;overflow:hidden;}
#cboxLoadedContent{overflow:auto;}
#cboxLoadedContent iframe{display:block;width:100%;height:100%;border:0;}
#cboxTitle{margin:0;}
#cboxLoadingOverlay,#cboxLoadingGraphic{position:absolute;top:0;left:0;width:100%;}
#cboxPrevious,#cboxNext,#cboxClose,#cboxSlideshow{cursor:pointer;}
#cboxOverlay{background-color:#fff;}
#cboxTopLeft, #cboxTopRight, #cboxBottomLeft, #cboxBottomRight, #cboxMiddleLeft, #cboxMiddleRight, #cboxTopCenter, #cboxBottomCenter{display:none;}
#cboxContent{padding:14px;background-color:rgba(0,0,0,0.1);border-radius:10px;}
#cboxLoadedContent{padding:7px;background:#fff;border-radius:5px;}
#cboxClose:hover, #cboxClose.hover{opacity:1;}
.cboxSlideshow_on #cboxSlideshow{background-position:-125px 0px;right:27px;}
.cboxSlideshow_on #cboxSlideshow.hover{background-position:-150px 0px;}
.cboxSlideshow_off #cboxSlideshow{background-position:-150px -25px;right:27px;}
.cboxSlideshow_off #cboxSlideshow.hover{background-position:-125px 0px;}
#cboxTitle{position:absolute;bottom:4px;left:0;text-align:center;width:100%;color:#949494;}
#cboxCurrent{position:absolute;bottom:4px;left:58px;color:#949494;}
#cboxSlideshow{position:absolute;bottom:4px;right:30px;color:#0092ef;}
#cboxPrevious{position:absolute;bottom:0;left:0px;background:#666;width:25px;height:25px;text-indent:-9999px;}
#cboxPrevious.hover{background-position:-75px -25px;}
#cboxNext{position:absolute;bottom:0;left:27px;background:#666;width:25px;height:25px;text-indent:-9999px;}
#cboxNext.hover{background-position:-50px -25px;}
#cboxLoadingOverlay{}
#cboxLoadingGraphic{background:url('../img/loader.gif') no-repeat center center;}
#cboxClose{position:absolute;bottom:20px;right:20px;background-color:rgba(0,0,0,0.1);background-image:url('../img/cross.png');background-repeat:no-repeat;background-position:7px 7px;width:30px;height:30px;text-indent:-9999px;border-radius:15px;opacity:0.8;}
.message_box{position:relative;width:280px;min-height:50px;padding:20px 20px 20px 80px;font-size:14px;line-height:1.3em;overflow:hidden;}
.message_box:before{position:absolute;top:30px;left:10px;content:'i';height:60px;width:60px;color:#fff;line-height:60px;font-family:Georgia;font-size:42px;font-weight:bold;text-align:center;background-color:rgba(0,0,0,0.1);border-radius:30px;}
.message_box .action{padding-top:25px;text-align:center;}
.mb_question:before{content:'?';}
.mb_warning:before{content:'!';}
.ap_ajax h1{padding:0 10px;color:#fff;line-height:32px;font-size:18px;background-color:#57b5c7;}
.ap_ajax p{padding:15px 10px 10px;line-height:20px;font-size:14px;}
.cloud_zoom_lens{margin:-1px;background-color:#fff;cursor:move;border:1px solid #888;}
.cloud_zoom_title{position:absolute !important;top:0px;width:100%;padding:3px;color:#fff;font-size:12px;line-height:16px;text-align:center;background-color:#000;}
.cloud_zoom_big{overflow:hidden;border:4px solid #ccc;}
.cloud_zoom_loading{padding:3px;color:white;background:#222;border:1px solid #000;}
#properties_box{width:388px;padding:20px;}
#properties_box:before{display:none;}
.properties_wrapper{padding:14px;background-color:rgba(0,0,0,0.03);border:1px solid rgba(0,0,0,0.1);}
.properties dl{float:left;width:100%;}
.properties dt{float:left;width:100%;padding:5px 0;font-size:1.2em;}
.properties dd{float:left;width:100%;margin-bottom:10px;}
.properties label{position:relative;display:block;float:left;margin:0 5px 5px 0;padding:5px 15px;background-color:#fff;border:2px solid #eee;}
.properties label.hover{border-color:#ccc;}
.properties label.checked{color:#f53;border-color:#f53;}
.properties label.checked:before{position:absolute;top:0;left:50%;content:'';display:inline-block;width:0;height:0;overflow:hidden;margin-left:-4px;border:4px solid transparent;border-top-color:#f53;}
.properties label input{position:absolute;left:-999em;}
#top{position:relative;z-index:102;}
#account_area{float:right;height:20px;width:350px;padding:12px 0 8px;font-size:14px;line-height:20px;}
#account_area p{padding-right:10px;text-align:right;}
#account_area a{margin-left:3px;padding:0 8px;background-color:rgba(0,0,0,0.05);border-radius:4px;}
#top_nav{float:left;width:600px;padding:12px 0 8px;}
#top_nav li{position:relative;float:left;padding:0 10px;}
#top_nav li:first-child{border-left-width:0;}
#top_nav li > a.has_sub:after{content:'';display:inline-block;width:0;height:0;overflow:hidden;margin-left:2px;margin-bottom:-4px;border:4px solid transparent;border-top-color:rgba(0,0,0,0.3);vertical-align:middle;}
#top_nav li .sub_nav{display:none;position:absolute;left:50%;top:18px;z-index:100;min-width:100px;padding:5px;margin-left:-55px;background-color:rgba(0,0,0,0.5);border-radius:5px;box-shadow:0 3px 5px rgba(0,0,0,0.2);}
#top_nav li:hover > .sub_nav{display:block;}
#top_nav li .inner{display:block;padding:10px;background-color:#fff;border-radius:3px;}
#top_nav li .inner:before{content:'';position:absolute;left:50%;top:-5px;width:0;height:0;overflow:hidden;margin-left:-5px;border:5px solid transparent;border-bottom-color:#fff;}
#top_nav li .sub_nav a{display:block;padding:2px 5px;line-height:1.3em;white-space:nowrap;}
#header{position:relative;z-index:300;margin-bottom:10px;}
#header_bar{clear:both;height:56px;background-color:rgba(255,255,255,0.8);border-radius:4px;}
#logo{display:block;float:left;height:40px;width:150px;margin:8px 0 0 10px;font-size:18px;}
#logo:hover{opacity:0.8;}
#search_bar{float:right;position:relative;height:30px;padding:13px 15px 0 0;}
#search_bar input[type=text]{height:18px;width:120px;padding-right:35px;color:rgba(0,0,0,0.4);}
#search_bar input[type=text]:hover, #search_bar input[type=text]:focus{color:rgba(0,0,0,1);}
#search_bar input[type=submit]{position:absolute;top:13px;right:15px;height:30px;width:30px;text-indent:-999em;box-shadow:none;background:transparent url('../img/magnify_glass.png') no-repeat center center;border-width:0;opacity:0.3;-webkit-transition:opacity 0.5s ease-out;}
#search_bar input[type=submit]:hover{opacity:1;-webkit-transition:opacity 1s ease-out;}
#cart{position:relative;float:right;height:30px;width:85px;margin-top:13px;padding:0 15px 0 25px;border-left:1px dotted rgba(0,0,0,0.5);}
#cart .label a{display:block;height:30px;font-size:14px;line-height:30px;}
#cart .label a em{float:left;width:24px;height:18px;overflow:hidden;margin-right:6px;padding:7px 0 2px;color:rgba(255,255,255,0.9);font-size:9px;line-height:18px;text-align:center;background:url('../img/bag.png') no-repeat 0 1px;}
#cart .list{display:none;position:absolute;top:30px;right:0;z-index:100;width:310px;padding:5px;background-color:rgba(0,0,0,0.5);border-radius:5px;box-shadow:0 3px 5px rgba(0,0,0,0.2);}
#cart:hover .list{display:block;}
#cart .list:before{content:'';position:absolute;right:50px;top:-5px;width:0;height:0;overflow:hidden;margin-left:-5px;border:5px solid transparent;border-bottom-color:#fff;}
#cart .list .arrow{display:none;}
#cart .inner{padding:10px;background-color:#fff;border-radius:3px;}
#cart .list .cart_empty, #cart .list .cart_loading{padding:12px 5px;font-size:14px;font-weight:bold;text-align:center;}
#cart .list li{padding:5px;}
#cart .list li.first{background-image:none;}
#cart .list .info{float:left;width:174px;padding-right:5px;font-size:12px;line-height:14px;}
#cart .list .package_goods_list{display:none;}
#cart .list .photo{display:block;float:left;width:50px;height:50px;margin-right:5px;}
#cart .list .photo img{width:50px;}
#cart .list .name{padding-top:3px;line-height:16px;}
#cart .list .name em{margin-left:3px;}
#cart .list .brand{display:block;padding-top:3px;}
#cart .list .package_name{display:block;padding:5px;font-size:14px;font-weight:bold;line-height:18px;}
#cart .list .extra_info{display:block;color:#999;}
#cart .list .extra_info em{display:inline-block;margin-left:2px;padding:2px 5px;color:#fff;white-space:nowrap;background-color:#444;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;}
#cart .list span.price{float:left;width:100px;padding-top:3px;font-weight:bold;text-align:center;}
#cart .list .action{float:left;width:100px;padding-top:3px;text-align:center;}
#cart .list .action a{display:inline-block;padding:2px 8px;background:#eee;border-radius:3px;}
#cart .list .action a:hover{color:#fff;text-decoration:none;background-color:#444;background-position:left -90px;}
#cart .list .total{margin-top:5px;padding:5px 10px;border-top:1px solid #eee;}
#cart .list .total .price{font-weight:bold;}
#cart .list .next{padding:5px 10px;text-align:right;}
#cart .list .close{position:absolute;left:20px;bottom:15px;display:none;}
#header_nav{float:left;width:450px;padding:16px 12px 0;margin-left:10px;}
#header_nav li{position:relative;float:left;padding:0 2px;}
#header_nav li > a{position:relative;display:inline-block;padding:3px 10px;font-size:14px;}
#header_nav li > a.current{color:rgba(0,0,0,1);}
#header_nav li > a.has_sub:after{content:'';display:inline-block;height:12px;width:12px;margin-left:5px;background:url('../img/nav_arrow.png') no-repeat right -36px;opacity:0.5;}
#header_nav li > a.current:after{opacity:1;}
#header_nav li:hover > a.has_sub{z-index:101;padding:2px 9px 3px 9px;border:1px solid #e3e3e3;border-bottom-width:0;border-radius:3px 3px 0 0;background-color:#fff;}
#header_nav li:hover > a.has_sub:after{background-position:right 3px;opacity:1;}
#header_nav li .sub_nav{display:none;position:absolute;left:2px;top:24px;z-index:100;min-width:100px;background-color:#fff;border:1px solid #e3e3e3;border-radius:0 5px 5px 5px;box-shadow:2px 2px 2px rgba(0,0,0,0.05);}
#header_nav li:hover > .sub_nav{display:block;}
#header_nav li .inner{display:block;padding:10px;background-color:#fff;border-radius:3px;}
#header_nav li .sub_nav a{display:block;padding:2px 5px;line-height:1.3em;white-space:nowrap;}
#header_nav li .sub_nav a.current{background-color:rgba(0,0,0,0.05);border-radius:2px;}
.shop_notice{margin:0 10px 10px;padding:9px 14px;font-size:14px;}
/* =footer */
#footer{margin-top:30px;}
#footer .wrapper{padding:20px 0;border-top:1px solid rgba(0,0,0,0.1);}
#links{float:left;width:960px;margin-bottom:20px;padding:10px;background-color:rgba(0,0,0,0.03);border-radius:4px;}
#links li{float:left;width:160px;padding-bottom:10px;}
#links li h4{font-size:14px;padding:10px 0 10px 20px;}
#links li li{float:none;width:auto;padding-left:20px;padding-bottom:0;}
#bottom_nav{width:660px;float:right;text-align:right;}
#bottom_nav li{display:inline;}
#bottom_nav li:after{content:'';display:inline-block;height:12px;width:0;border-right:1px dotted rgba(0,0,0,0.2);vertical-align:middle;}
#bottom_nav a{display:inline-block;padding:0 8px;color:rgba(0,0,0,0.4);}
#bottom_nav a:hover{color:rgba(0,0,0,1);}
#bottom_nav li:last-child:after{display:none;}
#bottom_nav li:last-child a{padding-right:0;}
#bottom_nav .sub_nav{display:none;}
#copyright{float:left;width:300px;color:rgba(0,0,0,0.4);}
/* =content */
#content .wrapper{position:relative;}
.box{margin-bottom:10px;padding:0 10px;}
.box .hd{height:31px;border-bottom:1px solid rgba(0,0,0,0.18);}
.box .hd h3,.box .hd h2{float:left;height:28px;padding:3px 10px 0 10px;font-size:14px;line-height:28px;font-weight:normal;}
.box .hd .extra{float:right;height:28px;padding:3px 10px 0 0;line-height:28px;}
.box .bd{padding:10px 0;}
.bd:after{clear:both;content:'\0020';display:block;visibility:hidden;height:0}
.bd{display:inline-block}
* html .bd{height:1%}
.bd{display:block}
.has_tab_box .box{padding-top:39px;margin-top:-39px;}
.has_tab_box .box .hd{display:none;}
.has_tab_box .box .bd{padding:20px 0;}
.tab_wrapper{position:relative;height:39px;margin:0 10px;border-bottom:1px solid #e3e3e3;}
.tab_wrapper .tabs{float:left;height:32px;padding:7px 0 0;}
.tab_wrapper .extra{float:right;height:32px;padding:7px 0 0;}
.tab_wrapper .extra .pagination{padding-top:3px;}
.tabs .label{display:inline-block;float:left;padding:0 5px 0 10px;line-height:32px;}
.tabs a{display:block;float:left;height:31px;padding:0 20px;margin-right:4px;line-height:31px;color:rgba(0,0,0,0.4);font-size:14px;text-decoration:none;background-color:#fff;border:1px solid #e3e3e3;border-bottom-width:0;border-radius:5px 5px 0 0;background-image:-webkit-linear-gradient(top, #f2f2f2, #fff);outline:none;}
.tabs a:hover{color:#000;}
.tabs a.current{height:32px;color:rgba(0,0,0,0.8);background-image:-webkit-linear-gradient(top, #e8e8e8, #fff);}
.tabs a.current:hover{color:#000;}
.tabs a em{opacity:0.5;-webkit-transition:opacity 0.5s ease-out;}
.tabs a:hover em{opacity:1;-webkit-transition:opacity 1s ease-out;}
.tabs .arrow_up, .tabs .arrow_down{display:inline-block;float:right;height:20px;width:20px;overflow:hidden;margin:6px -6px 0 4px;line-height:999em;background:url('../img/arrow.png') no-repeat 4px 2px;}
.tabs .arrow_down{background-position:-36px 2px;}
.tabs .number{display:none;}
.slider{position:relative;width:960px;height:420px;}
.slider a{display:block;}
.slider img{position:absolute;top:0;left:0;width:960px;height:420px;}
.loader{display:inline-block;height:16px;width:16px;background:url('../img/loader.gif') no-repeat center center;visibility:hidden;}
.filter dl{padding:5px 0;line-height:18px;border-top:1px solid rgba(0,0,0,0.05);}
.filter .first{border-top-width:0;}
.filter dt{float:left;width:100px;padding:5px 0;text-align:right;}
.filter dd{padding:3px 10px 3px 100px;}
.filter dd a{display:inline-block;margin-right:5px;padding:2px 8px;white-space:nowrap;}
.filter dd a:hover{text-decoration:none;background-color:#eee;text-shadow:0 0 0, 0 1px 0 #fff;}
.filter dd a.all{background-color:#eee;}
.filter dd a.current{color:#fff;text-shadow:0 1px 1px rgba(0,0,0,0.3);background-color:#333;background-image:-webkit-linear-gradient(top, #666, #333);border-radius:3px;}
#main .wrapper > h1{margin:0 10px;font-size:1.6em;font-weight:bold;line-height:2.4em;}
.breadcrumbs{margin-bottom:10px;padding:0 10px;opacity:0.5;}
.breadcrumbs:hover{opacity:1;}
.breadcrumbs code{padding:0 3px;}

/* 內容頁麵包屑置中 */
body#page_goods .catalog-layout > .breadcrumbs,
body#page_category .catalog-layout > .breadcrumbs,
body#page_article .catalog-layout > .breadcrumbs,
body#page_article_cat .catalog-layout > .breadcrumbs,
body#page_brand .catalog-layout > .breadcrumbs,
body#page_search .catalog-layout > .breadcrumbs {
    text-align: center;
    margin: 0 0 16px;
    padding: 12px 0;
    opacity: 0.8;
    font-size: 14px;
    line-height: 1.6;
}
.pagination{padding-top:10px;font-size:13px;text-align:right;clear:both;}
.pagination a{display:inline-block;margin-left:2px;padding:2px 8px;background-color:rgba(0,0,0,0.03);border:1px solid rgba(0,0,0,0.3);border-radius:3px;}
.pagination a:hover{text-decoration:none;background-color:rgba(0,0,0,0.08);border-color:rgba(0,0,0,0.8);}
.pagination a.current{color:rgba(255,255,255,1);text-shadow:0 1px 1px rgba(0,0,0,0.3);background-color:#666;background-image:-webkit-linear-gradient(top, #aaa, #666);border-color:rgba(0,0,0,0.5);}
.pagination span{display:inline-block;padding:3px 6px;}
.product_details .bd{padding:0;}
.product_details h1{padding:20px 0 5px;color:#333;font-size:20px;line-height:24px;}
.product_details .intro{color:#999;font-size:14px;line-height:24px;}
.product_details .price_and_no{float:left;width:100%;margin-bottom:10px;padding:20px 0 5px;border-bottom:1px solid #dfdfdf;}
.product_details .basic{float:left;width:100%;padding:10px 0;}
.product_details .basic:empty{display:none;}
.product_details .basic li{float:left;width:210px;margin-right:15px;padding:5px 0;line-height:16px;}
.product_details .basic li strong{font-weight:normal;}
.product_details .basic li.sale_price{padding-bottom:0;line-height:20px;}
.product_details .basic li.sale_price strong{vertical-align:top;}
.product_details .basic li.sale_price .price{color:#f53;font-size:26px;}
.product_details .basic li.sale_price .org_price{padding-left:10px;color:#999;vertical-align:top;}
.product_details .basic li.sale_point{padding-bottom:0;line-height:20px;}
.product_details .basic li.sale_point strong{vertical-align:top;}
.product_details .basic li.sale_point .price{color:#f53;font-family:arial;font-size:26px;}
.product_details .basic .rank_price, .product_details .basic .volume_price{padding-right:10px;}
.product_details .price_and_no .price{float:left;color:#333;font-size:14px;}
.product_details .price_and_no .price strong{color:#f53;font-size:24px;line-height:24px;}
.product_details .price_and_no .price strong span{font-size:18px;}
.product_details .price_and_no .no{float:right;padding-top:5px;color:#999;font-size:14px;}
.product_details .details{float:right;width:450px;margin-bottom:10px;}
.product_details .extra_details{float:left;width:482px;margin-bottom:10px;}
.product_details .end_time_wrapper strong{line-height:28px;vertical-align:top;}
.product_details .end_time_wrapper .end_time{display:inline-block;padding:3px 8px 3px 3px;color:#999;line-height:20px;background-color:#f6f6f6;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;text-shadow:0 0 0, 0 1px 0 #fff;}
.product_details .end_time_wrapper .end_time .countdown_amount{padding:0 3px 0 5px;color:#f53;font-family:Arial,Helvetica,sans-serif;font-size:20px;}
.product_details .actions{float:left;width:420px;margin:20px 0 10px;padding:14px;background-color:rgba(0,0,0,0.03);border:1px solid rgba(0,0,0,0.1);}
.product_details .actions .info{float:left;width:240px;padding:2px 0;line-height:16px;}
.product_details .actions .info strong{font-weight:normal;}
.product_details .actions .stock{padding-left:10px;color:#999;}
.product_details .actions [name='number'], .product_details .actions [name='price']{width:50px;}
.product_details .actions .submit{float:right;width:170px;text-align:right;}
.product_details .properties{float:left;width:100%;margin-top:30px;}
.product_details .price_list{float:left;width:442px;margin-bottom:10px;}
.gallery{width:480px;float:left;margin-bottom:10px;border:1px solid #e8e8e8;}
.gallery .cover{display:block;width:480px;height:480px;}
.gallery .cover img{width:480px;height:480px;font-size:1.1em;}
.gallery .thumb{position:relative;padding:16px 30px;}
.touch .gallery .thumb{padding:16px 18px;}
.gallery .thumb li{display:block;float:left;height:66px;width:66px;padding:2px;text-align:center;}
.gallery .thumb li a{display:block;padding:2px;border:1px solid rgba(0,0,0,0.1);}
.gallery .thumb li a:hover{padding:1px;border:2px solid #f53;}
.gallery .thumb li img{height:60px;width:60px;vertical-align:middle;}
.gallery .thumb li.current a{padding:1px;border:2px solid #f53;}
.gallery .thumb .thumb_inner{position:relative;}
.gallery .controls a{position:absolute;top:41px;left:10px;width:20px;height:20px;text-indent:-999em;background:url('../img/scroll_arrow.png') no-repeat 5px -38px;outline:none;opacity:0.3;-webkit-transition:opacity 0.5s ease-out;}
.gallery .controls .next{left:auto;right:10px;background-position:-34px -38px;}
.gallery .controls a:hover{opacity:1;-webkit-transition:opacity 1s ease-out;}
.gallery .controls a:active{opacity:0.3;-webkit-transition:opacity 0.1s ease-out;}
.product_details .promote_box{clear:both;margin-bottom:10px;font-size:14px;line-height:25px;}
.product_details .promote_box em{font-size:20px;}
.product_details .promote_box .price{font-size:22px;}
.product_promotion{clear:both;padding:10px;margin-bottom:10px;line-height:20px;border:1px solid rgba(0,0,0,0.1);border-top:2px solid rgba(0,0,0,0.8);}
.product_promotion dt{padding-bottom:5px;font-size:14px;}
.product_promotion dd{margin-bottom:2px;}
.product_promotion .type{margin-right:5px;padding:2px 8px;color:rgba(255,255,255,1);text-shadow:0 1px 1px rgba(0,0,0,0.3);background-color:#333;background-image:-webkit-linear-gradient(top, #666, #333);border-radius:3px;opacity:0.8;}
.product_promotion .type:hover{opacity:1;}
.product_tags{clear:both;padding:10px;margin-bottom:10px;line-height:20px;background-color:rgba(0,0,0,0.03);border-radius:5px;}
.product_tags h2{padding-bottom:5px;font-size:14px;}
.product_tags .tags{padding:5px 0;line-height:18px;}
.product_tags input{vertical-align:middle;}
.tags .item_wrapper{display:block;margin-bottom:5px;}
.tags_cloud .tags .item_wrapper{display:inline;}
.tags .item{display:inline-block;margin:0 5px 3px 0;padding:3px 5px 3px 12px;line-height:16px;white-space:nowrap;background-color:rgba(0,0,0,0.05);border-radius:10px;}
.tags .item em{display:inline-block;min-width:8px;margin-left:5px;padding:2px 4px;line-height:12px;text-align:center;background-color:#fff;border-radius:7px;}
.tags .item:hover{color:#fff;text-decoration:none;background-color:rgba(0,0,0,0.6);}
.tags .item:hover em{color:rgba(0,0,0,0.6);}
.tags .drop{margin-right:15px;}
.package_list dl{float:left;width:100%;padding:10px 0;border-top:1px solid rgba(0,0,0,0.1);}
.package_list dl:first-child{border-top-width:0;}
.package_list dt{margin-bottom:10px;padding:5px 10px;color:#333;font-size:16px;background-color:rgba(0,0,0,0.03);border-bottom:1px solid rgba(0,0,0,0.1);border-radius:3px;}
.package_list .item_wrapper{display:block;float:left;width:690px;}
.package_list .item{position:relative;display:block;float:left;width:180px;padding-right:50px;background:url('../img/plus.gif') no-repeat 190px 65px;}
.package_list .item:last-child{padding-right:0px;}
.package_list .item .photo{display:block;width:180px;height:180px;}
.package_list .item .photo img{width:180px;height:180px;}
.package_list .item .name{display:block;height:19px;width:180px;margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.package_list .price_wrapper{display:block;float:right;width:200px;padding:10px 0;}
.package_list .price_wrapper .price{display:block;padding-bottom:5px;}
.package_list .price_wrapper .package_price strong{font-size:20px;}
.package_list .action{display:block;float:right;width:200px;margin-top:10px;}
#page_goods #main .box .hd{padding-bottom:3px;background-color:#f6f6f6;border-width:0;border-radius:3px;box-shadow:1px 1px 0 rgba(0,0,0,0.2);}
.product_description{padding:10px 0 20px;color:#333;font-size:14px;line-height:20px;}
.product_description p{padding:10px 0 20px;color:#333;font-size:14px;line-height:20px;}
.product_description img{max-width:100%;height:auto;}
.product_description h1{margin:8px 0;padding:5px 10px;color:#333;font-size:18px;}
.product_description h2{margin:5px 0;padding:5px 10px;color:#333;font-size:16px;background-color:#f6f6f6;border-bottom:1px solid #eee;}
.product_description h3, .product_description h4, .product_description h5{margin:3px 0;padding:5px 10px;color:#333;font-size:14px;}
.product_description em{font-style:italic;}
.product_description table{margin:10px 0;}
.product_description .time em{padding:0 5px;font-size:1.2em;}
.product_description .price{font-size:1.3em;}
.property_list dt{float:left;width:100%;padding:10px 0;font-size:1.4em;text-indent:20px;}
.property_list dt:not(:first-child){margin-top:10px;}
.property_list dd{float:left;width:100%;color:rgba(0,0,0,0.6);font-size:1.2em;background-color:rgba(0,0,0,0.03);}
.property_list dd:nth-child(even){background-color:rgba(0,0,0,0.06);}
.property_list dd strong{display:block;float:left;width:20%;padding:10px 0;color:rgba(0,0,0,0.8);text-indent:20px;}
.property_list dd span{display:block;float:left;width:80%;padding:10px 0;}
.comment_list li{padding:5px 0;}
.comment_list li .info{margin-bottom:5px;padding:5px 10px;font-size:14px;line-height:20px;background-color:rgba(0,0,0,0.03);border-bottom:1px solid rgba(0,0,0,0.1);border-radius:3px;}
.comment_list li .info .name{font-size:16px;padding-right:10px;text-shadow:0 0 0, 0 1px 0 #fff;}
.comment_list li .info .time{float:right;font-size:12px;color:rgba(0,0,0,0.3);}
.comment_list li .info .drop{float:right;display:inline-block;padding:2px 8px;white-space:nowrap;color:rgba(255,255,255,1);text-shadow:0 1px 1px rgba(0,0,0,0.3);background-color:#333;background-image:-webkit-linear-gradient(top, #666, #333);border-radius:3px;opacity:0.8;}
.comment_list li .info .drop:hover{opacity:1;}
.comment_list li .talk{padding:10px;font-size:14px;line-height:18px;}
.comment_list li .talk .title{padding:5px 0;}
.comment_list li .talk .type{padding-right:5px;}
.comment_list li .talk .text{display:block;padding:5px 0;}
.comment_list li .talk .reply{margin:5px 0 5px 50px;padding:10px;background-color:rgba(0,0,0,0.03);border-radius:8px;}
.comment_list li .talk .reply p{padding:5px 0;}
.comment_list li .talk .reply .name{color:rgba(255,50,50,0.8);}
.comment_box .pagination{margin-bottom:20px;}
.comment_box .form{padding:10px 20px 20px;background-color:#f6f6f6;border:1px solid #e5e5e5;}
.comment_box .form div.req{top:20px;right:20px;}
.comment_box .form #star_tip{padding:7px 0 0;}
.comment_box .form textarea{max-width:700px;}
.message_wrapper{position:relative;margin:50px 10px;padding:10px 120px;font-size:14px;}
.message_info:before{position:absolute;top:10px;left:20px;content:'i';height:80px;width:80px;color:#fff;line-height:80px;font-family:Georgia;font-size:60px;font-weight:bold;text-align:center;background-color:rgba(0,0,0,0.1);border-radius:40px;}
.message_wrapper dt{margin-bottom:15px;padding:5px 0 10px;color:#f53;line-height:24px;font-size:20px;}
.message_wrapper dt em{padding-left:5px;color:#f53;}
.message_wrapper dd{padding:5px 0;}
.message_wrapper dd em{color:#f53;}
.search_form_wrapper .bd{padding:19px;}
.search_form .price_input{width:50px;}
.promotion_product_list .item{padding:20px 10px;border-top:1px solid rgba(0,0,0,0.1);}
.promotion_product_list .item:first-child{border-top-width:0;}
.promotion_product_list .item h2{float:right;width:740px;margin-bottom:10px;padding:5px 10px;color:#333;font-size:20px;line-height:24px;}
.promotion_product_list .item .photo_wrapper{float:left;width:180px;}
.promotion_product_list .item .photo{display:block;width:180px;}
.promotion_product_list .item .photo img{width:180px;height:180px;}
.promotion_product_list .item .details{float:left;width:280px;padding:10px;}
.promotion_product_list .item .details li{padding:3px 0;line-height:16px;}
.promotion_product_list .item .details li strong{font-weight:normal;white-space:nowrap;}
.promotion_product_list .end_time{padding:2px 8px;color:rgba(255,255,255,1);text-shadow:0 1px 1px rgba(0,0,0,0.3);background-color:#333;background-image:-webkit-linear-gradient(top, #666, #333);border-radius:3px;opacity:0.8;}
.promotion_product_list .end_time .countdown_amount{margin:0 2px;}
.promotion_product_list .item .actions{float:right;width:210px;padding:14px;background-color:rgba(0,0,0,0.03);border:1px solid rgba(0,0,0,0.1);}
.promotion_product_list .item .actions p{padding:3px 0;line-height:16px;text-align:center;}
.promotion_product_list .item .actions strong{padding-right:5px;font-weight:normal;}
.promotion_product_list .item .actions .button_wrapper{padding-top:10px;}
.promotion_product_list .item .actions .bright_price{padding-bottom:0;line-height:20px;}
.promotion_product_list .item .actions .bright_price strong{vertical-align:top;}
.promotion_product_list .item .actions .bright_price .price{color:#f53;font-size:24px;}
.promotion_product_list .item .actions .bright_price .price span{font-size:18px;}
.activity_list .display_text li{width:100%;padding:5px 0;border-top:1px solid rgba(0,0,0,0.1);}
.activity_list .display_text li.first{border-top-width:0;}
.activity_list .display_text li .photo{float:left;width:50px;height:50px;border-bottom-width:0;}
.activity_list .display_text li .photo img{width:50px;height:50px;}
.activity_list .display_text li .info{float:left;width:460px;padding:0 10px;background-image:none;}
.activity_list .display_text li .promo{top:-1px;right:200px;}
.activity_list .display_text li .actions{float:right;width:160px;padding-top:15px;}
.activity_list .display_text li .actions .brighter_button{margin-right:5px;}
.activity_list .bd{position:relative;}
.activity_list .item{margin-bottom:10px;padding:10px 0;}
.activity_list .show_all{position:absolute;top:15px;right:0;}
.activity_list .item h2{padding:5px 10px;color:#333;font-size:20px;line-height:30px;}
.activity_list dd.name{font-size:20px;}
.activity_list .user_rank em{padding-right:5px;font-size:1.2em;}
.activity_list .number{position:absolute;top:0;right:0;padding:5px 10px;color:#fff;font-size:2em;}
.quotation form{padding:50px 0;text-align:center;line-height:26px;}
.quotation form input, .quotation form select{vertical-align:middle;}
.myship form, .myship table{margin-bottom:10px;}
.myship form select{margin-right:5px;}
.myship_list{width:100%;margin-top:10px;}
.wholesale h4{padding:5px;margin-bottom:10px;color:#000;font-size:1.2em;background:#ddd;border-top:1px solid #ccc;border-left:1px solid #ccc;border-right:1px solid #999;border-bottom:1px solid #999;}
.wholesale h4 a{padding-left:10px;color:#ff6600;font-size:12px;}
.wholesale table{margin-bottom:10px;}
.wholesale .submit_order{margin-bottom:10px;}
.wholesale .submit_order p{font-size:1.2em;line-height:1.5em;}
.wholesale .submit_order textarea{display:block;float:left;width:85%;}
.wholesale .submit_order .action{display:block;float:right;width:10%;padding-top:20px;}
.wholesale .submit_order .button{font-size:1.4em;}
.wholesale .photo{display:block;width:160px;height:160px;padding:2px;margin:0 auto;}
.wholesale .name{display:block;padding:2px;font-size:1.2em;text-align:center;}
.wholesale .table{margin-bottom:10px;}
.wholesale .number{margin-bottom:10px;}
.pick_out a{display:inline-block;padding:2px 8px;margin:0 5px 3px 0;background:#fff;border-width:1px;border-style:solid;border-color:#eee #ccc #ccc #eee;border-radius:3px;}
.pick_out a:hover{color:#fff;text-decoration:none;background:#ff6600;border:1px solid #ff6600;}
.pick_out .table{padding:0;border-width:0;}
.your_choose p{padding:3px 5px;line-height:18px;}
.your_choose p strong{display:inline-block;padding-left:12px;}
.your_choose .action{text-align:center;}
.po_cat_list .text_list a{display:inline-block;padding-left:12px;}
.po_cat_list .text_list sup{display:inline-block;margin-left:5px;padding:2px 6px;line-height:14px;background-color:#eee;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;}
.tags_cloud .bd{padding:14px;}
.tags_cloud .description{padding-bottom:20px;font-size:14px;line-height:18px;}
.brand_details h1{padding:5px;margin-bottom:10px;color:#333;font-size:20px;line-height:24px;border-bottom:1px dotted rgba(0,0,0,0.5);}
.brand_details .logo{float:left;width:180px;margin:0 20px 10px 0;}
.brand_details .description{margin-bottom:10px;font-size:14px;line-height:20px;text-indent:2em;}
.brand_details .cat_list{clear:both;padding:10px;line-height:18px;border-top:1px solid rgba(0,0,0,0.1);}
.brand_details .cat_list strong{display:block;margin-bottom:5px;}
.brand_details .cat_list a{display:inline-block;margin:0 5px 5px 0;padding:2px 8px;white-space:nowrap;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;}
.brand_details .cat_list a:hover{text-decoration:none;background-color:#eee;}
.brand_details .cat_list a.current{color:#fff;background:#ff8c22;}
.brand_details .cat_list a span{display:inline-block;margin-left:5px;padding:0 6px;color:#999;background-color:#eee;border-radius:3px;}
.brand_details .cat_list a:hover span, .brand_details .cat_list a.current span{color:#f53;background-color:#fff;}
.brand_list li{display:block;float:left;width:180px;height:90px;margin:0 15px 15px 0;padding:10px 0;text-align:center;}
.brand_list li:nth-child(5n){clear:right;margin-right:0;}
.brand_list .logo{display:block;color:#f53;line-height:60px;font-size:16px;}
.brand_list .logo img{max-width:180px;vertical-align:top;}
.brand_list .name{display:block;padding:4px;line-height:16px;}
.article_title{margin-bottom:10px;padding:8px 0;border-bottom:1px solid rgba(0,0,0,0.2);}
.article h1{display:inline;padding-left:10px;color:#333;font-size:26px;line-height:30px;}
.article_info{float:right;clear:right;padding:14px 10px 0;color:#999;line-height:16px;}
.article_info span{padding-left:10px;}
.article_content{padding:10px 0 20px;color:#333;font-size:14px;line-height:20px;}
.article_content h2{margin:5px 0;padding:5px 10px;color:#333;font-size:16px;background-color:rgba(0,0,0,0.03);border-bottom:1px solid rgba(0,0,0,0.1);border-radius:3px;}
.article_content h3, .article_content h4, .article_content h5{margin:3px 0;padding:5px 10px;color:#333;font-size:14px;}
.article_content em{font-style:italic;}
.article_content p{margin-bottom:10px;padding:5px 10px;text-indent:2em;}
.article_content img{max-width:100%;height:auto;}
.article_content table{margin:10px 0;}
.article_content dl.faq{padding:5px 10px;}
.article_content dl.faq dd{margin-left:2em;margin-bottom:15px;}
.article .download_wrapper{padding:10px 0;text-align:center;}
.article .nearby{margin-top:10px;padding:10px;line-height:18px;border-top:1px solid rgba(0,0,0,0.1);}
.article .nearby .next{float:right;}
#article_search{padding-bottom:10px;text-align:right;}
.article_list li{padding:10px;font-size:14px;line-height:20px;border-top:1px solid rgba(0,0,0,0.1);}
.article_list .first{border-top-width:0;}
.article_list li .title{display:inline-block;width:500px;}
.article_list li .author, .article_list li .time{float:right;padding-left:10px;color:#999;font-size:12px;font-weight:normal;}
.article_list li.head{margin-bottom:3px;color:#444;background-color:#fff;border-bottom:1px dashed #888;}
.article_list li.even{background-color:transparent;}
.topic h1{margin-bottom:10px;padding:8px 10px;color:#333;font-size:26px;line-height:30px;border-bottom:1px solid rgba(0,0,0,0.2);}
.topic h2{padding:8px 10px;font-size:1.2em;}
.compare_wrapper .bd{padding:14px;}
.compare_wrapper .button{margin:3px;}
.progress_bar{height:60px;margin:0 10px 10px;}
.progress_bar ol{list-style:none;counter-reset:li;}
.progress_bar li{float:left;height:40px;width:130px;margin-right:10px;padding:10px 20px;color:rgba(0,0,0,0.5);font-size:14px;line-height:40px;background-color:rgba(0,0,0,0.03);border-radius:5px;}
.progress_bar li:before{content:counter(li);counter-increment:li;float:left;height:30px;width:30px;margin-right:10px;color:rgba(0,0,0,0.3);line-height:30px;font-size:22px;text-align:center;background-color:transparent;border:5px solid rgba(0,0,0,0.08);border-radius:20px;}
.progress_bar .current{color:rgba(0,0,0,0.8);font-size:16px;background-color:rgba(0,0,0,0.06);}
.progress_bar .current:before{color:rgba(0,0,0,0.5);border-color:rgba(0,0,0,0.3);}
.flow_wrapper .box h4{padding:8px 10px;font-size:1.2em;}
.flow_wrapper .box .form h4{padding:0;margin:0 0 .6em;color:#ff6600;font-size:18px;}
.flow_wrapper .box .content{padding:0;border-width:0;}
.flow_wrapper .form label b, .flow_wrapper .form .label b{width:12em;}
.flow_wrapper .form div.submit_wrap{float:none;padding:5px 0 5px 12em}
.flow_wrapper .form label .directions{margin-left:12em;}
.flow_wrapper .form label select{width:auto}
.cart_produst_list .photo{float:left;width:60px;padding-right:10px;}
.cart_produst_list .photo img{width:60px;}
.cart_produst_list .name{display:block;margin-bottom:10px;font-size:1.2em;}
.cart_produst_list .package_name{padding:5px;font-size:14px;line-height:18px;}
.cart_produst_list .extra_info em{margin-right:5px;padding:2px 8px;color:#fff;text-shadow:0 1px 1px rgba(0,0,0,0.3);background-color:#333;background-image:-webkit-linear-gradient(top, #666, #333);border-radius:3px;}
.cart_produst_list .number{width:30px;}
.cart_produst_list .price{font-size:1.2em;line-height:2em;}
.cart_produst_list .subtotal{font-weight:bold;}
.cart_produst_list .quantity input{width:3em;}
.cart_produst_list .drop{display:inline-block;margin-top:5px;padding:2px 8px;white-space:nowrap;color:rgba(255,255,255,1);text-shadow:0 1px 1px rgba(0,0,0,0.3);background-color:#333;background-image:-webkit-linear-gradient(top, #666, #333);border-radius:3px;opacity:0.8;}
.cart_produst_list .drop:hover{opacity:1;}
.cart_produst_list .actions p{float:left;font-size:14px;text-align:left;}
.cart_produst_list .actions p.cart_action{float:right;}
.cart_produst_list .package_product_list em{margin-right:5px;padding:2px 5px;background-color:#eee;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;}
.checkout_produst_list .package_product_list{display:none;}
.flow_wrapper .consignee_list{margin-top:0;}
.flow_wrapper .favourable_list .data_table{margin-bottom:10px;}
.consignee_list form{margin-bottom:10px;}
.flow_wrapper .zoom{padding-right:10px;}
.order_total .complete{padding:10px 0;color:#999;font-size:12px;line-height:14px;}
.order_total .total_list{padding-bottom:10px;font-size:14px;line-height:16px;text-align:right;border-bottom:1px dashed #ccc;}
.order_total .total_fee{padding-top:10px;font-size:1.3em;line-height:1.4em;text-align:center;}
.order_total .total_fee .price{font-size:1.4em;}
.flow_action{display:inline-block;width:100%;padding:30px 0 50px;}
.flow_action .next{float:right;margin-right:380px;}
.flow_action .back{float:right;margin-right:20px;line-height:40px;font-size:16px;}
.checkout_wrapper .options{float:left;width:630px;}
.checkout_wrapper .option_title{margin-top:-1px;padding:8px 15px;background:#f8f8f8;border:1px solid #ddd;text-shadow:0 0 0, 0 1px 0 #fff;}
.checkout_wrapper .option_title h2{font-size:14px;line-height:18px;}
.checkout_wrapper .option_inner{padding:12px;}
.checkout_wrapper .option_item{float:left;width:180px;padding:10px 6px;}
.checkout_wrapper .option_item label{position:relative;display:block;height:50px;width:150px;margin:0 auto 5px;font-size:14px;line-height:50px;text-align:center;background:#fafafa url('../img/option_item_bg.gif') no-repeat left top;border:1px solid #eee;}
.checkout_wrapper .option_item label .name{display:block;height:50px;width:150px;overflow:hidden;}
.checkout_wrapper .option_item label:hover, .checkout_wrapper .option_item label.hover{border-color:#ccc;}
.checkout_wrapper .option_item label.checked{border-color:#f53;}
.checkout_wrapper .option_item label.disabled{opacity:0.5;cursor:default;}
.checkout_wrapper .option_item label .status{position:absolute;left:-2px;top:-2px;display:none;height:50px;width:150px;background:transparent url('../img/option_item_bg.gif') no-repeat left bottom;border:2px solid #f53;}
.checkout_wrapper .option_item label.checked .status{display:block;}
.checkout_wrapper .option_item img{position:absolute;left:0;top:0;height:50px;width:150px;}
.checkout_wrapper .option_item input{position:absolute;right:5px;bottom:5px;}
.checkout_wrapper .option_extra{clear:both;}
.checkout_wrapper .option_inner .current_intro{display:block;clear:both;margin-bottom:10px;padding:9px;line-height:16px;background-color:#f8f8f8;border:1px solid #eee;}
.checkout_wrapper .option_inner .current_intro a{padding:0 2px;text-decoration:underline;}
.checkout_wrapper .option_inner .insure_wrapper{text-align:right;}
.checkout_wrapper .option_inner .insure_disabled{display:none;}
.checkout_wrapper .card_message{clear:both;padding:9px;background-color:#f8f8f8;border:1px solid #eee;}
.checkout_wrapper .card_message h4{float:left;padding:2px 5px;}
.checkout_wrapper .card_message textarea{width:450px;}
.checkout_wrapper .postscript textarea{width:550px;margin-left:20px;}
.checkout_wrapper .current_option h2 span{color:#b00;}
.checkout_wrapper .later_option .option_inner{display:none;}
.checkout_wrapper .extra_options{clear:both;padding:9px 19px;background-color:#f8f8f8;border:1px solid #eee;}
.checkout_wrapper .extra_options .item{float:left;width:100%;padding:5px 0;border-bottom:1px dotted #eee;}
.checkout_wrapper .extra_options .last{border-bottom-width:0;}
.checkout_wrapper .extra_options h3{width:80px;float:left;font-size:12px;line-height:28px;}
.checkout_wrapper .extra_options .inner{float:left;}
.checkout_wrapper .extra_options .price_input{width:50px;margin-right:5px;}
.checkout_wrapper .extra_options .text_input{width:100px;margin-right:5px;}
.checkout_wrapper .details{float:right;width:300px;padding:9px;background-color:#fef9e6;border:1px solid #ffedad;}
.checkout_wrapper .detail_inner{padding:0 5px;}
.checkout_wrapper .details .title{padding:5px 9px;border:1px solid #FFF2BC;background:#fff url('../img/order_title_bg.gif') repeat left top;}
.checkout_wrapper .details .title a{float:right;}
.checkout_wrapper .cart_list li{position:relative;float:left;width:290px;padding:5px;border-bottom:1px dotted rgba(0,0,0,0.5);}
.checkout_wrapper .cart_list .photo{display:block;float:left;width:40px;height:40px;margin-right:5px;padding:2px;background-color:#fff;border:1px solid #eee;}
.checkout_wrapper .cart_list .photo img{width:40px;height:40px;}
.checkout_wrapper .cart_list .name em{margin-left:3px;}
.checkout_wrapper .cart_list .price{}
.checkout_wrapper .cart_list .drop{visibility:hidden;position:absolute;top:15px;right:5px;}
.checkout_wrapper .cart_list li:hover .drop, .checkout_wrapper .cart_list li.hover .drop{visibility:visible;}
.checkout_wrapper .cart_list .total{clear:both;padding:5px 10px;text-align:right;}
.checkout_wrapper .cart_list .next{padding:5px 10px;text-align:right;}
.checkout_wrapper .consignee_info{padding:10px;font-size:14px;line-height:18px;}
.checkout_wrapper .consignee_info strong{color:#999;font-size:12px;font-weight:normal;}
.checkout_wrapper .next{float:right;margin-right:0;}
.checkout_wrapper .back{float:right;margin-right:10px;}
.checkout_wrapper .goods_card textarea, .checkout_wrapper .other_info textarea{width:450px;}
.checkout_wrapper .other_info{line-height:25px;}
.checkout_wrapper .other_info span{line-height:25px;vertical-align:middle;}
.checkout_wrapper .other_info .price_input{width:50px;}
.checkout_wrapper .other_info p{padding:3px 0;}
.flow_done{margin-top:20px;}
.flow_done .pay_online{margin:30px;text-align:center;}
.virtual_card{padding:30px 10px 30px 30px;}
.virtual_card li{float:left;width:300px;margin-right:30px;padding:20px 30px 40px 30px;background-color:#f6f6f6;border-radius:10px;-moz-border-radius:10px;-webkit-border-radius:10px;}
.virtual_card li span{display:block;line-height:24px;}
.virtual_card li .type{margin-bottom:10px;font-size:16px;}
.product_description img.left{float:left;margin:2px 20px 16px 0;}
.product_description img.right{float:right;margin:2px 0 16px 20px;}
.product_description img.reflection{margin-bottom:0;}
.product_description .back_to_top{display:block;float:right;height:22px;margin:10px 0;padding-right:14px;font-size:12px;line-height:22px;}
.product_description .section{margin-top:36px;padding-top:18px;border-top:1px solid #e5e5e5;}
.product_description .section h2{margin-bottom:25px;font-size:18px;background-color:transparent;border-bottom-width:0;}
.product_description .section img.across{display:block;margin:0 auto 25px;}
.product_description .grid5col{margin:10px 0 20px;padding:10px 0;text-align:left;}
.product_description .grid5col .column{float:left;width:180px;padding-left:15px;}
.product_description .grid5col .column.first{padding-left:0;}
.product_description .grid5col .column h3{margin-bottom:5px;font-size:14px;line-height:18px;}
.product_description .grid5col .column h4{padding:0;font-size:12px;line-height:18px;}
.product_description .grid5col .column p{padding:0;color:#666;font-size:12px;line-height:18px;}
.product_description .grid3col{margin:10px 0 20px;padding:10px 0;text-align:left;}
.product_description .grid3col .column{float:left;width:300px;padding-left:30px;}
.product_description .grid3col .column.first{padding-left:0;}
.product_description .grid3col .column h3, .product_description .grid3col .column h4, .product_description  .grid3col .column p{padding:0;font-size:12px;line-height:18px;}
.product_description .grid3col .column h3{font-size:14px;}
.banner{padding:0 10px;margin-bottom:10px;}
.banner_small{display:none;margin-bottom:10px;}
.categories li{float:left;width:100%;padding:5px 0;}
.categories li a{float:left;width:100px;padding:0 10px;font-weight:bold;}
.categories li .sub_cat{float:left;width:840px;}
.categories li .sub_cat li{float:left;width:auto;padding:0 5px;}
.categories li li{float:none;width:auto;padding:0;position:relative;}
.categories li li a{float:none;width:auto;padding:0;font-weight:normal;}
.categories li li .sub_cat{display:none;position:absolute;left:2px;top:18px;z-index:100;width:auto;min-width:80px;padding:5px 10px;background-color:#fff;border:1px solid #e3e3e3;border-radius:5px;box-shadow:2px 2px 2px rgba(0,0,0,0.05);}
.categories li li:hover .sub_cat{display:block;}
.categories li li .has_sub:after{content:'';display:inline-block;width:0;height:0;overflow:hidden;margin-left:2px;margin-bottom:-4px;border:4px solid transparent;border-top-color:rgba(0,0,0,0.3);vertical-align:middle;}
.invoice_list li{float:left;width:172px;padding:5px 10px;line-height:18px;}
.invoice_list .title{display:block;float:left;width:55px;}
.invoice_list .data{display:block;float:left;width:115px;}
.invoice_list a:hover{color:#ff6600;text-decoration:underline;}
.order_query .bd{position:relative;}
.order_query .main{text-align:center;}
.order_query input[type='text']{width:150px;margin-bottom:10px;}
.order_query p{line-height:18px;}
.order_query p em{display:block;float:left;width:50px;}
.order_query p span{display:block;float:left;width:120px;}
.order_query p a:hover{color:#ff6600;text-decoration:underline;}
.brands li{float:left;display:block;margin-bottom:10px;text-align:center;}
.brands li img{max-width:100%;vertical-align:top;}
.vote .bd{position:relative;}
.vote h4{font-size:14px;line-height:18px;}
.vote .count{padding:5px 0 10px;color:#999;}
.vote label{display:block;padding:2px 0;}
.vote label input{vertical-align:middle;}
.vote label em{padding-left:3px;color:#999;font-size:.8em;}
.vote .actions{padding-top:10px;text-align:center;}
.subscription .bd{position:relative;}
.subscription form{text-align:center;}
.subscription input[type='text']{width:150px;margin-bottom:10px;}
.help_center li a{display:block;padding:3px 10px 3px 20px;}
.help_center li .title a{margin:5px 0;padding:5px 10px;color:#333;font-size:14px;background-color:rgba(0,0,0,0.03);border-bottom:1px solid rgba(0,0,0,0.1);border-radius:3px;}
.help_center li:first-child .title a{margin-top:0;}
.goods_article li{padding:5px;line-height:16px;}
.promotion_info .text_list li{padding:5px 0;line-height:20px;}
.promotion_info .type{margin-right:5px;padding:2px 5px;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;}
.promotion_info .type:hover{color:#fff;}
.article_category a.level_1{display:block;padding:5px;font-size:14px;line-height:16px;}
.article_category ul.level_2{padding:5px;}
.article_category a.level_2{display:block;padding:2px;line-height:14px;}
.four_col{float:left;width:100%;}
.four_col .box{float:left;width:225px;}
.user_form label b, .user_form .label b{text-align:right;}
.register_closed{display:block;padding:50px 0;font-size:1.5em;text-align:center;}
.account_tips{margin:0 10px 10px;background-color:rgba(0,0,0,0.06);border-radius:5px;}
.account_tips .hd{border-color:rgba(255,255,255,0.8)}
.account_tips .bd p{margin-bottom:10px;padding:0 10px;}
#user_nav{margin:0 10px 10px;}
#user_nav ul{padding:20px;background-color:rgba(0,0,0,0.03);border-radius:5px;}
#user_nav li a{display:block;padding:3px 0 3px 22px;color:#000;font-size:14px;line-height:20px;text-decoration:none;background:url('../img/user_nav_icon.png') no-repeat 0 100px;opacity:0.6;}
#user_nav li a:hover{opacity:1;}
#user_nav li.current a{font-weight:bold;opacity:0.8;}
#user_nav .user_default a{background-position:0 7px;}
#user_nav .user_profile a{background-position:0 -32px;}
#user_nav .user_order_list a{background-position:0 -75px;}
#user_nav .user_affiliate a{background-position:0 -113px;}
#user_nav .user_collection_list a{background-position:0 -193px;}
#user_nav .user_tag_list a{background-position:0 -233px;}
#user_nav .user_message_list a{background-position:0 -273px;}
#user_nav .user_account a{background-position:0 -313px;}
.user_status{padding:10px;line-height:18px;}
.user_status .hello{margin-right:10px;font-size:16px;}
.user_status .hello em{padding-left:3px;}
.user_status .email_valid{display:block;margin-right:10px;}
.user_status .email_valid a{margin-left:5px;}
.user_status .rank, .user_status .log{margin-right:10px;color:#999;}
.user_dashboard .item{display:inline;float:left;height:100px;width:170px;margin-left:20px;background-color:#eee;border:1px solid #e8e8e8;text-shadow:0 1px 1px rgba(255,255,255,0.8);background-image:-webkit-linear-gradient(top, #fff, #f0f0f0);border-radius:5px;}
.user_dashboard .item:first-child{margin-left:0;}
.user_dashboard .item .item_inner{display:block;height:100px;width:165px;text-decoration:none;}
.user_dashboard .item .item_inner .count{display:block;height:63px;width:170px;overflow:hidden;text-align:center;color:#333;font-size:32px;font-weight:bold;line-height:63px;}
.user_dashboard .item .item_inner .label{display:block;height:37px;width:160px;overflow:hidden;margin:0 5px;text-align:center;font-size:16px;font-weight:bold;line-height:37px;border-top:1px solid #e8e8e8;}
.user_dashboard .item .price sub{display:none;}
.user_dashboard .item .price span{font-size:26px;}
.merge_order p{padding-top:10px;font-size:1.2em;line-height:1.3em;}
.merge_order select{margin-right:5px;}
.generate_code{width:100%;}
.generate_code .options{width:300px;float:left;}
.generate_code .options input[type='text'], .generate_code .options input[type='password']{width:20px;}
.generate_code .code_wrapper{width:300px;float:right;}
.generate_code .code_wrapper textarea{height:120px;width:280px;margin:0;}
.affiliate_wrapper h2, .consignee_list h2{margin-bottom:10px;padding:5px 10px;font-size:1.2em;background-color:#f6f6f6;border-radius:3px;box-shadow:1px 1px 0 rgba(0,0,0,0.2);}
.affiliate_wrapper table{margin-bottom:10px;}
.affiliate_code label{display:block;padding-bottom:10px;}
.affiliate_code label input{width:180px;margin-left:5px;}
.affiliate_code_goods .preview table, .affiliate_code_goods .preview table tbody{border-width:0;}
.affiliate_code_goods .preview th, .affiliate_code_goods .preview td{border-top:none;border-bottom:none;border:none;}
.affiliate_code_goods .item{margin-bottom:10px;}
.affiliate_code_goods .item .label{padding:5px;}
.affiliate_code_goods .item .label a{float:right;}
.affiliate_code_goods .item textarea{width:98%;}
.affiliate_code table table,
.affiliate_code table table tbody,
.affiliate_code table table tr,
.affiliate_code table table td,
.affiliate_code table table th{background-color:transparent !important;border-width:0;}
.affiliate_code .item{padding-bottom:10px;}
.affiliate_code .item em{display:block;padding-bottom:5px;font-size:1.2em;}
.affiliate_code .item a{display:block;padding-top:5px;}
.affiliate_code .type_item{float:left;width:355px;padding:10px;}
.affiliate_code .type_item h3{padding:5px 0;border-bottom:1px solid #e8e8e8;}
.affiliate_code .type_item .preview{height:40px;padding:20px 10px;line-height:40px;text-align:center;}
.affiliate_code .type_item h4{margin-bottom:10px;}
.funds .actions{padding:5px 0;}
.consignee_list input[type='text'],.consignee_list input[type='password'],.consignee_list input[type='number'],.consignee_list input[type='email'],.consignee_list input[type='url'],.consignee_list input[type='tel']{width:160px;}
.order_list td{line-height:26px;}
.order_list .button{line-height:1.6em;}
.order_list .order_id{font-size:1.2em;}
.order_list .handle, .order_list .handler, .order_list .order_status{text-align:center;}
.order_list .order_status em, .order_list .handler .status, .order_detail .status{padding:3px 8px;line-height:20px;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;}
.order_status_0{color:#fff;background-color:#999;}
.order_status_1, .order_status_5, .order_status_6{color:#fff;background-color:#ccc;}
.order_status_2, .order_status_3, .order_status_4{color:#fff;background-color:#555;}
.pay_status_1{color:#fff;background-color:#999;}
.pay_status_2{color:#fff;background-color:#ccc;}
.pay_status_0{color:#fff;background-color:#555;}
.shipping_status_1, .shipping_status_3, .shipping_status_4, .shipping_status_5{color:#fff;background-color:#999;}
.shipping_status_2{color:#fff;background-color:#ccc;}
.shipping_status_0{color:#fff;background-color:#555;}
.order_detail h2{margin:10px 0;padding:5px 10px;color:#333;font-size:14px;background-color:rgba(0,0,0,0.03);border-bottom:1px solid rgba(0,0,0,0.1);border-radius:3px;}
.order_detail h2 .extra{float:right;font-size:14px;}
.order_detail .status{margin-right:5px;background-color:#eee;}
.order_detail .order_id{font-size:1.2em;}
.order_detail .view_message{float:right;}
.order_detail .invoice_no a{display:inline-block;padding:3px;font-size:14px;}
.order_product_list p{margin-bottom:5px;line-height:18px;}
.order_product_list .photo img{float:left;height:60px;width:60px;margin-right:10px;}
.order_product_list [name=surplus]{width:50px;margin:0 5px;}
.order_product_list .extra_info{color:#999;}
.order_product_list .extra_info em{margin-left:2px;padding:2px 5px;color:#fff;background-color:#ff8c22;border-radius:3px;}
.user .box h4{padding:8px 10px;font-size:1.2em;}
.user .box .form h4{padding:0;margin:0 0 .6em;color:#b00;font-size:18px;}
.user .box .content{padding:0;border-width:0;}
.user .form label b, .user .form .label b{width:12em;}
.user .form div.submit_wrap{padding:5px 0 5px 12em}
.user .form label .directions{margin-left:12em;}
.user .form label select{width:auto;}
.address_form label,.address_form .label{width:50%;}
.address_form label b,.address_form .label b{text-align:right;}
.address_form .region_select{width:100%;}
.pay_action{padding:10px;text-align:center;}
.account_log{padding:5px;line-height:20px;background:#fff;border:1px solid #eee;}
.account_log dt{margin-bottom:5px;padding:5px 10px;color:#333;line-height:20px;background-color:#f6f6f6;border-bottom:1px solid #eee;}
.account_log dd p{overflow:hidden;padding:5px 10px;line-height:20px;}
.account_log dd p:nth-child(even){background-color:#f8f8f8;}
.account_log .col_1,.account_log .col_2,.account_log .col_3,.account_log .col_4,.account_log .col_5,.account_log .col_6,.account_log .col_7{display:inline-block;vertical-align:top;}
.account_log .col_1{width:80px;}
.account_log .col_2{width:50px;}
.account_log .col_3{width:100px;}
.account_log .col_4{width:150px;margin-right:5px;}
.account_log .col_5{width:145px;}
.account_log .col_6{width:80px;}
.account_log .col_7{width:80px;}
.account_log_total{padding:5px 10px;}
/* =media */
@media screen and (max-width: 800px), screen and (max-device-width: 800px) {
body{min-width:640px;}
.wrapper{width:640px;}
#main .col_main{width:640px;}
#main .col_sub{width:640px;}
input[type='text'], input[type='password'], input[type='number'], input[type='email'], input[type='url'], input[type='tel']{width:13em;}
.message_wrapper{padding:5px;}
#top_nav{display:none;}
#account_area{width:640px;padding:12px 0 8px;}
#search_bar{width:280px;height:30px;}
#search_bar input[type=text]{width:235px;}
#header_nav{display:none;width:640px;margin:10px 0;padding:0;background-color:rgba(255,255,255,0.8);border-radius:5px;}
#page_index #header_nav{display:block;}
#header_nav ul{float:left;width:100%;padding:10px 0;}
#header_nav li{width:100%;padding:0;border-bottom:1px solid rgba(0,0,0,0.1);}
#header_nav li:first-child{border-top:1px solid rgba(0,0,0,0.1);}
#header_nav li > a{display:block;padding:10px 10px 10px 15px;font-size:14px;}
#header_nav li > a.has_sub{float:left;width:60px;}
#header_nav li > a.has_sub:after{display:none;}
#header_nav li > a:not(.has_sub):after{content:'';float:right;width:20px;height:20px;background:url('../img/scroll_arrow.png') no-repeat -34px -38px;opacity:0.5;}
#header_nav li > a:not(.has_sub):active:after{opacity:1;}
#header_nav li:hover > a.has_sub{padding:10px 10px 10px 15px;border:none;background-color:transparent;}
#header_nav li .sub_nav{display:block;float:left;position:static;width:555px;background-color:transparent;border:none;box-shadow:none;}
#header_nav li .inner{display:block;float:left;padding:0;background-color:transparent;}
#header_nav li .sub_nav a{display:block;float:left;margin:2px;padding:8px 15px;font-size:14px;background-color:rgba(0,0,0,0.06);border-radius:5px;}
#header_nav li .sub_nav a:active{color:rgba(255,255,255,0.8);background-color:rgba(0,0,0,0.8);}
#footer .wrapper{width:640px;}
#links{width:620px;}
#links > ul > li{width:206px;}
#bottom_nav{display:none;}
#copyright{padding:0 10px;}
.box{padding:0;}
.slider_wrapper{display:none;}
.product_list li{width:160px;margin:0;}
.product_list li:nth-child(5n){clear:none;margin-right:0;}
.product_list .photo img{height:160px;width:160px;}
.product_list .name{display:none;}
.product_list .price{position:absolute;right:0;bottom:0;padding-right:5px;}
.product_list .actions{position:absolute;left:0;bottom:0;text-align:left;}
.tab_wrapper{margin:0;}
.tab_wrapper .extra{height:auto;padding:10px;}
.tab_wrapper .extra .pagination{padding:0;}
.tabs a{padding: 0 15px;}
.pagination{padding-left:10px;padding-right:10px;}
.pagination span, .pagination a{margin-bottom:3px;}
.product_details .details{width:300px;padding:0 10px;}
.product_details .extra_details{width:320px;}
.product_details .actions{width:270px;margin:20px 0 10px;padding:14px;border:1px solid rgba(0,0,0,0.1);}
.product_details .actions .info{width:100px;}
.product_details .actions [name='number'], .product_details .actions [name='price']{width:30px;}
.product_details .actions .stock{display:none;}
.product_details .actions .submit{float:right;width:170px;text-align:right;}
.product_details .price_list{width:292px;}
.product_details .price_list dt{float:none;}
.product_details .price_list dd{padding:3px 9px 3px 9px;}
.product_details .price_list dd p .price{width:135px;}
.gallery{width:318px;}
.gallery .cover{width:318px;height:318px;}
.gallery .cover img{width:318px;height:318px;}
.property_list dd strong{width:40%;}
.property_list dd span{width:60%;}
.comment_box .form textarea{max-width:400px;}
#page_article_cat .col_sub,.article_list li .author,.article_list li .time{display:none;}
.article_list li .title{width:300px;}
#article_search{text-align:center;}
.article h1{font-size:20px;}
.promotion_product_list .item h2{width:420px;}
.promotion_product_list .item .details{width:200px;}
.promotion_product_list .item .actions{width:200px;padding:14px 4px;}
.progress_bar{margin:0 5px 10px;}
.progress_bar li{padding:8px 10px;}
.progress_bar li:last-child{margin-right:0;}
.flow_wrapper .form label b, .flow_wrapper .form .label b{width:9em;}
.cart_produst_list col:nth-of-type(4), .cart_produst_list th:nth-of-type(4), .cart_produst_list td.nth-of-type(4){display:none;}
.cart_produst_list .cart_action .text_button{display:none;}
.flow_action .next{margin-right:220px;}
.checkout_wrapper .details{width:620px;}
.checkout_wrapper .options{width:640px;margin-bottom:10px;}
.checkout_wrapper .option_inner{padding:5px;}
.checkout_wrapper .option_item{width:152px;margin:0 5px 5px 0;padding:0;}
.checkout_wrapper .option_item label{margin-bottom:0;}
.checkout_wrapper .option_item .info{display:none;}
.checkout_wrapper .postscript textarea{width:570px;}
.checkout_wrapper .extra_options h3{float:none;}
.categories > li > .sub_cat{width:520px;}
.order_query input[type='text'], .subscription input[type='text']{width:220px;}
.four_col .box{width:300px;padding:0 10px;}
.account_tips .hd h3{padding:3px 20px 0;}
.account_tips .bd p{padding:0 20px;}
#user_nav{float:left;clear:both;margin:0 10px 10px;}
#user_nav ul{float:left;width:600px;padding:10px;}
#user_nav ul li{float:left;width:140px;}
.user_dashboard .item{width:158px;margin:0;}
.user_dashboard .item .item_inner{width:158px;}
.user_dashboard .item .item_inner .count{width:158px;}
.user_dashboard .item .item_inner .label{width:148px;}
.affiliate_code .type_item{width:300px;}
.order_list col:nth-of-type(2),.order_list th:nth-of-type(2),.order_list td:nth-of-type(2){display:none;}
.banner{padding:0;}
.banner img{height:auto;}
}
@media screen and (max-width: 460px), screen and (max-device-width: 460px) {
body{min-width:320px;}
.wrapper{width:320px;}
#main .col_main{width:320px;}
#main .col_sub{width:320px;}
.form label .directions{width:15em;margin-left:6em;}
.form label b,.form .label b{width:6em;}
.form .label em.after,.form label em.after{clear:both;margin-left:7em;}
.form div.submit_wrap{padding:5px 0 5px 6em}
.message_box{width:240px;padding:10px;}
.message_box:before{display:none;}
.message_info:before{display:none;}
#account_area{display:none;width:320px;}
#page_index #account_area{display:block;}
#search_bar{display:none;margin:8px auto 0;padding:10px;max-width:280px;}
#page_index #search_bar{display:block;}
#search_bar input[type=submit]{top:10px;right:10px;}
#header_nav{width:320px;margin:0;}
#header_nav li .sub_nav{width:235px;}
#footer .wrapper{width:320px;}
#links{width:300px;}
#links > ul > li{width:150px;}
.pagination .total{display:block;}
.property_list dd strong{width:100%;}
.property_list dd span{width:100%;padding-top:0;text-indent:20px;}
.comment_box .form{padding:10px;}
.comment_box .form textarea{max-width:170px;}
.comment_box .form label b, .comment_box .form .label b{text-align:right;}
.promotion_product_list .item h2{width:300px;padding:5px 0;}
.promotion_product_list .item .photo_wrapper{margin-left:60px;}
.promotion_product_list .item .details{margin-left:45px;}
.promotion_product_list .item .actions{margin-right:45px;}
.progress_bar{margin:0 6px 10px;}
.progress_bar li{height:50px;width:63px;margin-right:5px;padding:5px;line-height:18px;text-align:center;}
.progress_bar li.current{font-size:14px;}
.progress_bar li:before{display:block;height:20px;width:20px;margin:0 18px 3px;font-size:16px;line-height:20px;border-width:3px;border-radius:15px;}
.cart_produst_list th:nth-of-type(4), .cart_produst_list td.subtotal{display:none;}
.cart_produst_list .photo{float:none;padding-right:0;}
.flow_action .next{margin-right:30px;}
.checkout_wrapper .details{width:300px;}
.checkout_wrapper .options{width:320px;}
.checkout_wrapper .option_item:nth-child(2n){clear:right;margin-right:0;}
.checkout_wrapper .card_message textarea{width:270px;}
.checkout_wrapper .postscript textarea{width:290px;margin-left:0;}
.categories > li > .sub_cat{width:300px;padding:10px;}
.user_form .quick_buy{margin-top:10px;}
#user_nav ul{width:280px;}
.generate_code label b,.generate_code .label b{width:9em;}
.generate_code div.submit_wrap{padding:5px 0 5px 9em}
.order_list col:nth-of-type(2),.order_list col:nth-of-type(3),.order_list col:nth-of-type(5),.order_list th:nth-of-type(2),.order_list th:nth-of-type(3),.order_list th:nth-of-type(5),.order_list td:nth-of-type(2),.order_list td:nth-of-type(3),.order_list td:nth-of-type(5){display:none;}
.order_product_list .photo img{float:none;display:block;margin-right:0;}
.address_form label,.address_form .label{width:100%;}
.address_form label b,.address_form .label b{width:9em;}
.address_form div.submit_wrap{padding:5px 0 5px 9em}
.message_form label textarea{width:170px;}
.account_form label textarea{width:170px;}
.payment_method_list col:nth-of-type(3),.payment_method_list th:nth-of-type(3),.payment_method_list td:nth-of-type(3){display:none;}
.banner{display:none;}
.banner_small{display:block;}
}

/* --- Mobile Bottom Navigation Bar --- */
#mobile-nav {
    display: none; /* Hidden by default on desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px; /* Navbar height */
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
    z-index: 9999;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.08);
}

#mobile-nav ul {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}

#mobile-nav li {
    flex-grow: 1;
    text-align: center;
}

#mobile-nav a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #555555;
    text-decoration: none;
    font-size: 14px;
    height: 100%;
    padding: 4px 0;
    line-height: 1.4;
}

#mobile-nav a:hover,
#mobile-nav a.active {
    color: #d92630; /* Highlight color on hover or current page */
}

#mobile-nav .nav-icon {
    font-size: 22px; /* Icon size */
    margin-bottom: 2px;
}

/* Use a media query to show the navbar only when screen width < 800px */
@media screen and (max-width: 800px) {
    #mobile-nav {
        display: block;
    }
    /* Add bottom padding to body to prevent content from being covered */
    body {
        padding-bottom: 60px; /* Must match #mobile-nav height */
    }
}
/* --- End Mobile Bottom Navigation Bar --- */


/* --- Floating Action Buttons (consolidated & optimized) --- */
#floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 80px;
    z-index: 9998;
}

#floating-buttons ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#floating-buttons li {
    margin-bottom: 10px;
}

#floating-buttons a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #444;
    text-decoration: none;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    font-size: 12px;
    line-height: 1.2;
}

#floating-buttons a:hover {
    background-color: #f0f0f0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    color: #000;
}

#floating-buttons .btn-icon {
    font-size: 24px;
    margin-bottom: 2px;
}

/* Specific button colors */
#floating-buttons a.float-line {
    background-color: #00B900;
    color: white;
}
#floating-buttons a.float-line:hover {
    background-color: #009A00;
}

#floating-buttons a.float-msg {
    background-color: #5d82e1;
    color: white;
}
#floating-buttons a.float-msg:hover {
    background-color: #4a6ac8;
}

/* TOP button styles */
#floating-buttons a.float-top {
    display: none; /* Hidden by default; controlled by JS */
    text-align: center;
    line-height: 60px; /* Vertical centering (same as button height) */
    padding: 0;
    background-color: #777777;
    color: white;
    font-size: 18px;
    font-weight: bold;
}

#floating-buttons a.float-top:hover {
    background-color: #555555;
}

/* === Mobile styles (merged media query) === */
@media screen and (max-width: 800px) {
    #floating-buttons {
        right: 15px;
        bottom: 80px; 
    }

    #floating-buttons a {
        width: 50px;
        height: 50px;
    }

    #floating-buttons .btn-icon {
        font-size: 20px;
    }

    /* Adjust line-height for TOP button to match new height */
    #floating-buttons a.float-top {
        line-height: 50px; /* Equals mobile button height */
    }
}
/* --- End Floating Action Buttons --- */


/* --- Mobile hamburger menu styles --- */
.mobile-menu-hint {
    display: none;
}

#mobile-menu-toggle {
    display: none;
    position: static;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.header-menu-toggle {
    display: none;
}

#mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #333;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

.mobile-menu-label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #d92630;
    line-height: 1.2;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

#menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 10005;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

body.menu-open #mobile-menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.menu-open #mobile-menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open #mobile-menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
body.menu-open #menu-overlay {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto;
}

body.menu-open #header {
    z-index: 10010 !important;
}

@media screen and (max-width: 800px) {
    .mobile-menu-hint {
        display: none !important;
    }

    .header-menu-toggle,
    #header_bar #mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        margin: 0;
        padding: 0;
        background: #fff;
        border: 1px solid #e8e8e8;
        border-radius: 8px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.06);
        cursor: pointer;
        flex-shrink: 0;
    }

    #account_area,
    #cart {
        display: none !important;
    }

    #header_bar {
        display: grid !important;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
        justify-content: stretch;
        min-height: 52px;
        padding: 8px 12px !important;
        box-sizing: border-box;
    }

    .header-menu-group {
        grid-column: 1;
        grid-row: 1;
        display: flex;
        align-items: center;
        gap: 6px;
        justify-self: start;
        min-width: 0;
    }

    #search_bar,
    #search_bar.header-search-compact {
        display: block !important;
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: center;
        width: min(280px, 100%);
        max-width: 280px;
        float: none;
        margin: 4px auto 0;
        padding: 0;
        order: unset;
        flex: none;
    }

    #search_bar input[type=text] {
        width: 100%;
        height: 34px;
        padding: 0 36px 0 10px;
        font-size: 14px;
        border-radius: 18px;
        box-sizing: border-box;
    }

    #search_bar input[type=submit] {
        top: 50%;
        right: 4px;
        transform: translateY(-50%);
        width: 28px;
        height: 28px;
        background-size: 16px 16px;
    }

    .header-menu-label {
        display: block;
        font-size: 14px;
        font-weight: 700;
        color: #d92630;
        line-height: 1.2;
        white-space: nowrap;
        letter-spacing: 0.02em;
    }

    body.menu-open .header-menu-label {
        visibility: hidden;
    }

    #logo {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
        margin: 0 auto !important;
        max-width: 140px;
        flex-shrink: 0;
    }

    #logo img {
        max-height: 44px;
    }

    #header_bar .header-menu-toggle,
    #header_bar #mobile-menu-toggle {
        grid-column: auto;
        justify-self: start;
    }

    #header_bar .header-menu-group .header-menu-toggle,
    #header_bar .header-menu-group #mobile-menu-toggle {
        flex-shrink: 0;
    }

    /* 手機版：導覽改為右側滑出面板 */
    #header_nav.header-nav-inline {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        width: min(86vw, 320px) !important;
        height: 100vh !important;
        max-height: 100vh !important;
        margin: 0 !important;
        padding: 72px 0 24px !important;
        background-color: #fff !important;
        color: #333 !important;
        z-index: 10012 !important;
        transform: translateX(100%) !important;
        transition: transform 0.3s ease-in-out !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        flex: none !important;
        order: unset !important;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.18);
        pointer-events: auto;
    }

    body.menu-open #header_nav.header-nav-inline {
        transform: translateX(0) !important;
    }

    #header_nav.header-nav-inline > ul {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        background: #fff !important;
    }

    #header_nav.header-nav-inline li {
        width: 100% !important;
        display: block !important;
        float: none !important;
        background: #fff !important;
    }

    #header_nav.header-nav-inline li > a {
        display: block !important;
        padding: 14px 20px !important;
        font-size: 17px !important;
        line-height: 1.35 !important;
        white-space: normal !important;
        color: #333 !important;
        border-bottom: 1px solid #f0f0f0 !important;
        background: #fff !important;
    }

    #header_nav.header-nav-inline li:hover > a.has_sub {
        border: none !important;
        border-bottom: 1px solid #f0f0f0 !important;
        border-radius: 0 !important;
        padding: 14px 20px !important;
        color: #333 !important;
        background: #fff !important;
    }

    #header_nav.header-nav-inline li .sub_nav {
        display: block !important;
        position: static !important;
        transform: none !important;
        left: auto !important;
        top: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 0 8px 0 !important;
        background: #fafafa !important;
        border: none !important;
        box-shadow: none !important;
    }

    #header_nav.header-nav-inline li .sub_nav .inner {
        padding: 0 !important;
        background: #fafafa !important;
    }

    #header_nav.header-nav-inline li .sub_nav a {
        display: block !important;
        padding: 10px 28px !important;
        font-size: 16px !important;
        color: #444 !important;
        white-space: normal !important;
        background: transparent !important;
    }

    @media screen and (max-width: 420px) {
        .header-menu-label {
            display: none !important;
        }
    }
}
/* --- End mobile hamburger menu styles --- */


/* --- Product list card-style revamp: start --- */
/* A. Remove/reset old product_list styles to avoid conflicts */
.product_list ul {
	float: none;
	width: 100%;
}
.product_list li {
	float: none;
	width: auto;
	margin: 0;
	opacity: 1 !important; /* Cancel old hover transparency effect */
}
.product_list li:nth-child(5n) {
	clear: none;
	margin-right: 0;
}
.product_list ul:hover > li {
	opacity: 1 !important; /* Ensure no old transparency on hover */
}
.product_list .name, .product_list .price {
	float: none;
	width: auto;
	height: auto;
	position: static;
	text-align: left;
	margin-top: 0;
}

/* B. New grid layout container */
.product-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr); /* Desktop: 4 products per row */
	gap: 20px; /* Spacing between products */
	padding: 0;
}

/* C. New product card styles */
.product-card {
	border: 1px solid #e0e0e0;
	border-radius: 8px; /* Rounded corners */
	overflow: hidden; /* Clip overflow to respect rounding */
	background-color: #fff;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
	display: flex;
	flex-direction: column; /* Stack card contents vertically */
}
.product-card:hover {
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
	transform: translateY(-5px);
}

/* D. Internal elements */
.product-image-container {
	position: relative; /* For positioning hover actions/badges */
	width: 100%;
	padding-top: 100%; /* Keep 1:1 square using intrinsic ratio */
	overflow: hidden;
}
.product-image-container img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover; /* Fill container without distortion */
	transition: transform 0.3s ease;
}
.product-card:hover .product-image-container img {
	transform: scale(1.05); /* Slight zoom on hover */
}

.product-info {
	padding: 15px;
	text-align: center;
	flex-grow: 1; /* Fill remaining vertical space */
	display: flex;
	flex-direction: column;
	justify-content: space-between; /* Separate name and price */
}

.product-name {
	font-size: 16px;
	margin: 0 0 10px 0;
	height: 3.2em;
	line-height: 1.5em;
	overflow: hidden;
}
.product-name a {
	color: #333;
}
.product-name a:hover {
	color: #d92630;
}

.product-price {
	font-size: 20px;
	font-weight: bold;
	color: #d92630;
}
.product-price del {
	font-size: 15px;
	color: #999;
	margin-left: 8px;
	font-weight: normal;
}

/* E. Hover actions & badges */
.product-hover-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}
.product-card:hover .product-hover-actions {
	opacity: 1;
	transform: translateY(0);
}
.action-btn {
	color: #fff;
	background-color: rgba(0, 0, 0, 0.5);
	border: 1px solid #fff;
	padding: 8px 16px;
	margin: 0 5px;
	text-decoration: none;
	border-radius: 20px;
	font-size: 12px;
	transition: background-color 0.2s ease;
}
.action-btn:hover {
	background-color: #d92630;
	border-color: #d92630;
	color: #fff;
}

.product-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background-color: #d92630;
	color: white;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: bold;
	border-radius: 15px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* F. Responsive design (tablet & mobile) */
@media (max-width: 992px) {
	.product-grid {
		grid-template-columns: repeat(3, 1fr); /* Tablet: 3 per row */
	}
}
@media (max-width: 768px) {
	.product-grid {
		grid-template-columns: repeat(2, 1fr); /* Mobile: 2 per row */
		gap: 10px;
	}
	.product-info { padding: 10px; }
	.product-name { font-size: 16px; line-height: 1.45; }
	.product-price { font-size: 18px; }
	.action-btn { padding: 6px 12px; }
}
/* --- Product list card-style revamp: end --- */


/* --- Quick Add-to-Cart tooltip styles --- */

.quick-buy-dialog {
    padding: 20px;
    text-align: center;
    color: #333;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    box-sizing: border-box;
}
.quick-buy-dialog p {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 30px 0;
}
.quick-buy-dialog .actions a {
    display: inline-block;
    padding: 12px 25px;
    margin: 0 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 100px;
}
.quick-buy-dialog .actions .btn-continue {
    background-color: #fff;
    color: #555;
    border: 1px solid #ccc;
}
.quick-buy-dialog .actions .btn-continue:hover {
    background-color: #f0f0f0;
    border-color: #bbb;
}
.quick-buy-dialog .actions .btn-checkout {
    background-color: #d92630;
    color: #fff;
    border: 1px solid #d92630;
}
.quick-buy-dialog .actions .btn-checkout:hover {
    background-color: #b01e26;
    border-color: #b01e26;
}
/*
 * Image centering settings for article content section
 * Target selector: .article_content
 */

.article_content p {
    /* Remove the default paragraph indent so that images inside <p> tags can be centered */
   
    /* Center images (treated as inline elements) within <p> */
}

.article_content img {
    /* Make images block elements and use auto margins for reliable centering */
    display: block; 
    margin-left: auto;
    margin-right: auto;
    /* Ensure it’s not overridden by other float rules */
    float: none !important;
}

/* Ensure tables in article content are also centered, since images are sometimes inside tables */
.article_content table {
    margin-left: auto;
    margin-right: auto;
}

/* Override old list styles to prevent conflicts */
.article_list {
    display: none !important; /* Hide old ul lists and use new div structure */
}

/* Article card container: responsive two-column or multi-column layout */
.article-list-wrapper {
    display: grid;
    /* Display 2 columns on desktop */
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px; /* Column spacing */
    padding: 10px 0;
}

.article-card-item {
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.article-card-item:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.article-photo-link {
    display: block;
    float: left; 
    width: 100px; /* Fixed image width */
    height: 100px; /* Fixed image height */
    overflow: hidden;
    margin-right: 15px;
    border-radius: 4px;
}

.article-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure image fills the area while maintaining aspect ratio */
}

.article-info {
    overflow: hidden; /* Prevent content block from being squeezed by image */
}

.article-title {
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 5px;
    line-height: 1.4;
    height: 3em; /* Limit title height to prevent image displacement */
    overflow: hidden;
}

.article-meta {
    padding-top: 5px;
    font-size: 12px;
    color: #888;
    line-height: 1.6;
}

.article-author {
    margin-left: 10px;
}

.article-click {
    margin-left: 10px;
}

/* Mobile version: show 1 column only */
@media screen and (max-width: 640px) {
    .article-list-wrapper {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .article-card-item {
        padding: 10px;
        display: flex;
        align-items: flex-start;
        gap: 12px;
    }
    .article-photo-link {
        float: none;
        width: 80px;
        height: 80px;
        flex-shrink: 0;
        margin-right: 0;
    }
    .article-info {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }
    .article-title {
        height: auto;
        max-height: 2.8em;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

#top {
    background-color: #f5f5f5; /* Light gray background; you can change to any color you like */
    border-bottom: 1px solid #e0e0e0; /* Bottom separator line for visual layering */
}

/* --- Remove space between header and main content --- */
#header {
    margin-bottom: 0 !important; /* Remove margin below header area */
}

#main .wrapper {
    padding-top: 0 !important; /* Remove top padding above main content area */
}

/* --- New footer styling --- */

/* 1. Reset footer container */
#footer {
    margin-top: 30px; /* Spacing between footer and main content */
    padding: 0;
    background-color: transparent; /* Clear old background */
}

#footer .wrapper {
    border-top: none; /* Remove old top border */
}

/* 2. Main link section (dark gray) */
.footer-main {
    background-color: #333333; /* Dark gray background */
    padding: 30px 0;
    color: #dddddd; /* Default text color */
}

#footer #links {
    width: 100%; /* Ensure correct width */
    margin-bottom: 0;
    background: none; /* Clear old background */
    padding: 0;
}

/* 3. Link section titles (e.g., Shopping Guide, After-sales Service) */
#footer #links h4,
#footer #links h4 a {
    font-size: 14px;
    color: #ffffff; /* White titles for emphasis */
    margin-bottom: 10px;
    padding: 0;
}

/* 4. Links inside each section (e.g., Join Member, Delivery Method) */
#footer #links li li {
    padding: 2px 0;
}

#footer #links a {
    color: #bbbbbb; /* Light gray link text */
    text-decoration: none;
    transition: color 0.2s;
}

#footer #links a:hover {
    color: #ffffff; /* Turns white on hover */
}

/* 5. Bottom copyright area (darker background) */
.footer-bottom {
    background-color: #222222; /* Darker than above */
    padding: 15px 0;
    color: #888888; /* Dimmer gray for copyright text */
    font-size: 14px;
}

/* 6. Copyright text and bottom navigation styles */
#footer #copyright {
    float: left;
    color: #888888;
}

#footer #bottom_nav {
    float: right;
    color: #888888;
}

#footer #bottom_nav a {
    color: #888888;
}

#footer #bottom_nav a:hover {
    color: #ffffff;
}

/* --- Product page quantity selector (integrated version) --- */
.quantity-selector {
    display: inline-flex; /* Flex layout for horizontal alignment */
    align-items: center; /* Vertically center items */
    border: 1px solid #ccc; /* Unified border */
    border-radius: 5px; /* Consistent rounded corners */
    margin-left: 10px;
    vertical-align: middle;
    overflow: hidden; /* Important: unify visual rounding */
}

.quantity-selector button {
    background-color: #f5f5f5;
    border: none; /* Remove button border */
    color: #555;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    width: 30px;
    height: 30px;
    line-height: 30px;
    transition: background-color 0.2s;
    padding: 0; /* Remove default padding */
}

.quantity-selector button:hover {
    background-color: #e0e0e0;
}

/* Add border only on the right side of the minus button */
.quantity-selector .btn-minus {
    border-right: 1px solid #ccc;
}

/* Add border only on the left side of the plus button */
.quantity-selector .btn-plus {
    border-left: 1px solid #ccc;
}

/* Remove input borders for seamless look */
.quantity-selector input {
    width: 40px;
    height: 30px; /* Match container height */
    text-align: center;
    border: none; /* Remove border */
    outline: none; /* Remove focus outline */
    font-size: 14px;
    font-weight: bold;
    background-color: #fff; /* Keep white background */
    /* Remove default up/down arrows in number inputs */
    -moz-appearance: textfield;
}
.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* --- Product page purchase block layout fix --- */
.product_details .actions {
    display: flex;                  
    justify-content: space-between; 
    align-items: center;            
    width: 100%;                    
    box-sizing: border-box;         
}

.product_details .actions .info {
    float: none;      
    width: auto;      
    line-height: 32px; /* Vertically align text like “Quantity:” */
}

.product_details .actions .submit {
    float: none; 
    width: auto; 
}

/* ========================================
   Product page purchase buttons - mobile parallel layout
   Usage:
   1. Remove old purchase button code
   2. Copy this code and paste at the end of style.css
   ======================================== */

/* Ensure buttons look consistent across devices */
.product_details .actions .button,
.product_details .actions .bright_button,
.product_details .actions input[type=submit],
.product_details .actions input[type=button] {
    display: inline-block !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

/* Mobile version - keep horizontal alignment */
@media screen and (max-width: 800px) {
    .product_details .actions {
        display: flex !important;
        flex-wrap: nowrap !important; /* Key: prevent wrapping */
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important; /* Space between elements */
    }
    
    .product_details .actions .info {
        flex: 0 0 auto !important;
        float: none !important;
    }
    
    .product_details .actions .submit {
        flex: 0 0 auto !important;
        float: none !important;
        margin-left: auto !important; /* Push to right */
    }
    
    /* Prevent buttons from stretching */
    .product_details .actions .button,
    .product_details .actions .bright_button {
        width: auto !important;
        min-width: auto !important;
        max-width: none !important;
    }
}

/* Small mobile - slightly reduce button font */
@media screen and (max-width: 460px) {
    .product_details .actions {
        gap: 5px !important;
    }
    
    .product_details .actions .button,
    .product_details .actions .bright_button {
        padding: 6px 12px 6px 15px !important;
        font-size: 13px !important;
    }
    
    .product_details .actions .info {
        font-size: 13px !important;
    }
}

/* Extra small screens (320px) - ensure no crowding */
@media screen and (max-width: 360px) {
    .product_details .actions {
        gap: 3px !important;
    }
    
    .product_details .actions .button,
    .product_details .actions .bright_button {
        padding: 5px 10px 5px 12px !important;
        font-size: 12px !important;
    }
}

@media screen and (max-width: 800px) {
  /* Make the moved gallery full width below title in mobile view */
  .product_details .details .gallery {
    width: 100% !important;
    margin: 10px 0 15px 0;
    border: 1px solid #e8e8e8; 
    box-sizing: border-box;
  }
  .product_details .details .gallery .cover {
    width: 100% !important;
    height: auto !important;
  }
  .product_details .details .gallery .cover img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
  }
  .product_details .details .gallery .thumb {
    padding: 12px 10px !important;
  }
}

/* === Product title + Previous/Next buttons (136x26) === */
.pd-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;         
  gap: 10px;
  margin-bottom: 8px;
}

.pd-name {
  flex: 1 1 auto;
  margin: 0;
  font-size: inherit;
  min-width: 200px;
}

/* Button container */
.pd-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Standard 136x26 button style */
.pd-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 136px;
  height: 26px;
  font-size: 13px;
  color: #333;
  background-color: #f8f8f8;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.pd-btn:hover {
  background-color: #eaeaea;
  border-color: #bbb;
  color: #000;
}

/* Mobile: stack under the title */
@media screen and (max-width: 800px) {
  .pd-title {
    flex-direction: column;
    align-items: flex-start;
  }
  .pd-nav {
    width: 100%;
    justify-content: flex-start;
  }
  .pd-btn {
    width: 136px;
  }
}

/* Let previous/next buttons adjust width to text */
.pd-nav .pd-btn {
  width: auto !important;
  height: 26px;
  padding: 0 12px;
  white-space: nowrap;
  box-sizing: border-box;
}

/* ======================================================
   1. 全站通用優化 (全域設定與 RWD 核心)
   ====================================================== */
body, input, select, textarea, button, table, div {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang TC", "Microsoft JhengHei", sans-serif !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #333;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* 圖片切換顯示控制 */
.desktop-only { display: block !important; }
.mobile-only { display: none !important; }

@media screen and (max-width: 980px) {
    body { min-width: 100% !important; }
    .wrapper, #main .col_main {
        width: 100% !important;
        padding: 0 10px !important;
        box-sizing: border-box;
        margin: 0 auto !important;
    }
    #main .col_sub { display: none !important; } /* 隱藏手機版側欄（會員頁改九宮格） */
    body#page_user .app-user-menu-wrapper {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 16px !important;
        box-sizing: border-box;
    }
    body#page_user .app-user-menu {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 16px !important;
        padding: 12px 0 8px !important;
        border-radius: 16px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
        border: 1px solid #f0f0f0;
        box-sizing: border-box;
    }
    body#page_user .app-menu-item {
        width: 25%;
        padding: 12px 4px;
        box-sizing: border-box;
    }
    body#page_user .user-welcome-card,
    body#page_user .dashboard-grid,
    body#page_user .section-box {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    #main .col_main { float: none !important; clear: both; }
    
    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }
}

/* ======================================================
   2. 頁首導航欄與手機滑動選單 (Header & Scroll Nav)
   ====================================================== */
/* 電腦版主導航欄優化 */
#header_nav {
    width: auto !important;
    max-width: 900px !important;
}
#header_nav li {
    border-right: 1px solid #e0e0e0;
    float: left;
}
#header_nav li:last-child { border-right: none; }
#header_nav li > a {
    display: block;
    padding: 8px 12px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #555 !important;
    border-bottom: 3px solid transparent;
    white-space: nowrap !important;
    transition: all 0.3s ease;
}
#header_nav li > a:hover,
#header_nav li > a.current {
    color: #d92630 !important;
    border-bottom-color: #d92630 !important;
    background-color: #fafafa !important;
}

/* 手機版水平滑動選單 (預設隱藏) */
.scroll-nav-wrapper {
    display: none !important;
    width: 100%;
    max-width: 100%;
    max-height: 50px;
    overflow-y: hidden;
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}
.scroll-nav-wrapper::-webkit-scrollbar { display: none; } 

@media screen and (max-width: 768px) {
    #header_bar { flex-direction: column; align-items: center; border-radius: 0; }
    .scroll-nav-wrapper {
        display: block !important;
        order: 2;
        margin: 10px 0;
        box-sizing: border-box;
    }
    .scroll-nav {
        list-style: none; margin: 0; padding: 0 10px;
        white-space: nowrap; display: flex; align-items: center; height: 100%;
    }
    .scroll-nav-item { flex-shrink: 0; margin-right: 8px; display: inline-block; }
    .scroll-nav-item a {
        display: block; padding: 6px 10px; font-size: 14px; color: #333; border-radius: 15px;
    }
    .scroll-nav-item a.active { background-color: #007bff; color: white; font-weight: bold; }
    .scroll-nav-item a:hover { background-color: #f0f0f0; }
}

/* ======================================================
   3. 商品列表與卡片化設計 (Product List Cards)
   ====================================================== */
.product_list, .goods_list, .index_goods_list, #show_best_area, #show_new_area, #show_hot_area {
    display: block !important; width: 100% !important; padding: 0 !important; margin: 0 !important;
    background: none !important; border: none !important; font-size: 0 !important; text-align: left !important;
}

/* 現代卡片化樣式 - 電腦版 */
.product_list li, .goods_list li, .index_goods_list .goods-item, .goodsItem {
    display: inline-block !important; float: none !important; vertical-align: top !important;
    background-color: #fff !important; border: 1px solid #e0e0e0 !important; border-radius: 12px !important;
    padding: 15px !important; margin: 1% 0.5% !important; width: 23% !important; /* 電腦版安全的 4 欄比例，不變瘦 */
    box-shadow: 0 4px 8px rgba(0,0,0,0.05) !important; box-sizing: border-box !important;
    font-size: 14px !important; height: auto !important; min-height: 320px !important;
    text-align: center !important; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product_list li:hover, .goods_list li:hover, .goodsItem:hover {
    transform: translateY(-5px); box-shadow: 0 8px 16px rgba(0,0,0,0.12) !important;
}

/* 卡片內部元素 */
.product_list li img, .goods_list li img, .goodsItem .photo img {
    width: 100% !important; height: auto !important; max-width: 100% !important;
    display: block !important; margin: 0 auto 5px auto !important; object-fit: contain !important; border-radius: 8px;
}
.product_list .name a, .goods_list .name a, .goodsItem .name a {
    font-size: 17px !important; font-weight: 600 !important; color: #2c3e50 !important;
    display: block; margin: 10px 0 !important; line-height: 1.4 !important;
}
.product_list .price, .goods_list .price, .goodsItem .price {
    font-size: 20px !important; color: #e74c3c !important; font-weight: 800 !important; margin: 10px 0 !important; display: block;
}
.product_list .goods_brief, .product_list .description { display: none !important; } 

/* 按鈕與愛心收藏 */
input.button, .button, .product_list .actions a, .goodsItem .actions a {
    display: inline-block !important; padding: 8px 20px !important; margin: 5px !important;
    font-size: 15px !important; border-radius: 50px !important; border: none !important;
    cursor: pointer; background-color: #007bff !important; color: #fff !important;
}
.product_list .actions a.detail, .btn-detail { background-color: #f1f2f6 !important; color: #333 !important; }

.btn-collect-icon {
    display: inline-block; margin-left: 8px; color: #999; font-size: 18px;
    vertical-align: middle; cursor: pointer; border: none; background: transparent;
}
.btn-collect-icon:hover { color: #d92630; transform: scale(1.1); }

/* 手機版商品雙欄完美並排 (RWD 修復) */
@media screen and (max-width: 800px) {
    .product_list li, .goods_list li, .goodsItem, .index_goods_list .goods-item {
        width: 48% !important; float: left !important; margin: 1% !important; padding: 10px !important; min-height: 280px !important; display: inline-block !important;
    }
    .product_list .name a { 
        font-size: 15px !important; height: 42px; overflow: hidden; 
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; 
    }
    .product_list .price { font-size: 18px !important; }
    .product_list .actions a { width: 100% !important; display: block !important; margin: 5px 0 !important; padding: 6px 12px !important; font-size: 13px !important; }
}

/* ======================================================
   4. 商品詳情頁與數量選擇器 (Product Detail)
   ====================================================== */
@media screen and (max-width: 800px) {
    .product_details .bd .details,
    .product_details .bd .extra_details {
        width: 100% !important; float: none !important; margin: 0 auto !important; padding: 0 0 10px 0; box-sizing: border-box;
    }
    .product_details .extra_details { text-align: center; }
    .product_details .extra_details .gallery,
    .product_details .extra_details .gallery .cover,
    #product_img_large, #product-swiper {
        width: 100% !important; float: none !important; display: block; margin: 0 auto; text-align: center;
    }
    .pd-nav { width: 100%; text-align: center; padding: 10px 0; }
    .pd-btn { display: inline-block; float: none !important; }
}

/* 手機版大圖防跳頁與放大鏡干擾 */
@media screen and (max-width: 800px) {
    .gallery .cover { display: block !important; width: 100% !important; height: auto !important; pointer-events: none !important; cursor: default !important; }
    .gallery .cover img { width: 100% !important; height: auto !important; }
    .gallery .thumb { padding: 10px 0 !important; overflow-x: auto; white-space: nowrap; }
    .gallery .thumb li { float: none !important; display: inline-block !important; width: 64px !important; margin: 0 5px !important; vertical-align: top; }
    .gallery .thumb li a { display: block; border: 1px solid #ddd; pointer-events: auto !important; }
    .gallery .thumb li.current a { border: 2px solid #f53 !important; }
    .cloud-zoom-lens, .cloud-zoom-big, .mousetrap { display: none !important; }
}

/* 購物車數量加減按鈕 */
.quantity-selector { display: inline-flex; align-items: center; border: 1px solid #ddd; height: 30px; line-height: 30px; margin: 10px auto; }
.quantity-selector .btn-minus, .quantity-selector .btn-plus { background: #f5f5f5; border: none; cursor: pointer; width: 30px; height: 100%; font-size: 16px; padding: 0; color: #333; }
.quantity-selector .btn-minus:hover, .quantity-selector .btn-plus:hover { background: #e0e0e0; }
.quantity-selector input.qty-input { width: 40px; height: 100%; border: none; border-left: 1px solid #ddd; border-right: 1px solid #ddd; text-align: center; margin: 0; outline: none; }

/* 商品詳細描述區塊優化 */
#goods_info .goods_desc.box {
    background-color: #ffffff !important; border-radius: 16px !important; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important; padding: 30px 25px !important; margin: 20px top 30px bottom !important;
}
.product_description {
    font-size: 18px !important; line-height: 1.8 !important; color: #222222 !important; letter-spacing: 0.5px !important;
}
.product_description p { margin-bottom: 12px !important; text-indent: 0 !important; }
.product_description h3, .product_description h2, .product_description strong {
    font-size: 20px !important; color: #000 !important; font-weight: 700 !important; margin: 15px 0 !important; border-left: 5px solid #d92630; padding-left: 10px !important; line-height: 1.4 !important;
}
.product_description img { display: block !important; margin: 20px auto !important; border-radius: 8px !important; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }

.product_description table {
    width: 100% !important;
    max-width: 100%;
    border-collapse: collapse !important;
    margin: 20px 0 !important;
    border: 1px solid #ddd !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
}

.product_description table th,
.product_description table td {
    border: 1px solid #ddd !important;
    padding: 10px 12px !important;
    vertical-align: top !important;
    text-align: left !important;
    color: #222 !important;
}

.product_description table th {
    background: #f6f6f6 !important;
    font-weight: 700 !important;
}

.product_description table tr:nth-child(even) td {
    background: #fafafa;
}

@media screen and (max-width: 800px) {
    #goods_info .goods_desc.box { padding: 20px 15px !important; border-radius: 12px !important; }
    .product_description { font-size: 16px !important; }
    .product_description table {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .product_description table tbody,
    .product_description table tr {
        display: table;
        width: 100%;
        table-layout: fixed;
    }
    #goods_info .box {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden;
    }
}

/* ======================================================
   5. 結帳頁面 (Fix Layout & Alignment)
   ====================================================== */
@media screen and (min-width: 801px) {
    #checkout_form, .checkout_wrapper { display: flex !important; flex-wrap: nowrap !important; justify-content: space-between !important; align-items: flex-start !important; }
    .checkout_wrapper .options { width: 33% !important; margin-right: 2% !important; flex-shrink: 0 !important; order: 0 !important; }
    .checkout_wrapper .checkout-right-col { width: 65% !important; flex-grow: 1 !important; order: 1 !important; display: flex !important; flex-direction: column !important; gap: 0 !important; box-sizing: border-box !important; overflow: hidden !important; }
    .checkout_wrapper .checkout-section.details { width: 100% !important; float: none !important; padding: 25px !important; box-sizing: border-box !important; margin-bottom: 12px !important; }
}

.checkout_wrapper .option_outer { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 15px; margin-bottom: 20px; }
.checkout_wrapper .option_title h2 { font-size: 18px; border-bottom: 2px solid #f5f5f5; padding-bottom: 10px; margin-bottom: 15px; color: #333; font-weight: bold; }

/* 配送/支付大按鈕選項 */
.checkout_wrapper .option_item {
    position: relative !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; text-align: center !important;
    width: 100% !important; float: none !important; border: 1px solid #e0e0e0 !important; background-color: #fff !important; border-radius: 8px !important; padding: 20px 10px !important; min-height: 80px !important; margin-bottom: 15px !important; box-sizing: border-box !important; overflow: hidden !important; transition: all 0.2s ease;
}
.checkout_wrapper .option_item:hover { border-color: #bbb !important; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

.checkout_wrapper .option_item input[type="radio"] { position: absolute; opacity: 0; width: 100%; height: 100%; top: 0; left: 0; margin: 0; padding: 0; z-index: 10; cursor: pointer; appearance: none; }
.checkout_wrapper .option_item label { border: none !important; background: none !important; width: 100% !important; height: auto !important; margin: 0 !important; box-shadow: none !important; display: block !important; text-align: center !important; }
.checkout_wrapper .option_item label img, .checkout_wrapper .option_item img, .checkout_wrapper .option_item label .status { display: none !important; }

.checkout_wrapper .option_item:has(input[type="radio"]:checked), .checkout_wrapper .option_item.selected { border: 2px solid #d92630 !important; background-color: #fff5f5 !important; }
.checkout_wrapper .option_item input:checked + label:after, .checkout_wrapper .option_item input:checked:after {
    content: '✓'; position: absolute; bottom: 0; right: 0; width: 24px; height: 24px; background-color: #d92630; color: #fff; font-size: 14px; line-height: 24px; text-align: center; border-top-left-radius: 6px; z-index: 11; display: block !important;
}

.checkout_wrapper .option_item .name { font-size: 20px !important; font-weight: 700 !important; color: #333 !important; margin-bottom: 8px !important; width: 100% !important; text-align: center !important; overflow: visible !important; }
.checkout_wrapper .option_item .intro, .checkout_wrapper .option_item .info { font-size: 14px !important; color: #666 !important; line-height: 1.4 !important; text-align: center !important; width: 100% !important; }
.checkout_wrapper .option_item .info .price { font-size: 16px !important; color: #d92630 !important; font-weight: bold !important; display: inline-block !important; margin-top: 5px !important; }

/* 右側單欄商品清單 */
.checkout_wrapper .cart_list li {
    width: 100% !important; float: none !important; display: flex !important; align-items: flex-start !important; justify-content: flex-start !important; flex-wrap: nowrap !important;
    padding: 15px !important; border: 2px solid #f0f0f0 !important; border-radius: 8px !important; margin-bottom: 12px !important; background-color: #fff !important; box-sizing: border-box !important; transition: all 0.2s ease !important;
}
.checkout_wrapper .cart_list li:hover { border-color: #b3d7ff !important; background-color: #f8fbff !important; box-shadow: 0 4px 8px rgba(0,0,0,0.05) !important; }
.checkout_wrapper .cart_list input[type="checkbox"] { width: 20px !important; height: 20px !important; margin-right: 15px !important; cursor: pointer !important; accent-color: #d92630 !important; transform: scale(1.2); }

.checkout_wrapper .cart_list .photo { flex-shrink: 0 !important; float: none !important; margin-right: 12px !important; border: 1px solid #eee; width: 60px !important; height: 60px !important; display: flex !important; align-items: center; justify-content: center; }
.checkout_wrapper .cart_list .co-item-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; text-align: left; }
.checkout_wrapper .cart_list .co-item-main-full { width: 100%; }
.checkout_wrapper .cart_list .co-item-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: nowrap; margin-top: 4px; }
.checkout_wrapper .cart_list .name { flex-grow: 0 !important; text-align: left !important; margin: 0 !important; font-size: 15px !important; font-weight: bold !important; white-space: normal !important; line-height: 1.4 !important; display: block !important; width: auto !important; }
.checkout_wrapper .cart_list .extra_info { display: block; font-size: 13px; color: #888; line-height: 1.4; }
.checkout_wrapper .cart_list .price { flex-shrink: 0 !important; font-weight: bold !important; margin: 0 !important; color: #333 !important; white-space: nowrap !important; }
.checkout_wrapper .cart_list .co-price { margin: 0 !important; white-space: nowrap !important; }
.checkout_wrapper .cart_list .co-qty-wrap { margin-left: 0 !important; flex-shrink: 0; }

.checkout_wrapper .cart_list .drop { visibility: visible !important; opacity: 1 !important; display: block !important; position: static !important; flex-shrink: 0 !important; align-self: flex-start !important; margin-left: 8px !important; color: #999 !important; font-size: 20px !important; cursor: pointer !important; padding: 5px !important; background: none !important; border: none !important; float: none !important; }
.checkout_wrapper .cart_list .drop:hover { color: #d92630 !important; }

.checkout_wrapper textarea { width: 100% !important; margin: 0 !important; padding: 10px !important; box-sizing: border-box !important; border: 1px solid #ccc !important; border-radius: 4px !important; font-size: 14px !important; min-height: 80px !important; }

.checkout_wrapper .flow_action {
    width: 100% !important; box-sizing: border-box !important; margin: 20px 0 0 0 !important; padding: 20px !important; background-color: #f9f9f9 !important; border-radius: 8px !important; border: 1px solid #eee !important; float: none !important; clear: both !important; overflow: hidden !important;
}
.checkout_wrapper .flow_action .next { width: 100%; padding: 15px; background-color: #e74c3c !important; color: #fff; font-size: 18px; font-weight: bold; border: none; border-radius: 50px; cursor: pointer; box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3); }
.checkout_wrapper .flow_action .back { display: block; text-align: center; margin-top: 15px; color: #666; text-decoration: underline; }

@media screen and (max-width: 800px) {
    #checkout_form, .checkout_wrapper { flex-direction: column !important; }
    .checkout_wrapper .checkout-section-goods { width: 100% !important; max-width: 100% !important; margin-bottom: 16px !important; background: #fff !important; border-bottom: 5px solid #f2f2f2 !important; padding: 15px 12px !important; box-sizing: border-box !important; overflow-x: hidden !important; float: none !important; }
    .checkout_wrapper .options { width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; overflow-x: hidden !important; }
    .checkout_wrapper .checkout-section-consignee { width: 100% !important; max-width: 100% !important; margin-bottom: 12px !important; background: #fff !important; padding: 15px 12px !important; box-sizing: border-box !important; float: none !important; }
    .checkout_wrapper .checkout-section-summary { width: 100% !important; max-width: 100% !important; margin-bottom: 88px !important; background: #fff !important; padding: 15px 12px 20px !important; box-sizing: border-box !important; float: none !important; }

    body#page_flow {
        min-width: 0 !important;
        overflow-x: hidden !important;
        padding-bottom: 78px !important;
    }

    body#page_flow #mobile-nav {
        display: none !important;
    }

    body#page_flow .wrapper,
    body#page_flow #main .wrapper.catalog-layout,
    body#page_flow .flow_wrapper {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .checkout_wrapper .extra_options,
    .checkout_wrapper .extra_options .inner,
    .checkout_wrapper .extra_options select,
    .checkout_wrapper .extra_options .text_input,
    .checkout_wrapper .card_message textarea {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .checkout_wrapper .flow_action {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
        background-color: #fff !important;
        box-shadow: 0 -4px 12px rgba(0,0,0,0.12) !important;
        z-index: 100050 !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        border-top: 1px solid #ddd !important;
        display: block !important;
        float: none !important;
        clear: both !important;
        box-sizing: border-box !important;
    }

    .checkout_wrapper .flow_action .next {
        float: none !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 48px !important;
        line-height: 48px !important;
        margin: 0 !important;
        padding: 0 16px !important;
        border-radius: 24px !important;
        font-size: 17px !important;
        font-weight: 700 !important;
        text-align: center !important;
        box-sizing: border-box !important;
        -webkit-appearance: none;
        background-color: #d92630 !important;
        color: #fff !important;
        border: none !important;
        box-shadow: 0 4px 10px rgba(217, 38, 48, 0.25) !important;
    }

    .checkout_wrapper .flow_action .back { display: none !important; }

    .checkout_wrapper .box .bd,
    body#page_flow .box .bd {
        padding-bottom: 88px !important;
    }

    /* 購物車／其他 flow 步驟：修正按鈕被 float + margin 推出螢幕 */
    body#page_flow .flow_action {
        display: block !important;
        width: 100% !important;
        padding: 16px 0 20px !important;
        box-sizing: border-box !important;
        float: none !important;
        clear: both !important;
    }

    body#page_flow .flow_action .next,
    body#page_flow .flow_action .back {
        float: none !important;
        margin: 0 !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    body#page_flow .flow_action .next {
        height: 48px !important;
        line-height: 48px !important;
        padding: 0 16px !important;
        border-radius: 24px !important;
        font-size: 17px !important;
        font-weight: 700 !important;
        background-color: #d92630 !important;
        color: #fff !important;
        border: none !important;
    }

    body#page_flow .flow_action .back {
        margin-top: 10px !important;
        line-height: 1.5 !important;
        padding: 8px 0 !important;
    }

    /* 結帳頁固定底欄優先於上方通用規則 */
    .checkout_wrapper .flow_action {
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* ======================================================
   6. 訂單完成頁、登入頁
   ====================================================== */
.box .bd .message_wrapper.flow_done { background-color: #fff; border: 1px solid #e0e0e0; border-radius: 12px; padding: 40px 20px; margin: 20px auto; max-width: 600px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.05); position: relative; overflow: hidden; }
.message_wrapper.flow_done dt.title { font-size: 24px; font-weight: bold; color: #333; margin-bottom: 20px; display: flex; flex-direction: column; align-items: center; border: none; background: none; }
.message_wrapper.flow_done dt.title::before { content: '✓'; display: flex; align-items: center; justify-content: center; width: 80px; height: 80px; background-color: #2ecc71; color: #fff; font-size: 40px; border-radius: 50%; margin-bottom: 15px; box-shadow: 0 4px 10px rgba(46, 204, 113, 0.3); }
.message_wrapper.flow_done .price { display: block; font-size: 32px; color: #d92630; font-weight: 800; margin-top: 10px; }

.login-wrapper { display: flex; justify-content: center; padding: 50px 0; background-color: #f4f6f8; }
.login-container { display: flex; width: 900px; max-width: 95%; background: #fff; box-shadow: 0 10px 25px rgba(0,0,0,0.08); border-radius: 12px; overflow: hidden; }
.login-box { padding: 40px; }
.login-form-side { flex: 1.5; background: #fff; }
.input-field { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 6px; box-sizing: border-box; transition: all 0.3s; }
.input-field:focus { border-color: #3498db; box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1); outline: none; }
.login-register-side { flex: 1; background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%); color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 20px; }

@media (max-width: 768px) { .login-container { flex-direction: column; } }

/* ======================================================
   7. 文章詳情頁 (強制防手機跑版與溢出)
   ====================================================== */
/* 核心：徹底殺死後台編輯器寫死的固定寬度 (例如 width: 600px) */
.article_content,
.article_content p,
.article_content div,
.article_content span,
.article_content table,
.article_content td,
.article_content ul,
.article_content ol,
.article_content li {
    max-width: 100% !important;  /* 限制最大寬度絕對不能超過螢幕 */
    width: auto !important;       /* 逼迫瀏覽器忽略死線 */
    box-sizing: border-box !important;
    word-wrap: break-word !important; 
    overflow-wrap: break-word !important;
}

.article_content table { border-collapse: collapse !important; border: 1px solid #ccc !important; width: 100% !important; }
.article_content table td, .article_content table th { border: 1px solid #ccc !important; padding: 8px !important; }
.article h1 { background: linear-gradient(135deg, #d92630 0%, #ff7e5f 100%) !important; color: #ffffff !important; padding: 20px 25px !important; border-radius: 12px 12px 0 0 !important; border: none !important; text-shadow: 0 2px 4px rgba(0,0,0,0.2) !important; font-size: 22px !important; letter-spacing: 1px !important; }
.box .bd .article_content { border: 1px solid #e0e0e0 !important; border-top: none !important; background-color: #fff !important; padding: 30px !important; border-radius: 0 0 8px 8px !important; box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important; margin-top: 0 !important; line-height: 1.8 !important; }

.article-nav { margin-top: 30px; padding-top: 20px; border-top: 1px solid #eee; display: flex; justify-content: space-between; flex-wrap: wrap; font-size: 14px; }
.article-nav-top { margin-top: 0; padding: 12px 24px; border-top: none; border-bottom: 1px solid #eee; background: #fafafa; }
.article-nav .nav-item { width: 48%; padding: 10px 0; }
.article-nav .nav-item.next { text-align: right; }

@media screen and (max-width: 800px) { 
    .article.box, .box .bd .article_content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px !important; /* 縮小留白，爭取手機寬度 */
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .article_content img { max-width: 100% !important; height: auto !important; }
    .article-nav { display: block; } 
    .article-nav-top { padding: 12px 18px; }
    .article-nav .nav-item { width: 100%; text-align: left; } 
}

/* ======================================================
   8. 手機版專用：完美的左側垂直置中懸浮購物按鈕 (完美找回)
   ====================================================== */
.mobile-float-buy { display: none; }

@media screen and (max-width: 800px) {
    .mobile-float-buy { 
        display: block !important; 
        position: fixed !important; 
        left: 15px !important; 
        top: 50% !important; 
        transform: translateY(-50%) !important; 
        z-index: 99999 !important; /* 超高層級，絕對浮在最上層 */
    }
    .mobile-float-buy a { 
        display: flex !important; 
        flex-direction: column !important; 
        align-items: center !important; 
        justify-content: center !important; 
        width: 65px !important; 
        height: 65px !important; 
        background-color: #C5A059 !important; /* 香檳金 */
        color: #ffffff !important; 
        border-radius: 50% !important; 
        border: 2px solid #fff !important; 
        box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important; 
        text-decoration: none !important;
    }
    .mobile-float-buy a:active { transform: scale(0.95) translateY(-50%) !important; }
    
    /* 補回按鈕內部的文字與圖示樣式控制 */
    .mobile-float-buy .btn-text { font-size: 12px !important; font-weight: bold !important; line-height: 1 !important; margin: 0 !important; color: #fff !important; }
    .mobile-float-buy .mini-price { font-size: 10px !important; line-height: 1.1 !important; font-weight: bold !important; color: #fff !important; }
    .mobile-float-buy .btn-icon { display: flex !important; justify-content: center !important; align-items: center !important; height: 20px !important; margin: 0 !important; }
    .mobile-float-buy .btn-icon svg { width: 20px !important; height: 20px !important; stroke: #ffffff !important; fill: none !important; }
}
/* === 商品卡片修正：對準實際的 .product-card 結構 === */
ul.product-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 18px !important;
    font-size: 16px !important;       /* 商品卡預設字級 */
    list-style: none !important; margin: 0 !important; padding: 0 !important; width: 100% !important;
}
li.product-card {
    display: flex !important; flex-direction: column !important;
    width: auto !important; min-height: 0 !important; height: auto !important;  /* 取消 320px 撐高 */
    float: none !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important;
    border: 1px solid #e0e0e0 !important; border-radius: 10px !important;
    box-shadow: 0 4px 8px rgba(0,0,0,.05) !important;
}
li.product-card .product-image-container {
    position: relative !important; width: 100% !important;
    padding-top: 100% !important; height: auto !important; overflow: hidden !important;  /* 正方形方框 */
}
li.product-card .product-image-container img {
    position: absolute !important; top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important;
    object-fit: cover !important;     /* 想完整留白不裁切就改 contain */
    margin: 0 !important; border-radius: 0 !important;
}
li.product-card .product-hover-actions { z-index: 3 !important; }
li.product-card .product-hover-actions .action-btn { pointer-events: auto !important; }
li.product-card .product-info { padding: 12px !important; }
li.product-card .product-name,
li.product-card .product-name a {
    font-size: 16px !important;
    line-height: 1.45 !important;
}
li.product-card .product-price {
    font-size: 20px !important;
}
li.product-card .product-price del {
    font-size: 15px !important;
}
@media (max-width: 992px){ ul.product-grid{ grid-template-columns: repeat(3,1fr) !important; } }
@media (max-width: 768px){ ul.product-grid{ grid-template-columns: repeat(2,1fr) !important; gap:10px !important; } }
.article-brief {
    margin: 4px 0 8px;
    font-size: 13px;
    line-height: 1.5;
    color: #777;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}
.article-brief a { color: #777; }

/* ======================================================
   9. 溫和修正版：精準隱藏手機版重複標題，絕不影響內容
   ====================================================== */
@media screen and (max-width: 800px) {
    /* 1. 只隱藏單獨跑出來、沒有包在任何框框裡的重複大標題 */
    #main .wrapper > h1:first-child,
    #main .wrapper > h2:first-child {
        display: none !important;
    }

    /* 2. 如果是 ur_here (麵包屑) 裡面自己偷偷塞的手機標題，只隱藏裡面的標題，不隱藏整個麵包屑 */
    .breadcrumbs h1, 
    .breadcrumbs h2,
    #ur_here h1,
    #ur_here h2 {
        display: none !important;
    }

    /* 3. 強制確保文章主體與裡面的真正標題絕對看得到 */
    .article.box {
        display: block !important;
    }
    .article_title {
        display: block !important;
    }
    .article_title h1 {
        display: block !important;
        font-size: 20px !important;
    }
}
/* ======================================================
   10. 修正手機滾動選單擋住漢堡選單問題
   ====================================================== */
@media screen and (max-width: 768px) {
    /* 讓整個滾動外框不遮擋左側 */
    .scroll-nav-wrapper {
        box-sizing: border-box;
        padding-left: 50px !important; /* 精確留出 50px 的空隙給左邊的漢堡按鈕 */
    }

    /* 確保選單內部維持彈性排列，並且右邊也留一點舒適的收尾間距 */
    .scroll-nav {
        padding-left: 0 !important;   /* 清除舊有的左邊距 */
        padding-right: 15px !important; /* 讓右邊滑到底時也有呼吸空間 */
    }
}
/* === 文章紅色標題修正：從醜色塊改成乾淨橫幅 === */
.article_title { margin: 0 !important; padding: 0 !important; border-bottom: none !important; }
.article h1 {
    display: block !important;            /* 關鍵：inline 改 block，紅幅才會乖乖填滿不溢出 */
    box-sizing: border-box !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 18px 24px !important;
    background: linear-gradient(135deg, #d92630 0%, #b81f28 100%) !important; /* 改成單一品牌紅，較高雅 */
    color: #fff !important;
    font-size: 24px !important;
    line-height: 1.4 !important;
    letter-spacing: 1px !important;
    border-radius: 12px 12px 0 0 !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.25) !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}
.article_info {                            /* 日期/點擊數移到橫幅下方一條細灰列 */
    float: none !important; clear: both !important; display: block !important;
    margin: 0 !important; padding: 10px 24px !important;
    background: #fafafa !important; color: #888 !important; font-size: 13px !important;
    border-left: 1px solid #e0e0e0 !important; border-right: 1px solid #e0e0e0 !important;
}
.article_info span { padding: 0 12px 0 0 !important; }
.article_excerpt {
    margin: 0 !important;
    padding: 0 24px 10px !important;
    background: linear-gradient(135deg, #d92630 0%, #b81f28 100%) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    font-weight: normal !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media screen and (max-width: 800px) {
    .article h1 { font-size: 20px !important; padding: 16px 18px 10px !important; }
    .article_info { padding: 10px 18px !important; }
    .article_excerpt { padding: 0 18px 10px !important; font-size: 13px !important; }
}
/* === 按鈕修正：移除失效的灰漸層，改實心高對比 === */
.button, .button:visited, a.button,
input[type=submit], input[type=button], input[type=reset],
button[type=submit], .bright_button,
.product_list .actions a, .goodsItem .actions a {
    background-image: none !important;      /* 關鍵：清掉會變淺灰的漸層 */
    background-color: #d92630 !important;    /* ← 想換顏色改這行就好 */
    color: #fff !important;
    text-shadow: none !important;
    border: none !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15) !important;
}
.button:hover, a.button:hover,
input[type=submit]:hover, input[type=button]:hover, input[type=reset]:hover,
.product_list .actions a:hover {
    background-color: #b81f28 !important; color: #fff !important; opacity: 1 !important;
}
/* 分頁/篩選的「目前頁」也一起修，避免白字配淺灰 */
.pagination a.current, .filter dd a.current {
    background-image: none !important; background-color: #d92630 !important; color: #fff !important;
}
/* 次要按鈕（繼續購物/詳情）維持淺底深字，做出主次層次 */
.dim_button, a.dim_button, .quick-buy-dialog .actions .btn-continue,
.product_list .actions a.detail, .btn-detail {
    background-image: none !important; background-color: #f1f2f6 !important;
    color: #333 !important; text-shadow: none !important;
}
/* === 手機版內文放大，老花眼友善 === */
@media screen and (max-width: 800px) {
    .article_content, .article_content p, .article_content li,
    .article_content td, .article_content blockquote, .article_content span {
        font-size: 18px !important;          /* ← 想更大改成 19 或 20 */
        line-height: 1.9 !important;
    }
    .article_content h2 { font-size: 20px !important; }
    .article_content h3, .article_content h4, .article_content h5 { font-size: 18px !important; }
    .product_description, .product_description p,
    .product_description span, .product_description li {
        font-size: 18px !important; line-height: 1.9 !important;
    }
}
/* 結帳頁數量加減 */
.co-qty-wrap { display:inline-flex; align-items:center; border:1px solid #ddd; border-radius:6px; overflow:hidden; flex-shrink:0; margin-left:0; }
.co-qty-btn { width:30px; height:30px; border:none; background:#f5f5f5; color:#333; font-size:16px; line-height:30px; cursor:pointer; padding:0; }
.co-qty-btn:hover { background:#e0e0e0; }
.co-qty-input { width:40px; height:30px; border:none; border-left:1px solid #ddd; border-right:1px solid #ddd; text-align:center; font-size:14px; background:#fff; padding:0; }
.co-price { font-weight:bold; color:#333; flex-shrink:0; }

/* 結帳頁「繼續選購」按鈕（桌機+手機都顯示）*/
.co-continue-wrap { margin:14px 0 5px; }
.co-continue-btn {
    display:block; padding:13px; text-align:center;
    background:#fff; color:#d92630 !important;
    border:2px solid #d92630; border-radius:25px;
    font-size:15px; font-weight:bold; text-decoration:none;
    transition:all .2s ease;
}
.co-continue-btn:hover { background:#d92630; color:#fff !important; }

/* === 商品詳情頁：左圖右文（電腦版） === */
@media screen and (min-width: 801px) {
    body#page_goods .product_details .bd {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 36px;
        width: 100%;
    }

    body#page_goods .product_details .extra_details {
        order: 1;
        flex: 0 0 38%;
        max-width: 460px;
        min-width: 260px;
        float: none !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: center;
        box-sizing: border-box;
    }

    body#page_goods .product_details .details {
        order: 2;
        flex: 1 1 0;
        min-width: 0;
        float: none !important;
        width: auto !important;
        max-width: none;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box;
    }

    body#page_goods .product_details .extra_details .gallery {
        display: block;
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
        text-align: center;
    }

    body#page_goods .product_details .extra_details .gallery .cover,
    body#page_goods .product_details .extra_details .gallery #product_img_large,
    body#page_goods .product_details .extra_details .gallery .cover img {
        display: block;
        float: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 100%;
        height: auto;
    }

    body#page_goods .product_details .extra_details .gallery .thumb {
        margin: 14px auto 0;
        padding: 10px 4px;
        text-align: center;
        overflow: hidden;
    }

    body#page_goods .product_details .extra_details .gallery .thumb .thumb_inner {
        width: 100% !important;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    body#page_goods .product_details .extra_details .gallery .thumb ul {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 6px;
        float: none;
        width: auto !important;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    body#page_goods .product_details .extra_details .gallery .thumb li {
        float: none !important;
        display: block;
        flex: 0 0 58px;
        width: 58px !important;
        height: 58px !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box;
    }

    body#page_goods .product_details .extra_details .gallery .thumb li a {
        display: block;
        width: 58px !important;
        height: 58px !important;
        padding: 2px !important;
        border: 1px solid rgba(0, 0, 0, 0.12) !important;
        box-sizing: border-box;
        line-height: 0;
    }

    body#page_goods .product_details .extra_details .gallery .thumb li.current a,
    body#page_goods .product_details .extra_details .gallery .thumb li a:hover {
        padding: 1px !important;
        border: 2px solid #f53 !important;
    }

    body#page_goods .product_details .extra_details .gallery .thumb li img {
        display: block;
        width: 52px !important;
        height: 52px !important;
        object-fit: cover;
        vertical-align: top;
    }

    /* 桌面版改用橫向捲動，隱藏 mSlidiy 箭頭 */
    body#page_goods .product_details .extra_details .gallery .controls {
        display: none !important;
    }

    body#page_goods .product_details .actions,
    body#page_goods .product_details .price_list,
    body#page_goods .product_details .properties {
        float: none !important;
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
    }

    body#page_goods .product_details .price_and_no .no {
        float: right;
        display: block;
        padding-top: 5px;
    }
}

/* 手機版：維持單欄（圖在上、資訊在下） */
@media screen and (max-width: 800px) {
    body#page_goods .product_details .bd {
        display: block;
    }

    body#page_goods .product_details .extra_details,
    body#page_goods .product_details .details {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto 16px !important;
    }

    body#page_goods .product_details .extra_details {
        text-align: center;
    }

    body#page_goods .product_details .extra_details .gallery {
        max-width: 100%;
        margin: 0 auto;
    }

    body#page_goods .product_details .actions,
    body#page_goods .product_details .price_list,
    body#page_goods .product_details .properties {
        width: 100% !important;
    }

    body#page_goods .product_details .price_and_no .no {
        float: none;
        padding-top: 8px;
    }
}

/* === 商品詳情頁：標題 + 基本資訊放大 === */
.product_details h1 {
    font-size: 24px !important;
    line-height: 1.4 !important;
}
.product_details .intro,
.product_details .basic li {
    font-size: 16px !important;
}

/* === 手機版：商品頁全面放大，老花友善 === */
@media screen and (max-width: 800px) {
    .product_details h1 { font-size: 22px !important; }
    .product_details .intro,
    .product_details .basic li { font-size: 16px !important; }

    /* 商品列表的商品名稱也放大 */
    .product_list .name a,
    .goods_list .name a { font-size: 16px !important; }
}
/* ======================================================
   手機版全站字體放大（老花友善，只放大閱讀內容）
   ====================================================== */
@media screen and (max-width: 800px) {

    /* 文章內文 */
    .article_content,
    .article_content p,
    .article_content li,
    .article_content td,
    .article_content span,
    .article_content blockquote {
        font-size: 18px !important;
        line-height: 1.9 !important;
    }
    .article_content h2 { font-size: 21px !important; }
    .article_content h3,
    .article_content h4 { font-size: 19px !important; }

    /* 商品說明 */
    .product_description,
    .product_description p,
    .product_description li,
    .product_description span {
        font-size: 18px !important;
        line-height: 1.9 !important;
    }

    /* 商品詳情標題與基本資訊 */
    .product_details h1 { font-size: 22px !important; }
    .product_details .intro,
    .product_details .basic li { font-size: 16px !important; }

    /* 商品列表的商品名稱 */
    .product_list .name a,
    .goods_list .name a { font-size: 16px !important; }

    /* 商品列表價格 */
    .product_list .price,
    .goods_list .price { font-size: 19px !important; }
}
/* ======================================================
   結帳登入頁 flow.php?step=login —— 完整版（取代之前所有相關 CSS）
   ====================================================== */

/* 1. 登入框：取消雙欄、置中、合理寬度 */
.login-wrapper {
    padding: 20px 15px !important;
}
.login-container {
    display: block !important;
    width: 100% !important;
    max-width: 480px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    background: none !important;
    box-shadow: none !important;
}
.login-box.login-form-side {
    width: 100% !important;
    float: none !important;
    box-sizing: border-box !important;
    background: #fff !important;
    padding: 30px 25px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
}

/* 2. 分隔線「或使用以下方式登入」：乾淨文字，無亂跑橫線 */
.login-form-side .flow-social-divider {
    display: block !important;
    text-align: center !important;
    color: #bbb !important;
    font-size: 13px !important;
    margin: 18px 0 12px !important;
    border: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.login-form-side .flow-social-divider:before,
.login-form-side .flow-social-divider:after {
    display: none !important;
}

/* 3. LINE / Google 按鈕：鎖在登入框內、上下排、撐滿寬度 */
.login-form-side .flow-social-buttons {
    display: block !important;
    width: 100% !important;
    float: none !important;
    position: static !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}
.login-form-side .btn-social {
    display: block !important;
    width: 100% !important;
    height: 48px !important;
    line-height: 48px !important;
    margin: 0 0 10px 0 !important;
    float: none !important;
    position: static !important;
    text-align: center !important;
    color: #fff !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
}
.login-form-side .btn-line { background-color: #06C755 !important; }
.login-form-side .btn-google { background-color: #4285F4 !important; }
.login-form-side .btn-social:hover { opacity: 0.9 !important; }
/* 「不打算登入，直接購買」加框 */
.login-form-side .submit-area .btn-text {
    display: block !important;
    margin-top: 12px !important;
    padding: 12px !important;
    text-align: center !important;
    background: #f8f8f8 !important;
    color: #666 !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}
.login-form-side .submit-area .btn-text:hover {
    background: #eee !important;
    border-color: #ccc !important;
    color: #333 !important;
}
/* 忘記密碼連結：移到密碼框下方靠右，不再歪斜 */
.login-form-side .password-wrapper {
    display: block !important;
    position: static !important;
}
.login-form-side .password-wrapper .input-field {
    width: 100% !important;
    box-sizing: border-box !important;
}
.login-form-side .password-wrapper .forgot-link {
    display: block !important;
    margin-top: 6px !important;
    text-align: right !important;
    color: #999 !important;
    font-size: 13px !important;
    text-decoration: none !important;
    float: none !important;
    position: static !important;
}
.login-form-side .password-wrapper .forgot-link:hover {
    color: #d92630 !important;
}
/* 使用者名稱、密碼欄位統一撐滿整行，視覺一致 */
.login-form-side .input-group {
    display: block !important;
    margin-bottom: 16px !important;
}
.login-form-side .input-group .input-field,
.login-form-side .password-wrapper .input-field {
    width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
}
.login-form-side .input-group label {
    display: block !important;
    margin-bottom: 6px !important;
}
/* 登入鈕 + 直接購買鈕：統一成整行框按鈕，只差顏色 */
.login-form-side .submit-area .btn-main,
.login-form-side .submit-area .btn-text {
    display: block !important;
    width: 100% !important;
    margin: 0 0 10px 0 !important;
    padding: 13px !important;
    text-align: center !important;
    font-size: 15px !important;
    font-weight: bold !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    -webkit-appearance: none !important;
}

/* 登入鈕：紅底白字（主要動作）*/
.login-form-side .submit-area .btn-main {
    background: #d92630 !important;
    color: #fff !important;
    border: 1px solid #d92630 !important;
}
.login-form-side .submit-area .btn-main:hover {
    background: #b81f28 !important;
    border-color: #b81f28 !important;
}

/* 直接購買鈕：灰框深字（次要動作）*/
.login-form-side .submit-area .btn-text {
    background: #f8f8f8 !important;
    color: #666 !important;
    border: 1px solid #ddd !important;
    font-weight: normal !important;
}
.login-form-side .submit-area .btn-text:hover {
    background: #eee !important;
    border-color: #ccc !important;
    color: #333 !important;
}

/* ======================================================
   Catalog-wide layout (首頁 / 分類 / 搜尋 / 品牌)
   混合式全幅：Banner 全寬 + 商品區 1280px，利於 SEO 與閱讀
   ====================================================== */
:root {
    --catalog-max-width: 1280px;
    --catalog-gutter: 24px;
}

body#page_index,
body#page_category,
body#page_search,
body#page_brand,
body#page_article_cat,
body#page_article,
body#page_goods,
body#page_user,
body#page_flow {
    min-width: 0;
}

body#page_index {
    overflow-x: hidden;
    background-color: #dabea7;
}

body#page_index #main .wrapper.catalog-layout {
    background-color: #dabea7;
}

body#page_category {
    overflow-x: hidden;
    background-color: #dabea7;
}

body#page_category #main .wrapper.catalog-layout {
    background-color: #dabea7;
}

/* 頁首頁尾維持舒適閱讀寬度 */
body#page_index #top .wrapper,
body#page_index #header .header-top .wrapper,
body#page_index #footer .wrapper,
body#page_category #top .wrapper,
body#page_category #header .header-top .wrapper,
body#page_category #footer .wrapper,
body#page_search #top .wrapper,
body#page_search #header .header-top .wrapper,
body#page_search #footer .wrapper,
body#page_brand #top .wrapper,
body#page_brand #header .header-top .wrapper,
body#page_brand #footer .wrapper,
body#page_article_cat #top .wrapper,
body#page_article_cat #header .header-top .wrapper,
body#page_article_cat #footer .wrapper,
body#page_article #top .wrapper,
body#page_article #header .header-top .wrapper,
body#page_article #footer .wrapper,
body#page_goods #top .wrapper,
body#page_goods #header .header-top .wrapper,
body#page_goods #footer .wrapper,
body#page_user #top .wrapper,
body#page_user #header .header-top .wrapper,
body#page_user #footer .wrapper,
body#page_flow #top .wrapper,
body#page_flow #header .header-top .wrapper,
body#page_flow #footer .wrapper {
    max-width: var(--catalog-max-width);
    width: calc(100% - var(--catalog-gutter) * 2);
}

/* 商品列表主內容加寬 */
body#page_index #main .wrapper.catalog-layout,
body#page_category #main .wrapper.catalog-layout,
body#page_search #main .wrapper.catalog-layout,
body#page_brand #main .wrapper.catalog-layout,
body#page_article_cat #main .wrapper.catalog-layout,
body#page_article #main .wrapper.catalog-layout,
body#page_goods #main .wrapper.catalog-layout,
body#page_user #main .wrapper.catalog-layout,
body#page_flow #main .wrapper.catalog-layout {
    max-width: var(--catalog-max-width);
    width: calc(100% - var(--catalog-gutter) * 2);
    box-sizing: border-box;
    padding-left: var(--catalog-gutter);
    padding-right: var(--catalog-gutter);
}

body#page_article_cat #main .col_main,
body#page_article_cat #main .col_sub {
    float: none;
    width: 100%;
}

body#page_article_cat .article-cat-box {
    width: 100%;
}

body#page_article #main .wrapper.catalog-layout .article.box,
body#page_article #main .wrapper.catalog-layout .comment_box,
body#page_goods #main .wrapper.catalog-layout {
    width: 100%;
    max-width: 100%;
}

/* 頁面主標題（SEO：每頁一個 h1） */
.catalog-page-title {
    margin: 0 0 16px;
    padding: 0;
    font-size: 1.5rem;
    line-height: 1.35;
    font-weight: 700;
    color: #222;
    letter-spacing: 0.02em;
}

/* 文章分類頁：標題 + 子分類導覽 */
.article-cat-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 12px;
}

.article-cat-header .catalog-page-title {
    margin: 0;
    flex: 0 1 auto;
}

.article-sub-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 1 1 280px;
}

.article-sub-nav-item {
    display: inline-block;
    padding: 6px 14px;
    font-size: 14px;
    line-height: 1.4;
    color: #444;
    text-decoration: none;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.article-sub-nav-item:hover {
    color: #d92630;
    border-color: #d92630;
    background: #fff;
}

.article-sub-nav-item.is-current {
    color: #fff;
    background: #d92630;
    border-color: #d92630;
    font-weight: 600;
}

body#page_index .catalog-page-title--home {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body#page_category #list > .hd {
    display: none;
}

/* 首頁輪播：桌機加高全幅；手機維持較矮 3:2
   建議圖：桌機 1920×720（3:2）或 1920×600；手機 1080×720 */
body#page_index #index_banner {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    line-height: 0;
    background: #dabea7;
    position: relative;
    z-index: 1;
}

body#page_index #index_banner .swiper-container {
    width: 100%;
    max-width: none;
    margin: 0;
    height: clamp(420px, 34vw, 560px);
    min-height: 420px;
    max-height: 560px;
    background: #dabea7;
}

body#page_index #index_banner .swiper-wrapper,
body#page_index #index_banner .swiper-slide {
    height: 100%;
    background: #dabea7;
}

body#page_index #index_banner .swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

body#page_index #index_banner .swiper-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
}

@media screen and (max-width: 800px) {
    body#page_index #index_banner .swiper-container {
        height: auto;
        aspect-ratio: 3 / 2;
        min-height: 210px;
        max-height: 280px;
    }

    body#page_index #index_banner .swiper-slide img {
        object-fit: cover;
        object-position: center center;
    }

    body#page_index #index_banner .swiper-button-prev,
    body#page_index #index_banner .swiper-button-next {
        transform: scale(0.75);
    }
}

/* 區塊標題 h2（SEO 層級） */
body#page_index .box .hd h2,
body#page_category .box .hd h2,
body#page_search .box .hd h2,
body#page_brand .box .hd h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
}

/* 商品卡片：大螢幕多一排，維持可讀間距 */
@media (min-width: 1100px) {
    body#page_index .product-grid,
    body#page_category .product-grid,
    body#page_search .product-grid,
    body#page_brand .product-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 22px;
    }
}

@media (min-width: 1400px) {
    :root {
        --catalog-max-width: 1360px;
    }
    body#page_index .product-grid,
    body#page_category .product-grid,
    body#page_search .product-grid,
    body#page_brand .product-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* 平板以下維持既有 RWD */
@media screen and (max-width: 980px) {
    body#page_index #main .wrapper.catalog-layout,
    body#page_category #main .wrapper.catalog-layout,
    body#page_search #main .wrapper.catalog-layout,
    body#page_brand #main .wrapper.catalog-layout,
    body#page_article_cat #main .wrapper.catalog-layout,
    body#page_article #main .wrapper.catalog-layout,
    body#page_goods #main .wrapper.catalog-layout,
    body#page_user #main .wrapper.catalog-layout,
    body#page_flow #main .wrapper.catalog-layout {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 12px;
        padding-right: 12px;
    }
    .catalog-page-title {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }

    body#page_article_cat .catalog-layout > .breadcrumbs {
        display: none !important;
    }

    body#page_article_cat .article-cat-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 4px;
        gap: 4px;
    }

    body#page_article_cat .article-cat-header .catalog-page-title {
        margin-bottom: 0;
        width: 100%;
        font-size: 1.15rem;
        line-height: 1.3;
    }

    body#page_article_cat .article-sub-nav {
        flex: 0 0 auto !important;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        gap: 6px;
        width: 100%;
        margin: 0;
        padding: 0 0 2px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    body#page_article_cat .article-sub-nav::-webkit-scrollbar {
        display: none;
    }

    body#page_article_cat .article-sub-nav-item {
        padding: 5px 12px;
        font-size: 13px;
        line-height: 1.3;
        flex-shrink: 0;
    }

    body#page_article_cat {
        min-width: 0 !important;
        overflow-x: hidden !important;
    }

    body#page_article_cat .article-cat-box {
        margin-top: 0 !important;
    }

    body#page_article_cat .article-cat-box > .hd {
        display: none;
    }

    body#page_article_cat .article-cat-box > .bd {
        padding-top: 4px;
    }

    body#page_article_cat .article-search-form {
        margin-bottom: 10px;
    }
}

/* ======================================================
   全幅白底頁首 + 主導覽（無粉紅列）
   ====================================================== */
.service-nav {
    display: none !important;
}

.scroll-nav-wrapper {
    display: none !important;
}

#header {
    width: 100%;
    margin-bottom: 0 !important;
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
    position: relative;
    z-index: 300;
}

.header-top {
    width: 100%;
    background: #ffffff;
}

#header_bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 12px 24px;
    height: auto;
    min-height: 64px;
    padding: 12px 0;
    background-color: #ffffff;
    border-radius: 0;
    box-sizing: border-box;
}

#logo {
    display: flex;
    align-items: center;
    float: none;
    width: auto;
    max-width: 160px;
    height: auto;
    margin: 0 8px 0 0;
    flex-shrink: 0;
    order: 1;
}

#logo img {
    display: block;
    max-height: 48px;
    width: auto;
    max-width: 100%;
}

#header_nav.header-nav-inline {
    display: block !important;
    flex: 1 1 auto;
    min-width: 0;
    order: 2;
    margin: 0 32px;
    padding: 0;
    background: transparent;
    border: none;
    overflow: visible;
}

#header_nav.header-nav-inline::-webkit-scrollbar {
    display: none;
}

#header_nav.header-nav-inline > ul {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

#header_nav.header-nav-inline li {
    float: none;
    flex: 0 0 auto;
    border-right: none;
    position: relative;
}

#header_nav.header-nav-inline li > a {
    display: block;
    padding: 10px 14px !important;
    font-size: 18px !important;
    line-height: 1.25 !important;
    font-weight: 600 !important;
    color: #333 !important;
    white-space: nowrap !important;
    border-bottom: 3px solid transparent;
    background: transparent !important;
}

#header_nav.header-nav-inline li > a:hover,
#header_nav.header-nav-inline li > a.current {
    color: #d92630 !important;
    border-bottom-color: #d92630 !important;
}

#header_nav.header-nav-inline li:hover > a.has_sub {
    z-index: 302;
    padding: 9px 13px 10px !important;
    border: 1px solid #e3e3e3;
    border-bottom-width: 0;
    border-radius: 6px 6px 0 0;
    background-color: #fff !important;
}

#header_nav.header-nav-inline li .sub_nav {
    z-index: 301;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 160px;
    margin-top: -1px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

#header_nav.header-nav-inline li .sub_nav a {
    font-size: 16px !important;
    padding: 8px 12px !important;
    white-space: nowrap;
}

/* 主內容層級低於頁首，避免下拉被輪播／文章區遮住 */
#main {
    position: relative;
    z-index: 1;
}

#header .header-top,
#header .header-top .wrapper,
#header_bar {
    overflow: visible !important;
}

#header_nav.header-nav-inline li:hover > .sub_nav,
#header_nav.header-nav-inline li:focus-within > .sub_nav {
    display: block !important;
}

#header_nav.header-nav-inline li .sub_nav {
    z-index: 10050 !important;
}

body#page_goods #main .wrapper.catalog-layout {
    width: 100%;
    max-width: 100%;
}

body#page_user #main .wrapper.catalog-layout .login-wrapper,
body#page_flow #main .wrapper.catalog-layout.flow_wrapper {
    width: 100%;
    max-width: 100%;
}

/* 電腦版會員中心：主欄撐滿 catalog 寬度，消除右側空白 */
@media screen and (min-width: 981px) {
    body#page_user #main .wrapper.catalog-layout.user_cp {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        width: calc(100% - var(--catalog-gutter) * 2);
        max-width: var(--catalog-max-width);
        box-sizing: border-box;
    }

    body#page_user #main .wrapper.catalog-layout.user_cp::after {
        display: none;
    }

    body#page_user #main .col_sub {
        float: none;
        flex: 0 0 220px;
        width: 220px;
        max-width: 220px;
    }

    body#page_user #main .col_main {
        float: none;
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        max-width: none;
    }

    body#page_user .dashboard-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* 電腦版結帳：主內容撐滿 catalog 寬度 */
    body#page_flow #main .wrapper.catalog-layout.flow_wrapper {
        display: block;
        width: calc(100% - var(--catalog-gutter) * 2);
        max-width: var(--catalog-max-width);
        box-sizing: border-box;
    }

    body#page_flow .progress_bar,
    body#page_flow .flow_wrapper .box,
    body#page_flow .cart_produst_list,
    body#page_flow .checkout_wrapper,
    body#page_flow #checkout_form {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    body#page_flow .checkout_wrapper .options,
    body#page_flow .checkout_wrapper .checkout-right-col,
    body#page_flow .checkout_wrapper .checkout-section {
        max-width: 100%;
    }
}

#search_bar {
    position: relative;
    flex: 0 1 240px;
    max-width: 280px;
    min-width: 160px;
    height: auto;
    float: none;
    padding: 0;
    order: 3;
}

#search_bar form,
#search_bar #search {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    height: auto;
}

#search_bar input[type=text] {
    width: 100%;
    height: 36px;
    padding: 0 44px 0 12px;
    border: 1px solid #dddddd;
    border-radius: 20px;
    background: #fff;
    box-sizing: border-box;
    float: none;
    color: #333;
}

#search_bar input[type=text]:hover,
#search_bar input[type=text]:focus {
    color: #111;
    border-color: #ccc;
    outline: none;
}

#search_bar input[type=submit] {
    position: absolute;
    top: 50%;
    right: 4px;
    left: auto;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    text-indent: -9999px;
    overflow: hidden;
    border: 0;
    border-radius: 50%;
    box-shadow: none;
    background: transparent url('../img/magnify_glass.png') no-repeat center center;
    background-size: 18px 18px;
    opacity: 0.55;
    cursor: pointer;
    -webkit-transition: opacity 0.2s ease;
    transition: opacity 0.2s ease;
}

#search_bar input[type=submit]:hover {
    opacity: 1;
}

#cart {
    float: none;
    margin-top: 0;
    flex-shrink: 0;
    order: 4;
}

#header_nav.header-nav-full {
    max-width: 100% !important;
    float: none;
    margin: 0;
    padding: 0;
    background: #ffffff;
    border-top: 1px solid #f0f0f0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

#header_nav.header-nav-full::-webkit-scrollbar {
    display: none;
}

#header_nav.header-nav-full > ul {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    width: max-content;
    min-width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
    list-style: none;
}

#header_nav.header-nav-full li {
    float: none;
    flex: 0 0 auto;
    border-right: none;
}

#header_nav.header-nav-full li > a {
    display: block;
    padding: 12px 14px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #444 !important;
    white-space: nowrap !important;
    border-bottom: 3px solid transparent;
    background: transparent !important;
}

#header_nav.header-nav-full li > a:hover,
#header_nav.header-nav-full li > a.current {
    color: #d92630 !important;
    border-bottom-color: #d92630 !important;
}

body#page_index #main {
    margin-top: 0;
    padding-top: 0;
}

@media screen and (max-width: 800px) {
    #header_bar {
        padding: 8px 0;
    }
}

/* LINE 內建瀏覽器：保留右側 LINE 浮動鈕，方便下單後切換至官方帳號對話 */

/* 舊版 line-app-mode 專用底欄已停用 */
.line-app-mode .app-user-menu-wrapper,
.line-app-mode .app-bottom-nav {
    display: none !important;
}

/* 手機購物車：卡片式，避免 colgroup 660px 撐破螢幕 */
@media screen and (max-width: 800px) {
    body#page_flow {
        min-width: 0 !important;
        overflow-x: hidden !important;
    }

    body#page_flow .wrapper,
    body#page_flow #main .wrapper.catalog-layout,
    body#page_flow #main .col_main,
    body#page_flow .flow_wrapper {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        box-sizing: border-box !important;
    }

    body#page_flow .cart_produst_list {
        overflow-x: hidden;
    }

    body#page_flow .cart_produst_list colgroup {
        display: none;
    }

    body#page_flow .cart_produst_list .data_table {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        border: none;
    }

    body#page_flow .cart_produst_list .data_table thead {
        display: none;
    }

    body#page_flow .cart_produst_list .data_table tbody,
    body#page_flow .cart_produst_list .data_table tfoot,
    body#page_flow .cart_produst_list .data_table tr,
    body#page_flow .cart_produst_list .data_table td {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
    }

    body#page_flow .cart_produst_list .data_table tbody tr {
        border: 1px solid #e8e8e8;
        border-radius: 10px;
        margin-bottom: 12px;
        padding: 12px;
        background: #fff;
    }

    body#page_flow .cart_produst_list .data_table tbody td {
        border: none;
        padding: 6px 0;
        text-align: left !important;
        white-space: normal !important;
    }

    body#page_flow .cart_produst_list .data_table tbody td.price:not(.subtotal)::before {
        content: '售價：';
        color: #666;
        font-weight: normal;
        font-size: 14px;
    }

    body#page_flow .cart_produst_list .data_table tbody td.quantity::before {
        content: '數量：';
        color: #666;
        font-size: 14px;
        display: block;
        margin-bottom: 4px;
    }

    body#page_flow .cart_produst_list .data_table tbody td.subtotal::before {
        content: '小計：';
        color: #666;
        font-size: 14px;
    }

    body#page_flow .cart_produst_list .data_table tbody td:first-child .photo {
        display: inline-block;
        vertical-align: top;
        margin-right: 10px;
    }

    body#page_flow .cart_produst_list .data_table tbody td:first-child .name {
        display: inline-block;
        max-width: calc(100% - 76px);
        vertical-align: top;
        word-break: break-word;
    }

    body#page_flow .cart_produst_list .data_table tbody td.last {
        text-align: right !important;
        padding-top: 8px;
        border-top: 1px dashed #eee;
        margin-top: 4px;
    }

    body#page_flow .cart_produst_list .data_table tbody td.last::before {
        content: '';
    }

    body#page_flow .cart_produst_list .data_table tbody td.last .drop {
        display: inline-block;
        padding: 6px 14px;
        background: #f5f5f5;
        border-radius: 6px;
        color: #666;
    }

    body#page_flow .cart_produst_list .data_table tfoot tr {
        border: none;
        padding: 0;
    }

    body#page_flow .cart_produst_list .data_table tfoot td.actions {
        padding: 12px 0;
    }

    body#page_flow .cart_produst_list .actions p {
        float: none !important;
        width: 100%;
        text-align: center !important;
        margin-bottom: 10px;
    }

    body#page_flow .cart_produst_list .actions .cart_action {
        float: none !important;
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    body#page_flow .cart_produst_list .actions .button {
        display: block;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

/* ======================================================
   購物車／結帳大字版 + 商品頁積分／推薦／注意事項
   ====================================================== */

/* 購物車：恢復寬欄距，數字欄置中（僅桌面版；手機版用卡片式） */
@media screen and (min-width: 801px) {
body#page_flow .cart_produst_list .data_table {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

body#page_flow .cart_produst_list .data_table th,
body#page_flow .cart_produst_list .data_table td {
    padding: 10px 12px;
    vertical-align: middle;
}

body#page_flow .cart_produst_list .data_table th:nth-child(2),
body#page_flow .cart_produst_list .data_table th:nth-child(3),
body#page_flow .cart_produst_list .data_table th:nth-child(4),
body#page_flow .cart_produst_list .data_table th:nth-child(5),
body#page_flow .cart_produst_list .data_table td.price,
body#page_flow .cart_produst_list .data_table td.quantity,
body#page_flow .cart_produst_list .data_table td.subtotal,
body#page_flow .cart_produst_list .data_table td.last {
    text-align: center;
    white-space: nowrap;
}

body#page_flow .cart_produst_list .data_table td:first-child {
    text-align: left;
}

body#page_flow .cart_produst_list .name {
    font-size: 16px;
    line-height: 1.45;
    margin-bottom: 4px;
}

body#page_flow .cart_produst_list .photo {
    width: 60px;
    padding-right: 10px;
}

body#page_flow .cart_produst_list .photo img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

body#page_flow .cart_produst_list .quantity-selector {
    margin: 0 auto;
}
}

/* 結帳頁：16px 起，老花眼友善 */
body#page_flow .checkout_wrapper {
    font-size: 16px;
    line-height: 1.65;
}

body#page_flow .checkout_wrapper .option_title h2 {
    font-size: 20px !important;
    line-height: 1.4 !important;
}

body#page_flow .checkout_wrapper .option_item .name {
    font-size: 18px !important;
}

body#page_flow .checkout_wrapper .option_item .intro,
body#page_flow .checkout_wrapper .option_item .info {
    font-size: 15px !important;
}

body#page_flow .checkout_wrapper .cart_list .name {
    font-size: 17px !important;
}

body#page_flow .checkout_wrapper .cart_list .price {
    font-size: 17px !important;
}

body#page_flow .checkout_wrapper .consignee_info {
    font-size: 16px !important;
    line-height: 1.7 !important;
}

body#page_flow .checkout_wrapper .consignee_info strong {
    font-size: 15px !important;
}

body#page_flow .checkout_wrapper .extra_options h3,
body#page_flow .checkout_wrapper .other_info,
body#page_flow .checkout_wrapper .other_info p,
body#page_flow .checkout_wrapper .other_info span {
    font-size: 16px !important;
}

body#page_flow .checkout_wrapper textarea {
    font-size: 16px !important;
    line-height: 1.6 !important;
}

body#page_flow .checkout_wrapper .flow_action .next {
    font-size: 18px !important;
}

body#page_flow .progress_bar {
    font-size: 15px;
}

/* 商品頁：上架時間同一行，點擊數與積分靠右 */
.product_details .basic li.meta-row-line {
    width: 100%;
    max-width: 100%;
    float: none;
    clear: both;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 20px;
    padding: 6px 0;
    box-sizing: border-box;
}

.product_details .basic .meta-part {
    display: inline;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.product_details .basic .meta-part strong {
    font-weight: normal;
    color: #999;
    margin-right: 4px;
}

.product_details .basic .meta-part-right {
    margin-left: auto;
    text-align: right;
}

.product_details .basic .meta-inline {
    display: inline;
    white-space: nowrap;
    margin-left: 18px;
}

.product_details .basic .meta-inline:first-child {
    margin-left: 0;
}

/* 也買了推薦：卡片格線 */
#goods_info {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.bought_goods .also-bought-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
}

.bought_goods.box {
    margin-top: 24px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden;
}

.bought_goods.box .bd {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.bought_goods .product-card {
    height: 100%;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

@media screen and (max-width: 980px) {
    .bought_goods .also-bought-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 640px) {
    .bought_goods .also-bought-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .bought_goods .product-name {
        font-size: 13px !important;
        height: auto;
        max-height: 2.8em;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product_details .basic .meta-part-right {
        width: 100%;
        margin-left: 0;
        text-align: left;
    }

    .product_details .basic .meta-inline {
        display: inline-block;
        margin: 4px 16px 0 0;
        white-space: normal;
    }

    body#page_flow .cart_produst_list .data_table {
        max-width: 100%;
    }
}

/* 注意事項：與商品描述同寬、靠左對齊 */
#goods_info .goods_care_notice.box {
    width: 100%;
    max-width: 100%;
    margin-top: 24px;
    background-color: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
    padding: 30px 25px !important;
    box-sizing: border-box;
    text-align: left !important;
}

.goods_care_notice .hd,
.goods_care_notice .bd {
    text-align: left !important;
}

.goods_care_notice.box {
    margin-top: 24px;
    overflow: hidden;
}

.goods_care_notice .hd h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #222;
    text-align: left;
}

.care-notice-body {
    font-size: 16px;
    line-height: 1.75;
    color: #333;
    padding: 8px 4px 12px;
    text-align: left !important;
    max-width: 100%;
}

.care-notice-lead {
    margin-bottom: 16px;
    font-size: 17px;
    color: #222;
}

.care-notice-body h4 {
    margin: 20px 0 10px;
    padding-left: 10px;
    border-left: 4px solid #d92630;
    font-size: 17px;
    font-weight: 700;
    color: #111;
    line-height: 1.4;
}

.care-notice-body p {
    margin: 0 0 12px;
}

.care-notice-body ul {
    margin: 0 0 12px 1.2em;
    padding: 0;
}

.care-notice-body li {
    margin-bottom: 8px;
}

/* 商品頁：收藏 / LINE / 推薦（統一按鈕樣式） */
.goods-share-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 16px 0 8px;
    padding: 0;
}

.goods-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    height: 36px;
    padding: 0 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    transition: border-color 0.2s, color 0.2s;
}

.goods-share-btn:hover {
    border-color: #d92630;
    color: #d92630;
}

.goods-share-line-wrap {
    padding: 0 8px;
    overflow: hidden;
}

.goods-share-line-wrap .line-it-button {
    display: inline-block !important;
    height: 36px;
    line-height: 36px;
}

.goods-share-line-wrap iframe,
.goods-share-line-wrap img {
    vertical-align: middle !important;
    max-height: 36px !important;
}

.goods-share-affiliate {
    background: #fafafa;
}

@media screen and (max-width: 640px) {
    .goods-share-bar {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 12px 0 8px;
    }

    .goods-share-btn {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100%;
        padding: 0 6px !important;
        font-size: 13px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .goods-share-line-wrap {
        padding: 0 4px !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .goods-share-line-wrap .line-it-button,
    .goods-share-line-wrap iframe {
        max-width: 100% !important;
        transform: scale(0.92);
        transform-origin: center center;
    }
}

/* 報價單篩選表單 */
.quotation-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.quotation-filters select,
.quotation-filters .quotation-keyword {
    min-height: 36px;
    font-size: 15px;
}

.quotation-filters label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
}

/* ============================================================
   沂恩精緻洗衣 — 結帳頁 / 商品頁三按鈕 / 文章簡述 修正
   用法：整段貼到 style.css 的「最底部」即可（會覆蓋前面舊規則）
   搭配模板：flow_checkout.lbi
   ============================================================ */

/* ========= 1. 結帳頁版面 =========
   桌機：左欄＝配送/付款，右欄＝商品(上)＋收件人/費用(下)
   手機：單欄，依序 商品 → 配送/付款 → 收件人 → 費用總計（在最底）
   ★ 不再使用 display:contents（那個在 LINE 內建瀏覽器常失效） */

@media screen and (min-width: 801px) {
    #checkout_form.checkout_wrapper {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
        column-gap: 24px;
        row-gap: 16px;
        align-items: start;
        width: 100%;
        max-width: 100%;
    }
    #checkout_form .options {
        grid-column: 1;
        grid-row: 1 / span 2;
        width: 100% !important;
        margin: 0 !important;
        float: none !important;
        box-sizing: border-box;
    }
    #checkout_form .checkout-section-goods {
        grid-column: 2;
        grid-row: 1;
        width: 100% !important;
        margin: 0 !important;
        float: none !important;
        box-sizing: border-box;
    }
    #checkout_form .checkout-right-col {
        grid-column: 2;
        grid-row: 2;
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100% !important;
        margin: 0 !important;
        float: none !important;
        box-sizing: border-box;
    }
    #checkout_form .checkout-right-col .checkout-section {
        width: 100% !important;
        margin: 0 !important;
        float: none !important;
    }
}

@media screen and (max-width: 800px) {
    #checkout_form.checkout_wrapper { display: block !important; }
    #checkout_form .checkout-section-goods,
    #checkout_form .options,
    #checkout_form .checkout-right-col,
    #checkout_form .checkout-right-col .checkout-section {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        margin: 0 0 16px 0 !important;
        box-sizing: border-box;
    }
}

/* ========= 2. 結帳商品列：圖左、文字靠左、刪除右上 ========= */
#checkout_form .cart_list ul { margin: 0; padding: 0; list-style: none; }
#checkout_form .cart_list li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px;
    width: 100% !important;
    padding: 14px !important;
    margin: 0 0 12px 0 !important;
    border: 1px solid #eee !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-sizing: border-box !important;
    float: none !important;
}
#checkout_form .cart_list .photo {
    flex: 0 0 64px !important;
    width: 64px !important;
    height: 64px !important;
    margin: 0 !important;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    display: block;
}
#checkout_form .cart_list .photo img {
    width: 100% !important; height: 100% !important;
    object-fit: cover; display: block;
}
#checkout_form .cart_list .co-item-main,
#checkout_form .cart_list .co-item-main-full {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left !important;
}
#checkout_form .cart_list .name {
    display: block !important;
    width: auto !important;
    margin: 0 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    word-break: break-word;
}
#checkout_form .cart_list .extra_info { font-size: 13px; color: #888; line-height: 1.4; }
#checkout_form .cart_list .co-item-row {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 !important;
}
#checkout_form .cart_list .co-price,
#checkout_form .cart_list .price {
    font-weight: 700; color: #333; white-space: nowrap; margin: 0 !important;
}
#checkout_form .co-qty-wrap {
    display: inline-flex; align-items: center;
    border: 1px solid #ddd; border-radius: 6px; overflow: hidden;
    flex-shrink: 0; margin: 0 !important;
}
#checkout_form .co-qty-btn {
    width: 32px; height: 32px; padding: 0;
    border: none; background: #f5f5f5; color: #333;
    font-size: 16px; line-height: 32px; cursor: pointer;
}
#checkout_form .co-qty-btn:hover { background: #e6e6e6; }
#checkout_form .co-qty-input {
    width: 44px; height: 32px; padding: 0;
    border: none; border-left: 1px solid #ddd; border-right: 1px solid #ddd;
    text-align: center; font-size: 14px; background: #fff;
    -moz-appearance: textfield;
}
#checkout_form .co-qty-input::-webkit-outer-spin-button,
#checkout_form .co-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#checkout_form .cart_list .drop {
    flex: 0 0 auto !important;
    align-self: flex-start !important;
    margin: 0 0 0 4px !important;
    padding: 6px 10px !important;
    font-size: 13px !important;
    color: #888 !important;
    background: #f5f5f5 !important;
    background-image: none !important;
    border: none !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    text-shadow: none !important;
    white-space: nowrap;
    float: none !important;
}
#checkout_form .cart_list .drop:hover { color: #d92630 !important; background: #f0e3e3 !important; }

/* ========= 3. 商品頁 收藏 / 分享 / 推薦：手機防溢出（含 LINE iframe） ========= */
@media screen and (max-width: 800px) {
    .goods-share-bar {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 12px 0 8px !important;
        box-sizing: border-box !important;
    }
    .goods-share-btn {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        padding: 0 10px !important;
        font-size: 13px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        box-sizing: border-box !important;
    }
    .goods-share-line-wrap {
        flex: 0 0 auto !important;
        max-width: 100% !important;
        padding: 0 !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    .goods-share-line-wrap .line-it-button,
    .goods-share-line-wrap iframe,
    .goods-share-line-wrap img {
        max-width: 100% !important;
        height: 36px !important;
    }
}

/* ========= 4. 文章簡述：手機固定兩行 ========= */
@media screen and (max-width: 800px) {
    .article_excerpt,
    .article-brief {
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        overflow: hidden !important;
        max-height: 3.4em !important;
        box-sizing: border-box;
    }
}

/* ========= 我的訂單：收衣照片（唯讀） ========= */
.user-order-guest-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 0 16px 0;
}

.user-order-photo-item {
    display: block;
    width: 80px;
    text-align: center;
    text-decoration: none;
}

.user-order-photo-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
    display: block;
}

.user-order-photo-tag {
    display: block;
    font-size: 11px;
    color: #666;
    margin-top: 4px;
}

.user-order-defect-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.user-order-defect-photos img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/* 首頁：首次註冊優惠彈窗 */
body.home-reg-promo-open {
    overflow: hidden;
}
.home-reg-promo {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}
.home-reg-promo__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}
.home-reg-promo__panel {
    position: relative;
    width: 100%;
    max-width: 360px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(165deg, #fff6b0 0%, #ffe566 42%, #ffd24d 100%);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    padding: 28px 22px 22px;
    text-align: center;
    color: #4a3200;
}
.home-reg-promo__burst {
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 62%);
    pointer-events: none;
}
.home-reg-promo__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.85);
    color: #333;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.home-reg-promo__brand {
    position: relative;
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.home-reg-promo__title {
    position: relative;
    margin: 0 0 14px;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 900;
    color: #c62828;
    text-shadow: 2px 2px 0 #fff, -1px -1px 0 #fff;
}
.home-reg-promo__amount {
    position: relative;
    display: inline-block;
    margin: 0 auto 12px;
    padding: 10px 22px;
    border-radius: 12px;
    background: linear-gradient(180deg, #e53935 0%, #c62828 100%);
    color: #fff;
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 6px 0 #8e0000;
}
.home-reg-promo__amount-label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    opacity: 0.95;
}
.home-reg-promo__lead {
    position: relative;
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.5;
}
.home-reg-promo__cta {
    position: relative;
    display: inline-block;
    min-width: 180px;
    padding: 12px 20px;
    border-radius: 999px;
    background: #1565c0;
    color: #fff !important;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.35);
}
.home-reg-promo__notes {
    position: relative;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    text-align: left;
    font-size: 12px;
    line-height: 1.55;
    color: #5d4a12;
}
.home-reg-promo__notes li {
    margin: 0 0 4px;
    padding-left: 14px;
    position: relative;
}
.home-reg-promo__notes li:before {
    content: '◆';
    position: absolute;
    left: 0;
    top: 0;
    color: #c62828;
    font-size: 9px;
    line-height: 1.8;
}
@media (max-width: 480px) {
    .home-reg-promo__title {
        font-size: 26px;
    }
    .home-reg-promo__amount {
        font-size: 30px;
    }
}

/* 前台手機版：覆蓋舊版 min-width:640px / wrapper:640px，避免橫向捲動 */
@media screen and (max-width: 800px) {
    html {
        overflow-x: hidden;
    }

    body {
        min-width: 0 !important;
        overflow-x: hidden;
    }

    #container {
        max-width: 100%;
        overflow-x: hidden;
    }

    .wrapper,
    #main .col_main,
    #main .col_sub,
    #footer .wrapper,
    #header .header-top .wrapper {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }

    body#page_index,
    body#page_category,
    body#page_search,
    body#page_brand,
    body#page_goods,
    body#page_article,
    body#page_article_cat,
    body#page_user {
        overflow-x: hidden !important;
    }

    #header_bar {
        flex-wrap: wrap;
        max-width: 100%;
    }

    .catalog-page-title {
        word-break: break-word;
    }

    /* 商品卡片：加大字級（老花友善） */
    ul.product-grid {
        font-size: 16px !important;
    }

    li.product-card .product-name,
    li.product-card .product-name a {
        font-size: 16px !important;
        line-height: 1.45 !important;
        height: auto !important;
        max-height: 3em;
    }

    li.product-card .product-price {
        font-size: 18px !important;
    }

    li.product-card .product-price del {
        font-size: 14px !important;
    }

    /* 右下角浮動鈕、頁尾版權字級 +2px */
    #floating-buttons a {
        font-size: 14px;
    }

    #footer .footer-bottom,
    #footer #copyright,
    #footer #bottom_nav,
    #footer #bottom_nav a {
        font-size: 14px;
    }
}

/* ===== 會員中心：訂單／紅包／資金管理（LINE 內建瀏覽器防切版） ===== */
body#page_user .user-account-box .account-content,
body#page_user .user-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

body#page_user .user-table-scroll .data_table,
body#page_user .user-account-box .pretty-table {
    min-width: 640px;
}

body#page_user .user-order-table th,
body#page_user .user-order-table td,
body#page_user .user-account-box .pretty-table th,
body#page_user .user-account-box .pretty-table td {
    white-space: normal;
    word-break: break-word;
    vertical-align: top;
}

body#page_user .user-order-table .order_status,
body#page_user .user-order-table .handler {
    min-width: 120px;
}

body#page_user .user-account-box .add-bonus-bar {
    flex-direction: column;
    align-items: stretch;
}

body#page_user .user-account-box .add-bonus-input-group {
    max-width: none;
    width: 100%;
    flex-direction: column;
}

body#page_user .user-account-box .btn-add-bonus {
    width: 100%;
}

body#page_user .user-account-box .action-bar {
    gap: 8px;
}

body#page_user .user-account-box .pretty-table th:nth-child(1),
body#page_user .user-account-box .pretty-table td:nth-child(1) {
    min-width: 110px;
}

@media screen and (max-width: 980px) {
    body#page_user #main .col_sub {
        display: none !important;
    }

    body#page_user #main .col_main {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        padding: 0 !important;
    }

    body#page_user .app-user-menu-wrapper {
        display: block !important;
    }

    body#page_user .user-account-box {
        border-radius: 12px;
        margin-left: 0;
        margin-right: 0;
    }

    body#page_user .user-account-box .account-content {
        padding: 16px 12px;
    }

    body#page_user .user-account-box .account-tabs a {
        font-size: 13px;
        padding: 12px 4px;
    }
}

/* 會員中心訂單列表 - 查看按鈕 */
.user-order-table td.last.handler a.order_view_btn.button {
    display: inline-block !important;
    margin: 2px 4px 2px 0 !important;
    padding: 4px 12px !important;
    background: #333 !important;
    color: #fff !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    text-decoration: none !important;
}
.user-order-table td.last.handler a.order_view_btn.button:hover {
    background: #d92630 !important;
}

/* 文章頁 - 文字大小調整工具列 */
.article_font_toolbar {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 0 16px !important;
    padding: 10px 14px !important;
    background: #f8f8f8 !important;
    border: 1px solid #eee !important;
    border-radius: 8px !important;
}
.article_font_toolbar .font_toolbar_label {
    font-size: 14px !important;
    color: #666 !important;
}
.article_font_toolbar .font_size_btn {
    cursor: pointer !important;
    padding: 6px 14px !important;
    border: 1px solid #ccc !important;
    background: #fff !important;
    color: #333 !important;
    border-radius: 20px !important;
    font-size: 14px !important;
}
.article_font_toolbar .font_size_btn.current {
    background: #d92630 !important;
    border-color: #d92630 !important;
    color: #fff !important;
}
.article_content.font-large {
    font-size: 20px !important;
    line-height: 1.9 !important;
}
.article_content.font-xlarge {
    font-size: 24px !important;
    line-height: 2 !important;
}

/* 會員中心 - 手機/信箱驗證獎勵區塊 */
.verify-hint {
    color: #888 !important;
    font-size: 13px !important;
    margin: 0 0 16px !important;
}
.verify-row {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
}
.verify-value {
    color: #333 !important;
}
.verify-badge {
    display: inline-block !important;
    padding: 2px 10px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
}
.verify-badge.verify-done {
    background: #e8f5e9 !important;
    color: #2e7d32 !important;
}
.verify-badge.verify-pending {
    background: #fff3e0 !important;
    color: #e65100 !important;
}
.verify-input {
    padding: 6px 10px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    font-size: 14px !important;
}
.verify-code-box {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 8px !important;
}
.verify-msg {
    color: #d92630 !important;
    font-size: 13px !important;
}

/* 商品分類頁 - 子分類導覽按鈕 (仿案例分享子分類樣式) */
.goods-sub-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 0 0 16px !important;
}
.goods-sub-nav .goods-sub-nav-item {
    display: inline-block !important;
    padding: 8px 16px !important;
    border: 1px solid #ccc !important;
    border-radius: 20px !important;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    background: #fff !important;
}
.goods-sub-nav .goods-sub-nav-item.is-current {
    background: #d92630 !important;
    border-color: #d92630 !important;
    color: #fff !important;
}