.product-catalog-section {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 20px;
}

.product-catalog-section h2 {
  margin: 0;
}

.catalog-filters {
  margin-bottom: 30px;
}
.catalog-filters input:read-write,
.catalog-filters button,
.catalog-filters select {
  border-radius: 6px;
}

.filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.catalog-filter-select.price-sort {
  margin-left: auto;
}
.product-items {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.catalog-wrapper {
  width: 100%;
}

.catalog-item-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1e1e2f;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  gap: 10px;
  border-style: solid;
  border-color: var(--formfieldbordercolor);
  border-width: var(--formfieldborderwidth);
  border-radius: 18px;
  transition: all 300ms ease;
}
.catalog-item-body:hover {
  box-shadow: 0 0 16px #00c3ffd1;
}

.product-price {
  flex: 1 1 130px;
  display: flex;
  flex-direction: column;
}

.product-price-value {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
}

.product-price-desc {
  font-size: 14px;
  color: #999;
}

.product-details {
  flex: 2 1 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-detail-box {
  background: #2b2b3d;
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 110px;
}

.product-detail-value {
  font-weight: 600;
  font-size: 16px;
  color: #ffffff;
}

.product-detail-label {
  font-size: 12px;
  color: #999;
}

.product-vendor {
  flex: 1 1 160px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vendor-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vendor-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.vendor-status.online {
  background-color: #3dc86e;
}

.vendor-status.offline {
  background-color: #ccc;
}

.vendor-name {
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  display: flex;
  align-items: center;
}

.vendor-avatar {
  border-radius: 2px;
  margin-left: 4px;
  vertical-align: middle;
}

.vendor-meta {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12px;
  color: #999;
}

.vendor-star {
  width: 12px;
  height: 12px;
}

.vendor-rating {
  font-weight: 600;
  color: #fff;
}

.product-action {
  flex: 1 1 160px;
  display: flex;
  justify-content: flex-end;
}

.buy-now-button {
  border: none;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

.item-purchase {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-calculator {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calc-label {
  font-weight: 600;
  font-size: 14px;
  color: #ffffff;
}

.calc-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calc-btn {
  background-color: #2b2b3d;
  color: #fff;
  border: none;
  font-size: 18px;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.calc-btn:hover {
  background-color: #666;
}

.calc-input {
  width: 60px;
  padding: 6px;
  font-size: 14px;
  text-align: center;
  background-color: #1e1e2f;
  color: #fff;
  border: 1px solid #666;
  border-radius: 4px;
}

.total-wrap {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}

.calc-total {
  font-weight: bold;
  font-size: 16px;
  color: #ffffff;
}

.buy-now-button {
  color: #fff;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.buy-now-button:hover {
  opacity: 0.9;
}
.price-vendor {
  display: flex;
  gap: 10px;
  justify-content: center;
}

@media screen and (max-width: 768px) {
  .product-price,
  .product-vendor {
    display: block;
    flex: none;
  }

  .catalog-filter-input {
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .catalog-item-body {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 1124px) {
  .product-details {
    display: grid;
    gap: 8px;

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