@charset "utf-8";
body {
	font-family: Geneva, sans-serif;
	background:#CCC;
}

#container {
	width: 1280px;
	margin: 0 auto;
	background: white;
}

header .upper {
	height: 40px;
	border-bottom:1px solid #ccc;	
}

header .upper div {
	padding-top: 7px;
	padding-left: 70px;
}

#social {
	float: left;
}

#account {
	float: right;
	margin-top: -10px;
	margin-right: 70px;
	height: 40px;
}

#account ul li {
	float: left;
	list-style: none;
	margin-right: 20px;
	border-right: 1px solid #ccc;
	padding-right: 20px;
	color: #666;
}

#account ul li:last-child {
	border: 0;
}

header .lower {
	height: 123px;	
}
/* all go to right */
header .lower div{
	float: right;
	padding-top: 30px;
}
/* except this*/
header .lower div:first-child {
	float: left;
	margin-left: 70px;
}

#search input {
	background: #f1f1f1;
	width: 344px;
	height: 42px;
	border: 0;
	border-radius: 5px;
	text-indent: 20px;
}

.lower button {
	background: url(../images/search-button.png);
	width: 44px;
	height: 42px;
	border: 0;
}

#bag {
	margin-right: 70px;
	margin-left: 30px;
	margin-top: 20px;
	background: url(../images/bag.png) no-repeat;
	width: 76px;
	height: 60px;
	color: white;
	text-indent: 51px;
}


nav {
	height: 54px;
	background:#2d2d2d;
	box-shadow: 0px 5px 3px #ccc;
}

nav ul {
	padding: 0;
	margin: 0;
	list-style: none;
	margin-left: 70px;
}

nav > ul > li {
	padding: 20px 20px;
	float: left;
	border-left: 1px solid #696666;
	height: 14px;
}

nav ul li a{
	color: white;
}

nav > ul > li:last-child {
	background: url(../images/login.png);
	margin-top: -8px;
	height: 22px;
	border: 0;
	margin-left: 120px;
}

nav > ul > li:first-child {
	background: #E62A8A;
}

nav ul li ul {
	background: #999;
	margin-top: 15px;
	margin-left: -10px;
	display: none;
	position: absolute;
}

nav ul li:hover ul {
	display: block;
}

nav ul li ul li {
	padding: 10px 30px;
	border-bottom: 1px dotted #eee;
}

nav ul li ul li:hover {
	background: orange;
}

nav ul li a, nav ul li ul li a {
	text-decoration: none;
}

section#slider {
	height: 544px;	
}

#photo {
	height: 488px;
	width: 1142px;
	margin: 20px auto;
	overflow: hidden;
	margin-top: -250px;
}

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

#photo ul li{
	margin: 0;
	padding: 0;
}

#arrow-right {
	width: 65px;
	height: 140px;
	background: url(../images/right.png);
	position: relative;
	top: 208px;
	left: 1147px;
}

#arrow-left {
	width: 65px;
	height: 140px;
	background: url(../images/left.png);
	position: relative;
	top: 65px;
	left: 70px;
}
section#products {
	height: 920px;
	width: 1140px;
	margin: 0 auto;
}

.pink {
	color: #E62A8A;
}

#products h2 {
	text-align: center;
	position: relative;
	z-index: 1;
}

#products h2::before {
	border-top: 1px solid #dfdfdf;
	content: "";
	margin: 0 auto;
	position: absolute;
	top: 50%;
	right: 0;
	bottom: 0;
	width: 100%;
	z-index: -1;
}

#products h2 span {
	background: white;
	padding: 0 10px;
}
/* arrange product */
#products .upper, #products .lower {
	height: 450px;	
}

#products .upper div, #products .lower div {
	float: left;
	width: 270px;
	margin-left: 15px;
}

button.add-cart {
	width: 114px;
	height: 42px;
	background: #9a9a9a url(../images/cart.png) no-repeat 7px 7px;
	color: white;
	border: 0;
	border-radius: 5px;
	text-indent: 10px;
	margin-left: 150px;
	margin-top: 10px;
}

