* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font: 16px/1.5 system-ui, Segoe UI, Arial, sans-serif;
  color: #fff;
}

.wrap {
  max-width: 1300px;
  margin: auto;
  padding: 0 18px;
}

header {
  color: #fff;
  padding: 25px 0 22px;
}

header h1 {
  margin: 0;
}

header p {
  margin: 4px 0 8px;
  color: #fff;
}

a {
  color: #fff;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  margin: 28px auto;
}

.layout > section,
.layout > aside {
  background: #01161a;
  border: 0 solid #e1e4e9;
  border-radius: 10px;
  padding: 18px;
  align-self: start;
}

.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.bar h2 {
  margin: 0 0 16px;
}

.bar input {
  padding: 10px;
  border-radius: 6px;
  border: 0 solid #9da9ac;
  max-width: 55%;
  width: 240px;
  background: #0b1518;
  color: #fff;
}

.bar input::placeholder {
  color: #fff;
  opacity: 1;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 22px;
}

.product {
  border: 1px solid #3c565d;
  border-radius: 8px;
  padding: 12px;
  min-width: 0;
}

.artImage {
  position: relative;
  display: block;
  width: 100%;
  max-width: 150px;
  margin: 0 auto 12px;
  cursor: zoom-in;
}

.thumb {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: contain;
  background: #0b1518;
}

.soldOverlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.name {
  font-weight: 700;
  color: #fff;
}

.meta {
  color: #fff;
  font-size: .86rem;
}

.price {
  font-weight: 700;
  margin: 5px 0 10px;
  color: #fff;
}

.add {
  border: 0;
  background: #276fa2;
  color: #fff;
  border-radius: 6px;
  padding: 10px 12px;
  cursor: pointer;
  width: 100%;
}

.add:disabled {
  background: #555;
  color: #fff;
  cursor: not-allowed;
}

.cartRow {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #3c565d;
}

.cartName {
  flex: 1;
  color: #fff;
}

.remove {
  background: none;
  border: 0;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.totals {
  margin: 18px 0;
}

.totals > div {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
}

.grand {
  font-size: 1.2rem;
  border-top: 1px solid #527078;
  margin-top: 8px;
  padding-top: 12px !important;
  color: #fff;
}

.note {
  font-size: .85rem;
  color: #fff;
}

#status {
  overflow-wrap: anywhere;
  color: #fff;
}

.modal:not([hidden]) {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .92);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 50px 15px;
}

.modal img {
  max-width: 92vw;
  max-height: 78vh;
  object-fit: contain;
}

.close {
  position: absolute;
  right: 20px;
  top: 8px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
}

@media (max-width: 760px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .bar input {
    max-width: 100%;
    width: 100%;
  }
}