/*---
/*--- CSS Variables
/*--- https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties
/*----------------------------- */
:root {
  /* colours */
  --dark-bg: #333;
  --strong-accent: #55b198;
  --accent-bg: #637f78;
  --off-green: #637f78;
  --hover-bg: hsl(165, 12.4%, 20.3%);

  --light-border: #eee;

  --card-bg: #eee;
  --card-text: black;

  /* variables */
  --logo-img-width: 9rem;
  --logo-margin: 1rem;
  --logo-width: calc(var(--logo-img-width) + var(--logo-margin));
  --title-letter-spacing: 0.2rem;
}
/*---
/*--- Reset
/*----------------------------- */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
  display: block;
}
audio,
canvas,
video {
  display: inline-block;
  *display: inline;
  *zoom: 1;
}
audio:not([controls]) {
  display: none;
  height: 0;
}
[hidden] {
  display: none;
}
html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}
html,
button,
input,
select,
textarea {
  font-family: sans-serif;
}
body {
  margin: 0;
}
a:focus {
  outline: thin dotted;
}
a:active,
a:hover {
  outline: 0;
}
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}
h2 {
  font-size: 1.5em;
  margin: 0.83em 0;
}
h3 {
  font-size: 1.17em;
  margin: 1em 0;
}
h4 {
  font-size: 1em;
  margin: 1.33em 0;
}
h5 {
  font-size: 0.83em;
  margin: 1.67em 0;
}
h6 {
  font-size: 0.67em;
  margin: 2.33em 0;
}
abbr[title] {
  border-bottom: 1px dotted;
}
b,
strong {
  font-weight: bold;
}
blockquote {
  margin: 1em 40px;
}
dfn {
  font-style: italic;
}
hr {
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  height: 0;
}
mark {
  background: #ff0;
  color: #000;
}
p,
pre {
  margin: 1em 0;
}
code,
kbd,
pre,
samp {
  font-family: monospace, serif;
  _font-family: "courier new", monospace;
  font-size: 1em;
}
pre {
  white-space: pre;
  white-space: pre-wrap;
  word-wrap: break-word;
}
q {
  quotes: none;
}
q:before,
q:after {
  content: "";
  content: none;
}
small {
  font-size: 80%;
}
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sup {
  top: -0.5em;
}
sub {
  bottom: -0.25em;
}
dl,
menu,
ol,
ul {
  margin: 1em 0;
}
dd {
  margin: 0 0 0 40px;
}
menu,
ol,
ul {
  padding: 0px;
}
nav ul,
nav ol {
  list-style: none;
  list-style-image: none;
}
img {
  border: 0;
  -ms-interpolation-mode: bicubic;
}
svg:not(:root) {
  overflow: hidden;
}
figure {
  margin: 0;
}
form {
  margin: 0;
}
fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
}
legend {
  border: 0;
  padding: 0;
  white-space: normal;
  *margin-left: -7px;
}
button,
input,
select,
textarea {
  font-size: 100%;
  margin: 0;
  vertical-align: baseline;
  *vertical-align: middle;
}
button,
input {
  line-height: normal;
}
button,
select {
  text-transform: none;
}
button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button;
  cursor: pointer;
  *overflow: visible;
}
button[disabled],
html input[disabled] {
  cursor: default;
}
input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box;
  padding: 0;
  *height: 13px;
  *width: 13px;
}
input[type="search"] {
  -webkit-appearance: textfield;
  -moz-box-sizing: content-box;
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
}
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}
button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}
textarea {
  overflow: auto;
  vertical-align: top;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

*,
html,
body {
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

/*---
/*--- Global Defaults
/*----------------------------- */

.clearfix {
  clear: both;
}

.clearfix:before,
.clearfix:after {
  content: ".";
  display: block;
  height: 0;
  overflow: hidden;
}
.clearfix:after {
  clear: both;
}
.clearfix {
  zoom: 1;
} /* IE < 8 */

.hidden {
  display: none;
}

img {
  max-width: 100%;
}

/*---
/*--- Typography
/*----------------------------- */
body {
  font-family: "Open Sans", Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.6rem;
}

h1,
h2,
h3,
h4,
label {
  font-weight: 300;
  letter-spacing: var(--title-letter-spacing);
  line-height: 2rem;
  text-transform: uppercase;
}

a {
  color: black;
  text-decoration: none;
}

nav a {
  color: white;
  text-decoration: none;
}

li > ol,
li > ul {
  margin-top: 0px;
}

/*---
/*--- Forms
/*----------------------------- */
label {
  font-weight: 600;
}

input,
textarea,
select {
  -webkit-border-radius: 0;
  background: white;
  box-sizing: border-box;
  border: 1px solid #c3c3c3;
  border-radius: 0;
  padding: 0.5rem;
  width: 100%;
}

/* Hide the browser default incrementer box on number inputs (such as quantity) */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

button,
.button,
input[type="submit"] {
  background: var(--accent-bg);
  border: 1px solid var(--dark-bg);
  box-shadow: none;
  box-sizing: border-box;
  color: white;
  display: block;
  letter-spacing: var(--title-letter-spacing);
  outline: none;
  padding: 1rem;
  transition: background-color 300ms ease-in-out;
  text-transform: uppercase;
  text-align: center;
  width: 100%;
}

.button a {
  color: white;
}

button:hover,
.button:hover,
input[type="submit"]:hover {
  background-color: var(--strong-accent);
}

select {
  box-sizing: border-box;
  letter-spacing: var(--title-letter-spacing);
  padding: 0.5rem;
  text-transform: capitalize;
}

.ekmpscart-wrapper.ekmpscart-empty
  .ekmpscart-checkout-button.ekmpscart-checkout-button-continue {
  background-color: #637f78 !important;
}

/*---
/*--- Scaffolding
/*----------------------------- */
.container {
  box-sizing: border-box;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0.5%;
  width: 100%;
}

main.main-content {
  flex: 1 0 auto;
  margin-top: 4rem;
}

.panel {
  background-color: #eee;
  border-bottom: 1px solid var(--light-border);
  box-sizing: border-box;
  padding: 1rem 2rem;
  margin-bottom: 1rem;
}

.panel p:last-of-type {
  margin-bottom: 0;
}

.panel a {
  color: var(--dark-bg);
}

/*---
/*--- Header
/*----------------------------- */
/* --- Desktop and mobile nav --- */
header a {
  color: white;
  text-decoration: none;
}

header button {
  border: none;
  background: none;
  color: white;
  padding: 0;
}

.logo a {
  display: block;
  height: auto;
  font-size: 0;
  position: relative;
  width: 100%;
  z-index: 5;
}

.logo img {
  height: auto;
  width: 100%;
}

.mobile-header-content,
.mobile-nav {
  display: none;
}

.headerbanner {
  background: var(--hover-bg);
  box-sizing: border-box;
  color: #ffffff;
  padding: 5px 0 5px 250px;
  text-align: center;
  width: 100%;
}

.headerbanner h3 {
  margin: 0;
}

/* --- Desktop nav specific --- */
.top-header {
  background: var(--dark-bg);
}

.top-header .logo {
  position: absolute;
  margin-right: var(--logo-margin);
  width: var(--logo-width);
}

.top-header {
  color: white;
  display: flex;
  font-size: 0.9rem;
  justify-content: space-between;
}

.top-header a {
  color: white;
  text-decoration: none;
}

.top-header .top-header-content {
  display: flex;
  margin-left: var(--logo-width);
  justify-content: space-between;
}

.top-header .phone-email {
  align-items: center;
  display: flex;
}

.top-header .webpage-nav {
  align-items: center;
  display: flex;
  margin: 0;
}

.top-header .webpage-nav li a {
  box-sizing: border-box;
  display: block;
  padding: 0.5rem 1rem;
}

.top-header .webpage-nav li a:hover {
  background: #4d4d4d;
}

.nav-and-search-box {
  background: var(--off-green);
}

.category-nav {
  box-sizing: border-box;
  display: flex;
  flex: 1 0 auto;
  margin: 0 0 0 var(--logo-width);
}

.category-nav > li:hover {
  background: var(--hover-bg);
}

.category-nav li > a {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  height: 100%;
  padding: 0.75rem 1rem;
}

.category-nav li.spacer {
  flex: 1 0 auto;
}

.category-nav > li.spacer:hover {
  background: none;
}

.category-nav li.search-icon,
.category-nav li.cart {
  align-items: center;
  display: flex;
  margin: 0;
}

.category-nav li.search-icon button {
  box-sizing: border-box;
  padding: 0.75rem;
}

.category-nav li.search-icon.active {
  background: var(--hover-bg);
}

.category-nav li.search-icon:hover button {
  background: none;
}

.cart {
  position: relative;
}

.category-nav li.cart > a {
  margin: 0;
}

.cart .badge {
  align-items: center;
  background: #55b198; /* to be replaced with accent-bg */
  border-radius: 10px;
  color: white;
  display: flex;
  float: right;
  font-size: 0.9rem;
  height: 20px;
  justify-content: center;
  position: absolute;
  right: 0;
  top: 2px;
  width: 20px;
  z-index: 9;
}

.search-box-container {
  display: none;
  background: var(--hover-bg);
  margin-bottom: -2rem;
}

.search-box-container.active {
  display: block;
  width: 100%;
  z-index: 3;
}

/* -- don't knock the page down when you open the search box on the homepage */
.search-box-container.active {
  position: absolute;
  top: 90px;
}

.search-box {
  box-sizing: border-box;
  padding: 0.45rem;
  margin-left: var(--logo-width);
}

.search-box form {
  display: flex;
}

.search-box form input.ekmps-search-field {
  flex: 1 0 auto;
  width: 80%;
}

.search-box form input.ekmps-search-button {
  border: 1px solid #c3c3c3;
  border-left: none;
}

/*---
/*--- Footer
/*----------------------------- */
footer {
  background: var(--hover-bg);
  border-top: 1px solid black;
  color: white;
  padding-top: 0.5rem;
}

footer a {
  color: white;
  text-decoration: none;
}

footer .main-footer {
  display: flex;
  font-size: 13px;
  line-height: 20px;
  padding-bottom: 0.5rem;
}
footer .main-footer h3 {
  margin: 0px;
}

footer .main-footer .info {
  text-align: right;
  width: 25%;
}

footer .main-footer .info ul {
  margin-top: 2px;
}

footer .main-footer .payment {
  width: 25%;
}

footer .main-footer .contact {
  margin: 0 2%;
  text-align: center;
  width: 46%;
}

footer .main-footer .contact p {
  margin: 5px 0;
}

footer .main-footer .contact p:first-of-type {
  margin-top: 2px;
}

footer .sosumi {
  background: black;
  font-size: 0.8rem;
  padding: 0.5rem 0;
  text-align: center;
}

footer .sosumi .container {
  box-sizing: border-box;
  font-size: 12px;
  line-height: 18px;
  padding: 0 1%;
}

/*---
/*--- Homepage
/*----------------------------- */
.hero-banner {
  background-image: url("https://files.ekmcdn.com/frameless/resources/design/banner.jpg");
  background-position: 60% 0;
  background-size: cover;
  padding: 14rem 0;
  position: relative;
  margin-top: -4rem;
  z-index: -1;
}

/*.hero-banner .container {*/
/*    text-align: center;*/
/*}*/

.hero-banner h1 {
  background: rgba(255, 255, 255, 0.6);
  box-sizing: border-box;
  display: inline;
  line-height: 2rem;
  padding: 1rem;
}

.category-grid {
  display: grid;
  grid-column-gap: 1rem;
  grid-row-gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 1rem;
}

.category-card {
  border: 1px solid white;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 300ms ease-in-out;
}

.category-card .text-content-container {
  align-items: center;
  background: none;
  display: flex;
  height: 100%;
  justify-content: center;
  padding: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.category-card .text-content-container .text-content {
  background: rgba(255, 255, 255, 0.8);
  box-sizing: border-box;
  color: black;
  display: block;
  letter-spacing: var(--title-letter-spacing);
  padding: 1rem 0.5rem;
  text-align: center;
  text-transform: uppercase;
  transition: background-color 300ms ease-in-out, color 300ms ease-in-out;
  width: 100%;
}

.category-card:hover .text-content-container .text-content {
  background-color: var(--accent-bg);
  color: white;
}

.category-card img {
  display: block;
  transition: border-color 300ms ease-in-out;
  width: 100%;
}

.category-card .button {
  border: none;
}

.category-card:hover {
  border-color: var(--accent-bg);
}

@media screen and (max-width: 1200px) {
  :root {
    --logo-img-width: 8rem;
  }

  .top-header .logo {
    margin-left: -0.5%;
  }

  .desktop-nav .top-header .webpage-nav li a {
    padding: 0.5rem 0.75rem;
  }

  .desktop-nav .category-nav li > a {
    padding: 0.75rem;
  }
  .top-header .top-header-content {
    margin-left: var(--logo-width);
  }

  .category-nav > li {
    margin: 0;
  }
}

@media screen and (max-width: 1024px) {
  .headerbanner {
    padding: 5px;
    line-height: 20px;
  }
  .top-header-content {
    font-size: 12px;
  }
  .desktop-nav .top-header .webpage-nav li a {
    padding: 0.25rem 0.5rem;
  }
  .category-nav {
    font-size: 14px;
  }
  .category-nav .search-icon,
  .category-nav .cart {
    font-size: 15px;
  }
  .desktop-nav .category-nav li > a {
    padding: 0.75rem 0.5rem;
    text-align: center;
  }
  .search-box-container.active {
    top: 82px;
  }
  main.main-content {
    box-sizing: border-box;
    padding: 0 1%;
    margin-top: 3rem;
  }
  footer .main-footer {
    flex-flow: wrap;
  }
  footer .main-footer .info {
    order: 2;
    margin: 0 1%;
    text-align: center;
    width: 48%;
  }

  footer .main-footer .contact {
    order: 1;
    margin: 0 1%;
    width: 48%;
  }

  footer .main-footer .payment {
    order: 3;
    text-align: center;
    width: 100%;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-card img {
    height: auto;
  }

  .category-card .button {
    padding: 0.5rem;
  }
}

@media screen and (max-width: 850px) {
  button:hover {
    background-color: initial;
  }

  .desktop-nav {
    display: none;
  }
  .mobile-header-content {
    background: var(--dark-bg);
    display: flex;
    font-size: 1.6rem;
  }
  .search-box-container.active {
    position: relative;
    top: unset;
  }

  .mobile-header-content .logo {
    width: var(--logo-img-width);
  }

  .mobile-header-content .logo a {
    display: flex;
  }

  .mobile-header-content .logo img {
    height: 100%;
  }

  .mobile-header-cont {
    display: flex;
    flex-flow: row wrap;
    flex: 1;
  }
  .mobile-header-cont .phone-email {
    width: 90%;
    margin: 0 auto;
  }
  .mobile-header-cont .phone-email ul {
    font-size: 12px;
    display: flex;
    flex-flow: row;
    justify-content: space-around;
  }
  .mobile-header-content .mobile-nav-buttons {
    align-items: center;
    display: flex;
    flex: 1 0 auto;
    justify-content: space-around;
  }

  .mobile-header-content .mobile-nav-buttons > div {
    align-items: center;
    display: flex;
    flex: 1 0 auto;
    height: 100%;
    justify-content: center;
    width: 30%;
  }

  .mobile-header-content .mobile-nav-buttons > div.active {
    background: var(--accent-bg);
  }

  .mobile-header-content .mobile-nav-buttons .cart > a {
    position: relative;
  }

  .mobile-header-content .mobile-nav-buttons .badge {
    right: -10px;
    top: -10px;
  }

  .mobile-nav {
    display: none;
    background: var(--accent-bg);
    box-sizing: border-box;
    height: 100%;
    padding: 0 2rem 2rem;
    position: fixed;
    right: 0;
    text-align: right;
    top: 0;
    width: calc(100% - var(--logo-img-width));
    z-index: 99;
  }

  .mobile-nav.active {
    display: block;
  }

  .mobile-nav button {
    font-size: 1.6rem;
    padding: 1rem 0;
    margin: 1rem 0;
    text-align: right;
  }

  .mobile-nav li {
    padding: 0.5rem 0;
  }

  .search-box-container {
    margin-bottom: 0;
  }

  .search-box-container .search-box {
    background: var(--accent-bg);
    margin-left: 0;
  }

  .search-box-container .search-box input.ekmps-search-field {
    width: 70%;
  }

  .search-box-container .search-box form input.ekmps-search-button {
    width: 30%;
  }

  main.main-content {
    margin-top: 1rem;
  }

  .hero-banner .container {
    padding: 0;
  }

  .hero-banner h1 {
    display: block;
    text-align: center;
  }

  footer .main-footer {
    flex-direction: column;
  }

  footer .main-footer .info,
  footer .main-footer .payment,
  footer .main-footer .contact {
    border-bottom: 1px solid #161c1a;
    margin: 0 1rem;
    padding: 5px;
    text-align: center;
    width: 92%;
  }
  footer .main-footer .payment {
    border-bottom: none;
  }
}
@media screen and (max-width: 600px) {
  .mobile-header-cont .phone-email {
    display: none;
  }
}

/* --- IE specific overrides --- */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  .button,
  button,
  input[type="submit"] {
    background: #637f78;
    color: white;
  }

  .button a,
  button a,
  input[type="submit"] {
    color: white;
  }

  header {
    background: #333333;
  }

  .top-header .top-header-content {
    margin-left: 200px;
  }

  .category-nav {
    margin-left: 170px;
  }

  .category-grid {
    display: flex;
    flex-wrap: wrap;
  }

  .category-grid .category-card {
    margin: 1rem 1%;
    width: 31%;
  }

  .category-grid .category-card .text-content {
    background-color: #55b198;
  }

  section.text-content {
    margin: 0 1%;
    width: 97%;
  }

  footer {
    background: #333333;
  }
}