@import url("./layout.css");
@import url("./content.css");
@import url("./products.css");	/* Imported for every page because products can appear anywhere */
@import url("./admin.css");
@import url("./notifications.css");


/* Specific page elements */
/* ---------------------- */

#body
{
	background: url("../img/body_borders.png") repeat-y;

	overflow: hidden;	/* Wrap contained floats (Proper browsers) */
	min-height: 1px;	/* Wrap contained floats (IE) */
}


/* Header */
/* ------ */

#header	{ padding-top: 10px; clear: both; }

#account-info
{
    margin: 0 0 2px;
    padding: 5px 10px 5px 10px;
    float: right;
    color: #c2d3c3;
    
    background-color: #217049;
    
    -webkit-border-bottom-right-radius: 10px;
    -moz-border-radius-bottomright: 10px;
    border-bottom-right-radius: 10px;
    
    -webkit-border-top-left-radius: 10px;
    -moz-border-radius-topleft: 10px;
    border-top-left-radius: 10px;
}
#account-links a    { color: white; }

#site-title
{
	margin: 0 0 -28px 6px;
	/* Overlaps with main navigation bar */
	float: left;
	position: relative;
	z-index: 1;
}
#payment-logos		{ margin: 0; padding: 0; list-style: none; list-style-image: none; text-align: right; }
#payment-logos li	{ display: inline; padding: 0 5px; }
#payment-logos img	{ vertical-align: middle; }

#main-navigation
{
	clear: both;
	overflow: hidden;	/* Wrap contained floats */

	margin: 0;
	padding: 0 0 0 240px;
	list-style: none;
	list-style-image: none;
	background: #217049 url("../img/main_navigation_gradient.png") bottom left repeat-x;
}
#main-navigation li
{
	float: left;
	padding: 6px 11px 6px 9px;
	background: url("../img/main_navigation_divider.png") center right no-repeat;
}
#main-navigation li.last	{ background: transparent; }
#main-navigation a,
#main-navigation span		{ color: white; font-weight: bold; text-decoration: none; }


/* Main content area */
/* ----------------- */

#content
{
	padding: 0 20px 20px;
	width: 600px;
}

/* Pull content out to edges of content region */
#content .fit-to-edge,
#content .pagination,
#content .grid-list,
#content .grid-header	{ margin-left: -20px; margin-right: -20px; }

#content table.grid-list    { margin-right: -21px; }

/* Overlap sidebars */
#product-filter, #page-header
{
	margin: 0 -21px;
	position: relative;
	z-index: 1;
}

#product-filter
{
	background: #c2d3c3 url("../img/filter_bar_corner.png") bottom right no-repeat;
	padding: 4px 10px;
	overflow: hidden;	/* Wrap contents */
}

#product-filter-search			{ float: left; margin: 0; }
#product-filter-manufacturer	{ float: right; margin: 0; }
#product-filter-search *        { vertical-align: middle; }
#product-filter a				{ color: black; }

#page-header
{
	background: #135c35;
	color: white;
	padding: 5px 10px;
	margin-bottom: -1px; /* Swallows top borders of following elements */
}

#page-header h2,
#page-header .breadcrumbs
{
	color: white;
	margin: 0;
	padding: 0;
	font: bold 1.3em "Trebuchet MS", sans-serif;
}
#page-header .breadcrumbs li
{
	display: inline;
	padding: 0 5px 0 10px;
	background: url("../img/bullet_white.png") center left no-repeat;
}
#page-header .breadcrumbs li.first	{ padding-left: 0; background: transparent; }
#page-header a	{ color: white; }

#page-header .more-links,
.grid-header .more-links
{
	list-style: none;
	list-style-image: none;
	padding: 0;
	margin: 0;
	float: right;
	line-height: 1.66;
}

#page-header .more-links a,
.grid-header .more-links a
{
	padding-right: 6px;
	background: 100% 50% no-repeat;
}
#page-header .more-links a	{ background-image: url("../img/bullet_white.png"); }
.grid-header .more-links a	{ background-image: url("../img/bullet.png"); }


