/* reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* Real CSS */
html, body {
    background: white;
    color: black;

    margin: 0;
    padding: 0;

    font-family: Tahoma, Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    margin-bottom: 1em;
    margin-top: 1em;
}

h1 { font-size: 1.6em; }
h2 { font-size: 1.4em; }
h3 { font-size: 1.3em; }
h4 { font-size: 1.2em; }

.row {
    overflow: hidden;
}

.clear-fix {
    clear: both;
}

.col-9-12, .col-6-12, .col-4-12, .col-3-12, .col-1-12 {
    float: left;
}

.col-9-12 {
    width: calc((100% / 12) * 9);
}

.col-6-12 {
    width: calc((100% / 12) * 6);
}

.col-4-12 {
    width: calc((100% / 12) * 4);
}

.col-3-12 {
    width: calc(((100% / 12) * 3));
}

.col-1-12 {
    width: calc(100% / 12);
}

.layout__center {
    width: 960px;
    margin: 0 auto;
}

.footer {
    padding-top: 1em;
    border-top: 1px solid #cccece;
    background: #f0f3f3;
    padding-bottom: 1em;
    overflow: hidden;
    text-align: center;
    line-height: 1.3em;
    font-size: 0.9em;
}

.footer__social a {
    color: inherit;
    line-height: 1.4em;
}

.header {
    background: #f0f3f3;
    border-bottom: 1px solid #cccece;
    padding-bottom: 1em;
}

.content {
    padding-top: 1em;
    padding-bottom: 1em;
}

.category, .product {
    padding: 0.5em;
    background: white;
    text-align: center;
    transition all .2s ease-in-out;
    box-sizing: border-box;
    min-height: 230px;
}

.product--details {
    text-align: left;
}

.category:hover, .product:hover {
    outline: 1px solid #cccece;
    box-shadow: 0 4px 5px rgba(75, 75, 75, 0.6);
    transform: scale(1.1);
}

.product--details:hover {
    transform: none;
    box-shadow: none;
    outline: none;
}

.category a, .product a {
    text-decoration: none;
    color: inherit;
}

.category h2, .product h2 {
    font-size: 1.2em;
    font-weight: 400;
    height: 3em;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category__image, .product__image {
    max-width: 100%;
    max-height: 170px;
}

.product--details .product__image {
    max-width: 80%;
    max-height: initial;
}

.product__gallery {
    text-align: center;
}

.product__gallery > img {
    margin-bottom: 1em;
}

.product__details {
    text-align: left;
}

table {
    border-collapse: collapse;
    table-layout: fixed;
    width: 100%;
    margin-top: 1em;
}

table th {
    background: #f0f3f3;
    font-weight: bold;
}

table th, table td {
    border: 1px solid #cccece;
    padding: 0.2em 0.5em;
    text-align: left;
}

.product__order {
    width: 100%;
    box-sizing: border-box;
    margin-top: 1em;
    background: green;
    color: white;
    padding: 0.6em 1em;
    text-align: center;
    font-size: 1.2em;
    font-weight: 400;
    text-transform: uppercase;
}

.search {
    padding: 0;
    display: table;
    table-layout: fixed;
    width: auto;
    float: right;
}

.search__input, .search__button {
    border: none;
    margin: 0;
    padding: 0.2em 0.5em;
    height: 100%;
    display: table-cell;
    font-size: 1.2em;
    border: 1px solid green;
}

.search__button {
    color: white;
    background: green;
}

.breadcrumbs {
    display: block;
    margin-top: 1em;
    margin-bottom: 1em;
}

.breadcrumbs a {
    color: green;
    margin-right: 0.5em;
}

.breadcrumbs li::after {
    content: '>';
}

.breadcrumbs li.last::after {
    content: '';
}

.breadcrumbs li {
    display: inline-block;
}

.pager {
    clear: both;
    float: right;
}

.pager__item {
    padding: 0.2em 0.4em;
    background: white;
    border: 1px solid #cccece;
    display: inline-block;
}

.pager__item--active {
    background: #f0f3f3;
}

.pager__item a {
    text-decoration: none;
    color: green;
}

@media screen and (max-width: 640px) {
    .layout__center {
        width: calc(100% - 2em);
        padding-left: 1em;
        padding-right: 1em;
    }

    .col-3-12, .col-4-12, .col-6-12, .col-1-12 {
        width: 100%;
        box-sizing: border-box;
    }

    .search {
	text-align: center;
        float: none;
	width: 80%;
	margin: 0 auto;
        margin-top: 1em;
    }

    .header__logo {
        text-align: center;
    }

    .header__logo img {
        max-width: 100%;
    }
}
