:root {
  --ink: #111;
  --paper: #f4f2ed;
  --line: #d5d1ca;
  --accent: #c7ff2f;
  --muted: #777;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 00;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans SC", sans-serif;
}
button,
a {
  font: inherit;
}
button {
  cursor: pointer;
}
.top {
  height: 80px;
  padding: 0 4vw;
  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;
}
.top navnavnav {
  display: flex;
  gap: 28px;
}
.topnav a {
  color: #333;
  text-decoration: none;
  font-size: 14px;
}
.bag {
  background: #111 !important;
  color: #fff !important;
  padding: 10px 14px;
}
.bag b {
  color: var(--accent);
  margin-left: 7px;
}
.category-hero {
  padding: 75px 5vw 48px;
}
.eyebrow {
  font: 13px Oswald;
  letter-spacing: 0.25em;
  color: #777;
}
.category-hero h1 {
  font-size: clamp(50px, 8vw, 96px);
  letter-spacing: -0.07em;
  margin: 10px 0 18px;
}
.category-hero p:last-child {
  color: #777;
}
.toolbar {
  padding: 18px 5vw;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 0;
  background: rgba(244, 242, 237, 0.96);
  z-index: 5;
}
.cats {
  display: flex;
  gap: 6px;
}
.cats a,
.sort select {
  border: 1px solid var(--line);
  background: transparent;
  color: #555;
  text-decoration: none;
  padding: 9px 17px;
  font-size: 13px;
}
.cats a.active {
  background: #111;
  color: #fff;
  border-color: #111;
}
.sort {
  display: flex;
  gap: 10px;
}
.sort input {
  width: 180px;
  border: 0;
  border-bottom: 1px solid #aaa;
  background: transparent;
  outline: none;
}
.products {
  padding: 40px 4vw 100px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 42px 16px;
}
.card-image,
.detail-image {
  background-image: url("assets/menswear-products.png");
  background-size: cover;
  background-position: center;
}
.card-image {
  display: block;
  height: 0;
  padding-bottom: 126%;
  position: relative;
}
.crop-1 {
  background-position: 0 0;
}
.crop-2 {
  background-position: 100% 0;
}
.crop-3 {
  background-position: 0 100%;
}
.crop-4 {
  background-position: 100% 100%;
}
.tag {
  position: absolute;
  left: 11px;
  top: 11px;
  background: #111;
  color: #fff;
  padding: 5px 8px;
  font: 11px Oswald;
}
.heart {
  position: absolute;
  right: 11px;
  top: 10px;
  border: 0;
  background: #fff;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  font-size: 20px;
}
.heart.active {
  background: #111;
  color: var(--accent);
}
.card-info {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 2px;
}
.card-info h2 {
  font-size: 15px;
  margin: 0 0 7px;
}
.card-info h2 a {
  color: #111;
  text-decoration: none;
}
.card-info p {
  font-size: 12px;
  color: #777;
  margin: 0;
}
.card-info strong {
  font: 16px Oswald;
}
.add {
  width: 100%;
  border: 1px solid #111;
  background: transparent;
  height: 41px;
}
.add:hover {
  background: #111;
  color: #fff;
}
.empty {
  text-align: center;
  grid-column: 1/-1;
  padding: 80px;
  color: #777;
}
.detail {
  padding: 55px 5vw 100px;
}
.crumb {
  font-size: 13px;
  color: #777;
  margin-bottom: 28px;
}
.crumb a {
  color: inherit;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 7vw;
}
.detail-image {
  height: min(72vw, 720px);
  background-size: cover;
  background-position: center;
}
.detail-info {
  padding-top: 20px;
  max-width: 520px;
}
.detail-info .eyebrow {
  color: #777;
}
.detail-info h1 {
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.12;
  letter-spacing: -0.055em;
  margin: 13px 0;
}
.detail-price {
  font: 27px Oswald;
  margin: 24px 0 32px;
}
.description {
  color: #666;
  line-height: 1.9;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.option {
  margin-top: 29px;
}
.option > label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}
.swatches,
.sizes {
  display: flex;
  gap: 8px;
}
.swatches button,
.sizes button {
  height: 42px;
  min-width: 46px;
  border: 1px solid #bbb;
  background: transparent;
}
.swatches button.active,
.sizes button.active {
  border: 2px solid #111;
}
.swatches i {
  display: block;
  width: 18px;
  height: 18px;
  background: #111;
  border-radius: 50%;
  margin: auto;
}
.actions {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 10px;
  margin-top: 32px;
}
.detail-qty {
  height: 52px;
  border: 1px solid #aaa;
  display: flex;
}
.detail-qty button {
  border: 0;
  background: none;
  width: 31px;
}
.detail-qty span {
  display: grid;
  place-items: center;
  flex: 1;
}
.buy-actions {
  display: grid;
  gap: 9px;
}
.buy-actions button,
.buy-actions a {
  height: 52px;
  border: 1px solid #111;
  text-align: center;
  line-height: 50px;
  text-decoration: none;
  font-weight: 600;
}
.add-main {
  background: #111;
  color: #fff;
}
.buy-now {
  background: var(--accent);
  color: #111;
}
.notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 35px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  font-size: 12px;
  color: #666;
}
.toast {
  position: fixed;
  right: 25px;
  bottom: 25px;
  background: var(--accent);
  padding: 14px 20px;
  transform: translateY(100px);
  opacity: 0;
  transition: 0.25s;
}
.toast.show {
  transform: none;
  opacity: 1;
}
@media (max-width: 900px) {
  .products {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-grid {
    gap: 35px;
  }
  .detail-image {
    height: 62vw;
  }
}
@media (max-width: 620px) {
  .top {
    height: 67px;
    padding: 0 18px;
  }
  .topnav a:not(.bag) {
    display: none;
  }
  .category-hero {
    padding: 48px 18px 30px;
  }
  .toolbar {
    padding: 13px 18px;
    display: block;
  }
  .cats {
    overflow: auto;
  }
  .cats a {
    white-space: nowrap;
  }
  .sort {
    margin-top: 12px;
  }
  .sort input {
    flex: 1;
  }
  .products {
    padding: 25px 18px 70px;
    gap: 28px 10px;
  }
  .card-info {
    display: block;
  }
  .card-info strong {
    display: block;
    margin-top: 8px;
  }
  .detail {
    padding: 28px 18px 70px;
  }
  .detail-grid {
    display: block;
  }
  .detail-image {
    height: 115vw;
  }
  .detail-info {
    padding-top: 35px;
  }
  .notes {
    grid-template-columns: 1fr;
  }
  .actions {
    grid-template-columns: 1fr;
  }
  .detail-qty {
    width: 105px;
  }
}
