/*  
Theme Name: HPTech
Theme URI: http://sww.co.nz/
Description: Custom theme by Stellar Web Works
Version: 1.0
Author: Aidan Curran
Author URI: http://sww.co.nz/

colour Pallate:
#00928C - turquise green - headings, backgrounds
#00428E - blue           - nav background, link text
#4B4B4B - charcoal       - body text
*/

html,body {
	margin:0;
	padding:0;
   background: #ffffff;
   text-align: center;
   font-family: Century Gothic,CenturyGothic,AppleGothic,Avant Garde,Avantgarde,sans-serif;
	font-family: "trebuchet ms", trebuchet, arial, helvetica, sans-serif;
   font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
   font-family : "Times New Roman", Times, serif;
	font-family: "Lucida Grande", "Lucida Sans Unicode", Arial, Verdana, sans-serif;
	font-family: 'Open Sans', sans-serif;
   color: #4B4B4B;
}
body {
   /*
   12px	0.750em	75.0%	   9pt
   13px	0.813em	81.3%	   10pt
   14px	0.875em	87.5%	   11pt
   15px	0.938em	93.8%	   11pt
   16px	1.000em	100.0%	12pt
   17px	1.063em	106.3%	13pt
   18px	1.125em	112.5%	14pt
   19px	1.188em	118.8%	14pt
   20px	1.250em	125.0%	15pt
   21px	1.313em	131.3%	16pt
   22px	1.375em	137.5%	17pt
   23px	1.438em	143.8%	17pt
   24px	1.500em	150.0%	18pt
   */
}
h1, h2 {
   color: #00928C;
}
h3, h4 {
   color: #00428E;
}
h1 {
   font-size: 36px;
   font-family: Century Gothic,CenturyGothic,AppleGothic,Avant Garde,Avantgarde,sans-serif;
   font-weight: normal;
}
h2 {
   font-size: 30px;
   font-family: Century Gothic,CenturyGothic,AppleGothic,Avant Garde,Avantgarde,sans-serif;
   font-weight: normal;
}
h2.subheading {
   font-size: 20px;
   font-weight: 600;
	font-family: 'Open Sans', sans-serif;
   margin-top: -10px;
}
h3 {
   font-size: 22px;
}
h4 {
   font-size: 18px;
}
a {
   color: #00428E;
   text-decoration: none;
}
a:hover {
   color: #0177FF;
   text-decoration: underline;
}
h1 a, h2 a {
   text-decoration: none;
} 
img {
   border: 0;
}
div {
   text-align: left;
}
ul {
   list-style-type: none;
   padding: 0px;
   margin: 7px 0 7px 15px;
}
ul li {
   background-image: url(images/bullet.png);
   background-repeat: no-repeat;
   background-position: 0px 7px;
   line-height: 1.571em;
   padding-left: 18px;
   margin: 5px 0;
}
td {
   vertical-align:top;
}
blockquote {
	-moz-border-radius: 8px;
	-khtml-border-radius: 8px;
	-webkit-border-radius: 8px;
	border-radius: 8px;
   background: #e9e9e9 url(images/quote.png) 8px 4px no-repeat;
   padding: 8px 8px 8px 46px;
}
blockquote p {
   margin: 0;
}
#header {
   min-height: 130px;
   color: #fff;
