.view-products .app-shell {
  grid-template-columns: 220px minmax(0, 1fr);
}

.view-products .right-panel,
.view-products #premium-slot,
.view-products #featured-products-slot {
  display: none;
}

.view-products .main-content {
  padding: 14px 14px 22px;
}

.view-products .topbar {
  margin-bottom: 14px;
}

.view-products #topbar-slot .search-box {
  display: none;
}

.view-products #topbar-slot {
  justify-content: flex-end;
}

.product-explorer-view {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(8, 11, 22, 0.92), rgba(7, 10, 20, 0.86));
  min-height: 700px;
  padding: 14px;
}

.product-explorer-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.product-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  border: 1px solid rgba(122, 162, 255, 0.28);
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.025);
}

.product-search-icon {
  width: 14px;
  height: 14px;
  border: 2px solid #8aa8ff;
  border-radius: 50%;
  position: relative;
  opacity: 0.85;
}

.product-search-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 6px;
  height: 2px;
  border-radius: 2px;
  background: #8aa8ff;
  transform: rotate(42deg);
}

.product-search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #eef1fb;
  font-size: 14px;
}

.product-search-box input::placeholder {
  color: #8f95ab;
}

.product-category-strip {
  display: none;
  /* display: flex; */
  gap: 8px;
  margin-top: 14px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.product-category-chip {
  border: 1px solid rgba(122, 162, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #dce5ff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  padding: 8px 13px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.product-category-chip:hover,
.product-category-chip.active {
  border-color: rgba(113, 150, 255, 0.75);
  background: rgba(77, 116, 255, 0.15);
}

.product-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.product-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-toolbar-label {
  font-size: 15px;
  font-weight: 800;
}

.product-toolbar-count {
  color: #9ea7c2;
  font-size: 12px;
  font-weight: 700;
}

.product-sort-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #aab4d2;
  font-size: 12px;
  font-weight: 700;
}

.product-sort-wrap select {
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(19, 20, 25, 0.96);
  color: #e6ebfc;
  padding: 0 8px;
}

.market-product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.market-product-card {
  padding: 14px;
  min-height: 320px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.market-product-card:hover,
.market-product-card:focus-visible {
  border-color: rgba(117, 149, 255, 0.58);
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
  outline: 0;
}

.market-product-image-wrap {
  margin-bottom: 14px;
  border-radius: 14px;
  /* aspect-ratio: 16 / 10; */
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(246, 250, 255, 0.96), rgba(233, 240, 255, 0.82));
  overflow: hidden;
}

.market-product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.market-product-body {
  padding: 0;
}

.card-tags {
  margin: 0 0 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.card-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: #b6bfd8;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  line-height: 1;
}

.card-tag.muted {
  background: rgba(111, 150, 255, 0.18);
  color: #bcd0ff;
}

.market-product-card h3 {
  margin: 0 0 8px;
  color: #f0f4ff;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 800;
}

.market-product-brand {
  margin: 0;
  color: #d2daf2;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.market-product-meta {
  margin-top: 4px;
  color: #8f98b4;
  font-size: 12px;
  font-weight: 700;
}

.market-product-ingredients {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-ingredient-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #d5dff9;
  font-size: 11px;
  padding: 4px 7px;
  line-height: 1.2;
}

.product-ingredient-chip.muted {
  background: rgba(111, 150, 255, 0.18);
  color: #bcd0ff;
}

.market-product-empty {
  grid-column: 1 / -1;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  color: #b8c2de;
  text-align: center;
  padding: 28px;
}

@media (max-width: 1480px) {
  .market-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1220px) {
  .market-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .product-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

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

@media (max-width: 640px) {
  .market-product-grid {
    grid-template-columns: 1fr;
  }
}