#products .product {
	margin-top: -45px;
	color: #797979;
	font-size: 0.9em;
	width: 125px;
	font-weight: bold;
}

#products .normal-price {
	color: #E62A8A;
	font-size: 1.4em;
	font-weight: bold;
	margin-top: -10px;
}

#products .price-cut {
	color: #E62A8A;
	text-decoration: line-through;
	font-size: 1.4em;
	font-weight: bold;
	margin-top: -10px;
}

#products .discount-price {
	color: #454242;
	font-size: 1.0em;
	font-weight: bold;
	margin-top: -20px;
}

footer .upper {
	height: 264px;
	background:#242424;
	color: #a9a9a9;
	font-size: 0.9em;
}

footer .upper div {
	float: left;
	padding-top: 30px;
	width: 210px;
	margin-right: 10px;
}

footer ul {
	margin-left: -15px;
}

footer ul li {
	margin-bottom: 20px;
}

footer ul li a {
	color: #a9a9a9;
	text-decoration: none;
}

footer .upper div:first-child {
	padding: 30px 30px;
	width: 280px;
	text-align: justify;
}

#email {
	width: 200px;
	height: 40px;
	background: #565656;
	border: 0;
	border-radius: 5px;
	text-align: center;
	margin-bottom: 10px;
}

#submit {
	width: 200px;
	height: 30px;
	background: #E62A8A;
	border: 0;
	border-radius: 5px;
	color: white;
}

footer .lower {
	height: 41px;
	background:#0f0f0f;
	color: #a9a9a9;
	padding-top: 25px;
	padding-left: 80px;
	font-size: 0.9em;
}

@media screen and (max-width: 540px) {
	#container {
		width: 480px;
	}
	header .upper div {
		padding-left: 20px;
	}
	#account {
		margin-right: -20px;
		height: 40px;
	}
	#search input, .lower button {
		display: none;
	}
	header .lower div:first-child {
		float: left;
		margin-left: 20px;
	}
	#bag {
		margin-right: 20px;
	}
	
	nav ul li + * {
		display: none;	
	}
	
	nav ul {
		margin-left: 20px;
	}
	
	nav > ul li:first-child {
		background:#2d2d2d;
		border: 0;
	}
	
	nav > ul li:after {
		content: url(../images/small-menu.png);
		display: block;
		position: relative;
		left: 390px;
		top: -20px;	
	}
	
	#photo {
		height: 338px;
		width: 480px;
		margin: 0;
		margin-top: -280px;
	}
	
	section#products {
		height: 3800px;
		width: 480px;
	}
	
	#products .upper div, #products .lower div {
		margin-left: 45px;
	}
	
	#products .upper {
		height: 1900px;
		margin-top: -200px;
		width: 480px;
	}
	
	#products .lower {
		height: 1500px;
		width: 480px;
	}
	
	#products .add-cart {
		display: block;
		margin-left: 270px;
	}
	
	#products img {
		width: 387px;
		height: 358px;
	}
	
	#products .product {
		width: 300px;
	}
	
	footer .upper {
		height: 580px;
	}
	
	footer .upper div {
		width: 130px;
		font-size: 0.7em;
		margin-left: 10px;
	}
	
	footer .upper div:first-child {
		width: 400px;
	}
	
	footer .upper div:last-child  p{
		display: none;
	}
	
	footer .upper div:last-child {
		margin-left: 70px;
		text-align: center;
		text-indent: 120px;
	}
	
	footer h2 {
		font-size: 1.1em;
	}
	
	#email {
		width: 320px;
	}

	#submit {
		width: 320px;
		text-indent: 0px;
	}
	
	footer .lower {
		height: 41px;
		background:#0f0f0f;
		color: #a9a9a9;
		padding-top: 25px;
		font-size: 0.8em;
	}
	
}