/*   background: #00428E;*/
   background: #FFFFFF;
   position: relative;
}
#header .border {

   min-height: 23px;

   /* gradient css generated using: http://colorzilla.com/gradient-editor/#00428e+0,00928c+50,00428e+100 */
   background: #00778D; /* Old browsers */
   background: -moz-linear-gradient(left, #00428e 0%, #00928c 50%, #00428e 100%); /* FF3.6+ */
   background: -webkit-gradient(linear, left top, right top, color-stop(0%,#00428e), color-stop(50%,#00928c), color-stop(100%,#00428e)); /* Chrome,Safari4+ */
   background: -webkit-linear-gradient(left, #00428e 0%,#00928c 50%,#00428e 100%); /* Chrome10+,Safari5.1+ */
   background: -o-linear-gradient(left, #00428e 0%,#00928c 50%,#00428e 100%); /* Opera 11.10+ */
   background: -ms-linear-gradient(left, #00428e 0%,#00928c 50%,#00428e 100%); /* IE10+ */
   background: linear-gradient(to right, #00428e 0%,#00928c 50%,#00428e 100%); /* W3C */
   filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00428e', endColorstr='#00428e',GradientType=1 ); /* IE6-9 */   
}

#header .overlay, #footernav .overlay {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: url(images/crosshatch.png) left top repeat;
   z-index: 1;
}
#header .contents {
   height: 139px;
   position: relative;
   z-index: 3;
}
#header #logo {
   display: block;
   float: left;
/*   padding: 20px 20px 0 20px;*/
   padding: 36px 20px 0 20px;
   max-height: 90px;
}
#header #headertext {
   float: right;
   padding: 0;
}
#header #headertext p {
   display: inline-block;
   margin:0;
   padding: 14px 40px 14px 24px;
/*   color: #B4B4B4;*/
   color: #888;
}
#header #headertext p a {
/*   color: #B4B4B4;*/
   color: #888;
}
#header #headertext .phone {
   background: url(images/icon-phone.png) left center no-repeat;
   
}
#header #headertext .email {
   background: url(images/icon-email.png) left center no-repeat;
}
#header #headertext .email a {
   text-decoration: none;
}

#page, div.contents {
   margin: 0 auto;
}
#page {
   background: white;
   padding-bottom: 50px;
}

#nav {
   line-height: 30px;
   overflow: hidden;
   float: right;
   text-align: right;
   position: absolute;
   right: 0;
   bottom: 16px;
}
#nav a {
   margin: 0 15px;
   color: #00428E;
   text-decoration:none;
   font-weight: normal;
   font-size: 16px;
   display: inline-block;
   padding: 0;
   border-top: 2px solid #FFF;
   border-bottom: 2px solid #FFF;
   text-transform: lowercase;
}
#nav a:hover, #nav li.current_page_item a, #nav li.current-page-ancestor a {
   border-color: #00928C;
   color: #00928C;
}
#nav li.current_page_item a, #nav li.current-page-ancestor a {
   font-weight: bold;
}
#nav ul, #subnav ul, #footernav ul {
   list-style: none;
   margin: 0;
   padding: 0;
}
#nav li, #subnav li, #footernav li {
   display: inline;
   list-style: none;
   margin: 0;
   padding: 0;
   background: none;
}
#subnav {
   text-align: center;
   position: relative;
   z-index: 2;

}
#subnav a {
   color: #ccc;
   text-decoration:none;
   font-weight: normal;
   font-size: 16px;
   display: inline-block;
   padding: 8px 12px;
   margin: 0 20px;
}
#subnav a:hover, #subnav li.current_page_item a, #subnav li.current-page-ancestor a {
   color: #fff;
}
#subnav li.current_page_item a, #subnav li.current-page-ancestor a {
   font-weight: bold;
}
#maincontent {
   overflow: hidden;
   padding: 20px 0;
}
.clear {
   clear:both;
}
.centered {
   text-align:center;
}
div.divider {
   clear: both;
   margin: 50px 0 30px 0;
   border-bottom: 2px dotted #ccc;
}
div.padding {
   padding: 40px 0 0 0;
   height: 1px;
}

#slideshowband {
/*   background-color: #DEEBEA;*/
}
#slideshow {
   padding: 10px;
   margin: 0 auto;
}
.easingslider {
   margin: 0 auto;
}

.panelgroup {
   overflow: hidden;
   padding-bottom: 25px;
}
.panelgroup .panel {
   float: left;
   width: 23%;
   margin-left: 2.6%;
   position: relative;
}
.panelgroup .panel1 {
   margin-left: 0;
}
.panelgroup .panel .head {
   position: absolute;
   width: 100%;
   height: 100%;
   height: 30px;
   line-height: 30px;
   font-size: 1.429em;
   z-index: 10;
}
.panelgroup .panel .head a {
   color: #fff;
   text-decoration: none;
   text-shadow: 0px 0px 10px #000;
   font-size: 40px;
   line-height: 80px;
   display: block;
   width: 100%;
   height: 100%;
   text-align: center;
}
.panelgroup .panel .picture {
   text-align: center;
   height: 128px;
   line-height: 128px;
   border: 2px solid #DADADA;
}
.panelgroup .panel .picture img {
   vertical-align: middle;
}
.panelgroup .panel .picture a img:hover, .panelgroup .panel .head:hover + .picture a img  {
   opacity: 0.9;
}
.panelgroup .panel .body {
   min-height: 130px;
   background-color: #DADADA;
   color: #000;
   padding: 20px 15px;
   overflow: hidden;
}
.panelgroup .panel li {
   margin: 0;
}
.panelgroup .panel ul {
   margin: 0 0 0 10px;
}
.panelgroup .panel .more {
   text-align: center;
   margin-top: 15px;
}

