:root {
  --ink: #111;
  --paper: #f4f2ed;
  --line: #d4d0c8;
  --accent: #c7ff2f;
  --muted: #777;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans SC", sans-serif;
}
header {
  height: 80px;
  padding: 0 5vw;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  color: #111;
  text-decoration: none;
  font: 600 29px Oswald;
}
.logo span {
  font: 12px "Noto Sans SC";
  letter-spacing: 0.15em;
  margin-left: 9px;
  padding-left: 10px;
  border-left: 1px solid #aaa;
}
header nav {
  display: flex;
  gap: 25px;
}
header nav a {
  color: #333;
  text-decoration: none;
  font-size: 14px;
}
main {
  padding: 65px 5vw 100px;
}
.eyebrow {
  font: 13px Oswald;
  letter-spacing: 0.25em;
  color: #777;
  margin: 0;
}
.title {
  font-size: clamp(42px, 6vw, 70px);
  letter-spacing: -0.06em;
  margin: 7px 0 44px;
}
.title span {
  font: 18px Oswald;
  color: #999;
  vertical-align: top;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 5vw;
  align-items: start;
}
.panel {
  border-top: 2px solid #111;
}
.list-head {
  display: grid;
  grid-template-columns: 100px 1fr 110px 100px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: #777;
}
.item {
  display: grid;
  grid-template-columns: 28px 120px minmax(170px, 1fr) 105px 100px;
  gap: 16px;
  align-items: center;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}
input[type="checkbox"] {
  accent-color: #111;
}
.item-image {
  width: 120px;
  height: 150px;
  background: url("assets/menswear-products.png");
  background-size: cover;
  background-position: center;
}
.crop-1 {
  background-position: 0 0;
}
.crop-2 {
  background-position: 100% 0;
}
.crop-3 {
  background-position: 0 100%;
}
.crop-4 {
  background-position: 100% 100%;
}
.item h3 {
  font-size: 16px;
  margin: 0 0 8px;
}
.item p {
  color: #777;
  font-size: 12px;
  margin: 0 0 18px;
}
.remove {
  border: 0;
  border-bottom: 1px solid #aaa;
  background: none;
  padding: 0;
  color: #777;
  font-size: 12px;
}
.qty {
  width: 94px;
  height: 36px;
  border: 1px solid #bbb;
  display: flex;
}
.qty button {
  width: 30px;
  border: 0;
  background: none;
}
.qty span {
  display: grid;
  place-items: center;
  flex: 1;
  font: 14px Oswald;
}
.price {
  font: 16px Oswald;
}
.summary {
  background: #111;
  color: #fff;
  padding: 31px;
  position: sticky;
  top: 22px;
}
.summary h2 {
  font-size: 24px;
  margin: 0 0 25px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  margin: 15px 0;
  color: #aaa;
}
.summary-row b {
  color: #fff;
  font: 16px Oswald;
}
.summary .total {
  padding-top: 22px;
  margin-top: 24px;
  border-top: 1px solid #444;
  color: #fff;
  font-size: 18px;
}
.summary .total b {
  font-size: 25px;
  color: var(--accent);
}
.tip {
  font-size: 12px;
  color: #888;
}
.primary {
  display: block;
  width: 100%;
  height: 52px;
  border: 0;
  background: var(--accent);
  color: #111;
  font-weight: 700;
  margin-top: 20px;
  text-align: center;
  line-height: 52px;
  text-decoration: none;
}
.summary small {
  display: block;
  text-align: center;
  color: #666;
  font-size: 11px;
  margin-top: 12px;
}
.empty {
  text-align: center;
  padding: 85px 20px;
}
.empty strong {
  font-size: 26px;
}
.empty p {
  color: #777;
}
.empty a {
  color: #111;
}
.form-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.form-section h2 {
  font-size: 22px;
  margin: 0 0 22px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
}
.field input,
.field select {
  width: 100%;
  height: 48px;
  border: 1px solid #c6c2bb;
  background: transparent;
  padding: 0 13px;
  font: 14px inherit;
  outline: none;
}
.field input:focus,
.field select:focus {
  border-color: #111;
}
.pay-option {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #111;
  padding: 16px;
  margin-top: 10px;
}
.pay-option input {
  accent-color: #111;
}
.order-items {
  border-bottom: 1px solid #444;
  padding-bottom: 15px;
  margin-bottom: 20px;
}
.order-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #aaa;
  font-size: 13px;
  margin: 10px 0;
}
.notice {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: grid;
  place-items: center;
  padding: 20px;
}
.notice[hidden] {
  display: none;
}
.notice-box {
  background: var(--paper);
  padding: 42px;
  max-width: 440px;
  text-align: center;
}
.notice-box b {
  font-size: 27px;
}
.notice-box p {
  color: #666;
  line-height: 1.8;
}
.notice-box a {
  display: inline-block;
  background: #111;
  color: #fff;
  text-decoration: none;
  padding: 13px 25px;
}
@media (max-width: 850px) {
  .layout {
    display: block;
  }
  .summary {
    position: static;
    margin-top: 40px;
  }
  .list-head {
    display: none;
  }
  .item {
    grid-template-columns: 24px 90px 1fr;
  }
  .item-image {
    width: 90px;
    height: 120px;
  }
  .qty,
  .price {
    grid-column: 3;
  }
}
@media (max-width: 550px) {
  header {
    height: 67px;
    padding: 0 18px;
  }
  header nav a:last-child {
    display: none;
  }
  main {
    padding: 40px 18px 70px;
  }
  .title {
    margin-bottom: 26px;
  }
  .form-grid {
    display: block;
  }
  .field {
    margin-bottom: 16px;
  }
  .summary {
    padding: 24px;
  }
}
