:root {
  --blue: #171c8f;
  --gold: #ffc72c;
  --ink: #121329;
  --muted: #62647c;
  --paper: #fbfaf6;
  --line: #dedee7;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}
header {
  background: var(--blue);
  color: white;
  padding: 0 5.5vw 52px;
}
nav {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  text-decoration: none;
  color: white;
  letter-spacing: 1px;
  font-weight: 800;
  font-size: 20px;
  line-height: 0.8;
}
.wordmark small {
  display: block;
  font-size: 6px;
  letter-spacing: 2.4px;
  margin: 7px 0 0 2px;
}
.cart-button,
.floating-cart {
  border: 0;
  border-radius: 100px;
  padding: 12px 17px;
  background: #fff;
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
}
.cart-button b {
  background: var(--gold);
  padding: 3px 7px;
  border-radius: 30px;
  margin-left: 6px;
}
.hero {
  max-width: 1180px;
  margin: 42px auto 0;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 45px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.7px;
  font-weight: 800;
  margin: 0 0 13px;
  color: #8083bd;
}
.hero h1 {
  font-size: clamp(43px, 6vw, 78px);
  letter-spacing: -3.5px;
  line-height: 0.96;
  margin: 0;
  max-width: 730px;
}
.hero h1 em {
  color: var(--gold);
  font-style: normal;
}
.hero p:not(.eyebrow) {
  font-size: 18px;
  line-height: 1.5;
  max-width: 560px;
  color: #e4e5ff;
}
.cta {
  display: inline-block;
  margin-top: 18px;
  background: var(--gold);
  color: #17121c;
  border-radius: 100px;
  padding: 14px 20px;
  text-decoration: none;
  font-weight: 800;
}
.hero-art {
  height: 300px;
  position: relative;
  background: linear-gradient(135deg, #3136bd, #12166f);
  border-radius: 50% 50% 8% 50%;
  overflow: hidden;
}
.hero-art span {
  position: absolute;
  font-weight: 900;
  letter-spacing: -2px;
  color: white;
  background: #f04632;
  padding: 12px;
  border-radius: 8px;
  transform: rotate(-14deg);
}
.hero-art span:nth-child(1) {
  top: 34px;
  left: 20px;
  font-size: 42px;
  background: #2588de;
}
.hero-art span:nth-child(2) {
  top: 145px;
  left: 118px;
  font-size: 46px;
  background: #e23a1e;
}
.hero-art span:nth-child(3) {
  top: 72px;
  right: 0;
  font-size: 31px;
  background: #1c9c9a;
}
.hero-art span:nth-child(4) {
  bottom: 18px;
  right: 8px;
  font-size: 25px;
  background: #111;
}
main {
  max-width: 1180px;
  margin: auto;
  padding: 0 24px;
}
.notice {
  margin: -24px 0 42px;
  background: #fff3cc;
  padding: 16px 20px;
  border-left: 4px solid var(--gold);
  font-size: 14px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 28px 0 65px;
}
.stats div {
  padding: 22px;
  border-right: 1px solid var(--line);
}
.stats div:last-child {
  border: 0;
}
.stats b {
  display: block;
  font-size: 28px;
}
.stats span {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.catalog-head {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
}
.catalog-head h2 {
  font-size: 42px;
  letter-spacing: -1.7px;
  margin: 0;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filters input,
.filters select,
.buyer-form input,
.buyer-form textarea {
  border: 1px solid var(--line);
  background: white;
  padding: 12px;
  border-radius: 7px;
  font: inherit;
}
.filters input {
  min-width: 240px;
}
.brand-tabs {
  display: flex;
  overflow: auto;
  gap: 8px;
  margin: 30px 0 20px;
  padding-bottom: 7px;
}
.brand-tabs button {
  white-space: nowrap;
  border: 1px solid var(--line);
  background: white;
  border-radius: 99px;
  padding: 9px 14px;
  cursor: pointer;
}
.brand-tabs button.active {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-bottom: 100px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-art {
  height: 164px;
  background: #fff;
  display: flex;
  align-items: end;
  padding: 17px;
  position: relative;
  overflow: hidden;
}
.product-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  background: linear-gradient(145deg, #5b1635, #d3272f 58%, #f4a51c);
}
.product-placeholder span { font-size: 42px; font-weight: 900; letter-spacing: -.06em; }
.product-placeholder small { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.product-art:before {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  border: 2px solid #ffffff66;
  border-radius: 50%;
  right: -45px;
  top: -70px;
}
.product-art.has-image:before {
  display: none;
}
.product-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  inset: 0;
  padding: 8px;
  mix-blend-mode: normal;
}
.product-art b {
  font-size: 24px;
  color: white;
  letter-spacing: -1px;
  position: relative;
  text-shadow: 0 1px 5px #0008;
}
.product-art.has-image b {
  display: none;
}
.card-content {
  padding: 17px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.tag {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.card h3 {
  font-size: 17px;
  line-height: 1.2;
  margin: 9px 0;
  min-height: 41px;
}
.upc {
  font-family: monospace;
  font-size: 12px;
  color: var(--muted);
}
.price-row {
  margin-top: auto;
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: end;
}
.price-row strong {
  font-size: 23px;
}
.price-row small {
  display: block;
  color: var(--muted);
}
.qty {
  display: flex;
  align-items: center;
  gap: 7px;
}
.qty button,
.details-btn {
  border: 1px solid var(--line);
  background: white;
  border-radius: 5px;
  cursor: pointer;
  padding: 7px 10px;
  font-weight: bold;
}
.qty input {
  width: 32px;
  text-align: center;
  border: 0;
  font-weight: bold;
}
.card-actions {
  display: flex;
  gap: 7px;
  margin-top: 13px;
}
.add {
  background: var(--blue);
  color: white;
  border: 0;
  border-radius: 6px;
  padding: 10px;
  flex: 1;
  font-weight: bold;
  cursor: pointer;
}
.details-btn {
  font-size: 12px;
}
.floating-cart {
  position: fixed;
  right: 22px;
  bottom: 20px;
  z-index: 4;
  background: var(--blue);
  color: white;
  box-shadow: 0 6px 22px #0003;
}
.floating-cart span {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #bfc1ff;
}
.floating-cart b {
  font-size: 14px;
}
#drawer {
  position: fixed;
  right: 0;
  top: 0;
  height: 100%;
  width: min(480px, 100%);
  padding: 26px;
  background: white;
  z-index: 7;
  transform: translateX(105%);
  transition: 0.25s;
  overflow: auto;
}
.cart-open #drawer {
  transform: translateX(0);
}
.backdrop {
  position: fixed;
  inset: 0;
  background: #10112488;
  z-index: 6;
  display: none;
}
.cart-open .backdrop {
  display: block;
}
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 17px;
}
.drawer-head h2 {
  margin: 0;
}
.close {
  font-size: 29px;
  border: 0;
  background: none;
  cursor: pointer;
}
.cart-items {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.empty {
  color: var(--muted);
}
.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}
.cart-item:last-child {
  border: 0;
}
.cart-item b,
.cart-item small {
  display: block;
}
.cart-item small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.buyer-form {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}
.buyer-form label {
  font-weight: bold;
  font-size: 13px;
}
.buyer-form input,
.buyer-form textarea {
  display: block;
  width: 100%;
  margin-top: 5px;
}
.buyer-form textarea {
  height: 70px;
}
.drawer-actions {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 8px;
}
.drawer-actions button {
  border: 0;
  padding: 12px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}
.send {
  background: var(--blue);
  color: #fff;
}
.copy {
  background: var(--gold);
}
.clear {
  background: #eee;
}
.fineprint {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}
dialog {
  border: 0;
  border-radius: 13px;
  max-width: 570px;
  width: calc(100% - 32px);
  box-shadow: 0 10px 40px #0004;
  padding: 28px;
}
.modal-close {
  position: absolute;
  right: 14px;
  top: 8px;
}
.detail-art {
  height: 130px;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  align-items: end;
  color: white;
  font-size: 32px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}
.detail-grid div {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.detail-grid small,
.detail-grid b {
  display: block;
}
.detail-grid small {
  color: var(--muted);
  font-size: 11px;
}
.detail-grid b {
  font-size: 14px;
  margin-top: 3px;
}
footer {
  text-align: center;
  padding: 32px;
  background: #101237;
  color: #c2c4f8;
  font-size: 12px;
}
@media (max-width: 760px) {
  header {
    padding: 0 20px 40px;
  }
  .hero {
    grid-template-columns: 1fr;
    margin-top: 25px;
    gap: 20px;
  }
  .hero-art {
    height: 180px;
  }
  .hero h1 {
    letter-spacing: -2px;
  }
  .hero-art span:nth-child(2) {
    top: 84px;
  }
  .stats {
    margin-bottom: 42px;
  }
  .stats b {
    font-size: 22px;
  }
  .stats div {
    padding: 15px 8px;
  }
  .catalog-head {
    display: block;
  }
  .filters {
    margin-top: 20px;
  }
  .filters input {
    width: 100%;
    min-width: 0;
  }
  .filters select {
    width: calc(50% - 4px);
  }
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .card-content {
    padding: 12px;
  }
  .card h3 {
    font-size: 14px;
  }
  .product-art {
    height: 100px;
  }
  .product-art b {
    font-size: 22px;
  }
  .price-row strong {
    font-size: 18px;
  }
  .card-actions {
    flex-wrap: wrap;
  }
  .details-btn {
    flex: 1;
  }
  .hero p:not(.eyebrow) {
    font-size: 16px;
  }
  main {
    padding: 0 14px;
  }
}
@media (max-width: 390px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .hero-art {
    display: none;
  }
}