/* machinery page - product boxes */
div.machine {
   border: 2px solid #ccc;
   background-color: #f6f6f6;
   margin-bottom: 50px;
   padding: 25px;
}
div.machine h3 {
   margin: 0 0 20px 0;
   background-color:  #00428E;
   color: #fff;
   padding: 3px 25px;
   margin: -27px -27px 0 -27px;
}
div.machine h3 em {
   padding-left: 30px;
   font-size: 18px;
   line-height: 22px;
}

.more a {
   text-decoration:none;
   text-transform:uppercase;
   padding: 4px 16px;
   color: #fff;
   background: #666;
   font-weight: bold;
}
.more a:hover {
   background: #888;
}

.leftcol {
   float: left;
   width: 40%;
   padding-right: 5%;
}
.rightcol {
   float: left;
   width: 55%;
}

#footernav {
   background-color: #00428E;
   background-color: #00928C;
   color: #fff;
   min-height: 250px;
   position: relative;
}
#footernav div.contents {
   position: relative;
   z-index: 2;
}
#footernav div#footerinfo {
   width: 200px;
   position: absolute;
   top: 30px;
   right: 0;
}
#footernav div#footerinfo p {
   padding-left: 35px;
   margin: 10px 0;
}
#footernav div#footerinfo p.phone {
   padding-left: 25px;
   font-size: 20px;
   font-weight: 600;
}
#footernav a {
   color: #e6e6e6;
   text-decoration:none;
   font-weight: 600;
   font-size: 18px;
   display: inline-block;
   padding: 10px 20px;
}
#footernav a:hover, #footernav li.current_page_item a, #footernav li.current-page-ancestor a {
   color: #fff;
}
#footernav div.contents > ul {
   text-align: center;
   padding-right: 200px;
}
#footernav li {
   display: inline-block;
   vertical-align: top;
   padding: 20px;
   text-align: left;
}
#footernav li a {
   padding: 10px 0;
}
#footernav ul.sub-menu li {
   display: block;
   padding: 0;
   line-height: 1.5em;
}
#footernav ul.sub-menu li a {
   font-size: 16px;
   font-weight: normal;
   padding: 0;
}


#footer {
   margin-top: 5px;
   padding: 10px;
   text-align: center;
   font-size: 0.786em;
   color: #999999;
}
#footer a {
   text-decoration: none;
   color: #999999;
}
#footer a:hover {
   text-decoration: underline;
   color: #666666;
}
img.leftalign {
   display: block;
   float: left;
   text-align: left;
   margin: 0 25px 5px 0;
}
img.rightalign {
   display: block;
   float: right;
   text-align: right;
   margin: 0 0 5px 15px;
}
img.centeralign {
   display: block;
   margin: 10px auto;
   text-align: center;
}
table.labels {
   width:50%;
   margin:10px auto;
}
table.labels th {
   text-align: right;
   padding-right: 30px;
}
div.rounded {
	-moz-border-radius: 8px;
	-khtml-border-radius: 8px;
	-webkit-border-radius: 8px;
	border-radius: 8px;
}
div.shaddow {
	-moz-box-shadow: rgba(200,200,200,1) 0 4px 18px;
	-webkit-box-shadow: rgba(200,200,200,1) 0 4px 18px;
	-khtml-box-shadow: rgba(200,200,200,1) 0 4px 18px;
	box-shadow: rgba(200,200,200,1) 0 4px 18px;
}
div.opacity {
   opacity: 0.5;
   -moz-opacity: 0.5;
   filter:alpha(opacity=50);   
}

