html, body, h1, h2, h3, h4, h5, h6, ul, li { margin: 0; padding: 0; line-height: 1; }

h2 { margin-bottom: 0.5em; }

/* Fonts and colours */

* {
  font-family: Helvetica, Arial, sans-serif;
}

a {
  color: #2e8a8e;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

p {
  line-height: 1.15;
}



/* header, layout */

h1 {
  position: absolute;
}

h1 a {
  display: block;
  width: 550px;
  height: 193px;
}

h1 span {
  display: none;
}

html {
  background: url(hep-gradient.png) repeat-x top left rgb(246, 247, 247);
  margin: 0;
  padding: 0;
}

body {
  background: url(hep-top-orig.png) no-repeat top center;
  width: 926px;
  height: 769px;
  margin: 0 auto;
  position: relative; /* so we can position:absolute #hep-basket */
}

body.nobasket {
  background-image: url(hep-top-nobasket.png);
}

#hep-basket {
  position: absolute;
  top: 116px;
  right: 72px;
  width: 250px;
  height: 36px;
  text-decoration: none;
  color: black;
  display: block;
  /* Without this, only the text is clickable in IE6, and either the text or nothing is clickable in IE7. */
  *background: url(/transparent.gif);
}

#hep-basket-inner {
  right: 10px;
  font-size: 16px;
  /* verticall center it in the container */
  position: absolute;
  top: 50%;
  margin-top: -0.5em;
  height: 1em;
}

#hep-basket-tqty {
  font-size: 11px;
}

#hep_accountlinks {
  position: absolute;
  right: 80px;
  top: 160px;
  width: 250px; /* match the basket overlay */
  text-align: center;
}


#wrapper {
  /*
  margin: 193px 35px 0 35px;
  padding: 40px;
  */
  padding: 233px 75px 40px 75px;
}

#main {
  float: right;
  width: 630px;
}

#sidebar {
  float: left;
  margin-left: -45px;
  width: 150px;
}

#clear {
  clear: both;
}


#sidebar h6,
#hep-basket {
  font-size: 13px;
  letter-spacing: 0.5px;
}

h1, h2, h3, h4, h5, h6 {
  color: #062d29;
}

#sidebar h6 {
  text-align: right;
  padding-bottom: 0.5em;
}

#hep-sidebar-info h6 {
  padding-top: 2em;
}

#sidebar,
#hep_accountlinks {
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
}

#sidebar a,
#hep_accountlinks a {
  color: #062d29;
  text-decoration: none;
}


#sidebar a {
  display: block;
  text-align: right;
  padding: 0.5em 0;
}

#sidebar ul {
  margin: 0;
  padding: 0;
}

#sidebar li {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

#sidebar li li {
  font-size: 80%;
}


/* IE6-only: set the margin to half what we want, because it will double it */
* html #sidebar {
  margin-left: -22px;
}



/* general */

h2, h3 { /* we use these almost interchangeably */
  font-size: 1.2em;
}



/* image rollovers for the item page */

.stack .stack-item {
  display: none;
}

.stack-first-item {
  display: block;
}



.emptypage {
  text-align: center;
  font-style: italic;
  margin: 0;
  padding: 3em;
}



/* search results page and category pages */

.productgrid {
  border-spacing: 0;
  width: 100%;
  font-size: 14px;
}

.productgrid th,
.productgrid td {
  padding: 0;
}

.productgrid td {
  text-align: center;
}

.productgrid-prices td {
  padding: 8px 0 4px;
}

.productgrid-extra td {
  vertical-align: top; /* because the height changes when showing "Not in stock" */
  padding-bottom: 35px;
}

.productgrid-images td {
  vertical-align: bottom;
}

.productgrid-images a {
  display: block;
}

.productgrid .price {
  margin: 0;
}

.productgrid img {
  display: block;
  border: none;
}



/* buy widgets on item/$n and category/search page */

.addtobasket select {
  width: 100px;
  text-align: left;
}

.addtobasket input,
.addtobasket select {
  display: block;
  margin: 3px auto;
}



/* item/$n page */

.page-item,
.page-item h2 {
  line-height: 1.1;
}

/* nudge this "by Brand Foo" text closer to the <h2> above it */
.item-brand {
  margin: -0.5em 0 1.5em;
}

.info-right-col form {
  text-align: center;
}

.info-right-col input {
  margin-top: 5px;
}

#info-thumbs {
  text-align: center;
}

#info-thumbs img {
  border: 1px solid;
  margin: 2px 1px;
}

#info-pics img {
  display: block;
  border: 1px solid;
}

#hepzoom img {
  border: 1px solid;
}

#info-pics p {
  margin: 0;
}

.info-left-col {
  float: right;
  text-align: right;
  margin: 0 0 20px 20px;
}

.info-right-col p {
  text-align: justify;
}

.info-page .price {
  font-size: 1.5em;
  font-weight: bold;
  text-align: center;
}

.info-right-col {
  width: 290px;
}

.product-custom-fields {
  font-size: 80%;
  border: none;
  border-collapse: collapse;
}

.product-custom-fields th,
.product-custom-fields td {
  padding: 0.2em 0;
}
.product-custom-fields th {
  text-align: left;
  padding-right: 0.5em;
}

.matching-products,
.related-products {
  clear: both;
  margin: 35px 0;
}

.matching-products h4,
.related-products h4 {
  margin-bottom: 5px;
}

.matching-products img,
.related-products img {
  border: 1px solid;
  display: block;
  margin-bottom: 8px;
}

.related-product {
  display: block;
  float: left;
  width: 100px;
  font-size: 80%;
  text-align: center;
}

.matching-product {
  float: left;
  display: block;
  width: 192px;
  margin-right: 15px;
}

