@charset "UTF-8";

/*共用--------------------------------------------*/
body {
    width: 100%;
    font-family: Arial, 微軟正黑體, sans-serif,  "Microsoft JhengHei", "LiHei Pro", 新細明體;
    font-size: 16px;
    color: #333333;
    overflow-y: scroll;
}
.wrapper { width: 100%; }
section { width: 100%; padding: 0; margin: 0; }
.area {
    position: relative;
    padding: 0;
    margin: 0 auto;
}
.hide { display: none; }
.flex { display: flex; }
*:after, *:before {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
.icon-right-open-1:before {
    line-height: 1;
    margin-left: 0;
    margin-right: 0;
}


/*電腦側選單--------------------------------------------*/
.sidebar {
	position: fixed;
	width: 110px;
	right: 0px;
	top: 60px;
	display: none;
    z-index: 999;
}
.sidebar ul {
    margin: 0;
}
.sidebar li a {
    width: 110px;
	font-size: 1em;
	line-height: 120%;
	text-align: center;
	color: #FFF;
	background-color: rgba(0,0,0,0.75);
	padding: 8px 0;
	margin: 0 auto;
	display: block;
}
.sidebar li a:link, sidebar li a:visited { color: #FFF; }
.sidebar li a:hover, sidebar li a:focus {
    color: #000; 
    background-color: #fec700; 
    -webkit-transition: all 0.4s linear;
	-moz-transition: all 0.4s linear;
	-ms-transition: all 0.4s linear;
	-o-transition: all 0.4s linear;
	transition: all 0.4s linear;
}
.sidebar li:nth-child(9) a { padding: 8px 0 0 0; }
.sidebar li:nth-child(10) a { border-radius: 0 0 50px 50px; }
.sidebar img { width: 100%; height: auto; }

@media screen and (max-width: 1440px) {    
    .sidebar li a:link, .sidebar li a:visited {	font-size: 1em; }
}


/*手機side  內頁side_page--------------------------------------------*/
.side, .side_page {
    width: 50px;
	position: absolute;
	right: 10px;
    bottom: 60px;
	cursor: pointer;
	display: none;
	z-index:  9999;
}
.side li, .side_page li {
	font-size: 1.8em;
	text-align: center;
	color: #FFF;
    background-color: rgba(0,0,0, 0.5);
}
.side li { color: #FFF; padding: 6px 0; }
.side li:nth-child(1), .side_page li:nth-child(1) { border-radius: 10px 10px 0 0; }
.side li:nth-child(2), .side_page li:nth-child(2) { border-radius: 0 0 10px 10px; }

.side_page li { padding: 5px 0; }
.side_page li a:link, .side_page li a:visited { color: #FFF; }
.side li:hover, .side li:focus,
.side_page li:hover, .side_page li:focus { background-color: rgba(0,0,0, 0.8); }

@media screen and (max-width: 834px) {    
    .side_page { width: 50px; right: 5px; }
}
@media screen and (max-width: 480px) {
    .side, .side_page { width: 50px; right: 8px; bottom: 50px; }
    .side li, .side_page li { font-size: 1.5em; padding: 5px 0; }
}

/*手機選單*/
.sidenav {
    position: fixed; top: 0; left: 0;
    width: 0;
    height: 100%;
    text-align: center;
    background-color: #2F54D6;
    padding-top: 60px;
    transition: 0.5s;
    overflow-x: hidden;
    z-index: 9999;
}
.sidenav a {
    padding: 14px 10px;
    text-decoration: none;
    font-size: 1.6em;
    font-weight: bold;
    color: #FFF;
    display: block;
    transition: 0.3s;
}
.sidenav a:hover {
    color: #FFFF00;
}
.sidenav .closebtn {
    position: absolute; top: 0; right: 20px;
    font-size: 3em;
}


/*item樣式--------------------------------------------*/
.iblock { width: 0; height: 100%; vertical-align: middle; display: inline-block; }
div[class^="photo"] { text-align: center; }
div[class^="photo"] img { width: auto; }
div[class^="name"] {
	width: 100%;
    font-weight: 600;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    /*-webkit-line-clamp: 2; /*顯示行數*/
    overflow : hidden;
}
div[class^="price"] { font-size: 0.875em; margin: 0 0 5px 0; }
div[class^="sale"] { text-align: center; letter-spacing: -0.02em; }
div[class^="sale"] del { font-size: 0.9em; margin: 0 8px 0 0; }
div[class^="sale"] span { font-size: 0.9em; }
div[class^="sale"] strong { font-size: 0.9em; padding: 0 0 0 3px; }
div[class^="sale"] b { font-size: 1.6em; font-weight: normal; }

@media screen and (max-width: 375px) {	
	div[class^="price"] del { font-size: 0.8em; }
    div[class^="sale"] del { font-size: 0.8em; }
    div[class^="sale"] span { font-size: 0.8em; }
    div[class^="sale"] strong { font-size: 0.8em; }
    div[class^="sale"] b { font-size: 1.3em; }
}

@media screen and (max-width: 320px) {	
	div[class^="price"] del { font-size: 0.7em; }
    div[class^="sale"] del { font-size: 0.5em; }
    div[class^="sale"] span { font-size: 0.7em; }
    div[class^="sale"] strong { font-size: 0.7em; }
    div[class^="sale"] b { font-size: 1.3em; }
}

/*copyright--------------------------------------------*/
.copyright {
    width: 100%;
    font-size: 0.9em;
    line-height: 26px;
    text-align: center;
    color: #eaeaea;
    background-color: #666;
    padding: 5px 0;
}
.copyright img {
    height: 26px;
    padding: 0 10px 0 0;
}
@media screen and (max-width: 480px) { 
    .copyright { font-size: 0.7em; }
}
@media screen and (max-width: 320px) { 
    .copyright { font-size: 0.5em; }
}

/*pop--------------------------------------------*/
.popbg {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    z-index: 998;
}
.pop {
    position: fixed;
    top: 10%;
    left: 50%;
    width: 600px;
    padding: 40px 30px 30px 30px;
    margin-top: 100px;
    margin-left: -300px;
    background-color: #FFFFFF;
    z-index: 999;
}
.pop h2 {
    font-size: 2em;
    font-weight: bolder;
    line-height: 130%;
    text-align: center;
    color: #333;       
    margin: 0 0 10px 0;
}
.pop h3 {
    font-size: 2em;
    font-weight: bolder;
    line-height: 130%;
    text-align: center;
    color: #FF0000; 
    margin: 0 0 10px 0;
}
.pop p {
    font-size: 1.125em;
    line-height: 130%;
    text-align: center;
    color: #666;
    margin: 0 0 10px 0;
}
.pop p a:link, .pop p a:visited { color: #666; text-decoration: underline; }
.pop p a:hover, .pop p a:focus { color: #666; }
.pop-btn a {
    width: 60%;
    font-size: 2em;
    text-align: center;
    color: #FFF;
    background-color: #29abe2;
    border-radius: 5px;
    padding: 10px 20px;
    margin: 30px auto 0 auto;
    display: block;
    cursor: pointer;
}
.pop-btn a:hover, .pop-btn a:focus { background-color: #0071bc; }
.close {
	position: absolute;
	top: -70px;
	right: 0px;
	width: 70px;
	height: 70px;
	background-color: #29abe2;
	background-image: url(../images/close.png);
	background-repeat: no-repeat;
	background-position: center center;
	cursor: pointer;
}
.close:hover, .close:active { background-color: #0071bc; }

@media screen and (max-width: 480px) {
    .pop { width: 300px; padding: 30px 20px 20px 20px; margin-top: 50px; margin-left: -150px; }
    .pop h2 { font-size: 1.6em; }
    .pop h3 { font-size: 1.5em; }
    .pop h4 { font-size: 1.125em; }
    .pop-btn a { width: 85%; font-size: 1.5em; padding: 10px;  margin: 30px auto 0 auto; }
    .close { top: -60px; right: 0px; width: 60px; height: 60px; }
}

/*加碼--------------------------------------------*/
.headerbn-area, .headerbn-area-m {
	width: 100%;
	height: auto;
	text-align: center;
	display: block;
}
.headerbn-area img, .headerbn-area-m img  {
	width: 100%;
	height: auto;
	margin: 0 auto;
}
.headerbn-area-m { display: none; }

@media screen and (max-width: 834px) {
	.headerbn-area { display: none; }
    .headerbn-area-m { display: block; }
}

/*購物車按鈕--------------------------------------------*/
.cart { width: 70%; text-align: center; margin: 0 auto;}
.pointer { cursor: pointer; }
.width120 { width: 100%;}
.button02, .button03, .button04 {
	height: 40px;
	text-align: center;
	border-radius: 30px;
}
.button02 span, .button03 span, .button04 span {
	font-size: 0.9em;
    line-height: 38px;
}

/*02--放入購物車*/
.button02 {
	color: #0D42C9;
	background-color: #FFF;
	border: 1px solid #0D42C9;
}
.button02:hover, .button02:focus {
	color: #FFFFFF;
	background-color: #00C3E8;
	border: 1px solid #00C3E8;
}

/*03--已放入購物車*/
.button03 {
	color: #FFFFFF;
	background-color: #999999;
	border:1px solid #999999;
	cursor: default;
}

/*04--已售完，補書中/新書尚未入庫/不開放訂購*/
.button04 {
	color: #666666;
	background-color: #FFFFFF;
	border:1px solid #666666;
	cursor: default;
}

@media screen and (max-width: 1280px) { 
    .cart { width: 85%; }
    .button02 span, .button03 span, .button04 span { font-size: 0.8em; }
}
@media screen and (max-width: 834px) {
    .button02 span, .button03 span, .button04 span { font-size: 0.8em; }
}
@media screen and (max-width: 480px) {
    .button02 span, .button03 span, .button04 span { font-size: 0.9em; }
}
