/* Reset CSS */

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: 16px;
  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;
}

/* website CSS */

.header-wrapper {
  display: grid;
  grid-template-columns: auto minmax(480px, 1440px) auto;
  grid-template-rows: 100px;
}

.header-content {
  grid-column: 2;
  display: grid;
  grid-template-columns: auto auto auto;
  font-family: "Barlow Semi Condensed", sans-serif;
  white-space: nowrap;
}

.header-logo-wrap {
  position: relative;
  left: 100px;
}

.header-logo {
  grid-column: 1;
  display: flex;
  align-items: center;
  background-image: url("/img/logo-final.svg");
  background-position: 0 center;
  background-size: contain;
  background-repeat: no-repeat;
  background-origin: content-box;
  padding: 5px 0 0 0;
  margin-left: 20px;
}

.header-logo h1 {
  font-size: 2.5rem;
}

.header-logo h2 {
  font-size: 1rem;
}

.contacts {
  grid-column: 3;
  margin-right: 20px;
  text-align: left;
  display: flex;
  justify-content: right;
  align-items: end;
}

.header-menu a:first-child {
  border-left-width: 1px;
}

.header-menu a:hover {
  color: #00a3a3;
  font-weight: bold;
}

.product-wrapper {
  display: grid;
  grid-template-columns: auto minmax(480px, 1440px) auto;
  grid-template-rows: minmax(500px, min(700px, calc(100vh - 100px)));
}

.product-wrapper-2 {
  grid-column: 2 / 4;
  display: grid;
  grid-template-columns: 300px auto;
  grid-template-rows: subgrid;
}

.product-wrapper-3 {
  grid-column: 2;
  display: grid;
  grid-template-columns: auto;
  grid-template-rows: subgrid;
  position: relative;
}

.product-wrapper-4 {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 20px 0;
  overflow: hidden;
}

.product-next,
.product-prev {
  display: block;
  position: absolute;
  top: 50%;
  height: 60px;
  width: 30px;
  margin-top: -30px;
  background-color: white;
  border-style: solid;
  border-color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

.product-next {
  right: 0;
  border-width: 1px 0 1px 1px;
}

.product-prev {
  left: 0;
  border-width: 1px 1px 1px 0;
}

.product-next:hover {
  color: #00a3a3;
  font-weight: bold;
}

.product-wrapper-5 {
  white-space: nowrap;
  margin: 10px 0;
  user-select: none;
}

.product-item {
  scroll-snap-align: start;
  display: inline-block;
  height: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  margin-right: 10px;
}

.company-intro,
.product-categories-body {
  font-family: "Lato", sans-serif;
  margin-bottom: 20px;
  line-height: 1.2;
  font-size: 0.9rem;
}
.company-intro p {
  margin-bottom: 5px;
  padding-right: 10px;
}

.product-sidebar-wrapper {
  grid-column: 1;
  margin-left: 20px;
  margin-top: 20px;
  display: grid;
  grid-template-rows: 2fr 1fr;
}

.company {
  grid-row: 1;
}

.product-catagories {
  grid-row: 2;
  margin-bottom: 10px;
}

.product-catagories a {
  font-family: "Lato", sans-serif;
  display: block;
  text-decoration: none;
  color: inherit;
  margin-bottom: 5px;
}

.product-catagories a:hover,
.product-catagories a.selected,
.contact-body a:hover,
.company-intro a:hover {
  font-weight: bold;
}

.product-header,
.company-header {
  font-size: 1.5rem;
  font-family: "Barlow Semi Condensed", sans-serif;
  margin-bottom: 10px;
  color: #00a3a3;
}

.contact-header {
  font-family: "Barlow Semi Condensed", sans-serif;
  margin-bottom: 5px;
  color: #00a3a3;
}

.contact-body {
  font-size: 0.8rem;
  line-height: 1.2;
  font-family: "Lato", sans-serif;
  color: inherit;
}

.contact-body:first-of-type {
  margin-bottom: 5px;
}

.contact-body a,
.company-intro a {
  color: inherit;
  text-decoration: none;
}

.company-quote {
  margin-top: 10px;
}

.footer {
  text-align: center;
  font-size: 0.7rem;
  margin-top: 10px;
  font-family: "Lato", sans-serif;
  color: #595959;
}

.contact-body a[target="_blank"]:after,
.company-intro a[target="_blank"]:after {
  content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAQElEQVR42qXKwQkAIAxDUUdxtO6/RBQkQZvSi8I/pL4BoGw/XPkh4XigPmsUgh0626AjRsgxHTkUThsG2T/sIlzdTsp52kSS1wAAAABJRU5ErkJggg==);
  margin: 0 3px 0 5px;
}

.product-catagories-mobile {
  display: none;
}

.footer-mobile {
  display: none;
}

@media only screen and (max-width: 600px) {
  .header-wrapper {
    display: block;
    padding: 10px 10px 20px 10px;
  }

  .header-content {
    display: block;
  }

  .header-logo h1 {
    font-size: 2rem;
  }

  .header-logo-wrap {
    position: static;
    left: auto;
  }

  .header-logo {
    display: block;
    height: 60px;
    padding-left: 70px;
    background-origin: border-box;
    margin-left: 0;
  }

  .contacts {
    display: none;
  }

  .product-wrapper {
    display: block;
  }

  .product-wrapper-2 {
    display: block;
  }

  .product-sidebar-wrapper {
    margin: 10px;
    display: block;
  }

  .product-catagories {
    display: none;
  }

  .product-wrapper-3 {
    display: block;
    height: 100vw;
  }

  .product-wrapper-4 {
    margin: 0;
    overflow: auto;
    scroll-behavior: smooth;
    scroll-snap-type: both mandatory;
  }

  .product-item {
    margin: 0;
  }

  .product-next,
  .product-prev {
    display: none;
  }

  .company-header,
  .product-header {
    font-family: "Lato", sans-serif;
    font-size: 1.2rem;
  }

  .product-catagories-mobile {
    margin: 10px;
    display: block;
  }
  .company-quote {
    text-align: center;
  }

  .company-quote a {
    display: inline-block;
    background-color: #00a3a3;
    color: #eeeeee;
    border-radius: 5px;
    padding: 5px 10px;
  }

  .company-intro a[target="_blank"]:after {
    content: none;
  }

  .footer {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 15px;
    font-family: "Lato", sans-serif;
    color: #595959;
  }
  .footer p {
    margin-bottom: 5px;
  }
  .footer a {
    color: inherit;
    font-weight: bold;
  }
  .footer-mobile {
    display: block;
  }
}