.matching-product span {
  display: block;
  text-align: center;
}

.matching-product a {
  font-size: 80%;
}

.matching-product img {
  float: left;
  margin-right: 5px;
}

.matching-product select {
  width: 80px;
}

.matching-products .clear {
  clear: both;
}



/* basket page */

.basket-table {
  vertical-align: middle;
}

.basket-table td {
  padding-right: 1em;
}

.basket-table-header th {
  text-align: left;
  font-weight: normal;
}

.basket-table img {
  border: 1px solid;
}



/* login page */

.loginpage {
  text-align: center;
  width: 60%;
  margin: 0 auto;
}

.loginpage hr {
  margin: 1.5em 0;
}

.loginpage p {
  margin: 0.5em 0;
}

.loginpage table {
  margin: 0 auto;
}

.loginpage th {
  width: 8em;
}

.loginpage .submit {
  margin: 1em 0 0;
}



/* page number links in search results */

.splitpage-links {
  text-align: right;
}

.split-page-list-pagenums {
  float: left;
}

.split-page-list-pagenums a {
  padding: 0.5em;
}



/* general form stuff */

h3 { /* used on the Account page */
  margin: 0 0 0.5em 0;
}

.formfieldgrid {
  padding: 0;
  border-collapse: collapse;
  font-size: 11.5px;
}

.formfieldgrid th,
.formfieldgrid td {
  padding: 2px 0;
}

.formfieldgrid th {
  text-align: right;
  font-weight: normal;
  width: 90px;
  padding-right: 5px;
}

p.formfieldgridsubmit {
  margin: 0 0 2em 95px;
}

.formfieldgrid td {
  vertical-align: top;
}

p.buttons {
  text-align: center;
}

p.buttons input {
  margin: 0 1em;
}

p.formerror {
  background: #ffcccc;
  padding: 0.55em 1em 0.45em;
  border: 1px solid red;
  margin-top: 0;
}

span.fielderror {
  background: #ffcccc;
  padding: 1px 3px;
  margin: 0 0 0 0.5em;
}



/* precheckout */

ul.precheckout-sections {
  margin: 1em 0;
  padding-left: 2em;
}

ul.precheckout-sections li {
  margin: 0.5em 0;
}

div.precheckout-section {
  padding: 0 0 0 3em;
}

.precheckout-section form {
  margin-top: 1em;
}



/* checkout page */

.chform .formsection {
  padding-left: 2em;
  margin-bottom: 2em;
}

.chform h6 {
  font-size: 13px;
  margin: 0 0 1em -2em;
}

#checkoutitems {
  width: 80%;
  border-collapse: collapse;
}

.checkout-price {
  text-align: right;
}

.checkout-row-delivery td {
  padding-bottom: 0.5em;
}

.checkout-row-grandtotal td {
  padding-top: 0.5em;
  font-size: 1.2em;
}


/* order page */

.order-addresses {
  border-collapse: collapse;
}

.order-addresses td {
  padding: 0;
}

.order-addresses b {
  display: block;
  margin: 0.7em 0 0.3em;
}

.order-products-table {
  width: 100%;
  margin: 1em 0;
}

.order-products-table th {
  text-align: left;
  font-weight: bold;
}

.order-products-table .pricecell {
  text-align: right;
}

.order-products-table .order-total th {
  text-align: right;
}

.order-products-table-header th {
  padding-bottom: 0.4em;
}

.first-order-total-row th,
.first-order-total-row td {
  padding-top: 0.4em;
}


/* account page */

.account-orders th {
  text-align: left;
}

.account-orders td {
  padding-right: 1em;
}


/* front page */

#hep-front {
  font-size: 11px;
  width: 648px;
}

#hep-front td,
#hep-front th {
  /* 1px should become 0, but changing it isn't trivial */
  padding: 0 1px;
}

#hep-front img,
#hep-front a {
  display: block;
  color: #062D29;
}

#hep-front img {
  border: none;
}

#hep-front a {
  position: relative;
  border: 1px solid;
}

#hep-front a:hover {
  text-decoration: none;
}

#hep-front div {
  position: absolute;
  background: url(/black60pc.png) repeat;
  color: white !important;
  padding: 0.25em 0.4em;
  right: 0;
}

.hep-rpname,
.hep-pname {
  left: 0;
  right: 0;
}

.hep-rpname,
.hep-featured .price {
  bottom: 0;
}

#hep-featured-main {
  font-size: 16px;
}


/* IE6 quirks.  not sure why it needs these offsets */
#hep-front div { _right: 2px; }
.hep-rpname, .hep-featured .price { _bottom: 3px; }
#hep-featured-main .price  { _bottom: 2px; }

/* IE6 doesn't understand left:0 and right:0 together */
#hep-featured-main .hep-pname  { _width: 240px; }
.hep-featured-small .hep-pname { _width: 112px; }
.hep-front-random .hep-rpname  { _width: 112px; }

.hep-featured-small {
  vertical-align: bottom;
}

#hep-front .price {
  font-size: 1.5em;
}

#hep-blurb {
  vertical-align: top;
}

#hep-blurb p {
  font-size: 16px;
  text-align: justify;
  margin: 0 0 1em 0;
}

.hep-front-category {
  font-size: 14px;
  padding-top: 15px !important;
}

.hep-front-category a:hover {
  text-decoration: underline !important;
}


.hep-front-category a {
  border: none !important;
}



.page-brand h5 {
  font-size: 1.2em;
  margin: 1.5em 0 0;
}

.page-brand table {
  margin: 1em 0;
}

.page-brand th, .page-brand td {
  text-align: left;
  padding: 0.1em 1.5em 0 0;
}
