img, a img {
    border: medium none;
    height: auto;
    max-width: 100%;
/*    vertical-align: bottom;*/
}

#default_main {
	width: auto;
	max-width: 950px;
	background-color: #fff;
/*	padding: 3px;*/
	padding: 0;
	border: none;
	display: table;
	text-align: left;
	margin: 0 auto;
}

#default_main > tbody > tr {
	display: table-row;
}

#default_left,
#default_right,
#default_center {
	vertical-align: top;
	display: table-cell;
}

#default_left {

}

.button_yellow {
	border: 2px solid #000080;
	color: #000080;
	text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.75);
	background: #ffcc33; /* Old browsers */
	background: url(../images/icons/cart.png) 20px 50% no-repeat, -moz-linear-gradient(top,  #ffcc33 0%, #fff6db 2%, #ffde7d 49%, #ffcc33 50%, #ffcc33 100%); /* FF3.6+ */
	background: url(images/icons/cart.png) 20px 50% no-repeat, -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffcc33), color-stop(2%,#fff6db), color-stop(49%,#ffde7d), color-stop(50%,#ffcc33), color-stop(100%,#ffcc33)); /* Chrome,Safari4+ */
	background: url(../images/icons/cart.png) 20px 50% no-repeat, -webkit-linear-gradient(top,  #ffcc33 0%,#fff6db 2%,#ffde7d 49%,#ffcc33 50%,#ffcc33 100%); /* Chrome10+,Safari5.1+ */
	background: url(../images/icons/cart.png) 20px 50% no-repeat, -o-linear-gradient(top,  #ffcc33 0%,#fff6db 2%,#ffde7d 49%,#ffcc33 50%,#ffcc33 100%); /* Opera 11.10+ */
	background: url(../images/icons/cart.png) 20px 50% no-repeat, -ms-linear-gradient(top,  #ffcc33 0%,#fff6db 2%,#ffde7d 49%,#ffcc33 50%,#ffcc33 100%); /* IE10+ */
	background: url(../images/icons/cart.png) 20px 50% no-repeat, linear-gradient(to bottom,  #ffcc33 0%,#fff6db 2%,#ffde7d 49%,#ffcc33 50%,#ffcc33 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffcc33', endColorstr='#ffcc33',GradientType=0 ); /* IE6-9 */
	border-radius: 50px;
	font-size: 15px;
	font-weight: bold;
	padding: 2px 16px 1px 44px;
	cursor: pointer;
	display: inline-block;
	min-height: 30px;
}


#default_center {
	/*width: 64%;*/
	width: auto;
}

#default_right {

}

#ads_wrap {
	width: 100%;
}

#banners {
/*	display: none;*/
}

#slider_wrap {
	max-height: 275px;
	overflow: hidden;
}

#banners #slider {
	width: auto; /* May need 100% here */
	height: 0;
	margin: 0 auto;
	padding-bottom: 50%;
	position: relative;
	max-width: 550px;
}

#slider > div,
#slider > div > div,
#slider > div > div > div,
#slider > div > div > div > iframe {
	width: 100%;
	height: 100%;
}

#menubar {
	max-width: 552px;
	width: auto;
	list-style-type: none;
	padding: 0;
	margin: 0;
	background: url(../images/new-quad-sprite552.png) no-repeat 0 0 / cover;
	overflow: hidden;
}

#menubar li {
	padding: 0;
	margin: 0;
	width: 25%;
	float: left;
}

#menubar a {
	display: block;
}

#menubar li:nth-of-type(1) a:hover {
	background: url(../images/new-quad-sprite552.png) no-repeat 0 100% / 400% auto;
}

#menubar li:nth-of-type(2) a:hover {
	background: url(../images/new-quad-sprite552.png) no-repeat 33.3333% 100% / 400% auto;
}

#menubar li:nth-of-type(3) a:hover {
	background: url(../images/new-quad-sprite552.png) no-repeat 66.6666% 100% / 400% auto;
}

#menubar li:nth-of-type(4) a:hover {
	background: url(../images/new-quad-sprite552.png) no-repeat 100% 100% / 400% auto;
}

#small_banners {
/*	display: none;*/
}

#small_banners a {
	display: inline-block;
	width: 24.25%;
}

#small_banners > td > img {
	width: 1%;
}

#site_news > td > table {
	width: 100%;
}

#bottom_banner_ad {
/*	display: none;*/
}

#products_list_header {
	table-layout: fixed;
}

#products_list > td > div:nth-of-type(3n + 1) {
	clear: left;
}

.grid_wrap {
	width: 33.3333%;
	float: left;
}

#products_list > td .grid {
	float: none;
	height: auto;
	width: auto;
}