label {
   display: inline-block;
   min-width: 100px;
   font-weight: bold;
}

p.calltoaction {
   text-align: center;
   font-weight:600;
   font-size: 18px;
   margin-top: 50px;
}
p.calltoaction a {
   display: inline-block;
   background: #00428E url(images/arrow.png) 99% center no-repeat;
   color: #fff;
   text-decoration: none;
   padding: 5px 28px 5px 12px;
   border-radius: 3px;
	box-shadow: rgba(100,100,100,1) 3px 3px 9px;
}
p.calltoaction a:hover {
   background-color: #0062aE;
}

/* consumables featured products */
div.productbox {
   width: 45.5%;
   margin: 20px 1%;
   float: left;
   padding: 10px 1%;
   border: 1px solid #ccc;
   border-radius: 10px;
   overflow: hidden;
}

/* WP Common Styles */
.editLink {
   text-align: center;
   padding: 5px 0 15px 0;
}
.editLink a, a.editLink {
   background: #e0e0e0;
   color: #777777;
   font-size: 10px; 
   border: 1px solid #999999;
   text-decoration: none;
   padding: 3px 5px;
}
.editLink a:hover, a.editLink:hover {
   background: #eeeeee;
   border: 1px solid #333333;
   color: #000000;
}
.postmetadata {
   color: #999;
   font-size: 10px;
   margin: 2px 0;
}
img.aligncenter, div.aligncenter {
   display: block;
   margin: 20px auto;
}
img.alignright, div.alignright {
   display: block;
   float: right;
   margin: 10px 0px 5px 15px;
}
img.alignleft, div.alignleft {
   display: block;
   float: left;
   margin: 10px 20px 5px 0px;
}
img.aligncenter {
   text-align: center;
}
img.alignright {
   text-align: right;
}
img.alignleft {
   text-align: left;
}
.wp-caption-text,.wp-caption-dd {
   margin: 0;
   font-weight: bold;
   font-size: smaller;
   text-align: center;
}
.more-link {
   display:block;
   text-align:right;
}
.linklove {
   display:none;
}
/* Comments */
#comments {
   margin-top: 100px;
   color: #333;
   background: #f3f3f3;
   padding: 10px 20px;
   clear:both;
}
#comments .navigation {
	padding: 0 0 18px 0;
}
h3#comments-title,
h3#reply-title {
	color: #000;
	font-size: 20px;
	font-weight: bold;
	margin-bottom: 0;
}
h3#comments-title {
	padding-bottom: 24px;
}
.commentlist {
	list-style: none;
	margin: 0;
   padding: 0;
}
.commentlist li.comment {
	border-bottom: 1px solid #e7e7e7;
	line-height: 24px;
	margin: 0 0 24px 0;
	padding: 0 0 0 56px;
	position: relative;
}
.commentlist li:last-child {
	border-bottom: none;
	margin-bottom: 0;
}
#comments .comment-body ul,
#comments .comment-body ol {
	margin-bottom: 18px;
}
#comments .comment-body p:last-child {
	margin-bottom: 6px;
}
#comments .comment-body blockquote p:last-child {
	margin-bottom: 24px;
}
.commentlist ol {
	list-style: decimal;
}
.commentlist .avatar {
	position: absolute;
	top: 4px;
	left: 0;
}
.comment-author {
}
.comment-author cite {
	color: #000;
	font-style: normal;
	font-weight: bold;
}
.comment-author .says {
	font-style: italic;
}
.comment-meta {
	font-size: 12px;
	margin: 0 0 18px 0;
}
.comment-meta a:link,
.comment-meta a:visited {
	color: #888;
	text-decoration: none;
}
.comment-meta a:active,
.comment-meta a:hover {
	color: #ff4b33;
}
.commentlist .even {
}
.commentlist .bypostauthor {
}
.reply {
	font-size: 12px;
	padding: 0 0 24px 0;
}
.reply a,
a.comment-edit-link {
	color: #888;
}
.reply a:hover,
a.comment-edit-link:hover {
	color: #ff4b33;
}
.commentlist .children {
	list-style: none;
	margin: 0;
}
.commentlist .children li {
	border: none;
	margin: 0;
}
.nopassword,
.nocomments {
	display: none;
}
#comments .pingback {
	border-bottom: 1px solid #e7e7e7;
	margin-bottom: 18px;
	padding-bottom: 18px;
}
.commentlist li.comment+li.pingback {
	margin-top: -6px;
}
#comments .pingback p {
	color: #888;
	display: block;
	font-size: 12px;
	line-height: 18px;
	margin: 0;
}
#comments .pingback .url {
	font-size: 13px;
	font-style: italic;
}
/* Comments form */
input[type=submit] {
	color: #333;
}
#respond {
	border-top: 1px solid #e7e7e7;
	margin: 24px 0;
	overflow: hidden;
	position: relative;
}
#respond p {
	margin: 0;
}
#respond .comment-notes {
	margin-bottom: 1em;
   font-style: italic;
   color: #999;
}
.form-allowed-tags {
	line-height: 1em;
}
.children #respond {
	margin: 0 48px 0 0;
}
h3#reply-title {
	margin: 18px 0;
}
#comments-list #respond {
	margin: 0 0 18px 0;
}
#comments-list ul #respond {
	margin: 0;
}
#cancel-comment-reply-link {
	font-size: 12px;
	font-weight: normal;
	line-height: 18px;
}
#respond .required {
	display:none;
}
#respond label {
	color: #888;
	font-size: 12px;
   width: 80px;
   display: block;
   float: left;
   text-align: right;
   padding-right: 10px;
}
#respond input {
	margin: 0 0 9px;
	width: 500px;
}
#respond textarea {
	width: 500px;
}
#respond .form-allowed-tags {
	color: #888;
	font-size: 12px;
	line-height: 18px;
}
#respond .form-allowed-tags code {
	font-size: 11px;
}
#respond .form-submit {
	margin: 12px 0;
}
#respond .form-submit input {
	font-size: 14px;
	width: auto;
}

