.category-nav {
  display: flex;
  justify-content: center;
  gap: 9px;
  padding: 13px 0 21px;
  border-bottom: 1px solid var(--line);
}
.category-nav button {
  min-height: 42px;
  padding: 8px 23px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: #110d169e;
  color: #c9bbd2;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.category-nav button[aria-pressed="true"] {
  background: #b488e822;
  color: #e0c7fa;
  border-color: #c399f761;
}
.category-nav .icon {
  width: 18px;
  height: 18px;
}
.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px 150px 185px;
  gap: 14px;
  align-items: end;
  margin: 25px 0 14px;
}
.filter-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.filter-field > span,
.filter-field > label {
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #c7b8d1;
}
.input-wrap {
  position: relative;
}
.input-wrap > .icon {
  position: absolute;
  left: 14px;
  top: 14px;
  color: var(--purple);
  pointer-events: none;
}
.filter-field input,
.filter-field select {
  width: 100%;
  height: 47px;
  border: 1px solid #b497c842;
  background: #130e1bec;
  color: var(--ink);
  border-radius: 5px;
  padding: 10px 12px;
  font-size: 0.81rem;
}
.filter-field input::placeholder {
  color: #93869f;
}
.input-wrap input {
  padding-left: 43px;
}
.filter-field select {
  padding-right: 25px;
}
.catalog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 23px;
  font-size: 0.72rem;
  color: var(--muted);
}
.clear-filters {
  border: 0;
  padding: 6px 0;
  background: none;
  color: var(--purple);
  font-size: 0.72rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.filter-error {
  margin-bottom: 18px;
}
.product-section {
  padding: 27px 0 39px;
  border-top: 1px solid var(--line);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.product-card {
  min-width: 0;
  background: linear-gradient(140deg, #211727f2, #110e16f5);
  border: 1px solid #ab88c52d;
  border-radius: 7px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s,
    border-color 0.25s;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: #c399f778;
}
.product-image {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: #17151a;
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/2;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.55s;
}
.product-card:hover .product-image img {
  transform: scale(1.035);
}
.product-body {
  padding: 17px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-kind {
  font-size: 0.57rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b497c8;
  margin-bottom: 8px;
}
.product-card h3 {
  font-size: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.product-album {
  color: var(--muted);
  font-size: 0.73rem;
  margin-top: 5px;
  min-height: 2.5em;
}
.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 18px;
}
.product-price {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  white-space: nowrap;
}
.product-open {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #c399f74f;
  border-radius: 4px;
  min-height: 37px;
  background: #c399f70b;
  color: #d6b6f1;
  font-size: 0.65rem;
  padding: 8px 10px;
}
.product-open:hover {
  background: #b27ae92b;
}
.product-open .icon {
  width: 14px;
  height: 14px;
}
.product-section-description {
  font-size: 0.79rem;
  color: var(--muted);
  margin-top: 12px;
}
.product-dialog {
  width: min(880px, calc(100% - 32px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 1px solid #ad8dc359;
  border-radius: 12px;
  background: #17101e;
  color: var(--ink);
  box-shadow: 0 30px 100px #0009;
}
.product-dialog::backdrop {
  background: #07050bdd;
  backdrop-filter: blur(7px);
}
.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 39px;
  height: 39px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #19111ee8;
  display: grid;
  place-items: center;
  z-index: 2;
}
.product-detail {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.detail-image {
  display: flex;
  align-items: center;
  background: #131016;
}
.detail-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.detail-body {
  padding: 48px 30px 30px;
}
.detail-body .eyebrow {
  margin-bottom: 13px;
}
.detail-body h2 {
  font-size: 1.8rem;
  line-height: 1.12;
}
.detail-album {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 10px 0 18px;
}
.detail-price {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--warm);
  margin-bottom: 15px;
}
.detail-description {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 24px;
}
.product-form-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin-bottom: 20px;
}
.product-form .button {
  width: 100%;
}
.product-form .notice {
  margin-top: 12px;
  font-size: 0.66rem;
}
.dialog-message {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--purple);
}
@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
  .catalog-toolbar {
    grid-template-columns: 1fr 120px 120px 155px;
  }
}
@media (max-width: 760px) {
  .catalog-toolbar {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .search-field {
    grid-column: 1/-1;
  }
  .sort-field {
    grid-column: 1/-1;
  }
  .catalog-meta {
    align-items: start;
  }
  .catalog-meta .notice {
    max-width: 220px;
  }
  .product-detail {
    grid-template-columns: 1fr;
  }
  .detail-image img {
    max-height: 260px;
  }
  .detail-body {
    padding: 25px;
  }
  .product-dialog {
    max-height: calc(100dvh - 24px);
  }
  .category-nav {
    gap: 5px;
  }
  .category-nav button {
    padding: 8px 14px;
  }
  .category-nav .icon {
    display: none;
  }
}
@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .product-body {
    padding: 12px 10px;
  }
  .product-card h3 {
    font-size: 0.84rem;
  }
  .product-album {
    font-size: 0.66rem;
    min-height: 2.9em;
  }
  .product-bottom {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
  }
  .product-price {
    font-size: 0.98rem;
  }
  .product-open {
    width: 100%;
    font-size: 0.68rem;
    min-height: 37px;
  }
  .product-kind {
    font-size: 0.49rem;
    letter-spacing: 0.09em;
  }
  .product-section {
    padding-top: 24px;
    padding-bottom: 30px;
  }
  .category-nav button {
    font-size: 0.69rem;
    padding: 8px 12px;
  }
  .catalog-toolbar {
    margin-top: 18px;
  }
  .filter-field input,
  .filter-field select {
    font-size: 16px;
  }
  .filter-field > span {
    font-size: 0.58rem;
  }
  .catalog-meta {
    font-size: 0.67rem;
    gap: 8px;
  }
  .product-form-fields {
    grid-template-columns: 1fr 1fr;
  }
  .detail-body h2 {
    font-size: 1.55rem;
  }
}