#products_list > td .grid .img_wrap {
	display: inline-block;
	width: 85%;
	margin: 0 auto;
	position: relative;
}

#products_list > td .grid .discount {
	width: 33px;
	height: 33px;
	text-align: center;
	right: -12px;
	bottom: -9px;
	padding: 3px 0 0;
}

#top_results td {
	padding: 2px 2px 10px 2px;
	border-bottom: 1px solid #ccc;
}

#bottom_results td {
	border-top: 1px solid #ccc;
	padding: 10px 2px 10px 2px;
	clear: both;
}

#categories_description > table {
	width: 100%;
	height: auto;
	padding: 10px;
	max-width: 575px;
	margin: 0 auto;
}

#bestsellers_m_row {
	display: none;
}

#bestsellers_m {
	border: 1px solid #ccc;
	overflow: hidden;
	margin-top: 20px;
	border-top-left-radius: 6px;
	border-top-right-radius: 6px;
}

#bestsellers_m h2 {
	background-color: #1a5cb0;
    color: white;
    font-family: Verdana,Arial,sans-serif;
    font-size: 10px;
    font-weight: bold;
    margin: 0 0 7px;
    padding: 10px;
    text-transform: uppercase;
}

#bestsellers_m > table,
#bestsellers_m > table > tbody,
#bestsellers_m > table > tbody > tr {
	display: block;
}

#bestsellers_m > table > tbody > tr {
	width: 50%;
	float: left;
	display: table;
}

#bestsellers_m > table > tbody > tr:nth-of-type(2n + 3) {
	clear: left;
}

#bestsellers_m > table > tbody > tr > td {
	display: table-cell;
	font-size: 12px;
}

#bestsellers_m > table > tbody > tr > td > font {
	font-size: 12px;
}

#bestsellers_m > table > tbody > tr > td:nth-of-type(1) {
	width: 0;
}

#bestsellers_m > table > tbody > tr > td:nth-of-type(2) {
	width: 1.4em;
}

#bestsellers_m > table > tbody > tr > td:nth-of-type(4) {
	padding-right: 10px;
	vertical-align: top;
}

#bestsellers_m > table > tbody > tr:nth-of-type(even) > td:nth-of-type(1) {
	padding-left: 10px;
}

/* ===== Media Queries ===== */

@media only screen and (max-width: 965px) {
/*	#banners,
	#banners + tr,*/
	#bottom_banner_ad {
		display: none;
	}
	
	#bottom_banner_ad > td > div {
		margin: 0 auto;
		max-width: 468px;
	}

	#bottom_banner_ad > td > div > div {
		width: 100% !important;
		height: 0 !important;
		padding-bottom: 12.3456%; /* 468 x 60 banner dimensions: 60 / 468 = .123456 */
		overflow: hidden;
	}

	#bottom_banner_ad > td > div > div > iframe {
		width: 100%;
	}

	#upcoming_products .infoBoxContents,
	#upcoming_products .infoBoxContents > tbody,
	#upcoming_products .infoBoxContents > tbody > tr,
	#upcoming_products .infoBoxContents > tbody > tr > td {
		display: block;
	}
	
	#upcoming_products .infoBoxContents > tbody > tr:last-child {
		/*display: none;*/
	}
	
	#upcoming_products .infoBoxContents > tbody > tr {
		overflow: hidden;
		border-bottom: 1px solid #ccc;
		padding: 10px 0;
	}
	
	#upcoming_products .infoBoxContents > tbody > tr:first-child {
		padding-bottom: 10px;
	}
	
	#upcoming_products .infoBoxContents > tbody > tr:last-child {
		border-bottom: none;
		padding: 5px;
	}
	
	#upcoming_products .infoBoxContents > tbody > tr > td {
		width: 45%;
	}
	
	#upcoming_products .infoBoxContents > tbody > tr > td:nth-of-type(2n+1) {
		float: left;
	}
	
	#upcoming_products .infoBoxContents > tbody > tr > td:nth-of-type(2n+2) {
		float: right;
	}
	
	#upcoming_products .infoBoxContents > tbody > tr > td:nth-of-type(3) {
		clear: both;
	}

	#upcoming_products .infoBoxContents > tbody > tr:last-child > td:nth-of-type(1n+1) {
		float: none;
		width: auto;
		text-align: center;
	}
}

@media only screen and (max-width: 900px) {
	.grid_wrap {
		width: 50%;
	}
	
	#products_list > td > div:nth-of-type(3n + 1) {
		clear: none;
	}
	
	#products_list > td > div:nth-of-type(2n + 1) {
		clear: left;
	}
}

