/* product-card.css */


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

@media (max-width: 479px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1600px) {
  .grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.card {
  background: var(--card);
  border-radius: 22px;
  border: 1px solid rgba(15, 26, 40, 0.05);
  box-shadow: 0 18px 38px rgba(15, 26, 40, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  container-type: inline-size;
  container-name: productcard;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 55px rgba(15, 26, 40, 0.12);
}

.thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  min-height: 220px;
  background: #f1f5f9;
  color: #94a3b8;
  overflow: hidden;
}

.thumb a {
  display: block;
  width: 100%;
  height: 100%;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.card:hover .thumb img {
  transform: scale(1.05);
}

.metric-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.metric-pill svg {
  width: 14px;
  height: 14px;
}

.metric-pill--views {
  left: 14px;
  bottom: 14px;
  background: rgba(15, 26, 40, 0.62);
  color: #fff;
  backdrop-filter: blur(6px);
}

.metric-pill--sold {
  left: 14px;
  bottom: 14px;
  background: #c8102e;
  color: #fff;
}

.metric-pill--likes {
  right: 14px;
  top: 14px;
  background: rgba(255, 255, 255, 0.88);
  color: #475569;
  border: 1px solid rgba(15, 26, 40, 0.08);
  box-shadow: 0 10px 22px rgba(15, 26, 40, 0.12);
  cursor: pointer;
  border: none;
  font: inherit;
  transition: background 0.2s ease, color 0.2s ease;
}

.metric-pill--likes .heart-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
}

.metric-pill--likes .heart-icon svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.metric-pill--likes:hover {
  background: #fff;
  color: #c8102e;
}

.metric-pill--likes:hover .heart-icon svg {
  transform: scale(1.08);
}

.metric-pill--likes:focus-visible {
  outline: 2px solid rgba(200, 16, 46, 0.35);
  outline-offset: 2px;
}

.metric-pill--likes.is-active {
  color: #c8102e;
  border-color: rgba(200, 16, 46, 0.4);
  box-shadow: 0 12px 26px rgba(200, 16, 46, 0.2);
}

.metric-pill--likes.is-active svg path {
  fill: #c8102e;
  stroke: #c8102e;
}

.card-status {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.28);
  background: rgba(15, 26, 40, 0.72);
}

.card-status--sold {
  background: #b91c1c;
}

.card-status--pending {
  background: #b45309;
  color: #fff7ed;
}

.card[data-status] .metric-pill--views {
  display: none;
}

.ct {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.ttl {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.card:hover .ttl {
  color: var(--brand);
}

.ttl a {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  width: 100%;
}

.ttl a:focus-visible {
  outline: 2px solid rgba(200, 16, 46, 0.35);
  outline-offset: 4px;
  border-radius: 6px;
}

.description {
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.68rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #1f2a44;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.tag svg {
  width: 11px;
  height: 11px;
}

.tag--time {
  display: none;
}

.tag--intensity {
  background: #fef3f2;
  color: #b42318;
}

.tag--category {
  display: none;
}

.tag--negotiable {
  display: none;
}

.status-pill {
  align-self: flex-start;
  padding: 0.3em 0.95em;
  border-radius: 999px;
  background: rgba(200, 16, 46, 0.12);
  color: #c8102e;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.price-block {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 26, 40, 0.06);
}

.price-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.price-main {
  color: var(--brand);
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  gap: 6px;
  align-items: center;
}

.price-sub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 400;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}

.price-sub svg {
  width: 14px;
  height: 14px;
}

.price-protect-word {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.price-protect-prefix {
  display: inline;
}

.price-protect-suffix {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 520px) {
  .price-protect-word {
    gap: 0;
  }
  .price-protect-prefix {
    display: none;
  }
}

@container productcard (max-width: 360px) {
  .price-sub .price-protect-prefix {
    display: none;
  }
}

.shield-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #C8102E;
}

.meta-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

.meta-line strong {
  color: var(--ink);
  font-weight: 700;
}

.btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  border-color: rgba(200, 16, 46, 0.4);
  color: #c8102e;
  box-shadow: 0 12px 24px rgba(200, 16, 46, 0.12);
}

.btn.primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 15px 36px rgba(200, 16, 46, 0.25);
}

.btn.primary:hover {
  background: #8f0b22;
  border-color: #8f0b22;
}

.seller-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex: 0 0 auto;
}

.seller-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 6px 18px rgba(15, 26, 40, 0.15);
  background: #f1f5f9;
}

.seller-stack .seller-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}

.seller-stack .seller-rating svg {
  width: 12px;
  height: 12px;
  color: #f59e0b;
}

.seller-stack .seller-rating .seller-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
  display: inline-block;
}

.seller-stack .seller-rating .seller-status-dot.is-online {
  background: #10b981;
}

.seller-stack .seller-rating--empty {
  color: #9ca3af;
  font-weight: 500;
  gap: 6px;
}

.seller-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
  display: inline-block;
}

.seller-status-dot.is-online {
  background: #10b981;
}

.card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.price-protect-word {
  display: inline;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}

.price-protect-word:hover,
.price-protect-word:focus {
  color: inherit;
  outline: none;
}
