* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", Helvetica, Arial, sans-serif;
  color: #1a1a1a;
  background: #ffffff;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Top bar */
.top-bar {
  background: #eeeeee;
  border-bottom: 1px solid #d0d0d0;
  font-size: 13px;
  color: #444444;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 32px;
}

.top-links a {
  margin-left: 24px;
}

.top-bar a:hover {
  color: #14285c;
  text-decoration: underline;
}

/* Header */
.site-header {
  background: #ffffff;
  color: #14285c;
  border-bottom: 1px solid #d0d0d0;
}

.header-inner {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 32px;
}

.logo img {
  display: block;
  height: 48px;
}

.nav {
  display: flex;
  margin-left: 32px;
}

.nav a {
  padding: 8px 16px;
  margin-right: 8px;
  font-size: 15px;
}

.nav a:hover,
.nav a.held {
  background: #14285c;
  color: #ffffff;
}

.search {
  display: flex;
  margin-left: auto;
}

.search input {
  width: 280px;
  padding: 8px 10px;
  border: 1px solid #b0b0b0;
  border-radius: 0;
  font: inherit;
  font-size: 14px;
}

.search button {
  padding: 8px 16px;
  border: 1px solid #14285c;
  border-radius: 0;
  background: #14285c;
  color: #ffffff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

/* Content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px 80px;
}

.page-title {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 24px;
}

.page-text {
  color: #555555;
}

.shop {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.sidebar h2 {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  padding-bottom: 8px;
  border-bottom: 1px solid #d0d0d0;
}

.filters {
  list-style: none;
}

.filter {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 7px 10px;
  border: none;
  border-radius: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  color: #1a1a1a;
  text-align: left;
  cursor: pointer;
}

.filter span {
  color: #999999;
}

.filter:hover {
  background: #f2f4f9;
}

.filter.active {
  background: #14285c;
  color: #ffffff;
}

.filter.active span {
  color: #c8cfdf;
}

.text-link {
  color: #14285c;
  text-decoration: underline;
}

.catalogue {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.item {
  border: 1px solid #d0d0d0;
}

.item:hover {
  border-color: #14285c;
}

.item-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #f0f0f0;
  border-bottom: 1px solid #d0d0d0;
}

.item-name {
  padding: 12px 14px 0;
  font-size: 15px;
}

.item-price {
  padding: 2px 14px 14px;
  font-size: 14px;
  color: #555555;
}

/* Contact form */
.contact-form {
  max-width: 560px;
  margin-top: 28px;
}

.contact-form label {
  display: block;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid #b0b0b0;
  border-radius: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #14285c;
}

.contact-form select {
  background: #ffffff;
}

.contact-form [hidden] {
  display: none;
}

.choice {
  margin-bottom: 18px;
  border: none;
}

.choice legend {
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
}

.choice label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 24px 0 0;
  font-weight: 400;
  cursor: pointer;
}

.contact-form .choice input {
  display: inline-block;
  width: auto;
  margin: 0;
  accent-color: #14285c;
}

.contact-form .button {
  margin-top: 4px;
  font: inherit;
  cursor: pointer;
}

.form-status {
  max-width: 560px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #c8cfdf;
  background: #f2f4f9;
  font-size: 14px;
}

/* Order popup */
.modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.5);
}

.modal[hidden] {
  display: none;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  background: #ffffff;
}

.modal-box h2 {
  font-size: 22px;
  font-weight: 600;
}

.modal-product {
  margin-top: 4px;
  font-size: 14px;
  color: #555555;
}

.modal-box .contact-form {
  margin-top: 20px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  padding: 0 6px;
  border: none;
  background: none;
  font-size: 28px;
  line-height: 1;
  color: #777777;
  cursor: pointer;
}

.modal-close:hover {
  color: #14285c;
}

button.button {
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

/* Product page */
.breadcrumb {
  font-size: 13px;
  color: #777777;
  margin-bottom: 20px;
}

.breadcrumb a:hover {
  color: #14285c;
  text-decoration: underline;
}

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
}

.product-image img {
  display: block;
  width: 100%;
  border: 1px solid #d0d0d0;
}

.thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.thumb {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 1px solid #d0d0d0;
  border-radius: 0;
  background: #f0f0f0;
  cursor: pointer;
}

.thumb:hover {
  border-color: #14285c;
}

.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

.photo-note {
  margin-top: 8px;
  font-size: 13px;
  color: #777777;
}

.product-info h1 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
}

.product-price {
  margin-top: 16px;
  font-size: 20px;
  font-weight: 600;
  color: #14285c;
}

.product-desc {
  margin-top: 16px;
  color: #444444;
}

.button {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 24px;
  background: #14285c;
  color: #ffffff;
  font-size: 15px;
  border: 1px solid #14285c;
}

.button:hover {
  background: #ffffff;
  color: #14285c;
}

.product-info h2 {
  margin-top: 36px;
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 600;
}

.specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.specs th,
.specs td {
  padding: 9px 0;
  border-bottom: 1px solid #e2e2e2;
  text-align: left;
  vertical-align: top;
}

.specs th {
  width: 35%;
  font-weight: 500;
  color: #777777;
}

.product-list {
  padding-left: 18px;
  font-size: 14px;
  color: #444444;
}

.product-list li {
  margin-bottom: 4px;
}

.spec-note {
  margin-top: 10px;
  font-size: 12px;
  color: #777777;
}

.credit {
  margin-top: 48px;
  font-size: 12px;
  color: #999999;
}

.credit a {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  border-top: 1px solid #d0d0d0;
}

.site-footer p {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 32px;
  font-size: 13px;
  color: #777777;
}

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .search {
    width: 100%;
    margin: 12px 0 0;
  }

  .search input {
    flex: 1;
    width: auto;
  }

  .catalogue {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .filters {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .filters li {
    flex-shrink: 0;
  }

  .filter {
    width: auto;
    gap: 6px;
    border: 1px solid #d0d0d0;
    white-space: nowrap;
  }

  .product {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

@media (max-width: 600px) {
  .top-bar-inner,
  .header-inner,
  main,
  .site-footer p {
    padding-left: 16px;
    padding-right: 16px;
  }

  .top-bar-inner {
    font-size: 11px;
    gap: 12px;
  }

  .logo img {
    height: 40px;
  }

  /* Logo on its own row, the two buttons share the next row */
  .nav {
    width: 100%;
    margin: 10px 0 0;
  }

  .nav a {
    flex: 1;
    margin: 0;
    padding: 9px 6px;
    font-size: 14px;
    text-align: center;
  }

  .catalogue {
    gap: 12px;
  }

  .item-name {
    padding: 10px 10px 0;
    font-size: 14px;
  }

  .item-price {
    padding: 2px 10px 12px;
  }

  .product-info h1 {
    font-size: 23px;
  }

  .modal-box {
    padding: 28px 20px;
  }
}

.no-results {
  padding: 40px 0;
  color: #777777;
}