/* Contact Form 7 */
div.wpcf7 {
   clear: both;
   overflow: hidden;
   background-color: #e6e6e6;
   border-radius: 5px;
   width: 464px;
   margin: 0 auto !important;
}
div.wpcf7 form {
   padding: 0 30px;
   margin: 0;
}
div.wpcf7-response-output {
   background: #fff;
}
span.wpcf7-not-valid-tip {
   font-size: 0.750em !important;
}
input.wpcf7-submit {
   background: #00928C;
   color: #fff;
   font-size: 1.1em;
   border-radius: 3px;
   border: 1px solid #555;
   padding: 5px 20px;
}
input.wpcf7-submit:hover {
   background: #007B76;
}
input.wpcf7-text, input.wpcf7-captchar, textarea.wpcf7-textarea {
   border: 1px solid #aaa;
   width: 400px;   
   height: 26px;
}
textarea.wpcf7-textarea {
   height: 180px;
}
input.wpcf7-text:hover, input.wpcf7-captchar:hover, textarea.wpcf7-textarea:hover {
   border: 1px solid #999;
}
input.wpcf7-text:focus, input.wpcf7-captchar:focus, textarea.wpcf7-textarea:focus {
   border: 1px solid #666;
}
div.wpcf7 div.wpcf7-validation-errors {
    border: 2px solid #f00000;
}


/* WooCommerce */
body.woocommerce #page {
   overflow: hidden;
}
body.woocommerce #page #maincontent {
   width: 70%;
   float: left;
}
body.woocommerce #sidebar {
   width: 25%;
   float: left;
   margin-left: 5%;
   margin-top: 50px;
}
.woocommerce-pagination ul li, ul.tabs li, .woocommerce  ul li {
   background: none;
   padding-left: 0;
}
#sidebar li.widget {
   background: none;
   border: 1px solid #ccc;
   padding: 0 15px 5px 15px;
} 
#sidebar li.widget h2 {
   font-size: 18px;
} 

