/* TK-Store 商品卡片（首页 / 列表共用） */

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

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

.tk-product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ffb800;
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  transition: box-shadow 0.2s;
}

.tk-product-card:hover {
  box-shadow: 0 8px 22px rgba(255, 153, 0, 0.15);
}

.tk-product-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.tk-product-card__img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f3f4f6;
  overflow: hidden;
}

.tk-product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.tk-product-card:hover .tk-product-card__img img {
  transform: scale(1.04);
}

.tk-product-card__quick {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid #ffb800;
  background: #fff;
  color: #ff9900;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 2;
}

.tk-product-card:hover .tk-product-card__quick {
  opacity: 1;
  pointer-events: auto;
}

.tk-product-card__body {
  padding: 12px 14px 10px;
  flex: 1;
}

.tk-product-card__title-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.tk-product-card__title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: #ff9900;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.85em;
}

.tk-product-card__prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 6px;
}

.tk-product-card__price-old {
  font-size: 13px;
  color: #9ca3af;
  text-decoration: line-through;
  font-weight: 500;
  line-height: 1.2;
}

.tk-product-card__price {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: #ff9900;
}

.tk-product-card__sales {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #9ca3af;
}

.tk-product-card__sales-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff9900;
  flex-shrink: 0;
}

.tk-product-card__actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 0 12px 12px;
}

.tk-product-card__cart {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 10px;
  background: #ff9900;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.15s;
}

.tk-product-card__cart:hover { background: #f08c00; }

.tk-product-card__cart:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.tk-product-card__cart:disabled:hover { background: #ff9900; }

.tk-product-card__cart i { font-size: 14px; }

.tk-product-card__wish {
  flex: 0 0 42px;
  width: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: #333;
  font-size: 16px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.tk-product-card__wish:hover {
  border-color: #ffb800;
  color: #ff9900;
}

.tk-product-row .tk-product-card {
  flex: 0 0 260px;
  width: 260px;
}

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

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

@media (max-width: 768px) {
  .tk-product-grid,
  .tk-product-grid--5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .tk-product-row .tk-product-card {
    flex-basis: 160px;
    width: 160px;
  }

  .tk-product-card {
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: none;
  }

  .tk-product-card:hover {
    box-shadow: none;
  }

  .tk-product-card__img {
    aspect-ratio: 1 / 1;
  }

  .tk-product-card__quick {
    display: none;
  }

  .tk-product-card:hover .tk-product-card__img img {
    transform: none;
  }

  .tk-product-card__body {
    padding: 8px 10px 4px;
  }

  .tk-product-card__title {
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
    color: #222;
    min-height: 2.6em;
  }

  .tk-product-card__prices {
    margin-bottom: 4px;
  }

  .tk-product-card__price {
    font-size: 15px;
    font-weight: 700;
    color: #e53935;
  }

  .tk-product-card__price-old {
    font-size: 11px;
  }

  .tk-product-card__sales {
    font-size: 11px;
    color: #999;
    gap: 0;
  }

  .tk-product-card__sales-dot {
    display: none;
  }

  .tk-product-card__actions {
    justify-content: flex-end;
    gap: 8px;
    padding: 4px 10px 10px;
  }

  .tk-product-card__cart {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    padding: 0;
    gap: 0;
    font-size: 0;
    border: 1px solid #333;
    border-radius: 6px;
    background: #fff;
    color: #333;
  }

  .tk-product-card__cart i {
    font-size: 14px;
  }

  .tk-product-card__cart:hover {
    background: #f5f5f5;
  }

  .tk-product-card__cart:disabled:hover {
    background: #fff;
  }

  .tk-product-card__wish {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border: 1px solid #333;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
  }

  .tk-product-card__wish:hover {
    background: #f5f5f5;
    border-color: #333;
    color: #333;
  }
}
