footer p {
  color: #b4bdab;
}

small {
  overflow-wrap: anywhere;
}

label {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

:root {
  --ink: #242920;
  --muted: #6e7468;
  --paper: #f8f8f3;
  --olive: #535e40;
  --line: #dfe2d7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.6 system-ui,
    -apple-system,
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input,
select,
textarea {
  font: inherit;
}

header {
  max-width: 1400px;
  margin: auto;
  padding: 30px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -3px;
  line-height: 1;
}

.brand span {
  display: block;
  font-size: 8px;
  letter-spacing: 1.5px;
  margin-top: 10px;
}

nav {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 14px;
}

nav form {
  margin: 0;
}

main {
  max-width: 1280px;
  margin: auto;
  padding: 30px 40px 80px;
}

h1,
h2,
h3 {
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(36px, 5vw, 64px);
}

h2 {
  font-size: 34px;
}

h3 {
  font-size: 21px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 55px 0 70px;
}

.hero h1 {
  font-size: clamp(42px, 5.5vw, 76px);
  margin: 25px 0;
}

.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 540px;
}

.hero-mark {
  background: #dfe4d6;
  aspect-ratio: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  font-size: 240px;
  color: #657154;
  font-weight: 300;
}

.hero-mark span {
  color: #535f42;
  position: absolute;
  bottom: 25px;
  font-size: 10px;
  letter-spacing: 4px;
}

.button,
button {
  display: inline-block;
  border: 0;
  background: var(--ink);
  color: white;
  padding: 14px 24px;
  cursor: pointer;
  font-size: 14px;
  border-radius: 2px;
}

.button:hover,
button:hover {
  background: var(--olive);
  text-decoration: none;
}

.secondary {
  display: inline-block;
  margin: 15px;
  padding: 12px 0;
  background: transparent;
  color: var(--ink);
}

.text {
  padding: 0;
  background: none;
  color: var(--ink);
}

.section {
  margin: 50px 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 20px;
}

.section-heading span {
  color: var(--muted);
  font-size: 14px;
}

.categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.categories a {
  padding: 22px 8px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.card {
  min-width: 0;
  display: block;
}

.card:hover {
  text-decoration: none;
}

.card h2,
.card h3 {
  min-height: 48px;
  margin: 12px 0 20px;
}

.placeholder {
  background: #e9ebe3;
  aspect-ratio: 1.15;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ba38e;
}

.placeholder span {
  font-size: 26px;
  letter-spacing: 5px;
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.cooperation {
  margin-top: 80px;
  background: #e8ebdf;
  padding: 50px;
}

.cooperation p {
  max-width: 600px;
}

.page-heading {
  margin: 30px 0;
}

.filters {
  display: flex;
  gap: 20px;
  align-items: end;
  flex-wrap: wrap;
  margin: 30px 0 40px;
}

input,
textarea,
select {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  border: 1px solid #c6cdbb;
  border-radius: 2px;
  color: var(--ink);
  background: white;
  min-width: 0;
}

input:focus,
textarea:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
}

.stack {
  display: grid;
  gap: 20px;
}

.stack > button {
  justify-self: start;
}

.narrow {
  max-width: 620px;
  margin: 65px auto;
}

.notice {
  padding: 15px;
  background: #ede8d5;
}

.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin: 40px 0;
}

.product h1 {
  font-size: 40px;
  margin-top: 0;
}

.variant {
  border-top: 1px solid var(--line);
  padding: 15px 0;
}

.variant p {
  margin: 5px 0;
}

.variant small {
  color: var(--muted);
}

.price {
  font-size: 26px;
}

.wholesale {
  color: var(--olive);
  font-weight: 600;
}

.description {
  white-space: pre-line;
}

.pagination {
  justify-content: center;
  margin-top: 40px;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.user-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 15px 0;
}

.user-row select {
  max-width: 200px;
}

.variant-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  border: 1px solid var(--line);
  margin-bottom: 20px;
  padding: 20px;
}

.empty {
  padding: 35px;
  grid-column: 1/-1;
}

footer {
  background: var(--ink);
  color: #ecefe5;
  padding: 45px 5%;
  display: flex;
  gap: 35px;
  align-items: center;
  font-size: 13px;
}

footer .brand {
  margin-right: auto;
}

@media (width <= 900px) {
  header {
    flex-wrap: wrap;
  }

  nav {
    flex-wrap: wrap;
    gap: 15px;
  }

  .hero {
    gap: 25px;
  }

  .hero-mark {
    font-size: 150px;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .categories {
    grid-template-columns: repeat(2, 1fr);
  }

  footer {
    flex-wrap: wrap;
  }

  .product {
    gap: 25px;
  }
}

@media (width <= 600px) {
  header {
    padding: 24px;
  }

  .brand {
    font-size: 34px;
  }

  nav {
    font-size: 12px;
  }

  main {
    padding: 20px 22px 45px;
  }

  .hero {
    display: block;
    padding: 15px 0 25px;
  }

  .hero-mark {
    display: none;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero .secondary {
    margin-left: 0;
  }

  .cards {
    gap: 24px 15px;
  }

  .card h2,
  .card h3 {
    font-size: 17px;
    min-height: 58px;
  }

  .card .eyebrow {
    font-size: 9px;
    letter-spacing: 1px;
  }

  .card-bottom {
    font-size: 14px;
  }

  .categories {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .cooperation {
    padding: 28px;
    margin-top: 45px;
  }

  .filters {
    display: grid;
    gap: 15px;
  }

  .product {
    grid-template-columns: 1fr;
  }

  .product h1 {
    font-size: 34px;
  }

  .narrow {
    margin: 30px auto;
  }

  .user-row {
    flex-wrap: wrap;
    overflow-wrap: anywhere;
  }

  .variant-editor {
    grid-template-columns: 1fr;
  }

  .section-heading h1 {
    font-size: 34px;
  }

  footer {
    padding: 35px 24px;
    gap: 20px;
  }

  footer .brand {
    width: 100%;
  }
}

.catalog-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1.15;
  object-fit: contain;
  background: #e9ebe3;
}

.detail-photo {
  max-width: 180px;
  max-height: 160px;
  object-fit: contain;
}

input[type="checkbox"] {
  display: inline-block;
  width: auto;
  margin-right: 8px;
}

.filters label {
  flex: 1;
  min-width: 150px;
}

.gallery-editor {
  margin-bottom: 40px;
}

.gallery-items {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
}

.gallery-item {
  padding: 16px;
  border: 1px solid var(--line);
  max-width: 100%;
}

.gallery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gallery-actions button {
  padding: 8px 12px;
}

button:disabled {
  opacity: 0.5;
  cursor: default;
}

[hidden] {
  display: none !important;
}

.product-main-image {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #e9ebe3;
}

.cooperation .eyebrow {
  color: #5b6155;
}