div.product_meta > span {
   display: block;
}
.woocommerce-page #maincontent input#submit.alt, .woocommerce-page #maincontent a.button.alt, .woocommerce-page #maincontent button.alt, .woocommerce-page #maincontent input.button.alt
{
    background-color: #004998;
}
.product-category mark {
   background-color: transparent;
   font-weight: normal;
   color: #666;
   font-size: smaller;
}
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea {
    border: 1px solid #ccc;
    border-radius: 3px;
}
.woocommerce form .form-row input.input-text {
    height: 30px;
}
.woocommerce form .form-row textarea {
    min-height: 100px;
}
body.woocommerce-page div.product div.images img {
    width: auto;
    margin: 0 auto;
}
body.woocommerce-page ul.products li.product a img {
   width: auto;
   margin: 0 auto;
   max-height: 170px;
}
body.woocommerce-page ul.products li.type-product {
   height: 330px;
}

body.woocommerce-page ul.products li.product a.button {
   position: absolute;
   bottom: 20px;
}
.woocommerce ul.products li.product a.price:hover {
   text-decoration: underline;
}
body.woocommerce-page ul.products li.product .price {
   position: absolute;
   bottom: 52px;
}
body.woocommerce-page ul.products li.product-category {
   border: 2px solid #dadada;
   margin-right: 3.5%;
   width: 21.5%;
}
body.woocommerce-page ul.products li.product h3 {
   line-height: 1.3em;
}
body.woocommerce-page ul.products li.product-category h3 {
   text-align: center;
   color: #000;
   background-color: #dadada;
   height: 35px;
}
body.woocommerce-page ul.products li.last {
    margin-right: 0;
}
.widget_shopping_cart_content p.buttons a.button {
   margin-bottom:3px;
}

body.woocommerce-page a.added_to_cart {
    display: block;
    text-align: right;
}


/* ------------------------------------------------- Responsive Elements ------------------------------------------------- */

/* defaults: computer monitors, tablets in landscape, standard and large screens (typically wider than 1024px), old browsers */
   #page, div.contents, #slideshow { width:90%; max-width: 1100px; min-width: 320px;}
   #mobile-menu-btn { display: none; }

   img {max-width: 100%; height: auto !important; }
   .maincontent img.alignleft, .maincontent img.alignright { max-width:50%; height:auto; }
   .responsive50 img, .responsive50 .wp-caption { max-width:50%; height:auto; }
   .responsive33 img, .responsive33 .wp-caption { max-width:33%; height:auto; }
   .responsive .wp-caption img, .responsive50 .wp-caption img, .responsive33 .wp-caption img { max-width:100%; }
   
/* MEDIUM-WIDE SCREEN */
/* width 750px - 1000px */
@media screen and (max-width: 1000px) {
/*   #header #logo { width: 200px; height: auto; padding: 15px 15px 0 15px;}*/
   #header #logo { width: 200px; height: auto; padding: 35px 15px 0 15px;}
   #nav { bottom: 10px;}
   #nav a, #subnav a { font-size: 15px; }
   #slideshow { padding: 10px; }
   
   .panelgroup .panel {
      width: 46%;
      margin: 0 2% 25px 2%;
   }
   .panelgroup .panel .body {
      min-height: 100px;   
   }


   #footernav div#footerinfo { width: 175px; }
   #footernav div.contents > ul { padding-right: 175px; }
   #footernav li { padding: 10px 10px; }
   #footernav a { font-size: 17px; }
   #footernav a, #footernav ul.sub-menu li a { font-size: 15px; }
   

   div.productbox {
      min-height: 290px;
   }
   div.productbox img {
      max-width: 120px;
      height: auto !important;
      margin-top: 70px;
      margin-bottom: 70px;
   }
   
   /* WooCommerce */
   body.woocommerce-page ul.products li.product a img {
      max-height: 140px;
   }
   body.woocommerce-page ul.products li.type-product {
      height: 310px;
   }
   body.woocommerce-page ul.products li.product-category {
      width: 44%;
   }   
   body.woocommerce-page ul.products li.product h3 {
       font-size: 14px;
   }
}

