@import url('https://fonts.googleapis.com/css2?family=Fira+Mono:wght@400;700&display=swap');

html, body {
  height: 100%;
}

body {
  background: #fff;
  color: #111;
  font-family: 'Fira Mono', 'Courier New', Courier, monospace;
  font-size: 20px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header, footer {
  background: #000;
  color: #fff;
  padding: 32px 0 24px 0;
  text-align: center;
  border-bottom: 6px solid #111;
  letter-spacing: 2px;
}

footer {
  border-top: 6px solid #111;
  border-bottom: none;
  margin-top: 40px;
  flex-shrink: 0;
}

nav a {
  color: #fff;
  background: #111;
  padding: 8px 20px;
  margin: 0 8px;
  text-decoration: none;
  font-weight: bold;
  border: 3px solid #fff;
  text-transform: uppercase;
  font-size: 1.1em;
  transition: none;
}

nav a:hover, nav a:focus {
  background: #fff;
  color: #000;
  border-color: #000;
  outline: 2px solid #000;
  transition: background 0.1s, color 0.1s, border-color 0.1s;
}

main {
  max-width: 900px;
  margin: 40px auto 0 auto;
  padding: 32px;
  background: #f2f2f2;
  border: 6px solid #111;
  box-shadow: 8px 8px 0 #000;
  flex: 1 0 auto;
}

h1, h2, h3 {
  font-family: 'Fira Mono', 'Courier New', Courier, monospace;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
  color: #000;
}

p {
  margin-bottom: 18px;
  line-height: 1.5;
}

button, .btn {
  background: #111;
  color: #fff;
  border: 3px solid #000;
  padding: 12px 32px;
  font-family: inherit;
  font-size: 1em;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 4px 4px 0 #000;
  transition: background 0.1s, color 0.1s, box-shadow 0.1s;
}

button:focus, .btn:focus {
  outline: none;
}

button:hover, .btn:hover {
  background: #fff;
  color: #000;
  box-shadow: 0 0 0 #000;
  outline: 2px solid #000;
}

/* Responsive styles */
@media (max-width: 1024px) {
  main {
    max-width: 98vw;
    padding: 16px;
  }
}

@media (max-width: 768px) {
  header, footer {
    padding: 18px 0 14px 0;
    font-size: 0.95em;
  }
  nav a {
    padding: 6px 10px;
    font-size: 1em;
    margin: 0 4px;
  }
  main {
    padding: 12px;
    font-size: 0.98em;
  }
  h1, h2, h3 {
    font-size: 1.2em;
  }
  .product-item img {
    max-width: 90px;
    max-height: 90px;
  }
  .burger {
    display: flex !important;
  }
  nav {
    display: none;
    flex-direction: column;
    background: #111;
    border: 3px solid #fff;
    margin: 0 12px;
    padding: 12px 0;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 100;
  }
  nav.open {
    display: flex;
  }
  header {
    flex-direction: row;
    padding-left: 8px;
    padding-right: 8px;
  }
  .logo {
    font-size: 1em;
  }
  .burger {
    margin-left: auto;
  }
}

@media (max-width: 480px) {
  header, footer {
    padding: 10px 0 8px 0;
    font-size: 0.9em;
  }
  nav a {
    display: block;
    margin: 6px 0;
    padding: 8px 0;
    border-width: 2px;
  }
  main {
    padding: 6px;
    font-size: 0.95em;
  }
  .product-item img {
    max-width: 70px;
    max-height: 70px;
  }
}

@media (max-width: 320px) {
  header, footer {
    font-size: 0.8em;
    padding: 6px 0 4px 0;
  }
  nav a {
    font-size: 0.9em;
    padding: 6px 0;
  }
  main {
    padding: 2px;
    font-size: 0.9em;
  }
  h1, h2, h3 {
    font-size: 1em;
  }
}

form {
  background: #fff;
  border: 4px solid #000;
  padding: 32px 20px;
  max-width: 420px;
  margin: 0 auto;
  box-shadow: 6px 6px 0 #000;
}

label {
  font-family: 'Fira Mono', 'Courier New', Courier, monospace;
  font-size: 1em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #000;
}

input[type="text"], input[type="email"], input[type="password"], textarea {
  width: 100%;
  padding: 10px;
  margin-top: 4px;
  margin-bottom: 8px;
  border: 2px solid #000;
  background: #f2f2f2;
  font-family: inherit;
  font-size: 1em;
  color: #111;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.1s;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, textarea:focus {
  border-color: #111;
  background: #fff;
}

#form-message {
  font-family: inherit;
  font-size: 1em;
  color: #c00;
  font-weight: bold;
}

/* Burger menu styles */
.burger {
  display: none;
  background: #fff;
  border: 3px solid #000;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0 0 0 auto;
  position: static;
  z-index: 200;
  transition: box-shadow 0.1s;
}
.burger:hover, .burger:focus {
  box-shadow: 0 0 0 3px #000, 0 0 0 6px #fff;
}
.burger span {
  display: block;
  position: relative;
  width: 28px;
  height: 4px;
  background: #fff;
  border-radius: 2px;
  transition: background 0.2s;
}
.burger span::before, .burger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 28px;
  height: 4px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s, background 0.2s;
}
.burger span::before {
  top: -9px;
}
.burger span::after {
  top: 9px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding-left: 16px;
  padding-right: 16px;
}
.logo {
  display: flex;
  align-items: center;
  font-family: 'Fira Mono', 'Courier New', Courier, monospace;
  font-size: 1.2em;
  font-weight: bold;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
  gap: 8px;
  text-decoration: none;
}
