.pc-product-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  background: linear-gradient(135deg, #f7fffc 0%, #e9fff9 100%);
  box-shadow: 0 10px 24px rgba(32, 200, 168, 0.1);
}

.pc-product-card-image--table {
  flex: 0 0 82px;
  width: 82px;
  height: 64px;
  aspect-ratio: auto;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08);
}

.pc-product-card-image--detail {
  min-height: 280px;
  max-height: 360px;
}

.pc-product-card-image--gallery {
  height: 220px;
  aspect-ratio: auto;
}

@media (max-width: 575.98px) {
  .pc-product-card-image--table {
    flex-basis: 68px;
    width: 68px;
    height: 54px;
    border-radius: 12px;
  }

  .pc-product-card-image--detail {
    min-height: 220px;
  }
}

.pc-market-page {
  --pc-green: #20c8a8;
  --pc-green-2: #20c0a8;
  --pc-red: #ff3040;
  --pc-ink: #111827;
}

.pc-market-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  padding: 28px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f7fffc 0%, #ffffff 56%, #eefdf8 100%);
  border: 1px solid rgba(32, 200, 168, 0.18);
}

.pc-market-hero .pc-page-eyebrow {
  color: #087765;
}

.pc-market-hero .pc-page-title {
  color: var(--pc-ink);
}

.pc-market-hero .pc-page-description {
  color: #4b5563;
}

.pc-market-layout {
  display: grid;
  grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.pc-market-filter {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(17, 24, 39, 0.06);
}

.pc-market-filter__header,
.pc-market-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.pc-market-content {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.pc-market-searchbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(32, 200, 168, 0.16);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.05);
}

.pc-market-searchbar__input {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0 12px;
  border-radius: 14px;
  background: #f7fffc;
}

.pc-market-searchbar__input input {
  width: 100%;
  min-height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--pc-ink);
}

.pc-market-toolbar {
  flex-wrap: wrap;
}

.pc-market-sort,
.pc-category-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pc-market-sort__item,
.pc-category-chip {
  text-decoration: none;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 999px;
  padding: 8px 12px;
  background: #ffffff;
  color: #374151;
  font-size: 0.875rem;
}

.pc-market-sort__item--active,
.pc-category-chip--active {
  border-color: var(--pc-green);
  background: rgba(32, 200, 168, 0.1);
  color: #087765;
}

.pc-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 18px;
  align-items: stretch;
}

.pc-market-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.07);
}

.pc-market-card__media {
  position: relative;
  display: block;
  flex: 0 0 auto;
  background: #f7fffc;
}

.pc-market-card__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.pc-market-card__favorite,
.pc-market-card__badge {
  position: absolute;
  top: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.1);
}

.pc-market-card__favorite {
  right: 12px;
  width: 32px;
  justify-content: center;
  color: var(--pc-red);
}

.pc-market-card__badge {
  left: 12px;
  padding: 0 10px;
  color: #087765;
  font-weight: 700;
  font-size: 0.78rem;
}

.pc-market-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  padding: 14px;
}

.pc-market-card__topline,
.pc-market-card__rating,
.pc-market-card__meta,
.pc-market-card__actions,
.pc-market-card__manage {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pc-market-card__topline,
.pc-market-card__actions,
.pc-market-card__manage {
  justify-content: space-between;
}

.pc-market-card__topline > span:first-child,
.pc-market-card__meta,
.pc-market-card__harvest {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pc-market-card__title {
  display: -webkit-box;
  min-height: 43px;
  max-height: 43px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 0;
  color: var(--pc-ink);
  font-size: 1rem;
  line-height: 1.35;
}

.pc-market-card__price {
  min-height: 31px;
  color: var(--pc-red);
  font-size: 1.2rem;
  font-weight: 800;
  white-space: nowrap;
}

.pc-market-card__price small,
.pc-market-card__meta,
.pc-market-card__harvest {
  color: #6b7280;
  font-size: 0.86rem;
}

.pc-market-card__rating {
  flex-wrap: wrap;
  min-height: 42px;
  font-size: 0.84rem;
}

.pc-stars {
  color: #f59e0b;
  letter-spacing: 0;
}

.pc-market-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 58px;
  max-height: 58px;
  overflow: hidden;
}

.pc-market-card__badges span {
  border-radius: 999px;
  padding: 5px 8px;
  background: #f7fffc;
  color: #087765;
  font-size: 0.76rem;
  font-weight: 700;
}

.pc-market-card__actions form {
  flex: 1 1 0;
  min-width: 0;
}

.pc-market-card__actions > a {
  flex: 1 1 0;
  min-width: 0;
}

.pc-market-card__actions {
  margin-top: auto;
  min-height: 42px;
}

.pc-market-card__actions .btn,
.pc-market-card__manage .btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  line-height: 1.15;
  white-space: normal;
  text-align: center;
}

.pc-market-card__actions .btn {
  width: 100%;
  font-weight: 700;
}

.pc-market-card__manage form {
  flex: 1 1 0;
  min-width: 0;
}

.pc-market-card__manage > a {
  flex: 1 1 0;
  min-width: 0;
}

.pc-market-card__manage {
  min-height: 34px;
}

.pc-market-card__manage--empty {
  visibility: hidden;
  pointer-events: none;
}

.pc-market-card__actions,
.pc-market-card__manage {
  width: 100%;
}

.pc-market-card__actions form,
.pc-market-card__actions > a,
.pc-market-card__manage form,
.pc-market-card__manage > a {
  max-width: 100%;
}

.pc-market-card__price,
.pc-market-card__rating,
.pc-market-card__harvest,
.pc-market-card__badges span,
.pc-market-sort__item,
.pc-category-chip {
  overflow-wrap: anywhere;
}

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

@media (max-width: 991.98px) {
  .pc-market-layout {
    grid-template-columns: 1fr;
  }

  .pc-market-filter {
    position: static;
  }

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

@media (max-width: 575.98px) {
  .pc-market-hero,
  .pc-market-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .pc-market-searchbar {
    grid-template-columns: 1fr;
  }

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

  .pc-market-card__badges {
    min-height: auto;
    max-height: none;
  }
}