/* Sidebars */
/* -------- */

.sidebar
{
	border: solid #c2d3c3;
	border-width: 0 1px;
	padding: 0 9px;	/* Allows for border width */	
}

.sidebar h3	{ color: black; font: bold 1em/1.5 Verdana, sans-serif; }

.sidebar .section
{
	padding: 0 0 10px;
	margin: 10px 0;
	border-bottom: 1px dotted #d8d8d8;
}


.sidebar .continue	{ text-align: right; }


/* Left sidebar */
/* ------------ */


/* Top-tier category navigation */
/* We use <h4> for marking selected category headings and <span> for marking selected subcategories */

#category-navigation
{
	margin: 0 -9px;
	padding: 0;
	list-style: none;
	list-style-image: none;

	border-top: 5px solid #c2d3c3;	/* Links to background colour of search bar */
	background: #f6f6f6 url("../img/left_sidebar_fade.png") bottom left repeat-x;
	padding-bottom: 112px; /* Puts fade below content */
}

#category-navigation a,
#category-navigation span
{ 
	display: block;
}

#category-navigation a,
#category-navigation h4
{
	color: #135c35;
	font-weight: normal;
	margin: 0;
	border-bottom: 1px solid #c2d3c3;
	background: url("../img/bullet.png") 96% 50% no-repeat;
	padding: 2px 19px 2px 9px;	/* Allows for parent borders */
	text-decoration: none;
}

/* Second-tier category navigation */
#category-navigation ol
{
	padding: 5px 0;
	margin: 0;
	list-style: none;
	list-style-image: none;
	border-bottom: 1px solid #c2d3c3;
}

#category-navigation ol a,
#category-navigation ol span
{
	border: 0;
	padding-left: 19px;
	background: url("../img/bullet.png") 9px 50% no-repeat;
	color: #626262;
}

/* Active navigation items */
#category-navigation .selected h4	{ background: #135c35; padding-right: 10px; margin: 0 -1px; color: white; }
#category-navigation .selected h4 a	{ color: white; background: transparent; padding: 0; border: 0; }
#category-navigation .selected span	{ text-decoration: underline; }

/* Third-tier category navigation (phew) */

#category-navigation ol ol				{ padding: 0; border: 0; }
#category-navigation .selected ol h4
{
	background: transparent;
	padding-right: 9px;
	font-style: italic;
	color: black;
}


/* Drag content following the navigation kicking and screaming up into the fade area */
#category-navigation + .section { margin-top: -96px; border-top: 0; }

#subscribe-blurb    { text-align: center; }
#subscribe-blurb p  { margin: 0; }
#subscribe-email    { width: 95%; margin: 2px 0; }
#subscribe-email.with-placeholder   { text-align: center; }



/* Right sidebar */
/* ------------- */

#sidebar-right
{
	background: url("../img/right_sidebar_fade.png") top left repeat-x;
	padding-bottom: 10px; /* Ensures suitable division between last sidebar section and bottom of sidebar */
}

/* Shopping cart sidebar display */
#shopping-cart-items	{ margin: 0 0 1em; }
#shopping-cart-items td	{ padding: 0.1em 0.33em; }
#shopping-cart-items a	{ color: black; }
#shopping-cart-total	{ text-align: right; }
#shopping-cart-view		{ text-align: center; margin: 0; }


#register-blurb
{
    margin: 20px 0;
    text-align: center;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    padding: 5px 10px;
    background-color: #217049;
}
#register-blurb p   { margin: 0; }
#register-blurb a   { color: white; }
#register-blurb h3  { margin-top: 0; color: #c2d3c3; }


/* Page footer content */
/* ------------------- */

#footer
{
	color: white;
	background-color: #135c35;
	padding: 10px;
	clear: both;

	/* Gives a slight overlap into content, to cover trailing borders */
	margin-top: -1px;
	position: relative;
	z-index: 1;
}
#footer a	{ color: white; }

#store-contact-info     { text-align: center; }
#store-contact-info b   { padding: 0 0.5em; } /* Info dividers */