/* MEDIUM-SMALL SCREEN */
/* width 500px - 750px */
@media screen and (max-width: 750px) {

   html,body { font-size: 14px; }
   #page, div.contents, #slideshow { width:95%; }
   #header #logo { padding-left: 0; padding-right: 10px;}
   #header #headertext {  }
   #header #headertext p { display: block; padding: 7px 0 7px 24px;}
   #header #headertext .phone {  }
   #header #headertext .email {  }


   #nav a, #subnav a { font-size: 14px; margin: 0 10px;}
   .leftcol, .rightcol { float: none; width: auto;}

   #slideshow { padding: 0; }

   div.block { padding: 10px 20px; }

   input.wpcf7-text, input.wpcf7-captchar, textarea.wpcf7-textarea { width: 300px;}

   #footernav { min-height: 200px; }
   #footernav div#footerinfo { display: none; }
   #footernav div.contents > ul { padding: 20px 0; }
   #footernav li { padding: 10px 8px; }
   #footernav a, #footernav ul.sub-menu li a { font-size: 14px; }
   
   div.productbox {
      width: auto;
      margin: 20px 0;
      float: none;
      padding: 10px 10px;
      min-height: 0;
   }
   div.productbox img {
      max-width: 150px;
      height: auto !important;
      margin-top: 0;
      margin-bottom: 0;
   }   
   

   /* WooCommerce */
   body.woocommerce #page #maincontent {
       width: 60%;
   }
   body.woocommerce #sidebar {
       width: 35%;
   }
}

/* SMALLEST SCREEN */
/* width 320px - 500px */
@media screen and (max-width: 500px) {	

   #page, div.contents, #slideshow { width:97%; }
   #header { text-align: center; }
/*   #header #logo { float:none; margin: 0 auto; padding: 10px 0 0 0; }*/
   #header #logo { float:none; margin: 0 auto; padding: 15px 0 10px 0; }
   #header #headertext { float: none; text-align: center; padding: 0; width: 160px; margin: 0 auto; }
   #header #headertext p { display: inline-block; padding: 3px 0 3px 24px; }
   #header .contents { width: 100%; }

   #mobile-menu-btn { 
      display: block;
      width: 32px;
      height: 32px;
      background: url(images/menu-icon-gn.png) 0 0 no-repeat;
      position: absolute;
      top: 4px;
      right: 20px;
      cursor: pointer;
      z-index: 10;
   }
   #nav { min-height: 40px; position: relative; float: none; bottom: 35px; }
   #nav ul { display:none; }
   #nav ul.open {  
     width: 100%;  
     display: block;  
     height: auto;  
     padding-top: 40px;
     margin-top:0;
   }  
   #nav li {  
     width: auto;  
     float: none;  
     position: relative;
   }  
   #nav li a {  
     display: block;
     margin: 0;
     padding: 3px 0px;
     border-bottom: 1px solid #d0d0d0;  
     border-top: 0;
     text-align: left;  
     width: 100%;  
     text-indent: 25px;  
     line-height: 30px;
     background-color: #e6e6e6;
     color: #777;
   }
   #nav a:hover, #nav li.current_page_item a, #nav li.current-page-ancestor a {
      color: #00428E;
      border-color: #d0d0d0;
      background-color: #d6d6d6;
   }
   #subnav a {
      margin: 0 5px;
      padding: 8px 6px;
   }
   #maincontent { padding: 10px 10px; }

   div.block div.image img { float: none !important; display:block; margin: 30px auto; }   
   

   .panelgroup .panel {
      float: none;
      width: 280px;
      margin: 10px auto;
      padding: 10px;
   }
   .panelgroup .panel .body {
      min-height: 60px;   
   }

   #footernav ul { width: 150px; margin: 0 auto; }
   #footernav li { display: block; padding: 0; line-height: 1.1em; }
   #footernav ul.sub-menu { margin-left: 20px; }

   div.productbox img {
      max-width: 120px;
      height: auto !important;
      margin-top: 30px;
      margin-bottom: 30px;
   }
      
   /* Contact Form 7 */
   div.wpcf7 { margin: 10px auto !important; width: 300px; }
   div.wpcf7 form { padding: 0 25px; }
   input.wpcf7-text, input.wpcf7-captchar, textarea.wpcf7-textarea { width: 246px; height: 20px; }
   textarea.wpcf7-textarea { height: 120px; }
   

   /* WooCommerce */
   body.woocommerce #page #maincontent {
       width: auto;
       float: none;
   }
   body.woocommerce #sidebar {
       width: auto;
       float: none;
       margin-left: 0;
   }
}