@media only screen and (max-width: 870px) {
	#top_results,
	#top_results > tbody,
	#top_results > tbody > tr,
	#top_results > tbody > tr > td,
	#bottom_results,
	#bottom_results > tbody,
	#bottom_results > tbody > tr,
	#bottom_results > tbody > tr > td {
		display: block;
	}
	
	#top_results td,
	#bottom_results td {
		text-align: center;
	}
	
	#top_results td:first-child {
		border-bottom: none;
	}
	
	#top_results td,
	#bottom_results td {
		padding: 0 0 10px 0;
	}
	
	#bottom_results td:first-child {
		padding-top: 10px;
	}
	
	#bottom_results td:last-child {
		border-top: none;
		padding-bottom: 0;
	}
}

@media only screen and (max-width: 800px) {
	#default_right {
		display: none;
	}
	
	#bestsellers_m_row {
		display: table-row;
	}
	
	.grid_wrap {
		width: 33.3333%;
	}
	
	#products_list > td > div:nth-of-type(2n + 1) {
		clear: none;
	}
	
	#products_list > td > div:nth-of-type(3n + 1) {
		clear: left;
	}
	
	#top_results,
	#bottom_results {
		display: table;
	}
	
	#top_results > tbody,
	#bottom_results > tbody {
		display: table-row-group;
	}
	
	#top_results > tbody > tr,
	#bottom_results > tbody > tr {
		display: table-row;
	}
	
	#top_results > tbody > tr > td,
	#bottom_results > tbody > tr > td {
		display: table-cell;
	}
	
	#top_results td:first-child {
		border-bottom: 1px solid #ccc;
	}
	
	#top_results td:first-child,
	#bottom_results td:first-child {
		padding-bottom: 10px;
		text-align: left;
	}
	
	#top_results td:last-child,
	#bottom_results td:last-child {
		text-align: right;
	}
	
	#bottom_results td:last-child {
		border-top: 1px solid #ccc;
		padding: 10px 2px;
	}
}

@media only screen and (max-width: 700px) {
	#default_left {
		display: none;
	}
	
	#upcoming_products .infoBoxContents > tbody > tr > td.smallText {
		font-size: 16px;
	}
}

@media only screen and (max-width: 575px) {
	#upcoming_products .infoBoxContents > tbody > tr > td:nth-of-type(1n) {
		float: none;
		width: auto;
		border-bottom: 1px solid #ccc;
		padding: 15px 15px 10px;
	}
	
	#upcoming_products .infoBoxContents > tbody > tr > td:nth-of-type(even) {
		background-color: #f7f7f7;
	}
	
	#upcoming_products .infoBoxContents > tbody > tr:last-child > td:last-child {
		border-bottom: none;
	}
	
	#upcoming_products .infoBoxContents > tbody > tr {
		padding: 0;
		border: none;
	}
	
	#upcoming_products .infoBoxContents > tbody > tr > td {
		overflow: hidden;
	}
	
	#upcoming_products .infoBoxContents > tbody > tr > td > table {
		float: left;
		margin-right: 15px;
	}
}

@media only screen and (max-width: 525px) {
	.grid_wrap {
		width: 50%;
	}
	
	#products_list > td > div:nth-of-type(3n + 1) {
		clear: none;
	}
	
	#products_list > td > div:nth-of-type(2n + 1) {
		clear: left;
	}
}

@media only screen and (max-width: 500px) {
	#top_results,
	#top_results > tbody,
	#top_results > tbody > tr,
	#top_results > tbody > tr > td,
	#bottom_results,
	#bottom_results > tbody,
	#bottom_results > tbody > tr,
	#bottom_results > tbody > tr > td {
		display: block;
	}
	
	#top_results td,
	#bottom_results td {
		text-align: center;
	}
	
	#top_results td:first-child,
	#bottom_results td:first-child {
		padding-bottom: 10px;
	}
	
	#bottom_results td:last-child {
		border-top: none;
		padding: 0 2px;
	}
	
	#top_results,
	#top_results > tbody,
	#top_results > tbody > tr,
	#top_results > tbody > tr > td,
	#bottom_results,
	#bottom_results > tbody,
	#bottom_results > tbody > tr,
	#bottom_results > tbody > tr > td {
		display: block;
	}
	
	#top_results td:nth-of-type(1n+1),
	#bottom_results td:nth-of-type(1n+1) {
		text-align: center;
	}
	
	#top_results td:first-child {
		border-bottom: none;
	}
	
	#top_results td,
	#bottom_results td {
		padding: 0 0 10px 0;
	}
	
	#bottom_results td:first-child {
		padding-top: 10px;
	}
	
	#bottom_results td:last-child {
		border-top: none;
		padding-bottom: 0;
	}
}