/*! modern-normalize v3.0.1 | MIT License | https://github.com/sindresorhus/modern-normalize */
/*
Document
========
*/
/**
Use a better box model (opinionated).
*/
*,
::before,
::after {
  box-sizing: border-box;
}

html {
  /* Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3) */
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.15; /* 1. Correct the line height in all browsers. */
  -webkit-text-size-adjust: 100%; /* 2. Prevent adjustments of font size after orientation changes in iOS. */
  tab-size: 4; /* 3. Use a more readable tab size (opinionated). */
}

/*
Sections
========
*/
body {
  margin: 0; /* Remove the margin in all browsers. */
}

/*
Text-level semantics
====================
*/
/**
Add the correct font weight in Chrome and Safari.
*/
b,
strong {
  font-weight: bolder;
}

/**
1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
2. Correct the odd 'em' font sizing in all browsers.
*/
code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
Add the correct font size in all browsers.
*/
small {
  font-size: 80%;
}

/**
Prevent 'sub' and 'sup' elements from affecting the line height in all browsers.
*/
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
Tabular data
============
*/
/**
Correct table border color inheritance in Chrome and Safari. (https://issues.chromium.org/issues/40615503, https://bugs.webkit.org/show_bug.cgi?id=195016)
*/
table {
  border-color: currentcolor;
}

/*
Forms
=====
*/
/**
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
*/
button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
Correct the inability to style clickable types in iOS and Safari.
*/
button,
[type=button],
[type=reset],
[type=submit] {
  -webkit-appearance: button;
}

/**
Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers.
*/
legend {
  padding: 0;
}

/**
Add the correct vertical alignment in Chrome and Firefox.
*/
progress {
  vertical-align: baseline;
}

/**
Correct the cursor style of increment and decrement buttons in Safari.
*/
::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/**
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/
[type=search] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
Remove the inner padding in Chrome and Safari on macOS.
*/
::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to 'inherit' in Safari.
*/
::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Interactive
===========
*/
/*
Add the correct display in Chrome and Safari.
*/
summary {
  display: list-item;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 55px;
  z-index: 50;
  background-color: #fff;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  border-bottom: solid 1px rgba(160, 160, 160, 0.3);
}
.header > a {
  text-transform: uppercase;
  font-size: 16px;
  margin: 0;
  line-height: 1;
  letter-spacing: 2px;
  color: #000;
  flex: 1;
}
.header nav {
  display: none;
}

@media (min-width: 768px) {
  .header > a {
    flex: 0;
    white-space: nowrap;
  }
  .header nav {
    display: flex;
    flex: 1;
  }
  .header nav ul {
    flex: 1;
    list-style: none;
    display: flex;
    text-transform: uppercase;
    font-weight: 400;
    margin: 0;
  }
  .header nav ul li {
    font-size: 13px;
    margin-left: 1rem;
    line-height: 1;
  }
  .header nav ul li:not(:first-child) {
    border-left: 1px solid #ddd;
    padding-left: 1rem;
  }
  .header nav ul li a {
    color: #000;
    letter-spacing: 2px;
    transition: color 200ms;
  }
  .header nav ul li a:hover {
    color: #2ebaae;
  }
  .header button {
    display: none;
  }
}
body {
  font-family: "Inter", Helvetica, sans-serif;
  font-size: 16px;
  background-color: #f4f4f4;
  line-height: 1.5;
}

a {
  text-decoration: none;
}

p {
  margin-top: 0;
}

.no-scroll {
  overflow-y: hidden;
  height: 100vh;
}

main {
  padding-top: 55px;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.mobile-menu {
  position: relative;
}
.mobile-menu ul {
  z-index: 100;
  list-style: none;
  padding: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  flex-direction: column;
  position: fixed;
  top: 55px;
  left: 0;
  background: #fff;
  width: 100%;
  transition: all 0.3s ease-in-out;
  transform: translateY(-10px);
}
.mobile-menu ul a {
  display: block;
  padding: 1rem;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #ddd;
}
.mobile-menu ul a:hover {
  background: #f4f4f4;
}
.mobile-menu.open:after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  opacity: 1;
  z-index: 40;
}
.mobile-menu.open ul {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.product-item {
  padding: 16px;
  line-height: 1.5;
  font-size: 18px;
  border: solid 1px rgba(160, 160, 160, 0.3);
  background-color: white;
}
.product-item a {
  color: #000;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-item .image {
  flex: 0;
}
.product-item-content {
  flex: 1;
}
.product-item .button {
  flex: 0;
  margin-top: 15px;
  border-radius: 4px;
  color: #000;
  background-color: #fed835;
  border: 0;
  width: 100%;
  padding: 10px;
  font-size: 14px;
  cursor: pointer;
  display: block;
  text-align: center;
  line-height: 1;
}
.product-item h3 {
  font-size: 14px;
  letter-spacing: 2px;
  margin: 0 0 15px 0;
  line-height: 1.3;
}
.product-item p {
  font-size: 12px;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .product-item h3 {
    font-size: 15px;
  }
  .product-item p {
    font-size: 13px;
  }
}
.image {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 16px;
}
.image img {
  position: absolute;
  top: 0;
  left: 0;
  object-fit: contain;
  width: 100%;
  height: 100%;
}
.image .image-normal,
.image .image-hover {
  transition: opacity 300ms ease;
}
.image .image-hover {
  opacity: 0;
}
.image:hover .image-normal {
  opacity: 0;
}
.image:hover .image-hover {
  opacity: 1;
}

.product-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 768px) {
  .product-list {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}
.page-product-list-summary {
  margin-bottom: 40px;
  font-size: 18px;
}